@progress/kendo-react-dropdowns
Advanced tools
Comparing version 0.6.0-dev.201805141755 to 0.6.0
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-dropdowns",["react","prop-types","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-popup","react-dom"],function(s){var n,o,i,a,r,l;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){a=t(e)},function(e){r=t(e)},function(e){l=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=25)}([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,o){var i=function(e){return o?e:e.toLowerCase()};return e.findIndex(function(e){return r(e)?i(t)===i(e.toString()):i(a(e,n))===i(t)})};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=i},function(e,t){e.exports=o},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(0),i=n(11),s=n(3),r=n(10),l=n(17),d=n(1),u=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 r.default,this.navigation=new l.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(d.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=d.getValue(o,n),r=d.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.renderScrollWrapper=function(e){var t=p.component.props.popupSettings,n=p.vs;return n.enabled?o.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=p.vs;return t.enabled&&o.createElement("div",{ref:function(e){t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=u.guid(),this.optionPrefix=u.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=d.getValue(e,a),this.text=d.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<=d.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=(e.selectedIndex||0)-(e.skip||0);this.scrollToItem(t)},e.prototype.scrollToItem=function(e){var t=this.list||this.vs.list,n=t?t.children[0]:void 0;if(n&&0<=e){var o=this.vs,i=o.container||t.parentNode;d.scrollToItem(i,n.offsetHeight,e,o.translate,o.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=i.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=d.getItemIndex(e,n),i=d.getText(e,o),a=e.defaultItem?d.getItemValue(e.defaultItem,e.valueField):void 0;d.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=d.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection&&this.component.setValueSelection(n,i,o,t))},e.basicPropTypes={opened:s.bool,disabled:s.bool,dir:s.string,tabIndex:s.number,data:s.array,valueField:s.string,className:s.string,label:s.string,popupSettings:s.shape({animate:s.bool,width:s.string,height:s.string}),onOpen:s.func,onClose:s.func,onFocus:s.func,onBlur:s.func,onChange:s.func,itemRender:s.func,listNoDataRender:s.func,header:s.node,footer:s.node},e.propTypes=a({},e.basicPropTypes,{filterable:s.bool,textField:s.string,virtual:s.shape({pageSize:s.number.isRequired,skip:s.number.isRequired,total:s.number.isRequired}),onFilterChange:s.func,onPageChange:s.func}),e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=p},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((o={})[t.clear]="clear",o[t.nodata]="NO DATA FOUND.",o)},function(e,t){e.exports=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 c=n(0),h=n(18),f=n(1),p=n(6),a=n(5),s=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,d=e.focusedIndex,u=e.itemRender;return this.props.data.map(function(e,t){var n=f.getter(e,s),o=(p||0)+t;return c.createElement(h.default,{id:l+"-"+(n||o.toString()),dataItem:e,selected:n===r,focused:d===t,index:o,key:o,onClick:i.props.onClick,textField:a,renderer:u})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=c.createElement("div",{className:"k-nodata"},c.createElement("div",null,e.toLanguageString(a.nodata,a.messages[a.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=p.provideLocalizationService(this),t=this.props,n=t.id,o=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?c.createElement("div",{className:i,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},c.createElement("ul",{id:n,role:"listbox","aria-hidden":!o||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t}(c.Component);t.default=s,p.registerForLocalization(s)},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(21),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,n){"use strict";var o=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 x=n(0),i=n(3),a=n(4),c=n(14),b=n(7),d=n(8),C=n(1),s=function(){function e(e){var s=this;this._lastMousedown=0,this.handleItemSelect=function(e,t){if(s.dropdown.handleItemSelect(e,t),s.dropdown.selectedItemChanged){var n=s.dropdown.component;n.state.typedText&&(t.data.typedText=""),n.state.filterText&&(t.data.filterText="")}},this.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0);var i=s.dropdown.component;i.props.filterable||t===i.state.text||(o.data.text=t),o.data.selectedIndex!==i.state.selectedIndex&&(o.data.selectedIndex=n,o.data.focusedIndex=-1!==n?n:void 0),s.dropdown.value=e},this.onInputKeyDown=function(e){var t=s.dropdown.component,n=e.keyCode,o=function(){t.state.opened&&e.preventDefault()};if(13===n||27===n){o();var i=e.currentTarget.value,a=s.dropdown.initState();a.syntheticEvent=e,t.applyInputValue(i,a,e.keyCode)}else 38!==n&&40!==n||(o(),s.dropdown.handleKeyDown(e))},this.onInput=function(e){var t=s.dropdown.component,n=s.dropdown.initState(),o=e.currentTarget.value,i=void 0!==t.props.value;if(n.syntheticEvent=e,!o)return s.clearValue(n),s.dropdown.applyState(n);t.state.opened||(n.data.opened=!0),n.data.typedText=o,i||(n.data.selectedIndex=-1,s.dropdown.index=-1),t.props.filterable&&s.dropdown.filterChanged(o,n),t.state.opened===n.data.opened&&n.events.push({type:n.data.opened?"onOpen":"onClose"}),s.suggestValue(o,n),s.dropdown.applyState(n)},this.handleBlur=function(e){var t=s.dropdown.component;if(t.state.isFocused){if((new Date).getTime()-s._lastMousedown<500)return s._lastMousedown=0,e.currentTarget.focus();var n=s.dropdown.initState();n.data.isFocused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},this.handleFocus=function(e){s.dropdown.handleFocus(e)},this.clearButtonClick=function(e){var t=s.dropdown.component,n=s.dropdown.initState();n.syntheticEvent=e,s.clearValue(n),t.state.opened&&s.dropdown.togglePopup(n),s.dropdown.applyState(n)},this.togglePopup=function(e){s.dropdown.togglePopup(e)},this.dropdown=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this.dropdown.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.dropdown.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.dropdown.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.dropdown.componentWillUpdate(e,t);var n=this.dropdown.component;!n.state.opened&&t.opened&&this.dropdown.calculatePopupWidth();var o=void 0!==t.selectedIndex&&n.state.selectedIndex!==t.selectedIndex,i=t.typedText||!t.typedText&&n.state.typedText&&void 0===this.dropdown.lastValueSelected;if(o){var a=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.dropdown.value=C.getItemValue(a,e.valueField),this.dropdown.text=C.getItemText(a,e.textField),this.dropdown.index=t.selectedIndex||0}else i&&(this.dropdown.lastTextSelected="",this.dropdown.lastValueSelected=void 0,this.dropdown.value=void 0,this.dropdown.index=-1,this.dropdown.text="")},e.prototype.componentDidUpdate=function(e){var t=this.dropdown;t.componentDidUpdate(e);var n=t.component,o=n.state,i=o.typedText,a=o.opened,s=o.focusedIndex;if(a&&(i!==e.typedText||e.focusedIndex!==s)){var r=this.getFocusedIndex(i);-1!==r&&t.scrollToItem(r-(n.state.skip||0))}},e.prototype.componentDidMount=function(){this.dropdown.componentDidMount()},e.prototype.componentWillUnmount=function(){this.dropdown.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.dropdown.component,n=t.props,o=n.data,i=void 0===o?[]:o,a=n.filterable,s=n.textField,r=this.dropdown.initState(),l=this.dropdown.vs,p=C.getItemIndex(t.props,t.value),d=t.state.typedText,u=l.skip+p;if(u<0&&d&&(38===e.keyCode||40===e.keyCode)){var c=C.itemIndexStartsWith(d,i,s);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.dropdown.navigation.navigate({opened:t.state.opened,event:e,state:r,currentIndex:u,max:(l.enabled?l.total:i.length)-1,min:0,leftRightKeysNavigation:a,togglePopup:t.togglePopup,handleItemSelect:this.handleItemSelect}),r.syntheticEvent=e,this.dropdown.applyState(r)},e.prototype.valueToRender=function(e,t){var n=this.dropdown.component,o=e||n.state,i=o.typedText,a=o.filterText,s=void 0===a?"":a,r=o.opened,l=t||n.props,p=l.value,d=l.filterable,u=void 0!==p,c=this.dropdown.text||"",h=u?p:this.dropdown.value,f=d&&!!s;return r||!c||this.dropdown.lastTextSelected!==c||f&&!this.dropdown.lastTextSelected.toLowerCase().startsWith(s.toLowerCase())?f?{value:h,text:s}:i?{value:null,text:i}:{value:h,text:c}:{value:h,text:c}},e.prototype.getFocusedIndex=function(e){var t=this.dropdown.component,n=t.state,o=n.opened,i=n.skip,a=n.focusedIndex,s=t.props,r=s.textField,l=s.data,p=void 0===l?[]:l;return o?void 0!==a?a:e?C.itemIndexStartsWith(e,p,r):0===i?0:-1:-1},e.prototype.applyInputValue=function(e,t,n,o,i){var a=this.dropdown.component,s=this.dropdown,r=a.state,l=r.suggestedText,p=void 0===l?"":l,d=r.opened,u=r.skip,c=void 0===u?0:u,h=a.props,f=h.data,v=void 0===f?[]:f,g=h.textField,m=h.valueField,y=h.suggest,x=h.filterable,b=void 0===i||27===i,w=C.getItemIndexByText(v,e,g,o);if(d&&(t.data.opened=!1),n&&-1===w&&this.value===e)return d&&t.events.push({type:"onClose"}),s.applyState(t);var I=void 0,_="";if(-1!==w?(I=C.getItemValue(v[w],m),_=C.getItemText(v[w],g)):n&&(_=I=e),y&&!b&&p.toLowerCase()===e.toLowerCase())_=I=p,t.data.typedText=p;else if(b)if(a.state.suggestedText&&(t.data.suggestedText=void 0),n||-1!==w||e!==s.lastTextSelected){if(!n&&-1===w&&e===a.state.typedText)return this.clearValue(t),s.applyState(t)}else I=s.lastValueSelected,_=s.lastTextSelected;else if(13===i&&!n){var S=C.itemIndexStartsWith(e,v,g);return this.handleItemSelect(S+c,t),d&&t.events.push({type:"onClose"}),a.state.typedText&&(t.data.typedText=""),x&&(t.data.filterText=s.text),s.applyState(t)}(this.value||"")!==I&&t.events.push({type:"onChange"}),d&&t.events.push({type:"onClose"}),s.value=I,s.text=_,s.applyState(t)},e.prototype.clearValue=function(e){var t=this.dropdown.component,n=void 0!==t.props.value,o=t.value;n?(this.dropdown.valueDuringOnChange=null,this.dropdown.indexDuringOnChange=-1):(this.dropdown.value=null,this.dropdown.index=-1,this.dropdown.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==t.state.focusedIndex&&(e.data.focusedIndex=void 0),void 0!==t.state.suggestedText&&(e.data.suggestedText=void 0),null!==o&&(e.events.push({type:"onChange"}),this.dropdown.selectedItemChanged=!0,t.props.filterable&&(this.dropdown.filterChanged("",e),this.dropdown.vs.reset()))},e.prototype.suggestValue=function(e,t){var n=this.dropdown.component;if(void 0!==n.state.suggestedText&&(t.data.suggestedText=void 0),n.props.suggest&&e){var o=n.props.data||[],i=n.props.textField,a=o[C.itemIndexStartsWith(e,o,i)];a&&(t.data.suggestedText=C.getItemText(a,i))}},e.prototype.renderListContainer=function(){var e=this,t=this.dropdown,n=t.component,o=t.vs,i=n.props,a=i.popupSettings,s=i.dir,r=i.header,l=i.footer,p=n.state.opened;return x.createElement(d.default,{onMouseDown:function(){e._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:(a||{}).animate,anchor:n.element||void 0,show:p,open:function(){o.hidden=!1},className:"k-list-container k-reset",close:function(){o.hidden=!0}},dir:void 0!==s?s:t.dirCalculated},r,t.renderScrollWrapper([this.renderList(),t.renderScrollElement()]),l)},e.prototype.renderSearchBar=function(e,t,n){var o=this.dropdown.component,i=o.props,a=i.placeholder,s=i.tabIndex,r=i.disabled,l=o.state,p=l.suggestedText,d=l.isFocused,u=l.opened;return x.createElement(c.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:p,focused:d,onKeyDown:this.onInputKeyDown,onInput:this.onInput,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:u,owns:this.dropdown.listBoxId,activedescendant:this.dropdown.optionPrefix+"-"+(this.value||""),clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderList=function(){var e,t=this.dropdown.component,n=t.props,o=n.textField,i=n.valueField,a=n.popupSettings,s=n.listNoDataRender,r=n.itemRender,l=this.dropdown,p=l.vs,d=t.state,u=d.opened,c=d.skip,h=void 0===c?0:c,f="translateY("+p.translate+"px)",v=this.valueToRender(),g=v.value,m=v.text,y=(t.props.data||[]).slice();return u&&(e=this.getFocusedIndex(m)-h),x.createElement(b.default,{id:l.listBoxId,show:u,data:y,focusedIndex:e,value:g,textField:o,valueField:i,optionPrefix:l.optionPrefix,listRef:function(e){p.enabled&&(p.list=e),l.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:f}:void 0,key:1,skip:h,onClick:this.dropdown.handleItemClick,itemRender:r,noDataRender:s})},e.propTypes=o({},a.default.propTypes,{suggest:i.bool,placeholder:i.string,loading:i.bool,value:i.oneOfType([i.string,i.number,i.object]),defaultValue:i.oneOfType([i.string,i.number,i.object])}),e.defaultProps=o({},a.default.defaultProps),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},o=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(1533915,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)c(t,0,l),r.reset();else if(s&&o===r.total-1)c(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var d=r.PageChange;r.PageChange=function(e){c(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=d}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var u=Math.max(0,i+(p<0?-1:1));c(t,u,l)}}else c(t,r.total-r.pageSize,l);else c(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=o},function(e,t){e.exports=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 m=n(0),y=n(6),x=n(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChanged=!1,e.deleting=!1,e}return i(e,t),e.prototype.componentWillUpdate=function(e,t){var n=this.props,o=n.value,i=n.suggestedText,a=e.value,s=e.suggestedText;this.valueChanged=o!==a||s!==i,this.deleting=this.valueChanged&&o.startsWith(a)&&!(i&&s&&i.endsWith(s))},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;n&&this.valueChanged&&!this.deleting&&o&&o.setSelectionRange(t.length-n.length,t.length)},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.value,s=e.onKeyDown,r=e.onInput,l=e.onFocus,p=e.onBlur,d=e.disabled,u=e.readOnly,c=e.expanded,h=e.owns,f=e.activedescendant,v=e.clearButton,g=e.clearButtonClick;return[m.createElement("span",{className:"k-searchbar",key:"searchbar"},m.createElement("input",{autoComplete:"off",id:n,type:"text",placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:a,onChange:function(){},ref:function(e){t.input=e},onKeyDown:s,onInput:r,onFocus:l,onBlur:p,"aria-disabled":d||void 0,disabled:d||void 0,readOnly:u||void 0,"aria-haspopup":!0,"aria-expanded":c||!1,"aria-owns":h,"aria-activedescendant":f})),v&&m.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:g,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:y.provideLocalizationService(this).toLanguageString(x.clear,x.messages[x.clear]),key:"clearbutton"})]},e}(m.Component);t.default=a,y.registerForLocalization(a)},function(e,t,n){"use strict";var o,a=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)}),h=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),s=n(3),u=n(12),l=n(8),c=n(7),r=n(4),p=n(9),d=n(1),g=n(2),i=function(i){function e(e){var v=i.call(this,e)||this;v._suggested="",v.handleItemSelect=function(e,t){var n=d.getText(v.props,e),o=v.value;v.setValue(n),n!==o&&t.events.push({type:"onChange"})},v.itemFocus=function(e,t){t.data.focusedIndex=e},v.togglePopup=function(e){v.combobox.togglePopup(e)},v.onInput=function(e){var t=v.combobox.dropdown,n=t.initState(),o=e.currentTarget,i=o.value,a=o.selectionEnd===i.length;n.syntheticEvent=e;var s=v._suggested,r=v.value,l=r&&r.substring(0,r.length-s.length),p=l&&l===i,d=l&&l.length>i.length,u=v.props.suggest;if(void 0!==u&&!1!==u){p||d||!a?v._suggested="":v.suggestValue(i);var c=i+v._suggested;v.setValue(c);var h={userInput:i,value:v._suggested};n.events.push({type:"onChange",suggestion:h})}else v._suggested="",v.setValue(i),n.events.push({type:"onChange"});!v.state.opened&&i?(n.data.opened=!0,n.events.push({type:"onOpen"})):v.state.opened&&!i&&(n.data.opened=!1,n.events.push({type:"onClose"}));var f=v.getFocusedIndex(i);v.state.focusedIndex!==f&&(n.data.focusedIndex=f),v.forceUpdateIfNeeded(n),t.applyState(n)},v.clearButtonClick=function(e){var t=v.combobox.dropdown,n=t.initState();n.syntheticEvent=e;var o=v.value;v._suggested="",v.setValue(""),0!==v.state.focusedIndex&&(n.data.focusedIndex=0),""!==o&&n.events.push({type:"onChange"}),v.state.opened&&(n.data.opened=!1,n.events.push({type:"onClose"})),v.forceUpdateIfNeeded(n),t.applyState(n)};var t=e.opened,n=(void 0!==e.value?e.value:e.defaultValue)||"";v.state={isFocused:t,focusedIndex:t?v.getFocusedIndex(n):void 0,opened:t};var o=new r.default(v);return v.combobox=new p.default(o),o.value=n,v._inputId=g.guid(),v}return a(e,i),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.combobox.dropdown,n=t.initState(),o=e.value,i=void 0!==o;void 0!==e.opened&&(n.data.opened=e.opened),i&&(t.value=o),n.data.focusedIndex=this.getFocusedIndex(o,e.data),e.suggest&&("string"==typeof e.suggest?this._suggested=e.suggest:this.suggestValue(t.value)),t.applyState(n)},e.prototype.componentWillUpdate=function(e,t){!this.state.opened&&t.opened&&this.combobox.dropdown.calculatePopupWidth()},e.prototype.componentDidUpdate=function(e,t){var n=this.state,o=n.opened,i=n.focusedIndex,a=!t.opened&&o,s=void 0!==i&&t.focusedIndex!==i;(o&&s||a)&&this.combobox.dropdown.scrollToItem(i)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.onNavigate=function(e){var t=38===e.keyCode||40===e.keyCode,n=this.state,o=n.opened,i=n.focusedIndex,a=this.value;if(t&&(!t||!e.altKey&&o)){var s=this.combobox.dropdown,r=this.props.data,l=void 0===r?[]:r,p=s.initState(),d=void 0!==i?i:this.getFocusedIndex(a);s.navigation.navigate({opened:o,event:e,state:p,currentIndex:d,max:l.length-1,min:0,leftRightKeysNavigation:!1,togglePopup:this.togglePopup,handleItemSelect:this.itemFocus}),p.syntheticEvent=e,s.applyState(p)}},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.label,a=e.className,s=e.style,r=e.loading,l=this.state.isFocused,p=this.value,d=!r&&!!p,u=this.combobox.dropdown,c=f.createElement("span",{className:g.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":o,"k-state-focused":l&&!o}),ref:function(e){t._element=e,u.wrapper=e},style:i?h({},s,{width:void 0}):s,dir:n},this.renderSearchBar(d,p),r&&f.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return i?f.createElement(g.FloatingLabel,{label:i,value:p,style:{width:s?s.width:void 0},id:this._inputId,children:c}):c},e.prototype.applyInputValue=function(e,t,n){var o=this.state.opened,i=void 0!==this.state.focusedIndex?this.state.focusedIndex:this.getFocusedIndex(e);if(this._suggested="",o&&13===n){var a=d.getText(this.props,i);this.setValue(a),e!==a&&t.events.push({type:"onChange"})}this.state.focusedIndex!==i&&(t.data.focusedIndex=i),o&&(t.data.opened=!1,t.events.push({type:"onClose"})),this.forceUpdateIfNeeded(t),this.combobox.dropdown.applyState(t)},e.prototype.getFocusedIndex=function(e,t){var n=this.props.textField;return t=t||this.props.data||[],e?d.itemIndexStartsWith(e,t,n):0},e.prototype.renderSearchBar=function(e,t){var n=this.combobox.dropdown,o=this.props,i=o.placeholder,a=o.tabIndex,s=o.disabled,r=o.readonly,l=this.state,p=l.isFocused,d=l.opened;return f.createElement(u.default,{id:this._inputId,placeholder:i,tabIndex:a||void 0,value:t,suggestedText:this._suggested,focused:p,onKeyDown:this.combobox.onInputKeyDown,onInput:this.onInput,onFocus:this.combobox.handleFocus,onBlur:this.combobox.handleBlur,disabled:s,readOnly:r,expanded:d,owns:n.listBoxId,activedescendant:n.optionPrefix+"-"+(this.value||""),clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderListContainer=function(){var e=this,t=this.combobox.dropdown,n=this.props,o=n.popupSettings,i=n.dir,a=n.header,s=n.footer,r=this.state.opened;return f.createElement(l.default,{onMouseDown:function(){e.combobox._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:(o||{}).animate,anchor:this.element||void 0,show:r,className:"k-list-container k-reset"},dir:void 0!==i?i:t.dirCalculated},a,this.renderList(),s)},e.prototype.renderList=function(){var t=this.combobox.dropdown,e=this.props,n=e.textField,o=e.popupSettings,i=e.data,a=void 0===i?[]:i,s=e.listNoDataRender,r=e.itemRender,l=this.state,p=l.opened,d=l.focusedIndex,u=this.value;return f.createElement(c.default,{id:t.listBoxId,show:p,data:a.slice(),focusedIndex:d,value:u,textField:n,valueField:n,optionPrefix:t.optionPrefix,listRef:function(e){t.list=e},wrapperStyle:{maxHeight:(o||{}).height},wrapperCssClass:"k-list-scroller",onClick:t.handleItemClick,itemRender:r,noDataRender:s})},e.prototype.forceUpdateIfNeeded=function(e){this.controlled()||0!==Object.keys(e.data).length||this.forceUpdate()},e.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.textField,a=o[d.itemIndexStartsWith(e,o,i)];if(a){var s=d.getItemText(a,i);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},e.prototype.setValue=function(e){var t=this.combobox.dropdown;this.controlled()?t.valueDuringOnChange=e:t.value=e},e.prototype.controlled=function(){return void 0!==this.props.value},e.propTypes=h({},r.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,loading:s.bool,value:s.string,defaultValue:s.string,readonly:s.bool}),e.defaultProps=h({},p.default.defaultProps),e}(f.Component);t.default=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),g=n(6),m=n(5),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&&document.activeElement!==this.input&&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,d=e.expanded,u=e.owns,c=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":d||!1,"aria-owns":u,"aria-activedescendant":c})),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:g.provideLocalizationService(this).toLanguageString(m.clear,m.messages[m.clear]),key:"clearbutton"})]},e}(v.Component);t.default=a,g.registerForLocalization(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)}),v=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 g=n(0),a=n(3),u=n(4),c=n(9),h=n(1),m=n(2),s=function(d){function e(e){var i=d.call(this,e)||this;i.handleItemSelect=function(e,t){i.combobox.handleItemSelect(e,t)},i.togglePopup=function(e){i.combobox.togglePopup(e)},i.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),i.combobox.setValueSelection(e,t,n,o)};var t=e.allowCustom,n=e.opened,o=e.textField,a=e.valueField,s=void 0!==e.value?e.value:e.defaultValue,r=-1,l="";t&&void 0!==s?(l=h.getItemText(s,o),r=h.getItemIndex(e,s)):t||(r=h.getItemIndex(e,s),l=h.getText(e,r)),i.state={filterText:i.props.filter||"",typedText:"",text:l,selectedIndex:r,skip:0,isFocused:n,opened:n};var p=new u.default(i);return i.combobox=new c.default(p),p.value=h.getItemValue(s,a),p.index=r,p.text=l,i._inputId=m.guid(),i}return i(e,d),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.combobox.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.combobox.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.combobox.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.combobox.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.componentWillUnmount=function(){this.combobox.componentWillUnmount()},e.prototype.onNavigate=function(e){this.combobox.onNavigate(e)},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.clearButton,a=e.label,s=e.className,r=e.style,l=e.loading,p=e.iconClassName,d=this.state.isFocused,u=this.combobox.valueToRender().text,c=!(!i||!u),h=this.combobox.dropdown,f=g.createElement("span",{className:m.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":i},s),ref:function(e){t._element=e},style:a?v({},r,{width:void 0}):r,dir:n},g.createElement("span",{ref:function(e){h.wrapper=e},className:m.classNames("k-dropdown-wrap",{"k-state-default":!o,"k-state-disabled":o,"k-state-focused":d&&!o})},this.combobox.renderSearchBar(c,u,this._inputId),g.createElement("span",{className:"k-select",onClick:h.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},g.createElement("span",{className:m.classNames("k-icon",p,{"k-i-arrow-s":!l&&!p,"k-i-loading":l&&!p})}))),this.combobox.renderListContainer());return a?g.createElement(m.FloatingLabel,{label:a,value:u,style:{width:r?r.width:void 0},id:this._inputId,children:f}):f},e.prototype.applyInputValue=function(e,t,n){this.combobox.applyInputValue(e,t,this.props.allowCustom,!1,n)},e.propTypes=v({},c.default.propTypes,{allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string}),e.defaultProps=v({},c.default.defaultProps,{allowCustom:!1,clearButton:!0}),e}(g.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);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 l=n(0),p=n(2),d=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.index,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,s=e.renderer,r=l.createElement("li",{id:t,role:"option","aria-selected":n,className:p.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},d.getter(i,a));return void 0!==s?s.call(void 0,r,this.props):r},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)});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 v=n(0),l=n(11),a=n(3),m=n(2),y=n(22),d=n(8),u=n(20),c=n(19),x=n(7),h=n(4),f=n(10),b=n(1),w=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(r){function e(e){var g=r.call(this,e)||this;g.vs=new f.default,g._lastMousedown=0,g.searchState={word:"",last:""},g.handleItemSelect=function(e,t){g.base.handleItemSelect(e,t)},g.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),g.state.selectedIndex!==n&&(o.data.selectedIndex=n),g.base.value=e,g.base.text=t,g.base.index=n},g.togglePopup=function(e){g.base.togglePopup(e),g.state.opened||g.base.calculatePopupWidth(),g.props.filterable&&g.state.filterInputFocused&&(e.data.filterInputFocused=!1)},g.renderDropDownWrapper=function(){var e=g.props,t=e.defaultItem,n=e.valueField,o=e.disabled,i=e.tabIndex,a=e.loading,s=e.iconClassName,r=e.valueRender,l=g.state,p=l.opened,d=l.isFocused,u=b.getItemIndex(g.props,g.value),c=b.getText(g.props,u);!c&&b.isPresent(g.value)&&-1===u&&b.getItemValue(t,n)!==g.value&&(c=g.base.text);var h=v.createElement("span",{className:"k-input"},c),f=void 0!==r?r.call(void 0,h,g.value):h;return v.createElement(y.default,{disabled:o,focused:d,tabIndex:i,ariaExpanded:p||!1,ariaOwns:g.base.listBoxId,ariaActiveDescendant:g.base.optionPrefix+"-"+(g.value||""),onFocus:g.handleFocus,onBlur:g.handleBlur,onClick:g.base.handleWrapperClick,onKeyDown:g.base.handleKeyDown,onKeyPress:g.handleKeyPress,ref:function(e){g.base.wrapper=e}},f,v.createElement("span",{className:"k-select"},v.createElement("span",{className:m.classNames("k-icon",s,{"k-i-arrow-s":!a&&!s,"k-i-loading":a&&!s})})))},g.renderListContainer=function(){var e=g.props,t=e.popupSettings,n=e.header,o=e.footer,i=g.state.opened,a=void 0!==g.props.virtual,s={onMouseDown:function(e){g._lastMousedown=(new Date).getTime(),w(e)},dir:void 0!==g.props.dir?g.props.dir:g.base.dirCalculated,onBlur:g.handleBlur,width:g.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:(t||{}).animate,anchor:g.element||void 0,show:i,open:g.onPopupOpened,close:g.onPopupClosed}};return v.createElement(d.default,p({},s),g.renderListFilter(),a?g.renderDefaultItem():void 0,a&&n,g.base.renderScrollWrapper(a?[g.renderList(),g.base.renderScrollElement()]:[g.renderDefaultItem(),n,g.renderList(),o,g.base.renderScrollElement()]),a&&o)},g.renderList=function(){var e=g.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.popupSettings,s=e.listNoDataRender,r=e.itemRender,l=g.base.vs,p=g.state,d=p.opened,u=p.skip,c="translateY("+g.vs.translate+"px)",h=g.value,f=!(b.getItemIndex(g.props,h)<0&&!i);return v.createElement(x.default,{id:g.base.listBoxId,show:d,data:(t||[]).slice(),focusedIndex:f||0!==u?void 0:0,value:h,textField:n,valueField:o,optionPrefix:g.base.optionPrefix,listRef:function(e){l.enabled&&(l.list=e),g.base.list=e},wrapperStyle:l.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:l.enabled?void 0:"k-list-scroller",listStyle:l.enabled?{transform:c}:void 0,key:1,skip:u,onClick:g.base.handleItemClick,itemRender:r,noDataRender:s})},g.renderListFilter=function(){var e=g.props.filterable,t=g.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&v.createElement(u.default,{value:o,focused:n&&i,willFocus:g.filteringInputWillFocus,didFocus:g.filteringInputDidFocus,onChange:g.handleListFilterChange,onKeyDown:g.base.handleKeyDown})},g.renderDefaultItem=function(){var e=g.props,t=e.textField,n=e.defaultItem;return n&&v.createElement(c.default,{defaultItem:n,textField:t,selected:-1===g.index,key:0,onClick:g.handleDefaultItemClick})},g.search=function(e){clearTimeout(g._typingTimeout),g.props.filterable||(g._typingTimeout=setTimeout(function(){return g.searchState.word=""},g.props.delay),g.selectNext(e))},g.selectNext=function(e){var t,n=(g.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),o=g.searchState.word,i=g.searchState.last,a=b.sameCharsOnly(o,i),s=n.length,r=g.state.selectedIndex||0;g.props.defaultItem&&(t={item:g.props.defaultItem,itemIndex:-1},s+=1,r+=1),r+=a?1:0,n=b.shuffleData(n,r,t);for(var l,p,d,u=0,c=g.props,h=c.textField,f=c.ignoreCase;u<s;u++)if(l=b.getter(n[u].item,h),p=a&&b.matchText(l,i,f),d=b.matchText(l,o,f),p||d){u=n[u].itemIndex;break}if(u!==s){var v=g.base.initState();v.syntheticEvent=e,g.handleItemSelect(u,v),g.base.applyState(v)}},g.handleFocus=function(e){g.base.handleFocus(e)},g.handleBlur=function(e){if(g.state.isFocused&&!g._filteringWillFocus){if((new Date).getTime()-g._lastMousedown<500)return g._lastMousedown=0,e.target.focus();var t=g.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,g.state.opened&&t.events.push({type:"onClose"}),g.base.applyState(t)}},g.handleDefaultItemClick=function(e,t){var n=g.base.initState(),o=g.props,i=o.defaultItem,a=o.valueField,s=o.textField;g.togglePopup(n);var r=b.getItemValue(i,a),l=b.getItemText(i,s);g.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,g.base.applyState(n)},g.handleKeyPress=function(e){if(!g.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);g.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),g.searchState={word:g.searchState.word+t,last:g.searchState.last+t},g.search(e)}},g.handleListFilterChange=function(e){var t=g.base.initState();g.base.filterChanged(e.target.value,t),t.syntheticEvent=e,g.base.applyState(t)},g.filteringInputWillFocus=function(){g._filteringWillFocus=!0},g.filteringInputDidFocus=function(){g._filteringWillFocus=!1},g.onPopupOpened=function(){g.base.vs.hidden=!1,g.props.filterable&&g.setState({filterInputFocused:!0})},g.onPopupClosed=function(){if(g.base.vs.hidden=!0,g.state.isFocused){var e=l.findDOMNode(g.base.wrapper);setTimeout(function(){g.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1;!b.isPresent(t)&&b.isPresent(e.defaultItem)?t=b.getItemValue(e.defaultItem,e.valueField):n=b.getItemIndex(e,t);var o=g.props,i=o.filter,a=o.filterable,s=o.opened;return g.state={filterText:i||"",selectedIndex:n,skip:0,isFocused:s,filterInputFocused:a&&s,opened:s},g.base=new h.default(g),g.base.index=n,g.base.value=t,g}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=b.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=b.getText(this.props,b.getItemIndex(this.props,this.value)),l=v.createElement("span",{ref:function(e){t._element=e},className:m.classNames("k-widget k-dropdown k-header",o),style:i?p({},n,{width:void 0}):n,dir:a,onMouseDown:s?w:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?v.createElement(m.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,valueRender:a.func},h.default.propTypes),e.defaultProps=p({delay:500,ignoreCase:!0},h.default.defaultProps),e}(v.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(24);t.DropDownList=o.DropDownList;var i=n(16);t.ComboBox=i.ComboBox;var a=n(13);t.AutoComplete=a.default,function(e){for(var t in e)s(t,e[t])}(t)}])}}}); | ||
System.register("@progress/kendo-react-dropdowns",["prop-types","react","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-popup","react-dom"],function(s){var n,o,i,a,r,l;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){a=t(e)},function(e){r=t(e)},function(e){l=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=25)}([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,o){var i=function(e){return o?e:e.toLowerCase()};return e.findIndex(function(e){return r(e)?i(t)===i(e.toString()):i(a(e,n))===i(t)})};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=i},function(e,t){e.exports=n},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(0),i=n(11),s=n(3),r=n(10),l=n(17),d=n(1),u=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 r.default,this.navigation=new l.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(d.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=d.getValue(o,n),r=d.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.renderScrollWrapper=function(e){var t=p.component.props.popupSettings,n=p.vs;return n.enabled?o.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:(t||{}).height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=p.vs;return t.enabled&&o.createElement("div",{ref:function(e){t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=u.guid(),this.optionPrefix=u.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=d.getValue(e,a),this.text=d.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<=d.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=(e.selectedIndex||0)-(e.skip||0);this.scrollToItem(t)},e.prototype.scrollToItem=function(e){var t=this.list||this.vs.list,n=t?t.children[0]:void 0;if(n&&0<=e){var o=this.vs,i=o.container||t.parentNode;d.scrollToItem(i,n.offsetHeight,e,o.translate,o.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=i.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=d.getItemIndex(e,n),i=d.getText(e,o),a=e.defaultItem?d.getItemValue(e.defaultItem,e.valueField):void 0;d.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=d.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection&&this.component.setValueSelection(n,i,o,t))},e.basicPropTypes={opened:s.bool,disabled:s.bool,dir:s.string,tabIndex:s.number,data:s.array,valueField:s.string,className:s.string,label:s.string,popupSettings:s.shape({animate:s.bool,width:s.string,height:s.string}),onOpen:s.func,onClose:s.func,onFocus:s.func,onBlur:s.func,onChange:s.func,itemRender:s.func,listNoDataRender:s.func,header:s.node,footer:s.node},e.propTypes=a({},e.basicPropTypes,{filterable:s.bool,textField:s.string,virtual:s.shape({pageSize:s.number.isRequired,skip:s.number.isRequired,total:s.number.isRequired}),onFilterChange:s.func,onPageChange:s.func}),e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=p},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((o={})[t.clear]="clear",o[t.nodata]="NO DATA FOUND.",o)},function(e,t){e.exports=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 c=n(0),h=n(18),f=n(1),p=n(6),a=n(5),s=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,d=e.focusedIndex,u=e.itemRender;return this.props.data.map(function(e,t){var n=f.getter(e,s),o=(p||0)+t;return c.createElement(h.default,{id:l+"-"+(n||o.toString()),dataItem:e,selected:n===r,focused:d===t,index:o,key:o,onClick:i.props.onClick,textField:a,renderer:u})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=c.createElement("div",{className:"k-nodata"},c.createElement("div",null,e.toLanguageString(a.nodata,a.messages[a.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=p.provideLocalizationService(this),t=this.props,n=t.id,o=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?c.createElement("div",{className:i,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},c.createElement("ul",{id:n,role:"listbox","aria-hidden":!o||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t}(c.Component);t.default=s,p.registerForLocalization(s)},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(21),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,n){"use strict";var o=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 x=n(0),i=n(3),a=n(4),c=n(14),b=n(7),d=n(8),C=n(1),s=function(){function e(e){var s=this;this._lastMousedown=0,this.handleItemSelect=function(e,t){if(s.dropdown.handleItemSelect(e,t),s.dropdown.selectedItemChanged){var n=s.dropdown.component;n.state.typedText&&(t.data.typedText=""),n.state.filterText&&(t.data.filterText="")}},this.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0);var i=s.dropdown.component;i.props.filterable||t===i.state.text||(o.data.text=t),o.data.selectedIndex!==i.state.selectedIndex&&(o.data.selectedIndex=n,o.data.focusedIndex=-1!==n?n:void 0),s.dropdown.value=e},this.onInputKeyDown=function(e){var t=s.dropdown.component,n=e.keyCode,o=function(){t.state.opened&&e.preventDefault()};if(13===n||27===n){o();var i=e.currentTarget.value,a=s.dropdown.initState();a.syntheticEvent=e,t.applyInputValue(i,a,e.keyCode)}else 38!==n&&40!==n||(o(),s.dropdown.handleKeyDown(e))},this.onInput=function(e){var t=s.dropdown.component,n=s.dropdown.initState(),o=e.currentTarget.value,i=void 0!==t.props.value;if(n.syntheticEvent=e,!o)return s.clearValue(n),s.dropdown.applyState(n);t.state.opened||(n.data.opened=!0),n.data.typedText=o,i||(n.data.selectedIndex=-1,s.dropdown.index=-1),t.props.filterable&&s.dropdown.filterChanged(o,n),t.state.opened===n.data.opened&&n.events.push({type:n.data.opened?"onOpen":"onClose"}),s.suggestValue(o,n),s.dropdown.applyState(n)},this.handleBlur=function(e){var t=s.dropdown.component;if(t.state.isFocused){if((new Date).getTime()-s._lastMousedown<500)return s._lastMousedown=0,e.currentTarget.focus();var n=s.dropdown.initState();n.data.isFocused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},this.handleFocus=function(e){s.dropdown.handleFocus(e)},this.clearButtonClick=function(e){var t=s.dropdown.component,n=s.dropdown.initState();n.syntheticEvent=e,s.clearValue(n),t.state.opened&&s.dropdown.togglePopup(n),s.dropdown.applyState(n)},this.togglePopup=function(e){s.dropdown.togglePopup(e)},this.dropdown=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this.dropdown.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.dropdown.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.dropdown.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.dropdown.componentWillUpdate(e,t);var n=this.dropdown.component;!n.state.opened&&t.opened&&this.dropdown.calculatePopupWidth();var o=void 0!==t.selectedIndex&&n.state.selectedIndex!==t.selectedIndex,i=t.typedText||!t.typedText&&n.state.typedText&&void 0===this.dropdown.lastValueSelected;if(o){var a=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.dropdown.value=C.getItemValue(a,e.valueField),this.dropdown.text=C.getItemText(a,e.textField),this.dropdown.index=t.selectedIndex||0}else i&&(this.dropdown.lastTextSelected="",this.dropdown.lastValueSelected=void 0,this.dropdown.value=void 0,this.dropdown.index=-1,this.dropdown.text="")},e.prototype.componentDidUpdate=function(e){var t=this.dropdown;t.componentDidUpdate(e);var n=t.component,o=n.state,i=o.typedText,a=o.opened,s=o.focusedIndex;if(a&&(i!==e.typedText||e.focusedIndex!==s)){var r=this.getFocusedIndex(i);-1!==r&&t.scrollToItem(r-(n.state.skip||0))}},e.prototype.componentDidMount=function(){this.dropdown.componentDidMount()},e.prototype.componentWillUnmount=function(){this.dropdown.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.dropdown.component,n=t.props,o=n.data,i=void 0===o?[]:o,a=n.filterable,s=n.textField,r=this.dropdown.initState(),l=this.dropdown.vs,p=C.getItemIndex(t.props,t.value),d=t.state.typedText,u=l.skip+p;if(u<0&&d&&(38===e.keyCode||40===e.keyCode)){var c=C.itemIndexStartsWith(d,i,s);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.dropdown.navigation.navigate({opened:t.state.opened,event:e,state:r,currentIndex:u,max:(l.enabled?l.total:i.length)-1,min:0,leftRightKeysNavigation:a,togglePopup:t.togglePopup,handleItemSelect:this.handleItemSelect}),r.syntheticEvent=e,this.dropdown.applyState(r)},e.prototype.valueToRender=function(e,t){var n=this.dropdown.component,o=e||n.state,i=o.typedText,a=o.filterText,s=void 0===a?"":a,r=o.opened,l=t||n.props,p=l.value,d=l.filterable,u=void 0!==p,c=this.dropdown.text||"",h=u?p:this.dropdown.value,f=d&&!!s;return r||!c||this.dropdown.lastTextSelected!==c||f&&!this.dropdown.lastTextSelected.toLowerCase().startsWith(s.toLowerCase())?f?{value:h,text:s}:i?{value:null,text:i}:{value:h,text:c}:{value:h,text:c}},e.prototype.getFocusedIndex=function(e){var t=this.dropdown.component,n=t.state,o=n.opened,i=n.skip,a=n.focusedIndex,s=t.props,r=s.textField,l=s.data,p=void 0===l?[]:l;return o?void 0!==a?a:e?C.itemIndexStartsWith(e,p,r):0===i?0:-1:-1},e.prototype.applyInputValue=function(e,t,n,o,i){var a=this.dropdown.component,s=this.dropdown,r=a.state,l=r.suggestedText,p=void 0===l?"":l,d=r.opened,u=r.skip,c=void 0===u?0:u,h=a.props,f=h.data,v=void 0===f?[]:f,g=h.textField,m=h.valueField,y=h.suggest,x=h.filterable,b=void 0===i||27===i,w=C.getItemIndexByText(v,e,g,o);if(d&&(t.data.opened=!1),n&&-1===w&&this.value===e)return d&&t.events.push({type:"onClose"}),s.applyState(t);var I=void 0,_="";if(-1!==w?(I=C.getItemValue(v[w],m),_=C.getItemText(v[w],g)):n&&(_=I=e),y&&!b&&p.toLowerCase()===e.toLowerCase())_=I=p,t.data.typedText=p;else if(b)if(a.state.suggestedText&&(t.data.suggestedText=void 0),n||-1!==w||e!==s.lastTextSelected){if(!n&&-1===w&&e===a.state.typedText)return this.clearValue(t),s.applyState(t)}else I=s.lastValueSelected,_=s.lastTextSelected;else if(13===i&&!n){var S=C.itemIndexStartsWith(e,v,g);return this.handleItemSelect(S+c,t),d&&t.events.push({type:"onClose"}),a.state.typedText&&(t.data.typedText=""),x&&(t.data.filterText=s.text),s.applyState(t)}(this.value||"")!==I&&t.events.push({type:"onChange"}),d&&t.events.push({type:"onClose"}),s.value=I,s.text=_,s.applyState(t)},e.prototype.clearValue=function(e){var t=this.dropdown.component,n=void 0!==t.props.value,o=t.value;n?(this.dropdown.valueDuringOnChange=null,this.dropdown.indexDuringOnChange=-1):(this.dropdown.value=null,this.dropdown.index=-1,this.dropdown.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==t.state.focusedIndex&&(e.data.focusedIndex=void 0),void 0!==t.state.suggestedText&&(e.data.suggestedText=void 0),null!==o&&(e.events.push({type:"onChange"}),this.dropdown.selectedItemChanged=!0,t.props.filterable&&(this.dropdown.filterChanged("",e),this.dropdown.vs.reset()))},e.prototype.suggestValue=function(e,t){var n=this.dropdown.component;if(void 0!==n.state.suggestedText&&(t.data.suggestedText=void 0),n.props.suggest&&e){var o=n.props.data||[],i=n.props.textField,a=o[C.itemIndexStartsWith(e,o,i)];a&&(t.data.suggestedText=C.getItemText(a,i))}},e.prototype.renderListContainer=function(){var e=this,t=this.dropdown,n=t.component,o=t.vs,i=n.props,a=i.popupSettings,s=i.dir,r=i.header,l=i.footer,p=n.state.opened;return x.createElement(d.default,{onMouseDown:function(){e._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:(a||{}).animate,anchor:n.element||void 0,show:p,open:function(){o.hidden=!1},className:"k-list-container k-reset",close:function(){o.hidden=!0}},dir:void 0!==s?s:t.dirCalculated},r,t.renderScrollWrapper([this.renderList(),t.renderScrollElement()]),l)},e.prototype.renderSearchBar=function(e,t,n){var o=this.dropdown.component,i=o.props,a=i.placeholder,s=i.tabIndex,r=i.disabled,l=o.state,p=l.suggestedText,d=l.isFocused,u=l.opened;return x.createElement(c.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:p,focused:d,onKeyDown:this.onInputKeyDown,onInput:this.onInput,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:u,owns:this.dropdown.listBoxId,activedescendant:this.dropdown.optionPrefix+"-"+(this.value||""),clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderList=function(){var e,t=this.dropdown.component,n=t.props,o=n.textField,i=n.valueField,a=n.popupSettings,s=n.listNoDataRender,r=n.itemRender,l=this.dropdown,p=l.vs,d=t.state,u=d.opened,c=d.skip,h=void 0===c?0:c,f="translateY("+p.translate+"px)",v=this.valueToRender(),g=v.value,m=v.text,y=(t.props.data||[]).slice();return u&&(e=this.getFocusedIndex(m)-h),x.createElement(b.default,{id:l.listBoxId,show:u,data:y,focusedIndex:e,value:g,textField:o,valueField:i,optionPrefix:l.optionPrefix,listRef:function(e){p.enabled&&(p.list=e),l.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:f}:void 0,key:1,skip:h,onClick:this.dropdown.handleItemClick,itemRender:r,noDataRender:s})},e.propTypes=o({},a.default.propTypes,{suggest:i.bool,placeholder:i.string,loading:i.bool,value:i.oneOfType([i.string,i.number,i.object]),defaultValue:i.oneOfType([i.string,i.number,i.object])}),e.defaultProps=o({},a.default.defaultProps),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},o=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(1533915,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)c(t,0,l),r.reset();else if(s&&o===r.total-1)c(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var d=r.PageChange;r.PageChange=function(e){c(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=d}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var u=Math.max(0,i+(p<0?-1:1));c(t,u,l)}}else c(t,r.total-r.pageSize,l);else c(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=o},function(e,t){e.exports=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 m=n(0),y=n(6),x=n(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChanged=!1,e.deleting=!1,e}return i(e,t),e.prototype.componentWillUpdate=function(e,t){var n=this.props,o=n.value,i=n.suggestedText,a=e.value,s=e.suggestedText;this.valueChanged=o!==a||s!==i,this.deleting=this.valueChanged&&o.startsWith(a)&&!(i&&s&&i.endsWith(s))},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;n&&this.valueChanged&&!this.deleting&&o&&o.setSelectionRange(t.length-n.length,t.length)},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.value,s=e.onKeyDown,r=e.onInput,l=e.onFocus,p=e.onBlur,d=e.disabled,u=e.readOnly,c=e.expanded,h=e.owns,f=e.activedescendant,v=e.clearButton,g=e.clearButtonClick;return[m.createElement("span",{className:"k-searchbar",key:"searchbar"},m.createElement("input",{autoComplete:"off",id:n,type:"text",placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:a,onChange:function(){},ref:function(e){t.input=e},onKeyDown:s,onInput:r,onFocus:l,onBlur:p,"aria-disabled":d||void 0,disabled:d||void 0,readOnly:u||void 0,"aria-haspopup":!0,"aria-expanded":c||!1,"aria-owns":h,"aria-activedescendant":f})),v&&m.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:g,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:y.provideLocalizationService(this).toLanguageString(x.clear,x.messages[x.clear]),key:"clearbutton"})]},e}(m.Component);t.default=a,y.registerForLocalization(a)},function(e,t,n){"use strict";var o,a=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)}),h=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),s=n(3),u=n(12),l=n(8),c=n(7),r=n(4),p=n(9),d=n(1),g=n(2),i=function(i){function e(e){var v=i.call(this,e)||this;v._suggested="",v.handleItemSelect=function(e,t){var n=d.getText(v.props,e),o=v.value;v.setValue(n),n!==o&&t.events.push({type:"onChange"})},v.itemFocus=function(e,t){t.data.focusedIndex=e},v.togglePopup=function(e){v.combobox.togglePopup(e)},v.onInput=function(e){var t=v.combobox.dropdown,n=t.initState(),o=e.currentTarget,i=o.value,a=o.selectionEnd===i.length;n.syntheticEvent=e;var s=v._suggested,r=v.value,l=r&&r.substring(0,r.length-s.length),p=l&&l===i,d=l&&l.length>i.length,u=v.props.suggest;if(void 0!==u&&!1!==u){p||d||!a?v._suggested="":v.suggestValue(i);var c=i+v._suggested;v.setValue(c);var h={userInput:i,value:v._suggested};n.events.push({type:"onChange",suggestion:h})}else v._suggested="",v.setValue(i),n.events.push({type:"onChange"});!v.state.opened&&i?(n.data.opened=!0,n.events.push({type:"onOpen"})):v.state.opened&&!i&&(n.data.opened=!1,n.events.push({type:"onClose"}));var f=v.getFocusedIndex(i);v.state.focusedIndex!==f&&(n.data.focusedIndex=f),v.forceUpdateIfNeeded(n),t.applyState(n)},v.clearButtonClick=function(e){var t=v.combobox.dropdown,n=t.initState();n.syntheticEvent=e;var o=v.value;v._suggested="",v.setValue(""),0!==v.state.focusedIndex&&(n.data.focusedIndex=0),""!==o&&n.events.push({type:"onChange"}),v.state.opened&&(n.data.opened=!1,n.events.push({type:"onClose"})),v.forceUpdateIfNeeded(n),t.applyState(n)};var t=e.opened,n=(void 0!==e.value?e.value:e.defaultValue)||"";v.state={isFocused:t,focusedIndex:t?v.getFocusedIndex(n):void 0,opened:t};var o=new r.default(v);return v.combobox=new p.default(o),o.value=n,v._inputId=g.guid(),v}return a(e,i),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.combobox.dropdown,n=t.initState(),o=e.value,i=void 0!==o;void 0!==e.opened&&(n.data.opened=e.opened),i&&(t.value=o),n.data.focusedIndex=this.getFocusedIndex(o,e.data),e.suggest&&("string"==typeof e.suggest?this._suggested=e.suggest:this.suggestValue(t.value)),t.applyState(n)},e.prototype.componentWillUpdate=function(e,t){!this.state.opened&&t.opened&&this.combobox.dropdown.calculatePopupWidth()},e.prototype.componentDidUpdate=function(e,t){var n=this.state,o=n.opened,i=n.focusedIndex,a=!t.opened&&o,s=void 0!==i&&t.focusedIndex!==i;(o&&s||a)&&this.combobox.dropdown.scrollToItem(i)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.onNavigate=function(e){var t=38===e.keyCode||40===e.keyCode,n=this.state,o=n.opened,i=n.focusedIndex,a=this.value;if(t&&(!t||!e.altKey&&o)){var s=this.combobox.dropdown,r=this.props.data,l=void 0===r?[]:r,p=s.initState(),d=void 0!==i?i:this.getFocusedIndex(a);s.navigation.navigate({opened:o,event:e,state:p,currentIndex:d,max:l.length-1,min:0,leftRightKeysNavigation:!1,togglePopup:this.togglePopup,handleItemSelect:this.itemFocus}),p.syntheticEvent=e,s.applyState(p)}},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.label,a=e.className,s=e.style,r=e.loading,l=this.state.isFocused,p=this.value,d=!r&&!!p,u=this.combobox.dropdown,c=f.createElement("span",{className:g.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":o,"k-state-focused":l&&!o}),ref:function(e){t._element=e,u.wrapper=e},style:i?h({},s,{width:void 0}):s,dir:n},this.renderSearchBar(d,p),r&&f.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return i?f.createElement(g.FloatingLabel,{label:i,value:p,style:{width:s?s.width:void 0},id:this._inputId,children:c}):c},e.prototype.applyInputValue=function(e,t,n){var o=this.state.opened,i=void 0!==this.state.focusedIndex?this.state.focusedIndex:this.getFocusedIndex(e);if(this._suggested="",o&&13===n){var a=d.getText(this.props,i);this.setValue(a),e!==a&&t.events.push({type:"onChange"})}this.state.focusedIndex!==i&&(t.data.focusedIndex=i),o&&(t.data.opened=!1,t.events.push({type:"onClose"})),this.forceUpdateIfNeeded(t),this.combobox.dropdown.applyState(t)},e.prototype.getFocusedIndex=function(e,t){var n=this.props.textField;return t=t||this.props.data||[],e?d.itemIndexStartsWith(e,t,n):0},e.prototype.renderSearchBar=function(e,t){var n=this.combobox.dropdown,o=this.props,i=o.placeholder,a=o.tabIndex,s=o.disabled,r=o.readonly,l=this.state,p=l.isFocused,d=l.opened;return f.createElement(u.default,{id:this._inputId,placeholder:i,tabIndex:a||void 0,value:t,suggestedText:this._suggested,focused:p,onKeyDown:this.combobox.onInputKeyDown,onInput:this.onInput,onFocus:this.combobox.handleFocus,onBlur:this.combobox.handleBlur,disabled:s,readOnly:r,expanded:d,owns:n.listBoxId,activedescendant:n.optionPrefix+"-"+(this.value||""),clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderListContainer=function(){var e=this,t=this.combobox.dropdown,n=this.props,o=n.popupSettings,i=n.dir,a=n.header,s=n.footer,r=this.state.opened;return f.createElement(l.default,{onMouseDown:function(){e.combobox._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:(o||{}).animate,anchor:this.element||void 0,show:r,className:"k-list-container k-reset"},dir:void 0!==i?i:t.dirCalculated},a,this.renderList(),s)},e.prototype.renderList=function(){var t=this.combobox.dropdown,e=this.props,n=e.textField,o=e.popupSettings,i=e.data,a=void 0===i?[]:i,s=e.listNoDataRender,r=e.itemRender,l=this.state,p=l.opened,d=l.focusedIndex,u=this.value;return f.createElement(c.default,{id:t.listBoxId,show:p,data:a.slice(),focusedIndex:d,value:u,textField:n,valueField:n,optionPrefix:t.optionPrefix,listRef:function(e){t.list=e},wrapperStyle:{maxHeight:(o||{}).height},wrapperCssClass:"k-list-scroller",onClick:t.handleItemClick,itemRender:r,noDataRender:s})},e.prototype.forceUpdateIfNeeded=function(e){this.controlled()||0!==Object.keys(e.data).length||this.forceUpdate()},e.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.textField,a=o[d.itemIndexStartsWith(e,o,i)];if(a){var s=d.getItemText(a,i);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},e.prototype.setValue=function(e){var t=this.combobox.dropdown;this.controlled()?t.valueDuringOnChange=e:t.value=e},e.prototype.controlled=function(){return void 0!==this.props.value},e.propTypes=h({},r.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,loading:s.bool,value:s.string,defaultValue:s.string,readonly:s.bool}),e.defaultProps=h({},p.default.defaultProps),e}(f.Component);t.default=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),g=n(6),m=n(5),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&&document.activeElement!==this.input&&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,d=e.expanded,u=e.owns,c=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":d||!1,"aria-owns":u,"aria-activedescendant":c})),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:g.provideLocalizationService(this).toLanguageString(m.clear,m.messages[m.clear]),key:"clearbutton"})]},e}(v.Component);t.default=a,g.registerForLocalization(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)}),v=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 g=n(0),a=n(3),u=n(4),c=n(9),h=n(1),m=n(2),s=function(d){function e(e){var i=d.call(this,e)||this;i.handleItemSelect=function(e,t){i.combobox.handleItemSelect(e,t)},i.togglePopup=function(e){i.combobox.togglePopup(e)},i.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),i.combobox.setValueSelection(e,t,n,o)};var t=e.allowCustom,n=e.opened,o=e.textField,a=e.valueField,s=void 0!==e.value?e.value:e.defaultValue,r=-1,l="";t&&void 0!==s?(l=h.getItemText(s,o),r=h.getItemIndex(e,s)):t||(r=h.getItemIndex(e,s),l=h.getText(e,r)),i.state={filterText:i.props.filter||"",typedText:"",text:l,selectedIndex:r,skip:0,isFocused:n,opened:n};var p=new u.default(i);return i.combobox=new c.default(p),p.value=h.getItemValue(s,a),p.index=r,p.text=l,i._inputId=m.guid(),i}return i(e,d),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.combobox.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.combobox.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.combobox.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.combobox.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.componentWillUnmount=function(){this.combobox.componentWillUnmount()},e.prototype.onNavigate=function(e){this.combobox.onNavigate(e)},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.clearButton,a=e.label,s=e.className,r=e.style,l=e.loading,p=e.iconClassName,d=this.state.isFocused,u=this.combobox.valueToRender().text,c=!(!i||!u),h=this.combobox.dropdown,f=g.createElement("span",{className:m.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":i},s),ref:function(e){t._element=e},style:a?v({},r,{width:void 0}):r,dir:n},g.createElement("span",{ref:function(e){h.wrapper=e},className:m.classNames("k-dropdown-wrap",{"k-state-default":!o,"k-state-disabled":o,"k-state-focused":d&&!o})},this.combobox.renderSearchBar(c,u,this._inputId),g.createElement("span",{className:"k-select",onClick:h.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},g.createElement("span",{className:m.classNames("k-icon",p,{"k-i-arrow-s":!l&&!p,"k-i-loading":l&&!p})}))),this.combobox.renderListContainer());return a?g.createElement(m.FloatingLabel,{label:a,value:u,style:{width:r?r.width:void 0},id:this._inputId,children:f}):f},e.prototype.applyInputValue=function(e,t,n){this.combobox.applyInputValue(e,t,this.props.allowCustom,!1,n)},e.propTypes=v({},c.default.propTypes,{allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string}),e.defaultProps=v({},c.default.defaultProps,{allowCustom:!1,clearButton:!0}),e}(g.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);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 l=n(0),p=n(2),d=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.index,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,s=e.renderer,r=l.createElement("li",{id:t,role:"option","aria-selected":n,className:p.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},d.getter(i,a));return void 0!==s?s.call(void 0,r,this.props):r},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)});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 v=n(0),l=n(11),a=n(3),m=n(2),y=n(22),d=n(8),u=n(20),c=n(19),x=n(7),h=n(4),f=n(10),b=n(1),w=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(r){function e(e){var g=r.call(this,e)||this;g.vs=new f.default,g._lastMousedown=0,g.searchState={word:"",last:""},g.handleItemSelect=function(e,t){g.base.handleItemSelect(e,t)},g.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),g.state.selectedIndex!==n&&(o.data.selectedIndex=n),g.base.value=e,g.base.text=t,g.base.index=n},g.togglePopup=function(e){g.base.togglePopup(e),g.state.opened||g.base.calculatePopupWidth(),g.props.filterable&&g.state.filterInputFocused&&(e.data.filterInputFocused=!1)},g.renderDropDownWrapper=function(){var e=g.props,t=e.defaultItem,n=e.valueField,o=e.disabled,i=e.tabIndex,a=e.loading,s=e.iconClassName,r=e.valueRender,l=g.state,p=l.opened,d=l.isFocused,u=b.getItemIndex(g.props,g.value),c=b.getText(g.props,u);!c&&b.isPresent(g.value)&&-1===u&&b.getItemValue(t,n)!==g.value&&(c=g.base.text);var h=v.createElement("span",{className:"k-input"},c),f=void 0!==r?r.call(void 0,h,g.value):h;return v.createElement(y.default,{disabled:o,focused:d,tabIndex:i,ariaExpanded:p||!1,ariaOwns:g.base.listBoxId,ariaActiveDescendant:g.base.optionPrefix+"-"+(g.value||""),onFocus:g.handleFocus,onBlur:g.handleBlur,onClick:g.base.handleWrapperClick,onKeyDown:g.base.handleKeyDown,onKeyPress:g.handleKeyPress,ref:function(e){g.base.wrapper=e}},f,v.createElement("span",{className:"k-select"},v.createElement("span",{className:m.classNames("k-icon",s,{"k-i-arrow-s":!a&&!s,"k-i-loading":a&&!s})})))},g.renderListContainer=function(){var e=g.props,t=e.popupSettings,n=e.header,o=e.footer,i=g.state.opened,a=void 0!==g.props.virtual,s={onMouseDown:function(e){g._lastMousedown=(new Date).getTime(),w(e)},dir:void 0!==g.props.dir?g.props.dir:g.base.dirCalculated,onBlur:g.handleBlur,width:g.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:(t||{}).animate,anchor:g.element||void 0,show:i,open:g.onPopupOpened,close:g.onPopupClosed}};return v.createElement(d.default,p({},s),g.renderListFilter(),a?g.renderDefaultItem():void 0,a&&n,g.base.renderScrollWrapper(a?[g.renderList(),g.base.renderScrollElement()]:[g.renderDefaultItem(),n,g.renderList(),o,g.base.renderScrollElement()]),a&&o)},g.renderList=function(){var e=g.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.popupSettings,s=e.listNoDataRender,r=e.itemRender,l=g.base.vs,p=g.state,d=p.opened,u=p.skip,c="translateY("+g.vs.translate+"px)",h=g.value,f=!(b.getItemIndex(g.props,h)<0&&!i);return v.createElement(x.default,{id:g.base.listBoxId,show:d,data:(t||[]).slice(),focusedIndex:f||0!==u?void 0:0,value:h,textField:n,valueField:o,optionPrefix:g.base.optionPrefix,listRef:function(e){l.enabled&&(l.list=e),g.base.list=e},wrapperStyle:l.enabled?{float:"left",width:"100%"}:{maxHeight:(a||{}).height},wrapperCssClass:l.enabled?void 0:"k-list-scroller",listStyle:l.enabled?{transform:c}:void 0,key:1,skip:u,onClick:g.base.handleItemClick,itemRender:r,noDataRender:s})},g.renderListFilter=function(){var e=g.props.filterable,t=g.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&v.createElement(u.default,{value:o,focused:n&&i,willFocus:g.filteringInputWillFocus,didFocus:g.filteringInputDidFocus,onChange:g.handleListFilterChange,onKeyDown:g.base.handleKeyDown})},g.renderDefaultItem=function(){var e=g.props,t=e.textField,n=e.defaultItem;return n&&v.createElement(c.default,{defaultItem:n,textField:t,selected:-1===g.index,key:0,onClick:g.handleDefaultItemClick})},g.search=function(e){clearTimeout(g._typingTimeout),g.props.filterable||(g._typingTimeout=setTimeout(function(){return g.searchState.word=""},g.props.delay),g.selectNext(e))},g.selectNext=function(e){var t,n=(g.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),o=g.searchState.word,i=g.searchState.last,a=b.sameCharsOnly(o,i),s=n.length,r=g.state.selectedIndex||0;g.props.defaultItem&&(t={item:g.props.defaultItem,itemIndex:-1},s+=1,r+=1),r+=a?1:0,n=b.shuffleData(n,r,t);for(var l,p,d,u=0,c=g.props,h=c.textField,f=c.ignoreCase;u<s;u++)if(l=b.getter(n[u].item,h),p=a&&b.matchText(l,i,f),d=b.matchText(l,o,f),p||d){u=n[u].itemIndex;break}if(u!==s){var v=g.base.initState();v.syntheticEvent=e,g.handleItemSelect(u,v),g.base.applyState(v)}},g.handleFocus=function(e){g.base.handleFocus(e)},g.handleBlur=function(e){if(g.state.isFocused&&!g._filteringWillFocus){if((new Date).getTime()-g._lastMousedown<500)return g._lastMousedown=0,e.target.focus();var t=g.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,g.state.opened&&t.events.push({type:"onClose"}),g.base.applyState(t)}},g.handleDefaultItemClick=function(e,t){var n=g.base.initState(),o=g.props,i=o.defaultItem,a=o.valueField,s=o.textField;g.togglePopup(n);var r=b.getItemValue(i,a),l=b.getItemText(i,s);g.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,g.base.applyState(n)},g.handleKeyPress=function(e){if(!g.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);g.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),g.searchState={word:g.searchState.word+t,last:g.searchState.last+t},g.search(e)}},g.handleListFilterChange=function(e){var t=g.base.initState();g.base.filterChanged(e.target.value,t),t.syntheticEvent=e,g.base.applyState(t)},g.filteringInputWillFocus=function(){g._filteringWillFocus=!0},g.filteringInputDidFocus=function(){g._filteringWillFocus=!1},g.onPopupOpened=function(){g.base.vs.hidden=!1,g.props.filterable&&g.setState({filterInputFocused:!0})},g.onPopupClosed=function(){if(g.base.vs.hidden=!0,g.state.isFocused){var e=l.findDOMNode(g.base.wrapper);setTimeout(function(){g.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1;!b.isPresent(t)&&b.isPresent(e.defaultItem)?t=b.getItemValue(e.defaultItem,e.valueField):n=b.getItemIndex(e,t);var o=g.props,i=o.filter,a=o.filterable,s=o.opened;return g.state={filterText:i||"",selectedIndex:n,skip:0,isFocused:s,filterInputFocused:a&&s,opened:s},g.base=new h.default(g),g.base.index=n,g.base.value=t,g}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=b.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=b.getText(this.props,b.getItemIndex(this.props,this.value)),l=v.createElement("span",{ref:function(e){t._element=e},className:m.classNames("k-widget k-dropdown k-header",o),style:i?p({},n,{width:void 0}):n,dir:a,onMouseDown:s?w:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?v.createElement(m.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,valueRender:a.func},h.default.propTypes),e.defaultProps=p({delay:500,ignoreCase:!0},h.default.defaultProps),e}(v.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(24);t.DropDownList=o.DropDownList;var i=n(16);t.ComboBox=i.ComboBox;var a=n(13);t.AutoComplete=a.default,function(e){for(var t in e)s(t,e[t])}(t)}])}}}); |
{ | ||
"name": "@progress/kendo-react-dropdowns", | ||
"version": "0.6.0-dev.201805141755", | ||
"version": "0.6.0", | ||
"description": "Kendo UI for React DropDowns package", | ||
@@ -30,4 +30,4 @@ "repository": { | ||
"dependencies": { | ||
"@progress/kendo-react-common": "0.6.0-dev.201805141755", | ||
"@progress/kendo-react-popup": "0.6.0-dev.201805141755", | ||
"@progress/kendo-react-common": "0.6.0", | ||
"@progress/kendo-react-popup": "0.6.0", | ||
"prop-types": "^15.6.0" | ||
@@ -37,3 +37,3 @@ }, | ||
"@progress/kendo-data-query": "^1.0.0", | ||
"@progress/kendo-react-intl": "0.6.0-dev.201805141755" | ||
"@progress/kendo-react-intl": "0.6.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "@progress": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
690011
+ Added@progress/kendo-react-animation@0.6.0(transitive)
+ Added@progress/kendo-react-common@0.6.0(transitive)
+ Added@progress/kendo-react-popup@0.6.0(transitive)
- Removed@progress/kendo-react-animation@0.6.0-dev.201805141755(transitive)
- Removed@progress/kendo-react-common@0.6.0-dev.201805141755(transitive)
- Removed@progress/kendo-react-popup@0.6.0-dev.201805141755(transitive)