@progress/kendo-vue-grid 3.7.4-dev.202211301436 → 3.7.4-dev.202212300853
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/dist/es/Grid.js +51 -24
- package/dist/es/GridToolbar.d.ts +13 -1
- package/dist/es/GridToolbar.js +21 -2
- package/dist/es/cells/GridFilterCell.js +4 -2
- package/dist/es/columnMenu/ColumnMenu.js +6 -3
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +7 -3
- package/dist/es/columnMenu/GridColumnMenuItem.js +3 -3
- package/dist/es/drag/DragClue.js +6 -2
- package/dist/es/drag/GroupingIndicator.js +23 -9
- package/dist/es/footer/Footer.d.ts +1 -0
- package/dist/es/footer/Footer.js +12 -2
- package/dist/es/header/FilterRow.js +3 -2
- package/dist/es/header/Header.d.ts +1 -0
- package/dist/es/header/Header.js +11 -1
- package/dist/es/header/HeaderRow.js +13 -6
- package/dist/es/interfaces/GridColumnProps.d.ts +3 -3
- package/dist/es/interfaces/GridProps.d.ts +10 -0
- package/dist/es/interfaces/GridToolbarProps.d.ts +8 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/Grid.js +51 -24
- package/dist/esm/GridToolbar.d.ts +13 -1
- package/dist/esm/GridToolbar.js +21 -2
- package/dist/esm/cells/GridFilterCell.js +4 -2
- package/dist/esm/columnMenu/ColumnMenu.js +6 -3
- package/dist/esm/columnMenu/GridColumnMenuCheckboxFilter.js +7 -3
- package/dist/esm/columnMenu/GridColumnMenuItem.js +3 -3
- package/dist/esm/drag/DragClue.js +6 -2
- package/dist/esm/drag/GroupingIndicator.js +23 -9
- package/dist/esm/footer/Footer.d.ts +1 -0
- package/dist/esm/footer/Footer.js +12 -2
- package/dist/esm/header/FilterRow.js +3 -2
- package/dist/esm/header/Header.d.ts +1 -0
- package/dist/esm/header/Header.js +11 -1
- package/dist/esm/header/HeaderRow.js +13 -6
- package/dist/esm/interfaces/GridColumnProps.d.ts +3 -3
- package/dist/esm/interfaces/GridProps.d.ts +10 -0
- package/dist/esm/interfaces/GridToolbarProps.d.ts +8 -2
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/Grid.js +50 -23
- package/dist/npm/GridToolbar.d.ts +13 -1
- package/dist/npm/GridToolbar.js +20 -1
- package/dist/npm/cells/GridFilterCell.js +4 -2
- package/dist/npm/columnMenu/ColumnMenu.js +5 -2
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +6 -2
- package/dist/npm/columnMenu/GridColumnMenuItem.js +2 -2
- package/dist/npm/drag/DragClue.js +6 -2
- package/dist/npm/drag/GroupingIndicator.js +22 -8
- package/dist/npm/footer/Footer.d.ts +1 -0
- package/dist/npm/footer/Footer.js +11 -1
- package/dist/npm/header/FilterRow.js +3 -2
- package/dist/npm/header/Header.d.ts +1 -0
- package/dist/npm/header/Header.js +10 -0
- package/dist/npm/header/HeaderRow.js +12 -5
- package/dist/npm/interfaces/GridColumnProps.d.ts +3 -3
- package/dist/npm/interfaces/GridProps.d.ts +10 -0
- package/dist/npm/interfaces/GridToolbarProps.d.ts +8 -2
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +15 -15
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface GridToolbarProps {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Configures the `size` of the Grid.
|
|
7
|
+
*
|
|
8
|
+
* The available options are:
|
|
9
|
+
* - small
|
|
10
|
+
* - medium
|
|
11
|
+
*
|
|
12
|
+
* @default `medium`
|
|
7
13
|
*/
|
|
8
|
-
|
|
14
|
+
size?: 'small' | 'medium' | string;
|
|
9
15
|
}
|
|
@@ -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: 1672389995,
|
|
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
|
@@ -123,6 +123,13 @@ var GridVue2 = {
|
|
|
123
123
|
type: String,
|
|
124
124
|
default: 'scrollable'
|
|
125
125
|
},
|
|
126
|
+
size: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: 'medium',
|
|
129
|
+
validator: function validator(value) {
|
|
130
|
+
return ['small', 'medium'].includes(value);
|
|
131
|
+
}
|
|
132
|
+
},
|
|
126
133
|
pager: kendo_vue_common_1.templateDefinition,
|
|
127
134
|
rowHeight: Number,
|
|
128
135
|
detail: kendo_vue_common_1.templateDefinition,
|
|
@@ -194,6 +201,29 @@ var GridVue2 = {
|
|
|
194
201
|
this.gridUnmounted();
|
|
195
202
|
},
|
|
196
203
|
computed: {
|
|
204
|
+
nonscrollableWrapperClass: function nonscrollableWrapperClass() {
|
|
205
|
+
var _a;
|
|
206
|
+
var size = this.$props.size;
|
|
207
|
+
return _a = {
|
|
208
|
+
'k-grid': true,
|
|
209
|
+
'k-grid-md': !size
|
|
210
|
+
}, _a["k-grid-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
211
|
+
},
|
|
212
|
+
scrollableWrapperClass: function scrollableWrapperClass() {
|
|
213
|
+
var scrollable = this.$props.scrollable;
|
|
214
|
+
return __assign(__assign({}, this.nonscrollableWrapperClass), {
|
|
215
|
+
'k-grid-virtual': scrollable === 'virtual'
|
|
216
|
+
});
|
|
217
|
+
},
|
|
218
|
+
gridTableClass: function gridTableClass() {
|
|
219
|
+
var _a;
|
|
220
|
+
var size = this.$props.size;
|
|
221
|
+
return _a = {
|
|
222
|
+
'k-table': true,
|
|
223
|
+
'k-grid-table': true,
|
|
224
|
+
'k-grid-md': !size
|
|
225
|
+
}, _a["k-table-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
226
|
+
},
|
|
197
227
|
getCorrectHeight: {
|
|
198
228
|
get: function get() {
|
|
199
229
|
if (this.$props.scrollable === 'virtual') {
|
|
@@ -727,7 +757,7 @@ var GridVue2 = {
|
|
|
727
757
|
if (item.expanded !== false && item.items) {
|
|
728
758
|
allRowsCount = _this.addSubItems(item.items, allRowsCount);
|
|
729
759
|
}
|
|
730
|
-
if (_this.$props.groupable.footer === 'always' || item.expanded !== false && _this.$props.groupable.footer === 'visible') {
|
|
760
|
+
if (_this.group && _this.group.length && (_this.$props.groupable.footer === 'always' || item.expanded !== false && _this.$props.groupable.footer === 'visible')) {
|
|
731
761
|
allRowsCount++;
|
|
732
762
|
}
|
|
733
763
|
});
|
|
@@ -851,8 +881,9 @@ var GridVue2 = {
|
|
|
851
881
|
})];
|
|
852
882
|
// @ts-ignore
|
|
853
883
|
var header = h(Header_1.Header, {
|
|
854
|
-
|
|
884
|
+
size: this.$props.size,
|
|
855
885
|
attrs: this.v3 ? undefined : {
|
|
886
|
+
size: this.$props.size,
|
|
856
887
|
columnResize: this.columnResize,
|
|
857
888
|
staticHeaders: this.$props.scrollable !== 'none',
|
|
858
889
|
// @ts-ignore
|
|
@@ -964,6 +995,7 @@ var GridVue2 = {
|
|
|
964
995
|
});
|
|
965
996
|
}, this)
|
|
966
997
|
},
|
|
998
|
+
columnResize: this.columnResize,
|
|
967
999
|
staticHeaders: this.$props.scrollable !== 'none',
|
|
968
1000
|
ref: this.v3 ? function (el) {
|
|
969
1001
|
_this.headerRef = el;
|
|
@@ -1079,8 +1111,9 @@ var GridVue2 = {
|
|
|
1079
1111
|
}) ?
|
|
1080
1112
|
// @ts-ignore
|
|
1081
1113
|
h(Footer_1.Footer, {
|
|
1082
|
-
|
|
1114
|
+
size: this.$props.size,
|
|
1083
1115
|
attrs: this.v3 ? undefined : {
|
|
1116
|
+
size: this.$props.size,
|
|
1084
1117
|
columnResize: this.columnResize,
|
|
1085
1118
|
staticHeaders: this.$props.scrollable !== 'none',
|
|
1086
1119
|
row:
|
|
@@ -1111,6 +1144,7 @@ var GridVue2 = {
|
|
|
1111
1144
|
});
|
|
1112
1145
|
}, this)
|
|
1113
1146
|
},
|
|
1147
|
+
columnResize: this.columnResize,
|
|
1114
1148
|
staticHeaders: this.$props.scrollable !== 'none',
|
|
1115
1149
|
ref: this.v3 ? function (el) {
|
|
1116
1150
|
_this.footerRef = el;
|
|
@@ -1548,6 +1582,7 @@ var GridVue2 = {
|
|
|
1548
1582
|
var _this = this;
|
|
1549
1583
|
if (item.rowType === 'data') {
|
|
1550
1584
|
absoluteDataIndex++;
|
|
1585
|
+
dataIndex++;
|
|
1551
1586
|
}
|
|
1552
1587
|
if (this.$props.alternatePerGroup && item.rowType === 'groupHeader') {
|
|
1553
1588
|
absoluteDataIndex = 0;
|
|
@@ -1774,7 +1809,7 @@ var GridVue2 = {
|
|
|
1774
1809
|
},
|
|
1775
1810
|
style: wrapperStyle,
|
|
1776
1811
|
role: "grid",
|
|
1777
|
-
"class":
|
|
1812
|
+
"class": _this3.nonscrollableWrapperClass
|
|
1778
1813
|
}, _this3.v3 ? function () {
|
|
1779
1814
|
return [toolbar, groupingPanel, h("table", {
|
|
1780
1815
|
style: {
|
|
@@ -1807,7 +1842,7 @@ var GridVue2 = {
|
|
|
1807
1842
|
},
|
|
1808
1843
|
style: wrapperStyle,
|
|
1809
1844
|
role: "grid",
|
|
1810
|
-
"class":
|
|
1845
|
+
"class": _this3.nonscrollableWrapperClass
|
|
1811
1846
|
}, _this3.v3 ? function () {
|
|
1812
1847
|
return [toolbar, groupingPanel, h("table", {
|
|
1813
1848
|
style: {
|
|
@@ -1855,7 +1890,7 @@ var GridVue2 = {
|
|
|
1855
1890
|
},
|
|
1856
1891
|
style: wrapperStyle,
|
|
1857
1892
|
role: "grid",
|
|
1858
|
-
"class":
|
|
1893
|
+
"class": _this3.scrollableWrapperClass
|
|
1859
1894
|
}, _this3.v3 ? function () {
|
|
1860
1895
|
return [toolbar, groupingPanel, header, h("div", {
|
|
1861
1896
|
"class": "k-grid-container",
|
|
@@ -1875,9 +1910,7 @@ var GridVue2 = {
|
|
|
1875
1910
|
"scroll": _this3.scrollHandler
|
|
1876
1911
|
}
|
|
1877
1912
|
}, [h("div", {
|
|
1878
|
-
|
|
1879
|
-
'position': 'relative'
|
|
1880
|
-
}
|
|
1913
|
+
"class": 'k-grid-table-wrap'
|
|
1881
1914
|
}, [h("table", {
|
|
1882
1915
|
role: "presentation",
|
|
1883
1916
|
attrs: _this3.v3 ? undefined : {
|
|
@@ -1885,7 +1918,7 @@ var GridVue2 = {
|
|
|
1885
1918
|
tabindex: -1
|
|
1886
1919
|
},
|
|
1887
1920
|
tabindex: -1,
|
|
1888
|
-
"class":
|
|
1921
|
+
"class": _this3.gridTableClass,
|
|
1889
1922
|
ref: (0, kendo_vue_common_1.setRef)(_this3, 'scrollTable')
|
|
1890
1923
|
}, [colGroups, h("tbody", {
|
|
1891
1924
|
role: "presentation",
|
|
@@ -1924,9 +1957,7 @@ var GridVue2 = {
|
|
|
1924
1957
|
"scroll": _this3.scrollHandler
|
|
1925
1958
|
}
|
|
1926
1959
|
}, [h("div", {
|
|
1927
|
-
|
|
1928
|
-
'position': 'relative'
|
|
1929
|
-
}
|
|
1960
|
+
"class": 'k-grid-table-wrap'
|
|
1930
1961
|
}, [h("table", {
|
|
1931
1962
|
role: "presentation",
|
|
1932
1963
|
attrs: _this3.v3 ? undefined : {
|
|
@@ -1934,7 +1965,7 @@ var GridVue2 = {
|
|
|
1934
1965
|
tabindex: -1
|
|
1935
1966
|
},
|
|
1936
1967
|
tabindex: -1,
|
|
1937
|
-
"class":
|
|
1968
|
+
"class": _this3.gridTableClass,
|
|
1938
1969
|
ref: (0, kendo_vue_common_1.setRef)(_this3, 'scrollTable')
|
|
1939
1970
|
}, [colGroups, h("tbody", {
|
|
1940
1971
|
role: "presentation",
|
|
@@ -1966,7 +1997,7 @@ var GridVue2 = {
|
|
|
1966
1997
|
},
|
|
1967
1998
|
style: wrapperStyle,
|
|
1968
1999
|
role: "grid",
|
|
1969
|
-
"class":
|
|
2000
|
+
"class": _this3.scrollableWrapperClass
|
|
1970
2001
|
}, _this3.v3 ? function () {
|
|
1971
2002
|
return [toolbar, groupingPanel, header, h("div", {
|
|
1972
2003
|
"class": "k-grid-container",
|
|
@@ -1986,9 +2017,7 @@ var GridVue2 = {
|
|
|
1986
2017
|
"scroll": _this3.scrollHandler
|
|
1987
2018
|
}
|
|
1988
2019
|
}, [h("div", {
|
|
1989
|
-
|
|
1990
|
-
'position': 'relative'
|
|
1991
|
-
}
|
|
2020
|
+
"class": 'k-grid-table-wrap'
|
|
1992
2021
|
}, [h("table", {
|
|
1993
2022
|
role: "presentation",
|
|
1994
2023
|
attrs: _this3.v3 ? undefined : {
|
|
@@ -1996,7 +2025,7 @@ var GridVue2 = {
|
|
|
1996
2025
|
tabindex: -1
|
|
1997
2026
|
},
|
|
1998
2027
|
tabindex: -1,
|
|
1999
|
-
"class":
|
|
2028
|
+
"class": _this3.gridTableClass,
|
|
2000
2029
|
ref: (0, kendo_vue_common_1.setRef)(_this3, 'scrollTable')
|
|
2001
2030
|
}, [colGroups, h("tbody", {
|
|
2002
2031
|
role: "presentation",
|
|
@@ -2035,9 +2064,7 @@ var GridVue2 = {
|
|
|
2035
2064
|
"scroll": _this3.scrollHandler
|
|
2036
2065
|
}
|
|
2037
2066
|
}, [h("div", {
|
|
2038
|
-
|
|
2039
|
-
'position': 'relative'
|
|
2040
|
-
}
|
|
2067
|
+
"class": 'k-grid-table-wrap'
|
|
2041
2068
|
}, [h("table", {
|
|
2042
2069
|
role: "presentation",
|
|
2043
2070
|
attrs: _this3.v3 ? undefined : {
|
|
@@ -2045,7 +2072,7 @@ var GridVue2 = {
|
|
|
2045
2072
|
tabindex: -1
|
|
2046
2073
|
},
|
|
2047
2074
|
tabindex: -1,
|
|
2048
|
-
"class":
|
|
2075
|
+
"class": _this3.gridTableClass,
|
|
2049
2076
|
ref: (0, kendo_vue_common_1.setRef)(_this3, 'scrollTable')
|
|
2050
2077
|
}, [colGroups, h("tbody", {
|
|
2051
2078
|
role: "presentation",
|
|
@@ -7,7 +7,19 @@ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } fr
|
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
export interface GridToolbarComputed {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
wrapperClass: object;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface GridToolbarAll extends GridToolbarProps, GridToolbarComputed, Vue2type {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare let GridToolbarVue2: ComponentOptions<GridToolbarAll, DefaultData<{}>, DefaultMethods<{}>, {}, RecordPropsDefinition<GridToolbarProps>>;
|
|
11
23
|
/**
|
|
12
24
|
* Represents the GridToolbar component.
|
|
13
25
|
*
|
package/dist/npm/GridToolbar.js
CHANGED
|
@@ -15,6 +15,25 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
15
15
|
*/
|
|
16
16
|
var GridToolbarVue2 = {
|
|
17
17
|
name: 'GridToolbar',
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: 'medium',
|
|
22
|
+
validator: function validator(value) {
|
|
23
|
+
return ['small', 'medium'].includes(value);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
computed: {
|
|
28
|
+
wrapperClass: function wrapperClass() {
|
|
29
|
+
var _a;
|
|
30
|
+
var size = this.$props.size;
|
|
31
|
+
return _a = {
|
|
32
|
+
'k-toolbar': true,
|
|
33
|
+
'k-grid-toolbar': true
|
|
34
|
+
}, _a["k-toolbar-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
18
37
|
// @ts-ignore
|
|
19
38
|
setup: !isV3 ? undefined : function () {
|
|
20
39
|
var v3 = !!isV3;
|
|
@@ -27,7 +46,7 @@ var GridToolbarVue2 = {
|
|
|
27
46
|
var h = gh || createElement;
|
|
28
47
|
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
29
48
|
return h("div", {
|
|
30
|
-
"class":
|
|
49
|
+
"class": this.wrapperClass
|
|
31
50
|
}, [defaultSlot]);
|
|
32
51
|
}
|
|
33
52
|
};
|
|
@@ -227,8 +227,10 @@ var GridFilterCellVue2 = {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
var defaultRendering = h("div", {
|
|
230
|
-
"class": "k-
|
|
231
|
-
}, [h("span",
|
|
230
|
+
"class": "k-cell-inner"
|
|
231
|
+
}, [h("span", {
|
|
232
|
+
"class": "k-link"
|
|
233
|
+
}, [filterComponent.call(this, this.$props.filterType, this.$props.value), h("div", {
|
|
232
234
|
"class": "k-filtercell-operator"
|
|
233
235
|
}, [renderOperatorEditor.call(this),
|
|
234
236
|
// @ts-ignore function children
|
|
@@ -139,8 +139,11 @@ var ColumnMenuVue2 = {
|
|
|
139
139
|
on: this.v3 ? undefined : {
|
|
140
140
|
"click": this.anchorClick
|
|
141
141
|
}
|
|
142
|
-
}, [h(
|
|
143
|
-
|
|
142
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
143
|
+
name: 'more-vertical',
|
|
144
|
+
attrs: this.v3 ? undefined : {
|
|
145
|
+
name: 'more-vertical'
|
|
146
|
+
}
|
|
144
147
|
})]),
|
|
145
148
|
// @ts-ignore function children
|
|
146
149
|
h(kendo_vue_popup_1.Popup, {
|
|
@@ -151,8 +151,12 @@ var GridColumnMenuCheckboxFilterVue2 = {
|
|
|
151
151
|
"class": "k-list-filter"
|
|
152
152
|
}, [h("span", {
|
|
153
153
|
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
154
|
-
}, [h(
|
|
155
|
-
|
|
154
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
155
|
+
name: 'search',
|
|
156
|
+
attrs: this.v3 ? undefined : {
|
|
157
|
+
name: 'search'
|
|
158
|
+
},
|
|
159
|
+
"class": "k-input-icon"
|
|
156
160
|
}), h("input", {
|
|
157
161
|
ref: 'searchBox',
|
|
158
162
|
placeholder: localizationService.toLanguageString(main_1.searchPlaceholder, main_1.messages[main_1.searchPlaceholder]),
|
|
@@ -55,8 +55,8 @@ var GridColumnMenuItemVue2 = {
|
|
|
55
55
|
},
|
|
56
56
|
onClick: this.onClick,
|
|
57
57
|
"class": "k-columnmenu-item ".concat(selected ? 'k-selected' : '')
|
|
58
|
-
}, [iconClass && h(
|
|
59
|
-
"class": "
|
|
58
|
+
}, [iconClass && h(kendo_vue_common_1.Icon, {
|
|
59
|
+
"class": "iconClass"
|
|
60
60
|
}), title]);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.DragClueVue2 = exports.DragClue = void 0;
|
|
7
7
|
// @ts-ignore
|
|
8
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
8
9
|
var Vue = require("vue");
|
|
9
10
|
var allVue = Vue;
|
|
10
11
|
var gh = allVue.h;
|
|
@@ -44,8 +45,11 @@ var DragClueVue2 = {
|
|
|
44
45
|
}
|
|
45
46
|
}, [h("span", {
|
|
46
47
|
"class": 'k-icon k-drag-status ' + this.status + ' k-icon-with-modifier'
|
|
47
|
-
}, [h(
|
|
48
|
-
|
|
48
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
49
|
+
name: "modifier",
|
|
50
|
+
attrs: this.v3 ? undefined : {
|
|
51
|
+
name: "modifier"
|
|
52
|
+
}
|
|
49
53
|
})]), this.innerText]);
|
|
50
54
|
}
|
|
51
55
|
};
|
|
@@ -83,8 +83,12 @@ var GroupingIndicatorVue2 = {
|
|
|
83
83
|
ref: (0, kendo_vue_common_1.setRef)(_this, 'indicatorContainer')
|
|
84
84
|
}, [h("div", {
|
|
85
85
|
"class": "k-chip k-chip-lg k-rounded-md k-chip-solid k-chip-solid-base"
|
|
86
|
-
}, [h(
|
|
87
|
-
|
|
86
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
87
|
+
name: 'sort-' + _this.$props.dir + '-small',
|
|
88
|
+
attrs: _this.v3 ? undefined : {
|
|
89
|
+
name: 'sort-' + _this.$props.dir + '-small'
|
|
90
|
+
},
|
|
91
|
+
"class": 'k-chip-icon'
|
|
88
92
|
}), h("span", {
|
|
89
93
|
"class": "k-chip-content",
|
|
90
94
|
tabindex: -1,
|
|
@@ -109,16 +113,23 @@ var GroupingIndicatorVue2 = {
|
|
|
109
113
|
on: _this.v3 ? undefined : {
|
|
110
114
|
"click": _this.groupRemove
|
|
111
115
|
}
|
|
112
|
-
}, [h(
|
|
113
|
-
|
|
116
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
117
|
+
name: "x",
|
|
118
|
+
attrs: _this.v3 ? undefined : {
|
|
119
|
+
name: "x"
|
|
120
|
+
}
|
|
114
121
|
})])])])])];
|
|
115
122
|
} : [h("div", {
|
|
116
123
|
"class": "k-indicator-container",
|
|
117
124
|
ref: (0, kendo_vue_common_1.setRef)(_this, 'indicatorContainer')
|
|
118
125
|
}, [h("div", {
|
|
119
126
|
"class": "k-chip k-chip-lg k-rounded-md k-chip-solid k-chip-solid-base"
|
|
120
|
-
}, [h(
|
|
121
|
-
|
|
127
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
128
|
+
name: 'sort-' + _this.$props.dir + '-small',
|
|
129
|
+
attrs: _this.v3 ? undefined : {
|
|
130
|
+
name: 'sort-' + _this.$props.dir + '-small'
|
|
131
|
+
},
|
|
132
|
+
"class": 'k-chip-icon'
|
|
122
133
|
}), h("span", {
|
|
123
134
|
"class": "k-chip-content",
|
|
124
135
|
tabindex: -1,
|
|
@@ -143,8 +154,11 @@ var GroupingIndicatorVue2 = {
|
|
|
143
154
|
on: _this.v3 ? undefined : {
|
|
144
155
|
"click": _this.groupRemove
|
|
145
156
|
}
|
|
146
|
-
}, [h(
|
|
147
|
-
|
|
157
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
158
|
+
name: "x",
|
|
159
|
+
attrs: _this.v3 ? undefined : {
|
|
160
|
+
name: "x"
|
|
161
|
+
}
|
|
148
162
|
})])])])])])
|
|
149
163
|
);
|
|
150
164
|
}
|
|
@@ -22,7 +22,8 @@ var FooterVue2 = {
|
|
|
22
22
|
staticHeaders: Boolean,
|
|
23
23
|
row: Object,
|
|
24
24
|
columnResize: Object,
|
|
25
|
-
cols: Array
|
|
25
|
+
cols: Array,
|
|
26
|
+
size: String
|
|
26
27
|
},
|
|
27
28
|
data: function data() {
|
|
28
29
|
return {
|
|
@@ -32,6 +33,14 @@ var FooterVue2 = {
|
|
|
32
33
|
};
|
|
33
34
|
},
|
|
34
35
|
computed: {
|
|
36
|
+
tableClass: function tableClass() {
|
|
37
|
+
var _a;
|
|
38
|
+
var size = this.$props.size;
|
|
39
|
+
return _a = {
|
|
40
|
+
'k-table': true,
|
|
41
|
+
'k-grid-footer-table': true
|
|
42
|
+
}, _a["k-table-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
43
|
+
},
|
|
35
44
|
divStyle: {
|
|
36
45
|
get: function get() {
|
|
37
46
|
var padding = this.$data.scrollbarWidth + 'px';
|
|
@@ -92,6 +101,7 @@ var FooterVue2 = {
|
|
|
92
101
|
"class": "k-grid-footer-wrap",
|
|
93
102
|
ref: (0, kendo_vue_common_1.setRef)(this, 'footerWrap')
|
|
94
103
|
}, [h("table", {
|
|
104
|
+
"class": this.tableClass,
|
|
95
105
|
style: this.tableStyle
|
|
96
106
|
}, [h("colgroup", {
|
|
97
107
|
ref: (0, kendo_vue_common_1.setRef)(this, 'colGroupHeader')
|
|
@@ -15,6 +15,7 @@ var GridFilterCell_1 = require("../cells/GridFilterCell");
|
|
|
15
15
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
16
16
|
var main_1 = require("../messages/main");
|
|
17
17
|
var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
|
|
18
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
18
19
|
/**
|
|
19
20
|
* @hidden
|
|
20
21
|
*/
|
|
@@ -162,7 +163,7 @@ var FilterRowVue2 = {
|
|
|
162
163
|
},
|
|
163
164
|
navigatable: column.navigatable,
|
|
164
165
|
style: style,
|
|
165
|
-
"class": this.headerCellClassName(column.field, column.locked) || undefined,
|
|
166
|
+
"class": (0, kendo_vue_common_1.classNames)('k-header', this.headerCellClassName(column.field, column.locked) || undefined),
|
|
166
167
|
ariaLabel: ariaAttrs.ariaLabel,
|
|
167
168
|
ariaColumnIndex: ariaAttrs.ariaColumnIndex
|
|
168
169
|
}, this.v3 ? function () {
|
|
@@ -181,7 +182,7 @@ var FilterRowVue2 = {
|
|
|
181
182
|
},
|
|
182
183
|
navigatable: column.navigatable,
|
|
183
184
|
style: style,
|
|
184
|
-
"class": this.headerCellClassName(column.field, column.locked) || undefined,
|
|
185
|
+
"class": (0, kendo_vue_common_1.classNames)('k-header', this.headerCellClassName(column.field, column.locked) || undefined),
|
|
185
186
|
ariaLabel: ariaAttrs.ariaLabel,
|
|
186
187
|
ariaColumnIndex: ariaAttrs.ariaColumnIndex
|
|
187
188
|
});
|
|
@@ -22,6 +22,7 @@ var HeaderVue2 = {
|
|
|
22
22
|
headerRow: Object,
|
|
23
23
|
columnResize: Object,
|
|
24
24
|
cols: Array,
|
|
25
|
+
size: String,
|
|
25
26
|
draggable: Boolean
|
|
26
27
|
},
|
|
27
28
|
data: function data() {
|
|
@@ -38,6 +39,14 @@ var HeaderVue2 = {
|
|
|
38
39
|
'k-grid-header': true,
|
|
39
40
|
'k-grid-draggable-header': this.$props.draggable
|
|
40
41
|
};
|
|
42
|
+
},
|
|
43
|
+
tableClass: function tableClass() {
|
|
44
|
+
var _a;
|
|
45
|
+
var size = this.$props.size;
|
|
46
|
+
return _a = {
|
|
47
|
+
'k-table': true,
|
|
48
|
+
'k-grid-header-table': true
|
|
49
|
+
}, _a["k-table-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
41
50
|
}
|
|
42
51
|
},
|
|
43
52
|
mounted: function mounted() {
|
|
@@ -102,6 +111,7 @@ var HeaderVue2 = {
|
|
|
102
111
|
role: "presentation"
|
|
103
112
|
}
|
|
104
113
|
}, [h("table", {
|
|
114
|
+
"class": this.tableClass,
|
|
105
115
|
ref: (0, kendo_vue_common_1.setRef)(this, 'table'),
|
|
106
116
|
role: "presentation",
|
|
107
117
|
attrs: this.v3 ? undefined : {
|
|
@@ -201,18 +201,25 @@ var HeaderRowVue2 = {
|
|
|
201
201
|
}) : -1;
|
|
202
202
|
var sortDir = sortIndex >= 0 ? this.$props.sort[sortIndex].dir || 'none' : 'none';
|
|
203
203
|
var sortIconRenderer = function sortIconRenderer(iconSortIndex) {
|
|
204
|
-
if (!
|
|
204
|
+
if (!this.$props.sort) {
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
207
|
return iconSortIndex >= 0 && [h("span", {
|
|
208
208
|
key: 1,
|
|
209
|
-
"class": 'k-
|
|
210
|
-
}
|
|
209
|
+
"class": 'k-sort-icon'
|
|
210
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
211
|
+
name: 'sort-' + this.$props.sort[iconSortIndex].dir + '-small',
|
|
212
|
+
attrs: this.v3 ? undefined : {
|
|
213
|
+
name: 'sort-' + this.$props.sort[iconSortIndex].dir + '-small'
|
|
214
|
+
}
|
|
215
|
+
})]), this.$props.sort.length > 1 && h("span", {
|
|
211
216
|
key: 2,
|
|
217
|
+
"class": 'k-sort-icon'
|
|
218
|
+
}, [h("span", {
|
|
212
219
|
"class": "k-sort-order"
|
|
213
|
-
}, [iconSortIndex + 1])];
|
|
220
|
+
}, [iconSortIndex + 1])])];
|
|
214
221
|
};
|
|
215
|
-
var sortIcon = sortIconRenderer(sortIndex);
|
|
222
|
+
var sortIcon = sortIconRenderer.call(this, sortIndex);
|
|
216
223
|
var className = (column.kFirst ? 'k-first ' : '') + this.cellClass(column.field, column.headerClassName, column.locked);
|
|
217
224
|
var columnMenu = column.columnMenu || column.columnMenu === false ? column.columnMenu : this.$props.columnMenu;
|
|
218
225
|
var columnMenuRender = !columnMenu || typeof columnMenu === 'boolean' ? !!columnMenu : this.getTemplate(columnMenu);
|
|
@@ -140,8 +140,8 @@ export interface GridColumnProps {
|
|
|
140
140
|
locked?: boolean;
|
|
141
141
|
/**
|
|
142
142
|
* The type of the data which will be used when formatting the cell data.
|
|
143
|
-
* Could be one of the following values '
|
|
144
|
-
* Defaults to `
|
|
143
|
+
* Could be one of the following values 'string' | 'number' | 'boolean' | 'date'.
|
|
144
|
+
* Defaults to `string`.
|
|
145
145
|
*/
|
|
146
|
-
type?: '
|
|
146
|
+
type?: 'string' | 'number' | 'boolean' | 'date';
|
|
147
147
|
}
|
|
@@ -207,6 +207,16 @@ export interface GridProps {
|
|
|
207
207
|
* while the user is scrolling the content.
|
|
208
208
|
*/
|
|
209
209
|
scrollable?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Configures the `size` of the Grid.
|
|
212
|
+
*
|
|
213
|
+
* The available options are:
|
|
214
|
+
* - small
|
|
215
|
+
* - medium
|
|
216
|
+
*
|
|
217
|
+
* @default `medium`
|
|
218
|
+
*/
|
|
219
|
+
size?: 'small' | 'medium' | string;
|
|
210
220
|
/**
|
|
211
221
|
* Defines the row height and forces an equal height to all rows
|
|
212
222
|
* ([see example]({% slug scrollmmodes_grid %})).
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface GridToolbarProps {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Configures the `size` of the Grid.
|
|
7
|
+
*
|
|
8
|
+
* The available options are:
|
|
9
|
+
* - small
|
|
10
|
+
* - medium
|
|
11
|
+
*
|
|
12
|
+
* @default `medium`
|
|
7
13
|
*/
|
|
8
|
-
|
|
14
|
+
size?: 'small' | 'medium' | string;
|
|
9
15
|
}
|
|
@@ -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: 1672389995,
|
|
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
|
};
|