@progress/kendo-vue-grid 6.4.1 → 6.4.2-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.mjs +19 -19
- package/GridNoRecords.mjs +3 -3
- package/GridToolbar.mjs +3 -3
- package/cells/GridCell.mjs +6 -6
- package/cells/GridDetailCell.mjs +6 -6
- package/cells/GridDetailHierarchyCell.mjs +6 -6
- package/cells/GridEditCell.mjs +15 -15
- package/cells/GridFilterCell.mjs +4 -4
- package/cells/GridGroupCell.mjs +7 -7
- package/cells/GridHierarchyCell.mjs +7 -7
- package/cells/GridSelectionCell.mjs +6 -6
- package/columnMenu/ColumnMenu.mjs +4 -4
- package/columnMenu/ColumnMenuContent.mjs +3 -3
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +2 -2
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +19 -21
- package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
- package/columnMenu/GridColumnMenuItem.mjs +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +1 -1
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/drag/GroupingIndicator.mjs +5 -5
- package/footer/Footer.mjs +5 -5
- package/header/FilterRow.mjs +1 -1
- package/header/GridHeaderSelectionCell.mjs +3 -3
- package/header/GroupPanel.mjs +1 -1
- package/header/Header.mjs +6 -6
- package/header/HeaderRow.mjs +3 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
package/Grid.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as Fe,
|
|
9
|
-
import { SvgIcon as ze,
|
|
8
|
+
import { defineComponent as Fe, createVNode as o, h as oe, ref as f, markRaw as L } from "vue";
|
|
9
|
+
import { SvgIcon as ze, getDefaultSlots as Ge, isObject as E, canUseDOM as U, templateRendering as I, getListeners as w, WatermarkOverlay as De, getter as Te, getTemplate as le, setRef as M, hasListener as z, getRef as m, kendoThemeMaps as ae, isRtl as ne, validatePackage as Oe, shouldShowValidationUI as Le, guid as de, getNestedValue as he } from "@progress/kendo-vue-common";
|
|
10
10
|
import { tableKeyboardNavigationTools as v, tableColumnsVirtualization as Ee, Pager as Me, normalize as Ae, TableKeyboardNavigationProvider as pe } from "@progress/kendo-vue-data-tools";
|
|
11
11
|
import { Loader as Pe } from "@progress/kendo-vue-indicators";
|
|
12
12
|
import { GridNav as ce } from "./GridNav.mjs";
|
|
@@ -28,7 +28,7 @@ import { ColumnResize as et } from "./drag/ColumnResize.mjs";
|
|
|
28
28
|
import { CommonDragLogic as tt } from "./drag/CommonDragLogic.mjs";
|
|
29
29
|
import { DragClue as st } from "./drag/DragClue.mjs";
|
|
30
30
|
import { DropClue as it } from "./drag/DropClue.mjs";
|
|
31
|
-
import { applyExpandedState as ge,
|
|
31
|
+
import { applyExpandedState as ge, flatData as rt, readColumns as ot, autoGenerateColumns as lt, mapColumns as at, groupedFirstItemValue as fe, firefox as nt, firefoxMaxHeight as dt } from "./utils/main.mjs";
|
|
32
32
|
import { GridCell as ht } from "./cells/GridCell.mjs";
|
|
33
33
|
import { GridGroupCell as me } from "./cells/GridGroupCell.mjs";
|
|
34
34
|
import { GridRow as pt } from "./rows/GridRow.mjs";
|
|
@@ -137,18 +137,18 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
created() {
|
|
140
|
-
|
|
140
|
+
Oe($e), this.showLicenseWatermark = Le($e), this.initialHeight = null, this._columns = [];
|
|
141
141
|
const e = this.currentGroupable, t = this.getVirtualScroll();
|
|
142
|
-
this.vs = new t(e || this.$props.rowHeight === void 0 || this.$props.rowHeight === 0, this.$props.topCacheCount), this.dragLogic = new tt(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new et(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.forceUpdateTimeout = void 0, this._gridId =
|
|
142
|
+
this.vs = new t(e || this.$props.rowHeight === void 0 || this.$props.rowHeight === 0, this.$props.topCacheCount), this.dragLogic = new tt(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new et(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.forceUpdateTimeout = void 0, this._gridId = de(), this._gridRoleElementId = de(), this.slicedCurrentData = void 0, this._prevTotal = void 0;
|
|
143
143
|
},
|
|
144
144
|
mounted() {
|
|
145
145
|
this.setRefs();
|
|
146
|
-
const e =
|
|
146
|
+
const e = ne(this._element);
|
|
147
147
|
this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = this._element.style ? this._element.style.height : null, this.resizeObserver = U && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
|
|
148
148
|
},
|
|
149
149
|
updated() {
|
|
150
150
|
this.setRefs();
|
|
151
|
-
const e =
|
|
151
|
+
const e = ne(this._element);
|
|
152
152
|
this.isRtl = e, this._prevTotal = this.$props.total, this.vs.tableTransform && this.vs.table && (this.vs.table.style.transform = this.vs.tableTransform, this.vs.tableTransform = "");
|
|
153
153
|
},
|
|
154
154
|
unmounted() {
|
|
@@ -162,7 +162,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
162
162
|
return {
|
|
163
163
|
"k-grid": !0,
|
|
164
164
|
"k-grid-md": !e,
|
|
165
|
-
[`k-grid-${
|
|
165
|
+
[`k-grid-${ae.sizeMap[e] || e}`]: e
|
|
166
166
|
};
|
|
167
167
|
},
|
|
168
168
|
scrollableWrapperClass() {
|
|
@@ -182,7 +182,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
182
182
|
"k-table": !0,
|
|
183
183
|
"k-grid-table": !0,
|
|
184
184
|
"k-grid-md": !e,
|
|
185
|
-
[`k-table-${
|
|
185
|
+
[`k-table-${ae.sizeMap[e] || e}`]: e
|
|
186
186
|
};
|
|
187
187
|
},
|
|
188
188
|
getCorrectHeight() {
|
|
@@ -309,7 +309,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
309
309
|
} = this.$props;
|
|
310
310
|
l = i && r ? l : t, this.isAllData() ? (this.vs.total = this.currentData.length, this.slicedCurrentData = this.currentData.slice(this.vs.realSkip, this.vs.realSkip + this.vs.pageSize), this.vs.rowHeightService = this.rowHeightService(this.vs, this.currentData.length, t, l, this.currentData)) : this.vs.rowHeightService = new Ze(e, t, l);
|
|
311
311
|
const n = this.vs.rowHeightService.totalHeight();
|
|
312
|
-
this.vs.containerHeight =
|
|
312
|
+
this.vs.containerHeight = nt ? Math.min(dt, n) : n;
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
onSkipChanged(e, t) {
|
|
@@ -539,11 +539,11 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
539
539
|
},
|
|
540
540
|
initColumns(e, t) {
|
|
541
541
|
const i = v.getIdPrefix(this.navigation);
|
|
542
|
-
if (this._columns =
|
|
542
|
+
if (this._columns = ot(e, this.getColumns(), {
|
|
543
543
|
prevId: 0,
|
|
544
544
|
idPrefix: i
|
|
545
545
|
}), this._columns.length === 0) {
|
|
546
|
-
const n =
|
|
546
|
+
const n = lt(this.$props.dataItems, this.$props.group, this.$props.expandField, {
|
|
547
547
|
prevId: 0,
|
|
548
548
|
idPrefix: i
|
|
549
549
|
});
|
|
@@ -588,7 +588,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
588
588
|
internalCell: L(me),
|
|
589
589
|
field: "value"
|
|
590
590
|
}), l++;
|
|
591
|
-
this._columns.slice(l).forEach((n) => n.parentIndex >= 0 && (n.parentIndex += l)), this._columnsMap =
|
|
591
|
+
this._columns.slice(l).forEach((n) => n.parentIndex >= 0 && (n.parentIndex += l)), this._columnsMap = at(this._columns), this.columnResize.columns = this._columns, this.dragLogic.columns = this._columns;
|
|
592
592
|
},
|
|
593
593
|
resolveTitle(e) {
|
|
594
594
|
const t = this.findColumnByField(e), i = t && (t.title || t.field);
|
|
@@ -656,7 +656,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
656
656
|
};
|
|
657
657
|
},
|
|
658
658
|
render() {
|
|
659
|
-
const e =
|
|
659
|
+
const e = Ge(this);
|
|
660
660
|
let t = this.$props.total || 0;
|
|
661
661
|
const i = v.getIdPrefix(this.navigation);
|
|
662
662
|
let r = [];
|
|
@@ -665,7 +665,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
665
665
|
this.columnResize.resizable = this.$props.resizable || !1, this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = l, this.initializeVirtualization(t);
|
|
666
666
|
const n = E(this.$props.groupable) && this.$props.groupable.footer || "none";
|
|
667
667
|
this.currentData = [];
|
|
668
|
-
const u =
|
|
668
|
+
const u = rt(this.currentData, r, n, {
|
|
669
669
|
index: this.$props.skip || 0
|
|
670
670
|
}, this.$props.group !== void 0, this.$props.expandField), h = e || [];
|
|
671
671
|
this.notHiddenColumns = this.filterHiddenColumns(this.$props.columns), this.initColumns(this.notHiddenColumns, u);
|
|
@@ -762,7 +762,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
762
762
|
width: s.width !== void 0 ? Math.floor(parseFloat(s.width.toString())) + "px" : void 0
|
|
763
763
|
}, null);
|
|
764
764
|
}, this)
|
|
765
|
-
}, null) : o("span", null, null), A = I.call(this, this.$props.cellRender, w.call(this)), be = this.showLicenseWatermark ? o(
|
|
765
|
+
}, null) : o("span", null, null), A = I.call(this, this.$props.cellRender, w.call(this)), be = this.showLicenseWatermark ? o(De, null, null) : null, P = this.$attrs.style, ve = P && E(P) && P["width"] || "", Ie = parseFloat(ve.toString()), we = this.vs && this.vs.container && this.vs.container.scrollLeft || 0, {
|
|
766
766
|
colSpans: N,
|
|
767
767
|
hiddenColumns: Re
|
|
768
768
|
} = Ee({
|
|
@@ -901,7 +901,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
901
901
|
let D, W = -1, j = 0;
|
|
902
902
|
const ee = this.currentData.length && this.currentData.map(function(s, d) {
|
|
903
903
|
s.rowType === "data" && (B++, W++), this.$props.alternatePerGroup && s.rowType === "groupHeader" && (B = 0);
|
|
904
|
-
const C = B % 2 === 0, _ = this.$props.dataItemKey &&
|
|
904
|
+
const C = B % 2 === 0, _ = this.$props.dataItemKey && Te(this.$props.dataItemKey)(s.dataItem), R = d + (this.vs.propsSkip || 0), b = _ || "ai" + R, a = b + "_1";
|
|
905
905
|
D = R + G + j;
|
|
906
906
|
const p = I.call(this, this.$props.rowRender, w.call(this));
|
|
907
907
|
let k;
|
|
@@ -967,7 +967,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
967
967
|
pageSize: (this.$props.take !== void 0 ? this.$props.take : this.$props.pageSize) || 10,
|
|
968
968
|
messagesMap: Ce,
|
|
969
969
|
settings: Ae(this.$props.pageable || {})
|
|
970
|
-
}, null), te =
|
|
970
|
+
}, null), te = le.call(this, {
|
|
971
971
|
h: oe,
|
|
972
972
|
template: ye,
|
|
973
973
|
defaultRendering: He,
|
|
@@ -999,7 +999,7 @@ const Ut = /* @__PURE__ */ Fe({
|
|
|
999
999
|
}, [o(Pe, {
|
|
1000
1000
|
size: "large",
|
|
1001
1001
|
type: "infinite-spinner"
|
|
1002
|
-
}, null)])]), re =
|
|
1002
|
+
}, null)])]), re = le.call(this, {
|
|
1003
1003
|
h: oe,
|
|
1004
1004
|
template: xe,
|
|
1005
1005
|
defaultRendering: _e
|
package/GridNoRecords.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as t,
|
|
8
|
+
import { defineComponent as t, createVNode as n, inject as r } from "vue";
|
|
9
9
|
import { provideLocalizationService as c } from "@progress/kendo-vue-intl";
|
|
10
10
|
import { noRecords as o, messages as a } from "./messages/main.mjs";
|
|
11
11
|
import { getDefaultSlots as l } from "@progress/kendo-vue-common";
|
|
@@ -18,12 +18,12 @@ const v = /* @__PURE__ */ t({
|
|
|
18
18
|
},
|
|
19
19
|
setup() {
|
|
20
20
|
return {
|
|
21
|
-
kendoLocalizationService:
|
|
21
|
+
kendoLocalizationService: r("kendoLocalizationService", {})
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
render() {
|
|
25
25
|
const e = l(this), i = c(this).toLanguageString(o, a[o]);
|
|
26
|
-
return e ?
|
|
26
|
+
return e ? n("div", null, [e]) : i;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
package/GridToolbar.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as o, createVNode as e } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { getDefaultSlots as t, kendoThemeMaps as a } from "@progress/kendo-vue-common";
|
|
10
10
|
const i = /* @__PURE__ */ o({
|
|
11
11
|
name: "GridToolbar",
|
|
12
12
|
props: {
|
|
@@ -27,12 +27,12 @@ const i = /* @__PURE__ */ o({
|
|
|
27
27
|
"k-toolbar": !0,
|
|
28
28
|
"k-grid-toolbar": !0,
|
|
29
29
|
"k-toolbar-solid": !0,
|
|
30
|
-
[`k-toolbar-${
|
|
30
|
+
[`k-toolbar-${a.sizeMap[r] || r}`]: r
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
render() {
|
|
35
|
-
const r =
|
|
35
|
+
const r = t(this);
|
|
36
36
|
return e("div", {
|
|
37
37
|
class: this.wrapperClass,
|
|
38
38
|
role: "toolbar"
|
package/cells/GridCell.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as o,
|
|
8
|
+
import { defineComponent as o, createVNode as n, h as s, inject as a } from "vue";
|
|
9
9
|
import { getNestedValue as d, parsers as l } from "../utils/main.mjs";
|
|
10
10
|
import { provideIntlService as p } from "@progress/kendo-vue-intl";
|
|
11
11
|
import { noop as c, getTemplate as g } from "@progress/kendo-vue-common";
|
|
12
|
-
import {
|
|
12
|
+
import { KEYBOARD_NAV_DATA_ID as m, KEYBOARD_NAV_DATA_LEVEL as h } from "@progress/kendo-vue-data-tools";
|
|
13
13
|
const y = /* @__PURE__ */ o({
|
|
14
14
|
name: "GridCell",
|
|
15
15
|
inheritAttrs: !1,
|
|
@@ -98,7 +98,7 @@ const y = /* @__PURE__ */ o({
|
|
|
98
98
|
},
|
|
99
99
|
setup() {
|
|
100
100
|
return {
|
|
101
|
-
kendoIntlService:
|
|
101
|
+
kendoIntlService: a("kendoIntlService", {})
|
|
102
102
|
};
|
|
103
103
|
},
|
|
104
104
|
render() {
|
|
@@ -122,12 +122,12 @@ const y = /* @__PURE__ */ o({
|
|
|
122
122
|
"aria-selected": this.$props.isSelected,
|
|
123
123
|
"data-grid-col-index": this.$props.columnIndex,
|
|
124
124
|
tabindex: i.tabIndex,
|
|
125
|
-
"data-keyboardnavlevel": i[
|
|
126
|
-
"data-keyboardnavid": i[
|
|
125
|
+
"data-keyboardnavlevel": i[h],
|
|
126
|
+
"data-keyboardnavid": i[m]
|
|
127
127
|
}, [r]);
|
|
128
128
|
}
|
|
129
129
|
return g.call(this, {
|
|
130
|
-
h:
|
|
130
|
+
h: s,
|
|
131
131
|
template: this.$props.render,
|
|
132
132
|
defaultRendering: t,
|
|
133
133
|
additionalProps: this.$props,
|
package/cells/GridDetailCell.mjs
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as l,
|
|
8
|
+
import { defineComponent as l, createVNode as c, inject as s, h as p } from "vue";
|
|
9
9
|
import { noop as m, getTemplate as b } from "@progress/kendo-vue-common";
|
|
10
|
-
import {
|
|
10
|
+
import { KEYBOARD_NAV_DATA_ID as u, KEYBOARD_NAV_DATA_LEVEL as I } from "@progress/kendo-vue-data-tools";
|
|
11
11
|
const x = /* @__PURE__ */ l({
|
|
12
12
|
props: {
|
|
13
13
|
colSpan: Number,
|
|
@@ -24,7 +24,7 @@ const x = /* @__PURE__ */ l({
|
|
|
24
24
|
},
|
|
25
25
|
setup() {
|
|
26
26
|
return {
|
|
27
|
-
kendoIntlService:
|
|
27
|
+
kendoIntlService: s("kendoIntlService", {})
|
|
28
28
|
};
|
|
29
29
|
},
|
|
30
30
|
render() {
|
|
@@ -41,14 +41,14 @@ const x = /* @__PURE__ */ l({
|
|
|
41
41
|
additionalProps: o
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
return
|
|
44
|
+
return c("td", {
|
|
45
45
|
class: "k-table-td k-detail-cell",
|
|
46
46
|
colspan: e,
|
|
47
47
|
"aria-colindex": a,
|
|
48
48
|
role: "gridcell",
|
|
49
49
|
tabindex: t.tabIndex,
|
|
50
|
-
"data-keyboardnavlevel": t[
|
|
51
|
-
"data-keyboardnavid": t[
|
|
50
|
+
"data-keyboardnavlevel": t[I],
|
|
51
|
+
"data-keyboardnavid": t[u]
|
|
52
52
|
}, [d.call(this, {
|
|
53
53
|
dataItem: n,
|
|
54
54
|
dataIndex: r
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as t,
|
|
9
|
-
import {
|
|
8
|
+
import { defineComponent as t, createVNode as r, inject as n } from "vue";
|
|
9
|
+
import { KEYBOARD_NAV_DATA_ID as i, KEYBOARD_NAV_DATA_LEVEL as o } from "@progress/kendo-vue-data-tools";
|
|
10
10
|
import { noop as a } from "@progress/kendo-vue-common";
|
|
11
11
|
const s = /* @__PURE__ */ t({
|
|
12
12
|
props: {
|
|
@@ -19,16 +19,16 @@ const s = /* @__PURE__ */ t({
|
|
|
19
19
|
},
|
|
20
20
|
setup() {
|
|
21
21
|
return {
|
|
22
|
-
kendoIntlService:
|
|
22
|
+
kendoIntlService: n("kendoIntlService", {})
|
|
23
23
|
};
|
|
24
24
|
},
|
|
25
25
|
render() {
|
|
26
26
|
const e = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
27
|
-
return
|
|
27
|
+
return r("td", {
|
|
28
28
|
class: "k-table-td k-hierarchy-cell",
|
|
29
29
|
tabindex: e.tabIndex,
|
|
30
|
-
"data-keyboardnavlevel": e[
|
|
31
|
-
"data-keyboardnavid": e[
|
|
30
|
+
"data-keyboardnavlevel": e[o],
|
|
31
|
+
"data-keyboardnavid": e[i]
|
|
32
32
|
}, null);
|
|
33
33
|
}
|
|
34
34
|
});
|
package/cells/GridEditCell.mjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as d,
|
|
8
|
+
import { defineComponent as d, createVNode as i, h as s, inject as l } from "vue";
|
|
9
9
|
import { getNestedValue as o } from "../utils/main.mjs";
|
|
10
|
-
import { noop as c,
|
|
10
|
+
import { noop as c, getTemplate as p, guid as h } from "@progress/kendo-vue-common";
|
|
11
11
|
import { NumericTextBox as g } from "@progress/kendo-vue-inputs";
|
|
12
12
|
import { DatePicker as u } from "@progress/kendo-vue-dateinputs";
|
|
13
|
-
import {
|
|
13
|
+
import { KEYBOARD_NAV_DATA_ID as r, KEYBOARD_NAV_DATA_LEVEL as n } from "@progress/kendo-vue-data-tools";
|
|
14
14
|
const v = /* @__PURE__ */ d({
|
|
15
15
|
name: "GridEditCell",
|
|
16
16
|
inheritAttrs: !1,
|
|
@@ -65,7 +65,7 @@ const v = /* @__PURE__ */ d({
|
|
|
65
65
|
},
|
|
66
66
|
data() {
|
|
67
67
|
return {
|
|
68
|
-
inputId:
|
|
68
|
+
inputId: h()
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
methods: {
|
|
@@ -102,7 +102,7 @@ const v = /* @__PURE__ */ d({
|
|
|
102
102
|
},
|
|
103
103
|
setup() {
|
|
104
104
|
return {
|
|
105
|
-
kendoIntlService:
|
|
105
|
+
kendoIntlService: l("kendoIntlService", {})
|
|
106
106
|
};
|
|
107
107
|
},
|
|
108
108
|
render() {
|
|
@@ -120,8 +120,8 @@ const v = /* @__PURE__ */ d({
|
|
|
120
120
|
"aria-selected": this.$props.isSelected,
|
|
121
121
|
"data-grid-col-index": this.$props.columnIndex,
|
|
122
122
|
tabindex: t.tabIndex,
|
|
123
|
-
"data-keyboardnavlevel": t[
|
|
124
|
-
"data-keyboardnavid": t[
|
|
123
|
+
"data-keyboardnavlevel": t[n],
|
|
124
|
+
"data-keyboardnavid": t[r]
|
|
125
125
|
}, [i(g, {
|
|
126
126
|
style: {
|
|
127
127
|
width: "100%"
|
|
@@ -141,8 +141,8 @@ const v = /* @__PURE__ */ d({
|
|
|
141
141
|
"aria-selected": this.$props.isSelected,
|
|
142
142
|
"data-grid-col-index": this.$props.columnIndex,
|
|
143
143
|
tabindex: t.tabIndex,
|
|
144
|
-
"data-keyboardnavlevel": t[
|
|
145
|
-
"data-keyboardnavid": t[
|
|
144
|
+
"data-keyboardnavlevel": t[n],
|
|
145
|
+
"data-keyboardnavid": t[r]
|
|
146
146
|
}, [i(u, {
|
|
147
147
|
style: {
|
|
148
148
|
width: "100%"
|
|
@@ -162,8 +162,8 @@ const v = /* @__PURE__ */ d({
|
|
|
162
162
|
"aria-selected": this.$props.isSelected,
|
|
163
163
|
"data-grid-col-index": this.$props.columnIndex,
|
|
164
164
|
tabindex: t.tabIndex,
|
|
165
|
-
"data-keyboardnavlevel": t[
|
|
166
|
-
"data-keyboardnavid": t[
|
|
165
|
+
"data-keyboardnavlevel": t[n],
|
|
166
|
+
"data-keyboardnavid": t[r]
|
|
167
167
|
}, [i("input", {
|
|
168
168
|
checked: e || !1,
|
|
169
169
|
id: this.inputId,
|
|
@@ -186,8 +186,8 @@ const v = /* @__PURE__ */ d({
|
|
|
186
186
|
"aria-selected": this.$props.isSelected,
|
|
187
187
|
"data-grid-col-index": this.$props.columnIndex,
|
|
188
188
|
tabindex: t.tabIndex,
|
|
189
|
-
"data-keyboardnavlevel": t[
|
|
190
|
-
"data-keyboardnavid": t[
|
|
189
|
+
"data-keyboardnavlevel": t[n],
|
|
190
|
+
"data-keyboardnavid": t[r]
|
|
191
191
|
}, [i("span", {
|
|
192
192
|
class: "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
193
193
|
}, [i("input", {
|
|
@@ -199,8 +199,8 @@ const v = /* @__PURE__ */ d({
|
|
|
199
199
|
onChange: this.changeHandler
|
|
200
200
|
}, null)])]);
|
|
201
201
|
}
|
|
202
|
-
return
|
|
203
|
-
h:
|
|
202
|
+
return p.call(this, {
|
|
203
|
+
h: s,
|
|
204
204
|
template: this.$props.render,
|
|
205
205
|
defaultRendering: a,
|
|
206
206
|
additionalProps: this.$props,
|
package/cells/GridFilterCell.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as v,
|
|
8
|
+
import { defineComponent as v, createVNode as i, h as b, inject as s } from "vue";
|
|
9
9
|
import { Button as $ } from "@progress/kendo-vue-buttons";
|
|
10
10
|
import { filterClearButton as p, messages as c, filterChooseOperator as h } from "../messages/main.mjs";
|
|
11
11
|
import { DropDownList as g } from "@progress/kendo-vue-dropdowns";
|
|
@@ -13,7 +13,7 @@ import { TextBox as S, NumericTextBox as L } from "@progress/kendo-vue-inputs";
|
|
|
13
13
|
import { DatePicker as k } from "@progress/kendo-vue-dateinputs";
|
|
14
14
|
import { filterClearIcon as z, filterIcon as x } from "@progress/kendo-svg-icons";
|
|
15
15
|
import { provideLocalizationService as I } from "@progress/kendo-vue-intl";
|
|
16
|
-
import {
|
|
16
|
+
import { cellBoolDropdownChange as w, cellOperatorChange as y, cellInputChange as D } from "../filterCommon.mjs";
|
|
17
17
|
import { getListeners as F, templateRendering as B, getTemplate as O } from "@progress/kendo-vue-common";
|
|
18
18
|
const q = /* @__PURE__ */ v({
|
|
19
19
|
name: "KendoGridFilterCell",
|
|
@@ -44,7 +44,7 @@ const q = /* @__PURE__ */ v({
|
|
|
44
44
|
},
|
|
45
45
|
methods: {
|
|
46
46
|
inputChange(e, t) {
|
|
47
|
-
const o =
|
|
47
|
+
const o = D(e, t, this.$props);
|
|
48
48
|
this.triggerChange(o);
|
|
49
49
|
},
|
|
50
50
|
operatorChange(e, t) {
|
|
@@ -52,7 +52,7 @@ const q = /* @__PURE__ */ v({
|
|
|
52
52
|
this.triggerChange(o);
|
|
53
53
|
},
|
|
54
54
|
boolDropdownChange(e, t) {
|
|
55
|
-
const o =
|
|
55
|
+
const o = w(e.value.operator, t);
|
|
56
56
|
this.triggerChange(o);
|
|
57
57
|
},
|
|
58
58
|
clear(e) {
|
package/cells/GridGroupCell.mjs
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as x, createVNode as i, h as b } from "vue";
|
|
9
|
-
import { noop as y,
|
|
10
|
-
import {
|
|
9
|
+
import { noop as y, Icon as $, getTemplate as v, Keys as k } from "@progress/kendo-vue-common";
|
|
10
|
+
import { KEYBOARD_NAV_DATA_ID as A, KEYBOARD_NAV_DATA_LEVEL as C } from "@progress/kendo-vue-data-tools";
|
|
11
11
|
import { groupCaretAriaLabelCollapse as u, messages as m, groupCaretAriaLabelExpand as g } from "../messages/main.mjs";
|
|
12
12
|
import { provideLocalizationService as h } from "@progress/kendo-vue-intl";
|
|
13
13
|
import { caretAltDownIcon as S, caretAltRightIcon as N, caretAltLeftIcon as L } from "@progress/kendo-svg-icons";
|
|
@@ -68,7 +68,7 @@ const _ = /* @__PURE__ */ x({
|
|
|
68
68
|
dataIndex: this.$props.dataIndex,
|
|
69
69
|
field: this.$props.field,
|
|
70
70
|
expanded: this.$props.expanded
|
|
71
|
-
}), !e.defaultPrevented && e.keyCode ===
|
|
71
|
+
}), !e.defaultPrevented && e.keyCode === k.enter && (e.preventDefault(), this.$emit("change", {
|
|
72
72
|
dataItem: this.$props.dataItem,
|
|
73
73
|
dataIndex: this.$props.dataIndex,
|
|
74
74
|
event: e,
|
|
@@ -118,8 +118,8 @@ const _ = /* @__PURE__ */ x({
|
|
|
118
118
|
"aria-expanded": a,
|
|
119
119
|
"data-grid-col-index": this.$props.columnIndex,
|
|
120
120
|
tabindex: d.tabIndex,
|
|
121
|
-
"data-keyboardnavlevel": d[
|
|
122
|
-
"data-keyboardnavid": d[
|
|
121
|
+
"data-keyboardnavlevel": d[C],
|
|
122
|
+
"data-keyboardnavid": d[A]
|
|
123
123
|
}, [i("p", {
|
|
124
124
|
class: "k-reset"
|
|
125
125
|
}, [i("a", {
|
|
@@ -130,10 +130,10 @@ const _ = /* @__PURE__ */ x({
|
|
|
130
130
|
tabindex: -1,
|
|
131
131
|
title: a ? p : c,
|
|
132
132
|
"aria-label": a ? p : c
|
|
133
|
-
}, [i(
|
|
133
|
+
}, [i($, {
|
|
134
134
|
name: a ? "caret-alt-down" : this.isRtl ? "caret-alt-left" : "caret-alt-right",
|
|
135
135
|
icon: a ? S : this.isRtl ? L : N
|
|
136
|
-
}, null)]), r[l] ? r[l].toString() : ""])])),
|
|
136
|
+
}, null)]), r[l] ? r[l].toString() : ""])])), v.call(this, {
|
|
137
137
|
h: b,
|
|
138
138
|
template: I,
|
|
139
139
|
defaultRendering: e,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as c, createVNode as r, h as m } from "vue";
|
|
9
9
|
import { getNestedValue as u } from "../utils/main.mjs";
|
|
10
|
-
import { noop as h,
|
|
11
|
-
import {
|
|
10
|
+
import { noop as h, Icon as g, getTemplate as f, Keys as y } from "@progress/kendo-vue-common";
|
|
11
|
+
import { KEYBOARD_NAV_DATA_ID as b, KEYBOARD_NAV_DATA_LEVEL as I } from "@progress/kendo-vue-data-tools";
|
|
12
12
|
import { provideLocalizationService as $ } from "@progress/kendo-vue-intl";
|
|
13
13
|
import { collapseDetailAriaLabel as s, messages as d, expandDetailAriaLabel as p } from "../messages/main.mjs";
|
|
14
14
|
import { minusIcon as v, plusIcon as x } from "@progress/kendo-svg-icons";
|
|
@@ -57,7 +57,7 @@ const D = /* @__PURE__ */ c({
|
|
|
57
57
|
dataItem: this.$props.dataItem,
|
|
58
58
|
field: this.$props.field,
|
|
59
59
|
expanded: t
|
|
60
|
-
}), !e.defaultPrevented && e.keyCode ===
|
|
60
|
+
}), !e.defaultPrevented && e.keyCode === y.enter && (e.preventDefault(), this.$emit("change", {
|
|
61
61
|
dataItem: this.$props.dataItem,
|
|
62
62
|
dataIndex: this.$props.dataIndex,
|
|
63
63
|
event: e,
|
|
@@ -102,8 +102,8 @@ const D = /* @__PURE__ */ c({
|
|
|
102
102
|
role: "gridcell",
|
|
103
103
|
"aria-colindex": this.$props.ariaColumnIndex,
|
|
104
104
|
tabindex: t.tabIndex,
|
|
105
|
-
"data-keyboardnavlevel": t[
|
|
106
|
-
"data-keyboardnavid": t[
|
|
105
|
+
"data-keyboardnavlevel": t[I],
|
|
106
|
+
"data-keyboardnavid": t[b]
|
|
107
107
|
}, [r("a", {
|
|
108
108
|
onClick: (n) => {
|
|
109
109
|
this.clickHandler(n, this.$props.dataItem, a);
|
|
@@ -112,12 +112,12 @@ const D = /* @__PURE__ */ c({
|
|
|
112
112
|
tabindex: -1,
|
|
113
113
|
title: a ? l : o,
|
|
114
114
|
"aria-label": a ? l : o
|
|
115
|
-
}, [r(
|
|
115
|
+
}, [r(g, {
|
|
116
116
|
name: a ? "minus" : "plus",
|
|
117
117
|
icon: a ? v : x
|
|
118
118
|
}, null)])]);
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return f.call(this, {
|
|
121
121
|
h: m,
|
|
122
122
|
template: this.$props.render,
|
|
123
123
|
defaultRendering: e,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as o, createVNode as t, h as r } from "vue";
|
|
9
9
|
import { getNestedValue as d } from "../utils/main.mjs";
|
|
10
|
-
import { noop as l,
|
|
11
|
-
import {
|
|
10
|
+
import { noop as l, getTemplate as s, guid as p } from "@progress/kendo-vue-common";
|
|
11
|
+
import { KEYBOARD_NAV_DATA_ID as c, KEYBOARD_NAV_DATA_LEVEL as h } from "@progress/kendo-vue-data-tools";
|
|
12
12
|
const k = /* @__PURE__ */ o({
|
|
13
13
|
name: "KendoGridSelectionCell",
|
|
14
14
|
inheritAttrs: !1,
|
|
@@ -45,7 +45,7 @@ const k = /* @__PURE__ */ o({
|
|
|
45
45
|
},
|
|
46
46
|
data() {
|
|
47
47
|
return {
|
|
48
|
-
inputId:
|
|
48
|
+
inputId: p()
|
|
49
49
|
};
|
|
50
50
|
},
|
|
51
51
|
computed: {
|
|
@@ -83,8 +83,8 @@ const k = /* @__PURE__ */ o({
|
|
|
83
83
|
"aria-colindex": this.$props.ariaColumnIndex,
|
|
84
84
|
role: "gridcell",
|
|
85
85
|
tabindex: n.tabIndex,
|
|
86
|
-
"data-keyboardnavlevel": n[
|
|
87
|
-
"data-keyboardnavid": n[
|
|
86
|
+
"data-keyboardnavlevel": n[h],
|
|
87
|
+
"data-keyboardnavid": n[c]
|
|
88
88
|
}, [t("span", {
|
|
89
89
|
class: "k-checkbox-wrap"
|
|
90
90
|
}, [t("input", {
|
|
@@ -97,7 +97,7 @@ const k = /* @__PURE__ */ o({
|
|
|
97
97
|
class: "k-checkbox-label",
|
|
98
98
|
for: this.inputId
|
|
99
99
|
}, null)]) : null;
|
|
100
|
-
return
|
|
100
|
+
return s.call(this, {
|
|
101
101
|
h: r,
|
|
102
102
|
template: a,
|
|
103
103
|
defaultRendering: i,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as s,
|
|
9
|
-
import { SvgIcon as c,
|
|
8
|
+
import { defineComponent as s, createVNode as o, inject as l } from "vue";
|
|
9
|
+
import { SvgIcon as c, setRef as u, Icon as i, guid as a } from "@progress/kendo-vue-common";
|
|
10
10
|
import { Popup as h } from "@progress/kendo-vue-popup";
|
|
11
11
|
import { moreVerticalIcon as m } from "@progress/kendo-svg-icons";
|
|
12
12
|
import { ColumnMenuContent as p } from "./ColumnMenuContent.mjs";
|
|
@@ -52,7 +52,7 @@ const S = /* @__PURE__ */ s({
|
|
|
52
52
|
};
|
|
53
53
|
},
|
|
54
54
|
created() {
|
|
55
|
-
this._anchor =
|
|
55
|
+
this._anchor = a();
|
|
56
56
|
},
|
|
57
57
|
computed: {
|
|
58
58
|
currentOpen() {
|
|
@@ -112,7 +112,7 @@ const S = /* @__PURE__ */ s({
|
|
|
112
112
|
}, [o("a", {
|
|
113
113
|
class: "k-grid-header-menu k-grid-column-menu",
|
|
114
114
|
title: `${this.$props.column.field} ${t.toLanguageString(r, b[r])}`,
|
|
115
|
-
ref:
|
|
115
|
+
ref: u(this, "kendoAnchor"),
|
|
116
116
|
onClick: this.anchorClick,
|
|
117
117
|
href: "#"
|
|
118
118
|
}, [n ? o(i, {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { defineComponent as o, createVNode as n, h as s } from "vue";
|
|
9
9
|
import { GridColumnMenuSort as r } from "./GridColumnMenuSort.mjs";
|
|
10
10
|
import { GridColumnMenuFilter as i } from "./GridColumnMenuFilter.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { getTemplate as l, Keys as a } from "@progress/kendo-vue-common";
|
|
12
12
|
const m = /* @__PURE__ */ o({
|
|
13
13
|
name: "KendoColumnMenuContent",
|
|
14
14
|
inheritAttrs: !1,
|
|
@@ -45,7 +45,7 @@ const m = /* @__PURE__ */ o({
|
|
|
45
45
|
this.$emit("filterchange", e, t);
|
|
46
46
|
},
|
|
47
47
|
contentKeyDown(e) {
|
|
48
|
-
e.keyCode ===
|
|
48
|
+
e.keyCode === a.esc && this.$emit("closemenu");
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
render() {
|
|
@@ -68,7 +68,7 @@ const m = /* @__PURE__ */ o({
|
|
|
68
68
|
onExpandchange: this.expandChange,
|
|
69
69
|
onFilterchange: this.filterChange
|
|
70
70
|
}, null)]);
|
|
71
|
-
return
|
|
71
|
+
return l.call(this, {
|
|
72
72
|
h: s,
|
|
73
73
|
template: typeof e != "boolean" && e,
|
|
74
74
|
defaultRendering: t,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { createVNode as r, h as p, inject as j, isVNode as A } from "vue";
|
|
9
9
|
import { Button as f } from "@progress/kendo-vue-buttons";
|
|
10
10
|
import { GridColumnMenuItem as O } from "./GridColumnMenuItem.mjs";
|
|
11
11
|
import { GridColumnMenuItemGroup as R } from "./GridColumnMenuItemGroup.mjs";
|
|
@@ -14,7 +14,7 @@ import { Checkbox as m } from "@progress/kendo-vue-inputs";
|
|
|
14
14
|
import { provideLocalizationService as q } from "@progress/kendo-vue-intl";
|
|
15
15
|
import { filterCheckAll as g, messages as d, filterTitle as x, filterSubmitButton as F, filterClearButton as k, searchPlaceholder as I } from "../messages/main.mjs";
|
|
16
16
|
import { filterBy as P } from "@progress/kendo-data-query";
|
|
17
|
-
import { templateRendering as C, getListeners as $, getTemplate as v,
|
|
17
|
+
import { clone as z, templateRendering as C, getListeners as $, getTemplate as v, Icon as G } from "@progress/kendo-vue-common";
|
|
18
18
|
import { getNestedValue as S } from "../utils/main.mjs";
|
|
19
19
|
import { filterIcon as M, searchIcon as w } from "@progress/kendo-svg-icons";
|
|
20
20
|
function b(e) {
|