@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.
- package/README.md +1 -1
- package/dist/cdn/js/kendo-vue-treelist.js +1 -1
- package/dist/es/TreeList.js +178 -130
- package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
- package/dist/es/cells/EditCells/TreeListBooleanEditor.js +10 -1
- package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +8 -1
- package/dist/es/cells/EditCells/TreeListDateEditor.js +10 -1
- package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
- package/dist/es/cells/EditCells/TreeListNumericEditor.js +10 -1
- package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +8 -1
- package/dist/es/cells/EditCells/TreeListTextEditor.js +10 -1
- package/dist/es/cells/TreeListCell.d.ts +1 -1
- package/dist/es/cells/TreeListCell.js +30 -13
- package/dist/es/cells/TreeListSelectionCell.js +18 -4
- package/dist/es/interfaces/TreeListProps.d.ts +10 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rows/RowDragClue.js +6 -2
- package/dist/es/rows/TreeListRow.js +2 -0
- package/dist/esm/TreeList.js +178 -130
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +10 -1
- package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +8 -1
- package/dist/esm/cells/EditCells/TreeListDateEditor.js +10 -1
- package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
- package/dist/esm/cells/EditCells/TreeListNumericEditor.js +10 -1
- package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +8 -1
- package/dist/esm/cells/EditCells/TreeListTextEditor.js +10 -1
- package/dist/esm/cells/TreeListCell.d.ts +1 -1
- package/dist/esm/cells/TreeListCell.js +30 -13
- package/dist/esm/cells/TreeListSelectionCell.js +18 -4
- package/dist/esm/interfaces/TreeListProps.d.ts +10 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/rows/RowDragClue.js +6 -2
- package/dist/esm/rows/TreeListRow.js +2 -0
- package/dist/npm/TreeList.js +177 -129
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +8 -1
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +10 -1
- package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +8 -1
- package/dist/npm/cells/EditCells/TreeListDateEditor.js +10 -1
- package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +8 -1
- package/dist/npm/cells/EditCells/TreeListNumericEditor.js +10 -1
- package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +8 -1
- package/dist/npm/cells/EditCells/TreeListTextEditor.js +10 -1
- package/dist/npm/cells/TreeListCell.d.ts +1 -1
- package/dist/npm/cells/TreeListCell.js +29 -12
- package/dist/npm/cells/TreeListSelectionCell.js +18 -4
- package/dist/npm/interfaces/TreeListProps.d.ts +10 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rows/RowDragClue.js +6 -2
- package/dist/npm/rows/TreeListRow.js +2 -0
- package/package.json +16 -14
|
@@ -25,6 +25,7 @@ var inject = allVue.inject;
|
|
|
25
25
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
26
26
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
27
27
|
var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
|
|
28
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
28
29
|
/**
|
|
29
30
|
* @hidden
|
|
30
31
|
*/
|
|
@@ -34,7 +35,12 @@ var TreeListCellVue2 = {
|
|
|
34
35
|
emits: {
|
|
35
36
|
cellclick: null,
|
|
36
37
|
cellkeydown: null,
|
|
37
|
-
expandchange: null
|
|
38
|
+
expandchange: null,
|
|
39
|
+
edit: null,
|
|
40
|
+
add: null,
|
|
41
|
+
cancel: null,
|
|
42
|
+
save: null,
|
|
43
|
+
remove: null
|
|
38
44
|
},
|
|
39
45
|
props: {
|
|
40
46
|
id: String,
|
|
@@ -115,7 +121,9 @@ var TreeListCellVue2 = {
|
|
|
115
121
|
var _b = this.$props,
|
|
116
122
|
expandable = _b.expandable,
|
|
117
123
|
isSelected = _b.isSelected;
|
|
118
|
-
return _a = {
|
|
124
|
+
return _a = {
|
|
125
|
+
'k-table-td': true
|
|
126
|
+
}, _a['k-text-nowrap'] = expandable, _a['k-selected'] = isSelected, _a;
|
|
119
127
|
}
|
|
120
128
|
},
|
|
121
129
|
// @ts-ignore
|
|
@@ -153,26 +161,35 @@ var TreeListCellVue2 = {
|
|
|
153
161
|
var icons = [];
|
|
154
162
|
if (expandable) {
|
|
155
163
|
icons.push.apply(icons, level.slice(1).map(function (_x) {
|
|
156
|
-
return h(
|
|
157
|
-
|
|
164
|
+
return h(kendo_vue_common_1.Icon, {
|
|
165
|
+
name: "none",
|
|
166
|
+
attrs: this.v3 ? undefined : {
|
|
167
|
+
name: "none"
|
|
168
|
+
}
|
|
158
169
|
});
|
|
159
170
|
}, this));
|
|
160
171
|
if (hasChildren) {
|
|
161
|
-
icons.push(h(
|
|
162
|
-
|
|
172
|
+
icons.push(h(kendo_vue_common_1.Icon, {
|
|
173
|
+
name: expanded ? 'caret-alt-down' : 'caret-alt-right',
|
|
174
|
+
attrs: this.v3 ? undefined : {
|
|
175
|
+
name: expanded ? 'caret-alt-down' : 'caret-alt-right',
|
|
176
|
+
icon: expanded ? kendo_svg_icons_1.caretAltDownIcon : kendo_svg_icons_1.caretAltRightIcon,
|
|
177
|
+
"data-prevent-selection": true
|
|
178
|
+
},
|
|
179
|
+
icon: expanded ? kendo_svg_icons_1.caretAltDownIcon : kendo_svg_icons_1.caretAltRightIcon,
|
|
163
180
|
key: "expand-collapse",
|
|
164
181
|
onClick: this.triggerExpandChange,
|
|
165
182
|
on: this.v3 ? undefined : {
|
|
166
183
|
"click": this.triggerExpandChange
|
|
167
184
|
},
|
|
168
|
-
"data-prevent-selection": true
|
|
169
|
-
attrs: this.v3 ? undefined : {
|
|
170
|
-
"data-prevent-selection": true
|
|
171
|
-
}
|
|
185
|
+
"data-prevent-selection": true
|
|
172
186
|
}));
|
|
173
187
|
} else {
|
|
174
|
-
icons.push(h(
|
|
175
|
-
|
|
188
|
+
icons.push(h(kendo_vue_common_1.Icon, {
|
|
189
|
+
name: "none",
|
|
190
|
+
attrs: this.v3 ? undefined : {
|
|
191
|
+
name: "none"
|
|
192
|
+
},
|
|
176
193
|
key: icons.length
|
|
177
194
|
}));
|
|
178
195
|
}
|
|
@@ -10,7 +10,6 @@ var allVue = Vue;
|
|
|
10
10
|
var gh = allVue.h;
|
|
11
11
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
12
|
var inject = allVue.inject;
|
|
13
|
-
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
14
13
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
14
|
var kendo_vue_data_tools_1 = require("@progress/kendo-vue-data-tools");
|
|
16
15
|
/**
|
|
@@ -22,7 +21,13 @@ var TreeListSelectionCellVue2 = {
|
|
|
22
21
|
emits: {
|
|
23
22
|
cellclick: null,
|
|
24
23
|
cellkeydown: null,
|
|
25
|
-
expandchange: null
|
|
24
|
+
expandchange: null,
|
|
25
|
+
selectionchange: null,
|
|
26
|
+
edit: null,
|
|
27
|
+
add: null,
|
|
28
|
+
cancel: null,
|
|
29
|
+
save: null,
|
|
30
|
+
remove: null
|
|
26
31
|
},
|
|
27
32
|
props: {
|
|
28
33
|
id: String,
|
|
@@ -33,6 +38,8 @@ var TreeListSelectionCellVue2 = {
|
|
|
33
38
|
colIndex: Number,
|
|
34
39
|
level: Array,
|
|
35
40
|
expanded: Boolean,
|
|
41
|
+
expandable: Boolean,
|
|
42
|
+
hasChildren: Boolean,
|
|
36
43
|
isSelected: Boolean,
|
|
37
44
|
ariaColumnIndex: Number,
|
|
38
45
|
render: [String, Function, Object]
|
|
@@ -80,7 +87,13 @@ var TreeListSelectionCellVue2 = {
|
|
|
80
87
|
},
|
|
81
88
|
handleOnChange: function handleOnChange(event) {
|
|
82
89
|
this.$emit('selectionchange', {
|
|
83
|
-
event: event
|
|
90
|
+
event: event,
|
|
91
|
+
item: {
|
|
92
|
+
dataItem: this.dataItem,
|
|
93
|
+
level: this.level
|
|
94
|
+
},
|
|
95
|
+
field: this.field,
|
|
96
|
+
colIndex: this.colIndex
|
|
84
97
|
});
|
|
85
98
|
}
|
|
86
99
|
},
|
|
@@ -104,7 +117,7 @@ var TreeListSelectionCellVue2 = {
|
|
|
104
117
|
field = _a.field;
|
|
105
118
|
var selectedValue = (0, kendo_vue_common_1.getNestedValue)(field, dataItem);
|
|
106
119
|
var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
107
|
-
|
|
120
|
+
// const intl = provideIntlService(this);
|
|
108
121
|
var defaultRendering = h("td", {
|
|
109
122
|
role: 'gridcell',
|
|
110
123
|
attrs: this.v3 ? undefined : {
|
|
@@ -117,6 +130,7 @@ var TreeListSelectionCellVue2 = {
|
|
|
117
130
|
"data-keyboardnavlevel": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_LEVEL],
|
|
118
131
|
"data-keyboardnavid": navAttrs[kendo_vue_data_tools_1.KEYBOARD_NAV_DATA_ID]
|
|
119
132
|
},
|
|
133
|
+
"class": 'k-table-td',
|
|
120
134
|
colSpan: colSpan,
|
|
121
135
|
"aria-selected": isSelected,
|
|
122
136
|
"aria-colindex": ariaColumnIndex,
|
|
@@ -51,6 +51,16 @@ export interface TreeListProps {
|
|
|
51
51
|
* @hidden
|
|
52
52
|
*/
|
|
53
53
|
editRow?: any;
|
|
54
|
+
/**
|
|
55
|
+
* Configures the `size` of the TreeList.
|
|
56
|
+
*
|
|
57
|
+
* The available options are:
|
|
58
|
+
* - small
|
|
59
|
+
* - medium
|
|
60
|
+
*
|
|
61
|
+
* @default `medium`
|
|
62
|
+
*/
|
|
63
|
+
size?: 'small' | 'medium' | string;
|
|
54
64
|
/**
|
|
55
65
|
* Represents the TreeList toolbar component.
|
|
56
66
|
*/
|
|
@@ -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:
|
|
11
|
+
publishDate: 1673274365,
|
|
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
|
};
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RowDragClueVue2 = exports.RowDragClue = 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;
|
|
@@ -65,8 +66,11 @@ var RowDragClueVue2 = {
|
|
|
65
66
|
}
|
|
66
67
|
}, [h("span", {
|
|
67
68
|
"class": this.statusClass
|
|
68
|
-
}, [h(
|
|
69
|
-
|
|
69
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
70
|
+
name: "modifier",
|
|
71
|
+
attrs: this.v3 ? undefined : {
|
|
72
|
+
name: "modifier"
|
|
73
|
+
}
|
|
70
74
|
})]), this.$props.text]);
|
|
71
75
|
}
|
|
72
76
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-treelist",
|
|
3
|
-
"version": "3.7.4-dev.
|
|
3
|
+
"version": "3.7.4-dev.202301091431",
|
|
4
4
|
"description": "Kendo UI for Vue TreeList package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"@progress/kendo-data-query": "^1.0.0",
|
|
38
38
|
"@progress/kendo-date-math": "^1.4.1",
|
|
39
39
|
"@progress/kendo-drawing": "^1.2.0",
|
|
40
|
-
"@progress/kendo-licensing": "^1.0
|
|
40
|
+
"@progress/kendo-licensing": "^1.3.0",
|
|
41
|
+
"@progress/kendo-svg-icons": "^1.0.0",
|
|
41
42
|
"@progress/kendo-vue-data-tools": "^3.6.0",
|
|
42
43
|
"@progress/kendo-vue-dateinputs": "^3.6.0",
|
|
43
44
|
"@progress/kendo-vue-dialogs": "^3.6.0",
|
|
@@ -47,23 +48,24 @@
|
|
|
47
48
|
"vue": "^2.6.12 || ^3.0.2"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@progress/kendo-vue-common": "3.7.4-dev.
|
|
51
|
+
"@progress/kendo-vue-common": "3.7.4-dev.202301091431"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@progress/kendo-data-query": "^1.0.0",
|
|
54
55
|
"@progress/kendo-date-math": "^1.4.1",
|
|
55
56
|
"@progress/kendo-drawing": "^1.8.0",
|
|
56
|
-
"@progress/kendo-licensing": "^1.0
|
|
57
|
-
"@progress/kendo-
|
|
58
|
-
"@progress/kendo-vue-
|
|
59
|
-
"@progress/kendo-vue-
|
|
60
|
-
"@progress/kendo-vue-
|
|
61
|
-
"@progress/kendo-vue-
|
|
62
|
-
"@progress/kendo-vue-
|
|
63
|
-
"@progress/kendo-vue-
|
|
64
|
-
"@progress/kendo-vue-
|
|
65
|
-
"@progress/kendo-vue-
|
|
66
|
-
"@progress/kendo-vue-
|
|
57
|
+
"@progress/kendo-licensing": "^1.3.0",
|
|
58
|
+
"@progress/kendo-svg-icons": "^1.0.0",
|
|
59
|
+
"@progress/kendo-vue-buttons": "3.7.4-dev.202301091431",
|
|
60
|
+
"@progress/kendo-vue-data-tools": "3.7.4-dev.202301091431",
|
|
61
|
+
"@progress/kendo-vue-dateinputs": "3.7.4-dev.202301091431",
|
|
62
|
+
"@progress/kendo-vue-dialogs": "3.7.4-dev.202301091431",
|
|
63
|
+
"@progress/kendo-vue-dropdowns": "3.7.4-dev.202301091431",
|
|
64
|
+
"@progress/kendo-vue-excel-export": "3.7.4-dev.202301091431",
|
|
65
|
+
"@progress/kendo-vue-inputs": "3.7.4-dev.202301091431",
|
|
66
|
+
"@progress/kendo-vue-intl": "3.7.4-dev.202301091431",
|
|
67
|
+
"@progress/kendo-vue-labels": "3.7.4-dev.202301091431",
|
|
68
|
+
"@progress/kendo-vue-pdf": "3.7.4-dev.202301091431"
|
|
67
69
|
},
|
|
68
70
|
"@progress": {
|
|
69
71
|
"friendlyName": "TreeList",
|