@progress/kendo-vue-treelist 3.6.4 → 3.6.5-dev.202210181442
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-treelist.js +1 -1
- package/dist/es/TreeList.js +343 -363
- package/dist/es/TreeListNav.js +4 -4
- package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
- package/dist/es/cells/EditCells/TreeListBooleanEditor.js +20 -4
- package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +1 -1
- package/dist/es/cells/EditCells/TreeListDateEditor.js +12 -5
- package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
- package/dist/es/cells/EditCells/TreeListNumericEditor.js +12 -5
- package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +2 -1
- package/dist/es/cells/EditCells/TreeListTextEditor.js +25 -6
- package/dist/es/cells/FilterCells/TreeListBooleanFilter.js +4 -17
- package/dist/es/cells/FilterCells/TreeListDateFilter.js +4 -17
- package/dist/es/cells/FilterCells/TreeListNumericFilter.js +4 -17
- package/dist/es/cells/FilterCells/TreeListTextFilter.js +4 -17
- package/dist/es/cells/TreeListCell.js +27 -38
- package/dist/es/cells/TreeListSelectionCell.js +7 -8
- package/dist/es/interfaces/TreeListCellProps.d.ts +4 -0
- package/dist/es/interfaces/TreeListProps.d.ts +27 -7
- package/dist/es/interfaces/events.d.ts +16 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rows/DragClue.js +0 -3
- package/dist/es/rows/TreeListRow.js +39 -17
- package/dist/esm/TreeList.js +343 -363
- package/dist/esm/TreeListNav.js +4 -4
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +20 -4
- package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +1 -1
- package/dist/esm/cells/EditCells/TreeListDateEditor.js +12 -5
- package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
- package/dist/esm/cells/EditCells/TreeListNumericEditor.js +12 -5
- package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +2 -1
- package/dist/esm/cells/EditCells/TreeListTextEditor.js +25 -6
- package/dist/esm/cells/FilterCells/TreeListBooleanFilter.js +4 -17
- package/dist/esm/cells/FilterCells/TreeListDateFilter.js +4 -17
- package/dist/esm/cells/FilterCells/TreeListNumericFilter.js +4 -17
- package/dist/esm/cells/FilterCells/TreeListTextFilter.js +4 -17
- package/dist/esm/cells/TreeListCell.js +27 -38
- package/dist/esm/cells/TreeListSelectionCell.js +7 -8
- package/dist/esm/interfaces/TreeListCellProps.d.ts +4 -0
- package/dist/esm/interfaces/TreeListProps.d.ts +27 -7
- package/dist/esm/interfaces/events.d.ts +16 -3
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/rows/DragClue.js +0 -3
- package/dist/esm/rows/TreeListRow.js +39 -17
- package/dist/npm/TreeList.js +342 -376
- package/dist/npm/TreeListNav.js +6 -9
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +1 -1
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +22 -10
- package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +1 -1
- package/dist/npm/cells/EditCells/TreeListDateEditor.js +14 -12
- package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +1 -1
- package/dist/npm/cells/EditCells/TreeListNumericEditor.js +14 -12
- package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +2 -1
- package/dist/npm/cells/EditCells/TreeListTextEditor.js +27 -12
- package/dist/npm/cells/FilterCells/TreeListBooleanFilter.js +4 -22
- package/dist/npm/cells/FilterCells/TreeListDateFilter.js +4 -22
- package/dist/npm/cells/FilterCells/TreeListNumericFilter.js +4 -22
- package/dist/npm/cells/FilterCells/TreeListTextFilter.js +4 -22
- package/dist/npm/cells/TreeListCell.js +27 -43
- package/dist/npm/cells/TreeListSelectionCell.js +9 -15
- package/dist/npm/interfaces/TreeListCellProps.d.ts +4 -0
- package/dist/npm/interfaces/TreeListProps.d.ts +27 -7
- package/dist/npm/interfaces/events.d.ts +16 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rows/DragClue.js +2 -6
- package/dist/npm/rows/TreeListRow.js +41 -22
- package/package.json +12 -11
|
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
|
|
|
2
2
|
__assign = Object.assign || function (t) {
|
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
4
|
s = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var p in s) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
};
|
|
13
|
+
// @ts-ignore
|
|
18
14
|
import * as Vue from 'vue';
|
|
19
15
|
var allVue = Vue;
|
|
20
16
|
var gh = allVue.h;
|
|
@@ -26,7 +22,6 @@ import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-v
|
|
|
26
22
|
/**
|
|
27
23
|
* @hidden
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
25
|
var TreeListCellVue2 = {
|
|
31
26
|
name: 'TreeListCell',
|
|
32
27
|
// @ts-ignore
|
|
@@ -61,21 +56,20 @@ var TreeListCellVue2 = {
|
|
|
61
56
|
methods: {
|
|
62
57
|
onKeyDownHandler: function onKeyDownHandler(event) {
|
|
63
58
|
var _a = this.$props,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
expandable = _a.expandable,
|
|
60
|
+
dataItem = _a.dataItem,
|
|
61
|
+
level = _a.level;
|
|
68
62
|
if (event.defaultPrevented) {
|
|
69
63
|
return;
|
|
70
64
|
}
|
|
71
|
-
|
|
72
65
|
if (event.keyCode === Keys.enter && expandable) {
|
|
73
66
|
event.preventDefault();
|
|
74
67
|
this.$emit('expandchange', event, dataItem, level);
|
|
75
68
|
}
|
|
76
69
|
},
|
|
77
|
-
triggerClick: function triggerClick() {
|
|
70
|
+
triggerClick: function triggerClick(e) {
|
|
78
71
|
this.$emit('cellclick', {
|
|
72
|
+
event: e,
|
|
79
73
|
dataItem: this.$props.dataItem,
|
|
80
74
|
field: this.$props.field
|
|
81
75
|
});
|
|
@@ -104,18 +98,17 @@ var TreeListCellVue2 = {
|
|
|
104
98
|
},
|
|
105
99
|
triggerExpandChange: function triggerExpandChange(event) {
|
|
106
100
|
var _a = this.$props,
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
dataItem = _a.dataItem,
|
|
102
|
+
level = _a.level;
|
|
109
103
|
this.$emit('expandchange', event, dataItem, level);
|
|
110
104
|
}
|
|
111
105
|
},
|
|
112
106
|
computed: {
|
|
113
107
|
wrapperClass: function wrapperClass() {
|
|
114
108
|
var _a;
|
|
115
|
-
|
|
116
109
|
var _b = this.$props,
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
expandable = _b.expandable,
|
|
111
|
+
isSelected = _b.isSelected;
|
|
119
112
|
return _a = {}, _a['k-text-nowrap'] = expandable, _a['k-selected'] = isSelected, _a;
|
|
120
113
|
}
|
|
121
114
|
},
|
|
@@ -132,36 +125,32 @@ var TreeListCellVue2 = {
|
|
|
132
125
|
render: function render(createElement) {
|
|
133
126
|
var h = gh || createElement;
|
|
134
127
|
var _a = this.$props,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
var data = getNestedValue(field, dataItem);
|
|
128
|
+
hasChildren = _a.hasChildren,
|
|
129
|
+
_b = _a.level,
|
|
130
|
+
level = _b === void 0 ? [0] : _b,
|
|
131
|
+
expanded = _a.expanded,
|
|
132
|
+
dataItem = _a.dataItem,
|
|
133
|
+
format = _a.format,
|
|
134
|
+
id = _a.id,
|
|
135
|
+
colSpan = _a.colSpan,
|
|
136
|
+
ariaColumnIndex = _a.ariaColumnIndex,
|
|
137
|
+
isSelected = _a.isSelected,
|
|
138
|
+
expandable = _a.expandable,
|
|
139
|
+
field = _a.field;
|
|
140
|
+
var data = field ? getNestedValue(field, dataItem) : undefined;
|
|
148
141
|
var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
149
142
|
var intl = provideIntlService(this);
|
|
150
143
|
var dataAsString = '';
|
|
151
|
-
|
|
152
144
|
if (data !== undefined && data !== null) {
|
|
153
145
|
dataAsString = format ? intl.format(format, data) : data.toString();
|
|
154
146
|
}
|
|
155
|
-
|
|
156
147
|
var icons = [];
|
|
157
|
-
|
|
158
148
|
if (expandable) {
|
|
159
149
|
icons.push.apply(icons, level.slice(1).map(function (_x) {
|
|
160
150
|
return h("span", {
|
|
161
151
|
"class": "k-icon k-i-none"
|
|
162
152
|
});
|
|
163
153
|
}, this));
|
|
164
|
-
|
|
165
154
|
if (hasChildren) {
|
|
166
155
|
icons.push(h("span", {
|
|
167
156
|
"class": "k-icon k-i-".concat(expanded ? 'caret-alt-down' : 'caret-alt-right'),
|
|
@@ -182,7 +171,6 @@ var TreeListCellVue2 = {
|
|
|
182
171
|
}));
|
|
183
172
|
}
|
|
184
173
|
}
|
|
185
|
-
|
|
186
174
|
var defaultRendering = h("td", {
|
|
187
175
|
"class": this.wrapperClass,
|
|
188
176
|
colSpan: colSpan,
|
|
@@ -201,10 +189,12 @@ var TreeListCellVue2 = {
|
|
|
201
189
|
"aria-expanded": hasChildren ? expanded : undefined,
|
|
202
190
|
"aria-selected": isSelected,
|
|
203
191
|
role: 'gridcell',
|
|
204
|
-
|
|
192
|
+
onClick: this.triggerClick,
|
|
205
193
|
on: this.v3 ? undefined : {
|
|
194
|
+
"click": this.triggerClick,
|
|
206
195
|
"keydown": this.onKeyDownHandler
|
|
207
196
|
},
|
|
197
|
+
onKeydown: this.onKeyDownHandler,
|
|
208
198
|
"data-grid-col-index": this.$props.colIndex,
|
|
209
199
|
tabindex: navAttrs.tabIndex,
|
|
210
200
|
"data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
|
|
@@ -232,6 +222,5 @@ var TreeListCellVue2 = {
|
|
|
232
222
|
/**
|
|
233
223
|
* @hidden
|
|
234
224
|
*/
|
|
235
|
-
|
|
236
225
|
var TreeListCell = TreeListCellVue2;
|
|
237
226
|
export { TreeListCell, TreeListCellVue2 };
|
|
@@ -10,7 +10,6 @@ import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-v
|
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
var TreeListSelectionCellVue2 = {
|
|
15
14
|
name: 'TreeListSelectionCell',
|
|
16
15
|
// @ts-ignore
|
|
@@ -44,8 +43,9 @@ var TreeListSelectionCellVue2 = {
|
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
methods: {
|
|
47
|
-
triggerClick: function triggerClick() {
|
|
46
|
+
triggerClick: function triggerClick(e) {
|
|
48
47
|
this.$emit('cellclick', {
|
|
48
|
+
event: e,
|
|
49
49
|
dataItem: this.$props.dataItem,
|
|
50
50
|
field: this.$props.field
|
|
51
51
|
});
|
|
@@ -91,11 +91,11 @@ var TreeListSelectionCellVue2 = {
|
|
|
91
91
|
render: function render(createElement) {
|
|
92
92
|
var h = gh || createElement;
|
|
93
93
|
var _a = this.$props,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
dataItem = _a.dataItem,
|
|
95
|
+
colSpan = _a.colSpan,
|
|
96
|
+
ariaColumnIndex = _a.ariaColumnIndex,
|
|
97
|
+
isSelected = _a.isSelected,
|
|
98
|
+
field = _a.field;
|
|
99
99
|
var selectedValue = getNestedValue(field, dataItem);
|
|
100
100
|
var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
101
101
|
var intl = provideIntlService(this);
|
|
@@ -161,6 +161,5 @@ var TreeListSelectionCellVue2 = {
|
|
|
161
161
|
/**
|
|
162
162
|
* @hidden
|
|
163
163
|
*/
|
|
164
|
-
|
|
165
164
|
var TreeListSelectionCell = TreeListSelectionCellVue2;
|
|
166
165
|
export { TreeListSelectionCell, TreeListSelectionCellVue2 };
|
|
@@ -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
|
-
|
|
147
|
+
onRowdoubleclick?: (event: TreeListRowDoubleClickEvent) => void;
|
|
140
148
|
/**
|
|
141
|
-
* Fires when the user
|
|
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
|
-
|
|
158
|
+
onRowmousedown?: (event: TreeListRowEvent) => void;
|
|
147
159
|
/**
|
|
148
|
-
* Fires when the
|
|
160
|
+
* Fires when the mouse up is triggered on a row.
|
|
149
161
|
*/
|
|
150
162
|
/**
|
|
151
163
|
* @hidden
|
|
152
164
|
*/
|
|
153
|
-
|
|
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 %})).
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-treelist',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1666103974,
|
|
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/es/rows/DragClue.js
CHANGED
|
@@ -6,7 +6,6 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
var RowDragClueVue2 = {
|
|
11
10
|
props: {
|
|
12
11
|
visible: Boolean,
|
|
@@ -18,7 +17,6 @@ var RowDragClueVue2 = {
|
|
|
18
17
|
computed: {
|
|
19
18
|
statusClass: function statusClass() {
|
|
20
19
|
var _a;
|
|
21
|
-
|
|
22
20
|
return _a = {
|
|
23
21
|
'k-icon': true,
|
|
24
22
|
'k-drag-status': true
|
|
@@ -55,6 +53,5 @@ var RowDragClueVue2 = {
|
|
|
55
53
|
/**
|
|
56
54
|
* @hidden
|
|
57
55
|
*/
|
|
58
|
-
|
|
59
56
|
var RowDragClue = RowDragClueVue2;
|
|
60
57
|
export { RowDragClue, RowDragClueVue2 };
|
|
@@ -7,14 +7,17 @@ import { getTemplate, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
10
|
var TreeListRowVue2 = {
|
|
12
11
|
name: 'KendoTreeListRow',
|
|
13
12
|
// @ts-ignore
|
|
14
13
|
emits: {
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'contextmenu': null
|
|
14
|
+
'click': null,
|
|
15
|
+
'dblclick': null,
|
|
16
|
+
'contextmenu': null,
|
|
17
|
+
'focus': null,
|
|
18
|
+
'blur': null,
|
|
19
|
+
'mousedown': null,
|
|
20
|
+
'mouseup': null
|
|
18
21
|
},
|
|
19
22
|
props: {
|
|
20
23
|
level: Array,
|
|
@@ -35,8 +38,8 @@ var TreeListRowVue2 = {
|
|
|
35
38
|
computed: {
|
|
36
39
|
wrapperClass: function wrapperClass() {
|
|
37
40
|
var _a = this.$props,
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
isSelected = _a.isSelected,
|
|
42
|
+
isAltRow = _a.isAltRow;
|
|
40
43
|
return {
|
|
41
44
|
'k-master-row': true,
|
|
42
45
|
'k-selected': isSelected,
|
|
@@ -47,13 +50,25 @@ var TreeListRowVue2 = {
|
|
|
47
50
|
},
|
|
48
51
|
methods: {
|
|
49
52
|
handleClick: function handleClick(e) {
|
|
50
|
-
this.$emit('
|
|
53
|
+
this.$emit('click', e);
|
|
51
54
|
},
|
|
52
55
|
handleDoubleClick: function handleDoubleClick(e) {
|
|
53
|
-
this.$emit('
|
|
56
|
+
this.$emit('dblclick', e);
|
|
54
57
|
},
|
|
55
58
|
handleContextMenu: function handleContextMenu(e) {
|
|
56
59
|
this.$emit('contextmenu', e);
|
|
60
|
+
},
|
|
61
|
+
handleFocus: function handleFocus(e) {
|
|
62
|
+
this.$emit('focus', e);
|
|
63
|
+
},
|
|
64
|
+
handleBlur: function handleBlur(e) {
|
|
65
|
+
this.$emit('blur', e);
|
|
66
|
+
},
|
|
67
|
+
handleMousedown: function handleMousedown(e) {
|
|
68
|
+
this.$emit('mousedown', e);
|
|
69
|
+
},
|
|
70
|
+
handleMouseup: function handleMouseup(e) {
|
|
71
|
+
this.$emit('mouseup', e);
|
|
57
72
|
}
|
|
58
73
|
},
|
|
59
74
|
// @ts-ignore
|
|
@@ -68,22 +83,30 @@ var TreeListRowVue2 = {
|
|
|
68
83
|
var h = gh || createElement;
|
|
69
84
|
var defaultSlot = getDefaultSlots(this);
|
|
70
85
|
var _a = this.$props,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
86
|
+
rowHeight = _a.rowHeight,
|
|
87
|
+
expanded = _a.expanded,
|
|
88
|
+
ariaRowIndex = _a.ariaRowIndex,
|
|
89
|
+
level = _a.level,
|
|
90
|
+
ariaSetSize = _a.ariaSetSize,
|
|
91
|
+
ariaPosInSet = _a.ariaPosInSet,
|
|
92
|
+
rowIndex = _a.rowIndex;
|
|
78
93
|
var defaultRendering = h("tr", {
|
|
79
94
|
onClick: this.handleClick,
|
|
80
95
|
on: this.v3 ? undefined : {
|
|
81
96
|
"click": this.handleClick,
|
|
82
97
|
"dblclick": this.handleDoubleClick,
|
|
83
|
-
"contextmenu": this.handleContextMenu
|
|
98
|
+
"contextmenu": this.handleContextMenu,
|
|
99
|
+
"focus": this.handleFocus,
|
|
100
|
+
"blur": this.handleBlur,
|
|
101
|
+
"mousedown": this.handleMousedown,
|
|
102
|
+
"mouseup": this.handleMouseup
|
|
84
103
|
},
|
|
85
104
|
onDblclick: this.handleDoubleClick,
|
|
86
105
|
onContextmenu: this.handleContextMenu,
|
|
106
|
+
onFocus: this.handleFocus,
|
|
107
|
+
onBlur: this.handleBlur,
|
|
108
|
+
onMousedown: this.handleMousedown,
|
|
109
|
+
onMouseup: this.handleMouseup,
|
|
87
110
|
"class": this.wrapperClass,
|
|
88
111
|
style: rowHeight !== undefined ? {
|
|
89
112
|
height: rowHeight + 'px'
|
|
@@ -121,6 +144,5 @@ var TreeListRowVue2 = {
|
|
|
121
144
|
/**
|
|
122
145
|
* @hidden
|
|
123
146
|
*/
|
|
124
|
-
|
|
125
147
|
var TreeListRow = TreeListRowVue2;
|
|
126
148
|
export { TreeListRow, TreeListRowVue2 };
|