@progress/kendo-vue-grid 7.1.0-develop.5 → 7.1.0-develop.7
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 +332 -319
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +9 -10
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +24 -19
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +23 -23
- package/common.js +1 -1
- package/common.mjs +1 -0
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +9 -16
- package/header/Header.js +1 -1
- package/header/Header.mjs +20 -26
- package/index.d.mts +32 -15
- package/index.d.ts +32 -15
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
- package/utils/browser-support.service.js +0 -8
- package/utils/browser-support.service.mjs +0 -21
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 A, cloneArray as
|
|
10
|
-
import { tableKeyboardNavigationTools as
|
|
11
|
-
import { Loader as
|
|
12
|
-
import { GridNav as
|
|
13
|
-
import { GridSelectionCell as
|
|
8
|
+
import { defineComponent as at, createVNode as n, h as De, createTextVNode as ot, ref as x, inject as nt, markRaw as _ } from "vue";
|
|
9
|
+
import { isObject as A, cloneArray as dt, canUseDOM as Q, WatermarkOverlay as ht, getter as X, getTemplate as Te, setRef as G, hasListener as L, getRef as $, RowHeightService as pt, setScrollbarWidth as ut, kendoThemeMaps as Ge, uGrid as ct, isRtl as Fe, validatePackage as gt, shouldShowValidationUI as ft, getLicenseMessage as mt, guid as Le, getNestedValue as Pe } from "@progress/kendo-vue-common";
|
|
10
|
+
import { tableKeyboardNavigationTools as E, combineFilters as Ct, Pager as bt, normalize as $t, TableKeyboardNavigationProvider as Me, updateLeft as Rt, updateRight as xt, groupExpandReducer as vt, detailExpandReducer as wt, getDetailExpandableOptions as It, getGroupExpandableOptions as St } from "@progress/kendo-vue-data-tools";
|
|
11
|
+
import { Loader as yt } from "@progress/kendo-vue-indicators";
|
|
12
|
+
import { GridNav as Ae } from "./GridNav.mjs";
|
|
13
|
+
import { GridSelectionCell as Ve } from "./cells/GridSelectionCell.mjs";
|
|
14
14
|
import { GridHierarchyCell as Y } 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 Ht } from "./cells/GridDetailHierarchyCell.mjs";
|
|
16
|
+
import { GridDetailCell as kt } from "./cells/GridDetailCell.mjs";
|
|
17
|
+
import { GridEditCell as _t } from "./cells/GridEditCell.mjs";
|
|
18
|
+
import { Header as Et } from "./header/Header.mjs";
|
|
19
|
+
import { HeaderRow as zt } from "./header/HeaderRow.mjs";
|
|
20
|
+
import { FilterRow as Dt } from "./header/FilterRow.mjs";
|
|
21
|
+
import { GroupPanel as Tt } from "./header/GroupPanel.mjs";
|
|
22
|
+
import { Footer as Gt } from "./footer/Footer.mjs";
|
|
23
|
+
import { FooterRow as Ft } from "./footer/FooterRow.mjs";
|
|
24
|
+
import { operators as Ne } from "./filterCommon.mjs";
|
|
25
|
+
import { VirtualScroll as Lt } from "./VirtualScroll.mjs";
|
|
26
|
+
import { ColumnResize as Pt } from "./drag/ColumnResize.mjs";
|
|
27
|
+
import { CommonDragLogic as Mt } from "./drag/CommonDragLogic.mjs";
|
|
28
|
+
import { DragClue as At } from "./drag/DragClue.mjs";
|
|
29
|
+
import { DropClue as Vt } from "./drag/DropClue.mjs";
|
|
30
|
+
import { applyExpandedState as Nt, getColSpan as Ot, autoGenerateColumns as Wt, mapColumns as Kt, getFlatColumnsState as Oe, getRowSpanOptions as We, groupedFirstItemValue as Ke, calcRowHeight as Ut, flatData as Bt, readColumns as jt } from "./utils/main.mjs";
|
|
31
|
+
import { GridCell as qt } from "./cells/GridCell.mjs";
|
|
32
32
|
import { GridGroupCell as Z } 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 Jt } from "./rows/GridRow.mjs";
|
|
34
|
+
import { gridProps as Qt } from "./common.mjs";
|
|
35
|
+
import { GridHeaderSelectionCell as Ue } from "./header/GridHeaderSelectionCell.mjs";
|
|
36
|
+
import { GridNoRecords as Be } from "./components/noRecords/GridNoRecords.mjs";
|
|
37
|
+
import { GridNoRecordsContainer as je } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
38
38
|
import { packageMetadata as ee } 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 qe } from "./messages/messagesMap.mjs";
|
|
40
|
+
import { process as Xt } from "@progress/kendo-data-query";
|
|
41
|
+
import { KendoKey as Yt } from "./key.mjs";
|
|
42
|
+
import { getVirtualCellsToRender as Zt } from "./utils/virtualColumns.mjs";
|
|
43
|
+
const Pi = /* @__PURE__ */ at({
|
|
44
44
|
name: "KendoGrid",
|
|
45
45
|
inheritAttrs: !1,
|
|
46
46
|
props: {
|
|
47
|
-
...
|
|
47
|
+
...Qt,
|
|
48
48
|
toolbar: {
|
|
49
49
|
type: Object
|
|
50
50
|
},
|
|
@@ -89,18 +89,18 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
created() {
|
|
92
|
-
|
|
92
|
+
gt(ee), this.showLicenseWatermark = ft(ee), this.licenseMessage = mt(ee), this.initialHeight = null, this._columns = [], this.vsRef = new Lt(), this.dragLogic = new Mt(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Pt(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableBodyRef = null, this.tableRef = null, this.scrollHeightContainerRef = null, this.forceUpdateTimeout = void 0, this._gridId = Le(), this._gridRoleElementId = Le(), 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 = Fe(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 = Q && (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 = Fe(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 _i = /* @__PURE__ */ Ze({
|
|
|
114
114
|
return this.$props.navigatable ? this.gridId : "";
|
|
115
115
|
},
|
|
116
116
|
groupExpandable() {
|
|
117
|
-
return
|
|
117
|
+
return St(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
|
|
118
118
|
},
|
|
119
119
|
hierarchClass() {
|
|
120
|
-
return
|
|
120
|
+
return ct.hierarchyCell({});
|
|
121
121
|
},
|
|
122
|
-
|
|
123
|
-
return
|
|
122
|
+
computedRowSpannable() {
|
|
123
|
+
return We(this.$props.rowSpannable);
|
|
124
124
|
},
|
|
125
125
|
detailExpandable() {
|
|
126
|
-
return
|
|
126
|
+
return It(!!this.$props.detail);
|
|
127
127
|
},
|
|
128
128
|
nonscrollableWrapperClass() {
|
|
129
129
|
const {
|
|
@@ -132,7 +132,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
132
132
|
return {
|
|
133
133
|
"k-grid": !0,
|
|
134
134
|
"k-grid-md": !e,
|
|
135
|
-
[`k-grid-${
|
|
135
|
+
[`k-grid-${Ge.sizeMap[e] || e}`]: e,
|
|
136
136
|
[t]: !!t
|
|
137
137
|
};
|
|
138
138
|
},
|
|
@@ -153,7 +153,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
153
153
|
"k-table": !0,
|
|
154
154
|
"k-grid-table": !0,
|
|
155
155
|
"k-grid-md": !e,
|
|
156
|
-
[`k-table-${
|
|
156
|
+
[`k-table-${Ge.sizeMap[e] || e}`]: e
|
|
157
157
|
};
|
|
158
158
|
},
|
|
159
159
|
getCorrectHeight() {
|
|
@@ -189,7 +189,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
189
189
|
},
|
|
190
190
|
methods: {
|
|
191
191
|
readColumnElements() {
|
|
192
|
-
return
|
|
192
|
+
return jt(this.$props.columns, this.currentColumnsState, {
|
|
193
193
|
prevId: 0,
|
|
194
194
|
idPrefix: this.idPrefix
|
|
195
195
|
});
|
|
@@ -215,11 +215,11 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
215
215
|
})];
|
|
216
216
|
},
|
|
217
217
|
getFlatData(e, t, i, s, r, l, d) {
|
|
218
|
-
const
|
|
218
|
+
const h = [], c = Bt(h, e, t, {
|
|
219
219
|
index: i
|
|
220
220
|
}, s !== void 0, r, l, this.groupExpandable.defaultExpand, d, this.$props.expandField);
|
|
221
221
|
return {
|
|
222
|
-
flattedData:
|
|
222
|
+
flattedData: h,
|
|
223
223
|
resolvedGroupsCount: c
|
|
224
224
|
};
|
|
225
225
|
},
|
|
@@ -257,31 +257,31 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
257
257
|
declarationIndex: r,
|
|
258
258
|
parentIndex: l,
|
|
259
259
|
depth: d,
|
|
260
|
-
colSpan:
|
|
260
|
+
colSpan: h,
|
|
261
261
|
rowSpan: c,
|
|
262
|
-
index:
|
|
262
|
+
index: m,
|
|
263
263
|
kFirst: u,
|
|
264
|
-
children:
|
|
265
|
-
...
|
|
264
|
+
children: C,
|
|
265
|
+
...R
|
|
266
266
|
} = s;
|
|
267
|
-
return
|
|
268
|
-
children: t(
|
|
269
|
-
...
|
|
270
|
-
} :
|
|
267
|
+
return C.length ? {
|
|
268
|
+
children: t(C),
|
|
269
|
+
...R
|
|
270
|
+
} : R;
|
|
271
271
|
}));
|
|
272
272
|
return t(e);
|
|
273
273
|
},
|
|
274
274
|
setRefs() {
|
|
275
275
|
let e = "$el";
|
|
276
|
-
const t =
|
|
276
|
+
const t = $(this, "gridNav");
|
|
277
277
|
t && (this._element = t[e]);
|
|
278
|
-
const i =
|
|
278
|
+
const i = $(this, "groupPanelDiv");
|
|
279
279
|
if (i) {
|
|
280
280
|
let l = i[e] || null;
|
|
281
281
|
this.dragLogic.refGroupPanelDiv(l);
|
|
282
282
|
}
|
|
283
|
-
const s =
|
|
284
|
-
this.dragLogic.refDropElementClue(s), this.dragLogic.refDragElementClue(r), this.columnResize.colGroupMain =
|
|
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(), ut();
|
|
285
285
|
},
|
|
286
286
|
gridUnmounted() {
|
|
287
287
|
clearTimeout(this.forceUpdateTimeout), this.columnResize.columns = [], this.dragLogic.columns = [], this.dragLogic && this.dragLogic.dragElementClue && (this.dragLogic.dragElementClue.$el.remove(), this.dragLogic.dropElementClue.$el.remove()), this.currentData = [], this._columns = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect();
|
|
@@ -302,15 +302,15 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
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 =
|
|
305
|
+
e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, e.container = $(this, "scrollContainer"), e.tableBody = $(this, "tableBody"), e.scrollHeightContainer = $(this, "scrollHeightContainer"), e.table = $(this, "table"), (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new pt(this._virtualTotal, t)));
|
|
306
306
|
},
|
|
307
307
|
setContainerHeight() {
|
|
308
|
-
const e =
|
|
308
|
+
const e = $(this, "scrollContainer");
|
|
309
309
|
this._containerHeightRef = (e == null ? void 0 : e.offsetHeight) || 0;
|
|
310
310
|
},
|
|
311
311
|
setMinRowHeight() {
|
|
312
312
|
if (!this._minRowHeightRef && !this.$props.rowHeight) {
|
|
313
|
-
const t =
|
|
313
|
+
const t = Ut($(this, "tableBody"));
|
|
314
314
|
t && (this._minRowHeightRef = t, this.$forceUpdate());
|
|
315
315
|
}
|
|
316
316
|
},
|
|
@@ -343,13 +343,13 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
343
343
|
},
|
|
344
344
|
updateGroupCollapsed(e) {
|
|
345
345
|
let t = this.computedCollapsed, i = t[e.level];
|
|
346
|
-
const s = this.$props.uniqueField, r = function(
|
|
347
|
-
return
|
|
348
|
-
}, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d =
|
|
346
|
+
const s = this.$props.uniqueField, r = function(h, c) {
|
|
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 = Ke(l || e.dataItem, s);
|
|
349
349
|
if (e.value) {
|
|
350
350
|
if (i && i.length) {
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const h = i.indexOf(d);
|
|
352
|
+
h > -1 && i.splice(h, 1);
|
|
353
353
|
}
|
|
354
354
|
} else
|
|
355
355
|
i ? i.includes(d) || i.push(d) : i = [d];
|
|
@@ -357,9 +357,9 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
357
357
|
},
|
|
358
358
|
itemChange(e) {
|
|
359
359
|
var s;
|
|
360
|
-
const t =
|
|
360
|
+
const t = L.call(this, "itemchange"), i = (s = this.gridContext.group) == null ? void 0 : s.value;
|
|
361
361
|
if (e.field === this.$props.expandField || (i || this.$props.detail) && e.field === void 0) {
|
|
362
|
-
|
|
362
|
+
L.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
|
|
363
363
|
...this.getArguments(e.event),
|
|
364
364
|
collapsedGroups: this.updateGroupCollapsed(e),
|
|
365
365
|
dataItem: e.dataItem,
|
|
@@ -469,7 +469,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
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 =
|
|
472
|
+
const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, r = wt(s != null ? s : {}, e);
|
|
473
473
|
this.$emit("detailexpandchange", {
|
|
474
474
|
...this.getArguments(t),
|
|
475
475
|
detailExpand: r
|
|
@@ -479,7 +479,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
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 =
|
|
482
|
+
const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = vt(s != null ? s : [], e, this.groupExpandable);
|
|
483
483
|
this.$props.expandField || this.$emit("groupexpandchange", {
|
|
484
484
|
...this.getArguments(t),
|
|
485
485
|
groupExpand: r
|
|
@@ -492,12 +492,12 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
492
492
|
...this.getArguments(s),
|
|
493
493
|
...t
|
|
494
494
|
});
|
|
495
|
-
else if (
|
|
495
|
+
else if (L.call(this, e))
|
|
496
496
|
this.$emit(e, {
|
|
497
497
|
...this.getArguments(s),
|
|
498
498
|
...t
|
|
499
499
|
});
|
|
500
|
-
else if (
|
|
500
|
+
else if (L.call(this, "datastatechange")) {
|
|
501
501
|
const r = {
|
|
502
502
|
...this.getDataState(),
|
|
503
503
|
...i
|
|
@@ -510,23 +510,23 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
columnReorder(e, t, i) {
|
|
513
|
-
const s = this._columns[e], r =
|
|
513
|
+
const s = this._columns[e], r = Oe(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);
|
|
517
517
|
return u;
|
|
518
|
-
},
|
|
519
|
-
this._columns.splice(e < t ? d(t -
|
|
520
|
-
u.orderIndex =
|
|
521
|
-
const
|
|
522
|
-
|
|
518
|
+
}, h = this._columns.splice(e, d(e) - e);
|
|
519
|
+
this._columns.splice(e < t ? d(t - h.length) : t, 0, ...h), this._columns.filter((u) => u.declarationIndex >= 0).forEach((u, C) => {
|
|
520
|
+
u.orderIndex = C;
|
|
521
|
+
const R = r.find((I) => I.id === u.id);
|
|
522
|
+
R && (R.orderIndex = C);
|
|
523
523
|
});
|
|
524
524
|
const c = this._columns[e].locked && this._columns[t].locked;
|
|
525
|
-
|
|
526
|
-
const
|
|
525
|
+
Rt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), xt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
|
|
526
|
+
const m = this.getColumns();
|
|
527
527
|
this.$emit("columnreorder", {
|
|
528
528
|
target: this,
|
|
529
|
-
columns:
|
|
529
|
+
columns: m,
|
|
530
530
|
event: i,
|
|
531
531
|
prev: e,
|
|
532
532
|
next: t
|
|
@@ -550,18 +550,19 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
550
550
|
}), this.groupChangeHandler(r, i);
|
|
551
551
|
},
|
|
552
552
|
resetTableWidth() {
|
|
553
|
+
var s;
|
|
553
554
|
let e = 0;
|
|
554
555
|
if (!this.columnResize.colGroupMain)
|
|
555
556
|
return;
|
|
556
|
-
const t = this.columnResize.colGroupMain.children;
|
|
557
|
-
for (let
|
|
558
|
-
const
|
|
559
|
-
if (!
|
|
557
|
+
const t = (s = this.columnResize.colGroupMain) == null ? void 0 : s.children;
|
|
558
|
+
for (let r = 0; r < t.length; r++) {
|
|
559
|
+
const l = t[r].width;
|
|
560
|
+
if (!l)
|
|
560
561
|
return;
|
|
561
|
-
e += parseFloat(
|
|
562
|
+
e += parseFloat(l.toString());
|
|
562
563
|
}
|
|
563
564
|
e = Math.round(e), this._header && this._header.setWidth(e), this._footer && this._footer.setWidth(e);
|
|
564
|
-
const i =
|
|
565
|
+
const i = $(this, "table");
|
|
565
566
|
i && e && (i.style.width = e + "px");
|
|
566
567
|
},
|
|
567
568
|
onResize(e, t, i, s, r, l, d) {
|
|
@@ -594,11 +595,11 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
594
595
|
},
|
|
595
596
|
configureColumns(e, t) {
|
|
596
597
|
e.filter((l) => l.columnType === "checkbox").forEach((l) => {
|
|
597
|
-
l.width = l.width || "50px", l.defaultCell =
|
|
598
|
+
l.width = l.width || "50px", l.defaultCell = _(Ve), l.defaultHeaderCell = _(Ue), l._type = "edit";
|
|
598
599
|
}), this.$props.selectedField && this._columns.filter((l) => l.field === this.$props.selectedField).forEach((l) => {
|
|
599
|
-
l.width = l.width || "50px", l.internalCell =
|
|
600
|
+
l.width = l.width || "50px", l.internalCell = _(Ve), l.internalHeaderCell = _(Ue);
|
|
600
601
|
});
|
|
601
|
-
const i =
|
|
602
|
+
const i = Oe(this.currentColumnsState);
|
|
602
603
|
this.initColumnsState(e, i);
|
|
603
604
|
const s = {
|
|
604
605
|
id: "",
|
|
@@ -625,50 +626,50 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
625
626
|
const l = {
|
|
626
627
|
...s,
|
|
627
628
|
_type: "expand",
|
|
628
|
-
id:
|
|
629
|
-
defaultCell:
|
|
630
|
-
internalCell:
|
|
629
|
+
id: E.generateNavigatableId(`${r++}`, "expand", "column"),
|
|
630
|
+
defaultCell: _(Y),
|
|
631
|
+
internalCell: _(Y),
|
|
631
632
|
field: this.detailExpandable.column,
|
|
632
633
|
headerClassName: this.hierarchClass
|
|
633
634
|
};
|
|
634
635
|
e.unshift(l), this.currentColumnsState.unshift(i.find((d) => d.id === l.id) || l);
|
|
635
636
|
}
|
|
636
|
-
this.$props.expandField &&
|
|
637
|
+
this.$props.expandField && L.call(this, "expandchange") && this.$props.detail && (e.unshift({
|
|
637
638
|
...s,
|
|
638
|
-
internalCell:
|
|
639
|
+
internalCell: _(Y),
|
|
639
640
|
field: this.$props.expandField,
|
|
640
641
|
headerClassName: "k-hierarchy-cell k-header",
|
|
641
|
-
id:
|
|
642
|
+
id: E.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
|
|
642
643
|
...this.expandColumn
|
|
643
644
|
}), r++);
|
|
644
645
|
for (let l = 0; l < t; l++) {
|
|
645
646
|
const d = {
|
|
646
647
|
...s,
|
|
647
648
|
isAccessible: !1,
|
|
648
|
-
defaultCell:
|
|
649
|
-
internalCell:
|
|
650
|
-
id:
|
|
649
|
+
defaultCell: _(Z),
|
|
650
|
+
internalCell: _(Z),
|
|
651
|
+
id: E.generateNavigatableId(`${r++}`, "group", "column"),
|
|
651
652
|
field: "value",
|
|
652
653
|
locked: this.$props.lockGroups
|
|
653
654
|
};
|
|
654
|
-
e.unshift(d), this.currentColumnsState.unshift(i.find((
|
|
655
|
+
e.unshift(d), this.currentColumnsState.unshift(i.find((h) => h.id === d.id) || d);
|
|
655
656
|
}
|
|
656
657
|
e.slice(r).forEach((l) => {
|
|
657
|
-
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 ? We(l.rowSpannable) : this.computedRowSpannable;
|
|
658
659
|
});
|
|
659
660
|
},
|
|
660
661
|
initColumns(e, t) {
|
|
661
662
|
var l;
|
|
662
663
|
this._columns = this.readColumnElements();
|
|
663
664
|
const i = (l = this.gridContext.group) == null ? void 0 : l.value;
|
|
664
|
-
this._columns.filter((d) => !d.hidden).length === 0 && (this._columns =
|
|
665
|
+
this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = Wt(e, i, {
|
|
665
666
|
column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
|
|
666
667
|
}, {
|
|
667
668
|
prevId: 0,
|
|
668
669
|
idPrefix: this.idPrefix
|
|
669
670
|
})), this.configureColumns(this._columns, t);
|
|
670
671
|
const [s, r] = this.filterColumns(this._columns);
|
|
671
|
-
this._columns = s, this.hiddenColumnsRef = r, this._columnsMap =
|
|
672
|
+
this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = Kt(this._columns, !0);
|
|
672
673
|
},
|
|
673
674
|
resolveTitle(e) {
|
|
674
675
|
const t = this.findColumnByField(e), i = t && (t.title || t.field);
|
|
@@ -693,8 +694,8 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
693
694
|
return null;
|
|
694
695
|
},
|
|
695
696
|
getDataState() {
|
|
696
|
-
var l, d,
|
|
697
|
-
const e = (l = this.gridContext.sort) == null ? void 0 : l.value, t = (d = this.gridContext.filter) == null ? void 0 : d.value, i = (
|
|
697
|
+
var l, d, h, c, m;
|
|
698
|
+
const e = (l = this.gridContext.sort) == null ? void 0 : l.value, t = (d = this.gridContext.filter) == null ? void 0 : d.value, i = (h = this.gridContext.skip) == null ? void 0 : h.value, s = (c = this.gridContext.take) == null ? void 0 : c.value, r = (m = this.gridContext.group) == null ? void 0 : m.value;
|
|
698
699
|
return {
|
|
699
700
|
filter: t,
|
|
700
701
|
sort: e,
|
|
@@ -748,24 +749,24 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
748
749
|
var l;
|
|
749
750
|
const i = [];
|
|
750
751
|
let s = null, r = 0;
|
|
751
|
-
if (t.forEach((d,
|
|
752
|
+
if (t.forEach((d, h) => {
|
|
752
753
|
const c = parseFloat((d.width || "").toString()) || 10;
|
|
753
754
|
if (r) {
|
|
754
755
|
r--, s && (s.width += c);
|
|
755
756
|
return;
|
|
756
757
|
}
|
|
757
|
-
const
|
|
758
|
-
r =
|
|
758
|
+
const m = Math.min(Ot(d, e), t.length - h);
|
|
759
|
+
r = m - 1, s = {
|
|
759
760
|
width: c,
|
|
760
|
-
colSpan:
|
|
761
|
-
columnIndex:
|
|
761
|
+
colSpan: m,
|
|
762
|
+
columnIndex: h
|
|
762
763
|
}, i.push(s);
|
|
763
764
|
}), this.$props.columnVirtualization) {
|
|
764
|
-
const d = this.scrollLeftRef || 0,
|
|
765
|
-
return
|
|
765
|
+
const d = this.scrollLeftRef || 0, h = this.tableWidth || parseFloat((((l = this.$attrs.style) == null ? void 0 : l.width) || "").toString());
|
|
766
|
+
return Zt({
|
|
766
767
|
cellModels: i,
|
|
767
768
|
columns: t,
|
|
768
|
-
tableViewPortWidth:
|
|
769
|
+
tableViewPortWidth: h,
|
|
769
770
|
scrollLeft: d
|
|
770
771
|
});
|
|
771
772
|
}
|
|
@@ -800,7 +801,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
800
801
|
};
|
|
801
802
|
},
|
|
802
803
|
setup(e) {
|
|
803
|
-
const t =
|
|
804
|
+
const t = x(null), i = x(null), s = x(null), r = x(null), l = x(null), d = x(null), h = x(null), c = x(null), m = x(null), u = x(null), C = x(!0), R = x(!1), I = nt(Yt, {});
|
|
804
805
|
return {
|
|
805
806
|
groupPanelDivRef: t,
|
|
806
807
|
dropElementClueRef: i,
|
|
@@ -808,20 +809,20 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
808
809
|
headerRef: r,
|
|
809
810
|
footerRef: l,
|
|
810
811
|
gridNavRef: d,
|
|
811
|
-
colGroupRef:
|
|
812
|
+
colGroupRef: h,
|
|
812
813
|
scrollContainerRef: c,
|
|
813
|
-
scrollTableRef:
|
|
814
|
+
scrollTableRef: m,
|
|
814
815
|
scrollTableBodyRef: u,
|
|
815
|
-
gridContext:
|
|
816
|
-
shouldUpdateLeftRightRef:
|
|
817
|
-
resizedRef:
|
|
816
|
+
gridContext: I,
|
|
817
|
+
shouldUpdateLeftRightRef: C,
|
|
818
|
+
resizedRef: R,
|
|
818
819
|
currentColumnsState: e.columnsState
|
|
819
820
|
};
|
|
820
821
|
},
|
|
821
822
|
render() {
|
|
822
823
|
var ge, fe, me, Ce, be, $e, Re, xe, ve, we, Ie;
|
|
823
|
-
const e = (ge = this.gridContext.sort) == null ? void 0 : ge.value, t = (fe = this.gridContext.filter) == null ? void 0 : fe.value, i = (me = this.gridContext.search) == null ? void 0 : me.value, s = (Ce = this.gridContext.skip) == null ? void 0 : Ce.value, r = (be = this.gridContext.take) == null ? void 0 : be.value, l = ($e = this.gridContext.group) == null ? void 0 : $e.value, d = (Re = this.gridContext.groupExpand) == null ? void 0 : Re.value,
|
|
824
|
-
let
|
|
824
|
+
const e = (ge = this.gridContext.sort) == null ? void 0 : ge.value, t = (fe = this.gridContext.filter) == null ? void 0 : fe.value, i = (me = this.gridContext.search) == null ? void 0 : me.value, s = (Ce = this.gridContext.skip) == null ? void 0 : Ce.value, r = (be = this.gridContext.take) == null ? void 0 : be.value, l = ($e = this.gridContext.group) == null ? void 0 : $e.value, d = (Re = this.gridContext.groupExpand) == null ? void 0 : Re.value, h = (xe = this.gridContext.detailExpand) == null ? void 0 : xe.value, c = !!(l != null && l.length);
|
|
825
|
+
let m;
|
|
825
826
|
this.currentColumnsState = (ve = this.gridContext.columnsState) == null ? void 0 : ve.value;
|
|
826
827
|
const u = this.$props.autoProcessData === !0 ? {
|
|
827
828
|
group: !0,
|
|
@@ -830,45 +831,45 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
830
831
|
search: !0,
|
|
831
832
|
page: !0
|
|
832
833
|
} : this.$props.autoProcessData;
|
|
833
|
-
let
|
|
834
|
-
const
|
|
835
|
-
let
|
|
836
|
-
Array.isArray(this.$props.dataItems) ?
|
|
834
|
+
let C = this.$props.total || 0;
|
|
835
|
+
const R = E.getIdPrefix(this.navigation);
|
|
836
|
+
let I = [];
|
|
837
|
+
Array.isArray(this.$props.dataItems) ? I = this.$props.dataItems : this.$props.dataItems && (I = Nt(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField).data, C = C || this.$props.dataItems.total);
|
|
837
838
|
const te = this.$props.groupable === !0 || A(this.$props.groupable) && this.$props.groupable.enabled !== !1;
|
|
838
839
|
this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = te, this._virtualPageSize = this.calcVirtualPageSize();
|
|
839
|
-
const V =
|
|
840
|
+
const V = I.length === C, Je = A(this.$props.groupable) && this.$props.groupable.footer || "none";
|
|
840
841
|
if (this.currentData = [], u) {
|
|
841
842
|
const a = u.page && !(this.isVirtualScroll && !this.$props.pageable), {
|
|
842
|
-
data:
|
|
843
|
-
total:
|
|
844
|
-
} =
|
|
843
|
+
data: f,
|
|
844
|
+
total: S
|
|
845
|
+
} = Xt(I, {
|
|
845
846
|
group: u.group ? l : void 0,
|
|
846
847
|
sort: u.sort ? e : void 0,
|
|
847
|
-
filter:
|
|
848
|
+
filter: Ct(u.filter ? t : void 0, u.search ? i : void 0),
|
|
848
849
|
...a ? {
|
|
849
850
|
take: this.$props.pageable ? r || 10 : r,
|
|
850
851
|
skip: s || 0
|
|
851
852
|
} : {}
|
|
852
853
|
});
|
|
853
|
-
|
|
854
|
+
I = f, C = (we = this.$props.total) != null ? we : S;
|
|
854
855
|
}
|
|
855
856
|
const {
|
|
856
|
-
resolvedGroupsCount:
|
|
857
|
-
flattedData:
|
|
858
|
-
} = this.getFlatData(
|
|
859
|
-
this.currentData =
|
|
857
|
+
resolvedGroupsCount: Qe,
|
|
858
|
+
flattedData: Xe
|
|
859
|
+
} = this.getFlatData(I, Je, V ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
|
|
860
|
+
this.currentData = Xe;
|
|
860
861
|
const N = this._virtualSkipRef || 0;
|
|
861
|
-
if (this._virtualTotal =
|
|
862
|
+
if (this._virtualTotal = C, this.isVirtualScroll) {
|
|
862
863
|
let a = s || 0;
|
|
863
864
|
if ((c || this.$props.pageable) && (a = N, this._virtualTotal = this.currentData.length), V || c || this.$props.pageable)
|
|
864
865
|
if (this._virtualPageSize === 0) {
|
|
865
|
-
const
|
|
866
|
-
|
|
866
|
+
const f = Math.min(r || this.$props.pageSize || 20, this.currentData.length);
|
|
867
|
+
m = this.currentData.slice(a, a + f);
|
|
867
868
|
} else
|
|
868
|
-
|
|
869
|
+
m = this.currentData.slice(a, a + this._virtualPageSize);
|
|
869
870
|
}
|
|
870
|
-
this.initializeVirtualization(), this.initColumns(this.$props.dataItems,
|
|
871
|
-
const ie = this.$props.toolbar,
|
|
871
|
+
this.initializeVirtualization(), this.initColumns(this.$props.dataItems, Qe), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = dt(this.currentColumnsState || []), this.dragLogic.columns = this._columns;
|
|
872
|
+
const ie = this.$props.toolbar, P = this.$props.noRecords, z = this._columns.filter((a) => a.children.length === 0), se = te && n(Tt, {
|
|
872
873
|
ref: (a) => {
|
|
873
874
|
this.groupPanelDivRef = a;
|
|
874
875
|
},
|
|
@@ -879,22 +880,22 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
879
880
|
onDragHandler: this.dragLogic.dragHandler,
|
|
880
881
|
onReleaseHandler: this.dragLogic.releaseHandler,
|
|
881
882
|
resolveTitle: this.resolveTitle
|
|
882
|
-
}, null), re = (this.dragLogic.reorderable || this.dragLogic.groupable) && Q && document && document.body, le = [re &&
|
|
883
|
+
}, null), re = (this.dragLogic.reorderable || this.dragLogic.groupable) && Q && document && document.body, le = [re && n(Vt, {
|
|
883
884
|
ref: (a) => {
|
|
884
885
|
this.dropElementClueRef = a;
|
|
885
886
|
}
|
|
886
|
-
}, null), re &&
|
|
887
|
+
}, null), re && n(At, {
|
|
887
888
|
ref: (a) => {
|
|
888
889
|
this.dragElementClueRef = a;
|
|
889
890
|
}
|
|
890
|
-
}, null)], ae =
|
|
891
|
+
}, null)], ae = n(Et, {
|
|
891
892
|
size: this.$props.size,
|
|
892
893
|
columnResize: this.columnResize,
|
|
893
894
|
staticHeaders: this.$props.scrollable !== "none",
|
|
894
895
|
ref: (a) => {
|
|
895
896
|
this.headerRef = a;
|
|
896
897
|
},
|
|
897
|
-
headerRow:
|
|
898
|
+
headerRow: n(zt, {
|
|
898
899
|
grid: this,
|
|
899
900
|
sort: e,
|
|
900
901
|
groupable: this.$props.groupable,
|
|
@@ -903,7 +904,7 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
903
904
|
onSortChange: this.sortChangeHandler,
|
|
904
905
|
filter: t,
|
|
905
906
|
filterable: this.$props.filterable,
|
|
906
|
-
filterOperators: this.$props.filterOperators ||
|
|
907
|
+
filterOperators: this.$props.filterOperators || Ne,
|
|
907
908
|
onFilterChange: this.filterChangeHandler,
|
|
908
909
|
columnMenu: this.$props.columnMenu,
|
|
909
910
|
columnMenuIcon: this.$props.columnMenuIcon,
|
|
@@ -919,12 +920,12 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
919
920
|
cellRender: this.$props.headerCellRender,
|
|
920
921
|
isRtl: this.isRtl,
|
|
921
922
|
isColCountDefined: this.getAriaColCount !== void 0,
|
|
922
|
-
filterRow: this.$props.filterable &&
|
|
923
|
+
filterRow: this.$props.filterable && n(Dt, {
|
|
923
924
|
grid: this,
|
|
924
925
|
size: this.$props.size,
|
|
925
926
|
columns: this._columns,
|
|
926
927
|
filter: t,
|
|
927
|
-
filterOperators: this.$props.filterOperators ||
|
|
928
|
+
filterOperators: this.$props.filterOperators || Ne,
|
|
928
929
|
onFilterchange: this.filterChangeHandler,
|
|
929
930
|
sort: this.$props.sort,
|
|
930
931
|
cellRender: this.$props.filterCellRender,
|
|
@@ -932,127 +933,138 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
932
933
|
ariaRowIndex: this._columnsMap.length + 1
|
|
933
934
|
}, null) || void 0
|
|
934
935
|
}, null),
|
|
935
|
-
cols:
|
|
936
|
-
return
|
|
937
|
-
key:
|
|
936
|
+
cols: z.map(function(a, f) {
|
|
937
|
+
return n("col", {
|
|
938
|
+
key: f.toString(),
|
|
938
939
|
width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
|
|
939
940
|
}, null);
|
|
940
941
|
}, this)
|
|
941
|
-
}, null), oe = this._columns.some((a) => !!a.footerCell) ?
|
|
942
|
+
}, null), oe = this._columns.some((a) => !!a.footerCell) ? n(Gt, {
|
|
942
943
|
size: this.$props.size,
|
|
943
944
|
columnResize: this.columnResize,
|
|
944
945
|
staticHeaders: this.$props.scrollable !== "none",
|
|
945
946
|
ref: (a) => {
|
|
946
947
|
this.footerRef = a;
|
|
947
948
|
},
|
|
948
|
-
row:
|
|
949
|
+
row: n(Ft, {
|
|
949
950
|
isRtl: this.isRtl,
|
|
950
951
|
rowIndex: this.getAriaRowCount + 1,
|
|
951
952
|
columns: this._columns
|
|
952
953
|
}, null),
|
|
953
|
-
cols:
|
|
954
|
-
return
|
|
955
|
-
key:
|
|
954
|
+
cols: z.map(function(a, f) {
|
|
955
|
+
return n("col", {
|
|
956
|
+
key: f.toString(),
|
|
956
957
|
width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
|
|
957
958
|
}, null);
|
|
958
959
|
}, this)
|
|
959
|
-
}, null) :
|
|
960
|
+
}, null) : n("span", null, null), Ye = this.showLicenseWatermark ? n(ht, {
|
|
960
961
|
message: this.licenseMessage
|
|
961
|
-
}, null) : null, O = this.$attrs.style,
|
|
962
|
-
this.tableWidth = parseFloat(
|
|
963
|
-
const ne =
|
|
962
|
+
}, null) : null, O = this.$attrs.style, Ze = O && A(O) && O["width"] || "";
|
|
963
|
+
this.tableWidth = parseFloat(Ze.toString());
|
|
964
|
+
const ne = z.findIndex((a) => typeof a.colSpan == "function") > -1;
|
|
964
965
|
let W;
|
|
965
|
-
ne || (W = this.getCellsToRender(null,
|
|
966
|
-
const
|
|
967
|
-
let
|
|
968
|
-
const
|
|
969
|
-
return ne && (W = this.getCellsToRender(a.dataItem,
|
|
966
|
+
ne || (W = this.getCellsToRender(null, z));
|
|
967
|
+
const et = function(a, f, S, Se, k) {
|
|
968
|
+
let p = !1;
|
|
969
|
+
const D = this.$props.selectedField, y = D ? Pe(D, a.dataItem) : void 0, v = this.$props.highlight && this.$props.dataItemKey && X(this.$props.dataItemKey)(a.dataItem) !== void 0 ? this.$props.highlight[X(this.$props.dataItemKey)(a.dataItem)] : void 0;
|
|
970
|
+
return ne && (W = this.getCellsToRender(a.dataItem, z)), {
|
|
970
971
|
row: W.map(function({
|
|
971
972
|
columnIndex: b,
|
|
972
|
-
colSpan:
|
|
973
|
+
colSpan: T
|
|
973
974
|
}) {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
975
|
+
var ke, _e, Ee, ze;
|
|
976
|
+
const o = z[b];
|
|
977
|
+
let w;
|
|
978
|
+
if ((ke = o.rowSpannable) != null && ke.enabled && a.rowType === "data" && o.field && k) {
|
|
979
|
+
const g = o.field ? (Ee = (_e = o.rowSpannable).valueGetter) == null ? void 0 : Ee.call(_e, a.dataItem, o.field) : null;
|
|
980
|
+
w = {
|
|
981
|
+
value: g,
|
|
982
|
+
count: 1
|
|
983
|
+
}, k[o.field] && ((ze = k[o.field]) == null ? void 0 : ze.value) === g && k[o.field] !== null ? (k[o.field].count++, w.count = null) : k[o.field] = w;
|
|
984
|
+
}
|
|
985
|
+
const F = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.left !== void 0 ? this.isRtl ? {
|
|
986
|
+
left: o.right + "px",
|
|
987
|
+
right: o.left + "px"
|
|
977
988
|
} : {
|
|
978
|
-
left:
|
|
979
|
-
right:
|
|
989
|
+
left: o.left + "px",
|
|
990
|
+
right: o.right + "px"
|
|
980
991
|
} : {};
|
|
981
|
-
let
|
|
982
|
-
if (
|
|
983
|
-
const
|
|
984
|
-
(
|
|
992
|
+
let ye = !1;
|
|
993
|
+
if (o.editable && this.$props.editField) {
|
|
994
|
+
const g = Pe(this.$props.editField, a.dataItem);
|
|
995
|
+
(g === !0 || g === o.field) && (p = !0, ye = !0);
|
|
985
996
|
}
|
|
986
|
-
let
|
|
987
|
-
|
|
988
|
-
const
|
|
989
|
-
return
|
|
997
|
+
let M;
|
|
998
|
+
o.cell && (M = o.cell);
|
|
999
|
+
const He = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Ke(a.dataItem, this.$props.uniqueField)), j = o.id ? o.id : b, q = He ? !He : a.expanded || a.dataItem.expanded, lt = o._type === "expand", J = E.generateNavigatableId(`${f}-${String(b)}`, R, lt || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
|
|
1000
|
+
return o.internalCell ? n(o.internalCell, {
|
|
990
1001
|
key: j,
|
|
991
1002
|
id: J,
|
|
992
|
-
colSpan:
|
|
1003
|
+
colSpan: T,
|
|
993
1004
|
dataItem: a.dataItem,
|
|
994
|
-
field:
|
|
995
|
-
editor:
|
|
996
|
-
format:
|
|
997
|
-
readFormat:
|
|
998
|
-
type:
|
|
999
|
-
className:
|
|
1000
|
-
render:
|
|
1005
|
+
field: o.field || "",
|
|
1006
|
+
editor: o.editor,
|
|
1007
|
+
format: o.format,
|
|
1008
|
+
readFormat: o.readFormat,
|
|
1009
|
+
type: o.type,
|
|
1010
|
+
className: F,
|
|
1011
|
+
render: M || this.$props.cellRender,
|
|
1001
1012
|
onChange: this.itemChange,
|
|
1002
|
-
onSelectionchange: (
|
|
1003
|
-
event:
|
|
1013
|
+
onSelectionchange: (g) => this.selectionChangeHandler({
|
|
1014
|
+
event: g,
|
|
1004
1015
|
dataItem: a.dataItem,
|
|
1005
|
-
dataIndex:
|
|
1016
|
+
dataIndex: S,
|
|
1006
1017
|
columnIndex: b
|
|
1007
1018
|
}),
|
|
1008
1019
|
columnIndex: b,
|
|
1009
|
-
columnsCount: this._columns.filter((
|
|
1020
|
+
columnsCount: this._columns.filter((g) => !g.children.length).length,
|
|
1010
1021
|
rowType: a.rowType,
|
|
1011
1022
|
level: a.level,
|
|
1012
1023
|
expanded: q,
|
|
1013
1024
|
dataIndex: a.dataIndex,
|
|
1014
|
-
style:
|
|
1015
|
-
ariaColumnIndex:
|
|
1025
|
+
style: H,
|
|
1026
|
+
ariaColumnIndex: o.ariaColumnIndex,
|
|
1016
1027
|
isRtl: this.isRtl,
|
|
1017
|
-
isSelected: Array.isArray(
|
|
1018
|
-
isHighlighted: !!(typeof
|
|
1019
|
-
group: a.group
|
|
1020
|
-
|
|
1028
|
+
isSelected: Array.isArray(y) && y.indexOf(b) > -1,
|
|
1029
|
+
isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0),
|
|
1030
|
+
group: a.group,
|
|
1031
|
+
rowSpan: w
|
|
1032
|
+
}, null) : ye ? n(_t, {
|
|
1021
1033
|
id: J,
|
|
1022
1034
|
key: j,
|
|
1023
|
-
colSpan:
|
|
1035
|
+
colSpan: T,
|
|
1024
1036
|
dataItem: a.dataItem,
|
|
1025
|
-
field:
|
|
1026
|
-
editor:
|
|
1027
|
-
format:
|
|
1028
|
-
readFormat:
|
|
1029
|
-
type:
|
|
1030
|
-
className:
|
|
1031
|
-
render:
|
|
1037
|
+
field: o.field || "",
|
|
1038
|
+
editor: o.editor,
|
|
1039
|
+
format: o.format,
|
|
1040
|
+
readFormat: o.readFormat,
|
|
1041
|
+
type: o.type,
|
|
1042
|
+
className: F,
|
|
1043
|
+
render: M || this.$props.cellRender,
|
|
1032
1044
|
onEdit: this.editHandler,
|
|
1033
1045
|
onRemove: this.removeHandler,
|
|
1034
1046
|
onSave: this.saveHandler,
|
|
1035
1047
|
onCancel: this.cancelHandler,
|
|
1036
1048
|
onChange: this.itemChange,
|
|
1037
1049
|
columnIndex: b,
|
|
1038
|
-
columnsCount: this._columns.filter((
|
|
1050
|
+
columnsCount: this._columns.filter((g) => !g.children.length).length,
|
|
1039
1051
|
rowType: a.rowType,
|
|
1040
1052
|
level: a.level,
|
|
1041
1053
|
expanded: q,
|
|
1042
1054
|
dataIndex: a.dataIndex,
|
|
1043
|
-
style:
|
|
1044
|
-
}, null) :
|
|
1055
|
+
style: H
|
|
1056
|
+
}, null) : n(qt, {
|
|
1045
1057
|
key: j,
|
|
1046
1058
|
id: J,
|
|
1047
|
-
colSpan:
|
|
1059
|
+
colSpan: T,
|
|
1048
1060
|
dataItem: a.dataItem,
|
|
1049
|
-
field:
|
|
1050
|
-
editor:
|
|
1051
|
-
format:
|
|
1052
|
-
readFormat:
|
|
1053
|
-
type:
|
|
1054
|
-
className:
|
|
1055
|
-
render:
|
|
1061
|
+
field: o.field || "",
|
|
1062
|
+
editor: o.editor,
|
|
1063
|
+
format: o.format,
|
|
1064
|
+
readFormat: o.readFormat,
|
|
1065
|
+
type: o.type,
|
|
1066
|
+
className: F,
|
|
1067
|
+
render: M || this.$props.cellRender,
|
|
1056
1068
|
onCellclick: this.cellClickHandler,
|
|
1057
1069
|
onCellkeydown: this.cellKeydownHandler,
|
|
1058
1070
|
onEdit: this.editHandler,
|
|
@@ -1060,148 +1072,149 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
1060
1072
|
onSave: this.saveHandler,
|
|
1061
1073
|
onCancel: this.cancelHandler,
|
|
1062
1074
|
onChange: this.itemChange,
|
|
1063
|
-
onSelectionchange: (
|
|
1064
|
-
event:
|
|
1075
|
+
onSelectionchange: (g) => this.selectionChangeHandler({
|
|
1076
|
+
event: g,
|
|
1065
1077
|
dataItem: a.dataItem,
|
|
1066
|
-
dataIndex:
|
|
1078
|
+
dataIndex: S,
|
|
1067
1079
|
columnIndex: b
|
|
1068
1080
|
}),
|
|
1069
1081
|
columnIndex: b,
|
|
1070
|
-
columnsCount: this._columns.filter((
|
|
1082
|
+
columnsCount: this._columns.filter((g) => !g.children.length).length,
|
|
1071
1083
|
rowType: a.rowType,
|
|
1072
1084
|
level: a.level,
|
|
1073
1085
|
expanded: q,
|
|
1074
1086
|
dataIndex: a.dataIndex,
|
|
1075
|
-
style:
|
|
1076
|
-
|
|
1077
|
-
|
|
1087
|
+
style: H,
|
|
1088
|
+
rowSpan: w,
|
|
1089
|
+
isSelected: Array.isArray(y) && y.indexOf(b) > -1,
|
|
1090
|
+
isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0)
|
|
1078
1091
|
}, null);
|
|
1079
1092
|
}, this),
|
|
1080
|
-
isInEdit:
|
|
1081
|
-
isSelected: typeof
|
|
1082
|
-
isHighlighted: typeof
|
|
1093
|
+
isInEdit: p,
|
|
1094
|
+
isSelected: typeof y == "boolean" && y,
|
|
1095
|
+
isHighlighted: typeof v == "boolean" && v
|
|
1083
1096
|
};
|
|
1084
1097
|
};
|
|
1085
|
-
let
|
|
1086
|
-
const U = !this.currentData.length, de = (a) => a >= this.currentData.length -
|
|
1098
|
+
let tt = 0, K = [];
|
|
1099
|
+
const U = !this.currentData.length, de = (a) => a >= this.currentData.length - tt;
|
|
1087
1100
|
let B = 0;
|
|
1088
1101
|
if (this.currentData.length) {
|
|
1089
1102
|
const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
|
|
1090
|
-
let
|
|
1091
|
-
const
|
|
1103
|
+
let f = this.$props.skip || 0, S = -1, Se = 0;
|
|
1104
|
+
const k = this.computedRowSpannable.enabled ? {} : void 0;
|
|
1092
1105
|
if (this.isVirtualScroll) {
|
|
1093
1106
|
if (N > 0) {
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1107
|
+
const p = this.currentData.slice(0, N).filter((D) => D.rowType === "data").length;
|
|
1108
|
+
S += p, f += p;
|
|
1096
1109
|
}
|
|
1097
|
-
!this.$props.pageable && V && (
|
|
1110
|
+
!this.$props.pageable && V && (S += this.$props.skip || 0);
|
|
1098
1111
|
}
|
|
1099
|
-
K = (
|
|
1100
|
-
|
|
1101
|
-
const
|
|
1102
|
-
return B =
|
|
1103
|
-
key:
|
|
1104
|
-
item:
|
|
1105
|
-
dataIndex:
|
|
1112
|
+
K = (m || this.currentData).map(function(p, D) {
|
|
1113
|
+
p.rowType === "data" && S++;
|
|
1114
|
+
const y = p.dataIndex % 2 !== 0, v = this.$props.dataItemKey && X(this.$props.dataItemKey)(p.dataItem), b = D + f, T = v || "ai" + b, o = T + "_1", w = et.call(this, p, T, S, y, k), F = z.length - (this.detailExpandable.enabled ? 1 : 0) - ((l == null ? void 0 : l.length) || 0) || 1;
|
|
1115
|
+
return B = b + a + Se, [n(Jt, {
|
|
1116
|
+
key: T,
|
|
1117
|
+
item: p,
|
|
1118
|
+
dataIndex: S,
|
|
1106
1119
|
ariaRowIndex: B,
|
|
1107
|
-
absoluteRowIndex:
|
|
1108
|
-
isAltRow:
|
|
1109
|
-
isHidden: de(
|
|
1120
|
+
absoluteRowIndex: b,
|
|
1121
|
+
isAltRow: y,
|
|
1122
|
+
isHidden: de(D),
|
|
1110
1123
|
rowHeight: this.$props.rowHeight,
|
|
1111
|
-
isSelected:
|
|
1112
|
-
isHighlighted:
|
|
1113
|
-
isInEdit:
|
|
1114
|
-
rowType:
|
|
1115
|
-
onRowclick: (
|
|
1116
|
-
onRowdblclick: (
|
|
1124
|
+
isSelected: w.isSelected,
|
|
1125
|
+
isHighlighted: w.isHighlighted,
|
|
1126
|
+
isInEdit: w.isInEdit,
|
|
1127
|
+
rowType: p.rowType,
|
|
1128
|
+
onRowclick: (H) => this.rowClick(H, p),
|
|
1129
|
+
onRowdblclick: (H) => this.rowDoubleClick(H, p),
|
|
1117
1130
|
render: this.$props.rowRender,
|
|
1118
|
-
class: this.$props.rowClass ? this.$props.rowClass(
|
|
1131
|
+
class: this.$props.rowClass ? this.$props.rowClass(p) : ""
|
|
1119
1132
|
}, {
|
|
1120
|
-
default: () => [
|
|
1121
|
-
}), this.$props.detail &&
|
|
1122
|
-
key:
|
|
1123
|
-
class:
|
|
1133
|
+
default: () => [w.row]
|
|
1134
|
+
}), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && n("tr", {
|
|
1135
|
+
key: o,
|
|
1136
|
+
class: y ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
|
|
1124
1137
|
style: {
|
|
1125
|
-
visibility: de(
|
|
1138
|
+
visibility: de(D) ? "hidden" : "",
|
|
1126
1139
|
height: this.$props.detailRowHeight + "px"
|
|
1127
1140
|
},
|
|
1128
1141
|
role: "row",
|
|
1129
1142
|
"aria-rowindex": B
|
|
1130
|
-
}, [l == null ? void 0 : l.map(function(
|
|
1131
|
-
return
|
|
1143
|
+
}, [l == null ? void 0 : l.map(function(H) {
|
|
1144
|
+
return n(Z, {
|
|
1132
1145
|
id: "",
|
|
1133
|
-
dataIndex:
|
|
1134
|
-
field:
|
|
1135
|
-
dataItem:
|
|
1136
|
-
key: `group-${
|
|
1137
|
-
group:
|
|
1146
|
+
dataIndex: p.dataIndex,
|
|
1147
|
+
field: H.field,
|
|
1148
|
+
dataItem: p.dataItem,
|
|
1149
|
+
key: `group-${H.field}-${p.dataIndex}`,
|
|
1150
|
+
group: p.group
|
|
1138
1151
|
}, null);
|
|
1139
|
-
}, this), (this.$props.expandField || this.detailExpandable.enabled) &&
|
|
1140
|
-
id:
|
|
1141
|
-
}, null),
|
|
1142
|
-
dataItem:
|
|
1143
|
-
dataIndex:
|
|
1144
|
-
colSpan:
|
|
1152
|
+
}, this), (this.$props.expandField || this.detailExpandable.enabled) && n(Ht, {
|
|
1153
|
+
id: E.generateNavigatableId(`${o}-dhcell`, R)
|
|
1154
|
+
}, null), n(kt, {
|
|
1155
|
+
dataItem: p.dataItem,
|
|
1156
|
+
dataIndex: p.dataIndex,
|
|
1157
|
+
colSpan: F,
|
|
1145
1158
|
ariaColIndex: 2 + (l ? l.length : 0),
|
|
1146
1159
|
detail: this.$props.detail ? this.$props.detail : void 0,
|
|
1147
|
-
id:
|
|
1160
|
+
id: E.generateNavigatableId(`${o}-dcell`, R)
|
|
1148
1161
|
}, null)])];
|
|
1149
1162
|
}, this);
|
|
1150
1163
|
}
|
|
1151
|
-
const
|
|
1164
|
+
const it = this.$props.pageable && n(bt, {
|
|
1152
1165
|
class: "k-grid-pager",
|
|
1153
1166
|
onPagesizechange: this.pageChangeHandler,
|
|
1154
1167
|
onPagechange: this.pageChangeHandler,
|
|
1155
1168
|
size: this.$props.size,
|
|
1156
|
-
total:
|
|
1169
|
+
total: C,
|
|
1157
1170
|
skip: s || 0,
|
|
1158
1171
|
pageSize: (r !== void 0 ? r : this.$props.pageSize) || 10,
|
|
1159
|
-
messagesMap:
|
|
1160
|
-
settings:
|
|
1161
|
-
}, null), he =
|
|
1162
|
-
h:
|
|
1172
|
+
messagesMap: qe,
|
|
1173
|
+
settings: $t(this.$props.pageable || {})
|
|
1174
|
+
}, null), he = Te.call(this, {
|
|
1175
|
+
h: De,
|
|
1163
1176
|
template: this.$props.pager,
|
|
1164
|
-
defaultRendering:
|
|
1177
|
+
defaultRendering: it,
|
|
1165
1178
|
additionalProps: {
|
|
1166
1179
|
...this.$props,
|
|
1167
1180
|
skip: this.$props.skip || 0,
|
|
1168
|
-
messagesMap:
|
|
1181
|
+
messagesMap: qe
|
|
1169
1182
|
},
|
|
1170
1183
|
additionalListeners: {
|
|
1171
1184
|
pagesizechange: this.pageChangeHandler,
|
|
1172
1185
|
pagechange: this.pageChangeHandler
|
|
1173
1186
|
}
|
|
1174
|
-
}),
|
|
1175
|
-
ref:
|
|
1176
|
-
}, [
|
|
1177
|
-
return
|
|
1178
|
-
key:
|
|
1179
|
-
class:
|
|
1187
|
+
}), st = (a) => e && e.filter((f) => f.field === a).length > 0, pe = n("colgroup", {
|
|
1188
|
+
ref: G(this, "colGroup")
|
|
1189
|
+
}, [z.map(function(a, f) {
|
|
1190
|
+
return n("col", {
|
|
1191
|
+
key: f.toString(),
|
|
1192
|
+
class: st(a.field) ? "k-sorted" : void 0,
|
|
1180
1193
|
width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
|
|
1181
1194
|
}, null);
|
|
1182
1195
|
}, this)]), ue = {
|
|
1183
1196
|
height: this.getCorrectHeight,
|
|
1184
1197
|
...this.$attrs.style
|
|
1185
|
-
},
|
|
1198
|
+
}, rt = this.$props.loader && n("div", {
|
|
1186
1199
|
class: "k-loader-container k-loader-container-md k-loader-top"
|
|
1187
|
-
}, [
|
|
1200
|
+
}, [n("div", {
|
|
1188
1201
|
class: "k-loader-container-overlay k-overlay-light"
|
|
1189
|
-
}, null),
|
|
1202
|
+
}, null), n("div", {
|
|
1190
1203
|
class: "k-loader-container-inner"
|
|
1191
|
-
}, [
|
|
1204
|
+
}, [n(yt, {
|
|
1192
1205
|
size: "large",
|
|
1193
1206
|
type: "infinite-spinner"
|
|
1194
|
-
}, null)])]), ce = ((Ie = this.$props.showLoader) != null ? Ie : !!this.$props.loader) &&
|
|
1195
|
-
h:
|
|
1207
|
+
}, null)])]), ce = ((Ie = this.$props.showLoader) != null ? Ie : !!this.$props.loader) && Te.call(this, {
|
|
1208
|
+
h: De,
|
|
1196
1209
|
template: this.$props.loader,
|
|
1197
|
-
defaultRendering:
|
|
1210
|
+
defaultRendering: rt
|
|
1198
1211
|
});
|
|
1199
|
-
return this.$props.scrollable === "none" ?
|
|
1212
|
+
return this.$props.scrollable === "none" ? n(Me, {
|
|
1200
1213
|
ref: "navRef",
|
|
1201
1214
|
id: this._gridId,
|
|
1202
1215
|
navigatable: this.$props.navigatable
|
|
1203
1216
|
}, {
|
|
1204
|
-
default: () => [
|
|
1217
|
+
default: () => [n(Ae, {
|
|
1205
1218
|
ref: (a) => {
|
|
1206
1219
|
this.gridNavRef = a;
|
|
1207
1220
|
},
|
|
@@ -1210,34 +1223,34 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
1210
1223
|
style: ue,
|
|
1211
1224
|
class: this.nonscrollableWrapperClass
|
|
1212
1225
|
}, {
|
|
1213
|
-
default: () => [ie, se,
|
|
1226
|
+
default: () => [ie, se, n("div", {
|
|
1214
1227
|
role: "grid",
|
|
1215
1228
|
class: "k-grid-aria-root",
|
|
1216
1229
|
id: this._gridRoleElementId,
|
|
1217
1230
|
"aria-colcount": this.getAriaColCount,
|
|
1218
1231
|
"aria-rowcount": this.getAriaRowCount
|
|
1219
|
-
}, [
|
|
1232
|
+
}, [n("table", {
|
|
1220
1233
|
class: "k-table",
|
|
1221
1234
|
style: {
|
|
1222
1235
|
tableLayout: "fixed"
|
|
1223
1236
|
},
|
|
1224
|
-
ref:
|
|
1237
|
+
ref: G(this, "table"),
|
|
1225
1238
|
role: "none"
|
|
1226
|
-
}, [
|
|
1239
|
+
}, [ot(" "), pe, ae, n("tbody", {
|
|
1227
1240
|
class: "k-table-tbody",
|
|
1228
1241
|
"data-keyboardnavbody": !0
|
|
1229
|
-
}, [K, ce]), oe]), U &&
|
|
1230
|
-
id:
|
|
1242
|
+
}, [K, ce]), oe]), U && n(je, {
|
|
1243
|
+
id: E.generateNavigatableId("no-records", R)
|
|
1231
1244
|
}, {
|
|
1232
|
-
default: () => [
|
|
1245
|
+
default: () => [P.length ? P : n(Be, null, null)]
|
|
1233
1246
|
})]), he, le]
|
|
1234
1247
|
})]
|
|
1235
|
-
}) :
|
|
1248
|
+
}) : n(Me, {
|
|
1236
1249
|
ref: "navRef",
|
|
1237
1250
|
id: this._gridId,
|
|
1238
1251
|
navigatable: this.$props.navigatable
|
|
1239
1252
|
}, {
|
|
1240
|
-
default: () => [
|
|
1253
|
+
default: () => [n(Ae, {
|
|
1241
1254
|
ref: (a) => {
|
|
1242
1255
|
this.gridNavRef = a;
|
|
1243
1256
|
},
|
|
@@ -1246,49 +1259,49 @@ const _i = /* @__PURE__ */ Ze({
|
|
|
1246
1259
|
style: ue,
|
|
1247
1260
|
class: this.scrollableWrapperClass
|
|
1248
1261
|
}, {
|
|
1249
|
-
default: () => [ie, se,
|
|
1262
|
+
default: () => [ie, se, n("div", {
|
|
1250
1263
|
role: "grid",
|
|
1251
1264
|
class: "k-grid-aria-root",
|
|
1252
1265
|
id: this._gridRoleElementId,
|
|
1253
1266
|
"aria-colcount": this.getAriaColCount,
|
|
1254
1267
|
"aria-rowcount": this.getAriaRowCount
|
|
1255
|
-
}, [ae,
|
|
1268
|
+
}, [ae, n("div", {
|
|
1256
1269
|
class: "k-grid-container",
|
|
1257
1270
|
role: "presentation"
|
|
1258
|
-
}, [
|
|
1271
|
+
}, [n("div", {
|
|
1259
1272
|
role: "presentation",
|
|
1260
|
-
ref:
|
|
1273
|
+
ref: G(this, "scrollContainer"),
|
|
1261
1274
|
class: "k-grid-content k-virtual-content",
|
|
1262
1275
|
onScroll: this.scrollHandler
|
|
1263
|
-
}, [
|
|
1276
|
+
}, [n("div", {
|
|
1264
1277
|
class: "k-grid-table-wrap",
|
|
1265
1278
|
role: "presentation"
|
|
1266
|
-
}, [
|
|
1279
|
+
}, [n("table", {
|
|
1267
1280
|
role: "none",
|
|
1268
1281
|
class: this.gridTableClass,
|
|
1269
|
-
ref:
|
|
1270
|
-
}, [pe,
|
|
1282
|
+
ref: G(this, "table")
|
|
1283
|
+
}, [pe, n("tbody", {
|
|
1271
1284
|
class: "k-table-tbody",
|
|
1272
1285
|
role: "rowgroup",
|
|
1273
1286
|
"data-keyboardnavbody": !0,
|
|
1274
|
-
ref:
|
|
1275
|
-
}, [K])]), U &&
|
|
1276
|
-
id:
|
|
1287
|
+
ref: G(this, "tableBody")
|
|
1288
|
+
}, [K])]), U && n(je, {
|
|
1289
|
+
id: E.generateNavigatableId("no-records", R)
|
|
1277
1290
|
}, {
|
|
1278
|
-
default: () => [
|
|
1279
|
-
})]), !U &&
|
|
1291
|
+
default: () => [P.length ? P : n(Be, null, null)]
|
|
1292
|
+
})]), !U && n("div", {
|
|
1280
1293
|
class: "k-height-container",
|
|
1281
1294
|
role: "presentation"
|
|
1282
|
-
}, [
|
|
1283
|
-
ref:
|
|
1295
|
+
}, [n("div", {
|
|
1296
|
+
ref: G(this, "scrollHeightContainer"),
|
|
1284
1297
|
style: this.$props.scrollable === "virtual" ? {
|
|
1285
1298
|
height: this._containerHeightRef + "px"
|
|
1286
1299
|
} : {}
|
|
1287
|
-
}, null)])]), ce]), oe,
|
|
1300
|
+
}, null)])]), ce]), oe, Ye]), he, le]
|
|
1288
1301
|
})]
|
|
1289
1302
|
});
|
|
1290
1303
|
}
|
|
1291
1304
|
});
|
|
1292
1305
|
export {
|
|
1293
|
-
|
|
1306
|
+
Pi as Grid
|
|
1294
1307
|
};
|