@progress/kendo-vue-treelist 3.6.4 → 3.7.0-dev.202210250731

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 (77) hide show
  1. package/dist/cdn/js/kendo-vue-treelist.js +1 -1
  2. package/dist/es/TreeList.js +345 -370
  3. package/dist/es/TreeListNav.js +4 -4
  4. package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
  5. package/dist/es/cells/EditCells/TreeListBooleanEditor.js +20 -4
  6. package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +1 -1
  7. package/dist/es/cells/EditCells/TreeListDateEditor.js +12 -5
  8. package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
  9. package/dist/es/cells/EditCells/TreeListNumericEditor.js +12 -5
  10. package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +2 -1
  11. package/dist/es/cells/EditCells/TreeListTextEditor.js +25 -6
  12. package/dist/es/cells/FilterCells/TreeListBooleanFilter.js +4 -17
  13. package/dist/es/cells/FilterCells/TreeListDateFilter.js +4 -17
  14. package/dist/es/cells/FilterCells/TreeListNumericFilter.js +4 -17
  15. package/dist/es/cells/FilterCells/TreeListTextFilter.js +4 -17
  16. package/dist/es/cells/TreeListCell.js +27 -38
  17. package/dist/es/cells/TreeListSelectionCell.js +7 -8
  18. package/dist/es/interfaces/TreeListCellProps.d.ts +4 -0
  19. package/dist/es/interfaces/TreeListProps.d.ts +31 -7
  20. package/dist/es/interfaces/events.d.ts +16 -3
  21. package/dist/es/package-metadata.js +1 -1
  22. package/dist/es/rows/{DragClue.d.ts → RowDragClue.d.ts} +0 -0
  23. package/dist/es/rows/{DragClue.js → RowDragClue.js} +14 -3
  24. package/dist/es/rows/TreeListDraggableRow.d.ts +38 -1
  25. package/dist/es/rows/TreeListDraggableRow.js +175 -123
  26. package/dist/es/rows/TreeListRow.js +39 -17
  27. package/dist/esm/TreeList.js +345 -370
  28. package/dist/esm/TreeListNav.js +4 -4
  29. package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
  30. package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +20 -4
  31. package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +1 -1
  32. package/dist/esm/cells/EditCells/TreeListDateEditor.js +12 -5
  33. package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
  34. package/dist/esm/cells/EditCells/TreeListNumericEditor.js +12 -5
  35. package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +2 -1
  36. package/dist/esm/cells/EditCells/TreeListTextEditor.js +25 -6
  37. package/dist/esm/cells/FilterCells/TreeListBooleanFilter.js +4 -17
  38. package/dist/esm/cells/FilterCells/TreeListDateFilter.js +4 -17
  39. package/dist/esm/cells/FilterCells/TreeListNumericFilter.js +4 -17
  40. package/dist/esm/cells/FilterCells/TreeListTextFilter.js +4 -17
  41. package/dist/esm/cells/TreeListCell.js +27 -38
  42. package/dist/esm/cells/TreeListSelectionCell.js +7 -8
  43. package/dist/esm/interfaces/TreeListCellProps.d.ts +4 -0
  44. package/dist/esm/interfaces/TreeListProps.d.ts +31 -7
  45. package/dist/esm/interfaces/events.d.ts +16 -3
  46. package/dist/esm/package-metadata.js +1 -1
  47. package/dist/esm/rows/{DragClue.d.ts → RowDragClue.d.ts} +0 -0
  48. package/dist/esm/rows/{DragClue.js → RowDragClue.js} +14 -3
  49. package/dist/esm/rows/TreeListDraggableRow.d.ts +38 -1
  50. package/dist/esm/rows/TreeListDraggableRow.js +175 -123
  51. package/dist/esm/rows/TreeListRow.js +39 -17
  52. package/dist/npm/TreeList.js +344 -383
  53. package/dist/npm/TreeListNav.js +6 -9
  54. package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
  55. package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +22 -10
  56. package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +1 -1
  57. package/dist/npm/cells/EditCells/TreeListDateEditor.js +14 -12
  58. package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
  59. package/dist/npm/cells/EditCells/TreeListNumericEditor.js +14 -12
  60. package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +2 -1
  61. package/dist/npm/cells/EditCells/TreeListTextEditor.js +27 -12
  62. package/dist/npm/cells/FilterCells/TreeListBooleanFilter.js +4 -22
  63. package/dist/npm/cells/FilterCells/TreeListDateFilter.js +4 -22
  64. package/dist/npm/cells/FilterCells/TreeListNumericFilter.js +4 -22
  65. package/dist/npm/cells/FilterCells/TreeListTextFilter.js +4 -22
  66. package/dist/npm/cells/TreeListCell.js +27 -43
  67. package/dist/npm/cells/TreeListSelectionCell.js +9 -15
  68. package/dist/npm/interfaces/TreeListCellProps.d.ts +4 -0
  69. package/dist/npm/interfaces/TreeListProps.d.ts +31 -7
  70. package/dist/npm/interfaces/events.d.ts +16 -3
  71. package/dist/npm/package-metadata.js +1 -1
  72. package/dist/npm/rows/{DragClue.d.ts → RowDragClue.d.ts} +0 -0
  73. package/dist/npm/rows/{DragClue.js → RowDragClue.js} +16 -6
  74. package/dist/npm/rows/TreeListDraggableRow.d.ts +38 -1
  75. package/dist/npm/rows/TreeListDraggableRow.js +182 -124
  76. package/dist/npm/rows/TreeListRow.js +41 -22
  77. package/package.json +12 -11
@@ -4,53 +4,40 @@ var __assign = undefined && undefined.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
-
8
7
  for (var p in s) {
9
8
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
9
  }
11
10
  }
12
-
13
11
  return t;
14
12
  };
15
-
16
13
  return __assign.apply(this, arguments);
17
14
  };
18
-
19
15
  var __rest = undefined && undefined.__rest || function (s, e) {
20
16
  var t = {};
21
-
22
17
  for (var p in s) {
23
18
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
19
  }
25
-
26
20
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
27
21
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
28
22
  }
29
23
  return t;
30
24
  };
31
-
32
25
  Object.defineProperty(exports, "__esModule", {
33
26
  value: true
34
27
  });
35
- exports.TreeListTextFilterVue2 = exports.TreeListTextFilter = void 0; // @ts-ignore
36
-
28
+ exports.TreeListTextFilterVue2 = exports.TreeListTextFilter = void 0;
29
+ // @ts-ignore
37
30
  var Vue = require("vue");
38
-
39
31
  var allVue = Vue;
40
32
  var gh = allVue.h;
41
33
  var isV3 = allVue.version && allVue.version[0] === '3';
42
34
  var inject = allVue.inject;
43
-
44
35
  var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
45
-
46
36
  var utils_1 = require("./utils");
47
-
48
37
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
49
38
  /**
50
39
  * @hidden
51
40
  */
52
-
53
-
54
41
  var TreeListTextFilterVue2 = {
55
42
  name: 'KendoTreeListTextFilter',
56
43
  inject: {
@@ -77,17 +64,13 @@ var TreeListTextFilterVue2 = {
77
64
  // @ts-ignore
78
65
  render: function render(createElement) {
79
66
  var h = gh || createElement;
80
-
81
67
  var _a = this.$props,
82
- operators = _a.operators,
83
- restProps = __rest(_a, ["operators"]);
84
-
68
+ operators = _a.operators,
69
+ restProps = __rest(_a, ["operators"]);
85
70
  var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
86
-
87
71
  var cellProps = __assign(__assign(__assign({}, (0, utils_1.localizeFilter)(ls, operators || utils_1.textFilterOperators)), restProps), {
88
72
  filterType: 'numeric'
89
73
  });
90
-
91
74
  var filterCell = h(kendo_vue_data_tools_1.FilterCell, __assign({
92
75
  onChange: this.onChange,
93
76
  on: this.v3 ? undefined : {
@@ -109,6 +92,5 @@ exports.TreeListTextFilterVue2 = TreeListTextFilterVue2;
109
92
  /**
110
93
  * @hidden
111
94
  */
112
-
113
95
  var TreeListTextFilter = TreeListTextFilterVue2;
114
96
  exports.TreeListTextFilter = TreeListTextFilter;
@@ -4,40 +4,30 @@ var __assign = undefined && undefined.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
-
8
7
  for (var p in s) {
9
8
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
9
  }
11
10
  }
12
-
13
11
  return t;
14
12
  };
15
-
16
13
  return __assign.apply(this, arguments);
17
14
  };
18
-
19
15
  Object.defineProperty(exports, "__esModule", {
20
16
  value: true
21
17
  });
22
- exports.TreeListCellVue2 = exports.TreeListCell = void 0; // @ts-ignore
23
-
18
+ exports.TreeListCellVue2 = exports.TreeListCell = void 0;
19
+ // @ts-ignore
24
20
  var Vue = require("vue");
25
-
26
21
  var allVue = Vue;
27
22
  var gh = allVue.h;
28
23
  var isV3 = allVue.version && allVue.version[0] === '3';
29
24
  var inject = allVue.inject;
30
-
31
25
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
32
-
33
26
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
34
-
35
27
  var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
36
28
  /**
37
29
  * @hidden
38
30
  */
39
-
40
-
41
31
  var TreeListCellVue2 = {
42
32
  name: 'TreeListCell',
43
33
  // @ts-ignore
@@ -72,21 +62,20 @@ var TreeListCellVue2 = {
72
62
  methods: {
73
63
  onKeyDownHandler: function onKeyDownHandler(event) {
74
64
  var _a = this.$props,
75
- expandable = _a.expandable,
76
- dataItem = _a.dataItem,
77
- level = _a.level;
78
-
65
+ expandable = _a.expandable,
66
+ dataItem = _a.dataItem,
67
+ level = _a.level;
79
68
  if (event.defaultPrevented) {
80
69
  return;
81
70
  }
82
-
83
71
  if (event.keyCode === kendo_vue_common_1.Keys.enter && expandable) {
84
72
  event.preventDefault();
85
73
  this.$emit('expandchange', event, dataItem, level);
86
74
  }
87
75
  },
88
- triggerClick: function triggerClick() {
76
+ triggerClick: function triggerClick(e) {
89
77
  this.$emit('cellclick', {
78
+ event: e,
90
79
  dataItem: this.$props.dataItem,
91
80
  field: this.$props.field
92
81
  });
@@ -115,18 +104,17 @@ var TreeListCellVue2 = {
115
104
  },
116
105
  triggerExpandChange: function triggerExpandChange(event) {
117
106
  var _a = this.$props,
118
- dataItem = _a.dataItem,
119
- level = _a.level;
107
+ dataItem = _a.dataItem,
108
+ level = _a.level;
120
109
  this.$emit('expandchange', event, dataItem, level);
121
110
  }
122
111
  },
123
112
  computed: {
124
113
  wrapperClass: function wrapperClass() {
125
114
  var _a;
126
-
127
115
  var _b = this.$props,
128
- expandable = _b.expandable,
129
- isSelected = _b.isSelected;
116
+ expandable = _b.expandable,
117
+ isSelected = _b.isSelected;
130
118
  return _a = {}, _a['k-text-nowrap'] = expandable, _a['k-selected'] = isSelected, _a;
131
119
  }
132
120
  },
@@ -143,36 +131,32 @@ var TreeListCellVue2 = {
143
131
  render: function render(createElement) {
144
132
  var h = gh || createElement;
145
133
  var _a = this.$props,
146
- hasChildren = _a.hasChildren,
147
- _b = _a.level,
148
- level = _b === void 0 ? [0] : _b,
149
- expanded = _a.expanded,
150
- dataItem = _a.dataItem,
151
- format = _a.format,
152
- id = _a.id,
153
- colSpan = _a.colSpan,
154
- ariaColumnIndex = _a.ariaColumnIndex,
155
- isSelected = _a.isSelected,
156
- expandable = _a.expandable,
157
- field = _a.field;
158
- var data = (0, kendo_vue_common_1.getNestedValue)(field, dataItem);
134
+ hasChildren = _a.hasChildren,
135
+ _b = _a.level,
136
+ level = _b === void 0 ? [0] : _b,
137
+ expanded = _a.expanded,
138
+ dataItem = _a.dataItem,
139
+ format = _a.format,
140
+ id = _a.id,
141
+ colSpan = _a.colSpan,
142
+ ariaColumnIndex = _a.ariaColumnIndex,
143
+ isSelected = _a.isSelected,
144
+ expandable = _a.expandable,
145
+ field = _a.field;
146
+ var data = field ? (0, kendo_vue_common_1.getNestedValue)(field, dataItem) : undefined;
159
147
  var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
160
148
  var intl = (0, kendo_vue_intl_1.provideIntlService)(this);
161
149
  var dataAsString = '';
162
-
163
150
  if (data !== undefined && data !== null) {
164
151
  dataAsString = format ? intl.format(format, data) : data.toString();
165
152
  }
166
-
167
153
  var icons = [];
168
-
169
154
  if (expandable) {
170
155
  icons.push.apply(icons, level.slice(1).map(function (_x) {
171
156
  return h("span", {
172
157
  "class": "k-icon k-i-none"
173
158
  });
174
159
  }, this));
175
-
176
160
  if (hasChildren) {
177
161
  icons.push(h("span", {
178
162
  "class": "k-icon k-i-".concat(expanded ? 'caret-alt-down' : 'caret-alt-right'),
@@ -193,7 +177,6 @@ var TreeListCellVue2 = {
193
177
  }));
194
178
  }
195
179
  }
196
-
197
180
  var defaultRendering = h("td", {
198
181
  "class": this.wrapperClass,
199
182
  colSpan: colSpan,
@@ -212,10 +195,12 @@ var TreeListCellVue2 = {
212
195
  "aria-expanded": hasChildren ? expanded : undefined,
213
196
  "aria-selected": isSelected,
214
197
  role: 'gridcell',
215
- onKeydown: this.onKeyDownHandler,
198
+ onClick: this.triggerClick,
216
199
  on: this.v3 ? undefined : {
200
+ "click": this.triggerClick,
217
201
  "keydown": this.onKeyDownHandler
218
202
  },
203
+ onKeydown: this.onKeyDownHandler,
219
204
  "data-grid-col-index": this.$props.colIndex,
220
205
  tabindex: navAttrs.tabIndex,
221
206
  "data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
@@ -244,6 +229,5 @@ exports.TreeListCellVue2 = TreeListCellVue2;
244
229
  /**
245
230
  * @hidden
246
231
  */
247
-
248
232
  var TreeListCell = TreeListCellVue2;
249
233
  exports.TreeListCell = TreeListCell;
@@ -3,25 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TreeListSelectionCellVue2 = exports.TreeListSelectionCell = void 0; // @ts-ignore
7
-
6
+ exports.TreeListSelectionCellVue2 = exports.TreeListSelectionCell = void 0;
7
+ // @ts-ignore
8
8
  var Vue = require("vue");
9
-
10
9
  var allVue = Vue;
11
10
  var gh = allVue.h;
12
11
  var isV3 = allVue.version && allVue.version[0] === '3';
13
12
  var inject = allVue.inject;
14
-
15
13
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
-
17
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
-
19
15
  var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
20
16
  /**
21
17
  * @hidden
22
18
  */
23
-
24
-
25
19
  var TreeListSelectionCellVue2 = {
26
20
  name: 'TreeListSelectionCell',
27
21
  // @ts-ignore
@@ -55,8 +49,9 @@ var TreeListSelectionCellVue2 = {
55
49
  }
56
50
  },
57
51
  methods: {
58
- triggerClick: function triggerClick() {
52
+ triggerClick: function triggerClick(e) {
59
53
  this.$emit('cellclick', {
54
+ event: e,
60
55
  dataItem: this.$props.dataItem,
61
56
  field: this.$props.field
62
57
  });
@@ -102,11 +97,11 @@ var TreeListSelectionCellVue2 = {
102
97
  render: function render(createElement) {
103
98
  var h = gh || createElement;
104
99
  var _a = this.$props,
105
- dataItem = _a.dataItem,
106
- colSpan = _a.colSpan,
107
- ariaColumnIndex = _a.ariaColumnIndex,
108
- isSelected = _a.isSelected,
109
- field = _a.field;
100
+ dataItem = _a.dataItem,
101
+ colSpan = _a.colSpan,
102
+ ariaColumnIndex = _a.ariaColumnIndex,
103
+ isSelected = _a.isSelected,
104
+ field = _a.field;
110
105
  var selectedValue = (0, kendo_vue_common_1.getNestedValue)(field, dataItem);
111
106
  var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
112
107
  var intl = (0, kendo_vue_intl_1.provideIntlService)(this);
@@ -173,6 +168,5 @@ exports.TreeListSelectionCellVue2 = TreeListSelectionCellVue2;
173
168
  /**
174
169
  * @hidden
175
170
  */
176
-
177
171
  var TreeListSelectionCell = TreeListSelectionCellVue2;
178
172
  exports.TreeListSelectionCell = TreeListSelectionCell;
@@ -28,4 +28,8 @@ export interface TreeListCellProps extends CellProps {
28
28
  * A function for overriding the default rendering of the cell.
29
29
  */
30
30
  render?: any;
31
+ /**
32
+ * If set to true will focus the first input inside the cell.
33
+ */
34
+ focusInputOnMount?: boolean;
31
35
  }
@@ -1,7 +1,7 @@
1
1
  import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
2
- import { TreeListSortChangeEvent, TreeListFilterChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListItemChangeEvent, TreeListDataStateChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListKeyDownEvent } from './events';
2
+ import { TreeListSortChangeEvent, TreeListFilterChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListItemChangeEvent, TreeListDataStateChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListKeyDownEvent, TreeListRowEvent } from './events';
3
3
  import { ScrollMode } from '../ScrollMode';
4
- import { SortSettings as TreeListSortSettings } from '@progress/kendo-vue-data-tools';
4
+ import { SortSettings as TreeListSortSettings, FilterOperators } from '@progress/kendo-vue-data-tools';
5
5
  import { TreeListColumnProps } from './TreeListColumnProps';
6
6
  import { TreeListSelectableSettings } from './TreeListSelectableSettings';
7
7
  /**
@@ -68,6 +68,10 @@ export interface TreeListProps {
68
68
  * Enables the filtering of the columns with their `field` option set
69
69
  */
70
70
  filterable?: boolean;
71
+ /**
72
+ * The filter operators for the filters.
73
+ */
74
+ filterOperators?: FilterOperators;
71
75
  /**
72
76
  * Fires when the TreeList filter is modified through the UI
73
77
  * ([more information and examples]({% slug filtering_treelist %})).
@@ -133,24 +137,40 @@ export interface TreeListProps {
133
137
  /**
134
138
  * Fires when the user clicks a row.
135
139
  */
140
+ onRowclick?: (event: TreeListRowClickEvent) => void;
141
+ /**
142
+ * Fires when the user double clicks a row.
143
+ */
136
144
  /**
137
145
  * @hidden
138
146
  */
139
- onRowClick?: (event: TreeListRowClickEvent) => void;
147
+ onRowdoubleclick?: (event: TreeListRowDoubleClickEvent) => void;
140
148
  /**
141
- * Fires when the user double clicks a row.
149
+ * Fires when the user trigger the context menu of row.
150
+ */
151
+ onRowcontextmenu?: (event: TreeListRowContextMenuEvent) => void;
152
+ /**
153
+ * Fires when the mouse down is triggered on a row.
142
154
  */
143
155
  /**
144
156
  * @hidden
145
157
  */
146
- onRowDoubleClick?: (event: TreeListRowDoubleClickEvent) => void;
158
+ onRowmousedown?: (event: TreeListRowEvent) => void;
147
159
  /**
148
- * Fires when the user trigger the context menu of row.
160
+ * Fires when the mouse up is triggered on a row.
149
161
  */
150
162
  /**
151
163
  * @hidden
152
164
  */
153
- onRowContextMenu?: (event: TreeListRowContextMenuEvent) => void;
165
+ onRowmouseup?: (event: TreeListRowEvent) => void;
166
+ /**
167
+ * Fires when focus event is triggered on a row.
168
+ */
169
+ onRowfocus?: (event: TreeListRowEvent) => void;
170
+ /**
171
+ * Fires when blur event is triggered on a row.
172
+ */
173
+ onRowblur?: (event: TreeListRowEvent) => void;
154
174
  /**
155
175
  * Specifies the name of the field which will provide a Boolean representation of the edit state of the current item
156
176
  * ([more information and examples]({% slug editing_inline_treelist %})).
@@ -252,6 +272,10 @@ export interface TreeListProps {
252
272
  * @hidden
253
273
  */
254
274
  row?: any;
275
+ /**
276
+ * If set to `true`, the rows of the TreeList can be reordered.
277
+ */
278
+ reordableRows?: boolean;
255
279
  /**
256
280
  * If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
257
281
  * By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
@@ -5,7 +5,7 @@ import { TableDragSelectionReleaseEvent, TableKeyDownEvent, TableSelectionChange
5
5
  * Represents the base event object of the TreeList.
6
6
  */
7
7
  export interface TreeListEvent {
8
- target?: any;
8
+ component?: any;
9
9
  event: any;
10
10
  }
11
11
  /**
@@ -118,6 +118,19 @@ export interface TreeListHeaderSelectionChangeEvent extends TreeListEvent {
118
118
  */
119
119
  dataItems: any[];
120
120
  }
121
+ /**
122
+ * Represents the object of the `onRowEvent` TreeList event.
123
+ */
124
+ export interface TreeListRowEvent extends TreeListEvent {
125
+ /**
126
+ * The data item which corresponds to the row.
127
+ */
128
+ dataItem: any;
129
+ /**
130
+ * An array of indexes of each parent and current item in the data tree.
131
+ */
132
+ level: number[];
133
+ }
121
134
  /**
122
135
  * Represents the object of the `onRowClick` TreeList event.
123
136
  */
@@ -182,7 +195,7 @@ interface ColumnDragEvent {
182
195
  /**
183
196
  * An event target.
184
197
  */
185
- target: any;
198
+ component: any;
186
199
  /**
187
200
  * A native DOM event.
188
201
  */
@@ -246,7 +259,7 @@ export interface TreeListRowDragEvent {
246
259
  /**
247
260
  * An event target.
248
261
  */
249
- target: any;
262
+ component: any;
250
263
  /**
251
264
  * The level of the dragged row.
252
265
  * The level represents an array of indexes of each parent and current item in the data tree.
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-treelist',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1665151710,
11
+ publishDate: 1666682894,
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
  };
@@ -3,18 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.RowDragClueVue2 = exports.RowDragClue = void 0; // @ts-ignore
7
-
6
+ exports.RowDragClueVue2 = exports.RowDragClue = void 0;
7
+ // @ts-ignore
8
8
  var Vue = require("vue");
9
-
10
9
  var allVue = Vue;
11
10
  var gh = allVue.h;
12
11
  var isV3 = allVue.version && allVue.version[0] === '3';
13
12
  /**
14
13
  * @hidden
15
14
  */
16
-
17
15
  var RowDragClueVue2 = {
16
+ name: 'KendoRowClue',
18
17
  props: {
19
18
  visible: Boolean,
20
19
  top: Number,
@@ -25,13 +24,24 @@ var RowDragClueVue2 = {
25
24
  computed: {
26
25
  statusClass: function statusClass() {
27
26
  var _a;
28
-
29
27
  return _a = {
30
28
  'k-icon': true,
31
29
  'k-drag-status': true
32
30
  }, _a[this.$props.allowDrop ? 'k-i-plus' : 'k-i-cancel'] = true, _a['k-icon-with-modifier'] = true, _a;
33
31
  }
34
32
  },
33
+ mounted: function mounted() {
34
+ var body = document.body;
35
+ this.windowElement = this.$refs.wrapper;
36
+ body.append(this.windowElement);
37
+ },
38
+ beforeDestroy: !!isV3 ? undefined : function () {
39
+ this.windowElement.remove();
40
+ },
41
+ // @ts-ignore
42
+ beforeUnmount: function beforeUnmount() {
43
+ this.windowElement.remove();
44
+ },
35
45
  // @ts-ignore
36
46
  setup: !isV3 ? undefined : function () {
37
47
  var v3 = !!isV3;
@@ -44,6 +54,7 @@ var RowDragClueVue2 = {
44
54
  var h = gh || createElement;
45
55
  return this.visible && h("div", {
46
56
  "class": "k-header k-drag-clue",
57
+ ref: 'wrapper',
47
58
  style: {
48
59
  display: 'block',
49
60
  position: 'absolute',
@@ -63,6 +74,5 @@ exports.RowDragClueVue2 = RowDragClueVue2;
63
74
  /**
64
75
  * @hidden
65
76
  */
66
-
67
77
  var RowDragClue = RowDragClueVue2;
68
78
  exports.RowDragClue = RowDragClue;
@@ -1 +1,38 @@
1
-
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { TreeListRowProps } from '../interfaces/TreeListRowProps';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface TreeListDraggableRowMethods extends Vue2type {
11
+ onPress: (event: any) => void;
12
+ onDrag: (event: any) => void;
13
+ onRelease: (event: any) => void;
14
+ }
15
+ /**
16
+ * @hidden
17
+ */
18
+ export interface TreeListDraggableRowState {
19
+ element: any | null;
20
+ draggable: any;
21
+ allowDrop: boolean;
22
+ dragged: number[] | null;
23
+ draggedOver: number[] | null;
24
+ }
25
+ /**
26
+ * @hidden
27
+ */
28
+ export interface TreeListDraggableRowAll extends TreeListDraggableRowMethods, TreeListDraggableRowState {
29
+ }
30
+ /**
31
+ * @hidden
32
+ */
33
+ declare let TreeListDraggableRowVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<TreeListDraggableRowAll>, {}, RecordPropsDefinition<TreeListRowProps>>;
34
+ /**
35
+ * @hidden
36
+ */
37
+ declare const TreeListDraggableRow: DefineComponent<TreeListRowProps, any, {}, {}, TreeListDraggableRowMethods, {}, {}, {}, string, TreeListRowProps, TreeListRowProps, {}>;
38
+ export { TreeListDraggableRow, TreeListDraggableRowVue2 };