@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
@@ -17,8 +17,9 @@ var gh = allVue.h;
17
17
  var isV3 = allVue.version && allVue.version[0] === '3';
18
18
  var inject = allVue.inject;
19
19
  import { provideIntlService } from '@progress/kendo-vue-intl';
20
- import { getTemplate, noop, getNestedValue, Keys } from '@progress/kendo-vue-common';
20
+ import { getTemplate, noop, getNestedValue, Keys, Icon } from '@progress/kendo-vue-common';
21
21
  import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-vue-data-tools';
22
+ import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
22
23
  /**
23
24
  * @hidden
24
25
  */
@@ -28,7 +29,12 @@ var TreeListCellVue2 = {
28
29
  emits: {
29
30
  cellclick: null,
30
31
  cellkeydown: null,
31
- expandchange: null
32
+ expandchange: null,
33
+ edit: null,
34
+ add: null,
35
+ cancel: null,
36
+ save: null,
37
+ remove: null
32
38
  },
33
39
  props: {
34
40
  id: String,
@@ -109,7 +115,9 @@ var TreeListCellVue2 = {
109
115
  var _b = this.$props,
110
116
  expandable = _b.expandable,
111
117
  isSelected = _b.isSelected;
112
- return _a = {}, _a['k-text-nowrap'] = expandable, _a['k-selected'] = isSelected, _a;
118
+ return _a = {
119
+ 'k-table-td': true
120
+ }, _a['k-text-nowrap'] = expandable, _a['k-selected'] = isSelected, _a;
113
121
  }
114
122
  },
115
123
  // @ts-ignore
@@ -147,26 +155,35 @@ var TreeListCellVue2 = {
147
155
  var icons = [];
148
156
  if (expandable) {
149
157
  icons.push.apply(icons, level.slice(1).map(function (_x) {
150
- return h("span", {
151
- "class": "k-icon k-i-none"
158
+ return h(Icon, {
159
+ name: "none",
160
+ attrs: this.v3 ? undefined : {
161
+ name: "none"
162
+ }
152
163
  });
153
164
  }, this));
154
165
  if (hasChildren) {
155
- icons.push(h("span", {
156
- "class": "k-icon k-i-".concat(expanded ? 'caret-alt-down' : 'caret-alt-right'),
166
+ icons.push(h(Icon, {
167
+ name: expanded ? 'caret-alt-down' : 'caret-alt-right',
168
+ attrs: this.v3 ? undefined : {
169
+ name: expanded ? 'caret-alt-down' : 'caret-alt-right',
170
+ icon: expanded ? caretAltDownIcon : caretAltRightIcon,
171
+ "data-prevent-selection": true
172
+ },
173
+ icon: expanded ? caretAltDownIcon : caretAltRightIcon,
157
174
  key: "expand-collapse",
158
175
  onClick: this.triggerExpandChange,
159
176
  on: this.v3 ? undefined : {
160
177
  "click": this.triggerExpandChange
161
178
  },
162
- "data-prevent-selection": true,
163
- attrs: this.v3 ? undefined : {
164
- "data-prevent-selection": true
165
- }
179
+ "data-prevent-selection": true
166
180
  }));
167
181
  } else {
168
- icons.push(h("span", {
169
- "class": "k-icon k-i-none",
182
+ icons.push(h(Icon, {
183
+ name: "none",
184
+ attrs: this.v3 ? undefined : {
185
+ name: "none"
186
+ },
170
187
  key: icons.length
171
188
  }));
172
189
  }
@@ -4,7 +4,6 @@ var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var inject = allVue.inject;
7
- import { provideIntlService } from '@progress/kendo-vue-intl';
8
7
  import { getTemplate, noop, getNestedValue, guid } from '@progress/kendo-vue-common';
9
8
  import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-vue-data-tools';
10
9
  /**
@@ -16,7 +15,13 @@ var TreeListSelectionCellVue2 = {
16
15
  emits: {
17
16
  cellclick: null,
18
17
  cellkeydown: null,
19
- expandchange: null
18
+ expandchange: null,
19
+ selectionchange: null,
20
+ edit: null,
21
+ add: null,
22
+ cancel: null,
23
+ save: null,
24
+ remove: null
20
25
  },
21
26
  props: {
22
27
  id: String,
@@ -27,6 +32,8 @@ var TreeListSelectionCellVue2 = {
27
32
  colIndex: Number,
28
33
  level: Array,
29
34
  expanded: Boolean,
35
+ expandable: Boolean,
36
+ hasChildren: Boolean,
30
37
  isSelected: Boolean,
31
38
  ariaColumnIndex: Number,
32
39
  render: [String, Function, Object]
@@ -74,7 +81,13 @@ var TreeListSelectionCellVue2 = {
74
81
  },
75
82
  handleOnChange: function handleOnChange(event) {
76
83
  this.$emit('selectionchange', {
77
- event: event
84
+ event: event,
85
+ item: {
86
+ dataItem: this.dataItem,
87
+ level: this.level
88
+ },
89
+ field: this.field,
90
+ colIndex: this.colIndex
78
91
  });
79
92
  }
80
93
  },
@@ -98,7 +111,7 @@ var TreeListSelectionCellVue2 = {
98
111
  field = _a.field;
99
112
  var selectedValue = getNestedValue(field, dataItem);
100
113
  var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
101
- var intl = provideIntlService(this);
114
+ // const intl = provideIntlService(this);
102
115
  var defaultRendering = h("td", {
103
116
  role: 'gridcell',
104
117
  attrs: this.v3 ? undefined : {
@@ -111,6 +124,7 @@ var TreeListSelectionCellVue2 = {
111
124
  "data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
112
125
  "data-keyboardnavid": navAttrs[KEYBOARD_NAV_DATA_ID]
113
126
  },
127
+ "class": 'k-table-td',
114
128
  colSpan: colSpan,
115
129
  "aria-selected": isSelected,
116
130
  "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
  */
@@ -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: 1669967083,
8
+ publishDate: 1673274365,
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
  };
@@ -1,4 +1,5 @@
1
1
  // @ts-ignore
2
+ import { Icon } from '@progress/kendo-vue-common';
2
3
  import * as Vue from 'vue';
3
4
  var allVue = Vue;
4
5
  var gh = allVue.h;
@@ -59,8 +60,11 @@ var RowDragClueVue2 = {
59
60
  }
60
61
  }, [h("span", {
61
62
  "class": this.statusClass
62
- }, [h("span", {
63
- "class": "k-icon k-icon-modifier"
63
+ }, [h(Icon, {
64
+ name: "modifier",
65
+ attrs: this.v3 ? undefined : {
66
+ name: "modifier"
67
+ }
64
68
  })]), this.$props.text]);
65
69
  }
66
70
  };
@@ -41,6 +41,8 @@ var TreeListRowVue2 = {
41
41
  isSelected = _a.isSelected,
42
42
  isAltRow = _a.isAltRow;
43
43
  return {
44
+ 'k-table-row': true,
45
+ 'k-table-alt-row': isAltRow,
44
46
  'k-master-row': true,
45
47
  'k-selected': isSelected,
46
48
  'k-alt': isAltRow,