@progress/kendo-vue-treeview 3.7.4-dev.202301091431 → 3.7.4-dev.202301131104

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.
@@ -15,11 +15,12 @@ import * as Vue from 'vue';
15
15
  var allVue = Vue;
16
16
  var gh = allVue.h;
17
17
  var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { classNames, guid, Draggable, kendoThemeMaps, getTemplate, setRef, getRef } from '@progress/kendo-vue-common';
18
+ import { classNames, guid, Draggable, kendoThemeMaps, getTemplate, setRef, getRef, Icon } from '@progress/kendo-vue-common';
19
19
  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
24
  var sizeMap = kendoThemeMaps.sizeMap;
24
25
  /**
25
26
  * @hidden
@@ -213,8 +214,13 @@ var TreeViewItemVue2 = {
213
214
  "class": classNames('k-treeview-toggle', {
214
215
  'k-disabled': this.computedDisabled
215
216
  })
216
- }, [h("span", {
217
- "class": this.getIconClassName(),
217
+ }, [h(Icon, {
218
+ name: this.getIconClassName(),
219
+ attrs: this.v3 ? undefined : {
220
+ name: this.getIconClassName(),
221
+ icon: this.getIconSVG()
222
+ },
223
+ icon: this.getIconSVG(),
218
224
  onClick: this.handleExpandChange,
219
225
  on: this.v3 ? undefined : {
220
226
  "click": this.handleExpandChange
@@ -369,11 +375,11 @@ var TreeViewItemVue2 = {
369
375
  },
370
376
  getIconClassName: function getIconClassName() {
371
377
  var expanded = this.fieldsSvc.expanded(this.item);
372
- return classNames('k-icon', {
373
- 'k-i-caret-alt-right': !expanded,
374
- 'k-i-caret-alt-down': expanded,
375
- 'k-i-loading': expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField())
376
- });
378
+ return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
379
+ },
380
+ getIconSVG: function getIconSVG() {
381
+ var expanded = this.fieldsSvc.expanded(this.item);
382
+ return expanded ? caretAltDownIcon : caretAltRightIcon;
377
383
  },
378
384
  getContentClassName: function getContentClassName() {
379
385
  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: 1673274452,
8
+ publishDate: 1673607663,
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
  };
@@ -15,11 +15,12 @@ import * as Vue from 'vue';
15
15
  var allVue = Vue;
16
16
  var gh = allVue.h;
17
17
  var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { classNames, guid, Draggable, kendoThemeMaps, getTemplate, setRef, getRef } from '@progress/kendo-vue-common';
18
+ import { classNames, guid, Draggable, kendoThemeMaps, getTemplate, setRef, getRef, Icon } from '@progress/kendo-vue-common';
19
19
  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
24
  var sizeMap = kendoThemeMaps.sizeMap;
24
25
  /**
25
26
  * @hidden
@@ -213,8 +214,13 @@ var TreeViewItemVue2 = {
213
214
  "class": classNames('k-treeview-toggle', {
214
215
  'k-disabled': this.computedDisabled
215
216
  })
216
- }, [h("span", {
217
- "class": this.getIconClassName(),
217
+ }, [h(Icon, {
218
+ name: this.getIconClassName(),
219
+ attrs: this.v3 ? undefined : {
220
+ name: this.getIconClassName(),
221
+ icon: this.getIconSVG()
222
+ },
223
+ icon: this.getIconSVG(),
218
224
  onClick: this.handleExpandChange,
219
225
  on: this.v3 ? undefined : {
220
226
  "click": this.handleExpandChange
@@ -369,11 +375,11 @@ var TreeViewItemVue2 = {
369
375
  },
370
376
  getIconClassName: function getIconClassName() {
371
377
  var expanded = this.fieldsSvc.expanded(this.item);
372
- return classNames('k-icon', {
373
- 'k-i-caret-alt-right': !expanded,
374
- 'k-i-caret-alt-down': expanded,
375
- 'k-i-loading': expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField())
376
- });
378
+ return expanded && !hasChildren(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
379
+ },
380
+ getIconSVG: function getIconSVG() {
381
+ var expanded = this.fieldsSvc.expanded(this.item);
382
+ return expanded ? caretAltDownIcon : caretAltRightIcon;
377
383
  },
378
384
  getContentClassName: function getContentClassName() {
379
385
  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: 1673274452,
8
+ publishDate: 1673607663,
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
  };
@@ -26,6 +26,7 @@ var itemIdUtils_1 = require("./utils/itemIdUtils");
26
26
  var itemUtils_1 = require("./utils/itemUtils");
27
27
  var kendo_vue_animation_1 = require("@progress/kendo-vue-animation");
28
28
  var consts_1 = require("./utils/consts");
29
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
29
30
  var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap;
30
31
  /**
31
32
  * @hidden
@@ -219,8 +220,13 @@ var TreeViewItemVue2 = {
219
220
  "class": (0, kendo_vue_common_1.classNames)('k-treeview-toggle', {
220
221
  'k-disabled': this.computedDisabled
221
222
  })
222
- }, [h("span", {
223
- "class": this.getIconClassName(),
223
+ }, [h(kendo_vue_common_1.Icon, {
224
+ name: this.getIconClassName(),
225
+ attrs: this.v3 ? undefined : {
226
+ name: this.getIconClassName(),
227
+ icon: this.getIconSVG()
228
+ },
229
+ icon: this.getIconSVG(),
224
230
  onClick: this.handleExpandChange,
225
231
  on: this.v3 ? undefined : {
226
232
  "click": this.handleExpandChange
@@ -375,11 +381,11 @@ var TreeViewItemVue2 = {
375
381
  },
376
382
  getIconClassName: function getIconClassName() {
377
383
  var expanded = this.fieldsSvc.expanded(this.item);
378
- return (0, kendo_vue_common_1.classNames)('k-icon', {
379
- 'k-i-caret-alt-right': !expanded,
380
- 'k-i-caret-alt-down': expanded,
381
- 'k-i-loading': expanded && !(0, itemUtils_1.hasChildren)(this.item, this.fieldsSvc.getChildrenField())
382
- });
384
+ return expanded && !(0, itemUtils_1.hasChildren)(this.item, this.fieldsSvc.getChildrenField()) ? 'loading' : expanded ? 'caret-alt-down' : 'caret-alt-right';
385
+ },
386
+ getIconSVG: function getIconSVG() {
387
+ var expanded = this.fieldsSvc.expanded(this.item);
388
+ return expanded ? kendo_svg_icons_1.caretAltDownIcon : kendo_svg_icons_1.caretAltRightIcon;
383
389
  },
384
390
  getContentClassName: function getContentClassName() {
385
391
  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: 1673274452,
11
+ publishDate: 1673607663,
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.7.4-dev.202301091431",
3
+ "version": "3.7.4-dev.202301131104",
4
4
  "description": "Kendo Ui for Vue TreeView package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,15 +41,15 @@
41
41
  "vue": "^2.6.12 || ^3.0.2"
42
42
  },
43
43
  "dependencies": {
44
- "@progress/kendo-vue-common": "3.7.4-dev.202301091431"
44
+ "@progress/kendo-vue-common": "3.7.4-dev.202301131104"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@progress/kendo-licensing": "^1.3.0",
48
48
  "@progress/kendo-svg-icons": "^1.0.0",
49
- "@progress/kendo-vue-animation": "3.7.4-dev.202301091431",
50
- "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301091431",
51
- "@progress/kendo-vue-inputs": "3.7.4-dev.202301091431",
52
- "@progress/kendo-vue-intl": "3.7.4-dev.202301091431"
49
+ "@progress/kendo-vue-animation": "3.7.4-dev.202301131104",
50
+ "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301131104",
51
+ "@progress/kendo-vue-inputs": "3.7.4-dev.202301131104",
52
+ "@progress/kendo-vue-intl": "3.7.4-dev.202301131104"
53
53
  },
54
54
  "@progress": {
55
55
  "friendlyName": "TreeView",