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

@progress/kendo-react-dropdowns

Package Overview
Dependencies
Maintainers
1
Versions
1245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.5.0 to 0.5.1-dev.201804061416

2

dist/systemjs/kendo-react-dropdowns.js

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

System.register("@progress/kendo-react-dropdowns",["react","react-dom","prop-types","@progress/kendo-react-common","@progress/kendo-react-popup"],function(a){var n,o,i,s,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){s=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=20)}([function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return null!=e};t.isPresent=i;var s=function(e,t,n){if(void 0===n&&(n=!1),i(e))return n?t&&i(e[t])?e[t]:e:t?e[t]:e};t.getter=s,t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var o=e;return n&&(o=[n].concat(o)),o.slice(t).concat(o.slice(0,t))},t.matchText=function(e,t,n){if(!i(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)};var o=["string","number","undefined"],r=function(e){var t=typeof e;return-1!==o.indexOf(t)};t.isPrimitive=r,t.scrollToItem=function(e,t,n,o,i){var a=e.offsetHeight,s=t*n-(i?e.scrollTop-o:0);if(i){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)},t.itemIndexStartsWith=function(e,t,n){var o=-1;if(e){e=e.toLowerCase();for(var i=0;i<t.length;i++){var a=(s(t[i],n,r(t[i]))||"")+"";if(a&&a.toLowerCase().startsWith(e)){o=i;break}}}return o},t.getItemIndex=function(e,t){var n=e.valueField;return(e.data||[]).findIndex(function(e){return e===t||s(e,n)===t})},t.getItemIndexByText=function(e,t,n){return e.findIndex(function(e){return r(e)?t.toLowerCase()===e.toString().toLowerCase():a(e,n).toLowerCase()===t.toLowerCase()})};var a=function(e,t){return r(e)?e:s(e,t)};t.getItemText=a;var l=function(e,t){return t?s(e,t):e};t.getItemValue=l,t.getText=function(e,t){if(!e.data)return null;if(-1===t)return a(e.defaultItem,e.textField);var n=e.data[t];return a(n,e.textField)},t.getValue=function(e,t){if(-1===t)return l(e.defaultItem,e.valueField);if(e.data){var n=e.data[t];return l(n,e.valueField)}}},function(e,t){e.exports=s},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=1533915,d=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},i=function(){function e(){var n=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.hidden=!1,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(e){if(e){var t=n;(t.container=e).setAttribute("unselectable","on"),setTimeout(t.calculateScrollSizes.bind(t),0)}},this.calculateScrollSizes=function(){var e;n.scrollSyncing=!0,n.itemHeight=n.list?n.list.children[0].offsetHeight:n.itemHeight,n.containerHeight=Math.min(o,n.itemHeight*n.total);var t=n.containerHeight;return(e=n.scrollElement&&n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},this.scrollHandler=this.scrollHandler.bind(this)}return e.prototype.initVirtualization=function(e,t){this.enabled=void 0!==e,void 0!==e&&(this.skip=e.skip,this.pageSize=e.pageSize,this.total=e.total,void 0!==t&&(t.data.skip=e.skip))},e.prototype.updateVirtualization=function(e,t,n){if(void 0===e||void 0===t||t.total===e.total&&0!==e.skip)this.initVirtualization(e,n);else{var o=Object.assign({},e,{skip:0});this.initVirtualization(o,n),this.calculateScrollSizes()&&this.reset()}},e.prototype.handleVirtualItemSelect=function(t,e,n,o){var i=e.skip||0,a=e.selectedIndex||0,s=e.opened&&n,r=this,l=r.pageSize,p=o-i;if(s&&0===o)d(t,0,l),r.reset();else if(s&&o===r.total-1)d(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var u=r.PageChange;r.PageChange=function(e){d(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=u}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var c=Math.max(0,i+(p<0?-1:1));d(t,c,l)}}else d(t,r.total-r.pageSize,l);else d(t,0,l);e.opened||r.reset()},e.prototype.updateListScroll=function(e,t,n){var o=t.scrollTop,i=this,a=i.translate,s=i.hidden,r=e.skip||0;if(o!==a||0===a&&0===o&&0<r){var l=function(){i.enabled=!1;var e=0<a?a:i.itemHeight*r;t.scrollTop=e,i.translateTo(a||e),i.enabled=!0,n()};0===i.itemHeight||s?setTimeout(l,0):l()}},Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.scrollSyncing=!0,this.container&&(this.container.scrollTop=0),this.translateTo(0),this.scrollSyncing=!1},e.prototype.maxScroll=function(){return this.container.scrollHeight-this.container.offsetHeight},e.prototype.scrollToEnd=function(){if(this.container){var e=this.maxScroll();this.translateTo(e),this.container.scrollTop=e}},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=o-i;if(!(0<a)){for(t=0;t<this.skip&&!(i+n+a<=o);t++)i-=n;if(i=this.validateTranslate(i),this.skip-t<=0&&o<i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);i!==this.listTranslate&&(this.translateTo(i),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=this.list.children.length;for(t=0;t<a&&!(o<i+n);t++)i+=n;i=this.validateTranslate(i),a<=t&&this.skip+t>=this.total?(this.translateTo(i),this.changePage(this.total-1,e)):i!==this.listTranslate&&(this.translateTo(i),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),o=this.containerHeight*t/this.total;o=this.validateTranslate(o),this.translateTo(o),this.changePage(n,e)},e.prototype.scrollHandler=function(e){if(this.enabled&&this.list&&!this.hidden&&!this.scrollSyncing){var t=this.container.scrollTop,n=this.prevScrollPos;(this.prevScrollPos=t)-n<0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):0<t-n&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e)}},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),Math.min(this.containerHeight-this.list.offsetHeight,e)},e}();t.default=i},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=n(3),s=n(4),r=n(12),u=n(1),l=n(2),p=function(){function e(e){var p=this;this.valueDuringOnChange=void 0,this.indexDuringOnChange=void 0,this.valueNotInData=!1,this.text="",this.lastTextSelected="",this.selectedItemChanged=!1,this.initiallyShown=!1,this.vs=new s.default,this.navigation=new r.Navigation,this.handleKeyDown=function(e){var t=p.component.props,n=t.filterable,o=t.disabled,i=e.keyCode;o||(!n||37!==i&&39!==i&&32!==i&&16!==i&&36!==i&&35!==i)&&p.component.onNavigate(e)},this.handleWrapperClick=function(e){var t=p.initState();p.component.togglePopup(t),t.syntheticEvent=e,p.applyState(t)},this.handleItemClick=function(e,t){var n=p.initState();p.component.handleItemSelect(e,n),p.component.togglePopup(n),n.syntheticEvent=t,p.applyState(n)},this.handleFocus=function(e){if(!p.component.state.isFocused){var t=p.initState();t.data.isFocused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,p.applyState(t)}},this.filterChanged=function(e,t){var n=p.component.props.textField;t.data.filterText=e,t.events.push({type:"onFilterChange",filter:{field:n,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){e.data.isFocused=!0,e.data.opened=!p.component.state.opened,p.component.state.opened?e.events.push({type:"onClose"}):e.events.push({type:"onOpen"})},this.pageChange=function(e,t){if(p.component.props.virtual){var n=p.initState();n.events.push({type:"onPageChange",page:{skip:e.skip,take:e.take}}),n.syntheticEvent=t,p.applyState(n)}},this.handleItemSelect=function(e,t){var n=e-(p.component.state.skip||0),o=p.component.props,i=o.data||[],a=void 0!==o.value;if(u.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=u.getValue(o,n),r=u.getText(o,n),l=p.value;a?(p.valueDuringOnChange=s,p.indexDuringOnChange=e):(p.value=s,p.index=e,p.text=r,t.data.selectedIndex=e),s!==l&&(t.events.push({type:"onChange"}),p.selectedItemChanged=!0)}else void 0!==o.virtual&&(p.vs.handleVirtualItemSelect(t,p.component.state,p.vs.container,e),p.valueNotInData=!0,a?p.indexDuringOnChange=e:(p.index=e,t.data.selectedIndex=e),p.selectedItemChanged=!0)},this.listBoxId=l.guid(),this.optionPrefix=l.guid(),this.component=e,this.vs.initVirtualization(e.props.virtual,void 0),this.vs.PageChange=this.pageChange,this.initiallyShown=!0===e.props.opened}return Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return void 0!==this.indexDuringOnChange?this.indexDuringOnChange:this._index},set:function(e){this._index=e},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.initState(),n=e.filterable&&void 0!==e.filter&&e.filter!==this.component.props.filter;void 0!==e.opened&&(t.data.opened=e.opened),!e.filterable&&this.component.state.filterText?t.data.filterText="":n&&(t.data.filterText=e.filter),this.vs.updateVirtualization(e.virtual,this.component.props.virtual,t);var o=void 0!==e.value,i=o&&e.value!==this.component.props.value;if(this.selectedItemChanged||i){if(this.valueNotInData&&!o){var a=this.index-(t.data.skip||0);this.value=u.getValue(e,a),this.text=u.getText(e,a)}else this.updateSelectedItem(e,t);this.lastValueSelected=this.value,this.lastTextSelected=this.text}this.selectedItemChanged=!1,this.valueNotInData=!1,this.applyState(t)},e.prototype.componentWillUpdate=function(e,t){t.opened&&this.component.state.opened&&-1!==t.selectedIndex&&this.component.state.selectedIndex!==t.selectedIndex&&this.scrollToSelectedItem(t),void 0!==e.value&&void 0===this.value&&(this.value=e.value)},e.prototype.componentDidUpdate=function(e){var t=this;if(this.component.state.opened&&!e.opened){var n=this.vs.container;n?this.vs.updateListScroll(this.component.state,n,function(){0<=u.getItemIndex(t.component.props,t.value)&&t.scrollToSelectedItem(t.component.state)}):this.scrollToSelectedItem(this.component.state)}},e.prototype.componentDidMount=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0),this.initiallyShown&&(this.initiallyShown=!1,this.calculatePopupWidth(),this.component.setState({opened:this.component.props.opened}))},e.prototype.componentWillUnmount=function(){var e=this.vs;delete e.container,delete e.list},e.prototype.scrollToSelectedItem=function(e){var t=this.list||this.vs.list,n=(e.selectedIndex||0)-(e.skip||0),o=t?t.children[0]:void 0;if(o){var i=this.vs,a=i.container||t.parentNode;u.scrollToItem(a,o.offsetHeight,n,i.translate,i.enabled)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var o=this,i={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};0<Object.keys(e.data).length&&this.component.setState(e.data),e.events.forEach(function(e){var t=e.type;delete e.type;var n=o.component.props[t];n&&n.call(void 0,a({},i,e))}),this.indexDuringOnChange=void 0,this.valueDuringOnChange=void 0},e.prototype.calculatePopupWidth=function(){var e=(this.component.props.popupSettings||{}).width,t=o.findDOMNode(this.wrapper);this.popupWidth=void 0!==e?e:t&&t.offsetWidth+"px"},e.prototype.updateSelectedItem=function(e,t){var n=void 0!==e.value?e.value:this.value,o=u.getItemIndex(e,n),i=u.getText(e,o),a=e.defaultItem?u.getItemValue(e.defaultItem,e.valueField):void 0;u.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=u.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection(n,i,o,t))},e.propTypes={opened:i.bool,disabled:i.bool,dir:i.string,filterable:i.bool,tabIndex:i.number,data:i.array,textField:i.string,valueField:i.string,className:i.string,label:i.string,popupSettings:i.shape({animate:i.bool,width:i.string,height:i.string}),virtual:i.shape({pageSize:i.number.isRequired,skip:i.number.isRequired,total:i.number.isRequired}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onPageChange:i.func},e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=p},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),d=n(13),h=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.renderItems=function(){var i=this,e=this.props,a=e.textField,s=e.valueField,r=e.value,l=e.optionPrefix,p=e.skip,u=e.focusedIndex;return this.props.data.map(function(e,t){var n=h.getter(e,s),o=(p||0)+t;return c.createElement(d.default,{id:l+"-"+(n||o.toString()),dataItem:e,selected:n===r,focused:u===t,index:o,key:o,onClick:i.props.onClick,textField:a})})},t.prototype.render=function(){var e=this.props,t=e.id,n=e.show,o=e.wrapperCssClass,i=e.wrapperStyle,a=e.listStyle,s=e.listRef,r=this.renderItems();return r.length?c.createElement("div",{className:o,style:i,ref:function(e){return e&&e.setAttribute("unselectable","on")}},c.createElement("ul",{id:t,role:"listbox","aria-hidden":!n||void 0,className:"k-list k-reset",ref:s,style:a},r)):c.createElement("div",{className:"k-nodata"},c.createElement("div",null,"NO DATA FOUND."))},t}(c.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(16),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,o=e.onBlur,i=e.width,a=e.dir,s=e.popupSettings;return l.createElement(p.Popup,r({style:{width:i,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:o},t))},t}(l.Component);t.default=a},function(e,t){e.exports=o},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),a=function(n){function e(e){var t=n.call(this,e)||this;return t.valueChanged=!1,t.deleting=!1,t.text="",t.text=e.value,t}return i(e,n),e.prototype.componentWillReceiveProps=function(e){e.focused&&this.input.focus()},e.prototype.componentWillUpdate=function(e,t){var n=this.props.value,o=e.value,i=e.suggestedText,a=this.input,s=a&&a.selectionEnd===a.value.length;this.valueChanged=n!==o,this.deleting=this.valueChanged&&n.startsWith(o),this.text=s&&i&&this.valueChanged&&!this.deleting?o+i.substring(o.length):o},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;if(n&&this.valueChanged&&!this.deleting&&o){var i=o.selectionStart,a=o.selectionEnd,s=o.value.length;i===a&&i===s&&o.setSelectionRange(t.length,n.length)}},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.onKeyDown,s=e.onInput,r=e.onFocus,l=e.onBlur,p=e.disabled,u=e.expanded,c=e.owns,d=e.activedescendant,h=e.clearButton,f=e.clearButtonClick;return[v.createElement("span",{className:"k-searchbar",key:"searchbar"},v.createElement("input",{autoComplete:"off",id:n,placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:this.text,onChange:function(){},ref:function(e){t.input=e},onKeyDown:a,onInput:s,onFocus:r,onBlur:l,"aria-disabled":p||void 0,disabled:p||void 0,"aria-haspopup":!0,"aria-expanded":u||!1,"aria-owns":c,"aria-activedescendant":d})),h&&v.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:f,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:"clear",key:"clearbutton"})]},e}(v.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var I=n(0),a=n(3),u=n(5),C=n(7),v=n(6),S=n(9),b=n(1),_=n(2),m=1,c=2,s=function(p){function e(e){var y=p.call(this,e)||this;y._lastMousedown=0,y.handleItemSelect=function(e,t){y.base.handleItemSelect(e,t),y.base.selectedItemChanged&&(y.state.typedText&&(t.data.typedText=""),y.state.filterText&&(t.data.filterText=""))},y.togglePopup=function(e){y.base.togglePopup(e)},y.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),y.props.filterable||t===y.state.text||(o.data.text=t),o.data.selectedIndex!==y.state.selectedIndex&&(o.data.selectedIndex=n),y.base.value=e},y.renderScrollWrapper=function(e){var t=y.props.popupSettings,n=y.base.vs;return n.enabled?I.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},y.renderScrollElement=function(){var t=y.base.vs;return t.enabled&&I.createElement("div",{ref:function(e){t.scrollElement=e},key:c})},y.renderList=function(){var e,t=y.props,n=t.textField,o=t.valueField,i=t.popupSettings,a=y.base,s=a.vs,r=y.state,l=r.opened,p=r.skip,u="translateY("+s.translate+"px)",c=y.valueToRender(),d=c.value,h=c.text,f=(y.props.data||[]).slice();return l&&(e=h?b.itemIndexStartsWith(h,f,n):0===p?0:void 0),I.createElement(v.default,{id:a.listBoxId,show:l,data:f,focusedIndex:e,value:d,textField:n,valueField:o,optionPrefix:a.optionPrefix,listRef:function(e){s.enabled&&(s.list=e),y.base.list=e},wrapperStyle:s.enabled?{float:"left",width:"100%"}:{maxHeight:(i||{}).height},wrapperCssClass:s.enabled?void 0:"k-list-scroller",listStyle:s.enabled?{transform:u}:void 0,key:m,skip:p,onClick:y.handleItemClick})},y.onInputKeyDown=function(e){var t=e.keyCode;if(13===t||27===t){e.preventDefault();var n=e.currentTarget.value,o=y.base.initState();o.syntheticEvent=e,y.applyInputValue(n,o,e.keyCode)}else 38!==t&&40!==t||(e.preventDefault(),y.handleKeyDown(e))},y.applyInputValue=function(e,t,n){void 0===n&&(n=void 0);var o=y.state.suggestedText||"",i=y.props,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.valueField,p=i.suggest,u=i.allowCustom,c=i.filterable,d=void 0===n||27===n,h=y.state.opened,f=b.getItemIndexByText(s,e,r);if(h&&(t.data.opened=!1),u&&-1===f&&y.value===e)return h&&t.events.push({type:"onClose"}),y.base.applyState(t);var v=void 0,m="";if(-1!==f?(v=b.getItemValue(s[f],l),m=b.getItemText(s[f],r)):u&&(m=v=e),p&&!d&&o.toLowerCase()===e.toLowerCase())m=v=o,t.data.typedText=o;else if(d)if(t.data.suggestedText=void 0,u||-1!==f||e!==y.base.lastTextSelected){if(!u&&-1===f&&e===y.state.typedText)return y.clearValue(t),y.base.applyState(t)}else v=y.base.lastValueSelected,m=y.base.lastTextSelected;else if(13===n&&!u){var g=b.itemIndexStartsWith(e,s,r);return y.handleItemSelect(g,t),h&&t.events.push({type:"onClose"}),y.state.typedText&&(t.data.typedText=""),c&&(t.data.filterText=y.base.text),y.base.applyState(t)}(y.value||"")!==v&&t.events.push({type:"onChange"}),h&&t.events.push({type:"onClose"}),y.base.value=v,y.base.text=m,y.base.applyState(t)},y.onInput=function(e){var t=y.base.initState(),n=e.currentTarget.value,o=void 0!==y.props.value;if(t.syntheticEvent=e,!n)return y.clearValue(t),delete t.data.opened,y.base.applyState(t);y.state.opened||(t.data.opened=!0),t.data.typedText=n,o||(t.data.selectedIndex=-1,y.base.index=-1),y.props.filterable&&y.filterChanged(n,t),y.state.opened===t.data.opened&&t.events.push({type:t.data.opened?"onOpen":"onClose"}),y.suggestValue(n,t),y.base.applyState(t)},y.clearButtonClick=function(e){var t=y.base.initState();t.syntheticEvent=e,y.clearValue(t),y.base.applyState(t)},y.handleFocus=function(e){y.base.handleFocus(e)},y.handleBlur=function(e){if(y.state.isFocused){if((new Date).getTime()-y._lastMousedown<500)return y._lastMousedown=0,e.currentTarget.focus();var t=y.base.initState();t.data.isFocused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,y.applyInputValue(e.currentTarget.value,t)}},y.handleWrapperClick=function(e){y.base.handleWrapperClick(e)},y.handleItemClick=function(e,t){y.base.handleItemClick(e,t)},y.handleKeyDown=function(e){y.base.handleKeyDown(e)},y.filterChanged=function(e,t){y.base.filterChanged(e,t)};var t=e.allowCustom,n=e.opened,o=e.textField,i=e.valueField,a=void 0!==e.value?e.value:e.defaultValue,s=-1,r="";t&&void 0!==a?(r=b.getItemText(a,o),s=b.getItemIndex(e,a)):t||(s=b.getItemIndex(e,a),r=b.getText(e,s)),y.state={filterText:y.props.filter||"",typedText:"",text:r,selectedIndex:s,skip:0,isFocused:n,opened:n};var l=y.base=new u.default(y);return l.value=b.getItemValue(a,i),l.index=s,l.text=r,y._inputId=_.guid(),y}return i(e,p),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t),!this.state.opened&&t.opened&&this.base.calculatePopupWidth();var n=void 0!==t.selectedIndex&&this.state.selectedIndex!==t.selectedIndex,o=t.typedText||!t.typedText&&this.state.typedText&&void 0===this.base.lastValueSelected;if(n){var i=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.base.value=b.getItemValue(i,e.valueField),this.base.text=b.getItemText(i,e.textField),this.base.index=t.selectedIndex||0}else o&&(this.base.lastTextSelected="",this.base.lastValueSelected=void 0,this.base.value=void 0,this.base.index=-1,this.base.text="")},e.prototype.componentDidUpdate=function(e,t){this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.filterable,a=t.textField,s=this.base.initState(),r=this.base.vs,l=b.getItemIndex(this.props,this.value),p=this.state.typedText,u=r.skip+l;if(u<0&&p&&(38===e.keyCode||40===e.keyCode)){var c=b.itemIndexStartsWith(p,o,a);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.base.navigation.navigate({opened:this.state.opened,event:e,state:s,currentIndex:u,max:(r.enabled?r.total:o.length)-1,min:0,leftRightKeysNavigation:i,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),s.syntheticEvent=e,this.base.applyState(s)},e.prototype.render=function(){var t=this,e=this.props,n=e.placeholder,o=e.tabIndex,i=e.dir,a=e.disabled,s=e.clearButton,r=e.label,l=e.popupSettings,p=e.className,u=e.style,c=e.loading,d=e.iconClassName,h=this.state,f=h.isFocused,v=h.opened,m=h.suggestedText,g=this.valueToRender().text,y=this.base.vs,b=I.createElement("span",{className:_.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":s},p),ref:function(e){t._element=e},style:r?x({},u,{width:void 0}):u,dir:i},I.createElement("span",{ref:function(e){t.base.wrapper=e},className:_.classNames("k-dropdown-wrap",{"k-state-default":!a,"k-state-disabled":a,"k-state-focused":f&&!a})},I.createElement(S.default,{id:this._inputId,placeholder:n,tabIndex:o||void 0,value:g,suggestedText:m,focused:f,onKeyDown:this.onInputKeyDown,onInput:this.onInput,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:a,expanded:v,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(this.value||""),clearButton:!(!s||!g),clearButtonClick:this.clearButtonClick}),I.createElement("span",{className:"k-select",onClick:this.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},I.createElement("span",{className:_.classNames("k-icon",d,{"k-i-arrow-s":!c&&!d,"k-i-loading":c&&!d})}))),I.createElement(C.default,{onMouseDown:function(){t._lastMousedown=(new Date).getTime()},width:this.base.popupWidth,popupSettings:{animate:(l||{}).animate,anchor:this.element,show:v,open:function(){y.hidden=!1},className:"k-list-container k-reset",close:function(){y.hidden=!0}},dir:void 0!==this.props.dir?this.props.dir:this.base.dirCalculated},this.renderScrollWrapper([this.renderList(),this.renderScrollElement()])));return r?I.createElement(_.FloatingLabel,{label:r,value:g,style:{width:u?u.width:void 0},id:this._inputId,children:b}):b},e.prototype.valueToRender=function(e,t){var n=e||this.state,o=n.typedText,i=n.filterText,a=void 0===i?"":i,s=n.opened,r=t||this.props,l=r.value,p=r.filterable,u=void 0!==l,c=this.base.text||"",d=u?l:this.base.value,h=p&&!!a;return s||!c||this.base.lastTextSelected!==c||h&&!this.base.lastTextSelected.toLowerCase().startsWith(a.toLowerCase())?h?{value:d,text:a}:o?{value:null,text:o}:{value:d,text:c}:{value:d,text:c}},e.prototype.suggestValue=function(e,t){if(void 0!==this.state.suggestedText&&(t.data.suggestedText=void 0),this.props.suggest&&e){var n=this.props.data||[],o=this.props.textField,i=n[b.itemIndexStartsWith(e,n,o)];i&&(t.data.suggestedText=b.getItemText(i,o))}},e.prototype.clearValue=function(e){var t=void 0!==this.props.value,n=this.value;t?(this.base.valueDuringOnChange=null,this.base.indexDuringOnChange=-1):(this.base.value=null,this.base.index=-1,this.base.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==this.state.suggestedText&&(e.data.suggestedText=void 0),null!==n&&(e.events.push({type:"onChange"}),this.base.selectedItemChanged=!0,this.props.filterable&&(this.filterChanged("",e),this.base.vs.reset())),this.state.opened&&(e.data.opened=!1,e.events.push({type:"onClose"}))},e.propTypes=x({clearButton:a.bool,allowCustom:a.bool,suggest:a.bool,placeholder:a.string,loading:a.bool,value:a.oneOfType([a.string,a.number,a.object]),defaultValue:a.oneOfType([a.string,a.number,a.object]),iconClassName:a.string},u.default.propTypes),e.defaultProps=x({},u.default.defaultProps,{clearButton:!0}),e}(I.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10);t.ComboBox=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(1),r=function(e,t,n){this.index=e,this.event=t,this.action=n};t.NavigationData=r,(o=s=t.NavigationAction||(t.NavigationAction={}))[o.Undefined=0]="Undefined",o[o.Open=1]="Open",o[o.Close=2]="Close",o[o.Enter=3]="Enter",o[o.Space=4]="Space",o[o.Tab=5]="Tab",o[o.Esc=6]="Esc",o[o.Delete=7]="Delete",o[o.Backspace=8]="Backspace",o[o.Home=9]="Home",o[o.End=10]="End",o[o.Up=11]="Up",o[o.Down=12]="Down",o[o.Left=13]="Left",o[o.Right=14]="Right";var a=function(){function e(){}return e.prototype.navigate=function(e){var t=this.process({current:e.currentIndex,max:e.max,min:e.min,event:e.event}),n=t.action;n!==s.Undefined&&(n===s.Open&&!e.opened||n===s.Close&&e.opened||13===e.event.keyCode||32===e.event.keyCode?e.togglePopup(e.state):void 0!==t.index&&e.handleItemSelect(t.index,e.state));var o=n===s.Left||n===s.Right;n===s.Undefined||n===s.Tab||n===s.Backspace||n===s.Delete||o&&e.leftRightKeysNavigation||!(n!==s.Enter||n===s.Enter&&e.opened)||e.event.preventDefault()},e.prototype.process=function(e){var t=e.event,n=t.keyCode,o=t.altKey,i=void 0,a=s.Undefined;return o&&40===n?a=s.Open:o&&38===n?a=s.Close:13===n?a=s.Enter:32===n?a=s.Space:27===n?a=s.Close:9===n?a=s.Tab:38===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Up):37===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Left):40===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Down):39===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Right):36===n?(i=0,a=s.Home):35===n?(i=e.max,a=s.End):46===n?a=s.Delete:8===n&&(a=s.Backspace),new r(i,t,a)},e.prototype.next=function(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=n(2),l=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(t.props.index||0,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.selected,o=e.focused,i=e.dataItem,a=e.textField;return s.createElement("li",{id:t,role:"option","aria-selected":n||!1,className:r.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},l.getter(i,a))},t}(s.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){e.preventDefault()},t.onClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(-1,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,o=e.textField;return a.createElement("div",{onClick:this.onClick,onMouseDown:this.onMouseDown,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getter(n,o)||"")},t}(a.Component);t.default=l},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.componentDidUpdate=function(){this._input&&this.props.focused&&(this.props.willFocus&&this.props.willFocus(),this._input.focus(),this.props.didFocus&&setTimeout(this.props.didFocus,0))},t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){t._input=e},value:this.props.value,className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),a.createElement("span",{className:"k-icon k-i-search"}))},t}(a.Component);t.default=s},function(e,t){e.exports=r},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.focused,o=e.style,i=e.ariaExpanded,a=e.ariaOwns,s=e.ariaActiveDescendant,r=e.tabIndex;return l.createElement("span",{role:"listbox",tabIndex:t?void 0:r,className:p.classNames("k-dropdown-wrap",this.props.className,{"k-state-default":!t,"k-state-focused":n,"k-state-disabled":t}),style:o,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onClick:this.props.onClick,"aria-disabled":t||void 0,"aria-haspopup":!0,"aria-expanded":i,"aria-owns":a,"aria-activedescendant":s},this.props.children)},t}(l.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),l=n(8),a=n(3),d=n(2),v=n(17),u=n(7),c=n(15),m=n(14),g=n(6),y=n(5),b=n(4),x=n(1),I=0,C=1,S=2,_=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(r){function e(e){var h=r.call(this,e)||this;h.vs=new b.default,h._lastMousedown=0,h.handleItemSelect=function(e,t){h.base.handleItemSelect(e,t)},h.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),h.state.selectedIndex!==n&&(o.data.selectedIndex=n),h.base.value=e,h.base.text=t,h.base.index=n},h.togglePopup=function(e){h.base.togglePopup(e),h.state.opened||h.base.calculatePopupWidth(),h.props.filterable&&h.state.filterInputFocused&&(e.data.filterInputFocused=!1)},h.renderDropDownWrapper=function(){var e=h.props,t=e.defaultItem,n=e.valueField,o=e.disabled,i=e.tabIndex,a=e.loading,s=e.iconClassName,r=h.state,l=r.opened,p=r.isFocused,u=x.getItemIndex(h.props,h.value),c=x.getText(h.props,u);return!c&&x.isPresent(h.value)&&-1===u&&x.getItemValue(t,n)!==h.value&&(c=h.base.text),f.createElement(v.default,{disabled:o,focused:p,tabIndex:i,ariaExpanded:l||!1,ariaOwns:h.base.listBoxId,ariaActiveDescendant:h.base.optionPrefix+"-"+(h.value||""),onFocus:h.handleFocus,onBlur:h.handleBlur,onClick:h.handleWrapperClick,onKeyDown:h.handleKeyDown,onKeyPress:h.handleKeyPress,ref:function(e){h.base.wrapper=e}},f.createElement("span",{className:"k-input"},c),f.createElement("span",{className:"k-select"},f.createElement("span",{className:d.classNames("k-icon",s,{"k-i-arrow-s":!a&&!s,"k-i-loading":a&&!s})})))},h.renderListContainer=function(){var e=h.props.popupSettings,t=h.state.opened,n=void 0!==h.props.virtual,o={onMouseDown:function(e){h._lastMousedown=(new Date).getTime(),_(e)},dir:void 0!==h.props.dir?h.props.dir:h.base.dirCalculated,onBlur:h.handleBlur,width:h.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:(e||{}).animate,anchor:h.element,show:t,open:h.onPopupOpened,close:h.onPopupClosed}};return f.createElement(u.default,p({},o),h.renderListFilter(),n?h.renderDefaultItem():void 0,h.renderScrollWrapper(n?[h.renderList(),h.renderScrollElement()]:[h.renderDefaultItem(),h.renderList(),h.renderScrollElement()]))},h.renderScrollWrapper=function(e){var t=h.props.popupSettings,n=h.base.vs;return n.enabled?f.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},h.renderScrollElement=function(){var t=h.base.vs;return t.enabled&&f.createElement("div",{ref:function(e){t.scrollElement=e},key:S})},h.renderList=function(){var e=h.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.popupSettings,s=h.base.vs,r=h.state,l=r.opened,p=r.skip,u="translateY("+h.vs.translate+"px)",c=h.value,d=!(x.getItemIndex(h.props,c)<0&&!i);return f.createElement(g.default,{id:h.base.listBoxId,show:l,data:(t||[]).slice(),focusedIndex:d||0!==p?void 0:0,value:c,textField:n,valueField:o,optionPrefix:h.base.optionPrefix,listRef:function(e){s.enabled&&(s.list=e),h.base.list=e},wrapperStyle:s.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:s.enabled?void 0:"k-list-scroller",listStyle:s.enabled?{transform:u}:void 0,key:C,skip:p,onClick:h.handleItemClick})},h.renderListFilter=function(){var e=h.props.filterable,t=h.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&f.createElement(c.default,{value:o,focused:n&&i,willFocus:h.filteringInputWillFocus,didFocus:h.filteringInputDidFocus,onChange:h.handleListFilterChange,onKeyDown:h.handleKeyDown})},h.renderDefaultItem=function(){var e=h.props,t=e.textField,n=e.defaultItem;return n&&f.createElement(m.default,{defaultItem:n,textField:t,selected:-1===h.index,key:I,onClick:h.handleDefaultItemClick})},h.search=function(){clearTimeout(h._typingTimeout),h.props.filterable||(h._typingTimeout=setTimeout(function(){h.setState({word:""})},h.props.delay),h.selectNext())},h.selectNext=function(){var e,t,n,o=(h.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),i=x.sameCharsOnly(h.state.word,h.state.last),a=o.length,s=h.state.selectedIndex||0;for(h.props.defaultItem&&(n={item:h.props.defaultItem,itemIndex:-1},a+=1,s+=1),s+=i?1:0,o=x.shuffleData(o,s,n),t=0;t<a;t++){e=x.getter(o[t].item,h.props.textField);var r=Boolean(i&&x.matchText(e,h.state.last,h.props.ignoreCase)),l=Boolean(x.matchText(e,h.state.word,h.props.ignoreCase));if(r||l){t=o[t].itemIndex;break}}if(t!==a){var p=h.base.initState();h.handleItemSelect(t,p),h.base.applyState(p)}},h.handleFocus=function(e){h.base.handleFocus(e)},h.handleBlur=function(e){if(h.state.isFocused&&!h._filteringWillFocus){if((new Date).getTime()-h._lastMousedown<500)return h._lastMousedown=0,e.target.focus();var t=h.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,h.state.opened&&t.events.push({type:"onClose"}),h.base.applyState(t)}},h.handleWrapperClick=function(e){h.base.handleWrapperClick(e)},h.handleItemClick=function(e,t){h.base.handleItemClick(e,t)},h.handleDefaultItemClick=function(e,t){var n=h.base.initState(),o=h.props,i=o.defaultItem,a=o.valueField,s=o.textField;h.togglePopup(n);var r=x.getItemValue(i,a),l=x.getItemText(i,s);h.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,h.base.applyState(n)},h.handleKeyDown=function(e){h.base.handleKeyDown(e)},h.handleKeyPress=function(e){if(!h.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);h.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),h.setState({word:h.state.word+t,last:h.state.last+t},h.search)}},h.handleListFilterChange=function(e){var t=h.base.initState();h.base.filterChanged(e.target.value,t),t.syntheticEvent=e,h.base.applyState(t)},h.filteringInputWillFocus=function(){h._filteringWillFocus=!0},h.filteringInputDidFocus=function(){h._filteringWillFocus=!1},h.onPopupOpened=function(){h.base.vs.hidden=!1,h.props.filterable&&h.setState({filterInputFocused:!0})},h.onPopupClosed=function(){if(h.base.vs.hidden=!0,h.state.isFocused){var e=l.findDOMNode(h.base.wrapper);setTimeout(function(){h.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1;!x.isPresent(t)&&x.isPresent(e.defaultItem)?t=x.getItemValue(e.defaultItem,e.valueField):n=x.getItemIndex(e,t);var o=h.props,i=o.filter,a=o.filterable,s=o.opened;return h.state={filterText:i||"",word:"",last:"",selectedIndex:n,skip:0,isFocused:s,filterInputFocused:a&&s,opened:s},h.base=new y.default(h),h.base.index=n,h.base.value=t,h}return i(e,r),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=t.filterable,i=t.defaultItem,a=this.base.initState();a.syntheticEvent=e;var s=this.base.vs,r=x.getItemIndex(this.props,this.value);this.base.navigation.navigate({opened:this.state.opened,event:e,state:a,currentIndex:s.skip+r,max:(s.enabled?s.total:(n||[]).length)-1,min:i?-1:0,leftRightKeysNavigation:o,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),this.base.applyState(a)},e.prototype.render=function(){var t=this,e=this.props,n=e.style,o=e.className,i=e.label,a=e.dir,s=this.state.opened,r=x.getText(this.props,x.getItemIndex(this.props,this.value)),l=f.createElement("span",{ref:function(e){t._element=e},className:d.classNames("k-widget k-dropdown k-header",o),style:i?p({},n,{width:void 0}):n,dir:a,onMouseDown:s?_:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?f.createElement(d.FloatingLabel,{label:i,value:r,style:{width:n?n.width:void 0},children:l}):l},e.propTypes=p({delay:a.number,ignoreCase:a.bool,loading:a.bool,value:a.oneOfType([a.string,a.number,a.object]),defaultValue:a.oneOfType([a.string,a.number,a.object]),iconClassName:a.string},y.default.propTypes),e.defaultProps=p({delay:500,ignoreCase:!0},y.default.defaultProps),e}(f.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(19);t.DropDownList=o.DropDownList;var i=n(11);t.ComboBox=i.ComboBox,function(e){for(var t in e)a(t,e[t])}(t)}])}}});
System.register("@progress/kendo-react-dropdowns",["@progress/kendo-react-common","react","react-dom","prop-types","@progress/kendo-react-popup"],function(a){var n,o,i,s,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){s=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=20)}([function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return null!=e};t.isPresent=i;var s=function(e,t,n){if(void 0===n&&(n=!1),i(e))return n?t&&i(e[t])?e[t]:e:t?e[t]:e};t.getter=s,t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var o=e;return n&&(o=[n].concat(o)),o.slice(t).concat(o.slice(0,t))},t.matchText=function(e,t,n){if(!i(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)};var o=["string","number","undefined"],r=function(e){var t=typeof e;return-1!==o.indexOf(t)};t.isPrimitive=r,t.scrollToItem=function(e,t,n,o,i){var a=e.offsetHeight,s=t*n-(i?e.scrollTop-o:0);if(i){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)},t.itemIndexStartsWith=function(e,t,n){var o=-1;if(e){e=e.toLowerCase();for(var i=0;i<t.length;i++){var a=(s(t[i],n,r(t[i]))||"")+"";if(a&&a.toLowerCase().startsWith(e)){o=i;break}}}return o},t.getItemIndex=function(e,t){var n=e.valueField;return(e.data||[]).findIndex(function(e){return e===t||s(e,n)===t})},t.getItemIndexByText=function(e,t,n){return e.findIndex(function(e){return r(e)?t.toLowerCase()===e.toString().toLowerCase():a(e,n).toLowerCase()===t.toLowerCase()})};var a=function(e,t){return r(e)?e:s(e,t)};t.getItemText=a;var l=function(e,t){return t?s(e,t):e};t.getItemValue=l,t.getText=function(e,t){if(!e.data)return null;if(-1===t)return a(e.defaultItem,e.textField);var n=e.data[t];return a(n,e.textField)},t.getValue=function(e,t){if(-1===t)return l(e.defaultItem,e.valueField);if(e.data){var n=e.data[t];return l(n,e.valueField)}}},function(e,t){e.exports=n},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=1533915,d=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},i=function(){function e(){var n=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.hidden=!1,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(e){if(e){var t=n;(t.container=e).setAttribute("unselectable","on"),setTimeout(t.calculateScrollSizes.bind(t),0)}},this.calculateScrollSizes=function(){var e;n.scrollSyncing=!0,n.itemHeight=n.list?n.list.children[0].offsetHeight:n.itemHeight,n.containerHeight=Math.min(o,n.itemHeight*n.total);var t=n.containerHeight;return(e=n.scrollElement&&n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},this.scrollHandler=this.scrollHandler.bind(this)}return e.prototype.initVirtualization=function(e,t){this.enabled=void 0!==e,void 0!==e&&(this.skip=e.skip,this.pageSize=e.pageSize,this.total=e.total,void 0!==t&&(t.data.skip=e.skip))},e.prototype.updateVirtualization=function(e,t,n){if(void 0===e||void 0===t||t.total===e.total&&0!==e.skip)this.initVirtualization(e,n);else{var o=Object.assign({},e,{skip:0});this.initVirtualization(o,n),this.calculateScrollSizes()&&this.reset()}},e.prototype.handleVirtualItemSelect=function(t,e,n,o){var i=e.skip||0,a=e.selectedIndex||0,s=e.opened&&n,r=this,l=r.pageSize,p=o-i;if(s&&0===o)d(t,0,l),r.reset();else if(s&&o===r.total-1)d(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var u=r.PageChange;r.PageChange=function(e){d(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=u}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var c=Math.max(0,i+(p<0?-1:1));d(t,c,l)}}else d(t,r.total-r.pageSize,l);else d(t,0,l);e.opened||r.reset()},e.prototype.updateListScroll=function(e,t,n){var o=t.scrollTop,i=this,a=i.translate,s=i.hidden,r=e.skip||0;if(o!==a||0===a&&0===o&&0<r){var l=function(){i.enabled=!1;var e=0<a?a:i.itemHeight*r;t.scrollTop=e,i.translateTo(a||e),i.enabled=!0,n()};0===i.itemHeight||s?setTimeout(l,0):l()}},Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.scrollSyncing=!0,this.container&&(this.container.scrollTop=0),this.translateTo(0),this.scrollSyncing=!1},e.prototype.maxScroll=function(){return this.container.scrollHeight-this.container.offsetHeight},e.prototype.scrollToEnd=function(){if(this.container){var e=this.maxScroll();this.translateTo(e),this.container.scrollTop=e}},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=o-i;if(!(0<a)){for(t=0;t<this.skip&&!(i+n+a<=o);t++)i-=n;if(i=this.validateTranslate(i),this.skip-t<=0&&o<i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);i!==this.listTranslate&&(this.translateTo(i),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=this.list.children.length;for(t=0;t<a&&!(o<i+n);t++)i+=n;i=this.validateTranslate(i),a<=t&&this.skip+t>=this.total?(this.translateTo(i),this.changePage(this.total-1,e)):i!==this.listTranslate&&(this.translateTo(i),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),o=this.containerHeight*t/this.total;o=this.validateTranslate(o),this.translateTo(o),this.changePage(n,e)},e.prototype.scrollHandler=function(e){if(this.enabled&&this.list&&!this.hidden&&!this.scrollSyncing){var t=this.container.scrollTop,n=this.prevScrollPos;(this.prevScrollPos=t)-n<0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):0<t-n&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e)}},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),Math.min(this.containerHeight-this.list.offsetHeight,e)},e}();t.default=i},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=n(3),s=n(4),r=n(12),u=n(1),l=n(2),p=function(){function e(e){var p=this;this.valueDuringOnChange=void 0,this.indexDuringOnChange=void 0,this.valueNotInData=!1,this.text="",this.lastTextSelected="",this.selectedItemChanged=!1,this.initiallyShown=!1,this.vs=new s.default,this.navigation=new r.Navigation,this.handleKeyDown=function(e){var t=p.component.props,n=t.filterable,o=t.disabled,i=e.keyCode;o||(!n||37!==i&&39!==i&&32!==i&&16!==i&&36!==i&&35!==i)&&p.component.onNavigate(e)},this.handleWrapperClick=function(e){var t=p.initState();p.component.togglePopup(t),t.syntheticEvent=e,p.applyState(t)},this.handleItemClick=function(e,t){var n=p.initState();p.component.handleItemSelect(e,n),p.component.togglePopup(n),n.syntheticEvent=t,p.applyState(n)},this.handleFocus=function(e){if(!p.component.state.isFocused){var t=p.initState();t.data.isFocused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,p.applyState(t)}},this.filterChanged=function(e,t){var n=p.component.props.textField;t.data.filterText=e,t.events.push({type:"onFilterChange",filter:{field:n,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){e.data.isFocused=!0,e.data.opened=!p.component.state.opened,p.component.state.opened?e.events.push({type:"onClose"}):e.events.push({type:"onOpen"})},this.pageChange=function(e,t){if(p.component.props.virtual){var n=p.initState();n.events.push({type:"onPageChange",page:{skip:e.skip,take:e.take}}),n.syntheticEvent=t,p.applyState(n)}},this.handleItemSelect=function(e,t){var n=e-(p.component.state.skip||0),o=p.component.props,i=o.data||[],a=void 0!==o.value;if(u.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=u.getValue(o,n),r=u.getText(o,n),l=p.value;a?(p.valueDuringOnChange=s,p.indexDuringOnChange=e):(p.value=s,p.index=e,p.text=r,t.data.selectedIndex=e),s!==l&&(t.events.push({type:"onChange"}),p.selectedItemChanged=!0)}else void 0!==o.virtual&&(p.vs.handleVirtualItemSelect(t,p.component.state,p.vs.container,e),p.valueNotInData=!0,a?p.indexDuringOnChange=e:(p.index=e,t.data.selectedIndex=e),p.selectedItemChanged=!0)},this.listBoxId=l.guid(),this.optionPrefix=l.guid(),this.component=e,this.vs.initVirtualization(e.props.virtual,void 0),this.vs.PageChange=this.pageChange,this.initiallyShown=!0===e.props.opened}return Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return void 0!==this.indexDuringOnChange?this.indexDuringOnChange:this._index},set:function(e){this._index=e},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.initState(),n=e.filterable&&void 0!==e.filter&&e.filter!==this.component.props.filter;void 0!==e.opened&&(t.data.opened=e.opened),!e.filterable&&this.component.state.filterText?t.data.filterText="":n&&(t.data.filterText=e.filter),this.vs.updateVirtualization(e.virtual,this.component.props.virtual,t);var o=void 0!==e.value,i=o&&e.value!==this.component.props.value;if(this.selectedItemChanged||i){if(this.valueNotInData&&!o){var a=this.index-(t.data.skip||0);this.value=u.getValue(e,a),this.text=u.getText(e,a)}else this.updateSelectedItem(e,t);this.lastValueSelected=this.value,this.lastTextSelected=this.text}this.selectedItemChanged=!1,this.valueNotInData=!1,this.applyState(t)},e.prototype.componentWillUpdate=function(e,t){t.opened&&this.component.state.opened&&-1!==t.selectedIndex&&this.component.state.selectedIndex!==t.selectedIndex&&this.scrollToSelectedItem(t),void 0!==e.value&&void 0===this.value&&(this.value=e.value)},e.prototype.componentDidUpdate=function(e){var t=this;if(this.component.state.opened&&!e.opened){var n=this.vs.container;n?this.vs.updateListScroll(this.component.state,n,function(){0<=u.getItemIndex(t.component.props,t.value)&&t.scrollToSelectedItem(t.component.state)}):this.scrollToSelectedItem(this.component.state)}},e.prototype.componentDidMount=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0),this.initiallyShown&&(this.initiallyShown=!1,this.calculatePopupWidth(),this.component.setState({opened:this.component.props.opened}))},e.prototype.componentWillUnmount=function(){var e=this.vs;delete e.container,delete e.list},e.prototype.scrollToSelectedItem=function(e){var t=this.list||this.vs.list,n=(e.selectedIndex||0)-(e.skip||0),o=t?t.children[0]:void 0;if(o){var i=this.vs,a=i.container||t.parentNode;u.scrollToItem(a,o.offsetHeight,n,i.translate,i.enabled)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var o=this,i={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};0<Object.keys(e.data).length&&this.component.setState(e.data),e.events.forEach(function(e){var t=e.type;delete e.type;var n=o.component.props[t];n&&n.call(void 0,a({},i,e))}),this.indexDuringOnChange=void 0,this.valueDuringOnChange=void 0},e.prototype.calculatePopupWidth=function(){var e=(this.component.props.popupSettings||{}).width,t=o.findDOMNode(this.wrapper);this.popupWidth=void 0!==e?e:t&&t.offsetWidth+"px"},e.prototype.updateSelectedItem=function(e,t){var n=void 0!==e.value?e.value:this.value,o=u.getItemIndex(e,n),i=u.getText(e,o),a=e.defaultItem?u.getItemValue(e.defaultItem,e.valueField):void 0;u.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=u.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection(n,i,o,t))},e.propTypes={opened:i.bool,disabled:i.bool,dir:i.string,filterable:i.bool,tabIndex:i.number,data:i.array,textField:i.string,valueField:i.string,className:i.string,label:i.string,popupSettings:i.shape({animate:i.bool,width:i.string,height:i.string}),virtual:i.shape({pageSize:i.number.isRequired,skip:i.number.isRequired,total:i.number.isRequired}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onPageChange:i.func},e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=p},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),d=n(13),h=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.renderItems=function(){var i=this,e=this.props,a=e.textField,s=e.valueField,r=e.value,l=e.optionPrefix,p=e.skip,u=e.focusedIndex;return this.props.data.map(function(e,t){var n=h.getter(e,s),o=(p||0)+t;return c.createElement(d.default,{id:l+"-"+(n||o.toString()),dataItem:e,selected:n===r,focused:u===t,index:o,key:o,onClick:i.props.onClick,textField:a})})},t.prototype.render=function(){var e=this.props,t=e.id,n=e.show,o=e.wrapperCssClass,i=e.wrapperStyle,a=e.listStyle,s=e.listRef,r=this.renderItems();return r.length?c.createElement("div",{className:o,style:i,ref:function(e){return e&&e.setAttribute("unselectable","on")}},c.createElement("ul",{id:t,role:"listbox","aria-hidden":!n||void 0,className:"k-list k-reset",ref:s,style:a},r)):c.createElement("div",{className:"k-nodata"},c.createElement("div",null,"NO DATA FOUND."))},t}(c.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(16),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,o=e.onBlur,i=e.width,a=e.dir,s=e.popupSettings;return l.createElement(p.Popup,r({style:{width:i,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:o},t))},t}(l.Component);t.default=a},function(e,t){e.exports=i},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),a=function(n){function e(e){var t=n.call(this,e)||this;return t.valueChanged=!1,t.deleting=!1,t.text="",t.text=e.value,t}return i(e,n),e.prototype.componentWillReceiveProps=function(e){e.focused&&this.input.focus()},e.prototype.componentWillUpdate=function(e,t){var n=this.props.value,o=e.value,i=e.suggestedText,a=this.input,s=a&&a.selectionEnd===a.value.length;this.valueChanged=n!==o,this.deleting=this.valueChanged&&n.startsWith(o),this.text=s&&i&&this.valueChanged&&!this.deleting?o+i.substring(o.length):o},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;if(n&&this.valueChanged&&!this.deleting&&o){var i=o.selectionStart,a=o.selectionEnd,s=o.value.length;i===a&&i===s&&o.setSelectionRange(t.length,n.length)}},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.onKeyDown,s=e.onInput,r=e.onFocus,l=e.onBlur,p=e.disabled,u=e.expanded,c=e.owns,d=e.activedescendant,h=e.clearButton,f=e.clearButtonClick;return[v.createElement("span",{className:"k-searchbar",key:"searchbar"},v.createElement("input",{autoComplete:"off",id:n,placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:this.text,onChange:function(){},ref:function(e){t.input=e},onKeyDown:a,onInput:s,onFocus:r,onBlur:l,"aria-disabled":p||void 0,disabled:p||void 0,"aria-haspopup":!0,"aria-expanded":u||!1,"aria-owns":c,"aria-activedescendant":d})),h&&v.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:f,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:"clear",key:"clearbutton"})]},e}(v.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var I=n(0),a=n(3),u=n(5),C=n(7),v=n(6),S=n(9),b=n(1),_=n(2),m=1,c=2,s=function(p){function e(e){var y=p.call(this,e)||this;y._lastMousedown=0,y.handleItemSelect=function(e,t){y.base.handleItemSelect(e,t),y.base.selectedItemChanged&&(y.state.typedText&&(t.data.typedText=""),y.state.filterText&&(t.data.filterText=""))},y.togglePopup=function(e){y.base.togglePopup(e)},y.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),y.props.filterable||t===y.state.text||(o.data.text=t),o.data.selectedIndex!==y.state.selectedIndex&&(o.data.selectedIndex=n),y.base.value=e},y.renderScrollWrapper=function(e){var t=y.props.popupSettings,n=y.base.vs;return n.enabled?I.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},y.renderScrollElement=function(){var t=y.base.vs;return t.enabled&&I.createElement("div",{ref:function(e){t.scrollElement=e},key:c})},y.renderList=function(){var e,t=y.props,n=t.textField,o=t.valueField,i=t.popupSettings,a=y.base,s=a.vs,r=y.state,l=r.opened,p=r.skip,u="translateY("+s.translate+"px)",c=y.valueToRender(),d=c.value,h=c.text,f=(y.props.data||[]).slice();return l&&(e=h?b.itemIndexStartsWith(h,f,n):0===p?0:void 0),I.createElement(v.default,{id:a.listBoxId,show:l,data:f,focusedIndex:e,value:d,textField:n,valueField:o,optionPrefix:a.optionPrefix,listRef:function(e){s.enabled&&(s.list=e),y.base.list=e},wrapperStyle:s.enabled?{float:"left",width:"100%"}:{maxHeight:(i||{}).height},wrapperCssClass:s.enabled?void 0:"k-list-scroller",listStyle:s.enabled?{transform:u}:void 0,key:m,skip:p,onClick:y.handleItemClick})},y.onInputKeyDown=function(e){var t=e.keyCode;if(13===t||27===t){e.preventDefault();var n=e.currentTarget.value,o=y.base.initState();o.syntheticEvent=e,y.applyInputValue(n,o,e.keyCode)}else 38!==t&&40!==t||(e.preventDefault(),y.handleKeyDown(e))},y.applyInputValue=function(e,t,n){void 0===n&&(n=void 0);var o=y.state.suggestedText||"",i=y.props,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.valueField,p=i.suggest,u=i.allowCustom,c=i.filterable,d=void 0===n||27===n,h=y.state.opened,f=b.getItemIndexByText(s,e,r);if(h&&(t.data.opened=!1),u&&-1===f&&y.value===e)return h&&t.events.push({type:"onClose"}),y.base.applyState(t);var v=void 0,m="";if(-1!==f?(v=b.getItemValue(s[f],l),m=b.getItemText(s[f],r)):u&&(m=v=e),p&&!d&&o.toLowerCase()===e.toLowerCase())m=v=o,t.data.typedText=o;else if(d)if(t.data.suggestedText=void 0,u||-1!==f||e!==y.base.lastTextSelected){if(!u&&-1===f&&e===y.state.typedText)return y.clearValue(t),y.base.applyState(t)}else v=y.base.lastValueSelected,m=y.base.lastTextSelected;else if(13===n&&!u){var g=b.itemIndexStartsWith(e,s,r);return y.handleItemSelect(g,t),h&&t.events.push({type:"onClose"}),y.state.typedText&&(t.data.typedText=""),c&&(t.data.filterText=y.base.text),y.base.applyState(t)}(y.value||"")!==v&&t.events.push({type:"onChange"}),h&&t.events.push({type:"onClose"}),y.base.value=v,y.base.text=m,y.base.applyState(t)},y.onInput=function(e){var t=y.base.initState(),n=e.currentTarget.value,o=void 0!==y.props.value;if(t.syntheticEvent=e,!n)return y.clearValue(t),delete t.data.opened,y.base.applyState(t);y.state.opened||(t.data.opened=!0),t.data.typedText=n,o||(t.data.selectedIndex=-1,y.base.index=-1),y.props.filterable&&y.filterChanged(n,t),y.state.opened===t.data.opened&&t.events.push({type:t.data.opened?"onOpen":"onClose"}),y.suggestValue(n,t),y.base.applyState(t)},y.clearButtonClick=function(e){var t=y.base.initState();t.syntheticEvent=e,y.clearValue(t),y.base.applyState(t)},y.handleFocus=function(e){y.base.handleFocus(e)},y.handleBlur=function(e){if(y.state.isFocused){if((new Date).getTime()-y._lastMousedown<500)return y._lastMousedown=0,e.currentTarget.focus();var t=y.base.initState();t.data.isFocused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,y.applyInputValue(e.currentTarget.value,t)}},y.handleWrapperClick=function(e){y.base.handleWrapperClick(e)},y.handleItemClick=function(e,t){y.base.handleItemClick(e,t)},y.handleKeyDown=function(e){y.base.handleKeyDown(e)},y.filterChanged=function(e,t){y.base.filterChanged(e,t)};var t=e.allowCustom,n=e.opened,o=e.textField,i=e.valueField,a=void 0!==e.value?e.value:e.defaultValue,s=-1,r="";t&&void 0!==a?(r=b.getItemText(a,o),s=b.getItemIndex(e,a)):t||(s=b.getItemIndex(e,a),r=b.getText(e,s)),y.state={filterText:y.props.filter||"",typedText:"",text:r,selectedIndex:s,skip:0,isFocused:n,opened:n};var l=y.base=new u.default(y);return l.value=b.getItemValue(a,i),l.index=s,l.text=r,y._inputId=_.guid(),y}return i(e,p),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t),!this.state.opened&&t.opened&&this.base.calculatePopupWidth();var n=void 0!==t.selectedIndex&&this.state.selectedIndex!==t.selectedIndex,o=t.typedText||!t.typedText&&this.state.typedText&&void 0===this.base.lastValueSelected;if(n){var i=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.base.value=b.getItemValue(i,e.valueField),this.base.text=b.getItemText(i,e.textField),this.base.index=t.selectedIndex||0}else o&&(this.base.lastTextSelected="",this.base.lastValueSelected=void 0,this.base.value=void 0,this.base.index=-1,this.base.text="")},e.prototype.componentDidUpdate=function(e,t){this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.filterable,a=t.textField,s=this.base.initState(),r=this.base.vs,l=b.getItemIndex(this.props,this.value),p=this.state.typedText,u=r.skip+l;if(u<0&&p&&(38===e.keyCode||40===e.keyCode)){var c=b.itemIndexStartsWith(p,o,a);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.base.navigation.navigate({opened:this.state.opened,event:e,state:s,currentIndex:u,max:(r.enabled?r.total:o.length)-1,min:0,leftRightKeysNavigation:i,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),s.syntheticEvent=e,this.base.applyState(s)},e.prototype.render=function(){var t=this,e=this.props,n=e.placeholder,o=e.tabIndex,i=e.dir,a=e.disabled,s=e.clearButton,r=e.label,l=e.popupSettings,p=e.className,u=e.style,c=e.loading,d=e.iconClassName,h=this.state,f=h.isFocused,v=h.opened,m=h.suggestedText,g=this.valueToRender().text,y=this.base.vs,b=I.createElement("span",{className:_.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":s},p),ref:function(e){t._element=e},style:r?x({},u,{width:void 0}):u,dir:i},I.createElement("span",{ref:function(e){t.base.wrapper=e},className:_.classNames("k-dropdown-wrap",{"k-state-default":!a,"k-state-disabled":a,"k-state-focused":f&&!a})},I.createElement(S.default,{id:this._inputId,placeholder:n,tabIndex:o||void 0,value:g,suggestedText:m,focused:f,onKeyDown:this.onInputKeyDown,onInput:this.onInput,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:a,expanded:v,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(this.value||""),clearButton:!(!s||!g),clearButtonClick:this.clearButtonClick}),I.createElement("span",{className:"k-select",onClick:this.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},I.createElement("span",{className:_.classNames("k-icon",d,{"k-i-arrow-s":!c&&!d,"k-i-loading":c&&!d})}))),I.createElement(C.default,{onMouseDown:function(){t._lastMousedown=(new Date).getTime()},width:this.base.popupWidth,popupSettings:{animate:(l||{}).animate,anchor:this.element,show:v,open:function(){y.hidden=!1},className:"k-list-container k-reset",close:function(){y.hidden=!0}},dir:void 0!==this.props.dir?this.props.dir:this.base.dirCalculated},this.renderScrollWrapper([this.renderList(),this.renderScrollElement()])));return r?I.createElement(_.FloatingLabel,{label:r,value:g,style:{width:u?u.width:void 0},id:this._inputId,children:b}):b},e.prototype.valueToRender=function(e,t){var n=e||this.state,o=n.typedText,i=n.filterText,a=void 0===i?"":i,s=n.opened,r=t||this.props,l=r.value,p=r.filterable,u=void 0!==l,c=this.base.text||"",d=u?l:this.base.value,h=p&&!!a;return s||!c||this.base.lastTextSelected!==c||h&&!this.base.lastTextSelected.toLowerCase().startsWith(a.toLowerCase())?h?{value:d,text:a}:o?{value:null,text:o}:{value:d,text:c}:{value:d,text:c}},e.prototype.suggestValue=function(e,t){if(void 0!==this.state.suggestedText&&(t.data.suggestedText=void 0),this.props.suggest&&e){var n=this.props.data||[],o=this.props.textField,i=n[b.itemIndexStartsWith(e,n,o)];i&&(t.data.suggestedText=b.getItemText(i,o))}},e.prototype.clearValue=function(e){var t=void 0!==this.props.value,n=this.value;t?(this.base.valueDuringOnChange=null,this.base.indexDuringOnChange=-1):(this.base.value=null,this.base.index=-1,this.base.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==this.state.suggestedText&&(e.data.suggestedText=void 0),null!==n&&(e.events.push({type:"onChange"}),this.base.selectedItemChanged=!0,this.props.filterable&&(this.filterChanged("",e),this.base.vs.reset())),this.state.opened&&(e.data.opened=!1,e.events.push({type:"onClose"}))},e.propTypes=x({clearButton:a.bool,allowCustom:a.bool,suggest:a.bool,placeholder:a.string,loading:a.bool,value:a.oneOfType([a.string,a.number,a.object]),defaultValue:a.oneOfType([a.string,a.number,a.object]),iconClassName:a.string},u.default.propTypes),e.defaultProps=x({},u.default.defaultProps,{clearButton:!0}),e}(I.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10);t.ComboBox=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(1),r=function(e,t,n){this.index=e,this.event=t,this.action=n};t.NavigationData=r,(o=s=t.NavigationAction||(t.NavigationAction={}))[o.Undefined=0]="Undefined",o[o.Open=1]="Open",o[o.Close=2]="Close",o[o.Enter=3]="Enter",o[o.Space=4]="Space",o[o.Tab=5]="Tab",o[o.Esc=6]="Esc",o[o.Delete=7]="Delete",o[o.Backspace=8]="Backspace",o[o.Home=9]="Home",o[o.End=10]="End",o[o.Up=11]="Up",o[o.Down=12]="Down",o[o.Left=13]="Left",o[o.Right=14]="Right";var a=function(){function e(){}return e.prototype.navigate=function(e){var t=this.process({current:e.currentIndex,max:e.max,min:e.min,event:e.event}),n=t.action;n!==s.Undefined&&(n===s.Open&&!e.opened||n===s.Close&&e.opened||13===e.event.keyCode||32===e.event.keyCode?e.togglePopup(e.state):void 0!==t.index&&e.handleItemSelect(t.index,e.state));var o=n===s.Left||n===s.Right;n===s.Undefined||n===s.Tab||n===s.Backspace||n===s.Delete||o&&e.leftRightKeysNavigation||!(n!==s.Enter||n===s.Enter&&e.opened)||e.event.preventDefault()},e.prototype.process=function(e){var t=e.event,n=t.keyCode,o=t.altKey,i=void 0,a=s.Undefined;return o&&40===n?a=s.Open:o&&38===n?a=s.Close:13===n?a=s.Enter:32===n?a=s.Space:27===n?a=s.Close:9===n?a=s.Tab:38===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Up):37===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Left):40===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Down):39===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Right):36===n?(i=0,a=s.Home):35===n?(i=e.max,a=s.End):46===n?a=s.Delete:8===n&&(a=s.Backspace),new r(i,t,a)},e.prototype.next=function(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=n(2),l=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(t.props.index||0,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.selected,o=e.focused,i=e.dataItem,a=e.textField;return s.createElement("li",{id:t,role:"option","aria-selected":n||!1,className:r.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},l.getter(i,a))},t}(s.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){e.preventDefault()},t.onClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(-1,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,o=e.textField;return a.createElement("div",{onClick:this.onClick,onMouseDown:this.onMouseDown,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getter(n,o)||"")},t}(a.Component);t.default=l},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.componentDidUpdate=function(){this._input&&this.props.focused&&(this.props.willFocus&&this.props.willFocus(),this._input.focus(),this.props.didFocus&&setTimeout(this.props.didFocus,0))},t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){t._input=e},value:this.props.value,className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),a.createElement("span",{className:"k-icon k-i-search"}))},t}(a.Component);t.default=s},function(e,t){e.exports=r},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.focused,o=e.style,i=e.ariaExpanded,a=e.ariaOwns,s=e.ariaActiveDescendant,r=e.tabIndex;return l.createElement("span",{role:"listbox",tabIndex:t?void 0:r,className:p.classNames("k-dropdown-wrap",this.props.className,{"k-state-default":!t,"k-state-focused":n,"k-state-disabled":t}),style:o,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onClick:this.props.onClick,"aria-disabled":t||void 0,"aria-haspopup":!0,"aria-expanded":i,"aria-owns":a,"aria-activedescendant":s},this.props.children)},t}(l.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),l=n(8),a=n(3),d=n(2),v=n(17),u=n(7),c=n(15),m=n(14),g=n(6),y=n(5),b=n(4),x=n(1),I=0,C=1,S=2,_=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(r){function e(e){var h=r.call(this,e)||this;h.vs=new b.default,h._lastMousedown=0,h.handleItemSelect=function(e,t){h.base.handleItemSelect(e,t)},h.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),h.state.selectedIndex!==n&&(o.data.selectedIndex=n),h.base.value=e,h.base.text=t,h.base.index=n},h.togglePopup=function(e){h.base.togglePopup(e),h.state.opened||h.base.calculatePopupWidth(),h.props.filterable&&h.state.filterInputFocused&&(e.data.filterInputFocused=!1)},h.renderDropDownWrapper=function(){var e=h.props,t=e.defaultItem,n=e.valueField,o=e.disabled,i=e.tabIndex,a=e.loading,s=e.iconClassName,r=h.state,l=r.opened,p=r.isFocused,u=x.getItemIndex(h.props,h.value),c=x.getText(h.props,u);return!c&&x.isPresent(h.value)&&-1===u&&x.getItemValue(t,n)!==h.value&&(c=h.base.text),f.createElement(v.default,{disabled:o,focused:p,tabIndex:i,ariaExpanded:l||!1,ariaOwns:h.base.listBoxId,ariaActiveDescendant:h.base.optionPrefix+"-"+(h.value||""),onFocus:h.handleFocus,onBlur:h.handleBlur,onClick:h.handleWrapperClick,onKeyDown:h.handleKeyDown,onKeyPress:h.handleKeyPress,ref:function(e){h.base.wrapper=e}},f.createElement("span",{className:"k-input"},c),f.createElement("span",{className:"k-select"},f.createElement("span",{className:d.classNames("k-icon",s,{"k-i-arrow-s":!a&&!s,"k-i-loading":a&&!s})})))},h.renderListContainer=function(){var e=h.props.popupSettings,t=h.state.opened,n=void 0!==h.props.virtual,o={onMouseDown:function(e){h._lastMousedown=(new Date).getTime(),_(e)},dir:void 0!==h.props.dir?h.props.dir:h.base.dirCalculated,onBlur:h.handleBlur,width:h.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:(e||{}).animate,anchor:h.element,show:t,open:h.onPopupOpened,close:h.onPopupClosed}};return f.createElement(u.default,p({},o),h.renderListFilter(),n?h.renderDefaultItem():void 0,h.renderScrollWrapper(n?[h.renderList(),h.renderScrollElement()]:[h.renderDefaultItem(),h.renderList(),h.renderScrollElement()]))},h.renderScrollWrapper=function(e){var t=h.props.popupSettings,n=h.base.vs;return n.enabled?f.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},h.renderScrollElement=function(){var t=h.base.vs;return t.enabled&&f.createElement("div",{ref:function(e){t.scrollElement=e},key:S})},h.renderList=function(){var e=h.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.popupSettings,s=h.base.vs,r=h.state,l=r.opened,p=r.skip,u="translateY("+h.vs.translate+"px)",c=h.value,d=!(x.getItemIndex(h.props,c)<0&&!i);return f.createElement(g.default,{id:h.base.listBoxId,show:l,data:(t||[]).slice(),focusedIndex:d||0!==p?void 0:0,value:c,textField:n,valueField:o,optionPrefix:h.base.optionPrefix,listRef:function(e){s.enabled&&(s.list=e),h.base.list=e},wrapperStyle:s.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:s.enabled?void 0:"k-list-scroller",listStyle:s.enabled?{transform:u}:void 0,key:C,skip:p,onClick:h.handleItemClick})},h.renderListFilter=function(){var e=h.props.filterable,t=h.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&f.createElement(c.default,{value:o,focused:n&&i,willFocus:h.filteringInputWillFocus,didFocus:h.filteringInputDidFocus,onChange:h.handleListFilterChange,onKeyDown:h.handleKeyDown})},h.renderDefaultItem=function(){var e=h.props,t=e.textField,n=e.defaultItem;return n&&f.createElement(m.default,{defaultItem:n,textField:t,selected:-1===h.index,key:I,onClick:h.handleDefaultItemClick})},h.search=function(){clearTimeout(h._typingTimeout),h.props.filterable||(h._typingTimeout=setTimeout(function(){h.setState({word:""})},h.props.delay),h.selectNext())},h.selectNext=function(){var e,t,n,o=(h.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),i=x.sameCharsOnly(h.state.word,h.state.last),a=o.length,s=h.state.selectedIndex||0;for(h.props.defaultItem&&(n={item:h.props.defaultItem,itemIndex:-1},a+=1,s+=1),s+=i?1:0,o=x.shuffleData(o,s,n),t=0;t<a;t++){e=x.getter(o[t].item,h.props.textField);var r=Boolean(i&&x.matchText(e,h.state.last,h.props.ignoreCase)),l=Boolean(x.matchText(e,h.state.word,h.props.ignoreCase));if(r||l){t=o[t].itemIndex;break}}if(t!==a){var p=h.base.initState();h.handleItemSelect(t,p),h.base.applyState(p)}},h.handleFocus=function(e){h.base.handleFocus(e)},h.handleBlur=function(e){if(h.state.isFocused&&!h._filteringWillFocus){if((new Date).getTime()-h._lastMousedown<500)return h._lastMousedown=0,e.target.focus();var t=h.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,h.state.opened&&t.events.push({type:"onClose"}),h.base.applyState(t)}},h.handleWrapperClick=function(e){h.base.handleWrapperClick(e)},h.handleItemClick=function(e,t){h.base.handleItemClick(e,t)},h.handleDefaultItemClick=function(e,t){var n=h.base.initState(),o=h.props,i=o.defaultItem,a=o.valueField,s=o.textField;h.togglePopup(n);var r=x.getItemValue(i,a),l=x.getItemText(i,s);h.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,h.base.applyState(n)},h.handleKeyDown=function(e){h.base.handleKeyDown(e)},h.handleKeyPress=function(e){if(!h.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);h.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),h.setState({word:h.state.word+t,last:h.state.last+t},h.search)}},h.handleListFilterChange=function(e){var t=h.base.initState();h.base.filterChanged(e.target.value,t),t.syntheticEvent=e,h.base.applyState(t)},h.filteringInputWillFocus=function(){h._filteringWillFocus=!0},h.filteringInputDidFocus=function(){h._filteringWillFocus=!1},h.onPopupOpened=function(){h.base.vs.hidden=!1,h.props.filterable&&h.setState({filterInputFocused:!0})},h.onPopupClosed=function(){if(h.base.vs.hidden=!0,h.state.isFocused){var e=l.findDOMNode(h.base.wrapper);setTimeout(function(){h.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1;!x.isPresent(t)&&x.isPresent(e.defaultItem)?t=x.getItemValue(e.defaultItem,e.valueField):n=x.getItemIndex(e,t);var o=h.props,i=o.filter,a=o.filterable,s=o.opened;return h.state={filterText:i||"",word:"",last:"",selectedIndex:n,skip:0,isFocused:s,filterInputFocused:a&&s,opened:s},h.base=new y.default(h),h.base.index=n,h.base.value=t,h}return i(e,r),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=t.filterable,i=t.defaultItem,a=this.base.initState();a.syntheticEvent=e;var s=this.base.vs,r=x.getItemIndex(this.props,this.value);this.base.navigation.navigate({opened:this.state.opened,event:e,state:a,currentIndex:s.skip+r,max:(s.enabled?s.total:(n||[]).length)-1,min:i?-1:0,leftRightKeysNavigation:o,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),this.base.applyState(a)},e.prototype.render=function(){var t=this,e=this.props,n=e.style,o=e.className,i=e.label,a=e.dir,s=this.state.opened,r=x.getText(this.props,x.getItemIndex(this.props,this.value)),l=f.createElement("span",{ref:function(e){t._element=e},className:d.classNames("k-widget k-dropdown k-header",o),style:i?p({},n,{width:void 0}):n,dir:a,onMouseDown:s?_:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?f.createElement(d.FloatingLabel,{label:i,value:r,style:{width:n?n.width:void 0},children:l}):l},e.propTypes=p({delay:a.number,ignoreCase:a.bool,loading:a.bool,value:a.oneOfType([a.string,a.number,a.object]),defaultValue:a.oneOfType([a.string,a.number,a.object]),iconClassName:a.string},y.default.propTypes),e.defaultProps=p({delay:500,ignoreCase:!0},y.default.defaultProps),e}(f.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(19);t.DropDownList=o.DropDownList;var i=n(11);t.ComboBox=i.ComboBox,function(e){for(var t in e)a(t,e[t])}(t)}])}}});
{
"name": "@progress/kendo-react-dropdowns",
"version": "0.5.0",
"version": "0.5.1-dev.201804061416",
"description": "Kendo UI for React DropDowns package",

@@ -29,4 +29,4 @@ "repository": {

"dependencies": {
"@progress/kendo-react-common": "0.5.0",
"@progress/kendo-react-popup": "0.5.0",
"@progress/kendo-react-common": "0.5.1-dev.201804061416",
"@progress/kendo-react-popup": "0.5.1-dev.201804061416",
"prop-types": "^15.6.0"

@@ -33,0 +33,0 @@ },

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