@progress/kendo-vue-treeview 3.11.0-dev.202305230751 → 3.11.0-dev.202306031715

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.
@@ -3,7 +3,7 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { Keys, validatePackage, guid, kendoThemeMaps, classNames, templateRendering, getListeners, canUseDOM } from '@progress/kendo-vue-common';
6
+ import { Keys, validatePackage, guid, kendoThemeMaps, classNames, templateRendering, getListeners, canUseDOM, isRtl } from '@progress/kendo-vue-common';
7
7
  import nav from './utils/getItemIdUponKeyboardNavigation';
8
8
  import { resolveItemId, isEnabledAndAllParentsEnabled, hasChildren } from './utils/itemUtils';
9
9
  import { TreeViewItem } from './TreeViewItem';
@@ -88,11 +88,15 @@ var TreeViewVue2 = {
88
88
  },
89
89
  data: function data() {
90
90
  return {
91
+ currentRtl: false,
91
92
  focusedItemId: undefined,
92
93
  focusedItemPublicId: undefined,
93
94
  tabbableItemId: ZERO_LEVEL_ZERO_NODE_ID
94
95
  };
95
96
  },
97
+ mounted: function mounted() {
98
+ this.currentRtl = isRtl(this.$el);
99
+ },
96
100
  computed: {
97
101
  treeGuid: function treeGuid() {
98
102
  return this.id || this.innerId;
@@ -121,7 +125,7 @@ var TreeViewVue2 = {
121
125
  this.fieldsSvc = new FieldsService(this.$props);
122
126
  var size = this.$props.size;
123
127
  return h("div", {
124
- "class": classNames('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a)),
128
+ "class": classNames('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a['k-user-select-none'] = this.draggable, _a['k-rtl'] = this.currentRtl, _a)),
125
129
  onKeydown: this.onKeyDown,
126
130
  on: this.v3 ? undefined : {
127
131
  "keydown": this.onKeyDown,
@@ -169,7 +173,8 @@ var TreeViewVue2 = {
169
173
  draggable: this.$props.draggable,
170
174
  expandIcons: this.$props.expandIcons,
171
175
  size: size,
172
- ariaLevel: 1
176
+ ariaLevel: 1,
177
+ isRtl: this.currentRtl
173
178
  },
174
179
  itemId: index.toString(),
175
180
  treeGuid: this.treeGuid,
@@ -200,7 +205,8 @@ var TreeViewVue2 = {
200
205
  onCheckchange: this.onCheckChange,
201
206
  key: index,
202
207
  size: size,
203
- ariaLevel: 1
208
+ ariaLevel: 1,
209
+ isRtl: this.currentRtl
204
210
  });
205
211
  }, this)])]);
206
212
  },
@@ -38,6 +38,7 @@ export interface TreeViewItemProps {
38
38
  */
39
39
  disabled?: boolean;
40
40
  ariaLevel: number;
41
+ isRtl?: boolean;
41
42
  }
42
43
  /**
43
44
  * @hidden
@@ -20,7 +20,7 @@ import { createId } from './utils/itemIdUtils';
20
20
  import { isItemExpandedAndWithChildren, hasChildren } from './utils/itemUtils';
21
21
  import { Reveal } from '@progress/kendo-vue-animation';
22
22
  import { DOM_KENDO_ITEM_ID_FIELD, DOM_KENDO_TREEVIEW_GUID_FIELD } from './utils/consts';
23
- import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
23
+ import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
24
24
  var sizeMap = kendoThemeMaps.sizeMap;
25
25
  /**
26
26
  * @hidden
@@ -41,6 +41,7 @@ var TreeViewItemVue2 = {
41
41
  checkboxes: Boolean,
42
42
  onFocusDomElNeeded: Object,
43
43
  draggable: Boolean,
44
+ isRtl: Boolean,
44
45
  size: {
45
46
  type: String,
46
47
  default: 'medium',
@@ -172,7 +173,8 @@ var TreeViewItemVue2 = {
172
173
  draggable: this.$props.draggable,
173
174
  expandIcons: this.$props.expandIcons,
174
175
  size: this.$props.size,
175
- disabled: this.computedDisabled
176
+ disabled: this.computedDisabled,
177
+ isRtl: this.$props.isRtl
176
178
  },
177
179
  itemId: createId(index, this.itemId),
178
180
  treeGuid: this.$props.treeGuid,
@@ -204,7 +206,8 @@ var TreeViewItemVue2 = {
204
206
  onCheckchange: this.handleCheckChange,
205
207
  key: index,
206
208
  size: this.$props.size,
207
- disabled: this.computedDisabled
209
+ disabled: this.computedDisabled,
210
+ isRtl: this.$props.isRtl
208
211
  });
209
212
  }, this)]) : undefined;
210
213
  };
@@ -386,11 +389,11 @@ var TreeViewItemVue2 = {
386
389
  },
387
390
  getIconClassName: function getIconClassName() {
388
391
  var expanded = this.fieldsSvc.expanded(this.item);
389
- return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
392
+ return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : this.$props.isRtl ? 'caret-alt-left' : 'caret-alt-right';
390
393
  },
391
394
  getIconSVG: function getIconSVG() {
392
395
  var expanded = this.fieldsSvc.expanded(this.item);
393
- return expanded ? caretAltDownIcon : caretAltRightIcon;
396
+ return expanded ? caretAltDownIcon : this.$props.isRtl ? caretAltLeftIcon : caretAltRightIcon;
394
397
  },
395
398
  getContentClassName: function getContentClassName() {
396
399
  return classNames('k-treeview-leaf', {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-treeview',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1684827647,
8
+ publishDate: 1685811881,
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
  };
@@ -3,7 +3,7 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { Keys, validatePackage, guid, kendoThemeMaps, classNames, templateRendering, getListeners, canUseDOM } from '@progress/kendo-vue-common';
6
+ import { Keys, validatePackage, guid, kendoThemeMaps, classNames, templateRendering, getListeners, canUseDOM, isRtl } from '@progress/kendo-vue-common';
7
7
  import nav from './utils/getItemIdUponKeyboardNavigation.js';
8
8
  import { resolveItemId, isEnabledAndAllParentsEnabled, hasChildren } from './utils/itemUtils.js';
9
9
  import { TreeViewItem } from './TreeViewItem.js';
@@ -88,11 +88,15 @@ var TreeViewVue2 = {
88
88
  },
89
89
  data: function data() {
90
90
  return {
91
+ currentRtl: false,
91
92
  focusedItemId: undefined,
92
93
  focusedItemPublicId: undefined,
93
94
  tabbableItemId: ZERO_LEVEL_ZERO_NODE_ID
94
95
  };
95
96
  },
97
+ mounted: function mounted() {
98
+ this.currentRtl = isRtl(this.$el);
99
+ },
96
100
  computed: {
97
101
  treeGuid: function treeGuid() {
98
102
  return this.id || this.innerId;
@@ -121,7 +125,7 @@ var TreeViewVue2 = {
121
125
  this.fieldsSvc = new FieldsService(this.$props);
122
126
  var size = this.$props.size;
123
127
  return h("div", {
124
- "class": classNames('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a)),
128
+ "class": classNames('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a['k-user-select-none'] = this.draggable, _a['k-rtl'] = this.currentRtl, _a)),
125
129
  onKeydown: this.onKeyDown,
126
130
  on: this.v3 ? undefined : {
127
131
  "keydown": this.onKeyDown,
@@ -169,7 +173,8 @@ var TreeViewVue2 = {
169
173
  draggable: this.$props.draggable,
170
174
  expandIcons: this.$props.expandIcons,
171
175
  size: size,
172
- ariaLevel: 1
176
+ ariaLevel: 1,
177
+ isRtl: this.currentRtl
173
178
  },
174
179
  itemId: index.toString(),
175
180
  treeGuid: this.treeGuid,
@@ -200,7 +205,8 @@ var TreeViewVue2 = {
200
205
  onCheckchange: this.onCheckChange,
201
206
  key: index,
202
207
  size: size,
203
- ariaLevel: 1
208
+ ariaLevel: 1,
209
+ isRtl: this.currentRtl
204
210
  });
205
211
  }, this)])]);
206
212
  },
@@ -38,6 +38,7 @@ export interface TreeViewItemProps {
38
38
  */
39
39
  disabled?: boolean;
40
40
  ariaLevel: number;
41
+ isRtl?: boolean;
41
42
  }
42
43
  /**
43
44
  * @hidden
@@ -20,7 +20,7 @@ import { createId } from './utils/itemIdUtils.js';
20
20
  import { isItemExpandedAndWithChildren, hasChildren } from './utils/itemUtils.js';
21
21
  import { Reveal } from '@progress/kendo-vue-animation';
22
22
  import { DOM_KENDO_ITEM_ID_FIELD, DOM_KENDO_TREEVIEW_GUID_FIELD } from './utils/consts.js';
23
- import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
23
+ import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
24
24
  var sizeMap = kendoThemeMaps.sizeMap;
25
25
  /**
26
26
  * @hidden
@@ -41,6 +41,7 @@ var TreeViewItemVue2 = {
41
41
  checkboxes: Boolean,
42
42
  onFocusDomElNeeded: Object,
43
43
  draggable: Boolean,
44
+ isRtl: Boolean,
44
45
  size: {
45
46
  type: String,
46
47
  default: 'medium',
@@ -172,7 +173,8 @@ var TreeViewItemVue2 = {
172
173
  draggable: this.$props.draggable,
173
174
  expandIcons: this.$props.expandIcons,
174
175
  size: this.$props.size,
175
- disabled: this.computedDisabled
176
+ disabled: this.computedDisabled,
177
+ isRtl: this.$props.isRtl
176
178
  },
177
179
  itemId: createId(index, this.itemId),
178
180
  treeGuid: this.$props.treeGuid,
@@ -204,7 +206,8 @@ var TreeViewItemVue2 = {
204
206
  onCheckchange: this.handleCheckChange,
205
207
  key: index,
206
208
  size: this.$props.size,
207
- disabled: this.computedDisabled
209
+ disabled: this.computedDisabled,
210
+ isRtl: this.$props.isRtl
208
211
  });
209
212
  }, this)]) : undefined;
210
213
  };
@@ -386,11 +389,11 @@ var TreeViewItemVue2 = {
386
389
  },
387
390
  getIconClassName: function getIconClassName() {
388
391
  var expanded = this.fieldsSvc.expanded(this.item);
389
- return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
392
+ return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : this.$props.isRtl ? 'caret-alt-left' : 'caret-alt-right';
390
393
  },
391
394
  getIconSVG: function getIconSVG() {
392
395
  var expanded = this.fieldsSvc.expanded(this.item);
393
- return expanded ? caretAltDownIcon : caretAltRightIcon;
396
+ return expanded ? caretAltDownIcon : this.$props.isRtl ? caretAltLeftIcon : caretAltRightIcon;
394
397
  },
395
398
  getContentClassName: function getContentClassName() {
396
399
  return classNames('k-treeview-leaf', {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-treeview',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1684827647,
8
+ publishDate: 1685811881,
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
  };
@@ -94,11 +94,15 @@ var TreeViewVue2 = {
94
94
  },
95
95
  data: function data() {
96
96
  return {
97
+ currentRtl: false,
97
98
  focusedItemId: undefined,
98
99
  focusedItemPublicId: undefined,
99
100
  tabbableItemId: itemIdUtils_1.ZERO_LEVEL_ZERO_NODE_ID
100
101
  };
101
102
  },
103
+ mounted: function mounted() {
104
+ this.currentRtl = (0, kendo_vue_common_1.isRtl)(this.$el);
105
+ },
102
106
  computed: {
103
107
  treeGuid: function treeGuid() {
104
108
  return this.id || this.innerId;
@@ -127,7 +131,7 @@ var TreeViewVue2 = {
127
131
  this.fieldsSvc = new FieldsService_1.default(this.$props);
128
132
  var size = this.$props.size;
129
133
  return h("div", {
130
- "class": (0, kendo_vue_common_1.classNames)('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a)),
134
+ "class": (0, kendo_vue_common_1.classNames)('k-treeview', (_a = {}, _a["k-treeview-".concat(sizeMap[size] || size)] = size, _a['k-user-select-none'] = this.draggable, _a['k-rtl'] = this.currentRtl, _a)),
131
135
  onKeydown: this.onKeyDown,
132
136
  on: this.v3 ? undefined : {
133
137
  "keydown": this.onKeyDown,
@@ -175,7 +179,8 @@ var TreeViewVue2 = {
175
179
  draggable: this.$props.draggable,
176
180
  expandIcons: this.$props.expandIcons,
177
181
  size: size,
178
- ariaLevel: 1
182
+ ariaLevel: 1,
183
+ isRtl: this.currentRtl
179
184
  },
180
185
  itemId: index.toString(),
181
186
  treeGuid: this.treeGuid,
@@ -206,7 +211,8 @@ var TreeViewVue2 = {
206
211
  onCheckchange: this.onCheckChange,
207
212
  key: index,
208
213
  size: size,
209
- ariaLevel: 1
214
+ ariaLevel: 1,
215
+ isRtl: this.currentRtl
210
216
  });
211
217
  }, this)])]);
212
218
  },
@@ -38,6 +38,7 @@ export interface TreeViewItemProps {
38
38
  */
39
39
  disabled?: boolean;
40
40
  ariaLevel: number;
41
+ isRtl?: boolean;
41
42
  }
42
43
  /**
43
44
  * @hidden
@@ -47,6 +47,7 @@ var TreeViewItemVue2 = {
47
47
  checkboxes: Boolean,
48
48
  onFocusDomElNeeded: Object,
49
49
  draggable: Boolean,
50
+ isRtl: Boolean,
50
51
  size: {
51
52
  type: String,
52
53
  default: 'medium',
@@ -178,7 +179,8 @@ var TreeViewItemVue2 = {
178
179
  draggable: this.$props.draggable,
179
180
  expandIcons: this.$props.expandIcons,
180
181
  size: this.$props.size,
181
- disabled: this.computedDisabled
182
+ disabled: this.computedDisabled,
183
+ isRtl: this.$props.isRtl
182
184
  },
183
185
  itemId: (0, itemIdUtils_1.createId)(index, this.itemId),
184
186
  treeGuid: this.$props.treeGuid,
@@ -210,7 +212,8 @@ var TreeViewItemVue2 = {
210
212
  onCheckchange: this.handleCheckChange,
211
213
  key: index,
212
214
  size: this.$props.size,
213
- disabled: this.computedDisabled
215
+ disabled: this.computedDisabled,
216
+ isRtl: this.$props.isRtl
214
217
  });
215
218
  }, this)]) : undefined;
216
219
  };
@@ -392,11 +395,11 @@ var TreeViewItemVue2 = {
392
395
  },
393
396
  getIconClassName: function getIconClassName() {
394
397
  var expanded = this.fieldsSvc.expanded(this.item);
395
- return expanded && !(0, itemUtils_1.hasChildren)(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
398
+ return expanded && !(0, itemUtils_1.hasChildren)(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : this.$props.isRtl ? 'caret-alt-left' : 'caret-alt-right';
396
399
  },
397
400
  getIconSVG: function getIconSVG() {
398
401
  var expanded = this.fieldsSvc.expanded(this.item);
399
- return expanded ? kendo_svg_icons_1.caretAltDownIcon : kendo_svg_icons_1.caretAltRightIcon;
402
+ return expanded ? kendo_svg_icons_1.caretAltDownIcon : this.$props.isRtl ? kendo_svg_icons_1.caretAltLeftIcon : kendo_svg_icons_1.caretAltRightIcon;
400
403
  },
401
404
  getContentClassName: function getContentClassName() {
402
405
  return (0, kendo_vue_common_1.classNames)('k-treeview-leaf', {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-treeview',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1684827647,
11
+ publishDate: 1685811881,
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-treeview",
3
- "version": "3.11.0-dev.202305230751",
3
+ "version": "3.11.0-dev.202306031715",
4
4
  "description": "Kendo Ui for Vue TreeView package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,15 +42,15 @@
42
42
  "vue": "^2.6.12 || ^3.0.2"
43
43
  },
44
44
  "dependencies": {
45
- "@progress/kendo-vue-common": "3.11.0-dev.202305230751"
45
+ "@progress/kendo-vue-common": "3.11.0-dev.202306031715"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@progress/kendo-licensing": "^1.3.0",
49
49
  "@progress/kendo-svg-icons": "^1.0.0",
50
- "@progress/kendo-vue-animation": "3.11.0-dev.202305230751",
51
- "@progress/kendo-vue-dropdowns": "3.11.0-dev.202305230751",
52
- "@progress/kendo-vue-inputs": "3.11.0-dev.202305230751",
53
- "@progress/kendo-vue-intl": "3.11.0-dev.202305230751"
50
+ "@progress/kendo-vue-animation": "3.11.0-dev.202306031715",
51
+ "@progress/kendo-vue-dropdowns": "3.11.0-dev.202306031715",
52
+ "@progress/kendo-vue-inputs": "3.11.0-dev.202306031715",
53
+ "@progress/kendo-vue-intl": "3.11.0-dev.202306031715"
54
54
  },
55
55
  "@progress": {
56
56
  "friendlyName": "TreeView",