@progress/kendo-vue-grid 8.1.0-develop.6 → 8.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.d.ts +2 -0
- package/Grid.js +1 -1
- package/Grid.mjs +2 -1
- package/GridState.d.ts +2 -0
- package/RootGrid.d.ts +19 -0
- package/RootGrid.js +1 -1
- package/RootGrid.mjs +23 -8
- package/common.d.ts +1 -0
- package/common.js +1 -1
- package/common.mjs +1 -0
- package/components/PinnedRowsTable.d.ts +0 -1
- package/components/PinnedRowsTable.js +1 -1
- package/components/PinnedRowsTable.mjs +31 -37
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/interfaces/GridProps.d.ts +14 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/rows/GridRow.d.ts +2 -0
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +16 -12
|
@@ -18,6 +18,7 @@ import { PopupAnimation } from '@progress/kendo-vue-popup';
|
|
|
18
18
|
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
19
19
|
import { GridColumnState } from './GridColumnState';
|
|
20
20
|
import { GridRowSpannableSettings } from './GridRowSpannableSettings';
|
|
21
|
+
import { GridRowsSettings } from './GridRowsSettings';
|
|
21
22
|
import { GridSelectableSettings } from './GridSelectableSettings';
|
|
22
23
|
/**
|
|
23
24
|
* Represents the props of the [native Vue Grid component by Kendo UI]({% slug overview_grid %}).
|
|
@@ -94,6 +95,19 @@ export interface GridProps {
|
|
|
94
95
|
* ```
|
|
95
96
|
*/
|
|
96
97
|
cells?: GridCellsSettings;
|
|
98
|
+
/**
|
|
99
|
+
* Defines a set of custom row components that the Grid will render instead of the default rows.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```vue
|
|
103
|
+
* <Grid
|
|
104
|
+
* :rows="{
|
|
105
|
+
* pinnedData: CustomPinnedRow
|
|
106
|
+
* }"
|
|
107
|
+
* />
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
rows?: GridRowsSettings;
|
|
97
111
|
/**
|
|
98
112
|
* Enables the sorting for the columns with their `field` option set
|
|
99
113
|
* ([see example]({% slug sorting_grid %})).
|
package/package-metadata.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={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1775028931,version:"8.1.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "8.1.0-develop.
|
|
13
|
+
publishDate: 1775028931,
|
|
14
|
+
version: "8.1.0-develop.7",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-grid",
|
|
3
|
-
"version": "8.1.0-develop.
|
|
3
|
+
"version": "8.1.0-develop.7",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"@progress/kendo-data-query": "^1.7.0",
|
|
28
28
|
"@progress/kendo-drawing": "^1.21.1",
|
|
29
29
|
"@progress/kendo-licensing": "^1.7.2",
|
|
30
|
-
"@progress/kendo-vue-animation": "8.1.0-develop.
|
|
31
|
-
"@progress/kendo-vue-buttons": "8.1.0-develop.
|
|
32
|
-
"@progress/kendo-vue-common": "8.1.0-develop.
|
|
33
|
-
"@progress/kendo-vue-data-tools": "8.1.0-develop.
|
|
34
|
-
"@progress/kendo-vue-dateinputs": "8.1.0-develop.
|
|
35
|
-
"@progress/kendo-vue-indicators": "8.1.0-develop.
|
|
36
|
-
"@progress/kendo-vue-dropdowns": "8.1.0-develop.
|
|
37
|
-
"@progress/kendo-vue-inputs": "8.1.0-develop.
|
|
38
|
-
"@progress/kendo-vue-intl": "8.1.0-develop.
|
|
39
|
-
"@progress/kendo-vue-popup": "8.1.0-develop.
|
|
40
|
-
"@progress/kendo-vue-layout": "8.1.0-develop.
|
|
30
|
+
"@progress/kendo-vue-animation": "8.1.0-develop.7",
|
|
31
|
+
"@progress/kendo-vue-buttons": "8.1.0-develop.7",
|
|
32
|
+
"@progress/kendo-vue-common": "8.1.0-develop.7",
|
|
33
|
+
"@progress/kendo-vue-data-tools": "8.1.0-develop.7",
|
|
34
|
+
"@progress/kendo-vue-dateinputs": "8.1.0-develop.7",
|
|
35
|
+
"@progress/kendo-vue-indicators": "8.1.0-develop.7",
|
|
36
|
+
"@progress/kendo-vue-dropdowns": "8.1.0-develop.7",
|
|
37
|
+
"@progress/kendo-vue-inputs": "8.1.0-develop.7",
|
|
38
|
+
"@progress/kendo-vue-intl": "8.1.0-develop.7",
|
|
39
|
+
"@progress/kendo-vue-popup": "8.1.0-develop.7",
|
|
40
|
+
"@progress/kendo-vue-layout": "8.1.0-develop.7",
|
|
41
41
|
"@progress/kendo-svg-icons": "^4.4.0",
|
|
42
42
|
"vue": "^3.0.2"
|
|
43
43
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"package": {
|
|
59
59
|
"productName": "Kendo UI for Vue",
|
|
60
60
|
"productCode": "KENDOUIVUE",
|
|
61
|
-
"publishDate":
|
|
61
|
+
"publishDate": 1775028931,
|
|
62
62
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
63
63
|
}
|
|
64
64
|
},
|
package/rows/GridRow.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ declare const GridRow: import('vue').DefineComponent<import('vue').ExtractPropTy
|
|
|
35
35
|
absoluteRowIndex: PropType<number>;
|
|
36
36
|
dataIndex: PropType<number>;
|
|
37
37
|
render: PropType<any>;
|
|
38
|
+
rows: PropType<import('../interfaces/GridRowsSettings').GridRowsSettings>;
|
|
38
39
|
onRowclick: PropType<any>;
|
|
39
40
|
onRowdblclick: PropType<Function>;
|
|
40
41
|
}>, {}, {}, {
|
|
@@ -60,6 +61,7 @@ declare const GridRow: import('vue').DefineComponent<import('vue').ExtractPropTy
|
|
|
60
61
|
absoluteRowIndex: PropType<number>;
|
|
61
62
|
dataIndex: PropType<number>;
|
|
62
63
|
render: PropType<any>;
|
|
64
|
+
rows: PropType<import('../interfaces/GridRowsSettings').GridRowsSettings>;
|
|
63
65
|
onRowclick: PropType<any>;
|
|
64
66
|
onRowdblclick: PropType<Function>;
|
|
65
67
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/rows/GridRow.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 s=require("vue"),n=require("@progress/kendo-vue-common"),l=s.defineComponent({name:"KendoGridRow",props:{rowType:String,isPinned:Boolean,item:Object,isAltRow:Boolean,isHidden:Boolean,isHighlighted:Boolean,onClick:Function,isInEdit:Boolean,isSelected:Boolean,selectedField:String,rowHeight:Number,ariaRowIndex:Number,absoluteRowIndex:Number,dataIndex:Number,render:[String,Function,Object],rows:Object,onRowclick:Function,onRowdblclick:Function},methods:{handleClick(e){this.$emit("rowclick",e)},handleDoubleClick(e){this.$emit("rowdblclick",e)}},computed:{trClass(){const{rowType:e,isAltRow:i,isInEdit:o,isHighlighted:r,isSelected:t,isPinned:d}=this.$props;return n.uGrid.tr({selected:t,highlighted:r,isHeader:e==="groupHeader",isFooter:e==="groupFooter",isMaster:e!=="groupHeader"&&e!=="groupFooter",isAltRow:i,isInEdit:o,isPinned:d})}},render(){const e=n.getDefaultSlots(this),i={onClick:this.handleClick,onDblclick:this.handleDoubleClick,class:this.trClass,style:{height:this.$props.rowHeight?this.$props.rowHeight+"px":"",visibility:this.$props.isHidden?"hidden":""},role:"row","aria-rowindex":this.$props.ariaRowIndex,"absolute-row-index":this.$props.absoluteRowIndex,"data-grid-row-index":this.$props.rowType==="data"?this.$props.dataIndex:void 0},o=s.createVNode("tr",i,[e]),r=this.$props.rowType||"data",t=this.$props.rows;return n.getTemplate.call(this,{h:s.h,template:this.$props.render||(t==null?void 0:t[r]),defaultRendering:o,additionalProps:{...this.$props,dataItem:this.$props.item.dataItem,trProps:i,defaultSlots:e},additionalListeners:{click:this.handleClick,dblclick:this.handleDoubleClick},defaultSlots:e,swapDefaultSlots:!0})}});exports.GridRow=l;
|
package/rows/GridRow.mjs
CHANGED
|
@@ -25,6 +25,7 @@ const w = /* @__PURE__ */ n({
|
|
|
25
25
|
absoluteRowIndex: Number,
|
|
26
26
|
dataIndex: Number,
|
|
27
27
|
render: [String, Function, Object],
|
|
28
|
+
rows: Object,
|
|
28
29
|
onRowclick: Function,
|
|
29
30
|
onRowdblclick: Function
|
|
30
31
|
},
|
|
@@ -41,25 +42,25 @@ const w = /* @__PURE__ */ n({
|
|
|
41
42
|
const {
|
|
42
43
|
rowType: e,
|
|
43
44
|
isAltRow: i,
|
|
44
|
-
isInEdit:
|
|
45
|
-
isHighlighted:
|
|
46
|
-
isSelected:
|
|
45
|
+
isInEdit: o,
|
|
46
|
+
isHighlighted: r,
|
|
47
|
+
isSelected: t,
|
|
47
48
|
isPinned: s
|
|
48
49
|
} = this.$props;
|
|
49
50
|
return h.tr({
|
|
50
|
-
selected:
|
|
51
|
-
highlighted:
|
|
51
|
+
selected: t,
|
|
52
|
+
highlighted: r,
|
|
52
53
|
isHeader: e === "groupHeader",
|
|
53
54
|
isFooter: e === "groupFooter",
|
|
54
55
|
isMaster: e !== "groupHeader" && e !== "groupFooter",
|
|
55
56
|
isAltRow: i,
|
|
56
|
-
isInEdit:
|
|
57
|
+
isInEdit: o,
|
|
57
58
|
isPinned: s
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
render() {
|
|
62
|
-
const e = a(this), i =
|
|
63
|
+
const e = a(this), i = {
|
|
63
64
|
onClick: this.handleClick,
|
|
64
65
|
onDblclick: this.handleDoubleClick,
|
|
65
66
|
class: this.trClass,
|
|
@@ -71,17 +72,20 @@ const w = /* @__PURE__ */ n({
|
|
|
71
72
|
"aria-rowindex": this.$props.ariaRowIndex,
|
|
72
73
|
"absolute-row-index": this.$props.absoluteRowIndex,
|
|
73
74
|
"data-grid-row-index": this.$props.rowType === "data" ? this.$props.dataIndex : void 0
|
|
74
|
-
}, [e]);
|
|
75
|
+
}, o = d("tr", i, [e]), r = this.$props.rowType || "data", t = this.$props.rows;
|
|
75
76
|
return p.call(this, {
|
|
76
77
|
h: l,
|
|
77
|
-
template: this.$props.render,
|
|
78
|
-
defaultRendering:
|
|
78
|
+
template: this.$props.render || (t == null ? void 0 : t[r]),
|
|
79
|
+
defaultRendering: o,
|
|
79
80
|
additionalProps: {
|
|
80
81
|
...this.$props,
|
|
81
|
-
dataItem: this.$props.item.dataItem
|
|
82
|
+
dataItem: this.$props.item.dataItem,
|
|
83
|
+
trProps: i,
|
|
84
|
+
defaultSlots: e
|
|
82
85
|
},
|
|
83
86
|
additionalListeners: {
|
|
84
|
-
click: this.handleClick
|
|
87
|
+
click: this.handleClick,
|
|
88
|
+
dblclick: this.handleDoubleClick
|
|
85
89
|
},
|
|
86
90
|
defaultSlots: e,
|
|
87
91
|
swapDefaultSlots: !0
|