@progress/kendo-vue-treelist 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431

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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/js/kendo-vue-treelist.js +1 -1
  3. package/dist/es/TreeList.js +178 -130
  4. package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
  5. package/dist/es/cells/EditCells/TreeListBooleanEditor.js +10 -1
  6. package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +8 -1
  7. package/dist/es/cells/EditCells/TreeListDateEditor.js +10 -1
  8. package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
  9. package/dist/es/cells/EditCells/TreeListNumericEditor.js +10 -1
  10. package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +8 -1
  11. package/dist/es/cells/EditCells/TreeListTextEditor.js +10 -1
  12. package/dist/es/cells/TreeListCell.d.ts +1 -1
  13. package/dist/es/cells/TreeListCell.js +30 -13
  14. package/dist/es/cells/TreeListSelectionCell.js +18 -4
  15. package/dist/es/interfaces/TreeListProps.d.ts +10 -0
  16. package/dist/es/package-metadata.js +1 -1
  17. package/dist/es/rows/RowDragClue.js +6 -2
  18. package/dist/es/rows/TreeListRow.js +2 -0
  19. package/dist/esm/TreeList.js +178 -130
  20. package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
  21. package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +10 -1
  22. package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +8 -1
  23. package/dist/esm/cells/EditCells/TreeListDateEditor.js +10 -1
  24. package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
  25. package/dist/esm/cells/EditCells/TreeListNumericEditor.js +10 -1
  26. package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +8 -1
  27. package/dist/esm/cells/EditCells/TreeListTextEditor.js +10 -1
  28. package/dist/esm/cells/TreeListCell.d.ts +1 -1
  29. package/dist/esm/cells/TreeListCell.js +30 -13
  30. package/dist/esm/cells/TreeListSelectionCell.js +18 -4
  31. package/dist/esm/interfaces/TreeListProps.d.ts +10 -0
  32. package/dist/esm/package-metadata.js +1 -1
  33. package/dist/esm/rows/RowDragClue.js +6 -2
  34. package/dist/esm/rows/TreeListRow.js +2 -0
  35. package/dist/npm/TreeList.js +177 -129
  36. package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
  37. package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +10 -1
  38. package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +8 -1
  39. package/dist/npm/cells/EditCells/TreeListDateEditor.js +10 -1
  40. package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
  41. package/dist/npm/cells/EditCells/TreeListNumericEditor.js +10 -1
  42. package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +8 -1
  43. package/dist/npm/cells/EditCells/TreeListTextEditor.js +10 -1
  44. package/dist/npm/cells/TreeListCell.d.ts +1 -1
  45. package/dist/npm/cells/TreeListCell.js +29 -12
  46. package/dist/npm/cells/TreeListSelectionCell.js +18 -4
  47. package/dist/npm/interfaces/TreeListProps.d.ts +10 -0
  48. package/dist/npm/package-metadata.js +1 -1
  49. package/dist/npm/rows/RowDragClue.js +6 -2
  50. package/dist/npm/rows/TreeListRow.js +2 -0
  51. package/package.json +16 -14
@@ -44,6 +44,7 @@ var package_metadata_1 = require("./package-metadata");
44
44
  var kendo_vue_common_3 = require("@progress/kendo-vue-common");
45
45
  var main_2 = require("./messages/main");
46
46
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
47
+ var TreeListSelectionCell_1 = require("./cells/TreeListSelectionCell");
47
48
  /**
48
49
  * @hidden
49
50
  */
@@ -79,6 +80,13 @@ var TreeListVue2 = {
79
80
  wrapperStyle: Object,
80
81
  dataItemKey: String,
81
82
  navigatable: Boolean,
83
+ size: {
84
+ type: String,
85
+ default: 'medium',
86
+ validator: function validator(value) {
87
+ return ['small', 'medium'].includes(value);
88
+ }
89
+ },
82
90
  reordableRows: Boolean
83
91
  },
84
92
  created: function created() {
@@ -98,6 +106,26 @@ var TreeListVue2 = {
98
106
  default: null
99
107
  }
100
108
  },
109
+ computed: {
110
+ wrapperClass: function wrapperClass() {
111
+ var _a;
112
+ var _b = this.$props,
113
+ size = _b.size,
114
+ scrollable = _b.scrollable;
115
+ return _a = {
116
+ 'k-grid': true
117
+ }, _a[this.$props.className] = this.$props.className, _a['k-grid-md'] = !size, _a["k-grid-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-treelist-scrollable'] = scrollable !== 'none', _a;
118
+ },
119
+ gridTableClass: function gridTableClass() {
120
+ var _a;
121
+ var size = this.$props.size;
122
+ return _a = {
123
+ 'k-table': true,
124
+ 'k-grid-table': true,
125
+ 'k-grid-md': !size
126
+ }, _a["k-table-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
127
+ }
128
+ },
101
129
  data: function data() {
102
130
  return {
103
131
  wrapperScrollLeft: 0,
@@ -191,110 +219,19 @@ var TreeListVue2 = {
191
219
  var header =
192
220
  // @ts-ignore
193
221
  h(kendo_vue_data_tools_1.Header, {
194
- headerRow:
195
- // @ts-ignore
196
- h(kendo_vue_data_tools_1.HeaderRow, {
197
- grid: this,
198
- attrs: this.v3 ? undefined : {
199
- grid: this,
200
- sort: this.$props.sort,
201
- filter: filterToPass,
202
- sortable: this.$props.sortable,
203
- reorderable: reorderable,
204
- filterable: filterable,
205
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
206
- columns: this.extendedColumn,
207
- columnsMap: this.columnsMap,
208
- cellRender: this.$props.headerCellRender,
209
- columnResize: this.columnResize,
210
- columnMenu: this.$props.columnMenu,
211
- columnMenuFilter: this.$props.columnMenuFilter,
212
- filterRow: filterable ?
213
- // @ts-ignore
214
- h(FilterRow, {
215
- columns: leafColumns,
216
- attrs: this.v3 ? undefined : {
217
- columns: leafColumns,
218
- filter: this.$props.filter || [],
219
- sort: this.$props.sort,
220
- ariaRowIndex: this.columnsMap.length + 1,
221
- grid: this,
222
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
223
- cellRender: this.$props.filterCellRender,
224
- isRtl: this.isRtl
225
- },
226
- filter: this.$props.filter || [],
227
- onFilterchange: this.filterChange,
228
- on: this.v3 ? undefined : {
229
- "filterchange": this.filterChange
230
- },
231
- sort: this.$props.sort,
232
- ariaRowIndex: this.columnsMap.length + 1,
233
- grid: this,
234
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
235
- cellRender: this.$props.filterCellRender,
236
- isRtl: this.isRtl
237
- }) : undefined
238
- },
239
- sort: this.$props.sort,
240
- filter: filterToPass,
241
- sortable: this.$props.sortable,
242
- reorderable: reorderable,
243
- filterable: filterable,
244
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
245
- onSortChange: this.sortChange,
246
- on: this.v3 ? undefined : {
247
- "sortChange": this.sortChange,
248
- "selectionchange": this.onHeaderSelectionChange,
249
- "filterChange": this.columnMenuFilterChange,
250
- "pressHandler": this.dragLogic.pressHandler,
251
- "dragHandler": this.dragLogic.dragHandler,
252
- "releaseHandler": this.dragLogic.releaseHandler
253
- },
254
- onSelectionchange: this.onHeaderSelectionChange,
255
- columns: this.extendedColumn,
256
- columnsMap: this.columnsMap,
257
- cellRender: this.$props.headerCellRender,
258
- columnResize: this.columnResize,
259
- columnMenu: this.$props.columnMenu,
260
- columnMenuFilter: this.$props.columnMenuFilter,
261
- onFilterChange: this.columnMenuFilterChange,
262
- onPressHandler: this.dragLogic.pressHandler,
263
- onDragHandler: this.dragLogic.dragHandler,
264
- onReleaseHandler: this.dragLogic.releaseHandler,
265
- filterRow: filterable ? h(FilterRow, {
266
- columns: leafColumns,
267
- attrs: this.v3 ? undefined : {
268
- columns: leafColumns,
269
- filter: this.$props.filter || [],
270
- sort: this.$props.sort,
271
- ariaRowIndex: this.columnsMap.length + 1,
272
- grid: this,
273
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
274
- cellRender: this.$props.filterCellRender,
275
- isRtl: this.isRtl
276
- },
277
- filter: this.$props.filter || [],
278
- onFilterchange: this.filterChange,
279
- on: this.v3 ? undefined : {
280
- "filterchange": this.filterChange
281
- },
282
- sort: this.$props.sort,
283
- ariaRowIndex: this.columnsMap.length + 1,
284
- grid: this,
285
- filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
286
- cellRender: this.$props.filterCellRender,
287
- isRtl: this.isRtl
288
- }) : undefined
289
- }),
222
+ size: this.$props.size,
290
223
  attrs: this.v3 ? undefined : {
291
- headerRow: h(kendo_vue_data_tools_1.HeaderRow, {
224
+ size: this.$props.size,
225
+ headerRow:
226
+ // @ts-ignore
227
+ h(kendo_vue_data_tools_1.HeaderRow, {
292
228
  grid: this,
293
229
  attrs: this.v3 ? undefined : {
294
230
  grid: this,
295
231
  sort: this.$props.sort,
296
232
  filter: filterToPass,
297
233
  sortable: this.$props.sortable,
234
+ selectedField: this.$props.selectedField,
298
235
  reorderable: reorderable,
299
236
  filterable: filterable,
300
237
  filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
@@ -304,9 +241,12 @@ var TreeListVue2 = {
304
241
  columnResize: this.columnResize,
305
242
  columnMenu: this.$props.columnMenu,
306
243
  columnMenuFilter: this.$props.columnMenuFilter,
307
- filterRow: filterable ? h(FilterRow, {
308
- columns: leafColumns,
244
+ filterRow: filterable ?
245
+ // @ts-ignore
246
+ h(FilterRow, {
247
+ size: this.$props.size,
309
248
  attrs: this.v3 ? undefined : {
249
+ size: this.$props.size,
310
250
  columns: leafColumns,
311
251
  filter: this.$props.filter || [],
312
252
  sort: this.$props.sort,
@@ -316,6 +256,7 @@ var TreeListVue2 = {
316
256
  cellRender: this.$props.filterCellRender,
317
257
  isRtl: this.isRtl
318
258
  },
259
+ columns: leafColumns,
319
260
  filter: this.$props.filter || [],
320
261
  onFilterchange: this.filterChange,
321
262
  on: this.v3 ? undefined : {
@@ -332,6 +273,7 @@ var TreeListVue2 = {
332
273
  sort: this.$props.sort,
333
274
  filter: filterToPass,
334
275
  sortable: this.$props.sortable,
276
+ selectedField: this.$props.selectedField,
335
277
  reorderable: reorderable,
336
278
  filterable: filterable,
337
279
  filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
@@ -356,8 +298,9 @@ var TreeListVue2 = {
356
298
  onDragHandler: this.dragLogic.dragHandler,
357
299
  onReleaseHandler: this.dragLogic.releaseHandler,
358
300
  filterRow: filterable ? h(FilterRow, {
359
- columns: leafColumns,
301
+ size: this.$props.size,
360
302
  attrs: this.v3 ? undefined : {
303
+ size: this.$props.size,
361
304
  columns: leafColumns,
362
305
  filter: this.$props.filter || [],
363
306
  sort: this.$props.sort,
@@ -367,6 +310,7 @@ var TreeListVue2 = {
367
310
  cellRender: this.$props.filterCellRender,
368
311
  isRtl: this.isRtl
369
312
  },
313
+ columns: leafColumns,
370
314
  filter: this.$props.filter || [],
371
315
  onFilterchange: this.filterChange,
372
316
  on: this.v3 ? undefined : {
@@ -382,6 +326,104 @@ var TreeListVue2 = {
382
326
  }),
383
327
  columnResize: this.columnResize
384
328
  },
329
+ headerRow: h(kendo_vue_data_tools_1.HeaderRow, {
330
+ grid: this,
331
+ attrs: this.v3 ? undefined : {
332
+ grid: this,
333
+ sort: this.$props.sort,
334
+ filter: filterToPass,
335
+ sortable: this.$props.sortable,
336
+ selectedField: this.$props.selectedField,
337
+ reorderable: reorderable,
338
+ filterable: filterable,
339
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
340
+ columns: this.extendedColumn,
341
+ columnsMap: this.columnsMap,
342
+ cellRender: this.$props.headerCellRender,
343
+ columnResize: this.columnResize,
344
+ columnMenu: this.$props.columnMenu,
345
+ columnMenuFilter: this.$props.columnMenuFilter,
346
+ filterRow: filterable ? h(FilterRow, {
347
+ size: this.$props.size,
348
+ attrs: this.v3 ? undefined : {
349
+ size: this.$props.size,
350
+ columns: leafColumns,
351
+ filter: this.$props.filter || [],
352
+ sort: this.$props.sort,
353
+ ariaRowIndex: this.columnsMap.length + 1,
354
+ grid: this,
355
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
356
+ cellRender: this.$props.filterCellRender,
357
+ isRtl: this.isRtl
358
+ },
359
+ columns: leafColumns,
360
+ filter: this.$props.filter || [],
361
+ onFilterchange: this.filterChange,
362
+ on: this.v3 ? undefined : {
363
+ "filterchange": this.filterChange
364
+ },
365
+ sort: this.$props.sort,
366
+ ariaRowIndex: this.columnsMap.length + 1,
367
+ grid: this,
368
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
369
+ cellRender: this.$props.filterCellRender,
370
+ isRtl: this.isRtl
371
+ }) : undefined
372
+ },
373
+ sort: this.$props.sort,
374
+ filter: filterToPass,
375
+ sortable: this.$props.sortable,
376
+ selectedField: this.$props.selectedField,
377
+ reorderable: reorderable,
378
+ filterable: filterable,
379
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
380
+ onSortChange: this.sortChange,
381
+ on: this.v3 ? undefined : {
382
+ "sortChange": this.sortChange,
383
+ "selectionchange": this.onHeaderSelectionChange,
384
+ "filterChange": this.columnMenuFilterChange,
385
+ "pressHandler": this.dragLogic.pressHandler,
386
+ "dragHandler": this.dragLogic.dragHandler,
387
+ "releaseHandler": this.dragLogic.releaseHandler
388
+ },
389
+ onSelectionchange: this.onHeaderSelectionChange,
390
+ columns: this.extendedColumn,
391
+ columnsMap: this.columnsMap,
392
+ cellRender: this.$props.headerCellRender,
393
+ columnResize: this.columnResize,
394
+ columnMenu: this.$props.columnMenu,
395
+ columnMenuFilter: this.$props.columnMenuFilter,
396
+ onFilterChange: this.columnMenuFilterChange,
397
+ onPressHandler: this.dragLogic.pressHandler,
398
+ onDragHandler: this.dragLogic.dragHandler,
399
+ onReleaseHandler: this.dragLogic.releaseHandler,
400
+ filterRow: filterable ? h(FilterRow, {
401
+ size: this.$props.size,
402
+ attrs: this.v3 ? undefined : {
403
+ size: this.$props.size,
404
+ columns: leafColumns,
405
+ filter: this.$props.filter || [],
406
+ sort: this.$props.sort,
407
+ ariaRowIndex: this.columnsMap.length + 1,
408
+ grid: this,
409
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
410
+ cellRender: this.$props.filterCellRender,
411
+ isRtl: this.isRtl
412
+ },
413
+ columns: leafColumns,
414
+ filter: this.$props.filter || [],
415
+ onFilterchange: this.filterChange,
416
+ on: this.v3 ? undefined : {
417
+ "filterchange": this.filterChange
418
+ },
419
+ sort: this.$props.sort,
420
+ ariaRowIndex: this.columnsMap.length + 1,
421
+ grid: this,
422
+ filterOperators: this.$props.filterOperators || kendo_vue_data_tools_1.operators,
423
+ cellRender: this.$props.filterCellRender,
424
+ isRtl: this.isRtl
425
+ }) : undefined
426
+ }),
385
427
  columnResize: this.columnResize
386
428
  });
387
429
  var wrapperStyles = this.$props.wrapperStyle || {};
@@ -438,7 +480,8 @@ var TreeListVue2 = {
438
480
  }
439
481
  });
440
482
  }
441
- return h(TreeListCell_1.TreeListCell, {
483
+ var CurrentCell = this.selectedField && column.field === this.selectedField ? TreeListSelectionCell_1.TreeListSelectionCell : TreeListCell_1.TreeListCell;
484
+ return h(CurrentCell, {
442
485
  key: columnKey,
443
486
  id: kendo_vue_data_tools_1.tableKeyboardNavigationTools.generateNavigatableId("".concat(rowId, "-").concat(String(columnIndex)), idPrefix),
444
487
  attrs: this.v3 ? undefined : {
@@ -660,8 +703,9 @@ var TreeListVue2 = {
660
703
  return [row];
661
704
  } : [row]) : row;
662
705
  }, this) || h("tr", {
663
- "class": "k-grid-norecords"
706
+ "class": "k-table-row k-grid-norecords"
664
707
  }, [h("td", {
708
+ "class": 'k-table-td',
665
709
  colSpan: leafColumns.length,
666
710
  attrs: this.v3 ? undefined : {
667
711
  colSpan: leafColumns.length
@@ -695,20 +739,22 @@ var TreeListVue2 = {
695
739
  // @ts-ignore
696
740
  var defaultPagerRendering = this.$props.pageable && h(kendo_vue_data_tools_1.Pager, {
697
741
  "class": 'k-grid-pager',
698
- onPagesizechange: this.pageChangeHandler,
699
- on: this.v3 ? undefined : {
700
- "pagesizechange": this.pageChangeHandler,
701
- "pagechange": this.pageChangeHandler
702
- },
703
- onPagechange: this.pageChangeHandler,
704
- total: total,
742
+ size: this.$props.size,
705
743
  attrs: this.v3 ? undefined : {
744
+ size: this.$props.size,
706
745
  total: total,
707
746
  skip: this.$props.skip || 0,
708
747
  pageSize: this.$props.take || 10,
709
748
  messagesMap: main_2.pagerMessagesMap,
710
749
  settings: (0, kendo_vue_data_tools_1.normalize)(this.$props.pageable || {})
711
750
  },
751
+ onPagesizechange: this.pageChangeHandler,
752
+ on: this.v3 ? undefined : {
753
+ "pagesizechange": this.pageChangeHandler,
754
+ "pagechange": this.pageChangeHandler
755
+ },
756
+ onPagechange: this.pageChangeHandler,
757
+ total: total,
712
758
  skip: this.$props.skip || 0,
713
759
  pageSize: this.$props.take || 10,
714
760
  messagesMap: main_2.pagerMessagesMap,
@@ -762,9 +808,7 @@ var TreeListVue2 = {
762
808
  // @ts-ignore function children
763
809
  h(TreeListNav_1.TreeListNav, {
764
810
  style: _this2.$props.wrapperStyle,
765
- "class": (0, kendo_vue_common_1.classNames)('k-grid', _this2.$props.className, {
766
- 'k-treelist-scrollable': scrollable !== 'none'
767
- }),
811
+ "class": _this2.wrapperClass,
768
812
  currentData: flattedData,
769
813
  attrs: _this2.v3 ? undefined : {
770
814
  currentData: flattedData,
@@ -796,7 +840,9 @@ var TreeListVue2 = {
796
840
  // onRelease={this.selectionRelease}
797
841
  // >
798
842
  h("table", {
843
+ "class": _this2.gridTableClass
799
844
  // {...tableProps}
845
+ ,
800
846
  style: __assign(__assign({}, tableProps.style || {}), {
801
847
  userSelect: tableUserSelect
802
848
  }),
@@ -805,6 +851,7 @@ var TreeListVue2 = {
805
851
  role: 'presentation'
806
852
  }
807
853
  }, [colGroups, header, h("tbody", {
854
+ "class": 'k-table-tbody',
808
855
  "data-keyboardnavbody": true,
809
856
  attrs: _this2.v3 ? undefined : {
810
857
  "data-keyboardnavbody": true,
@@ -817,6 +864,7 @@ var TreeListVue2 = {
817
864
  } : [_this2.$props.toolbar && h("div", {
818
865
  "class": "k-toolbar k-grid-toolbar"
819
866
  }, [toolbar]), h("table", {
867
+ "class": _this2.gridTableClass,
820
868
  style: __assign(__assign({}, tableProps.style || {}), {
821
869
  userSelect: tableUserSelect
822
870
  }),
@@ -825,6 +873,7 @@ var TreeListVue2 = {
825
873
  role: 'presentation'
826
874
  }
827
875
  }, [colGroups, header, h("tbody", {
876
+ "class": 'k-table-tbody',
828
877
  "data-keyboardnavbody": true,
829
878
  attrs: _this2.v3 ? undefined : {
830
879
  "data-keyboardnavbody": true,
@@ -834,9 +883,7 @@ var TreeListVue2 = {
834
883
  }, [body])]), pager, clues])];
835
884
  } : [h(TreeListNav_1.TreeListNav, {
836
885
  style: _this2.$props.wrapperStyle,
837
- "class": (0, kendo_vue_common_1.classNames)('k-grid', _this2.$props.className, {
838
- 'k-treelist-scrollable': scrollable !== 'none'
839
- }),
886
+ "class": _this2.wrapperClass,
840
887
  currentData: flattedData,
841
888
  attrs: _this2.v3 ? undefined : {
842
889
  currentData: flattedData,
@@ -862,6 +909,7 @@ var TreeListVue2 = {
862
909
  return [_this2.$props.toolbar && h("div", {
863
910
  "class": "k-toolbar k-grid-toolbar"
864
911
  }, [toolbar]), h("table", {
912
+ "class": _this2.gridTableClass,
865
913
  style: __assign(__assign({}, tableProps.style || {}), {
866
914
  userSelect: tableUserSelect
867
915
  }),
@@ -870,6 +918,7 @@ var TreeListVue2 = {
870
918
  role: 'presentation'
871
919
  }
872
920
  }, [colGroups, header, h("tbody", {
921
+ "class": 'k-table-tbody',
873
922
  "data-keyboardnavbody": true,
874
923
  attrs: _this2.v3 ? undefined : {
875
924
  "data-keyboardnavbody": true,
@@ -880,6 +929,7 @@ var TreeListVue2 = {
880
929
  } : [_this2.$props.toolbar && h("div", {
881
930
  "class": "k-toolbar k-grid-toolbar"
882
931
  }, [toolbar]), h("table", {
932
+ "class": _this2.gridTableClass,
883
933
  style: __assign(__assign({}, tableProps.style || {}), {
884
934
  userSelect: tableUserSelect
885
935
  }),
@@ -888,6 +938,7 @@ var TreeListVue2 = {
888
938
  role: 'presentation'
889
939
  }
890
940
  }, [colGroups, header, h("tbody", {
941
+ "class": 'k-table-tbody',
891
942
  "data-keyboardnavbody": true,
892
943
  attrs: _this2.v3 ? undefined : {
893
944
  "data-keyboardnavbody": true,
@@ -1110,18 +1161,17 @@ var TreeListVue2 = {
1110
1161
  selectionChange: function selectionChange(options) {
1111
1162
  var event = options.event,
1112
1163
  item = options.item,
1113
- dataIndex = options.dataIndex,
1114
- columnIndex = options.columnIndex;
1164
+ columnIndex = options.columnIndex; // dataIndex,
1115
1165
  var _a = (0, kendo_vue_data_tools_1.getSelectionOptions)(this.$props.selectable),
1116
1166
  mode = _a.mode,
1117
1167
  cell = _a.cell;
1118
- var selectionEvent = __assign(__assign({}, this.getArguments(event.event)), {
1168
+ var selectionEvent = __assign(__assign({}, this.getArguments(event)), {
1119
1169
  dataItem: item.dataItem,
1120
1170
  level: item.level,
1121
1171
  startColIndex: columnIndex,
1122
1172
  endColIndex: columnIndex,
1123
- startRowIndex: dataIndex,
1124
- endRowIndex: dataIndex,
1173
+ // startRowIndex: dataIndex,
1174
+ // endRowIndex: dataIndex,
1125
1175
  dataItems: this.getLeafDataItems(),
1126
1176
  altKey: false,
1127
1177
  ctrlKey: false,
@@ -1136,15 +1186,13 @@ var TreeListVue2 = {
1136
1186
  this.$emit('selectionchange', selectionEvent);
1137
1187
  },
1138
1188
  onHeaderSelectionChange: function onHeaderSelectionChange(event) {
1139
- if (this.$props.onHeaderSelectionChange) {
1140
- var selectionEvent = {
1141
- field: event.field,
1142
- event: event.event,
1143
- component: this,
1144
- dataItems: this.getLeafDataItems()
1145
- };
1146
- this.$emit('headerselectionchange', selectionEvent);
1147
- }
1189
+ var selectionEvent = {
1190
+ field: event.field,
1191
+ event: event.event,
1192
+ component: this,
1193
+ dataItems: this.getLeafDataItems()
1194
+ };
1195
+ this.$emit('headerselectionchange', selectionEvent);
1148
1196
  },
1149
1197
  selectionRelease: function selectionRelease(event) {
1150
1198
  if (this.$props.onSelectionChange) {
@@ -29,7 +29,14 @@ export interface TreeListBooleanEditorData {
29
29
  /**
30
30
  * @hidden
31
31
  */
32
- export interface TreeListBooleanEditorAll extends TreeListBooleanEditorMethods, TreeListBooleanEditorData, TreeListCellProps {
32
+ export interface TreeListBooleanEditorComputed {
33
+ [key: string]: any;
34
+ tdClass: object;
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ export interface TreeListBooleanEditorAll extends TreeListBooleanEditorMethods, TreeListBooleanEditorData, TreeListCellProps, TreeListBooleanEditorComputed {
33
40
  }
34
41
  /**
35
42
  * @hidden
@@ -101,6 +101,15 @@ var TreeListBooleanEditorVue2 = {
101
101
  });
102
102
  }
103
103
  },
104
+ computed: {
105
+ tdClass: function tdClass() {
106
+ var _a;
107
+ var className = this.$props.className;
108
+ return _a = {
109
+ 'k-table-td': true
110
+ }, _a[className] = className, _a;
111
+ }
112
+ },
104
113
  // @ts-ignore
105
114
  setup: !isV3 ? undefined : function () {
106
115
  var v3 = !!isV3;
@@ -133,7 +142,7 @@ var TreeListBooleanEditorVue2 = {
133
142
  "data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
134
143
  "data-keyboardnavid": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_ID]
135
144
  },
136
- "class": this.$props.className,
145
+ "class": this.tdClass,
137
146
  role: 'gridcell',
138
147
  "aria-colindex": this.$props.ariaColumnIndex,
139
148
  "aria-selected": this.$props.isSelected,
@@ -29,7 +29,14 @@ export interface TreeListDateEditorData {
29
29
  /**
30
30
  * @hidden
31
31
  */
32
- export interface TreeListDateEditorAll extends TreeListDateEditorMethods, TreeListDateEditorData, TreeListCellProps {
32
+ export interface TreeListDateEditorComputed {
33
+ [key: string]: any;
34
+ tdClass: object;
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ export interface TreeListDateEditorAll extends TreeListDateEditorMethods, TreeListDateEditorData, TreeListCellProps, TreeListDateEditorComputed {
33
40
  }
34
41
  /**
35
42
  * @hidden
@@ -94,6 +94,15 @@ var TreeListDateEditorVue2 = {
94
94
  });
95
95
  }
96
96
  },
97
+ computed: {
98
+ tdClass: function tdClass() {
99
+ var _a;
100
+ var className = this.$props.className;
101
+ return _a = {
102
+ 'k-table-td': true
103
+ }, _a[className] = className, _a;
104
+ }
105
+ },
97
106
  // @ts-ignore
98
107
  setup: !isV3 ? undefined : function () {
99
108
  var v3 = !!isV3;
@@ -124,7 +133,7 @@ var TreeListDateEditorVue2 = {
124
133
  "data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
125
134
  "data-keyboardnavid": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_ID]
126
135
  },
127
- "class": this.$props.className,
136
+ "class": this.tdClass,
128
137
  role: 'gridcell',
129
138
  "aria-colindex": this.$props.ariaColumnIndex,
130
139
  "aria-selected": this.$props.isSelected,
@@ -29,7 +29,14 @@ export interface TreeListNumericEditorData {
29
29
  /**
30
30
  * @hidden
31
31
  */
32
- export interface TreeListNumericEditorAll extends TreeListNumericEditorMethods, TreeListNumericEditorData, TreeListCellProps {
32
+ export interface TreeListNumericEditorComputed {
33
+ [key: string]: any;
34
+ tdClass: object;
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ export interface TreeListNumericEditorAll extends TreeListNumericEditorMethods, TreeListNumericEditorData, TreeListCellProps, TreeListNumericEditorComputed {
33
40
  }
34
41
  /**
35
42
  * @hidden
@@ -54,6 +54,15 @@ var TreeListNumericEditorVue2 = {
54
54
  inputId: (0, kendo_vue_common_1.guid)()
55
55
  };
56
56
  },
57
+ computed: {
58
+ tdClass: function tdClass() {
59
+ var _a;
60
+ var className = this.$props.className;
61
+ return _a = {
62
+ 'k-table-td': true
63
+ }, _a[className] = className, _a;
64
+ }
65
+ },
57
66
  mounted: function mounted() {
58
67
  var input = this.$el && this.$el.querySelector('input');
59
68
  if (!input || input === document.activeElement || !this.focusInputOnMount) {
@@ -124,7 +133,7 @@ var TreeListNumericEditorVue2 = {
124
133
  "data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
125
134
  "data-keyboardnavid": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_ID]
126
135
  },
127
- "class": this.$props.className,
136
+ "class": this.tdClass,
128
137
  role: 'gridcell',
129
138
  "aria-colindex": this.$props.ariaColumnIndex,
130
139
  "aria-selected": this.$props.isSelected,
@@ -30,7 +30,14 @@ export interface TreeListTextEditorData {
30
30
  /**
31
31
  * @hidden
32
32
  */
33
- export interface TreeListTextEditorAll extends TreeListTextEditorMethods, TreeListTextEditorData, TreeListCellProps {
33
+ export interface TreeListTextEditorComputed {
34
+ [key: string]: any;
35
+ tdClass: object;
36
+ }
37
+ /**
38
+ * @hidden
39
+ */
40
+ export interface TreeListTextEditorAll extends TreeListTextEditorMethods, TreeListTextEditorData, TreeListCellProps, TreeListTextEditorComputed {
34
41
  }
35
42
  /**
36
43
  * @hidden
@@ -103,6 +103,15 @@ var TreeListTextEditorVue2 = {
103
103
  });
104
104
  }
105
105
  },
106
+ computed: {
107
+ tdClass: function tdClass() {
108
+ var _a;
109
+ var className = this.$props.className;
110
+ return _a = {
111
+ 'k-table-td': true
112
+ }, _a[className] = className, _a;
113
+ }
114
+ },
106
115
  // @ts-ignore
107
116
  setup: !isV3 ? undefined : function () {
108
117
  var v3 = !!isV3;
@@ -133,7 +142,7 @@ var TreeListTextEditorVue2 = {
133
142
  "data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
134
143
  "data-keyboardnavid": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_ID]
135
144
  },
136
- "class": this.$props.className,
145
+ "class": this.tdClass,
137
146
  role: 'gridcell',
138
147
  "aria-colindex": this.$props.ariaColumnIndex,
139
148
  "aria-selected": this.$props.isSelected,
@@ -9,7 +9,7 @@ import { TreeListCellProps } from '../interfaces/TreeListCellProps';
9
9
  */
10
10
  export interface TreeListCellComputed {
11
11
  [key: string]: any;
12
- wrapperClasses: object;
12
+ wrapperClass: object;
13
13
  }
14
14
  /**
15
15
  * @hidden