@progress/kendo-vue-grid 7.0.0-develop.4 → 7.0.0-develop.6

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,38 +5,38 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as Ge, createVNode as o, h as le, ref as $, markRaw as E } from "vue";
9
- import { SvgIcon as De, getDefaultSlots as Te, isObject as M, canUseDOM as U, templateRendering as y, getListeners as R, WatermarkOverlay as Oe, getter as q, getTemplate as ae, setRef as A, hasListener as D, getRef as b, kendoThemeMaps as ne, isRtl as de, validatePackage as Le, shouldShowValidationUI as Ee, guid as he, getNestedValue as pe } from "@progress/kendo-vue-common";
10
- import { tableKeyboardNavigationTools as I, tableColumnsVirtualization as Me, Pager as Ae, normalize as Pe, TableKeyboardNavigationProvider as ce } from "@progress/kendo-vue-data-tools";
11
- import { Loader as Ne } from "@progress/kendo-vue-indicators";
12
- import { GridNav as ue } from "./GridNav.mjs";
13
- import { GridSelectionCell as Ve } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as Be } from "./cells/GridHierarchyCell.mjs";
15
- import { GridDetailHierarchyCell as We } from "./cells/GridDetailHierarchyCell.mjs";
16
- import { GridDetailCell as je } from "./cells/GridDetailCell.mjs";
17
- import { GridEditCell as Ke } from "./cells/GridEditCell.mjs";
18
- import { Header as Ue } from "./header/Header.mjs";
19
- import { HeaderRow as qe } from "./header/HeaderRow.mjs";
20
- import { FilterRow as Je } from "./header/FilterRow.mjs";
21
- import { GroupPanel as Qe } from "./header/GroupPanel.mjs";
22
- import { Footer as Xe } from "./footer/Footer.mjs";
23
- import { FooterRow as Ye } from "./footer/FooterRow.mjs";
24
- import { operators as ge } from "./filterCommon.mjs";
8
+ import { defineComponent as Ge, createVNode as o, h as ae, ref as $, markRaw as M } from "vue";
9
+ import { SvgIcon as De, getDefaultSlots as Te, isObject as E, canUseDOM as U, templateRendering as y, getListeners as R, WatermarkOverlay as Oe, getter as q, getTemplate as ne, setRef as A, hasListener as D, getRef as b, kendoThemeMaps as de, isRtl as he, validatePackage as Le, shouldShowValidationUI as Me, getLicenseMessage as Ee, guid as pe, getNestedValue as ce } from "@progress/kendo-vue-common";
10
+ import { tableKeyboardNavigationTools as I, tableColumnsVirtualization as Ae, Pager as Pe, normalize as Ne, TableKeyboardNavigationProvider as ue } from "@progress/kendo-vue-data-tools";
11
+ import { Loader as Ve } from "@progress/kendo-vue-indicators";
12
+ import { GridNav as ge } from "./GridNav.mjs";
13
+ import { GridSelectionCell as Be } from "./cells/GridSelectionCell.mjs";
14
+ import { GridHierarchyCell as We } from "./cells/GridHierarchyCell.mjs";
15
+ import { GridDetailHierarchyCell as je } from "./cells/GridDetailHierarchyCell.mjs";
16
+ import { GridDetailCell as Ke } from "./cells/GridDetailCell.mjs";
17
+ import { GridEditCell as Ue } from "./cells/GridEditCell.mjs";
18
+ import { Header as qe } from "./header/Header.mjs";
19
+ import { HeaderRow as Je } from "./header/HeaderRow.mjs";
20
+ import { FilterRow as Qe } from "./header/FilterRow.mjs";
21
+ import { GroupPanel as Xe } from "./header/GroupPanel.mjs";
22
+ import { Footer as Ye } from "./footer/Footer.mjs";
23
+ import { FooterRow as Ze } from "./footer/FooterRow.mjs";
24
+ import { operators as fe } from "./filterCommon.mjs";
25
25
  import { VirtualScroll as J } from "./VirtualScroll.mjs";
26
- import { VirtualScrollFixed as Ze, RowHeightService as et } from "./VirtualScrollFixed.mjs";
27
- import { ColumnResize as tt } from "./drag/ColumnResize.mjs";
28
- import { CommonDragLogic as st } from "./drag/CommonDragLogic.mjs";
29
- import { DragClue as it } from "./drag/DragClue.mjs";
30
- import { DropClue as rt } from "./drag/DropClue.mjs";
31
- import { applyExpandedState as fe, flatData as ot, readColumns as lt, autoGenerateColumns as at, mapColumns as nt, groupedFirstItemValue as me, firefox as dt, firefoxMaxHeight as ht } from "./utils/main.mjs";
32
- import { GridCell as pt } from "./cells/GridCell.mjs";
33
- import { GridGroupCell as $e } from "./cells/GridGroupCell.mjs";
34
- import { GridRow as ct } from "./rows/GridRow.mjs";
35
- import { GridHeaderSelectionCell as ut } from "./header/GridHeaderSelectionCell.mjs";
36
- import { GridNoRecords as gt } from "./GridNoRecords.mjs";
37
- import { packageMetadata as be } from "./package-metadata.mjs";
26
+ import { VirtualScrollFixed as et, RowHeightService as tt } from "./VirtualScrollFixed.mjs";
27
+ import { ColumnResize as st } from "./drag/ColumnResize.mjs";
28
+ import { CommonDragLogic as it } from "./drag/CommonDragLogic.mjs";
29
+ import { DragClue as rt } from "./drag/DragClue.mjs";
30
+ import { DropClue as ot } from "./drag/DropClue.mjs";
31
+ import { applyExpandedState as me, flatData as lt, readColumns as at, autoGenerateColumns as nt, mapColumns as dt, groupedFirstItemValue as $e, firefox as ht, firefoxMaxHeight as pt } from "./utils/main.mjs";
32
+ import { GridCell as ct } from "./cells/GridCell.mjs";
33
+ import { GridGroupCell as be } from "./cells/GridGroupCell.mjs";
34
+ import { GridRow as ut } from "./rows/GridRow.mjs";
35
+ import { GridHeaderSelectionCell as gt } from "./header/GridHeaderSelectionCell.mjs";
36
+ import { GridNoRecords as ft } from "./GridNoRecords.mjs";
37
+ import { packageMetadata as Q } from "./package-metadata.mjs";
38
38
  import { pagerMessagesMap as Ce } from "./messages/main.mjs";
39
- const qt = /* @__PURE__ */ Ge({
39
+ const Jt = /* @__PURE__ */ Ge({
40
40
  name: "KendoGrid",
41
41
  props: {
42
42
  topCacheCount: {
@@ -123,6 +123,7 @@ const qt = /* @__PURE__ */ Ge({
123
123
  context: void 0,
124
124
  navigation: void 0,
125
125
  showLicenseWatermark: !1,
126
+ licenseMessage: void 0,
126
127
  notHiddenColumns: []
127
128
  };
128
129
  },
@@ -138,18 +139,18 @@ const qt = /* @__PURE__ */ Ge({
138
139
  }
139
140
  },
140
141
  created() {
141
- Le(be), this.showLicenseWatermark = Ee(be), this.initialHeight = null, this._columns = [];
142
+ Le(Q), this.showLicenseWatermark = Me(Q), this.licenseMessage = Ee(Q), this.initialHeight = null, this._columns = [];
142
143
  const e = this.currentGroupable, t = this.getVirtualScroll();
143
- this.vs = new t(e || this.$props.rowHeight === void 0 || this.$props.rowHeight === 0, this.$props.topCacheCount), this.dragLogic = new st(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new tt(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.forceUpdateTimeout = void 0, this._gridId = he(), this._gridRoleElementId = he(), this.slicedCurrentData = void 0, this._prevTotal = void 0;
144
+ this.vs = new t(e || this.$props.rowHeight === void 0 || this.$props.rowHeight === 0, this.$props.topCacheCount), this.dragLogic = new it(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new st(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.forceUpdateTimeout = void 0, this._gridId = pe(), this._gridRoleElementId = pe(), this.slicedCurrentData = void 0, this._prevTotal = void 0;
144
145
  },
145
146
  mounted() {
146
147
  this.setRefs();
147
- const e = de(this._element);
148
+ const e = he(this._element);
148
149
  this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = this._element.style ? this._element.style.height : null, this.resizeObserver = U && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
149
150
  },
150
151
  updated() {
151
152
  this.setRefs();
152
- const e = de(this._element);
153
+ const e = he(this._element);
153
154
  this.isRtl = e, this._prevTotal = this.$props.total, this.vs.tableTransform && this.vs.table && (this.vs.table.style.transform = this.vs.tableTransform, this.vs.tableTransform = "");
154
155
  },
155
156
  unmounted() {
@@ -163,7 +164,7 @@ const qt = /* @__PURE__ */ Ge({
163
164
  return {
164
165
  "k-grid": !0,
165
166
  "k-grid-md": !e,
166
- [`k-grid-${ne.sizeMap[e] || e}`]: e
167
+ [`k-grid-${de.sizeMap[e] || e}`]: e
167
168
  };
168
169
  },
169
170
  scrollableWrapperClass() {
@@ -183,14 +184,14 @@ const qt = /* @__PURE__ */ Ge({
183
184
  "k-table": !0,
184
185
  "k-grid-table": !0,
185
186
  "k-grid-md": !e,
186
- [`k-table-${ne.sizeMap[e] || e}`]: e
187
+ [`k-table-${de.sizeMap[e] || e}`]: e
187
188
  };
188
189
  },
189
190
  getCorrectHeight() {
190
191
  return this.$props.scrollable === "virtual" ? this.initialHeight || "450px" : null;
191
192
  },
192
193
  currentGroupable() {
193
- return this.$props.groupable === !0 && this.$props.group && this.$props.group.length || M(this.$props.groupable) && this.$props.groupable.enabled !== !1;
194
+ return this.$props.groupable === !0 && this.$props.group && this.$props.group.length || E(this.$props.groupable) && this.$props.groupable.enabled !== !1;
194
195
  },
195
196
  computedCollapsed() {
196
197
  let e = [];
@@ -295,11 +296,11 @@ const qt = /* @__PURE__ */ Ge({
295
296
  else if (this.$props.totalGroupedHeight)
296
297
  this.vs.containerHeight = Math.min(1533915, this.$props.totalGroupedHeight);
297
298
  else if (this.$props.allGroupedItems && this.$props.allGroupedItems.data) {
298
- const t = this.totalGroupedRows(fe(this.$props.allGroupedItems, this.computedCollapsed, this.$props.uniqueField).data);
299
+ const t = this.totalGroupedRows(me(this.$props.allGroupedItems, this.computedCollapsed, this.$props.uniqueField).data);
299
300
  this.vs.containerHeight = Math.min(1533915, this.$props.rowHeight * t);
300
301
  } else
301
302
  this.vs.containerHeight = 1533915;
302
- if (this.slicedCurrentData = void 0, this.vs instanceof Ze) {
303
+ if (this.slicedCurrentData = void 0, this.vs instanceof et) {
303
304
  const {
304
305
  rowHeight: t = 0,
305
306
  detail: i,
@@ -308,9 +309,9 @@ const qt = /* @__PURE__ */ Ge({
308
309
  let {
309
310
  detailRowHeight: l = 0
310
311
  } = this.$props;
311
- l = i && r ? l : t, this.isAllData() ? (this.vs.total = this.currentData.length, this.slicedCurrentData = this.currentData.slice(this.vs.realSkip, this.vs.realSkip + this.vs.pageSize), this.vs.rowHeightService = this.rowHeightService(this.vs, this.currentData.length, t, l, this.currentData)) : this.vs.rowHeightService = new et(e, t, l);
312
+ l = i && r ? l : t, this.isAllData() ? (this.vs.total = this.currentData.length, this.slicedCurrentData = this.currentData.slice(this.vs.realSkip, this.vs.realSkip + this.vs.pageSize), this.vs.rowHeightService = this.rowHeightService(this.vs, this.currentData.length, t, l, this.currentData)) : this.vs.rowHeightService = new tt(e, t, l);
312
313
  const n = this.vs.rowHeightService.totalHeight();
313
- this.vs.containerHeight = dt ? Math.min(ht, n) : n;
314
+ this.vs.containerHeight = ht ? Math.min(pt, n) : n;
314
315
  }
315
316
  },
316
317
  onSkipChanged(e, t) {
@@ -350,7 +351,7 @@ const qt = /* @__PURE__ */ Ge({
350
351
  let t = this.computedCollapsed, i = t[e.level];
351
352
  const r = this.$props.uniqueField, l = function(p, C) {
352
353
  return p.value === e.dataItem.value && C === e.level;
353
- }, n = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, l, 0, null) : e.dataItem, g = me(n || e.dataItem, r);
354
+ }, n = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, l, 0, null) : e.dataItem, g = $e(n || e.dataItem, r);
354
355
  if (e.value) {
355
356
  if (i && i.length) {
356
357
  const p = i.indexOf(g);
@@ -540,18 +541,18 @@ const qt = /* @__PURE__ */ Ge({
540
541
  },
541
542
  initColumns(e, t) {
542
543
  const i = I.getIdPrefix(this.navigation);
543
- if (this._columns = lt(e, this.getColumns(), {
544
+ if (this._columns = at(e, this.getColumns(), {
544
545
  prevId: 0,
545
546
  idPrefix: i
546
547
  }), this._columns.length === 0) {
547
- const n = at(this.$props.dataItems, this.$props.group, this.$props.expandField, {
548
+ const n = nt(this.$props.dataItems, this.$props.group, this.$props.expandField, {
548
549
  prevId: 0,
549
550
  idPrefix: i
550
551
  });
551
552
  this._columns = n;
552
553
  }
553
554
  this.$props.selectedField && this._columns.filter((n) => n.field === this.$props.selectedField).forEach((n) => {
554
- n.width = n.width || "50px", n.internalCell = E(Ve), n.internalHeaderCell = E(ut);
555
+ n.width = n.width || "50px", n.internalCell = M(Be), n.internalHeaderCell = M(gt);
555
556
  });
556
557
  const r = {
557
558
  id: "",
@@ -576,7 +577,7 @@ const qt = /* @__PURE__ */ Ge({
576
577
  let l = 0;
577
578
  this.$props.expandField && D.call(this, "expandchange") && this.$props.detail && (this._columns.unshift({
578
579
  ...r,
579
- internalCell: E(Be),
580
+ internalCell: M(We),
580
581
  field: this.$props.expandField,
581
582
  headerClassName: "k-hierarchy-cell k-header",
582
583
  id: I.generateNavigatableId(`${this._columns.length}`, i, "column"),
@@ -586,10 +587,10 @@ const qt = /* @__PURE__ */ Ge({
586
587
  this._columns.unshift({
587
588
  ...r,
588
589
  isAccessible: !1,
589
- internalCell: E($e),
590
+ internalCell: M(be),
590
591
  field: "value"
591
592
  }), l++;
592
- this._columns.slice(l).forEach((n) => n.parentIndex >= 0 && (n.parentIndex += l)), this._columnsMap = nt(this._columns), this.columnResize.columns = this._columns, this.dragLogic.columns = this._columns;
593
+ this._columns.slice(l).forEach((n) => n.parentIndex >= 0 && (n.parentIndex += l)), this._columnsMap = dt(this._columns), this.columnResize.columns = this._columns, this.dragLogic.columns = this._columns;
593
594
  },
594
595
  resolveTitle(e) {
595
596
  const t = this.findColumnByField(e), i = t && (t.title || t.field);
@@ -661,16 +662,16 @@ const qt = /* @__PURE__ */ Ge({
661
662
  let t = this.$props.total || 0;
662
663
  const i = I.getIdPrefix(this.navigation);
663
664
  let r = [];
664
- Array.isArray(this.$props.dataItems) ? r = this.$props.dataItems : this.$props.dataItems && (r = fe(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField).data, t = t || this.$props.dataItems.total);
665
- const l = this.$props.groupable === !0 || M(this.$props.groupable) && this.$props.groupable.enabled !== !1;
665
+ Array.isArray(this.$props.dataItems) ? r = this.$props.dataItems : this.$props.dataItems && (r = me(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField).data, t = t || this.$props.dataItems.total);
666
+ const l = this.$props.groupable === !0 || E(this.$props.groupable) && this.$props.groupable.enabled !== !1;
666
667
  this.columnResize.resizable = this.$props.resizable || !1, this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = l, this.initializeVirtualization(t);
667
- const n = M(this.$props.groupable) && this.$props.groupable.footer || "none";
668
+ const n = E(this.$props.groupable) && this.$props.groupable.footer || "none";
668
669
  this.currentData = [];
669
- const g = ot(this.currentData, r, n, {
670
+ const g = lt(this.currentData, r, n, {
670
671
  index: this.$props.skip || 0
671
672
  }, this.$props.group !== void 0, this.$props.expandField), p = e || [];
672
673
  this.notHiddenColumns = this.filterHiddenColumns(this.$props.columns), this.initColumns(this.notHiddenColumns, g);
673
- const C = p.filter((s) => s && s.tag && s.tag.toLowerCase().indexOf("toolbar") !== -1 || s.componentOptions && s.componentOptions.tag && s.componentOptions.tag.toLowerCase().indexOf("toolbar") !== -1 || s.type && s.type.name && s.type.name.toLowerCase().indexOf("toolbar") !== -1), k = p.filter((s) => s && s.tag && s.tag.toLowerCase().indexOf("records") !== -1 || s.componentOptions && s.componentOptions.tag && s.componentOptions.tag.toLowerCase().indexOf("records") !== -1 || s.type && s.type.name && s.type.name.toLowerCase().indexOf("records") !== -1), S = this._columns.filter((s) => s.children.length === 0), x = l && o(Qe, {
674
+ const C = p.filter((s) => s && s.tag && s.tag.toLowerCase().indexOf("toolbar") !== -1 || s.componentOptions && s.componentOptions.tag && s.componentOptions.tag.toLowerCase().indexOf("toolbar") !== -1 || s.type && s.type.name && s.type.name.toLowerCase().indexOf("toolbar") !== -1), k = p.filter((s) => s && s.tag && s.tag.toLowerCase().indexOf("records") !== -1 || s.componentOptions && s.componentOptions.tag && s.componentOptions.tag.toLowerCase().indexOf("records") !== -1 || s.type && s.type.name && s.type.name.toLowerCase().indexOf("records") !== -1), S = this._columns.filter((s) => s.children.length === 0), x = l && o(Xe, {
674
675
  ref: (s) => {
675
676
  this.groupPanelDivRef = s;
676
677
  },
@@ -681,22 +682,22 @@ const qt = /* @__PURE__ */ Ge({
681
682
  onDragHandler: this.dragLogic.dragHandler,
682
683
  onReleaseHandler: this.dragLogic.releaseHandler,
683
684
  resolveTitle: this.resolveTitle
684
- }, null), _ = (this.dragLogic.reorderable || this.dragLogic.groupable) && U && document && document.body, Q = [_ && o(rt, {
685
+ }, null), _ = (this.dragLogic.reorderable || this.dragLogic.groupable) && U && document && document.body, X = [_ && o(ot, {
685
686
  ref: (s) => {
686
687
  this.dropElementClueRef = s;
687
688
  }
688
- }, null), _ && o(it, {
689
+ }, null), _ && o(rt, {
689
690
  ref: (s) => {
690
691
  this.dragElementClueRef = s;
691
692
  }
692
- }, null)], X = o(Ue, {
693
+ }, null)], Y = o(qe, {
693
694
  size: this.$props.size,
694
695
  columnResize: this.columnResize,
695
696
  staticHeaders: this.$props.scrollable !== "none",
696
697
  ref: (s) => {
697
698
  this.headerRef = s;
698
699
  },
699
- headerRow: o(qe, {
700
+ headerRow: o(Je, {
700
701
  grid: this,
701
702
  sort: this.$props.sort,
702
703
  groupable: this.$props.groupable,
@@ -705,7 +706,7 @@ const qt = /* @__PURE__ */ Ge({
705
706
  onSortChange: this.sortChangeHandler,
706
707
  filter: this.$props.filter,
707
708
  filterable: this.$props.filterable,
708
- filterOperators: this.$props.filterOperators || ge,
709
+ filterOperators: this.$props.filterOperators || fe,
709
710
  onFilterChange: this.filterChangeHandler,
710
711
  columnMenu: this.$props.columnMenu,
711
712
  columnMenuIcon: this.$props.columnMenuIcon,
@@ -721,12 +722,12 @@ const qt = /* @__PURE__ */ Ge({
721
722
  cellRender: this.$props.headerCellRender,
722
723
  isRtl: this.isRtl,
723
724
  isColCountDefined: this.getAriaColCount !== void 0,
724
- filterRow: this.$props.filterable && o(Je, {
725
+ filterRow: this.$props.filterable && o(Qe, {
725
726
  grid: this,
726
727
  size: this.$props.size,
727
728
  columns: this._columns,
728
729
  filter: this.$props.filter,
729
- filterOperators: this.$props.filterOperators || ge,
730
+ filterOperators: this.$props.filterOperators || fe,
730
731
  onFilterchange: this.filterChangeHandler,
731
732
  sort: this.$props.sort,
732
733
  cellRender: this.$props.filterCellRender,
@@ -740,14 +741,14 @@ const qt = /* @__PURE__ */ Ge({
740
741
  width: s.width !== void 0 ? Math.floor(parseFloat(s.width.toString())) + "px" : void 0
741
742
  }, null);
742
743
  }, this)
743
- }, null), Y = this._columns.some((s) => !!s.footerCell) ? o(Xe, {
744
+ }, null), Z = this._columns.some((s) => !!s.footerCell) ? o(Ye, {
744
745
  size: this.$props.size,
745
746
  columnResize: this.columnResize,
746
747
  staticHeaders: this.$props.scrollable !== "none",
747
748
  ref: (s) => {
748
749
  this.footerRef = s;
749
750
  },
750
- row: o(Ye, {
751
+ row: o(Ze, {
751
752
  isRtl: this.isRtl,
752
753
  rowIndex: this.getAriaRowCount + 1,
753
754
  columns: this._columns.map(function(s) {
@@ -763,17 +764,19 @@ const qt = /* @__PURE__ */ Ge({
763
764
  width: s.width !== void 0 ? Math.floor(parseFloat(s.width.toString())) + "px" : void 0
764
765
  }, null);
765
766
  }, this)
766
- }, null) : o("span", null, null), P = y.call(this, this.$props.cellRender, R.call(this)), ve = this.showLicenseWatermark ? o(Oe, null, null) : null, N = this.$attrs.style, Ie = N && M(N) && N["width"] || "", we = parseFloat(Ie.toString()), ye = this.vs && this.vs.container && this.vs.container.scrollLeft || 0, {
767
+ }, null) : o("span", null, null), P = y.call(this, this.$props.cellRender, R.call(this)), ve = this.showLicenseWatermark ? o(Oe, {
768
+ message: this.licenseMessage
769
+ }, null) : null, N = this.$attrs.style, Ie = N && E(N) && N["width"] || "", we = parseFloat(Ie.toString()), ye = this.vs && this.vs.container && this.vs.container.scrollLeft || 0, {
767
770
  colSpans: V,
768
771
  hiddenColumns: Re
769
- } = Me({
772
+ } = Ae({
770
773
  enabled: this.$props.columnVirtualization,
771
774
  columns: this._columns,
772
775
  tableViewPortWidth: we,
773
776
  scrollLeft: ye
774
777
  }), He = function(s, d, v) {
775
778
  let F = !1;
776
- const H = this.$props.selectedField, f = H ? pe(H, s.dataItem) : void 0, u = this.$props.highlight && this.$props.dataItemKey && q(this.$props.dataItemKey)(s.dataItem) !== void 0 ? this.$props.highlight[q(this.$props.dataItemKey)(s.dataItem)] : void 0;
779
+ const H = this.$props.selectedField, f = H ? ce(H, s.dataItem) : void 0, u = this.$props.highlight && this.$props.dataItemKey && q(this.$props.dataItemKey)(s.dataItem) !== void 0 ? this.$props.highlight[q(this.$props.dataItemKey)(s.dataItem)] : void 0;
777
780
  return {
778
781
  row: this._columns.map(function(a, h) {
779
782
  if (Re[h])
@@ -787,12 +790,12 @@ const qt = /* @__PURE__ */ Ge({
787
790
  } : {};
788
791
  let w = !1;
789
792
  if (a.editable && this.$props.editField) {
790
- const c = pe(this.$props.editField, s.dataItem);
793
+ const c = ce(this.$props.editField, s.dataItem);
791
794
  (c === !0 || c === a.field) && (F = !0, w = !0);
792
795
  }
793
796
  let m;
794
797
  a.cell && (m = y.call(this, a.cell, R.call(this)));
795
- const L = this.computedCollapsed && this.computedCollapsed[s.level] && this.computedCollapsed[s.level].some((c) => c === me(s.dataItem, this.$props.uniqueField)), K = L ? !L : s.expanded;
798
+ const L = this.computedCollapsed && this.computedCollapsed[s.level] && this.computedCollapsed[s.level].some((c) => c === $e(s.dataItem, this.$props.uniqueField)), K = L ? !L : s.expanded;
796
799
  return a.internalCell ? o(a.internalCell, {
797
800
  key: h,
798
801
  id: I.generateNavigatableId(`${d}-${String(h)}`, i),
@@ -823,7 +826,7 @@ const qt = /* @__PURE__ */ Ge({
823
826
  isRtl: this.isRtl,
824
827
  isSelected: Array.isArray(f) && f.indexOf(h) > -1,
825
828
  isHighlighted: !!(typeof u != "boolean" && u && a.field && u[a.field] === !0)
826
- }, null) : w ? o(Ke, {
829
+ }, null) : w ? o(Ue, {
827
830
  id: I.generateNavigatableId(`${d}-${String(h)}`, i),
828
831
  key: h,
829
832
  colSpan: V[h],
@@ -847,7 +850,7 @@ const qt = /* @__PURE__ */ Ge({
847
850
  expanded: K,
848
851
  dataIndex: s.dataIndex,
849
852
  style: G
850
- }, null) : o(pt, {
853
+ }, null) : o(ct, {
851
854
  key: h,
852
855
  id: I.generateNavigatableId(`${d}-${String(h)}`, i),
853
856
  colSpan: V[h],
@@ -888,23 +891,23 @@ const qt = /* @__PURE__ */ Ge({
888
891
  isHighlighted: typeof u == "boolean" && u
889
892
  };
890
893
  };
891
- let Z = 0;
894
+ let ee = 0;
892
895
  if (this.$props.scrollable === "virtual" && this.totalGroupedRows(this.currentData) / 2 > this.$props.take) {
893
896
  const s = this.vs.topCacheCount + this.vs.attendedSkip - (this.$props.skip || 0);
894
897
  for (let d = 0; d < s; ) {
895
898
  const v = this.currentData.shift();
896
899
  if (v)
897
- this.currentData.push(v), Z++, v.rowType === "groupHeader" && d--;
900
+ this.currentData.push(v), ee++, v.rowType === "groupHeader" && d--;
898
901
  else
899
902
  break;
900
903
  d++;
901
904
  }
902
905
  }
903
- const ee = (s) => s >= this.currentData.length - Z, ke = y.call(this, this.$props.detail, R.call(this));
906
+ const te = (s) => s >= this.currentData.length - ee, ke = y.call(this, this.$props.detail, R.call(this));
904
907
  let B = this.vs.propsSkip || 0;
905
908
  const T = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
906
909
  let O, W = -1, j = 0;
907
- const te = this.currentData.length && this.currentData.map(function(s, d) {
910
+ const se = this.currentData.length && this.currentData.map(function(s, d) {
908
911
  s.rowType === "data" && (B++, W++), this.$props.alternatePerGroup && s.rowType === "groupHeader" && (B = 0);
909
912
  const v = B % 2 === 0, F = this.$props.dataItemKey && q(this.$props.dataItemKey)(s.dataItem), H = d + (this.vs.propsSkip || 0), f = F || "ai" + H, u = f + "_1";
910
913
  O = H + T + j;
@@ -912,7 +915,7 @@ const qt = /* @__PURE__ */ Ge({
912
915
  let h;
913
916
  this.$props.detail && s.rowType === "data" && s.expanded && (h = S.length - (this.$props.expandField ? 1 : 0) - (this.$props.group ? this.$props.group.length : 0) || 1, j++, O = H + T + j);
914
917
  const z = d * 2 + T, G = d * 2 + T + 1, w = He.call(this, s, f, W);
915
- return [o(ct, {
918
+ return [o(ut, {
916
919
  key: f,
917
920
  dataItem: s.dataItem,
918
921
  isAltRow: v,
@@ -920,7 +923,7 @@ const qt = /* @__PURE__ */ Ge({
920
923
  isSelected: w.isSelected,
921
924
  isHighlighted: w.isHighlighted,
922
925
  rowType: s.rowType,
923
- isHidden: ee(d),
926
+ isHidden: te(d),
924
927
  onRowclick: (m) => this.rowClick(m, s),
925
928
  onRowdblclick: (m) => this.rowDoubleClick(m, s),
926
929
  selectedField: this.$props.selectedField,
@@ -935,22 +938,22 @@ const qt = /* @__PURE__ */ Ge({
935
938
  key: u,
936
939
  class: v ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
937
940
  style: {
938
- visibility: ee(d) ? "hidden" : "",
941
+ visibility: te(d) ? "hidden" : "",
939
942
  height: this.$props.detailRowHeight + "px"
940
943
  },
941
944
  role: "row",
942
945
  "aria-rowindex": this.$props.detail ? G : O
943
946
  }, [this.$props.group && this.$props.group.map(function(m, L) {
944
- return o($e, {
947
+ return o(be, {
945
948
  id: "",
946
949
  dataIndex: s.dataIndex,
947
950
  field: m.field,
948
951
  dataItem: s.dataItem,
949
952
  key: L
950
953
  }, null);
951
- }, this), this.$props.expandField && o(We, {
954
+ }, this), this.$props.expandField && o(je, {
952
955
  id: I.generateNavigatableId(`${u}-dhcell`, i)
953
- }, null), o(je, {
956
+ }, null), o(Ke, {
954
957
  dataItem: s.dataItem,
955
958
  dataIndex: s.dataIndex,
956
959
  colSpan: h,
@@ -963,7 +966,7 @@ const qt = /* @__PURE__ */ Ge({
963
966
  }, [o("td", {
964
967
  class: "k-table-td",
965
968
  colspan: this._columns.filter((s) => !s.children.length).length
966
- }, [k.length ? k : o(gt, null, null)])]), Se = y.call(this, this.$props.pager, R.call(this)), xe = this.$props.pageable && o(Ae, {
969
+ }, [k.length ? k : o(ft, null, null)])]), Se = y.call(this, this.$props.pager, R.call(this)), xe = this.$props.pageable && o(Pe, {
967
970
  class: "k-grid-pager",
968
971
  onPagesizechange: this.pageChangeHandler,
969
972
  onPagechange: this.pageChangeHandler,
@@ -972,9 +975,9 @@ const qt = /* @__PURE__ */ Ge({
972
975
  skip: this.vs.propsSkip || 0,
973
976
  pageSize: (this.$props.take !== void 0 ? this.$props.take : this.$props.pageSize) || 10,
974
977
  messagesMap: Ce,
975
- settings: Pe(this.$props.pageable || {})
976
- }, null), se = ae.call(this, {
977
- h: le,
978
+ settings: Ne(this.$props.pageable || {})
979
+ }, null), ie = ne.call(this, {
980
+ h: ae,
978
981
  template: Se,
979
982
  defaultRendering: xe,
980
983
  additionalProps: {
@@ -986,7 +989,7 @@ const qt = /* @__PURE__ */ Ge({
986
989
  pagesizechange: this.pageChangeHandler,
987
990
  pagechange: this.pageChangeHandler
988
991
  }
989
- }), _e = (s) => this.$props.sort && this.$props.sort.filter((d) => d.field === s).length > 0, ie = o("colgroup", {
992
+ }), _e = (s) => this.$props.sort && this.$props.sort.filter((d) => d.field === s).length > 0, re = o("colgroup", {
990
993
  ref: A(this, "colGroup")
991
994
  }, [S.map(function(s, d) {
992
995
  return o("col", {
@@ -994,7 +997,7 @@ const qt = /* @__PURE__ */ Ge({
994
997
  class: _e(s.field) ? "k-sorted" : void 0,
995
998
  width: s.width !== void 0 ? s.width.toString().indexOf("%") !== -1 ? s.width : Math.floor(parseFloat(s.width.toString())) + "px" : void 0
996
999
  }, null);
997
- }, this)]), re = {
1000
+ }, this)]), oe = {
998
1001
  height: this.getCorrectHeight
999
1002
  }, Fe = y.call(this, this.$props.loader, R.call(this)), ze = this.$props.loader && o("div", {
1000
1003
  class: "k-loader-container k-loader-container-md k-loader-top"
@@ -1002,25 +1005,25 @@ const qt = /* @__PURE__ */ Ge({
1002
1005
  class: "k-loader-container-overlay k-overlay-light"
1003
1006
  }, null), o("div", {
1004
1007
  class: "k-loader-container-inner"
1005
- }, [o(Ne, {
1008
+ }, [o(Ve, {
1006
1009
  size: "large",
1007
1010
  type: "infinite-spinner"
1008
- }, null)])]), oe = ae.call(this, {
1009
- h: le,
1011
+ }, null)])]), le = ne.call(this, {
1012
+ h: ae,
1010
1013
  template: Fe,
1011
1014
  defaultRendering: ze
1012
1015
  });
1013
- return this.$props.scrollable === "none" ? o(ce, {
1016
+ return this.$props.scrollable === "none" ? o(ue, {
1014
1017
  ref: "navRef",
1015
1018
  id: this._gridId,
1016
1019
  navigatable: this.$props.navigatable
1017
1020
  }, {
1018
- default: () => [o(ue, {
1021
+ default: () => [o(ge, {
1019
1022
  ref: (s) => {
1020
1023
  this.gridNavRef = s;
1021
1024
  },
1022
1025
  currentData: this.currentData,
1023
- style: re,
1026
+ style: oe,
1024
1027
  class: this.nonscrollableWrapperClass
1025
1028
  }, {
1026
1029
  default: () => [C, x, o("div", {
@@ -1035,22 +1038,22 @@ const qt = /* @__PURE__ */ Ge({
1035
1038
  tableLayout: "fixed"
1036
1039
  },
1037
1040
  role: "none"
1038
- }, [ie, X, o("tbody", {
1041
+ }, [re, Y, o("tbody", {
1039
1042
  class: "k-table-tbody",
1040
1043
  "data-keyboardnavbody": !0
1041
- }, [te, oe]), Y])]), se, Q]
1044
+ }, [se, le]), Z])]), ie, X]
1042
1045
  })]
1043
- }) : o(ce, {
1046
+ }) : o(ue, {
1044
1047
  ref: "navRef",
1045
1048
  id: this._gridId,
1046
1049
  navigatable: this.$props.navigatable
1047
1050
  }, {
1048
- default: () => [o(ue, {
1051
+ default: () => [o(ge, {
1049
1052
  ref: (s) => {
1050
1053
  this.gridNavRef = s;
1051
1054
  },
1052
1055
  currentData: this.currentData,
1053
- style: re,
1056
+ style: oe,
1054
1057
  class: this.scrollableWrapperClass
1055
1058
  }, {
1056
1059
  default: () => [C, x, o("div", {
@@ -1059,7 +1062,7 @@ const qt = /* @__PURE__ */ Ge({
1059
1062
  id: this._gridRoleElementId,
1060
1063
  "aria-colcount": this.getAriaColCount,
1061
1064
  "aria-rowcount": this.getAriaRowCount
1062
- }, [X, o("div", {
1065
+ }, [Y, o("div", {
1063
1066
  class: "k-grid-container",
1064
1067
  role: "presentation"
1065
1068
  }, [o("div", {
@@ -1074,23 +1077,23 @@ const qt = /* @__PURE__ */ Ge({
1074
1077
  role: "none",
1075
1078
  class: this.gridTableClass,
1076
1079
  ref: A(this, "scrollTable")
1077
- }, [ie, o("tbody", {
1080
+ }, [re, o("tbody", {
1078
1081
  class: "k-table-tbody",
1079
1082
  role: "rowgroup",
1080
1083
  "data-keyboardnavbody": !0,
1081
1084
  ref: A(this, "scrollTableBody")
1082
- }, [te])])]), o("div", {
1085
+ }, [se])])]), o("div", {
1083
1086
  class: "k-height-container",
1084
1087
  role: "presentation"
1085
1088
  }, [o("div", {
1086
1089
  style: this.$props.scrollable === "virtual" ? {
1087
1090
  height: this.vs.containerHeight + "px"
1088
1091
  } : {}
1089
- }, null)])]), oe]), Y, ve]), se, Q]
1092
+ }, null)])]), le]), Z, ve]), ie, X]
1090
1093
  })]
1091
1094
  });
1092
1095
  }
1093
1096
  });
1094
1097
  export {
1095
- qt as Grid
1098
+ Jt as Grid
1096
1099
  };