@progress/kendo-vue-grid 8.1.0-develop.4 → 8.1.0-develop.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Grid.d.ts +30 -17
- package/Grid.js +1 -1
- package/Grid.mjs +567 -449
- package/GridState.d.ts +15 -1
- package/GridState.js +1 -1
- package/GridState.mjs +84 -71
- package/RootGrid.d.ts +10 -0
- package/cells/GridCell.d.ts +2 -0
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +35 -30
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +20 -20
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +42 -37
- package/cells/GridGroupCell.d.ts +2 -0
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +69 -55
- package/cells/GridHierarchyCell.d.ts +2 -0
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +51 -41
- package/cells/GridSelectionCell.d.ts +2 -0
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +35 -24
- package/cells/pincell/GridPinCell.d.ts +72 -0
- package/cells/pincell/GridPinCell.js +8 -0
- package/cells/pincell/GridPinCell.mjs +111 -0
- package/cells/pincell/GridPinDropdownButton.d.ts +27 -0
- package/cells/pincell/GridPinDropdownButton.js +8 -0
- package/cells/pincell/GridPinDropdownButton.mjs +111 -0
- package/common.d.ts +5 -0
- package/common.js +1 -1
- package/common.mjs +7 -2
- package/components/PinnedRowsTable.d.ts +63 -0
- package/components/PinnedRowsTable.js +8 -0
- package/components/PinnedRowsTable.mjs +141 -0
- package/components/StickyGroupTable.d.ts +0 -1
- package/components/StickyGroupTable.js +1 -1
- package/components/StickyGroupTable.mjs +24 -30
- package/constants/main.d.ts +15 -0
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/drag/ColumnResize.d.ts +2 -0
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +139 -123
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +22 -20
- package/getRowContents.js +1 -1
- package/getRowContents.mjs +50 -48
- package/header/FilterRow.d.ts +4 -0
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +52 -50
- package/header/HeaderRow.d.ts +4 -0
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +114 -105
- package/index.js +1 -1
- package/index.mjs +15 -14
- package/interfaces/ColumnType.d.ts +1 -1
- package/interfaces/GridCellProps.d.ts +5 -0
- package/interfaces/GridCellsSettings.d.ts +23 -0
- package/interfaces/GridColumnProps.d.ts +2 -2
- package/interfaces/GridProps.d.ts +88 -31
- package/interfaces/GridRowProps.d.ts +13 -4
- package/interfaces/GridRowsSettings.d.ts +48 -0
- package/interfaces/events.d.ts +19 -2
- package/messages/main.d.ts +30 -0
- package/messages/main.js +2 -2
- package/messages/main.mjs +108 -96
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -12
- package/rows/GridRow.d.ts +4 -10
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +24 -23
- package/utils/main.d.ts +5 -0
- package/utils/main.js +1 -1
- package/utils/main.mjs +199 -167
- package/utils/virtualColumns.js +1 -1
- package/utils/virtualColumns.mjs +121 -105
package/GridState.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { GridProps } from './interfaces/GridProps';
|
|
9
|
-
import { GridDataStateChangeEvent, GridDetailExpandChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridGroupExpandChangeEvent, GridPageChangeEvent, GridSearchChangeEvent, GridSortChangeEvent, GridSelectionChangeEvent, GridHeaderSelectionChangeEvent } from './interfaces/events';
|
|
9
|
+
import { GridDataStateChangeEvent, GridDetailExpandChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridGroupExpandChangeEvent, GridPageChangeEvent, GridSearchChangeEvent, GridSortChangeEvent, GridSelectionChangeEvent, GridHeaderSelectionChangeEvent, GridRowPinChangeEvent } from './interfaces/events';
|
|
10
10
|
/** @hidden */
|
|
11
11
|
export type GridState = {
|
|
12
12
|
filter?: GridProps['filter'];
|
|
@@ -20,6 +20,8 @@ export type GridState = {
|
|
|
20
20
|
detailExpand?: GridProps['detailExpand'];
|
|
21
21
|
groupExpand?: GridProps['groupExpand'];
|
|
22
22
|
columnsState?: GridProps['columnsState'];
|
|
23
|
+
pinnedTopRows?: GridProps['pinnedTopRows'];
|
|
24
|
+
pinnedBottomRows?: GridProps['pinnedBottomRows'];
|
|
23
25
|
};
|
|
24
26
|
declare const GridStateProvider: import('vue').DefineComponent<{
|
|
25
27
|
id?: string;
|
|
@@ -39,6 +41,12 @@ declare const GridStateProvider: import('vue').DefineComponent<{
|
|
|
39
41
|
onSortchange?: (event: GridSortChangeEvent) => void;
|
|
40
42
|
defaultSort?: import('@progress/kendo-data-query').SortDescriptor[];
|
|
41
43
|
sort?: import('@progress/kendo-data-query').SortDescriptor[];
|
|
44
|
+
pinnable?: boolean;
|
|
45
|
+
pinnedTopRows?: any[];
|
|
46
|
+
pinnedBottomRows?: any[];
|
|
47
|
+
defaultPinnedTopRows?: any[];
|
|
48
|
+
defaultPinnedBottomRows?: any[];
|
|
49
|
+
onRowpinchange?: (event: GridRowPinChangeEvent) => void;
|
|
42
50
|
filterable?: boolean;
|
|
43
51
|
search?: import('@progress/kendo-data-query').CompositeFilterDescriptor;
|
|
44
52
|
defaultSearch?: import('@progress/kendo-data-query').CompositeFilterDescriptor;
|
|
@@ -144,6 +152,12 @@ declare const GridStateProvider: import('vue').DefineComponent<{
|
|
|
144
152
|
onSortchange?: (event: GridSortChangeEvent) => void;
|
|
145
153
|
defaultSort?: import('@progress/kendo-data-query').SortDescriptor[];
|
|
146
154
|
sort?: import('@progress/kendo-data-query').SortDescriptor[];
|
|
155
|
+
pinnable?: boolean;
|
|
156
|
+
pinnedTopRows?: any[];
|
|
157
|
+
pinnedBottomRows?: any[];
|
|
158
|
+
defaultPinnedTopRows?: any[];
|
|
159
|
+
defaultPinnedBottomRows?: any[];
|
|
160
|
+
onRowpinchange?: (event: GridRowPinChangeEvent) => void;
|
|
147
161
|
filterable?: boolean;
|
|
148
162
|
search?: import('@progress/kendo-data-query').CompositeFilterDescriptor;
|
|
149
163
|
defaultSearch?: import('@progress/kendo-data-query').CompositeFilterDescriptor;
|
package/GridState.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),z=require("./key.js"),I=require("./common.js"),J=require("@progress/kendo-vue-common"),L=n.defineComponent({name:"KendoVueGridStateProvider",inheritAttrs:!1,props:I.gridProps,setup(a,{emit:l}){var o,c,u,d,h,i,s,g,r,w,v,m;const t=n.ref({filter:(o=a.defaultFilter)!=null?o:a.filter,highlight:a.highlight,select:(c=a.defaultSelect)!=null?c:a.select,search:(u=a.defaultSearch)!=null?u:a.search,sort:(d=a.defaultSort)!=null?d:a.sort,take:(h=a.defaultTake)!=null?h:a.take,skip:(i=a.defaultSkip)!=null?i:a.skip,group:(s=a.defaultGroup)!=null?s:a.group,detailExpand:(g=a.defaultDetailExpand)!=null?g:a.detailExpand,groupExpand:(r=a.defaultGroupExpand)!=null?r:a.groupExpand,columnsState:(w=a.defaultColumnsState)!=null?w:a.columnsState,pinnedTopRows:(v=a.defaultPinnedTopRows)!=null?v:a.pinnedTopRows,pinnedBottomRows:(m=a.defaultPinnedBottomRows)!=null?m:a.pinnedBottomRows}),f=e=>{t.value={...t.value,...e.data},l("datastatechange",e)},S=n.computed(()=>a.filter||t.value.filter||null),x=e=>{t.value.filter=e.filter,l("filterchange",e)};n.watch(()=>a.filter,e=>{t.value.filter=e});const k=n.computed(()=>a.search||t.value.search||null),p=e=>{t.value.search=e.search,t.value.skip=0,l("searchchange",e)};n.watch(()=>a.search,e=>{t.value.search=e});const E=n.computed(()=>a.select||t.value.select||null),R=e=>{t.value.select=e.select,l("selectionchange",e)},C=e=>{t.value.select=e.select,l("headerselectionchange",e)},T=n.computed(()=>a.sort||t.value.sort||[]),B=e=>{t.value.sort=e.sort,l("sortchange",e)};n.watch(()=>a.sort,e=>{t.value.sort=e});const P=n.computed(()=>a.skip||t.value.skip),G=n.computed(()=>a.take||t.value.take),q=e=>{t.value.skip=e.page.skip,t.value.take=e.page.take,l("pagechange",e)};n.watch(()=>a.skip,e=>{t.value.skip=e}),n.watch(()=>a.take,e=>{t.value.take=e});const y=n.computed(()=>a.group||t.value.group||[]),D=e=>{t.value.group=e.group,l("groupchange",e)};n.watch(()=>a.group,e=>{t.value.group=e});const K=n.computed(()=>a.detailExpand||t.value.detailExpand||{}),b=e=>{t.value.detailExpand=e.detailExpand,l("detailexpandchange",e)};n.watch(()=>a.detailExpand,e=>{t.value.detailExpand=e});const F=n.computed(()=>a.groupExpand||t.value.groupExpand||[]),V=e=>{t.value.groupExpand=e.groupExpand,l("groupexpandchange",e)};n.watch(()=>a.groupExpand,e=>{t.value.groupExpand=e});const j=n.computed(()=>a.columnsState||t.value.columnsState||[]),A=e=>{t.value.columnsState=e.columnsState,l("columnsstatechange",e)};n.watch(()=>a.columnsState,e=>{t.value.columnsState=e});const H=n.computed(()=>a.pinnedTopRows||t.value.pinnedTopRows||[]),M=n.computed(()=>a.pinnedBottomRows||t.value.pinnedBottomRows||[]),O=e=>{t.value.pinnedTopRows=e.pinnedTopRows,t.value.pinnedBottomRows=e.pinnedBottomRows,l("rowpinchange",e)};n.watch(()=>a.pinnedTopRows,e=>{t.value.pinnedTopRows=e}),n.watch(()=>a.pinnedBottomRows,e=>{t.value.pinnedBottomRows=e}),n.provide(z.KendoKey,{sort:T,sortchange:B,filter:S,filterchange:x,search:k,searchchange:p,skip:P,take:G,pagechange:q,select:E,selectionchange:R,headerselectionchange:C,group:y,groupchange:D,detailExpand:K,detailexpandchange:b,groupExpand:F,groupexpandchange:V,columnsState:j,columnsstatechange:A,datastatechange:f,pinnedTopRows:H,pinnedBottomRows:M,rowpinchange:O})},render(){return J.getDefaultSlots(this)}});exports.GridStateProvider=L;
|
package/GridState.mjs
CHANGED
|
@@ -5,117 +5,130 @@
|
|
|
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 { KendoKey as
|
|
10
|
-
import { gridProps as
|
|
11
|
-
import { getDefaultSlots as
|
|
12
|
-
const
|
|
8
|
+
import { defineComponent as L, ref as M, computed as l, watch as o, provide as N } from "vue";
|
|
9
|
+
import { KendoKey as O } from "./key.mjs";
|
|
10
|
+
import { gridProps as Q } from "./common.mjs";
|
|
11
|
+
import { getDefaultSlots as U } from "@progress/kendo-vue-common";
|
|
12
|
+
const _ = /* @__PURE__ */ L({
|
|
13
13
|
name: "KendoVueGridStateProvider",
|
|
14
14
|
inheritAttrs: !1,
|
|
15
|
-
props:
|
|
15
|
+
props: Q,
|
|
16
16
|
setup(a, {
|
|
17
|
-
emit:
|
|
17
|
+
emit: n
|
|
18
18
|
}) {
|
|
19
|
-
var c,
|
|
20
|
-
const t =
|
|
19
|
+
var d, u, c, i, h, g, s, r, f, v, x, S;
|
|
20
|
+
const t = M({
|
|
21
21
|
// edit: props.defaultEdit ?? props.edit,
|
|
22
|
-
filter: (
|
|
22
|
+
filter: (d = a.defaultFilter) != null ? d : a.filter,
|
|
23
23
|
highlight: a.highlight,
|
|
24
|
-
select: (
|
|
25
|
-
search: (
|
|
26
|
-
sort: (
|
|
27
|
-
take: (
|
|
28
|
-
skip: (
|
|
29
|
-
group: (
|
|
30
|
-
detailExpand: (
|
|
24
|
+
select: (u = a.defaultSelect) != null ? u : a.select,
|
|
25
|
+
search: (c = a.defaultSearch) != null ? c : a.search,
|
|
26
|
+
sort: (i = a.defaultSort) != null ? i : a.sort,
|
|
27
|
+
take: (h = a.defaultTake) != null ? h : a.take,
|
|
28
|
+
skip: (g = a.defaultSkip) != null ? g : a.skip,
|
|
29
|
+
group: (s = a.defaultGroup) != null ? s : a.group,
|
|
30
|
+
detailExpand: (r = a.defaultDetailExpand) != null ? r : a.detailExpand,
|
|
31
31
|
groupExpand: (f = a.defaultGroupExpand) != null ? f : a.groupExpand,
|
|
32
|
-
columnsState: (
|
|
33
|
-
|
|
32
|
+
columnsState: (v = a.defaultColumnsState) != null ? v : a.columnsState,
|
|
33
|
+
pinnedTopRows: (x = a.defaultPinnedTopRows) != null ? x : a.pinnedTopRows,
|
|
34
|
+
pinnedBottomRows: (S = a.defaultPinnedBottomRows) != null ? S : a.pinnedBottomRows
|
|
35
|
+
}), w = (e) => {
|
|
34
36
|
t.value = {
|
|
35
37
|
...t.value,
|
|
36
38
|
...e.data
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
t.value.filter = e.filter,
|
|
39
|
+
}, n("datastatechange", e);
|
|
40
|
+
}, m = l(() => a.filter || t.value.filter || null), E = (e) => {
|
|
41
|
+
t.value.filter = e.filter, n("filterchange", e);
|
|
40
42
|
};
|
|
41
|
-
|
|
43
|
+
o(() => a.filter, (e) => {
|
|
42
44
|
t.value.filter = e;
|
|
43
45
|
});
|
|
44
|
-
const k =
|
|
45
|
-
t.value.search = e.search, t.value.skip = 0,
|
|
46
|
+
const k = l(() => a.search || t.value.search || null), R = (e) => {
|
|
47
|
+
t.value.search = e.search, t.value.skip = 0, n("searchchange", e);
|
|
46
48
|
};
|
|
47
|
-
|
|
49
|
+
o(() => a.search, (e) => {
|
|
48
50
|
t.value.search = e;
|
|
49
51
|
});
|
|
50
|
-
const
|
|
51
|
-
t.value.select = e.select,
|
|
52
|
-
},
|
|
53
|
-
t.value.select = e.select,
|
|
54
|
-
},
|
|
55
|
-
t.value.sort = e.sort,
|
|
52
|
+
const p = l(() => a.select || t.value.select || null), C = (e) => {
|
|
53
|
+
t.value.select = e.select, n("selectionchange", e);
|
|
54
|
+
}, T = (e) => {
|
|
55
|
+
t.value.select = e.select, n("headerselectionchange", e);
|
|
56
|
+
}, B = l(() => a.sort || t.value.sort || []), P = (e) => {
|
|
57
|
+
t.value.sort = e.sort, n("sortchange", e);
|
|
56
58
|
};
|
|
57
|
-
|
|
59
|
+
o(() => a.sort, (e) => {
|
|
58
60
|
t.value.sort = e;
|
|
59
61
|
});
|
|
60
|
-
const
|
|
61
|
-
t.value.skip = e.page.skip, t.value.take = e.page.take,
|
|
62
|
+
const G = l(() => a.skip || t.value.skip), D = l(() => a.take || t.value.take), K = (e) => {
|
|
63
|
+
t.value.skip = e.page.skip, t.value.take = e.page.take, n("pagechange", e);
|
|
62
64
|
};
|
|
63
|
-
|
|
65
|
+
o(() => a.skip, (e) => {
|
|
64
66
|
t.value.skip = e;
|
|
65
|
-
}),
|
|
67
|
+
}), o(() => a.take, (e) => {
|
|
66
68
|
t.value.take = e;
|
|
67
69
|
});
|
|
68
|
-
const
|
|
69
|
-
t.value.group = e.group,
|
|
70
|
+
const F = l(() => a.group || t.value.group || []), y = (e) => {
|
|
71
|
+
t.value.group = e.group, n("groupchange", e);
|
|
70
72
|
};
|
|
71
|
-
|
|
73
|
+
o(() => a.group, (e) => {
|
|
72
74
|
t.value.group = e;
|
|
73
75
|
});
|
|
74
|
-
const
|
|
75
|
-
t.value.detailExpand = e.detailExpand,
|
|
76
|
+
const A = l(() => a.detailExpand || t.value.detailExpand || {}), H = (e) => {
|
|
77
|
+
t.value.detailExpand = e.detailExpand, n("detailexpandchange", e);
|
|
76
78
|
};
|
|
77
|
-
|
|
79
|
+
o(() => a.detailExpand, (e) => {
|
|
78
80
|
t.value.detailExpand = e;
|
|
79
81
|
});
|
|
80
|
-
const
|
|
81
|
-
t.value.groupExpand = e.groupExpand,
|
|
82
|
+
const V = l(() => a.groupExpand || t.value.groupExpand || []), b = (e) => {
|
|
83
|
+
t.value.groupExpand = e.groupExpand, n("groupexpandchange", e);
|
|
82
84
|
};
|
|
83
|
-
|
|
85
|
+
o(() => a.groupExpand, (e) => {
|
|
84
86
|
t.value.groupExpand = e;
|
|
85
87
|
});
|
|
86
|
-
const
|
|
87
|
-
t.value.columnsState = e.columnsState,
|
|
88
|
+
const j = l(() => a.columnsState || t.value.columnsState || []), q = (e) => {
|
|
89
|
+
t.value.columnsState = e.columnsState, n("columnsstatechange", e);
|
|
88
90
|
};
|
|
89
|
-
|
|
91
|
+
o(() => a.columnsState, (e) => {
|
|
90
92
|
t.value.columnsState = e;
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
});
|
|
94
|
+
const z = l(() => a.pinnedTopRows || t.value.pinnedTopRows || []), I = l(() => a.pinnedBottomRows || t.value.pinnedBottomRows || []), J = (e) => {
|
|
95
|
+
t.value.pinnedTopRows = e.pinnedTopRows, t.value.pinnedBottomRows = e.pinnedBottomRows, n("rowpinchange", e);
|
|
96
|
+
};
|
|
97
|
+
o(() => a.pinnedTopRows, (e) => {
|
|
98
|
+
t.value.pinnedTopRows = e;
|
|
99
|
+
}), o(() => a.pinnedBottomRows, (e) => {
|
|
100
|
+
t.value.pinnedBottomRows = e;
|
|
101
|
+
}), N(O, {
|
|
102
|
+
sort: B,
|
|
103
|
+
sortchange: P,
|
|
104
|
+
filter: m,
|
|
95
105
|
filterchange: E,
|
|
96
106
|
search: k,
|
|
97
|
-
searchchange:
|
|
98
|
-
skip:
|
|
99
|
-
take:
|
|
100
|
-
pagechange:
|
|
101
|
-
select:
|
|
102
|
-
selectionchange:
|
|
103
|
-
headerselectionchange:
|
|
104
|
-
group:
|
|
105
|
-
groupchange:
|
|
106
|
-
detailExpand:
|
|
107
|
-
detailexpandchange:
|
|
108
|
-
groupExpand:
|
|
109
|
-
groupexpandchange:
|
|
110
|
-
columnsState:
|
|
111
|
-
columnsstatechange:
|
|
112
|
-
datastatechange:
|
|
107
|
+
searchchange: R,
|
|
108
|
+
skip: G,
|
|
109
|
+
take: D,
|
|
110
|
+
pagechange: K,
|
|
111
|
+
select: p,
|
|
112
|
+
selectionchange: C,
|
|
113
|
+
headerselectionchange: T,
|
|
114
|
+
group: F,
|
|
115
|
+
groupchange: y,
|
|
116
|
+
detailExpand: A,
|
|
117
|
+
detailexpandchange: H,
|
|
118
|
+
groupExpand: V,
|
|
119
|
+
groupexpandchange: b,
|
|
120
|
+
columnsState: j,
|
|
121
|
+
columnsstatechange: q,
|
|
122
|
+
datastatechange: w,
|
|
123
|
+
pinnedTopRows: z,
|
|
124
|
+
pinnedBottomRows: I,
|
|
125
|
+
rowpinchange: J
|
|
113
126
|
});
|
|
114
127
|
},
|
|
115
128
|
render() {
|
|
116
|
-
return
|
|
129
|
+
return U(this);
|
|
117
130
|
}
|
|
118
131
|
});
|
|
119
132
|
export {
|
|
120
|
-
|
|
133
|
+
_ as GridStateProvider
|
|
121
134
|
};
|
package/RootGrid.d.ts
CHANGED
|
@@ -102,6 +102,11 @@ export declare const RootGrid: import('vue').DefineComponent<import('vue').Extra
|
|
|
102
102
|
};
|
|
103
103
|
loader: import('vue').PropType<string | Object | Function>;
|
|
104
104
|
lockGroups: import('vue').PropType<boolean>;
|
|
105
|
+
pinnable: import('vue').PropType<boolean>;
|
|
106
|
+
defaultPinnedTopRows: import('vue').PropType<any[]>;
|
|
107
|
+
defaultPinnedBottomRows: import('vue').PropType<any[]>;
|
|
108
|
+
pinnedTopRows: import('vue').PropType<any[]>;
|
|
109
|
+
pinnedBottomRows: import('vue').PropType<any[]>;
|
|
105
110
|
defaultFilter: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
|
106
111
|
filter: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
|
107
112
|
defaultSearch: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
|
@@ -310,6 +315,11 @@ export declare const RootGrid: import('vue').DefineComponent<import('vue').Extra
|
|
|
310
315
|
};
|
|
311
316
|
loader: import('vue').PropType<string | Object | Function>;
|
|
312
317
|
lockGroups: import('vue').PropType<boolean>;
|
|
318
|
+
pinnable: import('vue').PropType<boolean>;
|
|
319
|
+
defaultPinnedTopRows: import('vue').PropType<any[]>;
|
|
320
|
+
defaultPinnedBottomRows: import('vue').PropType<any[]>;
|
|
321
|
+
pinnedTopRows: import('vue').PropType<any[]>;
|
|
322
|
+
pinnedBottomRows: import('vue').PropType<any[]>;
|
|
313
323
|
defaultFilter: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
|
314
324
|
filter: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
|
315
325
|
defaultSearch: import('vue').PropType<import('@progress/kendo-data-query').CompositeFilterDescriptor>;
|
package/cells/GridCell.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare const GridCell: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
54
|
value?: any;
|
|
55
55
|
}) => void>;
|
|
56
56
|
onSelectionchange: PropType<(event: any, dataItem: any) => void>;
|
|
57
|
+
cells: PropType<import('../interfaces/GridCellsSettings').GridCellsSettings>;
|
|
57
58
|
}>, {
|
|
58
59
|
kendoIntlService: {};
|
|
59
60
|
}, {}, {
|
|
@@ -119,6 +120,7 @@ declare const GridCell: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
119
120
|
value?: any;
|
|
120
121
|
}) => void>;
|
|
121
122
|
onSelectionchange: PropType<(event: any, dataItem: any) => void>;
|
|
123
|
+
cells: PropType<import('../interfaces/GridCellsSettings').GridCellsSettings>;
|
|
122
124
|
}>> & Readonly<{
|
|
123
125
|
onCellkeydown?: (...args: any[] | unknown[]) => any;
|
|
124
126
|
onCellclick?: (...args: any[] | unknown[]) => any;
|
package/cells/GridCell.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),p=require("../utils/main.js"),h=require("@progress/kendo-vue-intl"),g=require("@progress/kendo-vue-common"),s=require("@progress/kendo-vue-data-tools"),u=r.defineComponent({name:"GridCell",inheritAttrs:!1,emits:{cellclick:null,cellkeydown:null},props:{id:String,field:String,dataItem:Object,format:String,readFormat:String,className:String,columnType:String,colSpan:Number,columnIndex:Number,columnsCount:Number,dataIndex:Number,rowType:String,level:Number,expanded:Boolean,type:String,editor:String,rowSpan:[Number,Object],isSelected:Boolean,isHighlighted:Boolean,ariaColumnIndex:Number,render:[String,Function,Object],isRtl:Boolean,onEdit:Function,onSave:Function,onRemove:Function,onCancel:Function,onChange:Function,onSelectionchange:Function,cells:Object},inject:{kendoIntlService:{default:null},getKeyboardNavigationAttributes:{default:g.noop}},methods:{triggerClick(){this.$emit("cellclick",{dataItem:this.$props.dataItem,field:this.$props.field})},triggerKeydown(e){this.$emit("cellkeydown",{event:e,dataItem:this.$props.dataItem,field:this.$props.field})},triggerEdit(e){this.$emit("edit",e)},triggerAdd(e){this.$emit("add",e)},triggerCancel(e){this.$emit("cancel",e)},triggerSave(e){this.$emit("save",e)},triggerRemove(e){this.$emit("remove",e)}},created(){this._intl=h.provideIntlService(this)},computed:{tdClass(){const{className:e,isSelected:t,isHighlighted:i}=this.$props;return{"k-table-td":!0,"k-selected":t,"k-highlighted":i,[e]:e}}},setup(){return{kendoIntlService:r.inject("kendoIntlService",{})}},render(){var l,a,d;let e=null;const t=this.getKeyboardNavigationAttributes(this.$props.id);let i={},o=null;if(((l=this.$props.rowSpan)==null?void 0:l.count)===null)return null;if(this.$props.rowType==="groupFooter")i={class:this.tdClass,tabindex:t.tabIndex,"data-keyboardnavlevel":t[s.KEYBOARD_NAV_DATA_LEVEL],"data-keyboardnavid":t[s.KEYBOARD_NAV_DATA_ID]},e=r.createVNode("td",r.mergeProps(i,{onKeydown:this.triggerKeydown,onClick:this.triggerClick}),[o]);else if(this.$props.field!==void 0&&this.$props.rowType!=="groupHeader"){const n=p.getNestedValue(this.$props.field,this.$props.dataItem);let c="";n!=null&&(c=this.$props.format?this.$props.type?this._intl.format(this.$props.format,p.parsers[this.$props.type](n,this._intl,this.$props.readFormat)):this._intl.format(this.$props.format,n):n.toString()),i={style:this.$attrs.style,colspan:this.$props.colSpan,rowspan:(d=(a=this.$props.rowSpan)==null?void 0:a.count)!=null?d:void 0,class:this.tdClass,role:"gridcell","aria-colindex":this.$props.ariaColumnIndex,"aria-selected":this.$props.isSelected,"data-grid-col-index":this.$props.columnIndex,tabindex:t.tabIndex,"data-keyboardnavlevel":t[s.KEYBOARD_NAV_DATA_LEVEL],"data-keyboardnavid":t[s.KEYBOARD_NAV_DATA_ID]},o=c,e=r.createVNode("td",r.mergeProps(i,{onKeydown:this.triggerKeydown,onClick:this.triggerClick}),[o])}return g.getTemplate.call(this,{h:r.h,template:this.$props.render,defaultRendering:e,additionalProps:{...this.$props,tdProps:i},additionalListeners:{click:this.triggerClick,keydown:this.triggerKeydown,edit:this.triggerEdit,add:this.triggerAdd,cancel:this.triggerCancel,save:this.triggerSave,remove:this.triggerRemove},defaultSlots:o,swapDefaultSlots:!0})}});exports.GridCell=u;
|
package/cells/GridCell.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
|
|
9
|
-
import { getNestedValue as
|
|
10
|
-
import { provideIntlService as
|
|
11
|
-
import { noop as
|
|
12
|
-
import { KEYBOARD_NAV_DATA_ID as
|
|
13
|
-
const
|
|
8
|
+
import { defineComponent as h, createVNode as d, mergeProps as p, h as m, inject as u } from "vue";
|
|
9
|
+
import { getNestedValue as f, parsers as $ } from "../utils/main.mjs";
|
|
10
|
+
import { provideIntlService as S } from "@progress/kendo-vue-intl";
|
|
11
|
+
import { noop as v, getTemplate as b } from "@progress/kendo-vue-common";
|
|
12
|
+
import { KEYBOARD_NAV_DATA_ID as c, KEYBOARD_NAV_DATA_LEVEL as g } from "@progress/kendo-vue-data-tools";
|
|
13
|
+
const A = /* @__PURE__ */ h({
|
|
14
14
|
name: "GridCell",
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
emits: {
|
|
@@ -45,14 +45,15 @@ const I = /* @__PURE__ */ c({
|
|
|
45
45
|
onRemove: Function,
|
|
46
46
|
onCancel: Function,
|
|
47
47
|
onChange: Function,
|
|
48
|
-
onSelectionchange: Function
|
|
48
|
+
onSelectionchange: Function,
|
|
49
|
+
cells: Object
|
|
49
50
|
},
|
|
50
51
|
inject: {
|
|
51
52
|
kendoIntlService: {
|
|
52
53
|
default: null
|
|
53
54
|
},
|
|
54
55
|
getKeyboardNavigationAttributes: {
|
|
55
|
-
default:
|
|
56
|
+
default: v
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
methods: {
|
|
@@ -86,7 +87,7 @@ const I = /* @__PURE__ */ c({
|
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
created() {
|
|
89
|
-
this._intl =
|
|
90
|
+
this._intl = S(this);
|
|
90
91
|
},
|
|
91
92
|
computed: {
|
|
92
93
|
tdClass() {
|
|
@@ -105,46 +106,48 @@ const I = /* @__PURE__ */ c({
|
|
|
105
106
|
},
|
|
106
107
|
setup() {
|
|
107
108
|
return {
|
|
108
|
-
kendoIntlService:
|
|
109
|
+
kendoIntlService: u("kendoIntlService", {})
|
|
109
110
|
};
|
|
110
111
|
},
|
|
111
112
|
render() {
|
|
112
|
-
var
|
|
113
|
+
var o, s, l;
|
|
113
114
|
let e = null;
|
|
114
115
|
const t = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
115
|
-
let i = {};
|
|
116
|
-
if (((
|
|
116
|
+
let i = {}, n = null;
|
|
117
|
+
if (((o = this.$props.rowSpan) == null ? void 0 : o.count) === null)
|
|
117
118
|
return null;
|
|
118
119
|
if (this.$props.rowType === "groupFooter")
|
|
119
120
|
i = {
|
|
120
121
|
class: this.tdClass,
|
|
121
|
-
onKeydown: this.triggerKeydown,
|
|
122
|
-
onClick: this.triggerClick,
|
|
123
122
|
tabindex: t.tabIndex,
|
|
124
|
-
"data-keyboardnavlevel": t[
|
|
125
|
-
"data-keyboardnavid": t[
|
|
126
|
-
}, e = d("td", i,
|
|
123
|
+
"data-keyboardnavlevel": t[g],
|
|
124
|
+
"data-keyboardnavid": t[c]
|
|
125
|
+
}, e = d("td", p(i, {
|
|
126
|
+
onKeydown: this.triggerKeydown,
|
|
127
|
+
onClick: this.triggerClick
|
|
128
|
+
}), [n]);
|
|
127
129
|
else if (this.$props.field !== void 0 && this.$props.rowType !== "groupHeader") {
|
|
128
|
-
const r =
|
|
130
|
+
const r = f(this.$props.field, this.$props.dataItem);
|
|
129
131
|
let a = "";
|
|
130
|
-
r != null && (a = this.$props.format ? this.$props.type ? this._intl.format(this.$props.format,
|
|
132
|
+
r != null && (a = this.$props.format ? this.$props.type ? this._intl.format(this.$props.format, $[this.$props.type](r, this._intl, this.$props.readFormat)) : this._intl.format(this.$props.format, r) : r.toString()), i = {
|
|
131
133
|
style: this.$attrs.style,
|
|
132
134
|
colspan: this.$props.colSpan,
|
|
133
|
-
rowspan: (
|
|
135
|
+
rowspan: (l = (s = this.$props.rowSpan) == null ? void 0 : s.count) != null ? l : void 0,
|
|
134
136
|
class: this.tdClass,
|
|
135
|
-
onKeydown: this.triggerKeydown,
|
|
136
|
-
onClick: this.triggerClick,
|
|
137
137
|
role: "gridcell",
|
|
138
138
|
"aria-colindex": this.$props.ariaColumnIndex,
|
|
139
139
|
"aria-selected": this.$props.isSelected,
|
|
140
140
|
"data-grid-col-index": this.$props.columnIndex,
|
|
141
141
|
tabindex: t.tabIndex,
|
|
142
|
-
"data-keyboardnavlevel": t[
|
|
143
|
-
"data-keyboardnavid": t[
|
|
144
|
-
}, e = d("td", i,
|
|
142
|
+
"data-keyboardnavlevel": t[g],
|
|
143
|
+
"data-keyboardnavid": t[c]
|
|
144
|
+
}, n = a, e = d("td", p(i, {
|
|
145
|
+
onKeydown: this.triggerKeydown,
|
|
146
|
+
onClick: this.triggerClick
|
|
147
|
+
}), [n]);
|
|
145
148
|
}
|
|
146
|
-
return
|
|
147
|
-
h:
|
|
149
|
+
return b.call(this, {
|
|
150
|
+
h: m,
|
|
148
151
|
template: this.$props.render,
|
|
149
152
|
defaultRendering: e,
|
|
150
153
|
additionalProps: {
|
|
@@ -159,10 +162,12 @@ const I = /* @__PURE__ */ c({
|
|
|
159
162
|
cancel: this.triggerCancel,
|
|
160
163
|
save: this.triggerSave,
|
|
161
164
|
remove: this.triggerRemove
|
|
162
|
-
}
|
|
165
|
+
},
|
|
166
|
+
defaultSlots: n,
|
|
167
|
+
swapDefaultSlots: !0
|
|
163
168
|
});
|
|
164
169
|
}
|
|
165
170
|
});
|
|
166
171
|
export {
|
|
167
|
-
|
|
172
|
+
A as GridCell
|
|
168
173
|
};
|
package/cells/GridDetailCell.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("@progress/kendo-vue-common"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("@progress/kendo-vue-common"),o=require("@progress/kendo-vue-data-tools"),b=e.defineComponent({props:{colSpan:Number,ariaColIndex:Number,dataItem:[Object,String,Number],dataIndex:Number,detail:[String,Function,Object],id:String},inject:{getKeyboardNavigationAttributes:{default:n.noop}},setup(){return{kendoIntlService:e.inject("kendoIntlService",{})}},render(){const{colSpan:a,ariaColIndex:r,dataItem:d,dataIndex:i,id:l}=this.$props,t=this.getKeyboardNavigationAttributes(l),c={class:"k-table-td k-detail-cell",colspan:a,"aria-colindex":r,role:"gridcell",tabindex:t.tabIndex,"data-keyboardnavlevel":t[o.KEYBOARD_NAV_DATA_LEVEL],"data-keyboardnavid":t[o.KEYBOARD_NAV_DATA_ID]},s=function(u){return n.getTemplate.call(this,{h:e.h,template:this.$props.detail,additionalProps:u})}.call(this,{dataItem:d,dataIndex:i});return e.createVNode("td",c,[s])}});exports.GridDetailCell=b;
|
package/cells/GridDetailCell.mjs
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
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 { noop as
|
|
10
|
-
import { KEYBOARD_NAV_DATA_ID as
|
|
11
|
-
const
|
|
8
|
+
import { defineComponent as c, createVNode as s, inject as p, h as m } from "vue";
|
|
9
|
+
import { noop as b, getTemplate as u } from "@progress/kendo-vue-common";
|
|
10
|
+
import { KEYBOARD_NAV_DATA_ID as I, KEYBOARD_NAV_DATA_LEVEL as A } from "@progress/kendo-vue-data-tools";
|
|
11
|
+
const S = /* @__PURE__ */ c({
|
|
12
12
|
props: {
|
|
13
13
|
colSpan: Number,
|
|
14
14
|
ariaColIndex: Number,
|
|
@@ -19,12 +19,12 @@ const x = /* @__PURE__ */ l({
|
|
|
19
19
|
},
|
|
20
20
|
inject: {
|
|
21
21
|
getKeyboardNavigationAttributes: {
|
|
22
|
-
default:
|
|
22
|
+
default: b
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup() {
|
|
26
26
|
return {
|
|
27
|
-
kendoIntlService:
|
|
27
|
+
kendoIntlService: p("kendoIntlService", {})
|
|
28
28
|
};
|
|
29
29
|
},
|
|
30
30
|
render() {
|
|
@@ -33,28 +33,28 @@ const x = /* @__PURE__ */ l({
|
|
|
33
33
|
ariaColIndex: a,
|
|
34
34
|
dataItem: n,
|
|
35
35
|
dataIndex: r,
|
|
36
|
-
id:
|
|
37
|
-
} = this.$props, t = this.getKeyboardNavigationAttributes(
|
|
38
|
-
return b.call(this, {
|
|
39
|
-
h: p,
|
|
40
|
-
template: this.$props.detail,
|
|
41
|
-
additionalProps: o
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
return c("td", {
|
|
36
|
+
id: d
|
|
37
|
+
} = this.$props, t = this.getKeyboardNavigationAttributes(d), o = {
|
|
45
38
|
class: "k-table-td k-detail-cell",
|
|
46
39
|
colspan: e,
|
|
47
40
|
"aria-colindex": a,
|
|
48
41
|
role: "gridcell",
|
|
49
42
|
tabindex: t.tabIndex,
|
|
50
|
-
"data-keyboardnavlevel": t[
|
|
51
|
-
"data-keyboardnavid": t[
|
|
52
|
-
},
|
|
43
|
+
"data-keyboardnavlevel": t[A],
|
|
44
|
+
"data-keyboardnavid": t[I]
|
|
45
|
+
}, i = function(l) {
|
|
46
|
+
return u.call(this, {
|
|
47
|
+
h: m,
|
|
48
|
+
template: this.$props.detail,
|
|
49
|
+
additionalProps: l
|
|
50
|
+
});
|
|
51
|
+
}.call(this, {
|
|
53
52
|
dataItem: n,
|
|
54
53
|
dataIndex: r
|
|
55
|
-
})
|
|
54
|
+
});
|
|
55
|
+
return s("td", o, [i]);
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
S as GridDetailCell
|
|
60
60
|
};
|
package/cells/GridFilterCell.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue")
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),b=require("@progress/kendo-vue-buttons"),n=require("../messages/main.js"),d=require("@progress/kendo-vue-dropdowns"),h=require("@progress/kendo-vue-inputs"),S=require("@progress/kendo-vue-dateinputs"),g=require("@progress/kendo-svg-icons"),m=require("@progress/kendo-vue-intl"),c=require("../filterCommon.js"),$=require("@progress/kendo-vue-common"),k=r.defineComponent({name:"KendoGridFilterCell",inheritAttrs:!1,props:{id:String,grid:Object,field:String,filterType:String,colSpan:Number,title:String,value:[String,Number,Boolean,Date],operator:[String,Function],operators:Array,booleanValues:Array,onChange:Function,render:[String,Function,Object],ariaLabel:String,size:String},inject:{kendoLocalizationService:{default:null},kendoIntlService:{default:null}},methods:{inputChange(e,t){const i=c.cellInputChange(e,t,this.$props);this.triggerChange(i)},operatorChange(e,t){const i=c.cellOperatorChange(e.value.operator,t,this.$props.value);this.triggerChange(i)},boolDropdownChange(e,t){const i=c.cellBoolDropdownChange(e.value.operator,t);this.triggerChange(i)},clear(e){e.preventDefault(),this.triggerChange({value:"",operator:"",event:e})},triggerChange(e){e.field=this.$props.field,this.$emit("change",e)}},setup(){const e=r.inject("kendoIntlService",{}),t=r.inject("kendoLocalizationService",{});return{kendoIntlService:e,kendoLocalizationService:t}},render(){const e=m.provideLocalizationService(this),{size:t}=this.$props,i=this.$props.operators.find(l=>l.operator===this.$props.operator)||null,f=function(){if(this.$props.filterType!=="boolean")return r.createVNode(d.DropDownList,{onChange:this.operatorChange,value:i,size:t,class:"k-dropdown-operator",icon:"filter",svgIcon:g.filterIcon,iconClassName:"filter k-button-icon","data-items":this.$props.operators,textField:"text",title:e.toLanguageString(n.filterChooseOperator,n.messages[n.filterChooseOperator]),popupSettings:{width:"",anchor:""},ariaLabel:this.ariaLabel},null)},C=function(l,a){let s;switch(l){case"numeric":return r.createVNode(h.NumericTextBox,{size:t,value:a,onChange:o=>{this.inputChange(o.value,o.event)},title:this.$props.title,ariaLabel:this.ariaLabel},null);case"date":return r.createVNode(S.DatePicker,{size:t,value:a,onChange:o=>{this.inputChange(o.value,o)},title:this.$props.title,ariaLabel:this.ariaLabel},null);case"boolean":return s=this.$props.booleanValues,r.createVNode(d.DropDownList,{onChange:this.boolDropdownChange,size:t,value:s.find(o=>o.operator===(a!==null?a:"")),"data-items":s,textField:"text",title:this.$props.title,ariaLabel:this.ariaLabel},null);default:return r.createVNode(h.TextBox,{value:a||"",size:t,onInput:o=>{this.inputChange(o.target.value,o)},title:this.$props.title,"aria-label":this.ariaLabel},null)}},p={class:"k-filtercell",style:this.$attrs.style},u=r.createVNode("div",{class:"k-filtercell-wrapper"},[C.call(this,this.$props.filterType,this.$props.value),r.createVNode("div",{class:"k-filtercell-operator"},[f.call(this),r.createTextVNode(" "),r.createVNode(b.Button,{type:"button",size:t,icon:"filter-clear",svgIcon:g.filterClearIcon,class:{"k-disabled":!(!(this.$props.value===null||this.$props.value==="")||this.$props.operator)},title:e.toLanguageString(n.filterClearButton,n.messages[n.filterClearButton]),onClick:this.clear},null)])]),v=r.createVNode("div",p,[u]);return $.getTemplate.call(this,{h:r.h,template:this.$props.render,defaultRendering:v,additionalProps:{...this.$props,tdProps:p},additionalListeners:{change:this.triggerChange},defaultSlots:u,swapDefaultSlots:!0})}});exports.GridFilterCell=k;
|