@progress/kendo-vue-grid 8.0.0-develop.2 → 8.0.0-develop.4
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.js +1 -1
- package/Grid.mjs +147 -147
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/index.d.mts +22 -2
- package/index.d.ts +22 -2
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
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
|
|
9
|
-
import { isObject as V, cloneArray as
|
|
10
|
-
import { tableKeyboardNavigationTools as z, combineFilters as
|
|
11
|
-
import { Loader as
|
|
12
|
-
import { GridNav as
|
|
13
|
-
import { GridSelectionCell as
|
|
8
|
+
import { defineComponent as pt, createVNode as n, h as Le, createTextVNode as Pe, ref as v, inject as ut, markRaw as E } from "vue";
|
|
9
|
+
import { isObject as V, cloneArray as ct, canUseDOM as X, WatermarkOverlay as gt, getter as Y, getTemplate as Me, setRef as G, hasListener as P, getRef as $, RowHeightService as ft, setScrollbarWidth as mt, kendoThemeMaps as Ae, uGrid as Ct, isRtl as Ve, validatePackage as bt, shouldShowValidationUI as $t, getLicenseMessage as Rt, guid as Ne, getNestedValue as Oe } from "@progress/kendo-vue-common";
|
|
10
|
+
import { tableKeyboardNavigationTools as z, combineFilters as xt, Pager as vt, normalize as It, TableKeyboardNavigationProvider as We, updateLeft as wt, updateRight as St, groupExpandReducer as yt, detailExpandReducer as Ht, getDetailExpandableOptions as kt, getGroupExpandableOptions as _t } from "@progress/kendo-vue-data-tools";
|
|
11
|
+
import { Loader as Et } from "@progress/kendo-vue-indicators";
|
|
12
|
+
import { GridNav as Ke } from "./GridNav.mjs";
|
|
13
|
+
import { GridSelectionCell as Ue } from "./cells/GridSelectionCell.mjs";
|
|
14
14
|
import { GridHierarchyCell as Z } from "./cells/GridHierarchyCell.mjs";
|
|
15
|
-
import { GridDetailHierarchyCell as
|
|
16
|
-
import { GridDetailCell as
|
|
17
|
-
import { GridEditCell as
|
|
18
|
-
import { Header as
|
|
19
|
-
import { HeaderRow as
|
|
20
|
-
import { FilterRow as
|
|
21
|
-
import { GroupPanel as
|
|
22
|
-
import { Footer as
|
|
23
|
-
import { FooterRow as
|
|
24
|
-
import { operators as
|
|
25
|
-
import { VirtualScroll as
|
|
26
|
-
import { ColumnResize as
|
|
27
|
-
import { CommonDragLogic as
|
|
28
|
-
import { DragClue as
|
|
29
|
-
import { DropClue as
|
|
30
|
-
import { applyExpandedState as
|
|
31
|
-
import { GridCell as
|
|
15
|
+
import { GridDetailHierarchyCell as zt } from "./cells/GridDetailHierarchyCell.mjs";
|
|
16
|
+
import { GridDetailCell as Tt } from "./cells/GridDetailCell.mjs";
|
|
17
|
+
import { GridEditCell as Dt } from "./cells/GridEditCell.mjs";
|
|
18
|
+
import { Header as Gt } from "./header/Header.mjs";
|
|
19
|
+
import { HeaderRow as Ft } from "./header/HeaderRow.mjs";
|
|
20
|
+
import { FilterRow as Lt } from "./header/FilterRow.mjs";
|
|
21
|
+
import { GroupPanel as Pt } from "./header/GroupPanel.mjs";
|
|
22
|
+
import { Footer as Mt } from "./footer/Footer.mjs";
|
|
23
|
+
import { FooterRow as At } from "./footer/FooterRow.mjs";
|
|
24
|
+
import { operators as Be } from "./filterCommon.mjs";
|
|
25
|
+
import { VirtualScroll as Vt } from "./VirtualScroll.mjs";
|
|
26
|
+
import { ColumnResize as Nt } from "./drag/ColumnResize.mjs";
|
|
27
|
+
import { CommonDragLogic as Ot } from "./drag/CommonDragLogic.mjs";
|
|
28
|
+
import { DragClue as Wt } from "./drag/DragClue.mjs";
|
|
29
|
+
import { DropClue as Kt } from "./drag/DropClue.mjs";
|
|
30
|
+
import { applyExpandedState as Ut, getColSpan as Bt, autoGenerateColumns as jt, mapColumns as qt, getFlatColumnsState as je, getRowSpanOptions as qe, groupedFirstItemValue as Je, calcRowHeight as Jt, flatData as Qt, readColumns as Xt } from "./utils/main.mjs";
|
|
31
|
+
import { GridCell as Yt } from "./cells/GridCell.mjs";
|
|
32
32
|
import { GridGroupCell as ee } from "./cells/GridGroupCell.mjs";
|
|
33
|
-
import { GridRow as
|
|
34
|
-
import { gridProps as
|
|
35
|
-
import { GridHeaderSelectionCell as
|
|
36
|
-
import { GridNoRecords as
|
|
37
|
-
import { GridNoRecordsContainer as
|
|
33
|
+
import { GridRow as Zt } from "./rows/GridRow.mjs";
|
|
34
|
+
import { gridProps as ei } from "./common.mjs";
|
|
35
|
+
import { GridHeaderSelectionCell as Qe } from "./header/GridHeaderSelectionCell.mjs";
|
|
36
|
+
import { GridNoRecords as Xe } from "./components/noRecords/GridNoRecords.mjs";
|
|
37
|
+
import { GridNoRecordsContainer as Ye } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
38
38
|
import { packageMetadata as te } from "./package-metadata.mjs";
|
|
39
|
-
import { pagerMessagesMap as
|
|
40
|
-
import { process as
|
|
41
|
-
import { KendoKey as
|
|
42
|
-
import { getVirtualCellsToRender as
|
|
43
|
-
const
|
|
39
|
+
import { pagerMessagesMap as Ze } from "./messages/messagesMap.mjs";
|
|
40
|
+
import { process as ti } from "@progress/kendo-data-query";
|
|
41
|
+
import { KendoKey as ii } from "./key.mjs";
|
|
42
|
+
import { getVirtualCellsToRender as si } from "./utils/virtualColumns.mjs";
|
|
43
|
+
const Ni = /* @__PURE__ */ pt({
|
|
44
44
|
name: "KendoGrid",
|
|
45
45
|
inheritAttrs: !1,
|
|
46
46
|
props: {
|
|
47
|
-
...
|
|
47
|
+
...ei,
|
|
48
48
|
toolbar: {
|
|
49
49
|
type: Object
|
|
50
50
|
},
|
|
@@ -89,18 +89,18 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
created() {
|
|
92
|
-
|
|
92
|
+
bt(te), this.showLicenseWatermark = $t(te), this.licenseMessage = Rt(te), this.initialHeight = null, this._columns = [], this.vsRef = new Vt(), this.dragLogic = new Ot(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Nt(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableBodyRef = null, this.tableRef = null, this.scrollHeightContainerRef = null, this.forceUpdateTimeout = void 0, this._gridId = Ne(), this._gridRoleElementId = Ne(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this._virtualSkipRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
|
|
93
93
|
},
|
|
94
94
|
mounted() {
|
|
95
95
|
var t, i;
|
|
96
96
|
this.setRefs();
|
|
97
|
-
const e =
|
|
97
|
+
const e = Ve(this._element);
|
|
98
98
|
this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((i = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : i.height) || null, this.resizeObserver = X && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
|
|
99
99
|
},
|
|
100
100
|
updated() {
|
|
101
101
|
var t;
|
|
102
102
|
this.setRefs();
|
|
103
|
-
const e =
|
|
103
|
+
const e = Ve(this._element);
|
|
104
104
|
this.isRtl = e, this._prevTotal = this.$props.total, this.vsRef.tableTransform && this.vsRef.table && (this.vsRef.table.style.transform = this.vsRef.tableTransform, this.vsRef.tableTransform = ""), this.isVirtualScroll && (this.setContainerHeight(), this.setMinRowHeight(), (t = this.vsRef) == null || t.update());
|
|
105
105
|
},
|
|
106
106
|
unmounted() {
|
|
@@ -114,16 +114,16 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
114
114
|
return this.$props.navigatable ? this.gridId : "";
|
|
115
115
|
},
|
|
116
116
|
groupExpandable() {
|
|
117
|
-
return
|
|
117
|
+
return _t(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
|
|
118
118
|
},
|
|
119
119
|
hierarchClass() {
|
|
120
|
-
return
|
|
120
|
+
return Ct.hierarchyCell({});
|
|
121
121
|
},
|
|
122
122
|
computedRowSpannable() {
|
|
123
|
-
return
|
|
123
|
+
return qe(this.$props.rowSpannable);
|
|
124
124
|
},
|
|
125
125
|
detailExpandable() {
|
|
126
|
-
return
|
|
126
|
+
return kt(!!this.$props.detail);
|
|
127
127
|
},
|
|
128
128
|
nonscrollableWrapperClass() {
|
|
129
129
|
const {
|
|
@@ -132,7 +132,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
132
132
|
return {
|
|
133
133
|
"k-grid": !0,
|
|
134
134
|
"k-grid-md": !e,
|
|
135
|
-
[`k-grid-${
|
|
135
|
+
[`k-grid-${Ae.sizeMap[e] || e}`]: e,
|
|
136
136
|
[t]: !!t
|
|
137
137
|
};
|
|
138
138
|
},
|
|
@@ -153,7 +153,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
153
153
|
"k-table": !0,
|
|
154
154
|
"k-grid-table": !0,
|
|
155
155
|
"k-grid-md": !e,
|
|
156
|
-
[`k-table-${
|
|
156
|
+
[`k-table-${Ae.sizeMap[e] || e}`]: e
|
|
157
157
|
};
|
|
158
158
|
},
|
|
159
159
|
getCorrectHeight() {
|
|
@@ -189,7 +189,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
189
189
|
},
|
|
190
190
|
methods: {
|
|
191
191
|
readColumnElements() {
|
|
192
|
-
return
|
|
192
|
+
return Xt(this.$props.columns, this.currentColumnsState, {
|
|
193
193
|
prevId: 0,
|
|
194
194
|
idPrefix: this.idPrefix
|
|
195
195
|
});
|
|
@@ -215,7 +215,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
215
215
|
})];
|
|
216
216
|
},
|
|
217
217
|
getFlatData(e, t, i, s, r, l, d) {
|
|
218
|
-
const h = [], c =
|
|
218
|
+
const h = [], c = Qt(h, e, t, {
|
|
219
219
|
index: i
|
|
220
220
|
}, s !== void 0, r, l, this.groupExpandable.defaultExpand, d, this.$props.expandField);
|
|
221
221
|
return {
|
|
@@ -281,7 +281,7 @@ const Pi = /* @__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(),
|
|
284
|
+
this.dragLogic.refDropElementClue(s), this.dragLogic.refDragElementClue(r), this.columnResize.colGroupMain = $(this, "colGroup"), this._header = $(this, "header"), this._footer = $(this, "footer"), this.resetTableWidth(), mt();
|
|
285
285
|
},
|
|
286
286
|
gridUnmounted() {
|
|
287
287
|
clearTimeout(this.forceUpdateTimeout), this.columnResize.columns = [], this.dragLogic.columns = [], this.dragLogic && this.dragLogic.dragElementClue && (this.dragLogic.dragElementClue.$el.remove(), this.dragLogic.dropElementClue.$el.remove()), this.currentData = [], this._columns = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect();
|
|
@@ -302,7 +302,7 @@ const Pi = /* @__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
|
|
305
|
+
e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, e.container = $(this, "scrollContainer"), e.tableBody = $(this, "tableBody"), e.scrollHeightContainer = $(this, "scrollHeightContainer"), e.table = $(this, "table"), (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new ft(this._virtualTotal, t)));
|
|
306
306
|
},
|
|
307
307
|
setContainerHeight() {
|
|
308
308
|
const e = $(this, "scrollContainer");
|
|
@@ -310,7 +310,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
310
310
|
},
|
|
311
311
|
setMinRowHeight() {
|
|
312
312
|
if (!this._minRowHeightRef && !this.$props.rowHeight) {
|
|
313
|
-
const t =
|
|
313
|
+
const t = Jt($(this, "tableBody"));
|
|
314
314
|
t && (this._minRowHeightRef = t, this.$forceUpdate());
|
|
315
315
|
}
|
|
316
316
|
},
|
|
@@ -345,7 +345,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
345
345
|
let t = this.computedCollapsed, i = t[e.level];
|
|
346
346
|
const s = this.$props.uniqueField, r = function(h, c) {
|
|
347
347
|
return h.value === e.dataItem.value && c === e.level;
|
|
348
|
-
}, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d =
|
|
348
|
+
}, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d = Je(l || e.dataItem, s);
|
|
349
349
|
if (e.value) {
|
|
350
350
|
if (i && i.length) {
|
|
351
351
|
const h = i.indexOf(d);
|
|
@@ -469,8 +469,8 @@ const Pi = /* @__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 =
|
|
473
|
-
this
|
|
472
|
+
const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, r = Ht(s != null ? s : {}, e);
|
|
473
|
+
this.gridContext.detailexpandchange({
|
|
474
474
|
...this.getArguments(t),
|
|
475
475
|
detailExpand: r
|
|
476
476
|
});
|
|
@@ -479,8 +479,8 @@ const Pi = /* @__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 =
|
|
483
|
-
this.$props.expandField || this
|
|
482
|
+
const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = yt(s != null ? s : [], e, this.groupExpandable);
|
|
483
|
+
this.$props.expandField || this.gridContext.groupexpandchange({
|
|
484
484
|
...this.getArguments(t),
|
|
485
485
|
groupExpand: r
|
|
486
486
|
});
|
|
@@ -510,7 +510,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
columnReorder(e, t, i) {
|
|
513
|
-
const s = this._columns[e], r =
|
|
513
|
+
const s = this._columns[e], r = je(this.currentColumnsState), l = s.depth, d = (u) => {
|
|
514
514
|
do
|
|
515
515
|
u++;
|
|
516
516
|
while (u < this._columns.length && this._columns[u].depth > l);
|
|
@@ -518,11 +518,11 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
518
518
|
}, h = this._columns.splice(e, d(e) - e);
|
|
519
519
|
this._columns.splice(e < t ? d(t - h.length) : t, 0, ...h), this._columns.filter((u) => u.declarationIndex >= 0).forEach((u, m) => {
|
|
520
520
|
u.orderIndex = m;
|
|
521
|
-
const R = r.find((
|
|
521
|
+
const R = r.find((x) => x.id === u.id);
|
|
522
522
|
R && (R.orderIndex = m);
|
|
523
523
|
});
|
|
524
524
|
const c = this._columns[e].locked && this._columns[t].locked;
|
|
525
|
-
|
|
525
|
+
wt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), St(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
|
|
526
526
|
const f = this.getColumns();
|
|
527
527
|
this.$emit("columnreorder", {
|
|
528
528
|
target: this,
|
|
@@ -595,11 +595,11 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
595
595
|
},
|
|
596
596
|
configureColumns(e, t) {
|
|
597
597
|
e.filter((l) => l.columnType === "checkbox").forEach((l) => {
|
|
598
|
-
l.width = l.width || "50px", l.defaultCell = E(
|
|
598
|
+
l.width = l.width || "50px", l.defaultCell = E(Ue), l.defaultHeaderCell = E(Qe), l._type = "edit";
|
|
599
599
|
}), this.$props.selectedField && this._columns.filter((l) => l.field === this.$props.selectedField).forEach((l) => {
|
|
600
|
-
l.width = l.width || "50px", l.internalCell = E(
|
|
600
|
+
l.width = l.width || "50px", l.internalCell = E(Ue), l.internalHeaderCell = E(Qe);
|
|
601
601
|
});
|
|
602
|
-
const i =
|
|
602
|
+
const i = je(this.currentColumnsState);
|
|
603
603
|
this.initColumnsState(e, i);
|
|
604
604
|
const s = {
|
|
605
605
|
id: "",
|
|
@@ -655,21 +655,21 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
655
655
|
e.unshift(d), this.currentColumnsState.unshift(i.find((h) => h.id === d.id) || d);
|
|
656
656
|
}
|
|
657
657
|
e.slice(r).forEach((l) => {
|
|
658
|
-
l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ?
|
|
658
|
+
l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ? qe(l.rowSpannable) : this.computedRowSpannable;
|
|
659
659
|
});
|
|
660
660
|
},
|
|
661
661
|
initColumns(e, t) {
|
|
662
662
|
var l;
|
|
663
663
|
this._columns = this.readColumnElements();
|
|
664
664
|
const i = (l = this.gridContext.group) == null ? void 0 : l.value;
|
|
665
|
-
this._columns.filter((d) => !d.hidden).length === 0 && (this._columns =
|
|
665
|
+
this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = jt(e, i, {
|
|
666
666
|
column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
|
|
667
667
|
}, {
|
|
668
668
|
prevId: 0,
|
|
669
669
|
idPrefix: this.idPrefix
|
|
670
670
|
})), this.configureColumns(this._columns, t);
|
|
671
671
|
const [s, r] = this.filterColumns(this._columns);
|
|
672
|
-
this._columns = s, this.hiddenColumnsRef = r, this._columnsMap =
|
|
672
|
+
this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = qt(this._columns, !0);
|
|
673
673
|
},
|
|
674
674
|
resolveTitle(e) {
|
|
675
675
|
const t = this.findColumnByField(e), i = t && (t.title || t.field);
|
|
@@ -755,7 +755,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
755
755
|
r--, s && (s.width += c);
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const f = Math.min(
|
|
758
|
+
const f = Math.min(Bt(d, e), t.length - h);
|
|
759
759
|
r = f - 1, s = {
|
|
760
760
|
width: c,
|
|
761
761
|
colSpan: f,
|
|
@@ -763,7 +763,7 @@ const Pi = /* @__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
|
|
766
|
+
return si({
|
|
767
767
|
cellModels: i,
|
|
768
768
|
columns: t,
|
|
769
769
|
tableViewPortWidth: h,
|
|
@@ -801,7 +801,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
801
801
|
};
|
|
802
802
|
},
|
|
803
803
|
setup(e) {
|
|
804
|
-
const t =
|
|
804
|
+
const t = v(null), i = v(null), s = v(null), r = v(null), l = v(null), d = v(null), h = v(null), c = v(null), f = v(null), u = v(null), m = v(!0), R = v(!1), x = ut(ii, {});
|
|
805
805
|
return {
|
|
806
806
|
groupPanelDivRef: t,
|
|
807
807
|
dropElementClueRef: i,
|
|
@@ -813,14 +813,14 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
813
813
|
scrollContainerRef: c,
|
|
814
814
|
scrollTableRef: f,
|
|
815
815
|
scrollTableBodyRef: u,
|
|
816
|
-
gridContext:
|
|
816
|
+
gridContext: x,
|
|
817
817
|
shouldUpdateLeftRightRef: m,
|
|
818
818
|
resizedRef: R,
|
|
819
819
|
currentColumnsState: e.columnsState
|
|
820
820
|
};
|
|
821
821
|
},
|
|
822
822
|
render() {
|
|
823
|
-
var fe, me, Ce, be, $e, Re, xe, ve, Ie, we;
|
|
823
|
+
var fe, me, Ce, be, $e, Re, xe, ve, Ie, we, Se, ye, He, ke;
|
|
824
824
|
const e = (fe = this.gridContext.sort) == null ? void 0 : fe.value, t = (me = this.gridContext.filter) == null ? void 0 : me.value, i = (Ce = this.gridContext.search) == null ? void 0 : Ce.value, s = (be = this.gridContext.skip) == null ? void 0 : be.value, r = ($e = this.gridContext.take) == null ? void 0 : $e.value, l = (Re = this.gridContext.group) == null ? void 0 : Re.value, d = (xe = this.gridContext.groupExpand) == null ? void 0 : xe.value, h = (ve = this.gridContext.detailExpand) == null ? void 0 : ve.value, c = !!(l != null && l.length);
|
|
825
825
|
let f;
|
|
826
826
|
this.currentColumnsState = (Ie = this.gridContext.columnsState) == null ? void 0 : Ie.value;
|
|
@@ -831,33 +831,33 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
831
831
|
search: !0,
|
|
832
832
|
page: !0
|
|
833
833
|
} : this.$props.autoProcessData;
|
|
834
|
-
let m
|
|
834
|
+
let m;
|
|
835
835
|
const R = z.getIdPrefix(this.navigation);
|
|
836
|
-
let
|
|
837
|
-
Array.isArray(this.$props.dataItems) ?
|
|
836
|
+
let x = [];
|
|
837
|
+
Array.isArray(this.$props.dataItems) ? (x = this.$props.dataItems, m = (we = this.$props.total) != null ? we : x.length) : (x = ((Se = Ut(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : Se.data) || [], m = (ke = (He = this.$props.total) != null ? He : (ye = this.$props.dataItems) == null ? void 0 : ye.total) != null ? ke : x.length);
|
|
838
838
|
const ie = this.$props.groupable === !0 || V(this.$props.groupable) && this.$props.groupable.enabled !== !1;
|
|
839
839
|
this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = ie, this._virtualPageSize = this.calcVirtualPageSize();
|
|
840
|
-
const N =
|
|
840
|
+
const N = x.length === m, et = V(this.$props.groupable) && this.$props.groupable.footer || "none";
|
|
841
841
|
if (this.currentData = [], u) {
|
|
842
842
|
const a = u.page && !(this.isVirtualScroll && !this.$props.pageable), {
|
|
843
843
|
data: C,
|
|
844
844
|
total: S
|
|
845
|
-
} =
|
|
845
|
+
} = ti(x, {
|
|
846
846
|
group: u.group ? l : void 0,
|
|
847
847
|
sort: u.sort ? e : void 0,
|
|
848
|
-
filter:
|
|
848
|
+
filter: xt(u.filter ? t : void 0, u.search ? i : void 0),
|
|
849
849
|
...a ? {
|
|
850
850
|
take: this.$props.pageable ? r || 10 : r,
|
|
851
851
|
skip: s || 0
|
|
852
852
|
} : {}
|
|
853
853
|
});
|
|
854
|
-
|
|
854
|
+
x = C, m = S;
|
|
855
855
|
}
|
|
856
856
|
const {
|
|
857
|
-
resolvedGroupsCount:
|
|
858
|
-
flattedData:
|
|
859
|
-
} = this.getFlatData(
|
|
860
|
-
this.currentData =
|
|
857
|
+
resolvedGroupsCount: tt,
|
|
858
|
+
flattedData: it
|
|
859
|
+
} = this.getFlatData(x, et, N ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
|
|
860
|
+
this.currentData = it;
|
|
861
861
|
const O = this._virtualSkipRef || 0;
|
|
862
862
|
if (this._virtualTotal = m, this.isVirtualScroll) {
|
|
863
863
|
let a = s || 0;
|
|
@@ -868,8 +868,8 @@ const Pi = /* @__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,
|
|
872
|
-
const se = this.$props.toolbar, M = this.$props.noRecords, k = this._columns.filter((a) => a.children.length === 0), re = ie && n(
|
|
871
|
+
this.initializeVirtualization(), this.initColumns(this.$props.dataItems, tt), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = ct(this.currentColumnsState || []), this.dragLogic.columns = this._columns;
|
|
872
|
+
const se = this.$props.toolbar, M = this.$props.noRecords, k = this._columns.filter((a) => a.children.length === 0), re = ie && n(Pt, {
|
|
873
873
|
ref: (a) => {
|
|
874
874
|
this.groupPanelDivRef = a;
|
|
875
875
|
},
|
|
@@ -880,18 +880,18 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
880
880
|
onDragHandler: this.dragLogic.dragHandler,
|
|
881
881
|
onReleaseHandler: this.dragLogic.releaseHandler,
|
|
882
882
|
resolveTitle: this.resolveTitle
|
|
883
|
-
}, null), le = (this.dragLogic.reorderable || this.dragLogic.groupable) && X && document && document.body, ae = [le && n(
|
|
883
|
+
}, null), le = (this.dragLogic.reorderable || this.dragLogic.groupable) && X && document && document.body, ae = [le && n(Kt, {
|
|
884
884
|
ref: (a) => {
|
|
885
885
|
this.dropElementClueRef = a;
|
|
886
886
|
}
|
|
887
|
-
}, null), le && n(
|
|
887
|
+
}, null), le && n(Wt, {
|
|
888
888
|
ref: (a) => {
|
|
889
889
|
this.dragElementClueRef = a;
|
|
890
890
|
}
|
|
891
|
-
}, null)],
|
|
891
|
+
}, null)], st = this.showLicenseWatermark ? n(gt, {
|
|
892
892
|
message: this.licenseMessage
|
|
893
|
-
}, null) : null, W = this.$attrs.style,
|
|
894
|
-
this.tableWidth = parseFloat(
|
|
893
|
+
}, null) : null, W = this.$attrs.style, rt = W && V(W) && W["width"] || "";
|
|
894
|
+
this.tableWidth = parseFloat(rt.toString());
|
|
895
895
|
const oe = k.findIndex((a) => typeof a.colSpan == "function") > -1;
|
|
896
896
|
let F;
|
|
897
897
|
oe || (F = this.getCellsToRender(null, k));
|
|
@@ -902,14 +902,14 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
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), de = n(
|
|
905
|
+
}, this), de = n(Gt, {
|
|
906
906
|
size: this.$props.size,
|
|
907
907
|
columnResize: this.columnResize,
|
|
908
908
|
staticHeaders: this.$props.scrollable !== "none",
|
|
909
909
|
ref: (a) => {
|
|
910
910
|
this.headerRef = a;
|
|
911
911
|
},
|
|
912
|
-
headerRow: n(
|
|
912
|
+
headerRow: n(Ft, {
|
|
913
913
|
grid: this,
|
|
914
914
|
sort: e,
|
|
915
915
|
groupable: this.$props.groupable,
|
|
@@ -918,7 +918,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
918
918
|
onSortChange: this.sortChangeHandler,
|
|
919
919
|
filter: t,
|
|
920
920
|
filterable: this.$props.filterable,
|
|
921
|
-
filterOperators: this.$props.filterOperators ||
|
|
921
|
+
filterOperators: this.$props.filterOperators || Be,
|
|
922
922
|
onFilterChange: this.filterChangeHandler,
|
|
923
923
|
columnMenu: this.$props.columnMenu,
|
|
924
924
|
columnMenuIcon: this.$props.columnMenuIcon,
|
|
@@ -936,14 +936,14 @@ const Pi = /* @__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(
|
|
939
|
+
filterRow: this.$props.filterable && n(Lt, {
|
|
940
940
|
grid: this,
|
|
941
941
|
size: this.$props.size,
|
|
942
942
|
columns: this._columns,
|
|
943
943
|
cellsToRender: F,
|
|
944
944
|
columnVirtualization: this.$props.columnVirtualization,
|
|
945
945
|
filter: t,
|
|
946
|
-
filterOperators: this.$props.filterOperators ||
|
|
946
|
+
filterOperators: this.$props.filterOperators || Be,
|
|
947
947
|
onFilterchange: this.filterChangeHandler,
|
|
948
948
|
sort: this.$props.sort,
|
|
949
949
|
cellRender: this.$props.filterCellRender,
|
|
@@ -952,36 +952,36 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
952
952
|
}, null) || void 0
|
|
953
953
|
}, null),
|
|
954
954
|
cols: ne
|
|
955
|
-
}, null), he = this._columns.some((a) => !!a.footerCell) ? n(
|
|
955
|
+
}, null), he = this._columns.some((a) => !!a.footerCell) ? n(Mt, {
|
|
956
956
|
size: this.$props.size,
|
|
957
957
|
columnResize: this.columnResize,
|
|
958
958
|
staticHeaders: this.$props.scrollable !== "none",
|
|
959
959
|
ref: (a) => {
|
|
960
960
|
this.footerRef = a;
|
|
961
961
|
},
|
|
962
|
-
row: n(
|
|
962
|
+
row: n(At, {
|
|
963
963
|
isRtl: this.isRtl,
|
|
964
964
|
rowIndex: this.getAriaRowCount + 1,
|
|
965
965
|
columns: this._columns
|
|
966
966
|
}, null),
|
|
967
967
|
cols: ne
|
|
968
|
-
}, null) : n("span", null, null),
|
|
968
|
+
}, null) : n("span", null, null), lt = function(a, C, S, _e, _) {
|
|
969
969
|
let p = !1;
|
|
970
|
-
const T = this.$props.selectedField, y = T ?
|
|
970
|
+
const T = this.$props.selectedField, y = T ? Oe(T, a.dataItem) : void 0, I = this.$props.highlight && this.$props.dataItemKey && Y(this.$props.dataItemKey)(a.dataItem) !== void 0 ? this.$props.highlight[Y(this.$props.dataItemKey)(a.dataItem)] : void 0;
|
|
971
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
|
|
976
|
+
var Te, De, Ge, Fe;
|
|
977
977
|
const o = k[b];
|
|
978
|
-
let
|
|
979
|
-
if ((
|
|
980
|
-
const g = o.field ? (
|
|
981
|
-
|
|
978
|
+
let w;
|
|
979
|
+
if ((Te = o.rowSpannable) != null && Te.enabled && a.rowType === "data" && o.field && _) {
|
|
980
|
+
const g = o.field ? (Ge = (De = o.rowSpannable).valueGetter) == null ? void 0 : Ge.call(De, a.dataItem, o.field) : null;
|
|
981
|
+
w = {
|
|
982
982
|
value: g,
|
|
983
983
|
count: 1
|
|
984
|
-
}, _[o.field] && ((
|
|
984
|
+
}, _[o.field] && ((Fe = _[o.field]) == null ? void 0 : Fe.value) === g && _[o.field] !== null ? (_[o.field].count++, w.count = null) : _[o.field] = w;
|
|
985
985
|
}
|
|
986
986
|
const L = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.locked && o.left !== void 0 ? this.isRtl ? {
|
|
987
987
|
left: o.right + "px",
|
|
@@ -990,14 +990,14 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
990
990
|
left: o.left + "px",
|
|
991
991
|
right: o.right + "px"
|
|
992
992
|
} : void 0;
|
|
993
|
-
let
|
|
993
|
+
let Ee = !1;
|
|
994
994
|
if (o.editable && this.$props.editField) {
|
|
995
|
-
const g =
|
|
996
|
-
(g === !0 || g === o.field) && (p = !0,
|
|
995
|
+
const g = Oe(this.$props.editField, a.dataItem);
|
|
996
|
+
(g === !0 || g === o.field) && (p = !0, Ee = !0);
|
|
997
997
|
}
|
|
998
998
|
let A;
|
|
999
999
|
o.cell && (A = o.cell);
|
|
1000
|
-
const
|
|
1000
|
+
const ze = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Je(a.dataItem, this.$props.uniqueField)), q = o.id ? o.id : b, J = ze ? !ze : a.expanded || a.dataItem.expanded, ht = o._type === "expand", Q = z.generateNavigatableId(`${C}-${String(b)}`, R, ht || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
|
|
1001
1001
|
return o.internalCell ? n(o.internalCell, {
|
|
1002
1002
|
key: q,
|
|
1003
1003
|
id: Q,
|
|
@@ -1027,10 +1027,10 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1027
1027
|
ariaColumnIndex: o.ariaColumnIndex,
|
|
1028
1028
|
isRtl: this.isRtl,
|
|
1029
1029
|
isSelected: Array.isArray(y) && y.indexOf(b) > -1,
|
|
1030
|
-
isHighlighted: !!(typeof
|
|
1030
|
+
isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0),
|
|
1031
1031
|
group: a.group,
|
|
1032
|
-
rowSpan:
|
|
1033
|
-
}, null) :
|
|
1032
|
+
rowSpan: w
|
|
1033
|
+
}, null) : Ee ? n(Dt, {
|
|
1034
1034
|
id: Q,
|
|
1035
1035
|
key: q,
|
|
1036
1036
|
colSpan: D,
|
|
@@ -1054,7 +1054,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1054
1054
|
expanded: J,
|
|
1055
1055
|
dataIndex: a.dataIndex,
|
|
1056
1056
|
style: H
|
|
1057
|
-
}, null) : n(
|
|
1057
|
+
}, null) : n(Yt, {
|
|
1058
1058
|
key: q,
|
|
1059
1059
|
id: Q,
|
|
1060
1060
|
colSpan: D,
|
|
@@ -1086,22 +1086,22 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1086
1086
|
expanded: J,
|
|
1087
1087
|
dataIndex: a.dataIndex,
|
|
1088
1088
|
style: H,
|
|
1089
|
-
rowSpan:
|
|
1089
|
+
rowSpan: w,
|
|
1090
1090
|
isSelected: Array.isArray(y) && y.indexOf(b) > -1,
|
|
1091
|
-
isHighlighted: !!(typeof
|
|
1091
|
+
isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0)
|
|
1092
1092
|
}, null);
|
|
1093
1093
|
}, this),
|
|
1094
1094
|
isInEdit: p,
|
|
1095
1095
|
isSelected: typeof y == "boolean" && y,
|
|
1096
|
-
isHighlighted: typeof
|
|
1096
|
+
isHighlighted: typeof I == "boolean" && I
|
|
1097
1097
|
};
|
|
1098
1098
|
};
|
|
1099
|
-
let
|
|
1100
|
-
const U = !this.currentData.length, pe = (a) => a >= this.currentData.length -
|
|
1099
|
+
let at = 0, K = [];
|
|
1100
|
+
const U = !this.currentData.length, pe = (a) => a >= this.currentData.length - at;
|
|
1101
1101
|
let B = 0;
|
|
1102
1102
|
if (this.currentData.length) {
|
|
1103
1103
|
const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
|
|
1104
|
-
let C = this.$props.skip || 0, S = -1,
|
|
1104
|
+
let C = this.$props.skip || 0, S = -1, _e = 0;
|
|
1105
1105
|
const _ = this.computedRowSpannable.enabled ? {} : void 0;
|
|
1106
1106
|
if (this.isVirtualScroll) {
|
|
1107
1107
|
if (O > 0) {
|
|
@@ -1112,8 +1112,8 @@ const Pi = /* @__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,
|
|
1116
|
-
return B = b + a +
|
|
1115
|
+
const y = p.dataIndex % 2 !== 0, I = this.$props.dataItemKey && Y(this.$props.dataItemKey)(p.dataItem), b = T + C, D = I || "ai" + b, o = D + "_1", w = lt.call(this, p, D, S, y, _), L = k.length - (this.detailExpandable.enabled ? 1 : 0) - ((l == null ? void 0 : l.length) || 0) || 1;
|
|
1116
|
+
return B = b + a + _e, [n(Zt, {
|
|
1117
1117
|
key: D,
|
|
1118
1118
|
item: p,
|
|
1119
1119
|
dataIndex: S,
|
|
@@ -1122,16 +1122,16 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1122
1122
|
isAltRow: y,
|
|
1123
1123
|
isHidden: pe(T),
|
|
1124
1124
|
rowHeight: this.$props.rowHeight,
|
|
1125
|
-
isSelected:
|
|
1126
|
-
isHighlighted:
|
|
1127
|
-
isInEdit:
|
|
1125
|
+
isSelected: w.isSelected,
|
|
1126
|
+
isHighlighted: w.isHighlighted,
|
|
1127
|
+
isInEdit: w.isInEdit,
|
|
1128
1128
|
rowType: p.rowType,
|
|
1129
1129
|
onRowclick: (H) => this.rowClick(H, p),
|
|
1130
1130
|
onRowdblclick: (H) => this.rowDoubleClick(H, p),
|
|
1131
1131
|
render: this.$props.rowRender,
|
|
1132
1132
|
class: this.$props.rowClass ? this.$props.rowClass(p) : ""
|
|
1133
1133
|
}, {
|
|
1134
|
-
default: () => [
|
|
1134
|
+
default: () => [w.row]
|
|
1135
1135
|
}), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && n("tr", {
|
|
1136
1136
|
key: o,
|
|
1137
1137
|
class: y ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
|
|
@@ -1150,9 +1150,9 @@ const Pi = /* @__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(
|
|
1153
|
+
}, this), (this.$props.expandField || this.detailExpandable.enabled) && n(zt, {
|
|
1154
1154
|
id: z.generateNavigatableId(`${o}-dhcell`, R)
|
|
1155
|
-
}, null), n(
|
|
1155
|
+
}, null), n(Tt, {
|
|
1156
1156
|
dataItem: p.dataItem,
|
|
1157
1157
|
dataIndex: p.dataIndex,
|
|
1158
1158
|
colSpan: L,
|
|
@@ -1162,7 +1162,7 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1162
1162
|
}, null)])];
|
|
1163
1163
|
}, this);
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const ot = this.$props.pageable && n(vt, {
|
|
1166
1166
|
class: "k-grid-pager",
|
|
1167
1167
|
onPagesizechange: this.pageChangeHandler,
|
|
1168
1168
|
onPagechange: this.pageChangeHandler,
|
|
@@ -1170,33 +1170,33 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1170
1170
|
total: m,
|
|
1171
1171
|
skip: s || 0,
|
|
1172
1172
|
pageSize: (r !== void 0 ? r : this.$props.pageSize) || 10,
|
|
1173
|
-
messagesMap:
|
|
1174
|
-
settings:
|
|
1175
|
-
}, null), ue =
|
|
1176
|
-
h:
|
|
1173
|
+
messagesMap: Ze,
|
|
1174
|
+
settings: It(this.$props.pageable || {})
|
|
1175
|
+
}, null), ue = Me.call(this, {
|
|
1176
|
+
h: Le,
|
|
1177
1177
|
template: this.$props.pager,
|
|
1178
|
-
defaultRendering:
|
|
1178
|
+
defaultRendering: ot,
|
|
1179
1179
|
additionalProps: {
|
|
1180
1180
|
...this.$props,
|
|
1181
1181
|
skip: this.$props.skip || 0,
|
|
1182
|
-
messagesMap:
|
|
1182
|
+
messagesMap: Ze
|
|
1183
1183
|
},
|
|
1184
1184
|
additionalListeners: {
|
|
1185
1185
|
pagesizechange: this.pageChangeHandler,
|
|
1186
1186
|
pagechange: this.pageChangeHandler
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), nt = (a) => e && e.filter((C) => C.field === a).length > 0, ce = n("colgroup", {
|
|
1189
1189
|
ref: G(this, "colGroup")
|
|
1190
1190
|
}, [k.map(function(a, C) {
|
|
1191
1191
|
return n("col", {
|
|
1192
1192
|
key: a.id || `col-${C}`,
|
|
1193
|
-
class:
|
|
1193
|
+
class: nt(a.field) ? "k-sorted" : void 0,
|
|
1194
1194
|
width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
|
|
1195
1195
|
}, null);
|
|
1196
1196
|
}, this)]), ge = {
|
|
1197
1197
|
height: this.getCorrectHeight,
|
|
1198
1198
|
...this.$attrs.style
|
|
1199
|
-
},
|
|
1199
|
+
}, dt = n("div", {
|
|
1200
1200
|
class: "k-loading-mask"
|
|
1201
1201
|
}, [n("div", {
|
|
1202
1202
|
class: "k-loading-color"
|
|
@@ -1207,20 +1207,20 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1207
1207
|
justifyContent: "center",
|
|
1208
1208
|
alignItems: "center"
|
|
1209
1209
|
}
|
|
1210
|
-
}, [n(
|
|
1210
|
+
}, [n(Et, {
|
|
1211
1211
|
size: "large",
|
|
1212
1212
|
type: "converging-spinner"
|
|
1213
|
-
}, null)])]), j = this.$props.showLoader &&
|
|
1214
|
-
h:
|
|
1213
|
+
}, null)])]), j = this.$props.showLoader && Me.call(this, {
|
|
1214
|
+
h: Le,
|
|
1215
1215
|
template: this.$props.loader,
|
|
1216
|
-
defaultRendering:
|
|
1216
|
+
defaultRendering: dt
|
|
1217
1217
|
});
|
|
1218
|
-
return this.$props.scrollable === "none" ? n(
|
|
1218
|
+
return this.$props.scrollable === "none" ? n(We, {
|
|
1219
1219
|
ref: "navRef",
|
|
1220
1220
|
id: this._gridId,
|
|
1221
1221
|
navigatable: this.$props.navigatable
|
|
1222
1222
|
}, {
|
|
1223
|
-
default: () => [n(
|
|
1223
|
+
default: () => [n(Ke, {
|
|
1224
1224
|
ref: (a) => {
|
|
1225
1225
|
this.gridNavRef = a;
|
|
1226
1226
|
},
|
|
@@ -1242,21 +1242,21 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1242
1242
|
},
|
|
1243
1243
|
ref: G(this, "table"),
|
|
1244
1244
|
role: "none"
|
|
1245
|
-
}, [
|
|
1245
|
+
}, [Pe(" "), ce, de, n("tbody", {
|
|
1246
1246
|
class: "k-table-tbody",
|
|
1247
1247
|
"data-keyboardnavbody": !0
|
|
1248
|
-
}, [K,
|
|
1248
|
+
}, [K, Pe(" "), j]), he]), U && n(Ye, {
|
|
1249
1249
|
id: z.generateNavigatableId("no-records", R)
|
|
1250
1250
|
}, {
|
|
1251
|
-
default: () => [M.length ? M : n(
|
|
1251
|
+
default: () => [M.length ? M : n(Xe, null, null)]
|
|
1252
1252
|
})]), ue, j, ae]
|
|
1253
1253
|
})]
|
|
1254
|
-
}) : n(
|
|
1254
|
+
}) : n(We, {
|
|
1255
1255
|
ref: "navRef",
|
|
1256
1256
|
id: this._gridId,
|
|
1257
1257
|
navigatable: this.$props.navigatable
|
|
1258
1258
|
}, {
|
|
1259
|
-
default: () => [n(
|
|
1259
|
+
default: () => [n(Ke, {
|
|
1260
1260
|
ref: (a) => {
|
|
1261
1261
|
this.gridNavRef = a;
|
|
1262
1262
|
},
|
|
@@ -1291,10 +1291,10 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1291
1291
|
role: "rowgroup",
|
|
1292
1292
|
"data-keyboardnavbody": !0,
|
|
1293
1293
|
ref: G(this, "tableBody")
|
|
1294
|
-
}, [K])]), U && n(
|
|
1294
|
+
}, [K])]), U && n(Ye, {
|
|
1295
1295
|
id: z.generateNavigatableId("no-records", R)
|
|
1296
1296
|
}, {
|
|
1297
|
-
default: () => [M.length ? M : n(
|
|
1297
|
+
default: () => [M.length ? M : n(Xe, null, null)]
|
|
1298
1298
|
})]), !U && n("div", {
|
|
1299
1299
|
class: "k-height-container",
|
|
1300
1300
|
role: "presentation"
|
|
@@ -1303,11 +1303,11 @@ const Pi = /* @__PURE__ */ ot({
|
|
|
1303
1303
|
style: this.$props.scrollable === "virtual" ? {
|
|
1304
1304
|
height: this._containerHeightRef + "px"
|
|
1305
1305
|
} : {}
|
|
1306
|
-
}, null)])])]), he,
|
|
1306
|
+
}, null)])])]), he, st]), ue, j, ae]
|
|
1307
1307
|
})]
|
|
1308
1308
|
});
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
export {
|
|
1312
|
-
|
|
1312
|
+
Ni as Grid
|
|
1313
1313
|
};
|