Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-treeview

Package Overview
Dependencies
Maintainers
1
Versions
1103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-treeview - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1-dev.201903281458

2

dist/systemjs/kendo-react-treeview.js

@@ -1,1 +0,1 @@

System.register("@progress/kendo-react-treeview",["react","prop-types","@progress/kendo-react-common","@progress/kendo-react-animation"],function(s){var n,i,r,o;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){o=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,n,t){"use strict";function r(e){return s(e)?e:e.split(n.SEPARATOR)[0]}function o(e){if(s(e))return e;var t=e.indexOf(n.SEPARATOR);return e.substring(t+1)}function i(e,t){return e=e.toString(),t?t+n.SEPARATOR+e:e}function s(e){return e===n.EMPTY_ID||e.indexOf(n.SEPARATOR)<0}function a(e){return e!==n.EMPTY_ID&&e.indexOf(n.SEPARATOR)<0}Object.defineProperty(n,"__esModule",{value:!0}),n.EMPTY_ID="",n.ZERO_LEVEL_ZERO_NODE_ID="0",n.SEPARATOR="_",n.getItemById=function e(t,n){if(a(t))return n[Number(t)];var i=n[Number(r(t))];return i&&i.items&&i.items.length?e(o(t),i.items):void 0},n.getRootParentId=r,n.getIdWithoutRootParentId=o,n.getFirstChildId=function(e){return i("0",e)},n.createId=i,n.getDirectParentId=function(e){var t=e.lastIndexOf(n.SEPARATOR);return t<0?n.EMPTY_ID:e.substring(0,t)},n.isIdEmptyOrZeroLevel=s,n.isIdZeroLevel=a,n.getAllShortIds=function(e){return e.split(n.SEPARATOR)},n.getShortId=function(e){var t=e.lastIndexOf(n.SEPARATOR);return t<0?e:e.substring(t+1)}},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),o=n(2);function d(e){return Boolean(e.items&&e.items.length)}t.isItemExpandedAndWithChildren=function(e,t){return t.expanded(e)&&d(e)},t.resolveItemId=function(e,t){return function e(t,n,i){for(var r=void 0,o=0;o<n.length;o++){var s=n[o];if(t(s)){r=c.createId(o,i);break}if(d(s)&&(r=e(t,s.items,c.createId(o,i))))break}return r}(e,t,c.EMPTY_ID)},t.updateItem=function e(t,n,i){for(var r=[],o=0;o<t.length;o++)if(Number(c.getRootParentId(n))===o){var s=a({},t[o]);c.isIdZeroLevel(n)?i(s):t[o].items&&(s.items=e(t[o].items,c.getIdWithoutRootParentId(n),i)),r.push(s)}else r.push(t[o]);return r},t.hasChildren=d,t.isEnabledAndAllParentsEnabled=function(e,t,n){for(var i=c.getAllShortIds(e),r=t,o=0;o<i.length;o++){var s=r[Number(i[o])];if(n.disabled(s))return!1;r=s.items}return!0},t.getAllDirectIndirectChildrenIds=function(e,t,r){return r?function e(t){var n=[];if(t.items)for(var i=0;i<t.items.length;i++)n.push(o.getNestedValue(r,t.items[i])),n=n.concat(e(t.items[i]));return n}(e):function e(t,n){var i=[];if(t.items)for(var r=0;r<t.items.length;r++){var o=c.createId(r,n);i.push(o),i=i.concat(e(t.items[r],o))}return i}(e,t)},t.areAllDirectChildrenChecked=function(e,n,i,r){return!e.items||e.items.every(function(e,t){return-1<r.indexOf(i?o.getNestedValue(i,e):c.createId(t,n))})},t.getAllParents=function(e,t){for(var n=[],i=c.getAllShortIds(e),r=t,o=0;o<i.length-1&&r;o++){var s=r[Number(i[o])];n.push(s),r=s.items}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNestedValue=function(e,t){var n=(e||"").split("."),i=t;return n.forEach(function(e){i=i?i[e]:void 0}),i},t.isArray=function(e){return void 0!==e.length}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPAND_FIELD="expanded",t.SELECT_FIELD="selected",t.CHECK_FIELD="checked",t.CHECK_INDETERMINATE_FIELD="checkIndeterminate"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.TreeView=i.default;var r=n(13);t.processTreeViewItems=r.default;var o=n(14);t.handleTreeViewCheckChange=o.handleTreeViewCheckChange,function(e){for(var t in e)s(t,e[t])}(t)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(8),a=n(3),c=n(9),d=n(1),l=n(10),u=n(0),h=n(12),p=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:u.ZERO_LEVEL_ZERO_NODE_ID},i.allowExplicitFocus=!1,i.onFocusDomElNeeded=function(e){i.allowExplicitFocus&&i.focusDomItem(e)},i.onCheckChange=function(e,t,n){i.setFocus(n),i.dispatchCheckChange(e,t,n)},i.onExpandChange=function(e,t,n){i.setFocus(n),i.dispatchExpandChange(e,t,n)},i.onDragStart=function(){},i.onDrop=function(){},i.onDragOver=function(){},i.onItemClick=function(e,t,n){i.setFocus(n),i.dispatchItemClick(e,t,n)},i.onFocus=function(){clearTimeout(i.blurRequest),void 0===i.state.focusedItemId&&i.data.length&&i.setFocus(i.state.tabbableItemId)},i.onBlur=function(){clearTimeout(i.blurRequest),i.blurRequest=setTimeout(function(){return i.setFocus(void 0)},0)},i.onKeyDown=function(e){var t=i.getFocusedItem();if(t){var n=c.default(t,i.state.focusedItemId,i.data,e.keyCode,i.fieldsSvc);n!==i.state.focusedItemId&&(e.preventDefault(),i.allowExplicitFocus=!0,i.setFocus(n)),i.dispatchEventsOnKeyDown(e,t)}},i}return r(t,e),t.prototype.render=function(){var n=this;return this.fieldsSvc=new h.default(this.props),o.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},o.createElement("ul",{className:"k-treeview-lines",role:"group"},this.data.map(function(e,t){return o.createElement(l.default,{item:e,animate:n.props.animate,itemId:t.toString(),focusedItemId:n.state.focusedItemId,tabbableItemId:n.state.tabbableItemId,fieldsService:n.fieldsSvc,itemRender:n.props.itemRender,checkboxes:n.props.checkboxes,ariaMultiSelectable:n.ariaMultiSelectable,onItemClick:n.onItemClick,onFocusDomElNeeded:n.onFocusDomElNeeded,draggable:!1,onDragStart:n.onDragStart,onDragOver:n.onDragOver,onDrop:n.onDrop,expandIcons:n.props.expandIcons,onExpandChange:n.onExpandChange,onCheckChange:n.onCheckChange,key:t})})))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,i=function(){return d.isEnabledAndAllParentsEnabled(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===a.Keys.left&&this.fieldsSvc.expanded(t)&&i()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===a.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||d.hasChildren(t))&&i()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===a.Keys.enter&&i()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===a.Keys.space&&i()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState(function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}})},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return u.getItemById(e,this.data)},t.prototype.dispatchCheckChange=function(e,t,n){a.dispatchEvent(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){a.dispatchEvent(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){a.dispatchEvent(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){var t=this;if(this.fieldsSvc.focusIdField){var n=this.state.focusedItemPublicId;if(n){var e=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(n):d.resolveItemId(function(e){return t.fieldsSvc.focusId(e)===n},this.data);e!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:e}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},t.propTypes={data:s.arrayOf(s.any),animate:s.bool,focusIdField:s.string,getHierarchicalIndexById:s.func,onExpandChange:s.func,onItemClick:s.func,expandField:s.string,selectField:s.string,hasChildrenField:s.string,textField:s.string,disableField:s.string,itemRender:s.any,"aria-multiselectable":s.oneOfType([s.bool,s.oneOf(["false","true"])]),"aria-label":s.string,"aria-labelledby":s.string},t.defaultProps={animate:!0},t}(o.Component);t.default=p},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),c=n(0),d=n(1);t.default=function(e,t,n,i,r){switch(i){case a.Keys.left:return c.isIdZeroLevel(t)||r.expanded(e)&&d.isEnabledAndAllParentsEnabled(t,n,r)?t:c.getDirectParentId(t);case a.Keys.right:return d.isItemExpandedAndWithChildren(e,r)?c.getFirstChildId(t):t;case a.Keys.up:return o=Number(c.getShortId(t)),s=c.getDirectParentId(t),o?function e(t,n,i){var r=c.getItemById(t,n);return d.isItemExpandedAndWithChildren(r,i)?e(c.createId(r.items.length-1,t),n,i):t}(c.createId(o-1,s),n,r):c.isIdZeroLevel(t)?t:s;case a.Keys.down:return d.isItemExpandedAndWithChildren(e,r)?c.getFirstChildId(t):function e(t,n){var i=c.getDirectParentId(t),r=i?c.getItemById(i,n):void 0,o=r?r.items:n,s=Number(c.getShortId(t));return s<o.length-1?c.createId(s+1,i):r?e(i,n):void 0}(t,n)||t;case a.Keys.home:return c.ZERO_LEVEL_ZERO_NODE_ID;case a.Keys.end:return function(){for(var e=(n.length-1).toString(),t=n[n.length-1];d.isItemExpandedAndWithChildren(t,r);)e=c.createId(t.items.length-1,e),t=t.items[t.items.length-1];return e}();default:return t}var o,s}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(3),a=n(0),c=n(1),d=n(11),l=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.guid=s.guid(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onDragStart=function(e){t.props.draggable&&t.props.onDragStart(e,t.item,t.itemId)},t.onDrop=function(e){t.props.onDrop(e,t.item,t.itemId,t.getDropZonePosition(e.clientY))},t.onDragOver=function(e){t.props.onDragOver(e,t.item,t.itemId,t.getDropZonePosition(e.clientY))},t}return r(i,e),i.prototype.render=function(){var t=this,e=this.renderSubitemsIfApplicable();return o.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(e){return t.itemElement=e}},o.createElement("div",{className:"k-mid",onDragOver:this.onDragOver,onDrop:this.onDrop,ref:function(e){return t.dropZone=e}},this.renderExpandIcon(),this.renderCheckbox(),o.createElement("span",{className:this.getContentClassName(),onClick:this.onItemClick,draggable:this.props.draggable,onDragStart:this.onDragStart},this.props.itemRender?o.createElement(this.props.itemRender,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))),this.props.animate?o.createElement(d.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:e}):e)},i.prototype.componentDidMount=function(){var 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))},i.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},i.prototype.renderCheckbox=function(){var t=this;return this.props.checkboxes?o.createElement("div",{className:"k-checkbox-wrapper"},o.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.guid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),o.createElement("label",{className:"k-checkbox-label",htmlFor:this.guid})):void 0},i.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||c.hasChildren(this.item))?o.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},i.prototype.renderSubitemsIfApplicable=function(){var n=this;return c.isItemExpandedAndWithChildren(this.item,this.fieldsSvc)?o.createElement("ul",{className:"k-content",role:"group"},this.item.items.map(function(e,t){return o.createElement(i,{item:e,animate:n.props.animate,itemId:a.createId(t,n.itemId),focusedItemId:n.props.focusedItemId,tabbableItemId:n.props.tabbableItemId,fieldsService:n.props.fieldsService,itemRender:n.props.itemRender,checkboxes:n.props.checkboxes,ariaMultiSelectable:n.props.ariaMultiSelectable,onItemClick:n.props.onItemClick,onFocusDomElNeeded:n.props.onFocusDomElNeeded,draggable:n.props.draggable,onDragStart:n.props.onDragStart,onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,expandIcons:n.props.expandIcons,onExpandChange:n.props.onExpandChange,onCheckChange:n.props.onCheckChange,key:t})})):void 0},i.prototype.getDropZonePosition=function(e){var t=this.dropZone.getBoundingClientRect(),n=t.y;return n+t.height-e<5?"after":e-n<5?"before":"over"},Object.defineProperty(i.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||c.hasChildren(this.item)?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),i.prototype.getIconClassName=function(){return s.classNames("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!c.hasChildren(this.item)})},i.prototype.getRootClassName=function(){return s.classNames("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},i.prototype.getContentClassName=function(){return s.classNames("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},i}(o.Component);t.default=l},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(2),o=function(){function e(e){this.expandField=e.expandField||i.EXPAND_FIELD,this.selectField=e.selectField||i.SELECT_FIELD,this.hasChildrenField=e.hasChildrenField||"hasChildren",this.textField=e.textField||"text",this.disableField=e.disableField||"disabled",this.checkField=e.checkField||i.CHECK_FIELD,this.checkIndeterminateField=e.checkIndeterminateField||i.CHECK_INDETERMINATE_FIELD,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return r.getNestedValue(this.expandField,e)},e.prototype.selected=function(e){return r.getNestedValue(this.selectField,e)},e.prototype.text=function(e){return r.getNestedValue(this.textField,e)},e.prototype.disabled=function(e){return r.getNestedValue(this.disableField,e)},e.prototype.hasChildren=function(e){return r.getNestedValue(this.hasChildrenField,e)},e.prototype.checked=function(e){return r.getNestedValue(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return r.getNestedValue(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&r.getNestedValue(this.focusIdField,e)},e}();t.default=o},function(e,t,n){"use strict";var s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),a=n(5),f=n(2);function i(e,t,n){if(n){var i=m(n,t),r=i.ids,o=i.field,s=r;return!f.isArray(n)&&n.idField&&(d=r,l=n.idField,u=e,h=[],d.forEach(function(t){h.push(p.resolveItemId(function(e){return f.getNestedValue(l,e)===t},u))}),s=h),a=o,c=e,s.forEach(function(e){c=p.updateItem(c,e,function(e){return I(a,e)})}),c}var a,c,d,l,u,h;return e}function m(e,t){var n,i;return i=f.isArray(e)?(n=e,t):(n=e.ids||[],e.operationField||t),{ids:n,field:i}}function I(e,t){for(var n=(e||"").split("."),i=t,r=0;r<n.length;r++){var o=n[r];if(r===n.length-1)i[o]=!0;else{if(void 0===i[o])return;i[o]=s({},i[o]),i=i[o]}}}function c(e,t,n,i){for(var r=!1,o=0;o<e.length;o++){var s=e[o];if(f.getNestedValue(n,s)){if(!r)for(var a=0;a<t.length;a++)I(i,t[a]);r=!0,s.items&&c(s.items,[],n,i)}else s.items&&c(s.items,r?[s]:t.concat([s]),n,i)}}t.default=function(e,t){var n=e;return e&&e.length?(function(e,t){if(t&&!f.isArray(t)&&t.applyCheckIndeterminate)for(var n=m(t,a.CHECK_FIELD).field,i=t.checkIndeterminateField||a.CHECK_INDETERMINATE_FIELD,r=0;r<e.length;r++){var o=e[r];o.items&&c(o.items,f.getNestedValue(n,o)?[]:[o],n,i)}}(n=i(n=i(n=i(n,a.EXPAND_FIELD,t.expand),a.SELECT_FIELD,t.select),a.CHECK_FIELD,t.check),t.check),n):[]}},function(e,t,n){"use strict";var _=this&&this.__generator||function(n,i){var r,o,s,e,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(n,a)}catch(e){t=[6,e],o=0}finally{r=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};Object.defineProperty(t,"__esModule",{value:!0});var S=n(1),F=n(0),O=n(2);t.handleTreeViewCheckChange=function(e,t,n,i){if(void 0===i&&(i={}),!n||!n.length)return[];var r,o,s,a,c,d,l,u,h,p,f,m,I,g,v,b,y=(o=t,a=void 0,O.isArray(o)?s=o:(s=o.ids||[],a=o.idField),{ids:s,idField:a}),E=y.ids,C=y.idField,x=C?O.getNestedValue(C,e.item):e.itemHierarchicalIndex,k=E.indexOf(x),D=-1===k;return i.singleMode?r=D?[x]:[]:(r=E.slice(),D?r.push(x):r.splice(k,1),i.checkChildren&&(m=e.item,I=e.itemHierarchicalIndex,g=D,v=C,b=r,S.getAllDirectIndirectChildrenIds(m,I,v).forEach(function(e){g&&-1===b.indexOf(e)?b.push(e):!g&&-1<b.indexOf(e)&&b.splice(b.indexOf(e),1)})),i.checkParents&&(c=e.itemHierarchicalIndex,d=D,l=C,u=r,h=n,p=function(){var t,n,i;return _(this,function(e){switch(e.label){case 0:if(!l)return[3,5];t=S.getAllParents(c,h),n=t.length-1,e.label=1;case 1:return-1<n?[4,{id:O.getNestedValue(l,t[n]),item:d?t[n]:void 0}]:[3,4];case 2:e.sent(),e.label=3;case 3:return n--,[3,1];case 4:return[3,8];case 5:i=F.getDirectParentId(c),e.label=6;case 6:return i?[4,{id:i,item:d?F.getItemById(i,h):void 0}]:[3,8];case 7:return e.sent(),i=F.getDirectParentId(i),[3,6];case 8:return[2]}})}(),f=p.next(),d?function(){for(;!f.done;){var e=f.value,t=e.id,n=e.item;if(-1!==u.indexOf(t)||!S.areAllDirectChildrenChecked(n,t,l,u))break;u.push(t),f=p.next()}}():function(){for(;!f.done;){var e=f.value.id,t=u.indexOf(e);if(!(-1<t))break;u.splice(t,1),f=p.next()}}())),O.isArray(t)?r:Object.assign({},t,{ids:r})}}])}}});
System.register("@progress/kendo-react-treeview",["react","@progress/kendo-react-common","prop-types","@progress/kendo-react-animation"],function(s){var n,i,r,o;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){o=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,n,t){"use strict";function r(e){return s(e)?e:e.split(n.SEPARATOR)[0]}function o(e){if(s(e))return e;var t=e.indexOf(n.SEPARATOR);return e.substring(t+1)}function i(e,t){return e=e.toString(),t?t+n.SEPARATOR+e:e}function s(e){return e===n.EMPTY_ID||e.indexOf(n.SEPARATOR)<0}function a(e){return e!==n.EMPTY_ID&&e.indexOf(n.SEPARATOR)<0}Object.defineProperty(n,"__esModule",{value:!0}),n.EMPTY_ID="",n.ZERO_LEVEL_ZERO_NODE_ID="0",n.SEPARATOR="_",n.getItemById=function e(t,n){if(a(t))return n[Number(t)];var i=n[Number(r(t))];return i&&i.items&&i.items.length?e(o(t),i.items):void 0},n.getRootParentId=r,n.getIdWithoutRootParentId=o,n.getFirstChildId=function(e){return i("0",e)},n.createId=i,n.getDirectParentId=function(e){var t=e.lastIndexOf(n.SEPARATOR);return t<0?n.EMPTY_ID:e.substring(0,t)},n.isIdEmptyOrZeroLevel=s,n.isIdZeroLevel=a,n.getAllShortIds=function(e){return e.split(n.SEPARATOR)},n.getShortId=function(e){var t=e.lastIndexOf(n.SEPARATOR);return t<0?e:e.substring(t+1)}},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),o=n(2);function d(e){return Boolean(e.items&&e.items.length)}t.isItemExpandedAndWithChildren=function(e,t){return t.expanded(e)&&d(e)},t.resolveItemId=function(e,t){return function e(t,n,i){for(var r=void 0,o=0;o<n.length;o++){var s=n[o];if(t(s)){r=c.createId(o,i);break}if(d(s)&&(r=e(t,s.items,c.createId(o,i))))break}return r}(e,t,c.EMPTY_ID)},t.updateItem=function e(t,n,i){for(var r=[],o=0;o<t.length;o++)if(Number(c.getRootParentId(n))===o){var s=a({},t[o]);c.isIdZeroLevel(n)?i(s):t[o].items&&(s.items=e(t[o].items,c.getIdWithoutRootParentId(n),i)),r.push(s)}else r.push(t[o]);return r},t.hasChildren=d,t.isEnabledAndAllParentsEnabled=function(e,t,n){for(var i=c.getAllShortIds(e),r=t,o=0;o<i.length;o++){var s=r[Number(i[o])];if(n.disabled(s))return!1;r=s.items}return!0},t.getAllDirectIndirectChildrenIds=function(e,t,r){return r?function e(t){var n=[];if(t.items)for(var i=0;i<t.items.length;i++)n.push(o.getNestedValue(r,t.items[i])),n=n.concat(e(t.items[i]));return n}(e):function e(t,n){var i=[];if(t.items)for(var r=0;r<t.items.length;r++){var o=c.createId(r,n);i.push(o),i=i.concat(e(t.items[r],o))}return i}(e,t)},t.areAllDirectChildrenChecked=function(e,n,i,r){return!e.items||e.items.every(function(e,t){return-1<r.indexOf(i?o.getNestedValue(i,e):c.createId(t,n))})},t.getAllParents=function(e,t){for(var n=[],i=c.getAllShortIds(e),r=t,o=0;o<i.length-1&&r;o++){var s=r[Number(i[o])];n.push(s),r=s.items}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNestedValue=function(e,t){var n=(e||"").split("."),i=t;return n.forEach(function(e){i=i?i[e]:void 0}),i},t.isArray=function(e){return void 0!==e.length}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPAND_FIELD="expanded",t.SELECT_FIELD="selected",t.CHECK_FIELD="checked",t.CHECK_INDETERMINATE_FIELD="checkIndeterminate"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.TreeView=i.default;var r=n(13);t.processTreeViewItems=r.default;var o=n(14);t.handleTreeViewCheckChange=o.handleTreeViewCheckChange,function(e){for(var t in e)s(t,e[t])}(t)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(8),a=n(3),c=n(9),d=n(1),l=n(10),u=n(0),h=n(12),p=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:u.ZERO_LEVEL_ZERO_NODE_ID},i.allowExplicitFocus=!1,i.onFocusDomElNeeded=function(e){i.allowExplicitFocus&&i.focusDomItem(e)},i.onCheckChange=function(e,t,n){i.setFocus(n),i.dispatchCheckChange(e,t,n)},i.onExpandChange=function(e,t,n){i.setFocus(n),i.dispatchExpandChange(e,t,n)},i.onDragStart=function(){},i.onDrop=function(){},i.onDragOver=function(){},i.onItemClick=function(e,t,n){i.setFocus(n),i.dispatchItemClick(e,t,n)},i.onFocus=function(){clearTimeout(i.blurRequest),void 0===i.state.focusedItemId&&i.data.length&&i.setFocus(i.state.tabbableItemId)},i.onBlur=function(){clearTimeout(i.blurRequest),i.blurRequest=setTimeout(function(){return i.setFocus(void 0)},0)},i.onKeyDown=function(e){var t=i.getFocusedItem();if(t){var n=c.default(t,i.state.focusedItemId,i.data,e.keyCode,i.fieldsSvc);n!==i.state.focusedItemId&&(e.preventDefault(),i.allowExplicitFocus=!0,i.setFocus(n)),i.dispatchEventsOnKeyDown(e,t)}},i}return r(t,e),t.prototype.render=function(){var n=this;return this.fieldsSvc=new h.default(this.props),o.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},o.createElement("ul",{className:"k-treeview-lines",role:"group"},this.data.map(function(e,t){return o.createElement(l.default,{item:e,animate:n.props.animate,itemId:t.toString(),focusedItemId:n.state.focusedItemId,tabbableItemId:n.state.tabbableItemId,fieldsService:n.fieldsSvc,itemRender:n.props.itemRender,checkboxes:n.props.checkboxes,ariaMultiSelectable:n.ariaMultiSelectable,onItemClick:n.onItemClick,onFocusDomElNeeded:n.onFocusDomElNeeded,draggable:!1,onDragStart:n.onDragStart,onDragOver:n.onDragOver,onDrop:n.onDrop,expandIcons:n.props.expandIcons,onExpandChange:n.onExpandChange,onCheckChange:n.onCheckChange,key:t})})))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,i=function(){return d.isEnabledAndAllParentsEnabled(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===a.Keys.left&&this.fieldsSvc.expanded(t)&&i()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===a.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||d.hasChildren(t))&&i()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===a.Keys.enter&&i()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===a.Keys.space&&i()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState(function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}})},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return u.getItemById(e,this.data)},t.prototype.dispatchCheckChange=function(e,t,n){a.dispatchEvent(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){a.dispatchEvent(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){a.dispatchEvent(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){var t=this;if(this.fieldsSvc.focusIdField){var n=this.state.focusedItemPublicId;if(n){var e=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(n):d.resolveItemId(function(e){return t.fieldsSvc.focusId(e)===n},this.data);e!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:e}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},t.propTypes={data:s.arrayOf(s.any),animate:s.bool,focusIdField:s.string,getHierarchicalIndexById:s.func,onExpandChange:s.func,onItemClick:s.func,expandField:s.string,selectField:s.string,hasChildrenField:s.string,textField:s.string,disableField:s.string,itemRender:s.any,"aria-multiselectable":s.oneOfType([s.bool,s.oneOf(["false","true"])]),"aria-label":s.string,"aria-labelledby":s.string},t.defaultProps={animate:!0},t}(o.Component);t.default=p},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),c=n(0),d=n(1);t.default=function(e,t,n,i,r){switch(i){case a.Keys.left:return c.isIdZeroLevel(t)||r.expanded(e)&&d.isEnabledAndAllParentsEnabled(t,n,r)?t:c.getDirectParentId(t);case a.Keys.right:return d.isItemExpandedAndWithChildren(e,r)?c.getFirstChildId(t):t;case a.Keys.up:return o=Number(c.getShortId(t)),s=c.getDirectParentId(t),o?function e(t,n,i){var r=c.getItemById(t,n);return d.isItemExpandedAndWithChildren(r,i)?e(c.createId(r.items.length-1,t),n,i):t}(c.createId(o-1,s),n,r):c.isIdZeroLevel(t)?t:s;case a.Keys.down:return d.isItemExpandedAndWithChildren(e,r)?c.getFirstChildId(t):function e(t,n){var i=c.getDirectParentId(t),r=i?c.getItemById(i,n):void 0,o=r?r.items:n,s=Number(c.getShortId(t));return s<o.length-1?c.createId(s+1,i):r?e(i,n):void 0}(t,n)||t;case a.Keys.home:return c.ZERO_LEVEL_ZERO_NODE_ID;case a.Keys.end:return function(){for(var e=(n.length-1).toString(),t=n[n.length-1];d.isItemExpandedAndWithChildren(t,r);)e=c.createId(t.items.length-1,e),t=t.items[t.items.length-1];return e}();default:return t}var o,s}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(3),a=n(0),c=n(1),d=n(11),l=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.guid=s.guid(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onDragStart=function(e){t.props.draggable&&t.props.onDragStart(e,t.item,t.itemId)},t.onDrop=function(e){t.props.onDrop(e,t.item,t.itemId,t.getDropZonePosition(e.clientY))},t.onDragOver=function(e){t.props.onDragOver(e,t.item,t.itemId,t.getDropZonePosition(e.clientY))},t}return r(i,e),i.prototype.render=function(){var t=this,e=this.renderSubitemsIfApplicable();return o.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(e){return t.itemElement=e}},o.createElement("div",{className:"k-mid",onDragOver:this.onDragOver,onDrop:this.onDrop,ref:function(e){return t.dropZone=e}},this.renderExpandIcon(),this.renderCheckbox(),o.createElement("span",{className:this.getContentClassName(),onClick:this.onItemClick,draggable:this.props.draggable,onDragStart:this.onDragStart},this.props.itemRender?o.createElement(this.props.itemRender,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))),this.props.animate?o.createElement(d.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:e}):e)},i.prototype.componentDidMount=function(){var 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))},i.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},i.prototype.renderCheckbox=function(){var t=this;return this.props.checkboxes?o.createElement("div",{className:"k-checkbox-wrapper"},o.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.guid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),o.createElement("label",{className:"k-checkbox-label",htmlFor:this.guid})):void 0},i.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||c.hasChildren(this.item))?o.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},i.prototype.renderSubitemsIfApplicable=function(){var n=this;return c.isItemExpandedAndWithChildren(this.item,this.fieldsSvc)?o.createElement("ul",{className:"k-content",role:"group"},this.item.items.map(function(e,t){return o.createElement(i,{item:e,animate:n.props.animate,itemId:a.createId(t,n.itemId),focusedItemId:n.props.focusedItemId,tabbableItemId:n.props.tabbableItemId,fieldsService:n.props.fieldsService,itemRender:n.props.itemRender,checkboxes:n.props.checkboxes,ariaMultiSelectable:n.props.ariaMultiSelectable,onItemClick:n.props.onItemClick,onFocusDomElNeeded:n.props.onFocusDomElNeeded,draggable:n.props.draggable,onDragStart:n.props.onDragStart,onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,expandIcons:n.props.expandIcons,onExpandChange:n.props.onExpandChange,onCheckChange:n.props.onCheckChange,key:t})})):void 0},i.prototype.getDropZonePosition=function(e){var t=this.dropZone.getBoundingClientRect(),n=t.y;return n+t.height-e<5?"after":e-n<5?"before":"over"},Object.defineProperty(i.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||c.hasChildren(this.item)?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),i.prototype.getIconClassName=function(){return s.classNames("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!c.hasChildren(this.item)})},i.prototype.getRootClassName=function(){return s.classNames("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},i.prototype.getContentClassName=function(){return s.classNames("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},i}(o.Component);t.default=l},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(2),o=function(){function e(e){this.expandField=e.expandField||i.EXPAND_FIELD,this.selectField=e.selectField||i.SELECT_FIELD,this.hasChildrenField=e.hasChildrenField||"hasChildren",this.textField=e.textField||"text",this.disableField=e.disableField||"disabled",this.checkField=e.checkField||i.CHECK_FIELD,this.checkIndeterminateField=e.checkIndeterminateField||i.CHECK_INDETERMINATE_FIELD,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return r.getNestedValue(this.expandField,e)},e.prototype.selected=function(e){return r.getNestedValue(this.selectField,e)},e.prototype.text=function(e){return r.getNestedValue(this.textField,e)},e.prototype.disabled=function(e){return r.getNestedValue(this.disableField,e)},e.prototype.hasChildren=function(e){return r.getNestedValue(this.hasChildrenField,e)},e.prototype.checked=function(e){return r.getNestedValue(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return r.getNestedValue(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&r.getNestedValue(this.focusIdField,e)},e}();t.default=o},function(e,t,n){"use strict";var s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),a=n(5),f=n(2);function i(e,t,n){if(n){var i=m(n,t),r=i.ids,o=i.field,s=r;return!f.isArray(n)&&n.idField&&(d=r,l=n.idField,u=e,h=[],d.forEach(function(t){h.push(p.resolveItemId(function(e){return f.getNestedValue(l,e)===t},u))}),s=h),a=o,c=e,s.forEach(function(e){c=p.updateItem(c,e,function(e){return I(a,e)})}),c}var a,c,d,l,u,h;return e}function m(e,t){var n,i;return i=f.isArray(e)?(n=e,t):(n=e.ids||[],e.operationField||t),{ids:n,field:i}}function I(e,t){for(var n=(e||"").split("."),i=t,r=0;r<n.length;r++){var o=n[r];if(r===n.length-1)i[o]=!0;else{if(void 0===i[o])return;i[o]=s({},i[o]),i=i[o]}}}function c(e,t,n,i){for(var r=!1,o=0;o<e.length;o++){var s=e[o];if(f.getNestedValue(n,s)){if(!r)for(var a=0;a<t.length;a++)I(i,t[a]);r=!0,s.items&&c(s.items,[],n,i)}else s.items&&c(s.items,r?[s]:t.concat([s]),n,i)}}t.default=function(e,t){var n=e;return e&&e.length?(function(e,t){if(t&&!f.isArray(t)&&t.applyCheckIndeterminate)for(var n=m(t,a.CHECK_FIELD).field,i=t.checkIndeterminateField||a.CHECK_INDETERMINATE_FIELD,r=0;r<e.length;r++){var o=e[r];o.items&&c(o.items,f.getNestedValue(n,o)?[]:[o],n,i)}}(n=i(n=i(n=i(n,a.EXPAND_FIELD,t.expand),a.SELECT_FIELD,t.select),a.CHECK_FIELD,t.check),t.check),n):[]}},function(e,t,n){"use strict";var _=this&&this.__generator||function(n,i){var r,o,s,e,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(n,a)}catch(e){t=[6,e],o=0}finally{r=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};Object.defineProperty(t,"__esModule",{value:!0});var S=n(1),F=n(0),O=n(2);t.handleTreeViewCheckChange=function(e,t,n,i){if(void 0===i&&(i={}),!n||!n.length)return[];var r,o,s,a,c,d,l,u,h,p,f,m,I,g,v,b,y=(o=t,a=void 0,O.isArray(o)?s=o:(s=o.ids||[],a=o.idField),{ids:s,idField:a}),E=y.ids,C=y.idField,x=C?O.getNestedValue(C,e.item):e.itemHierarchicalIndex,k=E.indexOf(x),D=-1===k;return i.singleMode?r=D?[x]:[]:(r=E.slice(),D?r.push(x):r.splice(k,1),i.checkChildren&&(m=e.item,I=e.itemHierarchicalIndex,g=D,v=C,b=r,S.getAllDirectIndirectChildrenIds(m,I,v).forEach(function(e){g&&-1===b.indexOf(e)?b.push(e):!g&&-1<b.indexOf(e)&&b.splice(b.indexOf(e),1)})),i.checkParents&&(c=e.itemHierarchicalIndex,d=D,l=C,u=r,h=n,p=function(){var t,n,i;return _(this,function(e){switch(e.label){case 0:if(!l)return[3,5];t=S.getAllParents(c,h),n=t.length-1,e.label=1;case 1:return-1<n?[4,{id:O.getNestedValue(l,t[n]),item:d?t[n]:void 0}]:[3,4];case 2:e.sent(),e.label=3;case 3:return n--,[3,1];case 4:return[3,8];case 5:i=F.getDirectParentId(c),e.label=6;case 6:return i?[4,{id:i,item:d?F.getItemById(i,h):void 0}]:[3,8];case 7:return e.sent(),i=F.getDirectParentId(i),[3,6];case 8:return[2]}})}(),f=p.next(),d?function(){for(;!f.done;){var e=f.value,t=e.id,n=e.item;if(-1!==u.indexOf(t)||!S.areAllDirectChildrenChecked(n,t,l,u))break;u.push(t),f=p.next()}}():function(){for(;!f.done;){var e=f.value.id,t=u.indexOf(e);if(!(-1<t))break;u.splice(t,1),f=p.next()}}())),O.isArray(t)?r:Object.assign({},t,{ids:r})}}])}}});
{
"name": "@progress/kendo-react-treeview",
"version": "2.8.0",
"version": "2.8.1-dev.201903281458",
"description": "KendoReact TreeView package",

@@ -31,7 +31,7 @@ "repository": {

"dependencies": {
"@progress/kendo-react-common": "2.8.0",
"@progress/kendo-react-common": "2.8.1-dev.201903281458",
"prop-types": "^15.6.0"
},
"devDependencies": {
"@progress/kendo-react-animation": "2.8.0"
"@progress/kendo-react-animation": "2.8.1-dev.201903281458"
},

@@ -38,0 +38,0 @@ "@progress": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc