@progress/kendo-react-treeview 8.3.0-develop.9 → 8.3.0

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/TreeView.mjs CHANGED
@@ -16,45 +16,40 @@ import { packageMetadata as S } from "./package-metadata.mjs";
16
16
  import { EXPAND_FIELD as y, SELECT_FIELD as w, ICON_FIELD as _, HAS_CHILDREN_FIELD as L, CHILDREN_FIELD as I, TEXT_FIELD as H, DISABLED_FIELD as P, CHECK_FIELD as M, CHECK_INDETERMINATE_FIELD as R } from "./utils/consts.mjs";
17
17
  const { sizeMap: T } = C, r = class r extends o.Component {
18
18
  constructor(t) {
19
- super(t), this.state = { focusedItemId: void 0, focusedItemPublicId: void 0, tabbableItemId: u.ZERO_LEVEL_ZERO_NODE_ID }, this.fieldsSvc = null, this.allowExplicitFocus = !1, this._element = null, this.onFocusDomElNeeded = (e) => {
19
+ super(t), this.state = {
20
+ focusedItemId: void 0,
21
+ focusedItemPublicId: void 0,
22
+ tabbableItemId: u.ZERO_LEVEL_ZERO_NODE_ID
23
+ }, this.fieldsSvc = null, this.allowExplicitFocus = !1, this._element = null, this.onFocusDomElNeeded = (e) => {
20
24
  this.allowExplicitFocus && this.focusDomItem(e);
21
25
  }, this.onCheckChange = (e, i, s) => {
22
26
  this.setFocus(s), this.dispatchCheckChange(e, i, s);
23
27
  }, this.onExpandChange = (e, i, s) => {
24
28
  this.setFocus(s), this.dispatchExpandChange(e, i, s);
25
29
  }, this.onPress = (e, i, s) => {
26
- this.props.onItemDragStart && this.props.onItemDragStart.call(
27
- void 0,
28
- { target: this, item: i, itemHierarchicalIndex: s }
29
- );
30
+ this.props.onItemDragStart && this.props.onItemDragStart.call(void 0, { target: this, item: i, itemHierarchicalIndex: s });
30
31
  }, this.onDrag = (e, i, s) => {
31
32
  const { pageX: l, pageY: n, clientX: h, clientY: c } = e;
32
- this.props.onItemDragOver && this.props.onItemDragOver.call(
33
- void 0,
34
- {
35
- target: this,
36
- item: i,
37
- itemHierarchicalIndex: s,
38
- pageX: l,
39
- pageY: n,
40
- clientX: h,
41
- clientY: c
42
- }
43
- );
33
+ this.props.onItemDragOver && this.props.onItemDragOver.call(void 0, {
34
+ target: this,
35
+ item: i,
36
+ itemHierarchicalIndex: s,
37
+ pageX: l,
38
+ pageY: n,
39
+ clientX: h,
40
+ clientY: c
41
+ });
44
42
  }, this.onRelease = (e, i, s) => {
45
43
  const { pageX: l, pageY: n, clientX: h, clientY: c } = e;
46
- this.props.onItemDragEnd && this.props.onItemDragEnd.call(
47
- void 0,
48
- {
49
- target: this,
50
- item: i,
51
- itemHierarchicalIndex: s,
52
- pageX: l,
53
- pageY: n,
54
- clientX: h,
55
- clientY: c
56
- }
57
- );
44
+ this.props.onItemDragEnd && this.props.onItemDragEnd.call(void 0, {
45
+ target: this,
46
+ item: i,
47
+ itemHierarchicalIndex: s,
48
+ pageX: l,
49
+ pageY: n,
50
+ clientX: h,
51
+ clientY: c
52
+ });
58
53
  }, this.onItemClick = (e, i, s) => {
59
54
  this.setFocus(s), this.dispatchItemClick(e, i, s);
60
55
  }, this.onFocus = () => {
@@ -197,7 +192,12 @@ const { sizeMap: T } = C, r = class r extends o.Component {
197
192
  if (this.fieldsSvc && this.fieldsSvc.focusIdField) {
198
193
  const t = this.state.focusedItemPublicId;
199
194
  if (t) {
200
- const e = this.props.getFocusHierarchicalIndex ? this.props.getFocusHierarchicalIndex(t) : b(t, this.fieldsSvc.focusIdField, this.data, this.props.childrenField);
195
+ const e = this.props.getFocusHierarchicalIndex ? this.props.getFocusHierarchicalIndex(t) : b(
196
+ t,
197
+ this.fieldsSvc.focusIdField,
198
+ this.data,
199
+ this.props.childrenField
200
+ );
201
201
  e !== this.state.focusedItemId && (this.allowExplicitFocus = !0, this.setState({ focusedItemId: e }));
202
202
  }
203
203
  }
package/TreeViewItem.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),s=require("@progress/kendo-react-common"),o=require("@progress/kendo-svg-icons"),m=require("@progress/kendo-react-animation"),h=require("./utils/consts.js"),I=require("./utils/utils.js");function u(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const i=u(p),{sizeMap:f}=s.kendoThemeMaps,l=i.createContext(r=>r),d=class d extends i.Component{constructor(){super(...arguments),this.onCheckChange=e=>{this.props.onCheckChange(e,this.item,this.itemId)},this.onExpandChange=e=>{this.props.onExpandChange(e,this.item,this.itemId)},this.onItemClick=e=>{this.props.onItemClick(e,this.item,this.itemId)},this.onPress=e=>{this.props.onPress(e.event,this.item,this.itemId)},this.onDrag=e=>{this.props.onDrag(e.event,this.item,this.itemId)},this.onRelease=e=>{this.props.onRelease(e.event,this.item,this.itemId)},this.onContextMenu=e=>{this.props.onContextMenu(e,this.item,this.itemId)},this.assignDraggableMeta=e=>{e&&(e[h.DOM_KENDO_ITEM_ID_FIELD]=this.props.itemId,e[h.DOM_KENDO_TREEVIEW_GUID_FIELD]=this.props.treeGuid)}}render(){const e=this.renderSubitemsIfApplicable(),t=this.renderItemInPart();return i.createElement("li",{className:s.classNames("k-treeview-item"),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":this.disabled?!0:void 0,ref:n=>this.itemElement=n},i.createElement("span",{className:`k-treeview-${this.props.position}`,ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},t):t),e&&(this.props.animate?i.createElement(m.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:e}):e))}componentDidMount(){const e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))}componentDidUpdate(e){const t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){const n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}}renderCheckbox(){if(this.props.checkboxes){const e=this.props.size;return i.createElement("span",{className:s.classNames("k-checkbox-wrap")},i.createElement("input",{type:"checkbox",className:s.classNames("k-checkbox k-rounded-md",{[`k-checkbox-${f[e]||e}`]:e,"k-disabled":this.disabled}),"aria-label":this.item.text,checked:!!this.fieldsSvc.checked(this.item),id:this.props.id,tabIndex:-1,onChange:this.onCheckChange,ref:t=>this.checkboxElement=t}))}else return}renderExpandIcon(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField()))&&i.createElement("span",{className:s.classNames("k-treeview-toggle",{"k-disabled":this.disabled}),onClick:this.onExpandChange},i.createElement(s.IconWrap,{...this.getIconProps()}))}renderSubitemsIfApplicable(){const e=this.fieldsSvc.children(this.item);return s.isItemExpandedAndWithChildren(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-treeview-group",role:"group"},e.map((t,n)=>i.createElement(c,{item:t,position:I.getNodePosition(n,e),itemId:s.treeIdUtils.createId(n,this.itemId),treeGuid:this.props.treeGuid,animate:this.props.animate,focusedItemId:this.props.focusedItemId,tabbableItemId:this.props.tabbableItemId,fieldsService:this.props.fieldsService,itemUI:this.props.itemUI,checkboxes:this.props.checkboxes,ariaMultiSelectable:this.props.ariaMultiSelectable,onItemClick:this.props.onItemClick,onFocusDomElNeeded:this.props.onFocusDomElNeeded,draggable:this.props.draggable,onPress:this.props.onPress,onDrag:this.props.onDrag,onRelease:this.props.onRelease,expandIcons:this.props.expandIcons,iconField:this.props.iconField,onExpandChange:this.props.onExpandChange,onCheckChange:this.props.onCheckChange,onContextMenu:this.props.onContextMenu,key:n,size:this.props.size,disabled:this.disabled,isRtl:this.props.isRtl}))):void 0}renderItemInPart(){const e=this.props.iconField,t=e&&this.item[e];return i.createElement("span",{className:s.classNames("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item),"k-disabled":this.disabled}),style:{touchAction:"none"},onClick:this.onItemClick,onContextMenu:this.onContextMenu},t&&i.createElement(s.IconWrap,{name:t.name,icon:t}),i.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))}get fieldsSvc(){return this.props.fieldsService}get itemId(){return this.props.itemId}get item(){return this.props.item}get tabIndex(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1}get ariaExpanded(){return this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField())?!!this.fieldsSvc.expanded(this.item):void 0}get disabled(){return this.props.disabled||this.fieldsSvc.disabled(this.item)}get ariaChecked(){if(this.props.checkboxes)return this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false"}get ariaSelected(){return this.fieldsSvc.selected(this.item)?!0:this.props.ariaMultiSelectable?this.disabled?void 0:!1:void 0}getIconProps(){const e=this.fieldsSvc.expanded(this.item);return e&&!s.hasChildren(this.item,this.fieldsSvc.getChildrenField())?{name:"loading"}:e?{name:"caret-alt-down",icon:o.caretAltDownIcon}:{name:this.props.isRtl?"caret-alt-left":"caret-alt-right",icon:this.props.isRtl?o.caretAltLeftIcon:o.caretAltRightIcon}}};d.defaultProps={position:"top",iconField:"svgIcon"};let a=d;const c=s.withIdHOC(i.forwardRef((r,e)=>{const n=i.useContext(l).call(void 0,r);return i.createElement(a,{ref:e,...n})}));c.displayName="TreeViewItem";exports.TreeViewItem=c;exports.TreeViewItemPropsContext=l;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),s=require("@progress/kendo-react-common"),o=require("@progress/kendo-svg-icons"),m=require("@progress/kendo-react-animation"),h=require("./utils/consts.js"),I=require("./utils/utils.js");function u(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const i=u(p),{sizeMap:f}=s.kendoThemeMaps,l=i.createContext(r=>r),d=class d extends i.Component{constructor(){super(...arguments),this.onCheckChange=e=>{this.props.onCheckChange(e,this.item,this.itemId)},this.onExpandChange=e=>{this.props.onExpandChange(e,this.item,this.itemId)},this.onItemClick=e=>{this.props.onItemClick(e,this.item,this.itemId)},this.onPress=e=>{this.props.onPress(e.event,this.item,this.itemId)},this.onDrag=e=>{this.props.onDrag(e.event,this.item,this.itemId)},this.onRelease=e=>{this.props.onRelease(e.event,this.item,this.itemId)},this.onContextMenu=e=>{this.props.onContextMenu(e,this.item,this.itemId)},this.assignDraggableMeta=e=>{e&&(e[h.DOM_KENDO_ITEM_ID_FIELD]=this.props.itemId,e[h.DOM_KENDO_TREEVIEW_GUID_FIELD]=this.props.treeGuid)}}render(){const e=this.renderSubitemsIfApplicable(),t=this.renderItemInPart();return i.createElement("li",{className:s.classNames("k-treeview-item"),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":this.disabled?!0:void 0,ref:n=>this.itemElement=n},i.createElement("span",{className:`k-treeview-${this.props.position}`,ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},t):t),e&&(this.props.animate?i.createElement(m.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:e}):e))}componentDidMount(){const e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))}componentDidUpdate(e){const t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){const n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}}renderCheckbox(){if(this.props.checkboxes){const e=this.props.size;return i.createElement("span",{className:s.classNames("k-checkbox-wrap")},i.createElement("input",{type:"checkbox",className:s.classNames("k-checkbox k-rounded-md",{[`k-checkbox-${f[e]||e}`]:e,"k-disabled":this.disabled}),"aria-label":this.item.text,checked:!!this.fieldsSvc.checked(this.item),id:this.props.id,tabIndex:-1,onChange:this.onCheckChange,ref:t=>this.checkboxElement=t}))}}renderExpandIcon(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField()))&&i.createElement("span",{className:s.classNames("k-treeview-toggle",{"k-disabled":this.disabled}),onClick:this.onExpandChange},i.createElement(s.IconWrap,{...this.getIconProps()}))}renderSubitemsIfApplicable(){const e=this.fieldsSvc.children(this.item);return s.isItemExpandedAndWithChildren(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-treeview-group",role:"group"},e.map((t,n)=>i.createElement(c,{item:t,position:I.getNodePosition(n,e),itemId:s.treeIdUtils.createId(n,this.itemId),treeGuid:this.props.treeGuid,animate:this.props.animate,focusedItemId:this.props.focusedItemId,tabbableItemId:this.props.tabbableItemId,fieldsService:this.props.fieldsService,itemUI:this.props.itemUI,checkboxes:this.props.checkboxes,ariaMultiSelectable:this.props.ariaMultiSelectable,onItemClick:this.props.onItemClick,onFocusDomElNeeded:this.props.onFocusDomElNeeded,draggable:this.props.draggable,onPress:this.props.onPress,onDrag:this.props.onDrag,onRelease:this.props.onRelease,expandIcons:this.props.expandIcons,iconField:this.props.iconField,onExpandChange:this.props.onExpandChange,onCheckChange:this.props.onCheckChange,onContextMenu:this.props.onContextMenu,key:n,size:this.props.size,disabled:this.disabled,isRtl:this.props.isRtl}))):void 0}renderItemInPart(){const e=this.props.iconField,t=e&&this.item[e];return i.createElement("span",{className:s.classNames("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item),"k-disabled":this.disabled}),style:{touchAction:"none"},onClick:this.onItemClick,onContextMenu:this.onContextMenu},t&&i.createElement(s.IconWrap,{name:t.name,icon:t}),i.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))}get fieldsSvc(){return this.props.fieldsService}get itemId(){return this.props.itemId}get item(){return this.props.item}get tabIndex(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1}get ariaExpanded(){return this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField())?!!this.fieldsSvc.expanded(this.item):void 0}get disabled(){return this.props.disabled||this.fieldsSvc.disabled(this.item)}get ariaChecked(){if(this.props.checkboxes)return this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false"}get ariaSelected(){if(this.fieldsSvc.selected(this.item))return!0;if(this.props.ariaMultiSelectable)return this.disabled?void 0:!1}getIconProps(){const e=this.fieldsSvc.expanded(this.item);return e&&!s.hasChildren(this.item,this.fieldsSvc.getChildrenField())?{name:"loading"}:e?{name:"caret-alt-down",icon:o.caretAltDownIcon}:{name:this.props.isRtl?"caret-alt-left":"caret-alt-right",icon:this.props.isRtl?o.caretAltLeftIcon:o.caretAltRightIcon}}};d.defaultProps={position:"top",iconField:"svgIcon"};let a=d;const c=s.withIdHOC(i.forwardRef((r,e)=>{const n=i.useContext(l).call(void 0,r);return i.createElement(a,{ref:e,...n})}));c.displayName="TreeViewItem";exports.TreeViewItem=c;exports.TreeViewItemPropsContext=l;
package/TreeViewItem.mjs CHANGED
@@ -12,7 +12,9 @@ import { caretAltDownIcon as f, caretAltLeftIcon as b, caretAltRightIcon as k }
12
12
  import { Reveal as g } from "@progress/kendo-react-animation";
13
13
  import { DOM_KENDO_ITEM_ID_FIELD as x, DOM_KENDO_TREEVIEW_GUID_FIELD as E } from "./utils/consts.mjs";
14
14
  import { getNodePosition as C } from "./utils/utils.mjs";
15
- const { sizeMap: v } = u, S = t.createContext((r) => r), d = class d extends t.Component {
15
+ const { sizeMap: v } = u, S = t.createContext(
16
+ (r) => r
17
+ ), d = class d extends t.Component {
16
18
  constructor() {
17
19
  super(...arguments), this.onCheckChange = (e) => {
18
20
  this.props.onCheckChange(e, this.item, this.itemId);
@@ -76,13 +78,10 @@ const { sizeMap: v } = u, S = t.createContext((r) => r), d = class d extends t.C
76
78
  "input",
77
79
  {
78
80
  type: "checkbox",
79
- className: n(
80
- "k-checkbox k-rounded-md",
81
- {
82
- [`k-checkbox-${v[e] || e}`]: e,
83
- "k-disabled": this.disabled
84
- }
85
- ),
81
+ className: n("k-checkbox k-rounded-md", {
82
+ [`k-checkbox-${v[e] || e}`]: e,
83
+ "k-disabled": this.disabled
84
+ }),
86
85
  "aria-label": this.item.text,
87
86
  checked: !!this.fieldsSvc.checked(this.item),
88
87
  id: this.props.id,
@@ -91,15 +90,21 @@ const { sizeMap: v } = u, S = t.createContext((r) => r), d = class d extends t.C
91
90
  ref: (i) => this.checkboxElement = i
92
91
  }
93
92
  ));
94
- } else
95
- return;
93
+ }
96
94
  }
97
95
  renderExpandIcon() {
98
96
  return this.props.expandIcons && // If it is explicitly said that the item has children (even not loaded yet)
99
97
  // or if the item actually has children, then render the icon.
100
98
  (this.fieldsSvc.hasChildren(this.item) || o(this.item, this.fieldsSvc.getChildrenField())) && // Allowing the toggle-button even with `disabled=true` might be a valid case!
101
99
  // Re-evaluate the classes bellow if such scenario occurs
102
- /* @__PURE__ */ t.createElement("span", { className: n("k-treeview-toggle", { "k-disabled": this.disabled }), onClick: this.onExpandChange }, /* @__PURE__ */ t.createElement(h, { ...this.getIconProps() }));
100
+ /* @__PURE__ */ t.createElement(
101
+ "span",
102
+ {
103
+ className: n("k-treeview-toggle", { "k-disabled": this.disabled }),
104
+ onClick: this.onExpandChange
105
+ },
106
+ /* @__PURE__ */ t.createElement(h, { ...this.getIconProps() })
107
+ );
103
108
  }
104
109
  renderSubitemsIfApplicable() {
105
110
  const e = this.fieldsSvc.children(this.item);
@@ -140,14 +145,11 @@ const { sizeMap: v } = u, S = t.createContext((r) => r), d = class d extends t.C
140
145
  return /* @__PURE__ */ t.createElement(
141
146
  "span",
142
147
  {
143
- className: n(
144
- "k-treeview-leaf",
145
- {
146
- "k-focus": this.props.focusedItemId === this.itemId,
147
- "k-selected": this.fieldsSvc.selected(this.item),
148
- "k-disabled": this.disabled
149
- }
150
- ),
148
+ className: n("k-treeview-leaf", {
149
+ "k-focus": this.props.focusedItemId === this.itemId,
150
+ "k-selected": this.fieldsSvc.selected(this.item),
151
+ "k-disabled": this.disabled
152
+ }),
151
153
  style: { touchAction: "none" },
152
154
  onClick: this.onItemClick,
153
155
  onContextMenu: this.onContextMenu
@@ -179,11 +181,17 @@ const { sizeMap: v } = u, S = t.createContext((r) => r), d = class d extends t.C
179
181
  return this.fieldsSvc.checked(this.item) ? "true" : this.fieldsSvc.checkIndeterminate(this.item) ? "mixed" : "false";
180
182
  }
181
183
  get ariaSelected() {
182
- return this.fieldsSvc.selected(this.item) ? !0 : this.props.ariaMultiSelectable ? this.disabled ? void 0 : !1 : void 0;
184
+ if (this.fieldsSvc.selected(this.item))
185
+ return !0;
186
+ if (this.props.ariaMultiSelectable)
187
+ return this.disabled ? void 0 : !1;
183
188
  }
184
189
  getIconProps() {
185
190
  const e = this.fieldsSvc.expanded(this.item);
186
- return e && !o(this.item, this.fieldsSvc.getChildrenField()) ? { name: "loading" } : e ? { name: "caret-alt-down", icon: f } : { name: this.props.isRtl ? "caret-alt-left" : "caret-alt-right", icon: this.props.isRtl ? b : k };
191
+ return e && !o(this.item, this.fieldsSvc.getChildrenField()) ? { name: "loading" } : e ? { name: "caret-alt-down", icon: f } : {
192
+ name: this.props.isRtl ? "caret-alt-left" : "caret-alt-right",
193
+ icon: this.props.isRtl ? b : k
194
+ };
187
195
  }
188
196
  };
189
197
  d.defaultProps = {
@@ -191,16 +199,12 @@ d.defaultProps = {
191
199
  iconField: "svgIcon"
192
200
  };
193
201
  let a = d;
194
- const c = I(t.forwardRef((r, e) => {
195
- const s = t.useContext(S).call(void 0, r);
196
- return /* @__PURE__ */ t.createElement(
197
- a,
198
- {
199
- ref: e,
200
- ...s
201
- }
202
- );
203
- }));
202
+ const c = I(
203
+ t.forwardRef((r, e) => {
204
+ const s = t.useContext(S).call(void 0, r);
205
+ return /* @__PURE__ */ t.createElement(a, { ref: e, ...s });
206
+ })
207
+ );
204
208
  c.displayName = "TreeViewItem";
205
209
  export {
206
210
  c as TreeViewItem,
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-treeview",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1724413247,
13
+ publishDate: 1726561292,
14
14
  version: "",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-treeview",
3
- "version": "8.3.0-develop.9",
3
+ "version": "8.3.0",
4
4
  "description": "React TreeView displays hierarchical data in a traditional tree structure, supports user interaction. KendoReact TreeView package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -23,8 +23,8 @@
23
23
  "sideEffects": false,
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-licensing": "^1.3.4",
26
- "@progress/kendo-react-animation": "8.3.0-develop.9",
27
- "@progress/kendo-react-common": "8.3.0-develop.9",
26
+ "@progress/kendo-react-animation": "8.3.0",
27
+ "@progress/kendo-react-common": "8.3.0",
28
28
  "@progress/kendo-svg-icons": "^3.0.0",
29
29
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
30
30
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"