@progress/kendo-vue-grid 3.3.2-dev.202205231324 → 3.3.3-dev.202205301219
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/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/dist/es/Grid.js +33 -11
- package/dist/es/interfaces/GridProps.d.ts +7 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/Grid.js +33 -10
- package/dist/npm/interfaces/GridProps.d.ts +7 -3
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +15 -13
package/dist/es/Grid.js
CHANGED
|
@@ -49,8 +49,9 @@ var allVue = Vue;
|
|
|
49
49
|
var gh = allVue.h;
|
|
50
50
|
var ref = allVue.ref;
|
|
51
51
|
var markRaw = allVue.markRaw;
|
|
52
|
-
import { templateRendering, hasListener, getListeners, getDefaultSlots, guid, getter, isRtl, validatePackage, getTemplate, canUseDOM } from '@progress/kendo-vue-common';
|
|
52
|
+
import { templateRendering, hasListener, getListeners, getDefaultSlots, guid, getter, isRtl, validatePackage, getTemplate, canUseDOM, templateDefinition } from '@progress/kendo-vue-common';
|
|
53
53
|
import { tableColumnsVirtualization, Pager, normalize, tableKeyboardNavigationTools as navigationTools, TableKeyboardNavigationProvider } from '@progress/kendo-vue-data-tools';
|
|
54
|
+
import { Loader } from '@progress/kendo-vue-indicators';
|
|
54
55
|
import { GridNav } from './GridNav';
|
|
55
56
|
import { GridSelectionCell } from './cells/GridSelectionCell';
|
|
56
57
|
import { GridHierarchyCell } from './cells/GridHierarchyCell';
|
|
@@ -105,8 +106,9 @@ var GridVue2 = {
|
|
|
105
106
|
sort: Array,
|
|
106
107
|
filterable: Boolean,
|
|
107
108
|
filterOperators: Object,
|
|
108
|
-
filterCellRender:
|
|
109
|
-
headerCellRender:
|
|
109
|
+
filterCellRender: templateDefinition,
|
|
110
|
+
headerCellRender: templateDefinition,
|
|
111
|
+
loader: [String, Function, Object, Boolean],
|
|
110
112
|
filter: Object,
|
|
111
113
|
pageable: [Boolean, Object],
|
|
112
114
|
pageSize: Number,
|
|
@@ -115,8 +117,8 @@ var GridVue2 = {
|
|
|
115
117
|
take: Number,
|
|
116
118
|
expandField: String,
|
|
117
119
|
selectedField: String,
|
|
118
|
-
cellRender:
|
|
119
|
-
rowRender:
|
|
120
|
+
cellRender: templateDefinition,
|
|
121
|
+
rowRender: templateDefinition,
|
|
120
122
|
resizable: Boolean,
|
|
121
123
|
reorderable: Boolean,
|
|
122
124
|
group: Array,
|
|
@@ -126,9 +128,9 @@ var GridVue2 = {
|
|
|
126
128
|
type: String,
|
|
127
129
|
default: 'scrollable'
|
|
128
130
|
},
|
|
129
|
-
pager:
|
|
131
|
+
pager: templateDefinition,
|
|
130
132
|
rowHeight: Number,
|
|
131
|
-
detail:
|
|
133
|
+
detail: templateDefinition,
|
|
132
134
|
columnMenu: [Boolean, String, Function, Object],
|
|
133
135
|
columnMenuAnimate: {
|
|
134
136
|
type: [Boolean, Object],
|
|
@@ -1796,6 +1798,26 @@ var GridVue2 = {
|
|
|
1796
1798
|
);
|
|
1797
1799
|
}
|
|
1798
1800
|
|
|
1801
|
+
var loaderTemplate = templateRendering.call(this, this.$props.loader, getListeners.call(this));
|
|
1802
|
+
var defaultLoaderRendering = this.$props.loader && h("div", {
|
|
1803
|
+
"class": "k-loader-container k-loader-container-md k-loader-top"
|
|
1804
|
+
}, [h("div", {
|
|
1805
|
+
"class": "k-loader-container-overlay k-overlay-light"
|
|
1806
|
+
}), h("div", {
|
|
1807
|
+
"class": "k-loader-container-inner"
|
|
1808
|
+
}, [h(Loader, {
|
|
1809
|
+
size: 'large',
|
|
1810
|
+
attrs: this.v3 ? undefined : {
|
|
1811
|
+
size: 'large',
|
|
1812
|
+
type: 'infinite-spinner'
|
|
1813
|
+
},
|
|
1814
|
+
type: 'infinite-spinner'
|
|
1815
|
+
})])]);
|
|
1816
|
+
var loader = getTemplate.call(this, {
|
|
1817
|
+
h: h,
|
|
1818
|
+
template: loaderTemplate,
|
|
1819
|
+
defaultRendering: defaultLoaderRendering
|
|
1820
|
+
});
|
|
1799
1821
|
return (// @ts-ignore function children
|
|
1800
1822
|
h(TableKeyboardNavigationProvider, {
|
|
1801
1823
|
ref: 'navRef',
|
|
@@ -1874,7 +1896,7 @@ var GridVue2 = {
|
|
|
1874
1896
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
1875
1897
|
'height': _this3.vs.containerHeight + 'px'
|
|
1876
1898
|
} : {}
|
|
1877
|
-
})])])]), footer, pager, clues];
|
|
1899
|
+
})])]), loader]), footer, pager, clues];
|
|
1878
1900
|
} : [toolbar, groupingPanel, header, h("div", {
|
|
1879
1901
|
"class": "k-grid-container",
|
|
1880
1902
|
role: "presentation",
|
|
@@ -1929,7 +1951,7 @@ var GridVue2 = {
|
|
|
1929
1951
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
1930
1952
|
'height': _this3.vs.containerHeight + 'px'
|
|
1931
1953
|
} : {}
|
|
1932
|
-
})])])]), footer, pager, clues])];
|
|
1954
|
+
})])]), loader]), footer, pager, clues])];
|
|
1933
1955
|
} : [h(GridNav, {
|
|
1934
1956
|
ref: _this3.v3 ? function (el) {
|
|
1935
1957
|
_this.gridNavRef = el;
|
|
@@ -1997,7 +2019,7 @@ var GridVue2 = {
|
|
|
1997
2019
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
1998
2020
|
'height': _this3.vs.containerHeight + 'px'
|
|
1999
2021
|
} : {}
|
|
2000
|
-
})])])]), footer, pager, clues];
|
|
2022
|
+
})])]), loader]), footer, pager, clues];
|
|
2001
2023
|
} : [toolbar, groupingPanel, header, h("div", {
|
|
2002
2024
|
"class": "k-grid-container",
|
|
2003
2025
|
role: "presentation",
|
|
@@ -2052,7 +2074,7 @@ var GridVue2 = {
|
|
|
2052
2074
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
2053
2075
|
'height': _this3.vs.containerHeight + 'px'
|
|
2054
2076
|
} : {}
|
|
2055
|
-
})])])]), footer, pager, clues])])
|
|
2077
|
+
})])]), loader]), footer, pager, clues])])
|
|
2056
2078
|
);
|
|
2057
2079
|
}
|
|
2058
2080
|
};
|
|
@@ -248,12 +248,12 @@ export interface GridProps {
|
|
|
248
248
|
/**
|
|
249
249
|
* Defines the custom rendering of the row. Accepts a Vue component, a `render` function, or a slot name.
|
|
250
250
|
*/
|
|
251
|
-
rowRender?: string | ((h: any, defaultRendering: any | null, dafaultSlots: any, props: any, listeners: any) => any);
|
|
251
|
+
rowRender?: string | boolean | ((h: any, defaultRendering: any | null, dafaultSlots: any, props: any, listeners: any) => any);
|
|
252
252
|
/**
|
|
253
253
|
* Defines the custom rendering of the cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
254
254
|
* ([see example]({% slug groupingaggregates_grid_native %})).
|
|
255
255
|
*/
|
|
256
|
-
cellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | null;
|
|
256
|
+
cellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | null | boolean;
|
|
257
257
|
/**
|
|
258
258
|
* Defines the custom rendering of the filter cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
259
259
|
*/
|
|
@@ -262,10 +262,14 @@ export interface GridProps {
|
|
|
262
262
|
* Defines the custom rendering of the header cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
263
263
|
*/
|
|
264
264
|
headerCellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | any;
|
|
265
|
+
/**
|
|
266
|
+
* Defines if the loader will be shown. Defaults to `false`. Accepts a slot name, a `render` function, or a Vue component.
|
|
267
|
+
*/
|
|
268
|
+
loader?: boolean | Object | Function | string;
|
|
265
269
|
/**
|
|
266
270
|
* Defines the custom rendering of the pager. Accepts a slot name, a `render` function, or a Vue component.
|
|
267
271
|
*/
|
|
268
|
-
pager?: Object | Function | string;
|
|
272
|
+
pager?: Object | Function | string | boolean;
|
|
269
273
|
/**
|
|
270
274
|
* Enables virtualization of the columns. If virtualization is
|
|
271
275
|
* enabled, the columns outside the view are not rendered.
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-grid',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1653912812,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/npm/Grid.js
CHANGED
|
@@ -61,6 +61,8 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
61
61
|
|
|
62
62
|
var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
|
|
63
63
|
|
|
64
|
+
var kendo_vue_indicators_1 = require("@progress/kendo-vue-indicators");
|
|
65
|
+
|
|
64
66
|
var GridNav_1 = require("./GridNav");
|
|
65
67
|
|
|
66
68
|
var GridSelectionCell_1 = require("./cells/GridSelectionCell");
|
|
@@ -141,8 +143,9 @@ var GridVue2 = {
|
|
|
141
143
|
sort: Array,
|
|
142
144
|
filterable: Boolean,
|
|
143
145
|
filterOperators: Object,
|
|
144
|
-
filterCellRender:
|
|
145
|
-
headerCellRender:
|
|
146
|
+
filterCellRender: kendo_vue_common_1.templateDefinition,
|
|
147
|
+
headerCellRender: kendo_vue_common_1.templateDefinition,
|
|
148
|
+
loader: [String, Function, Object, Boolean],
|
|
146
149
|
filter: Object,
|
|
147
150
|
pageable: [Boolean, Object],
|
|
148
151
|
pageSize: Number,
|
|
@@ -151,8 +154,8 @@ var GridVue2 = {
|
|
|
151
154
|
take: Number,
|
|
152
155
|
expandField: String,
|
|
153
156
|
selectedField: String,
|
|
154
|
-
cellRender:
|
|
155
|
-
rowRender:
|
|
157
|
+
cellRender: kendo_vue_common_1.templateDefinition,
|
|
158
|
+
rowRender: kendo_vue_common_1.templateDefinition,
|
|
156
159
|
resizable: Boolean,
|
|
157
160
|
reorderable: Boolean,
|
|
158
161
|
group: Array,
|
|
@@ -162,9 +165,9 @@ var GridVue2 = {
|
|
|
162
165
|
type: String,
|
|
163
166
|
default: 'scrollable'
|
|
164
167
|
},
|
|
165
|
-
pager:
|
|
168
|
+
pager: kendo_vue_common_1.templateDefinition,
|
|
166
169
|
rowHeight: Number,
|
|
167
|
-
detail:
|
|
170
|
+
detail: kendo_vue_common_1.templateDefinition,
|
|
168
171
|
columnMenu: [Boolean, String, Function, Object],
|
|
169
172
|
columnMenuAnimate: {
|
|
170
173
|
type: [Boolean, Object],
|
|
@@ -1832,6 +1835,26 @@ var GridVue2 = {
|
|
|
1832
1835
|
);
|
|
1833
1836
|
}
|
|
1834
1837
|
|
|
1838
|
+
var loaderTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.loader, kendo_vue_common_1.getListeners.call(this));
|
|
1839
|
+
var defaultLoaderRendering = this.$props.loader && h("div", {
|
|
1840
|
+
"class": "k-loader-container k-loader-container-md k-loader-top"
|
|
1841
|
+
}, [h("div", {
|
|
1842
|
+
"class": "k-loader-container-overlay k-overlay-light"
|
|
1843
|
+
}), h("div", {
|
|
1844
|
+
"class": "k-loader-container-inner"
|
|
1845
|
+
}, [h(kendo_vue_indicators_1.Loader, {
|
|
1846
|
+
size: 'large',
|
|
1847
|
+
attrs: this.v3 ? undefined : {
|
|
1848
|
+
size: 'large',
|
|
1849
|
+
type: 'infinite-spinner'
|
|
1850
|
+
},
|
|
1851
|
+
type: 'infinite-spinner'
|
|
1852
|
+
})])]);
|
|
1853
|
+
var loader = kendo_vue_common_1.getTemplate.call(this, {
|
|
1854
|
+
h: h,
|
|
1855
|
+
template: loaderTemplate,
|
|
1856
|
+
defaultRendering: defaultLoaderRendering
|
|
1857
|
+
});
|
|
1835
1858
|
return (// @ts-ignore function children
|
|
1836
1859
|
h(kendo_vue_data_tools_1.TableKeyboardNavigationProvider, {
|
|
1837
1860
|
ref: 'navRef',
|
|
@@ -1910,7 +1933,7 @@ var GridVue2 = {
|
|
|
1910
1933
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
1911
1934
|
'height': _this3.vs.containerHeight + 'px'
|
|
1912
1935
|
} : {}
|
|
1913
|
-
})])])]), footer, pager, clues];
|
|
1936
|
+
})])]), loader]), footer, pager, clues];
|
|
1914
1937
|
} : [toolbar, groupingPanel, header, h("div", {
|
|
1915
1938
|
"class": "k-grid-container",
|
|
1916
1939
|
role: "presentation",
|
|
@@ -1965,7 +1988,7 @@ var GridVue2 = {
|
|
|
1965
1988
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
1966
1989
|
'height': _this3.vs.containerHeight + 'px'
|
|
1967
1990
|
} : {}
|
|
1968
|
-
})])])]), footer, pager, clues])];
|
|
1991
|
+
})])]), loader]), footer, pager, clues])];
|
|
1969
1992
|
} : [h(GridNav_1.GridNav, {
|
|
1970
1993
|
ref: _this3.v3 ? function (el) {
|
|
1971
1994
|
_this.gridNavRef = el;
|
|
@@ -2033,7 +2056,7 @@ var GridVue2 = {
|
|
|
2033
2056
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
2034
2057
|
'height': _this3.vs.containerHeight + 'px'
|
|
2035
2058
|
} : {}
|
|
2036
|
-
})])])]), footer, pager, clues];
|
|
2059
|
+
})])]), loader]), footer, pager, clues];
|
|
2037
2060
|
} : [toolbar, groupingPanel, header, h("div", {
|
|
2038
2061
|
"class": "k-grid-container",
|
|
2039
2062
|
role: "presentation",
|
|
@@ -2088,7 +2111,7 @@ var GridVue2 = {
|
|
|
2088
2111
|
style: _this3.$props.scrollable === 'virtual' ? {
|
|
2089
2112
|
'height': _this3.vs.containerHeight + 'px'
|
|
2090
2113
|
} : {}
|
|
2091
|
-
})])])]), footer, pager, clues])])
|
|
2114
|
+
})])]), loader]), footer, pager, clues])])
|
|
2092
2115
|
);
|
|
2093
2116
|
}
|
|
2094
2117
|
};
|
|
@@ -248,12 +248,12 @@ export interface GridProps {
|
|
|
248
248
|
/**
|
|
249
249
|
* Defines the custom rendering of the row. Accepts a Vue component, a `render` function, or a slot name.
|
|
250
250
|
*/
|
|
251
|
-
rowRender?: string | ((h: any, defaultRendering: any | null, dafaultSlots: any, props: any, listeners: any) => any);
|
|
251
|
+
rowRender?: string | boolean | ((h: any, defaultRendering: any | null, dafaultSlots: any, props: any, listeners: any) => any);
|
|
252
252
|
/**
|
|
253
253
|
* Defines the custom rendering of the cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
254
254
|
* ([see example]({% slug groupingaggregates_grid_native %})).
|
|
255
255
|
*/
|
|
256
|
-
cellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | null;
|
|
256
|
+
cellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | null | boolean;
|
|
257
257
|
/**
|
|
258
258
|
* Defines the custom rendering of the filter cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
259
259
|
*/
|
|
@@ -262,10 +262,14 @@ export interface GridProps {
|
|
|
262
262
|
* Defines the custom rendering of the header cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
263
263
|
*/
|
|
264
264
|
headerCellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | any;
|
|
265
|
+
/**
|
|
266
|
+
* Defines if the loader will be shown. Defaults to `false`. Accepts a slot name, a `render` function, or a Vue component.
|
|
267
|
+
*/
|
|
268
|
+
loader?: boolean | Object | Function | string;
|
|
265
269
|
/**
|
|
266
270
|
* Defines the custom rendering of the pager. Accepts a slot name, a `render` function, or a Vue component.
|
|
267
271
|
*/
|
|
268
|
-
pager?: Object | Function | string;
|
|
272
|
+
pager?: Object | Function | string | boolean;
|
|
269
273
|
/**
|
|
270
274
|
* Enables virtualization of the columns. If virtualization is
|
|
271
275
|
* enabled, the columns outside the view are not rendered.
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-grid',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1653912812,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-grid",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3-dev.202205301219",
|
|
4
4
|
"description": "Kendo UI for Vue Grid package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,29 +28,31 @@
|
|
|
28
28
|
"@progress/kendo-vue-data-tools": "^3.2.0",
|
|
29
29
|
"@progress/kendo-vue-dateinputs": "^3.2.0",
|
|
30
30
|
"@progress/kendo-vue-dropdowns": "^3.2.0",
|
|
31
|
+
"@progress/kendo-vue-indicators": "^3.2.0",
|
|
31
32
|
"@progress/kendo-vue-inputs": "^3.2.0",
|
|
32
33
|
"@progress/kendo-vue-intl": "^3.2.0",
|
|
33
34
|
"@progress/kendo-vue-popup": "^3.2.0",
|
|
34
35
|
"vue": "^2.6.12 || ^3.0.2"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@progress/kendo-vue-common": "3.3.
|
|
38
|
+
"@progress/kendo-vue-common": "3.3.3-dev.202205301219"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@progress/kendo-data-query": "^1.5.4",
|
|
41
42
|
"@progress/kendo-drawing": "^1.9.3",
|
|
42
43
|
"@progress/kendo-licensing": "^1.1.0",
|
|
43
|
-
"@progress/kendo-vue-animation": "3.3.
|
|
44
|
-
"@progress/kendo-vue-buttons": "3.3.
|
|
45
|
-
"@progress/kendo-vue-charts": "3.3.
|
|
46
|
-
"@progress/kendo-vue-data-tools": "3.3.
|
|
47
|
-
"@progress/kendo-vue-dateinputs": "3.3.
|
|
48
|
-
"@progress/kendo-vue-dropdowns": "3.3.
|
|
49
|
-
"@progress/kendo-vue-excel-export": "3.3.
|
|
50
|
-
"@progress/kendo-vue-
|
|
51
|
-
"@progress/kendo-vue-
|
|
52
|
-
"@progress/kendo-vue-
|
|
53
|
-
"@progress/kendo-vue-
|
|
44
|
+
"@progress/kendo-vue-animation": "3.3.3-dev.202205301219",
|
|
45
|
+
"@progress/kendo-vue-buttons": "3.3.3-dev.202205301219",
|
|
46
|
+
"@progress/kendo-vue-charts": "3.3.3-dev.202205301219",
|
|
47
|
+
"@progress/kendo-vue-data-tools": "3.3.3-dev.202205301219",
|
|
48
|
+
"@progress/kendo-vue-dateinputs": "3.3.3-dev.202205301219",
|
|
49
|
+
"@progress/kendo-vue-dropdowns": "3.3.3-dev.202205301219",
|
|
50
|
+
"@progress/kendo-vue-excel-export": "3.3.3-dev.202205301219",
|
|
51
|
+
"@progress/kendo-vue-indicators": "3.3.3-dev.202205301219",
|
|
52
|
+
"@progress/kendo-vue-inputs": "3.3.3-dev.202205301219",
|
|
53
|
+
"@progress/kendo-vue-intl": "3.3.3-dev.202205301219",
|
|
54
|
+
"@progress/kendo-vue-pdf": "3.3.3-dev.202205301219",
|
|
55
|
+
"@progress/kendo-vue-popup": "3.3.3-dev.202205301219",
|
|
54
56
|
"cldr-core": "^34.0.0",
|
|
55
57
|
"cldr-dates-full": "^34.0.0",
|
|
56
58
|
"cldr-numbers-full": "^34.0.0",
|