@progress/kendo-vue-grid 8.3.0-develop.2 → 8.3.0-develop.3
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.d.ts +9 -1
- package/Grid.js +1 -1
- package/Grid.mjs +578 -529
- package/GridNav.d.ts +2 -0
- package/GridNav.js +1 -1
- package/GridNav.mjs +15 -13
- package/GridState.d.ts +6 -0
- package/GridToolbar.d.ts +0 -1
- package/RootGrid.d.ts +7 -2
- package/ScrollMode.d.ts +5 -0
- package/StatusBar.d.ts +15 -6
- package/columnMenu/GridColumnMenuSort.d.ts +2 -0
- package/common.d.ts +3 -0
- package/common.js +1 -1
- package/common.mjs +4 -1
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/interfaces/GridCellsSettings.d.ts +4 -0
- package/interfaces/GridProps.d.ts +33 -1
- package/interfaces/GridToolbarProps.d.ts +2 -0
- package/key.d.ts +4 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/paging/GridPagerSettings.d.ts +3 -0
- package/paging/Page.d.ts +5 -0
package/Grid.mjs
CHANGED
|
@@ -5,53 +5,53 @@
|
|
|
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
|
|
10
|
-
import { tableKeyboardNavigationTools as
|
|
11
|
-
import { Loader as
|
|
12
|
-
import { GridNav as
|
|
13
|
-
import { GridSelectionCell as
|
|
14
|
-
import { GridHierarchyCell as
|
|
15
|
-
import { GridDetailHierarchyCell as
|
|
16
|
-
import { GridDetailCell as
|
|
17
|
-
import { Header as
|
|
18
|
-
import { HeaderRow as
|
|
19
|
-
import { FilterRow as
|
|
20
|
-
import { GroupPanel as
|
|
21
|
-
import { Footer as
|
|
22
|
-
import { FooterRow as
|
|
23
|
-
import { GridTable as
|
|
24
|
-
import { GridTableScrollable as
|
|
25
|
-
import { operators as
|
|
26
|
-
import { VirtualScroll as
|
|
27
|
-
import { ColumnResize as
|
|
28
|
-
import { CommonDragLogic as
|
|
29
|
-
import { DragClue as
|
|
30
|
-
import { DropClue as
|
|
31
|
-
import { applyExpandedState as
|
|
32
|
-
import { GridGroupCell as
|
|
33
|
-
import { GridRow as
|
|
34
|
-
import { gridProps as
|
|
35
|
-
import { GridHeaderSelectionCell as
|
|
36
|
-
import { GridNoRecords as
|
|
37
|
-
import { GridNoRecordsContainer as
|
|
38
|
-
import { packageMetadata as
|
|
39
|
-
import { pagerMessagesMap as
|
|
40
|
-
import { process as
|
|
41
|
-
import { KendoKey as
|
|
42
|
-
import { getVirtualCellsToRender as
|
|
43
|
-
import { StickyGroupTable as
|
|
44
|
-
import { getRowContents as
|
|
45
|
-
import { useStickyGroups as
|
|
46
|
-
import { PinnedRowsTable as
|
|
47
|
-
import { GridPinCell as
|
|
48
|
-
import { contextMenuItemsMap as
|
|
49
|
-
import { GridContextMenuItemNames as J, GridContextMenuAnchorPart as
|
|
50
|
-
const
|
|
8
|
+
import { defineComponent as bt, createVNode as d, h as Le, Fragment as Ke, createTextVNode as St, ref as R, inject as It, computed as _e, markRaw as H } from "vue";
|
|
9
|
+
import { isObject as q, cloneArray as xt, canUseDOM as B, WatermarkOverlay as $t, getter as M, getTemplate as Ae, setRef as y, hasListener as L, getComponentElementRef as Be, getRef as S, RowHeightService as wt, setScrollbarWidth as vt, kendoThemeMaps as Ve, uGrid as yt, isRtl as Oe, validatePackage as kt, shouldShowValidationUI as Ht, getLicenseMessage as Tt, guid as Ne } from "@progress/kendo-vue-common";
|
|
10
|
+
import { tableKeyboardNavigationTools as E, combineFilters as Mt, Pager as Et, normalize as Pt, TableKeyboardNavigationProvider as We, HeaderCell as zt, updateLeft as Dt, updateRight as Gt, groupExpandReducer as Ft, detailExpandReducer as Lt, getSelectedState as Ue, getSelectedStateFromKeyDown as Kt, closestTagName as je, getColumnIndex as _t, getRowIndex as At, ClipboardActionType as he, populateClipboardData as Bt, getDetailExpandableOptions as Vt, getSelectionOptions as Ot, getGroupExpandableOptions as Nt, ClipboardService as qe } from "@progress/kendo-vue-data-tools";
|
|
11
|
+
import { Loader as Wt } from "@progress/kendo-vue-indicators";
|
|
12
|
+
import { GridNav as Je } from "./GridNav.mjs";
|
|
13
|
+
import { GridSelectionCell as Xe } from "./cells/GridSelectionCell.mjs";
|
|
14
|
+
import { GridHierarchyCell as Ye } from "./cells/GridHierarchyCell.mjs";
|
|
15
|
+
import { GridDetailHierarchyCell as Ut } from "./cells/GridDetailHierarchyCell.mjs";
|
|
16
|
+
import { GridDetailCell as jt } from "./cells/GridDetailCell.mjs";
|
|
17
|
+
import { Header as qt } from "./header/Header.mjs";
|
|
18
|
+
import { HeaderRow as Jt } from "./header/HeaderRow.mjs";
|
|
19
|
+
import { FilterRow as Xt } from "./header/FilterRow.mjs";
|
|
20
|
+
import { GroupPanel as Yt } from "./header/GroupPanel.mjs";
|
|
21
|
+
import { Footer as Qt } from "./footer/Footer.mjs";
|
|
22
|
+
import { FooterRow as Zt } from "./footer/FooterRow.mjs";
|
|
23
|
+
import { GridTable as es } from "./components/table/GridTable.mjs";
|
|
24
|
+
import { GridTableScrollable as ts } from "./components/table/GridTableScrollable.mjs";
|
|
25
|
+
import { operators as Qe } from "./filterCommon.mjs";
|
|
26
|
+
import { VirtualScroll as ss } from "./VirtualScroll.mjs";
|
|
27
|
+
import { ColumnResize as is } from "./drag/ColumnResize.mjs";
|
|
28
|
+
import { CommonDragLogic as os } from "./drag/CommonDragLogic.mjs";
|
|
29
|
+
import { DragClue as ns } from "./drag/DragClue.mjs";
|
|
30
|
+
import { DropClue as rs } from "./drag/DropClue.mjs";
|
|
31
|
+
import { applyExpandedState as ls, getColSpan as as, autoGenerateColumns as ds, mapColumns as hs, getFlatColumnsState as Ze, getRowSpanOptions as et, getDataAsArray as cs, groupedFirstItemValue as ps, calcRowHeight as us, flatData as fs, readColumns as ms } from "./utils/main.mjs";
|
|
32
|
+
import { GridGroupCell as tt } from "./cells/GridGroupCell.mjs";
|
|
33
|
+
import { GridRow as gs } from "./rows/GridRow.mjs";
|
|
34
|
+
import { gridProps as Rs } from "./common.mjs";
|
|
35
|
+
import { GridHeaderSelectionCell as st } from "./header/GridHeaderSelectionCell.mjs";
|
|
36
|
+
import { GridNoRecords as it } from "./components/noRecords/GridNoRecords.mjs";
|
|
37
|
+
import { GridNoRecordsContainer as ot } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
38
|
+
import { packageMetadata as ce } from "./package-metadata.mjs";
|
|
39
|
+
import { pagerMessagesMap as nt } from "./messages/messagesMap.mjs";
|
|
40
|
+
import { process as Cs, orderBy as rt } from "@progress/kendo-data-query";
|
|
41
|
+
import { KendoKey as bs } from "./key.mjs";
|
|
42
|
+
import { getVirtualCellsToRender as Ss } from "./utils/virtualColumns.mjs";
|
|
43
|
+
import { StickyGroupTable as lt } from "./components/StickyGroupTable.mjs";
|
|
44
|
+
import { getRowContents as Is } from "./getRowContents.mjs";
|
|
45
|
+
import { useStickyGroups as xs } from "./hooks/useStickyGroups.mjs";
|
|
46
|
+
import { PinnedRowsTable as at } from "./components/PinnedRowsTable.mjs";
|
|
47
|
+
import { GridPinCell as $s } from "./cells/pincell/GridPinCell.mjs";
|
|
48
|
+
import { contextMenuItemsMap as ws, GridContextMenu as vs, getDefaultBodyContextMenuItems as ys, getDefaultHeadContextMenuItems as ks } from "./contextMenu/GridContextMenu.mjs";
|
|
49
|
+
import { GridContextMenuItemNames as J, GridContextMenuAnchorPart as dt } from "./contextMenu/enums.mjs";
|
|
50
|
+
const Ri = /* @__PURE__ */ bt({
|
|
51
51
|
name: "KendoGrid",
|
|
52
52
|
inheritAttrs: !1,
|
|
53
53
|
props: {
|
|
54
|
-
...
|
|
54
|
+
...Rs,
|
|
55
55
|
toolbar: {
|
|
56
56
|
type: Object
|
|
57
57
|
},
|
|
@@ -79,6 +79,9 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
79
79
|
};
|
|
80
80
|
},
|
|
81
81
|
watch: {
|
|
82
|
+
clipboard: function(e) {
|
|
83
|
+
e ? this.clipboardServiceRef || (this.clipboardServiceRef = new qe(this.handleClipboardEvent), this.clipboardServiceRef.addEventListeners(document)) : this.clipboardServiceRef && (this.clipboardServiceRef.removeEventListeners(document), this.clipboardServiceRef = null);
|
|
84
|
+
},
|
|
82
85
|
rowHeight: function(e, t) {
|
|
83
86
|
var s;
|
|
84
87
|
this.onRowHeightChanged(e, t), (s = this.vsRef) == null || s.reset();
|
|
@@ -105,24 +108,25 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
105
108
|
}
|
|
106
109
|
},
|
|
107
110
|
created() {
|
|
108
|
-
|
|
111
|
+
kt(ce), this.showLicenseWatermark = Ht(ce), this.licenseMessage = Tt(ce), this.initialHeight = null, this.columnsRef = [], this.dragLogic = new os(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new is(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = 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.wrapperScrollTopRef = 0, this.scrollLeftRef = 0, this.previousCopiedItems = [], this.clipboardServiceRef = null;
|
|
109
112
|
},
|
|
110
113
|
mounted() {
|
|
111
114
|
var t, s;
|
|
112
115
|
this.setRefs();
|
|
113
|
-
const e =
|
|
114
|
-
if (this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((s = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : s.height) || null, this.resizeObserver =
|
|
116
|
+
const e = Oe(this._element);
|
|
117
|
+
if (this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((s = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : s.height) || null, this.resizeObserver = B && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body), B) {
|
|
115
118
|
const i = {
|
|
116
119
|
rootMargin: "0px",
|
|
117
120
|
threshold: 0.9
|
|
118
121
|
};
|
|
119
122
|
this.observerRef = window.IntersectionObserver && new window.IntersectionObserver(this.handleIntersection, i) || null;
|
|
120
123
|
}
|
|
124
|
+
this.$props.clipboard && (this.clipboardServiceRef = new qe(this.handleClipboardEvent), this.clipboardServiceRef.addEventListeners(document));
|
|
121
125
|
},
|
|
122
126
|
updated() {
|
|
123
127
|
var s;
|
|
124
128
|
this.setRefs();
|
|
125
|
-
const e =
|
|
129
|
+
const e = Oe(this._element);
|
|
126
130
|
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 = "");
|
|
127
131
|
const t = this.updateStickyGroups();
|
|
128
132
|
this.sticky.headerItems = t == null ? void 0 : t.stickyHeaderItems, this.sticky.footerItems = t == null ? void 0 : t.stickyFooterItems, this.isVirtualScroll && (this.setContainerHeight(), this.setMinRowHeight(), (s = this.vsRef) == null || s.update());
|
|
@@ -138,19 +142,19 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
138
142
|
return this.$props.navigatable ? this.gridId : "";
|
|
139
143
|
},
|
|
140
144
|
groupExpandable() {
|
|
141
|
-
return
|
|
145
|
+
return Nt(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
|
|
142
146
|
},
|
|
143
147
|
hierarchClass() {
|
|
144
|
-
return
|
|
148
|
+
return yt.hierarchyCell({});
|
|
145
149
|
},
|
|
146
150
|
computedRowSpannable() {
|
|
147
|
-
return
|
|
151
|
+
return et(this.$props.rowSpannable);
|
|
148
152
|
},
|
|
149
153
|
computedSelectable() {
|
|
150
|
-
return
|
|
154
|
+
return Ot(this.$props.selectable);
|
|
151
155
|
},
|
|
152
156
|
detailExpandable() {
|
|
153
|
-
return
|
|
157
|
+
return Vt(!!this.$props.detail);
|
|
154
158
|
},
|
|
155
159
|
nonscrollableWrapperClass() {
|
|
156
160
|
const {
|
|
@@ -159,7 +163,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
159
163
|
return {
|
|
160
164
|
"k-grid": !0,
|
|
161
165
|
"k-grid-md": !e,
|
|
162
|
-
[`k-grid-${
|
|
166
|
+
[`k-grid-${Ve.sizeMap[e] || e}`]: e,
|
|
163
167
|
[t]: !!t
|
|
164
168
|
};
|
|
165
169
|
},
|
|
@@ -180,7 +184,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
180
184
|
"k-table": !0,
|
|
181
185
|
"k-grid-table": !0,
|
|
182
186
|
"k-grid-md": !e,
|
|
183
|
-
[`k-table-${
|
|
187
|
+
[`k-table-${Ve.sizeMap[e] || e}`]: e
|
|
184
188
|
};
|
|
185
189
|
},
|
|
186
190
|
getCorrectHeight() {
|
|
@@ -189,7 +193,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
189
193
|
currentGroupable() {
|
|
190
194
|
var t;
|
|
191
195
|
const e = (t = this.gridStateContext.group) == null ? void 0 : t.value;
|
|
192
|
-
return this.$props.groupable === !0 && (e == null ? void 0 : e.length) ||
|
|
196
|
+
return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || q(this.$props.groupable) && this.$props.groupable.enabled !== !1;
|
|
193
197
|
},
|
|
194
198
|
computedCollapsed() {
|
|
195
199
|
let e = [];
|
|
@@ -202,12 +206,12 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
202
206
|
getAriaRowCount() {
|
|
203
207
|
var s, i;
|
|
204
208
|
const e = this.$props.dataItems, t = this.$props.total || (e == null ? void 0 : e.total) || (e == null ? void 0 : e.length) || 0;
|
|
205
|
-
return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this.columnsRef.some((
|
|
206
|
-
var
|
|
207
|
-
return !!(
|
|
208
|
-
}) || (s = this.$props.cells) != null && s.footerCell ? 1 : 0) : !this.$props.pageable && this.$props.scrollable === "scrollable" ? void 0 : this.$props.groupable ? -1 : this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t + (this.columnsRef.some((
|
|
209
|
-
var
|
|
210
|
-
return !!(
|
|
209
|
+
return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this.columnsRef.some((o) => {
|
|
210
|
+
var n;
|
|
211
|
+
return !!(o.footerCell || (n = o.cells) != null && n.footerCell);
|
|
212
|
+
}) || (s = this.$props.cells) != null && s.footerCell ? 1 : 0) : !this.$props.pageable && this.$props.scrollable === "scrollable" ? void 0 : this.$props.groupable ? -1 : this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t + (this.columnsRef.some((o) => {
|
|
213
|
+
var n;
|
|
214
|
+
return !!(o.footerCell || (n = o.cells) != null && n.footerCell);
|
|
211
215
|
}) || (i = this.$props.cells) != null && i.footerCell ? 1 : 0);
|
|
212
216
|
},
|
|
213
217
|
// Calculates the value of the ariaColcount attribute.
|
|
@@ -228,12 +232,12 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
228
232
|
sortedPinnedTopRows() {
|
|
229
233
|
var s, i;
|
|
230
234
|
const e = ((s = this.gridStateContext.pinnedTopRows) == null ? void 0 : s.value) || [], t = (i = this.gridStateContext.sort) == null ? void 0 : i.value;
|
|
231
|
-
return this.autoProcessData && (t != null && t.length) ?
|
|
235
|
+
return this.autoProcessData && (t != null && t.length) ? rt([...e], t) : e;
|
|
232
236
|
},
|
|
233
237
|
sortedPinnedBottomRows() {
|
|
234
238
|
var s, i;
|
|
235
239
|
const e = ((s = this.gridStateContext.pinnedBottomRows) == null ? void 0 : s.value) || [], t = (i = this.gridStateContext.sort) == null ? void 0 : i.value;
|
|
236
|
-
return this.autoProcessData && (t != null && t.length) ?
|
|
240
|
+
return this.autoProcessData && (t != null && t.length) ? rt([...e], t) : e;
|
|
237
241
|
},
|
|
238
242
|
hasPinnedTopRows() {
|
|
239
243
|
return this.$props.pinnable && this.sortedPinnedTopRows.length > 0;
|
|
@@ -247,25 +251,26 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
247
251
|
headMenuItems() {
|
|
248
252
|
var t;
|
|
249
253
|
const e = this.$props.sortable && ((t = this.contextMenuColumn) == null ? void 0 : t.sortable);
|
|
250
|
-
return
|
|
254
|
+
return ks({
|
|
251
255
|
sortable: !!e,
|
|
252
256
|
selectable: this.computedSelectable.enabled
|
|
253
257
|
});
|
|
254
258
|
},
|
|
255
259
|
bodyMenuItems() {
|
|
256
260
|
var e;
|
|
257
|
-
return this.$props.sortable && ((e = this.contextMenuColumn) == null || e.sortable),
|
|
261
|
+
return this.$props.sortable && ((e = this.contextMenuColumn) == null || e.sortable), ys({
|
|
258
262
|
selectable: this.computedSelectable.enabled,
|
|
259
|
-
pinnable: !!this.$props.pinnable
|
|
263
|
+
pinnable: !!this.$props.pinnable,
|
|
264
|
+
clipboard: !!this.$props.clipboard
|
|
260
265
|
});
|
|
261
266
|
},
|
|
262
267
|
contextMenuItems() {
|
|
263
268
|
var s;
|
|
264
269
|
const e = ((s = this.contextMenuColumn) == null ? void 0 : s.contextMenu) || this.$props.contextMenu, t = typeof e == "function" ? e(this.contextMenuState) : e;
|
|
265
270
|
if (t && this.contextMenuState.offset) {
|
|
266
|
-
const i = this.contextMenuState.dataItem ?
|
|
271
|
+
const i = this.contextMenuState.dataItem ? dt.body : dt.head, o = t[i], n = this.contextMenuState.dataItem ? this.bodyMenuItems : this.headMenuItems;
|
|
267
272
|
let r;
|
|
268
|
-
return
|
|
273
|
+
return o === !0 || o === void 0 ? r = n : o !== !1 && (r = o), this.$props.pinnable && r && this.contextMenuState.dataItem ? this.filterPinContextMenuItems(r) : r;
|
|
269
274
|
}
|
|
270
275
|
}
|
|
271
276
|
},
|
|
@@ -301,6 +306,40 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
301
306
|
field: void 0
|
|
302
307
|
};
|
|
303
308
|
},
|
|
309
|
+
inActiveElement() {
|
|
310
|
+
var o;
|
|
311
|
+
if (!B)
|
|
312
|
+
return !1;
|
|
313
|
+
const e = document == null ? void 0 : document.activeElement;
|
|
314
|
+
let t = document == null ? void 0 : document.body;
|
|
315
|
+
e != null && e.matches(".k-table-td") && (t = e);
|
|
316
|
+
const s = t == null ? void 0 : t.closest(".k-grid-container"), i = t && ((o = this._element) == null ? void 0 : o.contains(t));
|
|
317
|
+
return !!(t && i && s);
|
|
318
|
+
},
|
|
319
|
+
handleClipboardEvent(e, t, s, i, o) {
|
|
320
|
+
var h, u, p;
|
|
321
|
+
if (!this.inActiveElement() && !s || !e)
|
|
322
|
+
return;
|
|
323
|
+
const n = {
|
|
324
|
+
type: e,
|
|
325
|
+
nativeEvent: t,
|
|
326
|
+
columns: this.columnsRef,
|
|
327
|
+
dataItemKey: this.$props.dataItemKey || "",
|
|
328
|
+
dataItem: i,
|
|
329
|
+
field: o,
|
|
330
|
+
...typeof this.$props.clipboard != "boolean" ? this.$props.clipboard : {},
|
|
331
|
+
...s
|
|
332
|
+
}, r = this.getLeafDataItems(), l = Bt({
|
|
333
|
+
event: n,
|
|
334
|
+
data: r,
|
|
335
|
+
selectedState: (p = (u = this.$props.select) != null ? u : (h = this.gridStateContext.select) == null ? void 0 : h.value) != null ? p : {},
|
|
336
|
+
previousCopiedItems: this.previousCopiedItems
|
|
337
|
+
});
|
|
338
|
+
e !== he.paste && (this.previousCopiedItems = l.copiedItems), L.call(this, "clipboard") && this.$emit("clipboard", {
|
|
339
|
+
...n,
|
|
340
|
+
...l
|
|
341
|
+
});
|
|
342
|
+
},
|
|
304
343
|
handleContextMenuSelect(e) {
|
|
305
344
|
this.handleContextMenuItemClick({
|
|
306
345
|
event: e,
|
|
@@ -310,7 +349,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
310
349
|
},
|
|
311
350
|
renderContextMenu() {
|
|
312
351
|
var e;
|
|
313
|
-
return d(
|
|
352
|
+
return d(vs, {
|
|
314
353
|
show: !!(this.contextMenuState.show && ((e = this.contextMenuItems) != null && e.length)),
|
|
315
354
|
dataItem: this.contextMenuState.dataItem,
|
|
316
355
|
field: this.contextMenuState.field,
|
|
@@ -321,18 +360,18 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
321
360
|
}, null);
|
|
322
361
|
},
|
|
323
362
|
filterPinContextMenuItems(e) {
|
|
324
|
-
var
|
|
325
|
-
const t = this.$props.dataItemKey || "", s = this.contextMenuState.dataItem, i = ((
|
|
326
|
-
return e.map((
|
|
327
|
-
const
|
|
328
|
-
return (
|
|
329
|
-
...
|
|
330
|
-
items:
|
|
331
|
-
} :
|
|
363
|
+
var h, u;
|
|
364
|
+
const t = this.$props.dataItemKey || "", s = this.contextMenuState.dataItem, i = ((h = this.gridStateContext.pinnedTopRows) == null ? void 0 : h.value) || [], o = ((u = this.gridStateContext.pinnedBottomRows) == null ? void 0 : u.value) || [], n = t ? s[t] : void 0, r = n !== void 0 && i.some((p) => p[t] === n), l = n !== void 0 && o.some((p) => p[t] === n);
|
|
365
|
+
return e.map((p) => {
|
|
366
|
+
const c = typeof p == "string" ? ws[p] : p;
|
|
367
|
+
return (c == null ? void 0 : c.name) === J.pinRow && c.items ? {
|
|
368
|
+
...c,
|
|
369
|
+
items: c.items.filter((f) => f.name === J.pinTop ? !r : f.name === J.pinBottom ? !l : f.name === J.unpin ? r || l : !0)
|
|
370
|
+
} : p;
|
|
332
371
|
});
|
|
333
372
|
},
|
|
334
373
|
handleContextMenuItemClick(e) {
|
|
335
|
-
var i,
|
|
374
|
+
var i, o, n, r, l, h, u, p;
|
|
336
375
|
const t = e.event.event.item, s = {
|
|
337
376
|
event: e.event,
|
|
338
377
|
menuItem: t,
|
|
@@ -342,31 +381,31 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
342
381
|
switch (this.$emit("contextmenuitemclick", s), (i = t.data) == null ? void 0 : i.action) {
|
|
343
382
|
case "SortCommand":
|
|
344
383
|
if (this.contextMenuColumn) {
|
|
345
|
-
const
|
|
346
|
-
var
|
|
347
|
-
return
|
|
384
|
+
const c = (o = t.name) == null ? void 0 : o.toLowerCase().includes("asc"), m = ((n = t.name) == null ? void 0 : n.toLowerCase().includes("desc")) ? "desc" : void 0, x = c ? "asc" : m, C = t.name ? x : void 0, $ = (((r = this.gridStateContext.sort) == null ? void 0 : r.value) || []).filter((v) => {
|
|
385
|
+
var I;
|
|
386
|
+
return v.field !== ((I = this.contextMenuColumn) == null ? void 0 : I.field);
|
|
348
387
|
});
|
|
349
|
-
C && ((
|
|
388
|
+
C && ((l = this.contextMenuColumn) != null && l.field) && $.push({
|
|
350
389
|
field: this.contextMenuColumn.field,
|
|
351
390
|
dir: C
|
|
352
|
-
}), this.sortChangeHandler(
|
|
391
|
+
}), this.sortChangeHandler($, {
|
|
353
392
|
event: e.event
|
|
354
393
|
});
|
|
355
394
|
}
|
|
356
395
|
break;
|
|
357
396
|
case "SelectRowCommand": {
|
|
358
|
-
const
|
|
359
|
-
if (this.computedSelectable.enabled &&
|
|
360
|
-
const
|
|
397
|
+
const c = e.dataItem;
|
|
398
|
+
if (this.computedSelectable.enabled && c && this.$props.dataItemKey) {
|
|
399
|
+
const m = M(this.$props.dataItemKey)(c), x = this.getLeafDataItems(), C = x.findIndex((z) => z[this.$props.dataItemKey] === c[this.$props.dataItemKey]), w = 0, $ = this.columnsRef.length - 1, v = {
|
|
361
400
|
...this.getArguments(e.event),
|
|
362
|
-
dataItem:
|
|
401
|
+
dataItem: c,
|
|
363
402
|
startDataItem: C,
|
|
364
403
|
endDataItem: C,
|
|
365
404
|
startRowIndex: C,
|
|
366
405
|
endRowIndex: C,
|
|
367
|
-
startColIndex:
|
|
368
|
-
endColIndex:
|
|
369
|
-
dataItems:
|
|
406
|
+
startColIndex: w,
|
|
407
|
+
endColIndex: $,
|
|
408
|
+
dataItems: x,
|
|
370
409
|
ctrlKey: !1,
|
|
371
410
|
altKey: !1,
|
|
372
411
|
metaKey: !1,
|
|
@@ -376,27 +415,27 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
376
415
|
cell: this.computedSelectable.cell,
|
|
377
416
|
componentId: this.$props.id || this._gridId,
|
|
378
417
|
selectedField: this.$props.selectedField || ""
|
|
379
|
-
},
|
|
380
|
-
...(
|
|
418
|
+
}, I = this.computedSelectable.mode === "multiple" ? {
|
|
419
|
+
...(u = (h = this.gridStateContext.select) == null ? void 0 : h.value) != null ? u : {}
|
|
381
420
|
} : {};
|
|
382
|
-
|
|
421
|
+
I[m] === !0 || Array.isArray(I[m]) && I[m].length === this.columnsRef.length ? delete I[m] : I[m] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0, this.raiseSelectionEvent(v, I);
|
|
383
422
|
}
|
|
384
423
|
break;
|
|
385
424
|
}
|
|
386
425
|
case "SelectAllRowsCommand": {
|
|
387
426
|
if (this.computedSelectable.enabled && this.$props.dataItemKey) {
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
427
|
+
const c = this.getLeafDataItems(), f = {}, m = c[0], x = c[c.length - 1];
|
|
428
|
+
c.forEach((C) => {
|
|
429
|
+
const w = M(this.$props.dataItemKey)(C);
|
|
430
|
+
f[w] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0;
|
|
392
431
|
}), this.raiseSelectionEvent({
|
|
393
432
|
...this.getArguments(e.event),
|
|
394
|
-
dataItems:
|
|
395
|
-
dataItem:
|
|
396
|
-
startDataItem:
|
|
397
|
-
endDataItem:
|
|
433
|
+
dataItems: c,
|
|
434
|
+
dataItem: m,
|
|
435
|
+
startDataItem: m,
|
|
436
|
+
endDataItem: x,
|
|
398
437
|
startRowIndex: 0,
|
|
399
|
-
endRowIndex:
|
|
438
|
+
endRowIndex: c.length - 1,
|
|
400
439
|
startColIndex: 0,
|
|
401
440
|
endColIndex: this.columnsRef.length - 1,
|
|
402
441
|
ctrlKey: !1,
|
|
@@ -408,7 +447,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
408
447
|
cell: this.computedSelectable.cell,
|
|
409
448
|
componentId: this.$props.id || this._gridId,
|
|
410
449
|
selectedField: this.$props.selectedField || ""
|
|
411
|
-
},
|
|
450
|
+
}, f);
|
|
412
451
|
}
|
|
413
452
|
break;
|
|
414
453
|
}
|
|
@@ -440,6 +479,14 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
440
479
|
case "UnpinCommand":
|
|
441
480
|
this.handleRowPin("unpin", e.dataItem);
|
|
442
481
|
break;
|
|
482
|
+
case "CopySelectionCommand":
|
|
483
|
+
this.handleClipboardEvent(he.copy, e.event.nativeEvent, {
|
|
484
|
+
copyHeaders: !((p = t.name) != null && p.toLowerCase().includes("noheaders"))
|
|
485
|
+
}, e.dataItem, e.field);
|
|
486
|
+
break;
|
|
487
|
+
case "PasteCommand":
|
|
488
|
+
this.handleClipboardEvent(he.paste, e.event.nativeEvent, {}, e.dataItem, e.field);
|
|
489
|
+
break;
|
|
443
490
|
}
|
|
444
491
|
this.handleContextMenuClose();
|
|
445
492
|
},
|
|
@@ -469,12 +516,12 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
469
516
|
const s = this._element;
|
|
470
517
|
if (this.observerRef && s) {
|
|
471
518
|
this.observerRef.disconnect();
|
|
472
|
-
const
|
|
473
|
-
|
|
519
|
+
const o = s.querySelector(`[absolute-row-index="${this.rowIndexRef.value}"]`);
|
|
520
|
+
o ? this.observerRef.observe(o) : this.setCurrentOnTop(e);
|
|
474
521
|
}
|
|
475
522
|
},
|
|
476
523
|
setCurrentOnTop(e) {
|
|
477
|
-
var i,
|
|
524
|
+
var i, o;
|
|
478
525
|
if (!((i = this.vsRef) != null && i.container) || this.$props.scrollable === "none")
|
|
479
526
|
return;
|
|
480
527
|
this.observerRef && this.observerRef.disconnect();
|
|
@@ -482,11 +529,11 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
482
529
|
rowIndex: t
|
|
483
530
|
} = e, s = this._element;
|
|
484
531
|
if (this.isVirtualScroll) {
|
|
485
|
-
const
|
|
486
|
-
this.vsRef.container.scroll(0,
|
|
532
|
+
const n = ((o = this.vsRef.rowHeightService) == null ? void 0 : o.offset(t)) || 0;
|
|
533
|
+
this.vsRef.container.scroll(0, n);
|
|
487
534
|
} else if (s) {
|
|
488
|
-
const
|
|
489
|
-
|
|
535
|
+
const n = t < 1 ? s.querySelector("tbody > tr:nth-child(1)") : s.querySelector(`tbody > tr:nth-child(${t + 1})`);
|
|
536
|
+
n && this.containerElementRef && (this.containerElementRef.scrollTop = n.offsetTop);
|
|
490
537
|
}
|
|
491
538
|
},
|
|
492
539
|
getTotal() {
|
|
@@ -494,18 +541,18 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
494
541
|
return Array.isArray(this.$props.dataItems) ? e = e || this.$props.dataItems.length : this.$props.dataItems && (e = e || this.$props.dataItems.total), e;
|
|
495
542
|
},
|
|
496
543
|
readColumnElements() {
|
|
497
|
-
return
|
|
544
|
+
return ms(this.$props.columns, this.currentColumnsState, {
|
|
498
545
|
prevId: 0,
|
|
499
546
|
idPrefix: this.idPrefix
|
|
500
547
|
});
|
|
501
548
|
},
|
|
502
549
|
getResolvedFlatColumnsState() {
|
|
503
|
-
const e = [], t = (s, i) => s == null ? void 0 : s.forEach((
|
|
504
|
-
const
|
|
550
|
+
const e = [], t = (s, i) => s == null ? void 0 : s.forEach((o) => {
|
|
551
|
+
const n = o.hidden || i;
|
|
505
552
|
e.push({
|
|
506
|
-
...
|
|
507
|
-
hidden:
|
|
508
|
-
}), t(
|
|
553
|
+
...o,
|
|
554
|
+
hidden: n
|
|
555
|
+
}), t(o.children, n);
|
|
509
556
|
});
|
|
510
557
|
return t(this.currentColumnsState, !1), e;
|
|
511
558
|
},
|
|
@@ -513,19 +560,19 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
513
560
|
const t = this.getResolvedFlatColumnsState();
|
|
514
561
|
return [e.filter((s) => {
|
|
515
562
|
var i;
|
|
516
|
-
return !s.hidden && !((i = t.find((
|
|
563
|
+
return !s.hidden && !((i = t.find((o) => o.id === s.id)) != null && i.hidden);
|
|
517
564
|
}), e.filter((s) => {
|
|
518
565
|
var i;
|
|
519
|
-
return s.hidden || ((i = t.find((
|
|
566
|
+
return s.hidden || ((i = t.find((o) => o.id === s.id)) == null ? void 0 : i.hidden);
|
|
520
567
|
})];
|
|
521
568
|
},
|
|
522
|
-
getFlatData(e, t, s, i,
|
|
523
|
-
const
|
|
569
|
+
getFlatData(e, t, s, i, o, n, r) {
|
|
570
|
+
const l = [], h = fs(l, e, t, {
|
|
524
571
|
index: s
|
|
525
|
-
}, i !== void 0,
|
|
572
|
+
}, i !== void 0, o, n, this.groupExpandable.defaultExpand, r, this.$props.expandField);
|
|
526
573
|
return {
|
|
527
|
-
flattedData:
|
|
528
|
-
resolvedGroupsCount:
|
|
574
|
+
flattedData: l,
|
|
575
|
+
resolvedGroupsCount: h
|
|
529
576
|
};
|
|
530
577
|
},
|
|
531
578
|
getColumnsEssentialProps(e) {
|
|
@@ -547,7 +594,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
547
594
|
...s,
|
|
548
595
|
children: s.children && s.children.length > 0 ? this.filterHiddenColumns(s.children) : s.children
|
|
549
596
|
});
|
|
550
|
-
return [...e].filter((s) => !s.hidden).filter((s) =>
|
|
597
|
+
return [...e].filter((s) => !s.hidden).filter((s) => B && s && s.media ? window.matchMedia(s.media).matches : s).map((s) => t(s));
|
|
551
598
|
},
|
|
552
599
|
/**
|
|
553
600
|
* A getter of the current columns. Gets the current column width or current columns,
|
|
@@ -557,41 +604,41 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
557
604
|
* and check the properties afterwards. You can check the result in the browser console.
|
|
558
605
|
*/
|
|
559
606
|
getColumns() {
|
|
560
|
-
const e = this.columnsRef.filter((s) => s.declarationIndex >= 0 && s.parentIndex === -1), t = (s) => (s.sort((i,
|
|
607
|
+
const e = this.columnsRef.filter((s) => s.declarationIndex >= 0 && s.parentIndex === -1), t = (s) => (s.sort((i, o) => i.declarationIndex - o.declarationIndex), s.map((i) => {
|
|
561
608
|
const {
|
|
562
|
-
declarationIndex:
|
|
563
|
-
parentIndex:
|
|
609
|
+
declarationIndex: o,
|
|
610
|
+
parentIndex: n,
|
|
564
611
|
depth: r,
|
|
565
|
-
colSpan:
|
|
566
|
-
rowSpan:
|
|
567
|
-
index:
|
|
568
|
-
kFirst:
|
|
569
|
-
children:
|
|
570
|
-
...
|
|
612
|
+
colSpan: l,
|
|
613
|
+
rowSpan: h,
|
|
614
|
+
index: u,
|
|
615
|
+
kFirst: p,
|
|
616
|
+
children: c,
|
|
617
|
+
...f
|
|
571
618
|
} = i;
|
|
572
|
-
return
|
|
573
|
-
children: t(
|
|
574
|
-
...
|
|
575
|
-
} :
|
|
619
|
+
return c.length ? {
|
|
620
|
+
children: t(c),
|
|
621
|
+
...f
|
|
622
|
+
} : f;
|
|
576
623
|
}));
|
|
577
624
|
return t(e);
|
|
578
625
|
},
|
|
579
626
|
setRefs() {
|
|
580
|
-
var
|
|
627
|
+
var n, r, l, h;
|
|
581
628
|
let e = "$el";
|
|
582
|
-
const t =
|
|
629
|
+
const t = S(this, "gridNav");
|
|
583
630
|
t && (this._element = t[e]);
|
|
584
|
-
const s =
|
|
631
|
+
const s = S(this, "groupPanelDiv");
|
|
585
632
|
if (s) {
|
|
586
|
-
let
|
|
587
|
-
this.dragLogic.refGroupPanelDiv(
|
|
633
|
+
let u = s[e] || null;
|
|
634
|
+
this.dragLogic.refGroupPanelDiv(u);
|
|
588
635
|
}
|
|
589
|
-
this.stickyHeaderRef =
|
|
590
|
-
const i =
|
|
591
|
-
this.dragLogic.refDropElementClue(i), this.dragLogic.refDragElementClue(
|
|
636
|
+
this.stickyHeaderRef = S(this, "stickyHeader"), this.stickyFooterRef = S(this, "stickyFooter"), this.pinnedTopRef = S(this, "pinnedTop"), this.pinnedBottomRef = S(this, "pinnedBottom");
|
|
637
|
+
const i = S(this, "dropElementClue"), o = S(this, "dragElementClue");
|
|
638
|
+
this.dragLogic.refDropElementClue(i), this.dragLogic.refDragElementClue(o), this.columnResize.colGroupMain = S(this, "colGroup"), this.columnResize.colGroupStickyHeader = (n = this.stickyHeaderRef) == null ? void 0 : n.colGroupRef, this.columnResize.colGroupStickyFooter = (r = this.stickyFooterRef) == null ? void 0 : r.colGroupRef, this.columnResize.colGroupPinnedTop = (l = this.pinnedTopRef) == null ? void 0 : l.colGroupRef, this.columnResize.colGroupPinnedBottom = (h = this.pinnedBottomRef) == null ? void 0 : h.colGroupRef, this._header = S(this, "header"), this._footer = S(this, "footer"), this.resetTableWidth(), vt();
|
|
592
639
|
},
|
|
593
640
|
gridUnmounted() {
|
|
594
|
-
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.dataRef = [], this.columnsRef = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect(), this.observerRef && (this.observerRef.disconnect(), this.observerRef = null);
|
|
641
|
+
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.dataRef = [], this.columnsRef = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect(), this.observerRef && (this.observerRef.disconnect(), this.observerRef = null), this.clipboardServiceRef && (this.clipboardServiceRef.removeEventListeners(document), this.clipboardServiceRef = null);
|
|
595
642
|
},
|
|
596
643
|
isAllData() {
|
|
597
644
|
const {
|
|
@@ -610,15 +657,15 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
610
657
|
},
|
|
611
658
|
initializeVirtualization() {
|
|
612
659
|
const e = this.vsRef, t = this.$props.rowHeight || this._minRowHeightRef || 0;
|
|
613
|
-
this.tableBodyRef =
|
|
660
|
+
this.tableBodyRef = S(this, "tableBody"), this.scrollTableRef = Be(this, "table"), e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, this.scrollContainerRef = e.container = S(this, "scrollContainer"), e.tableBody = this.tableBodyRef, e.scrollHeightContainer = S(this, "scrollHeightContainer"), e.table = this.scrollTableRef, (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new wt(this._virtualTotal, t)));
|
|
614
661
|
},
|
|
615
662
|
setContainerHeight() {
|
|
616
|
-
const e =
|
|
663
|
+
const e = S(this, "scrollContainer");
|
|
617
664
|
this._containerHeightRef = (e == null ? void 0 : e.offsetHeight) || 0;
|
|
618
665
|
},
|
|
619
666
|
setMinRowHeight() {
|
|
620
667
|
if (!this._minRowHeightRef && !this.$props.rowHeight) {
|
|
621
|
-
const t =
|
|
668
|
+
const t = us(S(this, "tableBody"));
|
|
622
669
|
t && (this._minRowHeightRef = t, this.$forceUpdate());
|
|
623
670
|
}
|
|
624
671
|
},
|
|
@@ -626,7 +673,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
626
673
|
this.setRefs();
|
|
627
674
|
},
|
|
628
675
|
onHeaderScroll(e) {
|
|
629
|
-
const s = e.target.scrollLeft, i =
|
|
676
|
+
const s = e.target.scrollLeft, i = S(this, "scrollContainer");
|
|
630
677
|
i && (i.scrollLeft = s), this.scrollLeftRef = s;
|
|
631
678
|
},
|
|
632
679
|
scrollHandler(e) {
|
|
@@ -637,10 +684,10 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
637
684
|
}, 0)), this.scrollLeftRef = t, this._header && this._header.setScrollLeft(e.currentTarget.scrollLeft), this._footer && this._footer.setScrollLeft(e.currentTarget.scrollLeft), this.stickyHeaderRef && this.stickyHeaderRef.setScrollLeft(e.currentTarget.scrollLeft), this.stickyFooterRef && this.stickyFooterRef.setScrollLeft(e.currentTarget.scrollLeft), this.pinnedTopRef && this.pinnedTopRef.setScrollLeft(t), this.pinnedBottomRef && this.pinnedBottomRef.setScrollLeft(t), this.vsRef && s !== this.wrapperScrollTopRef && this.vsRef.scrollHandler(e);
|
|
638
685
|
const i = this.virtualSkipRef;
|
|
639
686
|
this.vsRef && s !== this.wrapperScrollTopRef && this.vsRef.scrollHandler(e);
|
|
640
|
-
const
|
|
641
|
-
if (this.$emit("scroll", e), this.wrapperScrollTopRef = s, !
|
|
642
|
-
const
|
|
643
|
-
this.sticky.headerItems =
|
|
687
|
+
const o = this.isVirtualScroll && this.virtualSkipRef !== i;
|
|
688
|
+
if (this.$emit("scroll", e), this.wrapperScrollTopRef = s, !o) {
|
|
689
|
+
const n = this.updateStickyGroups();
|
|
690
|
+
this.sticky.headerItems = n == null ? void 0 : n.stickyHeaderItems, this.sticky.footerItems = n == null ? void 0 : n.stickyFooterItems;
|
|
644
691
|
}
|
|
645
692
|
},
|
|
646
693
|
rowClick(e, t) {
|
|
@@ -656,19 +703,19 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
656
703
|
});
|
|
657
704
|
},
|
|
658
705
|
loopGroupedItems(e, t, s = 0, i = null) {
|
|
659
|
-
return e.forEach((
|
|
660
|
-
!i && t(
|
|
706
|
+
return e.forEach((o) => {
|
|
707
|
+
!i && t(o, s) && (i = o), o.items && o.items.length && !i && (i = this.loopGroupedItems(o.items, t, s + 1, i));
|
|
661
708
|
}), i;
|
|
662
709
|
},
|
|
663
710
|
updateGroupCollapsed(e) {
|
|
664
711
|
let t = this.computedCollapsed, s = t[e.level];
|
|
665
|
-
const i = this.$props.uniqueField,
|
|
666
|
-
return
|
|
667
|
-
},
|
|
712
|
+
const i = this.$props.uniqueField, o = function(l, h) {
|
|
713
|
+
return l.value === e.dataItem.value && h === e.level;
|
|
714
|
+
}, n = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, o, 0, null) : e.dataItem, r = ps(n || e.dataItem, i);
|
|
668
715
|
if (e.value) {
|
|
669
716
|
if (s && s.length) {
|
|
670
|
-
const
|
|
671
|
-
|
|
717
|
+
const l = s.indexOf(r);
|
|
718
|
+
l > -1 && s.splice(l, 1);
|
|
672
719
|
}
|
|
673
720
|
} else
|
|
674
721
|
s ? s.includes(r) || s.push(r) : s = [r];
|
|
@@ -676,9 +723,9 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
676
723
|
},
|
|
677
724
|
itemChange(e) {
|
|
678
725
|
var i;
|
|
679
|
-
const t =
|
|
726
|
+
const t = L.call(this, "itemchange"), s = (i = this.gridStateContext.group) == null ? void 0 : i.value;
|
|
680
727
|
if (e.field === this.$props.expandField || (s || this.$props.detail) && e.field === void 0) {
|
|
681
|
-
|
|
728
|
+
L.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
|
|
682
729
|
...this.getArguments(e.event),
|
|
683
730
|
collapsedGroups: this.updateGroupCollapsed(e),
|
|
684
731
|
dataItem: e.dataItem,
|
|
@@ -723,20 +770,20 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
723
770
|
});
|
|
724
771
|
},
|
|
725
772
|
selectionChangeHandler(e) {
|
|
726
|
-
var t;
|
|
773
|
+
var t, s, i;
|
|
727
774
|
if (this.computedSelectable.enabled) {
|
|
728
775
|
const {
|
|
729
|
-
event:
|
|
730
|
-
dataItem:
|
|
731
|
-
dataIndex:
|
|
732
|
-
columnIndex:
|
|
733
|
-
} = e,
|
|
734
|
-
...this.getArguments(
|
|
735
|
-
dataItem:
|
|
736
|
-
startColIndex:
|
|
737
|
-
endColIndex:
|
|
738
|
-
startRowIndex:
|
|
739
|
-
endRowIndex:
|
|
776
|
+
event: o,
|
|
777
|
+
dataItem: n,
|
|
778
|
+
dataIndex: r,
|
|
779
|
+
columnIndex: l
|
|
780
|
+
} = e, h = {
|
|
781
|
+
...this.getArguments(o),
|
|
782
|
+
dataItem: n,
|
|
783
|
+
startColIndex: l,
|
|
784
|
+
endColIndex: l,
|
|
785
|
+
startRowIndex: r,
|
|
786
|
+
endRowIndex: r,
|
|
740
787
|
dataItems: this.getLeafDataItems(),
|
|
741
788
|
altKey: !1,
|
|
742
789
|
ctrlKey: !1,
|
|
@@ -749,46 +796,46 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
749
796
|
selectedField: this.$props.selectedField || ""
|
|
750
797
|
};
|
|
751
798
|
this.gridStateContext.selectionchange({
|
|
752
|
-
...
|
|
753
|
-
select: this.$props.dataItemKey ?
|
|
754
|
-
event:
|
|
755
|
-
selectedState: (
|
|
799
|
+
...h,
|
|
800
|
+
select: this.$props.dataItemKey ? Ue({
|
|
801
|
+
event: h,
|
|
802
|
+
selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
|
|
756
803
|
dataItemKey: this.$props.dataItemKey
|
|
757
804
|
}) : {}
|
|
758
805
|
});
|
|
759
806
|
}
|
|
760
807
|
},
|
|
761
808
|
onKeyboardSelectionChangeHandler(e) {
|
|
762
|
-
var
|
|
809
|
+
var u, p;
|
|
763
810
|
if (!this.computedSelectable.enabled || !this.$props.dataItemKey)
|
|
764
811
|
return;
|
|
765
|
-
const t = (
|
|
812
|
+
const t = (u = this.gridStateContext.select) == null ? void 0 : u.value, s = {
|
|
766
813
|
dataItems: this.getLeafDataItems(),
|
|
767
814
|
mode: this.computedSelectable.mode,
|
|
768
815
|
cell: this.computedSelectable.cell,
|
|
769
816
|
componentId: this.$props.id,
|
|
770
817
|
selectedField: "",
|
|
771
818
|
...this.getArguments(e)
|
|
772
|
-
}, i =
|
|
819
|
+
}, i = Kt({
|
|
773
820
|
event: s,
|
|
774
821
|
selectedState: t != null ? t : {},
|
|
775
822
|
dataItemKey: this.$props.dataItemKey
|
|
776
823
|
});
|
|
777
824
|
if (i === t)
|
|
778
825
|
return;
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
const
|
|
826
|
+
const o = e.target, n = je(o, "TD"), r = je(o, "TR"), l = _t(n), h = At(r);
|
|
827
|
+
if (l !== void 0 && h !== void 0) {
|
|
828
|
+
const c = (p = cs(this.$props.dataItems)) == null ? void 0 : p[h];
|
|
782
829
|
this.gridStateContext.selectionchange({
|
|
783
830
|
...s,
|
|
784
831
|
select: i,
|
|
785
|
-
dataItem:
|
|
786
|
-
startRowIndex:
|
|
787
|
-
startColIndex:
|
|
788
|
-
startDataItem:
|
|
789
|
-
endDataItem:
|
|
790
|
-
endRowIndex:
|
|
791
|
-
endColIndex:
|
|
832
|
+
dataItem: c,
|
|
833
|
+
startRowIndex: h,
|
|
834
|
+
startColIndex: l,
|
|
835
|
+
startDataItem: c,
|
|
836
|
+
endDataItem: c,
|
|
837
|
+
endRowIndex: h,
|
|
838
|
+
endColIndex: l,
|
|
792
839
|
ctrlKey: e.ctrlKey,
|
|
793
840
|
altKey: e.altKey,
|
|
794
841
|
metaKey: e.metaKey,
|
|
@@ -810,26 +857,26 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
810
857
|
}
|
|
811
858
|
},
|
|
812
859
|
selectionRelease(e) {
|
|
813
|
-
var t;
|
|
860
|
+
var t, s, i;
|
|
814
861
|
if (this.computedSelectable.enabled) {
|
|
815
|
-
const
|
|
862
|
+
const o = this.getLeafDataItems(), n = o[e.startRowIndex], r = o[e.endRowIndex], l = {
|
|
816
863
|
event: void 0,
|
|
817
864
|
target: this,
|
|
818
865
|
selectedField: "",
|
|
819
866
|
componentId: this.$props.id || this._gridId,
|
|
820
|
-
dataItems:
|
|
867
|
+
dataItems: o,
|
|
821
868
|
dataItem: null,
|
|
822
|
-
startDataItem:
|
|
823
|
-
endDataItem:
|
|
869
|
+
startDataItem: n,
|
|
870
|
+
endDataItem: r,
|
|
824
871
|
...e
|
|
825
|
-
},
|
|
826
|
-
event:
|
|
827
|
-
selectedState: (
|
|
872
|
+
}, h = Ue({
|
|
873
|
+
event: l,
|
|
874
|
+
selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
|
|
828
875
|
// Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
|
|
829
876
|
// it does work correctly even without it
|
|
830
877
|
dataItemKey: this.$props.dataItemKey
|
|
831
878
|
});
|
|
832
|
-
this.raiseSelectionEvent(
|
|
879
|
+
this.raiseSelectionEvent(l, h);
|
|
833
880
|
}
|
|
834
881
|
},
|
|
835
882
|
clearSelection(e) {
|
|
@@ -842,16 +889,16 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
842
889
|
});
|
|
843
890
|
},
|
|
844
891
|
moveToNextPage(e) {
|
|
845
|
-
var
|
|
846
|
-
const t = (r = (
|
|
892
|
+
var o, n, r, l;
|
|
893
|
+
const t = (r = (n = (o = this.gridStateContext.take) == null ? void 0 : o.value) != null ? n : this.$props.pageSize) != null ? r : 0, s = (((l = this.gridStateContext.skip) == null ? void 0 : l.value) || 0) + t, i = this.getTotal();
|
|
847
894
|
s < i && this.pageChangeHandler({
|
|
848
895
|
skip: s,
|
|
849
896
|
take: t
|
|
850
897
|
}, e);
|
|
851
898
|
},
|
|
852
899
|
moveToPrevPage(e) {
|
|
853
|
-
var i,
|
|
854
|
-
const t = (
|
|
900
|
+
var i, o, n, r;
|
|
901
|
+
const t = (n = (o = (i = this.gridStateContext.take) == null ? void 0 : i.value) != null ? o : this.$props.pageSize) != null ? n : 0, s = (((r = this.gridStateContext.skip) == null ? void 0 : r.value) || 0) - t;
|
|
855
902
|
s >= 0 && this.pageChangeHandler({
|
|
856
903
|
skip: s,
|
|
857
904
|
take: t
|
|
@@ -892,20 +939,20 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
892
939
|
handleDetailExpandAction(e, t) {
|
|
893
940
|
var s;
|
|
894
941
|
if (this.detailExpandable.enabled) {
|
|
895
|
-
const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value,
|
|
942
|
+
const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value, o = Lt(i != null ? i : {}, e);
|
|
896
943
|
this.gridStateContext.detailexpandchange({
|
|
897
944
|
...this.getArguments(t),
|
|
898
|
-
detailExpand:
|
|
945
|
+
detailExpand: o
|
|
899
946
|
});
|
|
900
947
|
}
|
|
901
948
|
},
|
|
902
949
|
handleGroupExpandAction(e, t) {
|
|
903
950
|
var s;
|
|
904
951
|
if (this.groupExpandable.enabled) {
|
|
905
|
-
const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value,
|
|
952
|
+
const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value, o = Ft(i != null ? i : [], e, this.groupExpandable);
|
|
906
953
|
this.$props.expandField || this.gridStateContext.groupexpandchange({
|
|
907
954
|
...this.getArguments(t),
|
|
908
|
-
groupExpand:
|
|
955
|
+
groupExpand: o
|
|
909
956
|
});
|
|
910
957
|
}
|
|
911
958
|
this.scrollToStickyGroup(e.group);
|
|
@@ -916,41 +963,41 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
916
963
|
...this.getArguments(i),
|
|
917
964
|
...t
|
|
918
965
|
});
|
|
919
|
-
else if (
|
|
966
|
+
else if (L.call(this, e))
|
|
920
967
|
this.$emit(e, {
|
|
921
968
|
...this.getArguments(i),
|
|
922
969
|
...t
|
|
923
970
|
});
|
|
924
|
-
else if (
|
|
925
|
-
const
|
|
971
|
+
else if (L.call(this, "datastatechange")) {
|
|
972
|
+
const o = {
|
|
926
973
|
...this.getDataState(),
|
|
927
974
|
...s
|
|
928
975
|
};
|
|
929
976
|
this.gridStateContext.datastatechange({
|
|
930
977
|
...this.getArguments(i),
|
|
931
|
-
data:
|
|
932
|
-
dataState:
|
|
978
|
+
data: o,
|
|
979
|
+
dataState: o
|
|
933
980
|
});
|
|
934
981
|
}
|
|
935
982
|
},
|
|
936
983
|
columnReorder(e, t, s) {
|
|
937
|
-
const i = this.columnsRef[e],
|
|
984
|
+
const i = this.columnsRef[e], o = Ze(this.currentColumnsState), n = i.depth, r = (p) => {
|
|
938
985
|
do
|
|
939
|
-
|
|
940
|
-
while (
|
|
941
|
-
return
|
|
942
|
-
},
|
|
943
|
-
this.columnsRef.splice(e < t ? r(t -
|
|
944
|
-
|
|
945
|
-
const
|
|
946
|
-
|
|
986
|
+
p++;
|
|
987
|
+
while (p < this.columnsRef.length && this.columnsRef[p].depth > n);
|
|
988
|
+
return p;
|
|
989
|
+
}, l = this.columnsRef.splice(e, r(e) - e);
|
|
990
|
+
this.columnsRef.splice(e < t ? r(t - l.length) : t, 0, ...l), this.columnsRef.filter((p) => p.declarationIndex >= 0).forEach((p, c) => {
|
|
991
|
+
p.orderIndex = c;
|
|
992
|
+
const f = o.find((m) => m.id === p.id);
|
|
993
|
+
f && (f.orderIndex = c);
|
|
947
994
|
});
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
const
|
|
995
|
+
const h = this.columnsRef[e].locked && this.columnsRef[t].locked;
|
|
996
|
+
Dt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), Gt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
|
|
997
|
+
const u = this.getColumns();
|
|
951
998
|
this.$emit("columnreorder", {
|
|
952
999
|
target: this,
|
|
953
|
-
columns:
|
|
1000
|
+
columns: u,
|
|
954
1001
|
event: s,
|
|
955
1002
|
prev: e,
|
|
956
1003
|
next: t
|
|
@@ -959,19 +1006,19 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
959
1006
|
});
|
|
960
1007
|
},
|
|
961
1008
|
groupReorder(e, t, s) {
|
|
962
|
-
var
|
|
963
|
-
const i = (
|
|
1009
|
+
var o;
|
|
1010
|
+
const i = (o = this.gridStateContext.group) == null ? void 0 : o.value;
|
|
964
1011
|
i !== void 0 && (i.splice(t, 0, ...i.splice(e, 1)), this.groupChangeHandler(i, s));
|
|
965
1012
|
},
|
|
966
1013
|
columnToGroup(e, t, s) {
|
|
967
|
-
var
|
|
1014
|
+
var n;
|
|
968
1015
|
const i = this.columnsRef[e].field;
|
|
969
1016
|
if (!i)
|
|
970
1017
|
return;
|
|
971
|
-
const
|
|
972
|
-
|
|
1018
|
+
const o = (((n = this.gridStateContext.group) == null ? void 0 : n.value) || []).slice();
|
|
1019
|
+
o.splice(t, 0, {
|
|
973
1020
|
field: i
|
|
974
|
-
}), this.groupChangeHandler(
|
|
1021
|
+
}), this.groupChangeHandler(o, s);
|
|
975
1022
|
},
|
|
976
1023
|
resetTableWidth() {
|
|
977
1024
|
var i;
|
|
@@ -979,21 +1026,21 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
979
1026
|
if (!this.columnResize.colGroupMain)
|
|
980
1027
|
return;
|
|
981
1028
|
const t = (i = this.columnResize.colGroupMain) == null ? void 0 : i.children;
|
|
982
|
-
for (let
|
|
983
|
-
const
|
|
984
|
-
if (!
|
|
1029
|
+
for (let o = 0; o < t.length; o++) {
|
|
1030
|
+
const n = t[o].width;
|
|
1031
|
+
if (!n)
|
|
985
1032
|
return;
|
|
986
|
-
e += parseFloat(
|
|
1033
|
+
e += parseFloat(n.toString());
|
|
987
1034
|
}
|
|
988
1035
|
e = Math.round(e), this._header && this._header.setWidth(e), this._footer && this._footer.setWidth(e), this.stickyHeaderRef && this.stickyHeaderRef.setWidth(e), this.stickyFooterRef && this.stickyFooterRef.setWidth(e), this.pinnedTopRef && this.pinnedTopRef.setWidth(e), this.pinnedBottomRef && this.pinnedBottomRef.setWidth(e);
|
|
989
|
-
const s =
|
|
1036
|
+
const s = Be(this, "table");
|
|
990
1037
|
s && e && (s.style.width = e + "px"), this.stickyFooterRef && this.setStickyFooterOffset();
|
|
991
1038
|
},
|
|
992
1039
|
setStickyFooterOffset() {
|
|
993
1040
|
const e = this.containerElementRef, t = e ? e.scrollWidth > e.clientWidth : !1;
|
|
994
1041
|
this.stickyFooterRef && (this.stickyFooterRef.$el.style.marginBlockEnd = t ? "var(--kendo-scrollbar-width, 0px)" : "");
|
|
995
1042
|
},
|
|
996
|
-
onResize(e, t, s, i,
|
|
1043
|
+
onResize(e, t, s, i, o, n, r) {
|
|
997
1044
|
this.resetTableWidth(), this.shouldUpdateLeftRightRef = !0, this.resizedRef = !0, this.$emit("columnresize", {
|
|
998
1045
|
columns: this.getColumns(),
|
|
999
1046
|
index: e,
|
|
@@ -1001,35 +1048,35 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1001
1048
|
event: i,
|
|
1002
1049
|
newWidth: t,
|
|
1003
1050
|
oldWidth: s,
|
|
1004
|
-
end:
|
|
1051
|
+
end: o,
|
|
1005
1052
|
target: this
|
|
1006
|
-
}),
|
|
1007
|
-
columnsState:
|
|
1053
|
+
}), o && this.gridStateContext.columnsstatechange({
|
|
1054
|
+
columnsState: n
|
|
1008
1055
|
});
|
|
1009
1056
|
},
|
|
1010
1057
|
initColumnsState(e, t) {
|
|
1011
1058
|
const s = (i) => {
|
|
1012
|
-
var
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1059
|
+
var n;
|
|
1060
|
+
const o = t.find((r) => r.id === i.id);
|
|
1061
|
+
if (o) {
|
|
1015
1062
|
const r = {
|
|
1016
|
-
...
|
|
1063
|
+
...o
|
|
1017
1064
|
};
|
|
1018
|
-
return r.children = (
|
|
1065
|
+
return r.children = (n = i.children) == null ? void 0 : n.map(s), r;
|
|
1019
1066
|
}
|
|
1020
1067
|
return i;
|
|
1021
1068
|
};
|
|
1022
1069
|
this.currentColumnsState = e.filter((i) => i.parentIndex === -1).map(s);
|
|
1023
1070
|
},
|
|
1024
1071
|
configureColumns(e, t) {
|
|
1025
|
-
e.filter((
|
|
1026
|
-
|
|
1027
|
-
}), this.$props.selectedField && this.columnsRef.filter((
|
|
1028
|
-
|
|
1029
|
-
}), this.$props.pinnable && e.filter((
|
|
1030
|
-
|
|
1072
|
+
e.filter((n) => n.columnType === "checkbox").forEach((n) => {
|
|
1073
|
+
n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n._type = "edit", n.columnMenu = !1;
|
|
1074
|
+
}), this.$props.selectedField && this.columnsRef.filter((n) => n.field === this.$props.selectedField).forEach((n) => {
|
|
1075
|
+
n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n.columnMenu = !1;
|
|
1076
|
+
}), this.$props.pinnable && e.filter((n) => n.columnType === "pin").forEach((n) => {
|
|
1077
|
+
n.width = n.width || "48px", n.defaultCell = H($s), n.defaultHeaderCell = H(zt), n.sortable = !1, n.filterable = !1, n.editable = !1;
|
|
1031
1078
|
});
|
|
1032
|
-
const s =
|
|
1079
|
+
const s = Ze(this.currentColumnsState);
|
|
1033
1080
|
this.initColumnsState(e, s);
|
|
1034
1081
|
const i = {
|
|
1035
1082
|
id: "",
|
|
@@ -1051,54 +1098,54 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1051
1098
|
ariaColumnIndex: 0,
|
|
1052
1099
|
isAccessible: !0
|
|
1053
1100
|
};
|
|
1054
|
-
let
|
|
1101
|
+
let o = 0;
|
|
1055
1102
|
if (this.detailExpandable.enabled && this.$props.detail && !this.$props.expandField) {
|
|
1056
|
-
const
|
|
1103
|
+
const n = {
|
|
1057
1104
|
...i,
|
|
1058
1105
|
_type: "expand",
|
|
1059
|
-
id:
|
|
1060
|
-
defaultCell:
|
|
1106
|
+
id: E.generateNavigatableId(`${o++}`, "expand", "column"),
|
|
1107
|
+
defaultCell: H(Ye),
|
|
1061
1108
|
field: this.detailExpandable.column,
|
|
1062
1109
|
headerClassName: this.hierarchClass
|
|
1063
1110
|
};
|
|
1064
|
-
e.unshift(
|
|
1111
|
+
e.unshift(n), this.currentColumnsState.unshift(s.find((r) => r.id === n.id) || n);
|
|
1065
1112
|
}
|
|
1066
|
-
this.$props.expandField &&
|
|
1113
|
+
this.$props.expandField && L.call(this, "expandchange") && this.$props.detail && (e.unshift({
|
|
1067
1114
|
...i,
|
|
1068
|
-
defaultCell:
|
|
1115
|
+
defaultCell: H(Ye),
|
|
1069
1116
|
field: this.$props.expandField,
|
|
1070
1117
|
headerClassName: "k-hierarchy-cell k-header",
|
|
1071
|
-
id:
|
|
1118
|
+
id: E.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
|
|
1072
1119
|
...this.expandColumn
|
|
1073
|
-
}),
|
|
1074
|
-
for (let
|
|
1120
|
+
}), o++);
|
|
1121
|
+
for (let n = 0; n < t; n++) {
|
|
1075
1122
|
const r = {
|
|
1076
1123
|
...i,
|
|
1077
1124
|
isAccessible: !1,
|
|
1078
|
-
defaultCell:
|
|
1079
|
-
id:
|
|
1125
|
+
defaultCell: H(tt),
|
|
1126
|
+
id: E.generateNavigatableId(`${o++}`, "group", "column"),
|
|
1080
1127
|
field: "value",
|
|
1081
1128
|
locked: this.$props.lockGroups,
|
|
1082
1129
|
columnMenu: !1
|
|
1083
1130
|
};
|
|
1084
|
-
e.unshift(r), this.currentColumnsState.unshift(s.find((
|
|
1131
|
+
e.unshift(r), this.currentColumnsState.unshift(s.find((l) => l.id === r.id) || r);
|
|
1085
1132
|
}
|
|
1086
|
-
e.slice(
|
|
1087
|
-
|
|
1133
|
+
e.slice(o).forEach((n) => {
|
|
1134
|
+
n.parentIndex >= 0 && (n.parentIndex += o), n.rowSpannable = n.rowSpannable !== void 0 ? et(n.rowSpannable) : this.computedRowSpannable;
|
|
1088
1135
|
});
|
|
1089
1136
|
},
|
|
1090
1137
|
initColumns(e, t) {
|
|
1091
|
-
var
|
|
1138
|
+
var n;
|
|
1092
1139
|
this.columnsRef = this.readColumnElements();
|
|
1093
|
-
const s = (
|
|
1094
|
-
this.columnsRef.filter((r) => !r.hidden).length === 0 && (this.columnsRef =
|
|
1140
|
+
const s = (n = this.gridStateContext.group) == null ? void 0 : n.value;
|
|
1141
|
+
this.columnsRef.filter((r) => !r.hidden).length === 0 && (this.columnsRef = ds(e, s, {
|
|
1095
1142
|
column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
|
|
1096
1143
|
}, {
|
|
1097
1144
|
prevId: 0,
|
|
1098
1145
|
idPrefix: this.idPrefix
|
|
1099
1146
|
})), this.configureColumns(this.columnsRef, t);
|
|
1100
|
-
const [i,
|
|
1101
|
-
this.columnsRef = i, this.hiddenColumnsRef =
|
|
1147
|
+
const [i, o] = this.filterColumns(this.columnsRef);
|
|
1148
|
+
this.columnsRef = i, this.hiddenColumnsRef = o, this._columnsMap = hs(this.columnsRef, !0);
|
|
1102
1149
|
},
|
|
1103
1150
|
resolveTitle(e) {
|
|
1104
1151
|
const t = this.findColumnByField(e), s = t && (t.title || t.field);
|
|
@@ -1123,14 +1170,14 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1123
1170
|
return null;
|
|
1124
1171
|
},
|
|
1125
1172
|
getDataState() {
|
|
1126
|
-
var
|
|
1127
|
-
const e = (
|
|
1173
|
+
var n, r, l, h, u;
|
|
1174
|
+
const e = (n = this.gridStateContext.sort) == null ? void 0 : n.value, t = (r = this.gridStateContext.filter) == null ? void 0 : r.value, s = (l = this.gridStateContext.skip) == null ? void 0 : l.value, i = (h = this.gridStateContext.take) == null ? void 0 : h.value, o = (u = this.gridStateContext.group) == null ? void 0 : u.value;
|
|
1128
1175
|
return {
|
|
1129
1176
|
filter: t,
|
|
1130
1177
|
sort: e,
|
|
1131
1178
|
skip: s,
|
|
1132
1179
|
take: i !== void 0 ? i : this.$props.pageSize,
|
|
1133
|
-
group:
|
|
1180
|
+
group: o
|
|
1134
1181
|
};
|
|
1135
1182
|
},
|
|
1136
1183
|
getArguments(e) {
|
|
@@ -1152,19 +1199,19 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1152
1199
|
}), t;
|
|
1153
1200
|
},
|
|
1154
1201
|
searchChange(e) {
|
|
1155
|
-
const t = this.$props.searchFields || this.columnsRef.map((
|
|
1202
|
+
const t = this.$props.searchFields || this.columnsRef.map((o) => o.field) || [], s = e.event.target.value, i = {
|
|
1156
1203
|
logic: "or",
|
|
1157
|
-
filters: t.filter((
|
|
1158
|
-
var
|
|
1159
|
-
return typeof
|
|
1160
|
-
field:
|
|
1204
|
+
filters: t.filter((o) => o !== void 0).map((o) => {
|
|
1205
|
+
var n;
|
|
1206
|
+
return typeof o == "string" ? {
|
|
1207
|
+
field: o,
|
|
1161
1208
|
value: s,
|
|
1162
1209
|
operator: "contains"
|
|
1163
1210
|
} : {
|
|
1164
1211
|
value: s,
|
|
1165
|
-
operator: (
|
|
1166
|
-
field:
|
|
1167
|
-
ignoreCase:
|
|
1212
|
+
operator: (n = o.operator) != null ? n : "contains",
|
|
1213
|
+
field: o.field,
|
|
1214
|
+
ignoreCase: o.ignoreCase
|
|
1168
1215
|
};
|
|
1169
1216
|
})
|
|
1170
1217
|
};
|
|
@@ -1175,27 +1222,27 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1175
1222
|
}, e);
|
|
1176
1223
|
},
|
|
1177
1224
|
getCellsToRender(e, t) {
|
|
1178
|
-
var
|
|
1225
|
+
var n;
|
|
1179
1226
|
const s = [];
|
|
1180
|
-
let i = null,
|
|
1181
|
-
if (t.forEach((r,
|
|
1182
|
-
const
|
|
1183
|
-
if (
|
|
1184
|
-
|
|
1227
|
+
let i = null, o = 0;
|
|
1228
|
+
if (t.forEach((r, l) => {
|
|
1229
|
+
const h = parseFloat((r.width || "").toString()) || 10;
|
|
1230
|
+
if (o) {
|
|
1231
|
+
o--, i && (i.width += h);
|
|
1185
1232
|
return;
|
|
1186
1233
|
}
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
width:
|
|
1190
|
-
colSpan:
|
|
1191
|
-
columnIndex:
|
|
1234
|
+
const u = Math.min(as(r, e), t.length - l);
|
|
1235
|
+
o = u - 1, i = {
|
|
1236
|
+
width: h,
|
|
1237
|
+
colSpan: u,
|
|
1238
|
+
columnIndex: l
|
|
1192
1239
|
}, s.push(i);
|
|
1193
1240
|
}), this.$props.columnVirtualization) {
|
|
1194
|
-
const r = this.scrollLeftRef || 0,
|
|
1195
|
-
return
|
|
1241
|
+
const r = this.scrollLeftRef || 0, l = this.tableWidth || parseFloat((((n = this.$attrs.style) == null ? void 0 : n.width) || "").toString());
|
|
1242
|
+
return Ss({
|
|
1196
1243
|
cellModels: s,
|
|
1197
1244
|
columns: t,
|
|
1198
|
-
tableViewPortWidth:
|
|
1245
|
+
tableViewPortWidth: l,
|
|
1199
1246
|
scrollLeft: r
|
|
1200
1247
|
});
|
|
1201
1248
|
}
|
|
@@ -1215,63 +1262,63 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1215
1262
|
if (s)
|
|
1216
1263
|
return s;
|
|
1217
1264
|
}
|
|
1218
|
-
const i = this.$props.rowHeight || this._minRowHeightRef,
|
|
1219
|
-
return
|
|
1265
|
+
const i = this.$props.rowHeight || this._minRowHeightRef, o = this._containerHeightRef;
|
|
1266
|
+
return o && i ? Math.ceil(o / i * 1.5) : 0;
|
|
1220
1267
|
},
|
|
1221
1268
|
getRowPinPosition(e) {
|
|
1222
|
-
var
|
|
1269
|
+
var n, r;
|
|
1223
1270
|
const {
|
|
1224
1271
|
dataItemKey: t = ""
|
|
1225
|
-
} = this.$props, s = ((
|
|
1272
|
+
} = this.$props, s = ((n = this.gridStateContext.pinnedTopRows) == null ? void 0 : n.value) || [], i = ((r = this.gridStateContext.pinnedBottomRows) == null ? void 0 : r.value) || [];
|
|
1226
1273
|
if (!t || !e)
|
|
1227
1274
|
return "none";
|
|
1228
|
-
const
|
|
1229
|
-
return s != null && s.some((
|
|
1275
|
+
const o = e[t];
|
|
1276
|
+
return s != null && s.some((l) => l[t] === o) ? "top" : i != null && i.some((l) => l[t] === o) ? "bottom" : "none";
|
|
1230
1277
|
},
|
|
1231
1278
|
handleRowPin(e, t) {
|
|
1232
|
-
var
|
|
1279
|
+
var u, p, c, f;
|
|
1233
1280
|
if (!this.$props.pinnable)
|
|
1234
1281
|
return;
|
|
1235
1282
|
const {
|
|
1236
1283
|
dataItemKey: s = ""
|
|
1237
|
-
} = this.$props, i = ((
|
|
1238
|
-
let
|
|
1284
|
+
} = this.$props, i = ((u = this.gridStateContext.pinnedTopRows) == null ? void 0 : u.value) || [], o = ((p = this.gridStateContext.pinnedBottomRows) == null ? void 0 : p.value) || [], n = t[s], r = i.filter((m) => m[s] !== n), l = o.filter((m) => m[s] !== n);
|
|
1285
|
+
let h;
|
|
1239
1286
|
switch (e) {
|
|
1240
1287
|
case "pinTop":
|
|
1241
|
-
|
|
1288
|
+
h = {
|
|
1242
1289
|
pinnedTopRows: [...r, t],
|
|
1243
|
-
pinnedBottomRows:
|
|
1290
|
+
pinnedBottomRows: l,
|
|
1244
1291
|
dataItem: t
|
|
1245
1292
|
};
|
|
1246
1293
|
break;
|
|
1247
1294
|
case "pinBottom":
|
|
1248
|
-
|
|
1295
|
+
h = {
|
|
1249
1296
|
pinnedTopRows: r,
|
|
1250
|
-
pinnedBottomRows: [...
|
|
1297
|
+
pinnedBottomRows: [...l, t],
|
|
1251
1298
|
dataItem: t
|
|
1252
1299
|
};
|
|
1253
1300
|
break;
|
|
1254
1301
|
case "unpin":
|
|
1255
|
-
|
|
1302
|
+
h = {
|
|
1256
1303
|
pinnedTopRows: r,
|
|
1257
|
-
pinnedBottomRows:
|
|
1304
|
+
pinnedBottomRows: l,
|
|
1258
1305
|
dataItem: t
|
|
1259
1306
|
};
|
|
1260
1307
|
break;
|
|
1261
1308
|
default:
|
|
1262
1309
|
return;
|
|
1263
1310
|
}
|
|
1264
|
-
(
|
|
1311
|
+
(f = (c = this.gridStateContext).rowpinchange) == null || f.call(c, h);
|
|
1265
1312
|
},
|
|
1266
1313
|
pinnedSelectionRelease(e, t) {
|
|
1267
1314
|
const s = this.$props.dataItemKey;
|
|
1268
1315
|
if (!s || !t)
|
|
1269
1316
|
return;
|
|
1270
|
-
const i = M(s),
|
|
1271
|
-
|
|
1317
|
+
const i = M(s), o = this.getLeafDataItems().findIndex((n) => i(n) === i(t));
|
|
1318
|
+
o !== -1 && this.selectionRelease({
|
|
1272
1319
|
...e,
|
|
1273
|
-
startRowIndex:
|
|
1274
|
-
endRowIndex:
|
|
1320
|
+
startRowIndex: o,
|
|
1321
|
+
endRowIndex: o
|
|
1275
1322
|
});
|
|
1276
1323
|
}
|
|
1277
1324
|
},
|
|
@@ -1294,113 +1341,113 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1294
1341
|
};
|
|
1295
1342
|
},
|
|
1296
1343
|
setup(e) {
|
|
1297
|
-
const t =
|
|
1298
|
-
var
|
|
1299
|
-
return !!((
|
|
1300
|
-
}),
|
|
1344
|
+
const t = R(null), s = R(null), i = R(null), o = R(null), n = R(null), r = R(null), l = R(null), h = R([]), u = R([]), p = R(null), c = R(null), f = R(null), m = R(null), x = R(null), C = R(null), w = R(!0), $ = R(!1), v = new ss(), I = R(0), z = It(bs, {}), X = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, Y = typeof e.groupable == "object" && !!e.groupable.stickyFooters, P = R([]), Q = _e(() => {
|
|
1345
|
+
var K, W;
|
|
1346
|
+
return !!((W = (K = z.group) == null ? void 0 : K.value) != null && W.length);
|
|
1347
|
+
}), V = null, D = R(void 0), T = R({
|
|
1301
1348
|
headerItems: [],
|
|
1302
1349
|
footerItems: []
|
|
1303
1350
|
}), {
|
|
1304
|
-
scrollToStickyGroup:
|
|
1305
|
-
update:
|
|
1306
|
-
} =
|
|
1351
|
+
scrollToStickyGroup: O,
|
|
1352
|
+
update: N
|
|
1353
|
+
} = xs({
|
|
1307
1354
|
enabled: X,
|
|
1308
1355
|
enabledFooters: Y,
|
|
1309
|
-
flatData:
|
|
1310
|
-
containerRef:
|
|
1311
|
-
stickyHeaderRef:
|
|
1312
|
-
stickyFooterRef:
|
|
1313
|
-
tableBodyRef:
|
|
1356
|
+
flatData: P,
|
|
1357
|
+
containerRef: p,
|
|
1358
|
+
stickyHeaderRef: c,
|
|
1359
|
+
stickyFooterRef: f,
|
|
1360
|
+
tableBodyRef: C,
|
|
1314
1361
|
rowHeight: e.rowHeight,
|
|
1315
1362
|
isGrouped: Q,
|
|
1316
|
-
virtualSkipRef:
|
|
1317
|
-
rowHeightServiceRef:
|
|
1363
|
+
virtualSkipRef: I,
|
|
1364
|
+
rowHeightServiceRef: _e(() => v == null ? void 0 : v.rowHeightService)
|
|
1318
1365
|
});
|
|
1319
1366
|
return {
|
|
1320
|
-
rowIndexRef:
|
|
1321
|
-
observerRef:
|
|
1322
|
-
dataRef:
|
|
1367
|
+
rowIndexRef: D,
|
|
1368
|
+
observerRef: V,
|
|
1369
|
+
dataRef: P,
|
|
1323
1370
|
groupPanelDivRef: t,
|
|
1324
1371
|
dropElementClueRef: s,
|
|
1325
1372
|
dragElementClueRef: i,
|
|
1326
|
-
headerRef:
|
|
1327
|
-
footerRef:
|
|
1373
|
+
headerRef: o,
|
|
1374
|
+
footerRef: n,
|
|
1328
1375
|
gridNavRef: r,
|
|
1329
|
-
colGroupRef:
|
|
1330
|
-
scrollContainerRef:
|
|
1331
|
-
tableBodyRef:
|
|
1332
|
-
gridStateContext:
|
|
1376
|
+
colGroupRef: l,
|
|
1377
|
+
scrollContainerRef: p,
|
|
1378
|
+
tableBodyRef: C,
|
|
1379
|
+
gridStateContext: z,
|
|
1333
1380
|
shouldUpdateLeftRightRef: w,
|
|
1334
1381
|
resizedRef: $,
|
|
1335
1382
|
currentColumnsState: e.columnsState,
|
|
1336
|
-
vsRef:
|
|
1337
|
-
virtualSkipRef:
|
|
1338
|
-
stickyHeaderItems:
|
|
1339
|
-
stickyHeaderRef:
|
|
1340
|
-
stickyFooterItems:
|
|
1341
|
-
stickyFooterRef:
|
|
1342
|
-
pinnedTopRef:
|
|
1343
|
-
pinnedBottomRef:
|
|
1383
|
+
vsRef: v,
|
|
1384
|
+
virtualSkipRef: I,
|
|
1385
|
+
stickyHeaderItems: h,
|
|
1386
|
+
stickyHeaderRef: c,
|
|
1387
|
+
stickyFooterItems: u,
|
|
1388
|
+
stickyFooterRef: f,
|
|
1389
|
+
pinnedTopRef: m,
|
|
1390
|
+
pinnedBottomRef: x,
|
|
1344
1391
|
sticky: T,
|
|
1345
|
-
scrollToStickyGroup:
|
|
1346
|
-
updateStickyGroups:
|
|
1392
|
+
scrollToStickyGroup: O,
|
|
1393
|
+
updateStickyGroups: N
|
|
1347
1394
|
};
|
|
1348
1395
|
},
|
|
1349
1396
|
render() {
|
|
1350
|
-
var
|
|
1351
|
-
const e = (
|
|
1352
|
-
let
|
|
1353
|
-
this.currentColumnsState = (
|
|
1354
|
-
const
|
|
1397
|
+
var Ce, be, Se, Ie, xe, $e, we, ve, ye, ke, He, Te, Me, Ee, Pe, ze, De, Ge;
|
|
1398
|
+
const e = (Ce = this.gridStateContext.sort) == null ? void 0 : Ce.value, t = (be = this.gridStateContext.filter) == null ? void 0 : be.value, s = (Se = this.gridStateContext.search) == null ? void 0 : Se.value, i = (Ie = this.gridStateContext.select) == null ? void 0 : Ie.value, o = (xe = this.gridStateContext.skip) == null ? void 0 : xe.value, n = ($e = this.gridStateContext.take) == null ? void 0 : $e.value, r = (we = this.gridStateContext.group) == null ? void 0 : we.value, l = (ve = this.gridStateContext.groupExpand) == null ? void 0 : ve.value, h = (ye = this.gridStateContext.detailExpand) == null ? void 0 : ye.value, u = (r == null ? void 0 : r.length) || 0, p = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyHeaders, c = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyFooters, f = !!(r != null && r.length);
|
|
1399
|
+
let m;
|
|
1400
|
+
this.currentColumnsState = (ke = this.gridStateContext.columnsState) == null ? void 0 : ke.value;
|
|
1401
|
+
const x = this.$props.autoProcessData === !0 ? {
|
|
1355
1402
|
group: !0,
|
|
1356
1403
|
sort: !0,
|
|
1357
1404
|
filter: !0,
|
|
1358
1405
|
search: !0,
|
|
1359
1406
|
page: !0
|
|
1360
1407
|
} : this.$props.autoProcessData;
|
|
1361
|
-
let
|
|
1362
|
-
const w =
|
|
1408
|
+
let C;
|
|
1409
|
+
const w = E.getIdPrefix(this.navigation);
|
|
1363
1410
|
let $ = [];
|
|
1364
|
-
Array.isArray(this.$props.dataItems) ? ($ = this.$props.dataItems,
|
|
1365
|
-
const
|
|
1366
|
-
this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable =
|
|
1367
|
-
const
|
|
1368
|
-
if (
|
|
1369
|
-
const
|
|
1370
|
-
data:
|
|
1371
|
-
total:
|
|
1372
|
-
} =
|
|
1373
|
-
group:
|
|
1374
|
-
sort:
|
|
1375
|
-
filter:
|
|
1376
|
-
...
|
|
1377
|
-
take: this.$props.pageable ?
|
|
1378
|
-
skip:
|
|
1411
|
+
Array.isArray(this.$props.dataItems) ? ($ = this.$props.dataItems, C = (He = this.$props.total) != null ? He : $.length) : ($ = ((Te = ls(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : Te.data) || [], C = (Pe = (Ee = this.$props.total) != null ? Ee : (Me = this.$props.dataItems) == null ? void 0 : Me.total) != null ? Pe : $.length);
|
|
1412
|
+
const v = this.$props.groupable === !0 || q(this.$props.groupable) && this.$props.groupable.enabled !== !1;
|
|
1413
|
+
this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = v, this._virtualPageSize = this.calcVirtualPageSize();
|
|
1414
|
+
const I = $.length === C, z = q(this.$props.groupable) && this.$props.groupable.footer || "none";
|
|
1415
|
+
if (x) {
|
|
1416
|
+
const a = x.page && !(this.isVirtualScroll && !this.$props.pageable), {
|
|
1417
|
+
data: b,
|
|
1418
|
+
total: k
|
|
1419
|
+
} = Cs($, {
|
|
1420
|
+
group: x.group ? r : void 0,
|
|
1421
|
+
sort: x.sort ? e : void 0,
|
|
1422
|
+
filter: Mt(x.filter ? t : void 0, x.search ? s : void 0),
|
|
1423
|
+
...a ? {
|
|
1424
|
+
take: this.$props.pageable ? n || 10 : n,
|
|
1425
|
+
skip: o || 0
|
|
1379
1426
|
} : {}
|
|
1380
1427
|
});
|
|
1381
|
-
$ =
|
|
1428
|
+
$ = b, C = (ze = this.$props.total) != null ? ze : k;
|
|
1382
1429
|
}
|
|
1383
1430
|
const {
|
|
1384
1431
|
resolvedGroupsCount: X,
|
|
1385
1432
|
flattedData: Y
|
|
1386
|
-
} = this.getFlatData($,
|
|
1433
|
+
} = this.getFlatData($, z, I ? 0 : this.$props.skip || 0, r, h, l, this.$props.dataItemKey);
|
|
1387
1434
|
this.dataRef = Y;
|
|
1388
|
-
const
|
|
1389
|
-
if (this._virtualTotal =
|
|
1390
|
-
let
|
|
1391
|
-
if ((
|
|
1435
|
+
const P = this.virtualSkipRef || 0;
|
|
1436
|
+
if (this._virtualTotal = C, this.isVirtualScroll) {
|
|
1437
|
+
let a = o || 0;
|
|
1438
|
+
if ((f || this.$props.pageable) && (a = P, this._virtualTotal = this.dataRef.length), I || f || this.$props.pageable)
|
|
1392
1439
|
if (this._virtualPageSize === 0) {
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1440
|
+
const b = Math.min(n || this.$props.pageSize || 20, this.dataRef.length);
|
|
1441
|
+
m = this.dataRef.slice(a, a + b);
|
|
1395
1442
|
} else
|
|
1396
|
-
|
|
1443
|
+
m = this.dataRef.slice(a, a + this._virtualPageSize);
|
|
1397
1444
|
}
|
|
1398
1445
|
this.initializeVirtualization();
|
|
1399
|
-
const Q = (
|
|
1400
|
-
this.initColumns(this.$props.dataItems, X), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this.columnsRef, this.columnResize.columnsState =
|
|
1401
|
-
const
|
|
1402
|
-
ref: (
|
|
1403
|
-
this.groupPanelDivRef =
|
|
1446
|
+
const Q = (De = this.selectable) != null && De.drag ? "none" : void 0;
|
|
1447
|
+
this.initColumns(this.$props.dataItems, X), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this.columnsRef, this.columnResize.columnsState = xt(this.currentColumnsState || []), this.dragLogic.columns = this.columnsRef;
|
|
1448
|
+
const V = this.$props.toolbar, D = this.$props.noRecords, T = this.columnsRef.filter((a) => a.children.length === 0), O = v && d(Yt, {
|
|
1449
|
+
ref: (a) => {
|
|
1450
|
+
this.groupPanelDivRef = a;
|
|
1404
1451
|
},
|
|
1405
1452
|
group: r || [],
|
|
1406
1453
|
ariaControls: this._gridRoleElementId,
|
|
@@ -1409,35 +1456,35 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1409
1456
|
onDragHandler: this.dragLogic.dragHandler,
|
|
1410
1457
|
onReleaseHandler: this.dragLogic.releaseHandler,
|
|
1411
1458
|
resolveTitle: this.resolveTitle
|
|
1412
|
-
}, null),
|
|
1413
|
-
ref: (
|
|
1414
|
-
this.dropElementClueRef =
|
|
1459
|
+
}, null), N = (this.dragLogic.reorderable || this.dragLogic.groupable) && B && document && document.body, K = [N && d(rs, {
|
|
1460
|
+
ref: (a) => {
|
|
1461
|
+
this.dropElementClueRef = a;
|
|
1415
1462
|
}
|
|
1416
|
-
}, null),
|
|
1417
|
-
ref: (
|
|
1418
|
-
this.dragElementClueRef =
|
|
1463
|
+
}, null), N && d(ns, {
|
|
1464
|
+
ref: (a) => {
|
|
1465
|
+
this.dragElementClueRef = a;
|
|
1419
1466
|
}
|
|
1420
|
-
}, null)],
|
|
1467
|
+
}, null)], W = this.showLicenseWatermark ? d($t, {
|
|
1421
1468
|
message: this.licenseMessage
|
|
1422
|
-
}, null) : null, Z = this.$attrs.style,
|
|
1423
|
-
this.tableWidth = parseFloat(
|
|
1424
|
-
const
|
|
1425
|
-
let
|
|
1426
|
-
|
|
1427
|
-
const
|
|
1469
|
+
}, null) : null, Z = this.$attrs.style, ht = Z && q(Z) && Z["width"] || "";
|
|
1470
|
+
this.tableWidth = parseFloat(ht.toString());
|
|
1471
|
+
const ct = T.findIndex((a) => typeof a.colSpan == "function") > -1;
|
|
1472
|
+
let U;
|
|
1473
|
+
U = this.getCellsToRender({}, T);
|
|
1474
|
+
const G = T.map(function(a, b) {
|
|
1428
1475
|
return d("col", {
|
|
1429
|
-
key:
|
|
1430
|
-
width:
|
|
1476
|
+
key: a.id || `col-${b}`,
|
|
1477
|
+
width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
|
|
1431
1478
|
}, null);
|
|
1432
|
-
}, this),
|
|
1479
|
+
}, this), pe = d(qt, {
|
|
1433
1480
|
size: this.$props.size,
|
|
1434
1481
|
columnResize: this.columnResize,
|
|
1435
1482
|
staticHeaders: this.$props.scrollable !== "none",
|
|
1436
|
-
ref: (
|
|
1437
|
-
this.headerRef =
|
|
1483
|
+
ref: (a) => {
|
|
1484
|
+
this.headerRef = a;
|
|
1438
1485
|
},
|
|
1439
1486
|
onHeaderscroll: this.onHeaderScroll,
|
|
1440
|
-
headerRow: d(
|
|
1487
|
+
headerRow: d(Jt, {
|
|
1441
1488
|
grid: this,
|
|
1442
1489
|
sort: e,
|
|
1443
1490
|
groupable: this.$props.groupable,
|
|
@@ -1446,14 +1493,14 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1446
1493
|
onSortChange: this.sortChangeHandler,
|
|
1447
1494
|
filter: t,
|
|
1448
1495
|
filterable: this.$props.filterable,
|
|
1449
|
-
filterOperators: this.$props.filterOperators ||
|
|
1496
|
+
filterOperators: this.$props.filterOperators || Qe,
|
|
1450
1497
|
onFilterChange: this.filterChangeHandler,
|
|
1451
1498
|
columnMenu: this.$props.columnMenu,
|
|
1452
1499
|
columnMenuIcon: this.$props.columnMenuIcon,
|
|
1453
1500
|
columnMenuAnimate: this.$props.columnMenuAnimate,
|
|
1454
1501
|
onSelectionchange: this.onHeaderSelectionChangeHandler,
|
|
1455
1502
|
columns: this.columnsRef,
|
|
1456
|
-
cellsToRender:
|
|
1503
|
+
cellsToRender: U,
|
|
1457
1504
|
columnVirtualization: this.$props.columnVirtualization,
|
|
1458
1505
|
columnsInitial: this.$props.columns,
|
|
1459
1506
|
columnResize: this.columnResize,
|
|
@@ -1465,16 +1512,16 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1465
1512
|
cells: this.$props.cells,
|
|
1466
1513
|
isRtl: this.isRtl,
|
|
1467
1514
|
isColCountDefined: this.getAriaColCount !== void 0,
|
|
1468
|
-
headerSelectionValue: !!(i && this.dataRef.filter((
|
|
1469
|
-
filterRow: this.$props.filterable && d(
|
|
1515
|
+
headerSelectionValue: !!(i && this.dataRef.filter((a) => a.rowType === "data").every((a) => i && this.$props.dataItemKey && M(this.$props.dataItemKey)(a.dataItem) !== void 0 ? i[M(this.$props.dataItemKey)(a.dataItem)] : void 0)),
|
|
1516
|
+
filterRow: this.$props.filterable && d(Xt, {
|
|
1470
1517
|
grid: this,
|
|
1471
1518
|
size: this.$props.size,
|
|
1472
1519
|
columns: this.columnsRef,
|
|
1473
1520
|
columnsMap: this._columnsMap,
|
|
1474
|
-
cellsToRender:
|
|
1521
|
+
cellsToRender: U,
|
|
1475
1522
|
columnVirtualization: this.$props.columnVirtualization,
|
|
1476
1523
|
filter: t,
|
|
1477
|
-
filterOperators: this.$props.filterOperators ||
|
|
1524
|
+
filterOperators: this.$props.filterOperators || Qe,
|
|
1478
1525
|
onFilterchange: this.filterChangeHandler,
|
|
1479
1526
|
sort: this.$props.sort,
|
|
1480
1527
|
cellRender: this.$props.filterCellRender,
|
|
@@ -1483,27 +1530,27 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1483
1530
|
ariaRowIndex: this._columnsMap.length + 1
|
|
1484
1531
|
}, null) || void 0
|
|
1485
1532
|
}, null),
|
|
1486
|
-
cols:
|
|
1487
|
-
}, null),
|
|
1488
|
-
var
|
|
1489
|
-
return !!(
|
|
1490
|
-
}) || (
|
|
1533
|
+
cols: G
|
|
1534
|
+
}, null), ue = this.columnsRef.some((a) => {
|
|
1535
|
+
var b;
|
|
1536
|
+
return !!(a.footerCell || (b = a.cells) != null && b.footerCell);
|
|
1537
|
+
}) || (Ge = this.$props.cells) != null && Ge.footerCell ? d(Qt, {
|
|
1491
1538
|
size: this.$props.size,
|
|
1492
1539
|
columnResize: this.columnResize,
|
|
1493
1540
|
staticHeaders: this.$props.scrollable !== "none",
|
|
1494
|
-
ref: (
|
|
1495
|
-
this.footerRef =
|
|
1541
|
+
ref: (a) => {
|
|
1542
|
+
this.footerRef = a;
|
|
1496
1543
|
},
|
|
1497
|
-
row: d(
|
|
1544
|
+
row: d(Zt, {
|
|
1498
1545
|
isRtl: this.isRtl,
|
|
1499
1546
|
rowIndex: this.getAriaRowCount + 1,
|
|
1500
1547
|
columns: this.columnsRef,
|
|
1501
1548
|
cells: this.$props.cells
|
|
1502
1549
|
}, null),
|
|
1503
|
-
cols:
|
|
1504
|
-
}, null) : d("span", null, null),
|
|
1550
|
+
cols: G
|
|
1551
|
+
}, null) : d("span", null, null), _ = {
|
|
1505
1552
|
leafColumns: T,
|
|
1506
|
-
cellsToRender:
|
|
1553
|
+
cellsToRender: U,
|
|
1507
1554
|
selectedField: this.$props.selectedField,
|
|
1508
1555
|
dataItemKey: this.$props.dataItemKey,
|
|
1509
1556
|
select: i,
|
|
@@ -1512,7 +1559,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1512
1559
|
cellRender: this.$props.cellRender,
|
|
1513
1560
|
cells: this.$props.cells,
|
|
1514
1561
|
getCellsToRender: this.getCellsToRender,
|
|
1515
|
-
hasDynamicColSpan:
|
|
1562
|
+
hasDynamicColSpan: ct,
|
|
1516
1563
|
itemChange: this.itemChange,
|
|
1517
1564
|
selectionChangeHandler: this.selectionChangeHandler,
|
|
1518
1565
|
editHandler: this.editHandler,
|
|
@@ -1526,113 +1573,113 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1526
1573
|
columnsRef: this.columnsRef,
|
|
1527
1574
|
isRtl: this.isRtl,
|
|
1528
1575
|
idPrefix: w
|
|
1529
|
-
},
|
|
1530
|
-
return
|
|
1576
|
+
}, pt = function(a, b, k, oe, ne) {
|
|
1577
|
+
return Is(_, a, b, k, oe, ne);
|
|
1531
1578
|
};
|
|
1532
|
-
let
|
|
1533
|
-
const te = !this.dataRef.length,
|
|
1579
|
+
let ut = 0, ee = [];
|
|
1580
|
+
const te = !this.dataRef.length, fe = (a) => a >= this.dataRef.length - ut;
|
|
1534
1581
|
let se = 0;
|
|
1535
1582
|
if (this.dataRef.length) {
|
|
1536
|
-
const
|
|
1537
|
-
let
|
|
1583
|
+
const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
|
|
1584
|
+
let b = this.$props.skip || 0, k = -1, oe = 0;
|
|
1538
1585
|
const ne = this.computedRowSpannable.enabled ? {} : void 0;
|
|
1539
1586
|
if (this.isVirtualScroll) {
|
|
1540
|
-
if (
|
|
1541
|
-
const
|
|
1542
|
-
|
|
1587
|
+
if (P > 0) {
|
|
1588
|
+
const g = this.dataRef.slice(0, P).filter((A) => A.rowType === "data").length;
|
|
1589
|
+
k += g, b += P;
|
|
1543
1590
|
}
|
|
1544
|
-
!this.$props.pageable &&
|
|
1591
|
+
!this.$props.pageable && I && (k += this.$props.skip || 0);
|
|
1545
1592
|
}
|
|
1546
|
-
ee = (
|
|
1547
|
-
|
|
1548
|
-
const re =
|
|
1549
|
-
return se = le +
|
|
1593
|
+
ee = (m || this.dataRef).map(function(g, A) {
|
|
1594
|
+
g.rowType === "data" && k++;
|
|
1595
|
+
const re = g.dataIndex % 2 !== 0, Fe = this.$props.dataItemKey && M(this.$props.dataItemKey)(g.dataItem), le = A + b, ae = Fe || "ai" + le, de = ae + "_1", j = pt.call(this, g, ae, k, re, ne), Rt = g.rowType === "data" ? this.pinnedSourceSet.has(g.dataItem) : !1, Ct = T.length - (this.detailExpandable.enabled ? 1 : 0) - ((r == null ? void 0 : r.length) || 0) || 1;
|
|
1596
|
+
return se = le + a + oe, [d(gs, {
|
|
1550
1597
|
key: ae,
|
|
1551
|
-
item:
|
|
1552
|
-
dataIndex:
|
|
1598
|
+
item: g,
|
|
1599
|
+
dataIndex: k,
|
|
1553
1600
|
ariaRowIndex: se,
|
|
1554
1601
|
absoluteRowIndex: le,
|
|
1555
1602
|
isAltRow: re,
|
|
1556
|
-
isHidden:
|
|
1603
|
+
isHidden: fe(A),
|
|
1557
1604
|
rowHeight: this.$props.rowHeight,
|
|
1558
|
-
isSelected:
|
|
1559
|
-
isHighlighted:
|
|
1560
|
-
isInEdit:
|
|
1561
|
-
rowType:
|
|
1562
|
-
onRowclick: (
|
|
1563
|
-
onRowdblclick: (
|
|
1605
|
+
isSelected: j.isSelected,
|
|
1606
|
+
isHighlighted: j.isHighlighted,
|
|
1607
|
+
isInEdit: j.isInEdit,
|
|
1608
|
+
rowType: g.rowType,
|
|
1609
|
+
onRowclick: (F) => this.rowClick(F, g),
|
|
1610
|
+
onRowdblclick: (F) => this.rowDoubleClick(F, g),
|
|
1564
1611
|
render: this.$props.rowRender,
|
|
1565
|
-
class: this.$props.rowClass ? this.$props.rowClass(
|
|
1566
|
-
isPinned:
|
|
1612
|
+
class: this.$props.rowClass ? this.$props.rowClass(g) : "",
|
|
1613
|
+
isPinned: Rt,
|
|
1567
1614
|
rows: this.$props.rows
|
|
1568
1615
|
}, {
|
|
1569
|
-
default: () => [
|
|
1570
|
-
}), this.$props.detail &&
|
|
1616
|
+
default: () => [j.row]
|
|
1617
|
+
}), this.$props.detail && g.rowType === "data" && (g.expanded || g.dataItem.expanded) && d("tr", {
|
|
1571
1618
|
key: de,
|
|
1572
1619
|
class: re ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
|
|
1573
1620
|
style: {
|
|
1574
|
-
visibility:
|
|
1621
|
+
visibility: fe(A) ? "hidden" : "",
|
|
1575
1622
|
height: this.$props.detailRowHeight + "px"
|
|
1576
1623
|
},
|
|
1577
1624
|
role: "row",
|
|
1578
1625
|
"aria-rowindex": se
|
|
1579
|
-
}, [r == null ? void 0 : r.map(function(
|
|
1580
|
-
return d(
|
|
1626
|
+
}, [r == null ? void 0 : r.map(function(F) {
|
|
1627
|
+
return d(tt, {
|
|
1581
1628
|
id: "",
|
|
1582
|
-
dataIndex:
|
|
1583
|
-
field:
|
|
1584
|
-
dataItem:
|
|
1585
|
-
key: `group-${
|
|
1629
|
+
dataIndex: g.dataIndex,
|
|
1630
|
+
field: F.field,
|
|
1631
|
+
dataItem: g.dataItem,
|
|
1632
|
+
key: `group-${F.field}-${g.dataIndex}`,
|
|
1586
1633
|
locked: this.$props.lockGroups,
|
|
1587
|
-
group:
|
|
1634
|
+
group: g.group
|
|
1588
1635
|
}, null);
|
|
1589
|
-
}, this), (this.$props.expandField || this.detailExpandable.enabled) && d(
|
|
1590
|
-
id:
|
|
1591
|
-
}, null), d(
|
|
1592
|
-
dataItem:
|
|
1593
|
-
dataIndex:
|
|
1594
|
-
colSpan:
|
|
1636
|
+
}, this), (this.$props.expandField || this.detailExpandable.enabled) && d(Ut, {
|
|
1637
|
+
id: E.generateNavigatableId(`${de}-dhcell`, w)
|
|
1638
|
+
}, null), d(jt, {
|
|
1639
|
+
dataItem: g.dataItem,
|
|
1640
|
+
dataIndex: g.dataIndex,
|
|
1641
|
+
colSpan: Ct,
|
|
1595
1642
|
ariaColIndex: 2 + (r ? r.length : 0),
|
|
1596
1643
|
detail: this.$props.detail ? this.$props.detail : void 0,
|
|
1597
|
-
id:
|
|
1644
|
+
id: E.generateNavigatableId(`${de}-dcell`, w)
|
|
1598
1645
|
}, null)])];
|
|
1599
1646
|
}, this);
|
|
1600
1647
|
}
|
|
1601
|
-
const
|
|
1648
|
+
const ft = this.$props.pageable && d(Et, {
|
|
1602
1649
|
class: "k-grid-pager",
|
|
1603
1650
|
onPagesizechange: this.pageChangeHandler,
|
|
1604
1651
|
onPagechange: this.pageChangeHandler,
|
|
1605
1652
|
size: this.$props.size,
|
|
1606
|
-
total:
|
|
1607
|
-
skip:
|
|
1608
|
-
pageSize: (
|
|
1609
|
-
messagesMap:
|
|
1610
|
-
settings:
|
|
1611
|
-
}, null),
|
|
1612
|
-
h:
|
|
1653
|
+
total: C,
|
|
1654
|
+
skip: o || 0,
|
|
1655
|
+
pageSize: (n !== void 0 ? n : this.$props.pageSize) || 10,
|
|
1656
|
+
messagesMap: nt,
|
|
1657
|
+
settings: Pt(this.$props.pageable || {})
|
|
1658
|
+
}, null), me = Ae.call(this, {
|
|
1659
|
+
h: Le,
|
|
1613
1660
|
template: this.$props.pager,
|
|
1614
|
-
defaultRendering:
|
|
1661
|
+
defaultRendering: ft,
|
|
1615
1662
|
additionalProps: {
|
|
1616
1663
|
...this.$props,
|
|
1617
1664
|
skip: this.$props.skip || 0,
|
|
1618
|
-
messagesMap:
|
|
1665
|
+
messagesMap: nt
|
|
1619
1666
|
},
|
|
1620
1667
|
additionalListeners: {
|
|
1621
1668
|
pagesizechange: this.pageChangeHandler,
|
|
1622
1669
|
pagechange: this.pageChangeHandler
|
|
1623
1670
|
}
|
|
1624
|
-
}),
|
|
1671
|
+
}), mt = (a) => e && e.filter((b) => b.field === a).length > 0, ge = d("colgroup", {
|
|
1625
1672
|
ref: y(this, "colGroup")
|
|
1626
|
-
}, [T.map(function(
|
|
1673
|
+
}, [T.map(function(a, b) {
|
|
1627
1674
|
return d("col", {
|
|
1628
|
-
key:
|
|
1629
|
-
class:
|
|
1630
|
-
width:
|
|
1675
|
+
key: a.id || `col-${b}`,
|
|
1676
|
+
class: mt(a.field) ? "k-sorted" : void 0,
|
|
1677
|
+
width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
|
|
1631
1678
|
}, null);
|
|
1632
|
-
}, this)]),
|
|
1679
|
+
}, this)]), Re = {
|
|
1633
1680
|
height: this.getCorrectHeight,
|
|
1634
1681
|
...this.$attrs.style
|
|
1635
|
-
},
|
|
1682
|
+
}, gt = d("div", {
|
|
1636
1683
|
class: "k-loading-mask"
|
|
1637
1684
|
}, [d("div", {
|
|
1638
1685
|
class: "k-loading-color"
|
|
@@ -1643,71 +1690,73 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1643
1690
|
justifyContent: "center",
|
|
1644
1691
|
alignItems: "center"
|
|
1645
1692
|
}
|
|
1646
|
-
}, [d(
|
|
1693
|
+
}, [d(Wt, {
|
|
1647
1694
|
size: "large",
|
|
1648
1695
|
type: "converging-spinner"
|
|
1649
|
-
}, null)])]), ie = this.$props.showLoader &&
|
|
1650
|
-
h:
|
|
1696
|
+
}, null)])]), ie = this.$props.showLoader && Ae.call(this, {
|
|
1697
|
+
h: Le,
|
|
1651
1698
|
template: this.$props.loader,
|
|
1652
|
-
defaultRendering:
|
|
1699
|
+
defaultRendering: gt
|
|
1653
1700
|
});
|
|
1654
|
-
return this.$props.scrollable === "none" ? d(
|
|
1701
|
+
return this.$props.scrollable === "none" ? d(Ke, null, [d(We, {
|
|
1655
1702
|
ref: "navRef",
|
|
1656
1703
|
id: this._gridId,
|
|
1657
1704
|
navigatable: this.$props.navigatable,
|
|
1658
1705
|
scrollable: this.$props.scrollable,
|
|
1659
1706
|
columnVirtualization: this.$props.columnVirtualization
|
|
1660
1707
|
}, {
|
|
1661
|
-
default: () => [d(
|
|
1662
|
-
ref: (
|
|
1663
|
-
this.gridNavRef =
|
|
1708
|
+
default: () => [d(Je, {
|
|
1709
|
+
ref: (a) => {
|
|
1710
|
+
this.gridNavRef = a;
|
|
1664
1711
|
},
|
|
1665
1712
|
columnsRef: this.columnsRef,
|
|
1666
1713
|
dataRef: this.dataRef,
|
|
1667
1714
|
id: this.$props.id,
|
|
1668
|
-
|
|
1715
|
+
dir: this.$props.dir,
|
|
1716
|
+
style: Re,
|
|
1669
1717
|
class: this.nonscrollableWrapperClass,
|
|
1670
1718
|
onMovetonextpage: this.moveToNextPage,
|
|
1671
1719
|
onMovetoprevpage: this.moveToPrevPage,
|
|
1672
1720
|
onColumnreorder: this.columnReorder,
|
|
1673
1721
|
onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler
|
|
1674
1722
|
}, {
|
|
1675
|
-
default: () => [
|
|
1723
|
+
default: () => [V, O, d("div", {
|
|
1676
1724
|
role: "grid",
|
|
1677
1725
|
class: "k-grid-aria-root",
|
|
1678
1726
|
id: this._gridRoleElementId,
|
|
1679
1727
|
"aria-colcount": this.getAriaColCount,
|
|
1680
1728
|
"aria-rowcount": this.getAriaRowCount
|
|
1681
|
-
}, [d(
|
|
1729
|
+
}, [d(es, {
|
|
1682
1730
|
selectable: this.computedSelectable,
|
|
1683
1731
|
class: "k-table",
|
|
1684
1732
|
ref: y(this, "table")
|
|
1685
1733
|
}, {
|
|
1686
|
-
default: () => [
|
|
1734
|
+
default: () => [ge, pe, d("tbody", {
|
|
1687
1735
|
class: "k-table-tbody",
|
|
1688
1736
|
"data-keyboardnavbody": !0,
|
|
1689
1737
|
ref: y(this, "tableBody")
|
|
1690
|
-
}, [ee,
|
|
1691
|
-
}), te && d(
|
|
1692
|
-
id:
|
|
1738
|
+
}, [ee, St(" "), ie]), ue]
|
|
1739
|
+
}), te && d(ot, {
|
|
1740
|
+
id: E.generateNavigatableId("no-records", w)
|
|
1693
1741
|
}, {
|
|
1694
|
-
default: () => [
|
|
1695
|
-
})]),
|
|
1742
|
+
default: () => [D.length ? D : d(it, null, null)]
|
|
1743
|
+
})]), me, ie, K]
|
|
1696
1744
|
})]
|
|
1697
|
-
}), this.renderContextMenu()]) : d(
|
|
1745
|
+
}), this.renderContextMenu()]) : d(Ke, null, [d(We, {
|
|
1698
1746
|
ref: "navRef",
|
|
1699
1747
|
id: this._gridId,
|
|
1700
1748
|
navigatable: this.$props.navigatable,
|
|
1701
1749
|
scrollable: this.$props.scrollable,
|
|
1702
1750
|
columnVirtualization: this.$props.columnVirtualization
|
|
1703
1751
|
}, {
|
|
1704
|
-
default: () => [d(
|
|
1705
|
-
ref: (
|
|
1706
|
-
this.gridNavRef =
|
|
1752
|
+
default: () => [d(Je, {
|
|
1753
|
+
ref: (a) => {
|
|
1754
|
+
this.gridNavRef = a;
|
|
1707
1755
|
},
|
|
1708
1756
|
dataRef: this.dataRef,
|
|
1709
1757
|
id: this.$props.id,
|
|
1710
|
-
|
|
1758
|
+
dir: this.$props.dir,
|
|
1759
|
+
style: Re,
|
|
1711
1760
|
class: this.scrollableWrapperClass,
|
|
1712
1761
|
onMovetonextpage: this.moveToNextPage,
|
|
1713
1762
|
onMovetoprevpage: this.moveToPrevPage,
|
|
@@ -1715,17 +1764,17 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1715
1764
|
onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler,
|
|
1716
1765
|
onSetcurrentontop: this.setCurrentOnTop
|
|
1717
1766
|
}, {
|
|
1718
|
-
default: () => [
|
|
1767
|
+
default: () => [V, O, d("div", {
|
|
1719
1768
|
role: "grid",
|
|
1720
1769
|
class: "k-grid-aria-root",
|
|
1721
1770
|
id: this._gridRoleElementId,
|
|
1722
1771
|
"aria-colcount": this.getAriaColCount,
|
|
1723
1772
|
"aria-rowcount": this.getAriaRowCount
|
|
1724
|
-
}, [
|
|
1773
|
+
}, [pe, this.hasPinnedTopRows && d(at, {
|
|
1725
1774
|
ref: y(this, "pinnedTop"),
|
|
1726
1775
|
size: this.$props.size,
|
|
1727
|
-
cols:
|
|
1728
|
-
dataRowContext:
|
|
1776
|
+
cols: G,
|
|
1777
|
+
dataRowContext: _,
|
|
1729
1778
|
position: "top",
|
|
1730
1779
|
pinnedItems: this.sortedPinnedTopRows,
|
|
1731
1780
|
rowHeight: this.$props.rowHeight,
|
|
@@ -1734,13 +1783,13 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1734
1783
|
}, null), d("div", {
|
|
1735
1784
|
class: "k-grid-container",
|
|
1736
1785
|
role: "presentation"
|
|
1737
|
-
}, [
|
|
1786
|
+
}, [f && p && d(lt, {
|
|
1738
1787
|
ref: y(this, "stickyHeader"),
|
|
1739
1788
|
size: this.$props.size,
|
|
1740
|
-
cols:
|
|
1741
|
-
dataRowContext:
|
|
1789
|
+
cols: G,
|
|
1790
|
+
dataRowContext: _,
|
|
1742
1791
|
position: "top",
|
|
1743
|
-
groupLevelCount:
|
|
1792
|
+
groupLevelCount: u,
|
|
1744
1793
|
rowHeight: this.$props.rowHeight
|
|
1745
1794
|
}, null), d("div", {
|
|
1746
1795
|
role: "presentation",
|
|
@@ -1750,7 +1799,7 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1750
1799
|
}, [d("div", {
|
|
1751
1800
|
class: "k-grid-table-wrap",
|
|
1752
1801
|
role: "presentation"
|
|
1753
|
-
}, [d(
|
|
1802
|
+
}, [d(ts, {
|
|
1754
1803
|
selectable: this.computedSelectable,
|
|
1755
1804
|
tableClassName: this.gridTableClass,
|
|
1756
1805
|
tableStyle: {
|
|
@@ -1758,16 +1807,16 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1758
1807
|
},
|
|
1759
1808
|
ref: y(this, "table")
|
|
1760
1809
|
}, {
|
|
1761
|
-
default: () => [
|
|
1810
|
+
default: () => [ge, d("tbody", {
|
|
1762
1811
|
class: "k-table-tbody",
|
|
1763
1812
|
role: "rowgroup",
|
|
1764
1813
|
"data-keyboardnavbody": !0,
|
|
1765
1814
|
ref: y(this, "tableBody")
|
|
1766
1815
|
}, [ee])]
|
|
1767
|
-
}), te && d(
|
|
1768
|
-
id:
|
|
1816
|
+
}), te && d(ot, {
|
|
1817
|
+
id: E.generateNavigatableId("no-records", w)
|
|
1769
1818
|
}, {
|
|
1770
|
-
default: () => [
|
|
1819
|
+
default: () => [D.length ? D : d(it, null, null)]
|
|
1771
1820
|
})]), !te && d("div", {
|
|
1772
1821
|
class: "k-height-container",
|
|
1773
1822
|
role: "presentation"
|
|
@@ -1776,29 +1825,29 @@ const fi = /* @__PURE__ */ Rt({
|
|
|
1776
1825
|
style: this.$props.scrollable === "virtual" ? {
|
|
1777
1826
|
height: this._containerHeightRef + "px"
|
|
1778
1827
|
} : {}
|
|
1779
|
-
}, null)])]),
|
|
1828
|
+
}, null)])]), f && c && d(lt, {
|
|
1780
1829
|
ref: y(this, "stickyFooter"),
|
|
1781
1830
|
size: this.$props.size,
|
|
1782
|
-
cols:
|
|
1783
|
-
dataRowContext:
|
|
1831
|
+
cols: G,
|
|
1832
|
+
dataRowContext: _,
|
|
1784
1833
|
position: "bottom",
|
|
1785
|
-
groupLevelCount:
|
|
1834
|
+
groupLevelCount: u,
|
|
1786
1835
|
rowHeight: this.$props.rowHeight
|
|
1787
|
-
}, null)]), this.hasPinnedBottomRows && d(
|
|
1836
|
+
}, null)]), this.hasPinnedBottomRows && d(at, {
|
|
1788
1837
|
ref: y(this, "pinnedBottom"),
|
|
1789
1838
|
size: this.$props.size,
|
|
1790
|
-
cols:
|
|
1791
|
-
dataRowContext:
|
|
1839
|
+
cols: G,
|
|
1840
|
+
dataRowContext: _,
|
|
1792
1841
|
position: "bottom",
|
|
1793
1842
|
pinnedItems: this.sortedPinnedBottomRows,
|
|
1794
1843
|
rowHeight: this.$props.rowHeight,
|
|
1795
1844
|
rows: this.$props.rows,
|
|
1796
1845
|
selectable: this.computedSelectable
|
|
1797
|
-
}, null),
|
|
1846
|
+
}, null), ue, W]), me, ie, K]
|
|
1798
1847
|
})]
|
|
1799
1848
|
}), this.renderContextMenu()]);
|
|
1800
1849
|
}
|
|
1801
1850
|
});
|
|
1802
1851
|
export {
|
|
1803
|
-
|
|
1852
|
+
Ri as Grid
|
|
1804
1853
|
};
|