UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines 20.1 kB
/* @license */ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`kendo.list.min.js`),require(`kendo.mobile.scroller.min.js`),require(`kendo.virtuallist.min.js`),require(`kendo.html.button.min.js`),require(`kendo.icons.min.js`)):typeof define==`function`&&define.amd?define([`exports`,`kendo.list.min`,`kendo.mobile.scroller.min`,`kendo.virtuallist.min`,`kendo.html.button.min`,`kendo.icons.min`],t):(e=typeof globalThis<`u`?globalThis:e||self,t((e.kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.Dropdownlist={}),e.kendo._globals.List,e.kendo._globals.MobileScroller,e.kendo._globals.Virtuallist,e.kendo._globals.HtmlButton,e.kendo._globals.Icons))})(this,function(e,t,n,r,i,a){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let o={id:`dropdownlist`,name:`DropDownList`,category:`web`,description:`The DropDownList widget displays a list of values and allows the selection of a single value from the list.`,depends:[`list`,`html.button`,`icons`],features:[{id:`mobile-scroller`,name:`Mobile scroller`,description:`Support for kinetic scrolling in mobile device`,depends:[`mobile.scroller`]},{id:`virtualization`,name:`VirtualList`,description:`Support for virtualization`,depends:[`virtuallist`]}]};(function(e,t){var n=window.kendo,r=n.htmlEncode,i=n.ui,a=n.html,o=i.List,s=i.Select,c=n.support,l=n._activeElement,u=n.data.ObservableObject,d=n.keys,f=`.kendoDropDownList`,p=f+`FocusEvent`,m=`disabled`,h=`readonly`,g=`change`,_=`k-focus`,v=`k-disabled`,y=`aria-disabled`,b=`aria-readonly`,x=`click`+f+` touchend`+f,S=`mouseenter`+f+` mouseleave`+f,C=`tabindex`,w=`filter`,T=`accept`,E="The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel",D=`open`,O=`close`,k=s.extend({init:function(r,i){var a=this,o=i&&i.index,c,l,u;a.ns=f,i=Array.isArray(i)?{dataSource:i}:i,s.fn.init.call(a,r,i),i=a.options,r=a.element.on(`focus`+f,a._focusHandler.bind(a)),!n.isPresent(i.readonly)&&r.attr(`readonly`)?i.readonly=!0:n.isPresent(i.readonly)||(i.readonly=!1),a._focusInputHandler=a._focusInput.bind(a),a.optionLabel=e(),a._optionLabel(),a._inputTemplate(),a._reset(),a._prev=``,a._word=``,a._wrapper(),a._tabindex(),a.wrapper.data(C,a.wrapper.attr(C)),a._span(),a._popup(),a._mobile(),a._dataSource(),a._ignoreCase(),i.label&&this._label(),a._aria(),a._enable(),a._oldIndex=a.selectedIndex=-1,o!==t&&(i.index=o),a._initialIndex=i.index,a.requireValueMapper(a.options),a._initList(),a._aria(),a.options.virtual&&a.listView.one(`listBound`,function(){a._aria()}),a.listView.one(`dataBound`,a._attachAriaActiveDescendant.bind(a)),a.listView.bind(`dataBound`,()=>{a._refreshFloatingLabel(),a._aria()}),a._cascade(),a.one(`set`,function(e){!e.sender.listView.bound()&&a.hasOptionLabel()&&a._textAccessor(a._optionLabelText())}),i.autoBind?a.dataSource.fetch():a.selectedIndex===-1&&(l=i.text||``,l||(c=i.optionLabel,c&&i.index===0?l=c:a._isSelect&&(l=r.children(`:selected`).text())),a._textAccessor(l)),u=e(a.element).parents(`fieldset`).is(`:disabled`),u&&a.enable(!1),a.listView.bind(`click`,function(e){e.preventDefault()}),n.notify(a),a._applyCssClasses()},options:{name:`DropDownList`,enabled:!0,autoBind:!0,_allowFilterPaste:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:``,dataValueField:``,optionLabel:``,cascadeFrom:``,cascadeFromField:``,cascadeFromParentField:``,ignoreCase:!0,animation:{},filter:`none`,minLength:1,enforceMinLength:!1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:e=>r(e),fixedGroupTemplate:e=>r(e),autoWidth:!1,popup:null,filterTitle:null,readonly:null,size:t,fillMode:t,rounded:t,label:null,popupFilter:!0,adaptiveTitle:null,adaptiveSubtitle:null},events:[`open`,`close`,g,`select`,`filtering`,`dataBinding`,`dataBound`,`cascade`,`set`,`kendoKeydown`],setOptions:function(e){s.fn.setOptions.call(this,e),this.listView.setOptions(this._listOptions(e)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._removeFilterHeader(),this._addFilterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var e=this;s.fn.destroy.call(e),e.wrapper.off(f),e.wrapper.off(p),e.element.off(f),e._arrow.off(),e._arrow=null,e._arrowIcon=null,e.optionLabel.off(),e.filterInput&&e.filterInput.off(p)},open:function(){var e=this,t=e.dataSource.filter()?e.dataSource.filter().filters.length>0:!1,n=this.listView;e.popup.visible()||(!e.listView.bound()||e._state===T?(e._open=!0,e._state=`rebind`,e.filterInput&&(e.filterInput.val(``),e._prev=``),e.filterInput&&e.options.minLength!==1&&!t?(e.refresh(),e.popup.one(`activate`,e._focusInputHandler),e.wrapper.attr(`aria-activedescendant`,n._optionID),e.popup.open(),e._resizeFilterInput()):e._filterSource()):e._allowOpening()&&(e._focusFilter=!0,e.popup.one(`activate`,e._focusInputHandler),e.popup._hovered=!0,e.wrapper.attr(`aria-activedescendant`,n._optionID),e.popup.open(),e._resizeFilterInput(),e._focusItem()))},close:function(){this._attachAriaActiveDescendant(),this.popup.close()},_attachAriaActiveDescendant:function(){var e=this.wrapper,t=e.find(`.k-input-inner`).attr(`id`);e.attr(`aria-describedby`,t)},_focusInput:function(){this._hasActionSheet()||this._focusElement(this.filterInput)},_resizeFilterInput:function(){var e=this.filterInput,t=this._prevent;if(!(!e||this._hasActionSheet())){var r=this.filterInput[0]===l(),i=n.caret(this.filterInput[0])[0];this._prevent=!0,e.addClass(`k-hidden`),e.closest(`.k-list-filter`).css(`width`,this.popup.element.width()),e.removeClass(`k-hidden`),r&&(e.trigger(`focus`),n.caret(e[0],i)),this._prevent=t}},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||s.fn._allowOpening.call(this)},toggle:function(e){this._toggle(e,!0)},current:function(e){var n;if(e===t)return n=this.listView.focus(),!n&&this.selectedIndex===0&&this.hasOptionLabel()?this.optionLabel:n;this._focus(e)},dataItem:function(n){var r=this,i=null;if(n===null)return n;if(n===t)i=r.listView.selectedDataItems()[0];else{if(typeof n!=`number`){if(r.options.virtual)return r.dataSource.getByUid(e(n).data(`uid`));n=n.hasClass(`k-list-optionlabel`)?-1:e(r.items()).index(n)}else r.hasOptionLabel()&&--n;i=r.dataSource.flatView()[n]}return i||=r._optionLabelDataItem(),i},refresh:function(){this.listView.refresh()},text:function(e){var n=this,r,i=n.options.ignoreCase;if(e=e===null?``:e,e!==t){if(typeof e!=`string`){n._textAccessor(e);return}r=i?e.toLowerCase():e,n._select(function(e){return e=n._text(e),i&&(e=(e+``).toLowerCase()),e===r}).done(function(){n._textAccessor(n.dataItem()||e),n._refreshFloatingLabel()})}else return n._textAccessor()},_clearFilter:function(){e(this.filterInput).val(``),s.fn._clearFilter.call(this)},value:function(e){var n=this,r=n.listView,i=n.dataSource,a=function(){n.value(e)};if(e===t)return e=n._accessor()||n.listView.value()[0],e===t||e===null?``:e;if(n.requireValueMapper(n.options,e),(e||!n.hasOptionLabel())&&(n._initialIndex=null),this.trigger(`set`,{value:e}),n._request&&n.options.cascadeFrom&&n.listView.bound()){n._valueSetter&&i.unbind(g,n._valueSetter),n._valueSetter=a.bind(n),i.one(g,n._valueSetter);return}n._isFilterEnabled()&&r.bound()&&r.isFiltered()?n._clearFilter():n._fetchData(),r.value(e).done(function(){n._old=n._valueBeforeCascade=n._accessor(),n._oldIndex=n.selectedIndex,n._refreshFloatingLabel()})},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var t=this,i=t.options,a=i.optionLabel,o=i.optionLabelTemplate;if(!a){t.optionLabel.off().remove(),t.optionLabel=e();return}o||=e=>r(typeof a==`string`?e:n.getter(i.dataTextField)(e)),typeof o!=`function`&&(o=n.template(o)),t.optionLabelTemplate=o,t.hasOptionLabel()||(t.optionLabel=e(`<div role="option" class="k-list-optionlabel"></div>`).prependTo(t.list)),t.optionLabel.html(o(a)).off().on(x,t._click.bind(t)).on(S,t._toggleHover)},_optionLabelText:function(){var e=this.options.optionLabel;return typeof e==`string`?e:this._text(e)},_optionLabelDataItem:function(){var n=this,r=n.options.optionLabel;return n.hasOptionLabel()?e.isPlainObject(r)?new u(r):n._assignInstance(n._optionLabelText(),``):t},_buildOptions:function(e){var n=this;if(n._isSelect){var r=n.listView.value()[0],i=n._optionLabelDataItem(),a=i&&n._value(i);(r===t||r===null)&&(r=``),i&&=((a===t||a===null)&&(a=``),`<option value="`+a+`">`+n._text(i)+`</option>`),n._options(e,i,r),r!==o.unifyType(n._accessor(),typeof r)&&(n._customOption=null,n._custom(r))}},_listBound:function(){var e=this,t=e._initialIndex,n=e._state===w,r=e.dataSource.flatView(),i;e._presetValue=!1,e._renderFooter(),e._renderNoData(),e._toggleNoData(!r.length),e._resizePopup(!0),e.popup.position(),e._buildOptions(r),n||(e._open&&e.toggle(e._allowOpening()),e._open=!1,e._fetch||(r.length?(!e.listView.value().length&&t>-1&&t!==null&&e.select(t),e._initialIndex=null,i=e.listView.selectedDataItems()[0],i&&e.text()!==e._text(i)&&e._selectValue(i)):e._textAccessor()!==e._optionLabelText()&&(e.listView.value(``),e._selectValue(null),e._oldIndex=e.selectedIndex))),e._hideBusy(),e.trigger(`dataBound`)},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&this._oldIndex===-1)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this.options._allowFilterPaste&&this._search()},_attachFocusHandlers:function(){var e=this;e.wrapper.on(`focusin`+p,e._focusinHandler.bind(e)).on(`focusout`+p,e._focusoutHandler.bind(e)),e.filterInput&&e.filterInput.on(`focusin`+p,e._focusinHandler.bind(e)).on(`focusout`+p,e._focusoutHandler.bind(e))},_focusHandler:function(){this.wrapper.trigger(`focus`)},_focusinHandler:function(){this.wrapper.addClass(_),this._prevent=!1},_focusoutHandler:function(e){var t=this,n=window.self!==window.top;t.wrapper.find(e.relatedTarget).length>0||t._prevent||(clearTimeout(t._typingTimeout),c.mobileOS.ios&&n?t._change():t._blur(),t.wrapper.removeClass(_),t._prevent=!0,t._open=!1,t.element.trigger(`blur`))},_wrapperMousedown:function(e){let t=this,n=t.filterInput&&!t._touchEnabled()?e.currentTarget!==t.filterInput[0]:!0;t.popup&&t._hasActionSheet()&&(n=!0,t.popup.unbind(`close`),t.popup.bind(`close`,function(){t._change()})),t._prevent=n},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind(`activate`,this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_editable:function(e){var t=this,r=t.element,i=e.disable,a=e.readonly,o=t.wrapper.add(t.filterInput).off(f),s=t.wrapper.off(S);!a&&!i?(r.prop(m,!1).prop(h,!1),s.removeClass(v).on(S,t._toggleHover),o.attr(C,o.data(C)).attr(y,!1).attr(b,!1).on(`keydown`+f,t,t._keydown.bind(t)).on(n.support.mousedown+f,t._wrapperMousedown.bind(t)).on(`paste`+f,t._filterPaste.bind(t)),t.wrapper.on(`click`+f,t._wrapperClick.bind(t)),t.filterInput?o.on(`input`+f,t._search.bind(t)):o.on(`keypress`+f,t._keypress.bind(t))):i?(o.removeAttr(C),s.addClass(v)):s.removeClass(v),r.attr(m,i).attr(h,a),o.attr(y,i).attr(b,a)},_keydown:function(e){var t=this,n=e.keyCode,r=e.altKey,i,a,o=t.popup.visible();if(t.filterInput&&(i=t.filterInput[0]===l()),n===d.LEFT?(n=d.UP,a=!0):n===d.RIGHT&&(n=d.DOWN,a=!0),!(a&&i)){if(e.keyCode=n,(r&&n===d.UP||n===d.ESC)&&t._focusElement(t.wrapper),t._state===w&&n===d.ESC&&(t._clearFilter(),t._open=!1,t._state=T),n===d.ENTER&&t._typingTimeout&&t.filterInput&&o){e.preventDefault();return}if(n===d.SPACEBAR&&!i&&(t.toggle(!o),e.preventDefault()),a=t._move(e),!a){if(!o||!t.filterInput){var s=t._focus();if(n===d.HOME?(a=!0,t._firstItem()):n===d.END&&(a=!0,t._lastItem()),a){if(t.trigger(`select`,{dataItem:t._getElementDataItem(t._focus()),item:t._focus()})){t._focus(s);return}t._select(t._focus(),!0).done(function(){o||t._blur()}),e.preventDefault()}}!r&&!a&&t.filterInput&&t._search()}}},_matchText:function(e,n){var r=this.options.ignoreCase;return e===t||e===null?!1:(e+=``,r&&(e=e.toLowerCase()),e.indexOf(n)===0)},_shuffleData:function(e,t){var n=this._optionLabelDataItem();return n&&(e=[n].concat(e)),e.slice(t).concat(e.slice(0,t))},_selectNext:function(){var e=this,t=e.dataSource.flatView(),n=t.length+(e.hasOptionLabel()?1:0),r=M(e._word,e._last),i=e.selectedIndex,a,o;i===-1?i=0:(i+=r?1:0,i=j(i,n)),t=t.toJSON?t.toJSON():t.slice(),t=e._shuffleData(t,i);for(var s=0;s<n&&(o=e._text(t[s]),!(r&&e._matchText(o,e._last)))&&!e._matchText(o,e._word);s++);s!==n&&(a=e._focus(),e._select(j(i+s,n)).done(function(){var t=function(){e.popup.visible()||e._change()};e.trigger(`select`,{dataItem:e._getElementDataItem(e._focus()),item:e._focus()})?e._select(a).done(t):t()}))},_keypress:function(e){var t=this;if(!(e.which===0||e.keyCode===n.keys.ENTER)){var r=String.fromCharCode(e.charCode||e.keyCode);t.options.ignoreCase&&(r=r.toLowerCase()),r===` `&&e.preventDefault(),t._word+=r,t._last=r,t._search()}},_popupOpen:function(e){var t=this.popup;e.isDefaultPrevented()||this._hasActionSheet()||(t.wrapper=n.wrap(t.element),t.element.closest(`.km-root`)[0]&&(t.wrapper.addClass(`km-popup km-widget`),this.wrapper.addClass(`km-widget`)))},_popup:function(){s.fn._popup.call(this),this.popup.element.addClass(`k-dropdownlist-popup`),this.popup.one(`open`,this._popupOpen.bind(this))},_postCreatePopup:function(){s.fn._postCreatePopup.call(this),this._attachFocusHandlers()},_getElementDataItem:function(e){return!e||!e[0]?null:e[0]===this.optionLabel[0]?this._optionLabelDataItem():this.listView.dataItemByIndex(this.listView.getElementIndex(e))},_click:function(t){var n=this,r=t.item||e(t.currentTarget);if(t.preventDefault(),n.trigger(`select`,{dataItem:n._getElementDataItem(r),item:r})){n.close();return}n._userTriggered=!0,n._select(r).done(function(){n._blur(),n._focusElement(n.wrapper)})},_touchEnabled:function(){return c.mobileOS&&(c.touch||c.MSPointers||c.pointers)},_focusElement:function(e){var t=l(),n=this.wrapper,r=this.filterInput,i=e===r?n:r,a=this._touchEnabled();r&&r[0]===e[0]&&a||r&&(i[0]===t||this._focusFilter)&&(this._focusFilter=!1,this._prevent=!0,this._focused=e.trigger(`focus`))},_searchByWord:function(e){if(e){var t=this;t.options.ignoreCase&&(e=e.toLowerCase()),t._select(function(n){return t._matchText(t._text(n),e)})}},_inputValue:function(){return this.text()},_search:function(){var e=this,t=e.dataSource;if(clearTimeout(e._typingTimeout),e._isFilterEnabled())e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t),e._resizeFilterInput()),e._typingTimeout=null},e.options.delay);else{if(e._typingTimeout=setTimeout(function(){e._word=``},e.options.delay),!e.listView.bound()){t.fetch().done(function(){e._selectNext()});return}e._selectNext()}},_get:function(t){var n,r,i,a=typeof t==`function`,o=a?e():e(t);if(this.hasOptionLabel()&&(typeof t==`number`?t>-1&&--t:o.hasClass(`k-list-optionlabel`)&&(t=-1)),a){for(n=this.dataSource.flatView(),i=0;i<n.length;i++)if(t(n[i])){t=i,r=!0;break}r||(t=-1)}return t},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){var e;return this.optionLabel.hasClass(`k-focus`)?(this._resetOptionLabel(),this.listView.focusFirst(),e=1):e=this.listView.focusNext(),e},_prevItem:function(){var e;if(!this.optionLabel.hasClass(`k-focus`))return e=this.listView.focusPrev(),!this.listView.focus()&&!this.options.virtual&&this._focus(this.optionLabel),e},_focusItem:function(){var e=this.options,n=this.listView,r=n.focus(),i=n.select();i=i[i.length-1],i===t&&e.highlightFirst&&!r&&(i=0),i===t?e.optionLabel&&(!e.virtual||e.virtual.mapValueTo!==`dataItem`)?(this._focus(this.optionLabel),this._select(this.optionLabel),this.listView.content.scrollTop(0)):n.scrollToIndex(0):n.focus(i)},_resetOptionLabel:function(e){this.optionLabel.removeClass(`k-focus`+(e||``)).removeAttr(`id`)},_focus:function(e){var n=this.listView,r=this.optionLabel;if(e===t)return e=n.focus(),!e&&r.hasClass(`k-focus`)&&(e=r),e;this._resetOptionLabel(),e=this._get(e),n.focus(e),e===-1&&(r.addClass(`k-focus`).attr(`id`,n._optionID),this.filterInput&&this.filterInput.removeAttr(`aria-activedescendant`).attr(`aria-activedescendant`,n._optionID))},_select:function(e,t){var n=this;return e=n._get(e),n.listView.select(e).done(function(){!t&&n._state===w&&(n._state=T),e===-1&&n._selectValue(null)})},_selectValue:function(e){var n=this,r=n.options.optionLabel,i=n.listView.select(),a=``,o=``;i=i[i.length-1],i===t&&(i=-1),this._resetOptionLabel(` k-selected`),e||e===0?(o=e,a=n._dataValue(e),r&&(i+=1)):r&&(n._focus(n.optionLabel.addClass(`k-selected`)),o=n._optionLabelText(),a=typeof r==`string`?``:n._value(r),i=0),n.selectedIndex=i,a===null&&(a=``),n._textAccessor(o),n._accessor(a,i),n._triggerCascade()},_mobile:function(){var e=this.popup,t=c.mobileOS;e.element.parents(`.km-root`).eq(0).length&&t&&(e.options.animation.open.effects=t.android||t.meego?`fadeIn`:t.ios||t.wp?`slideIn:up`:e.options.animation.open.effects)},_span:function(){var e=this,t=e.wrapper,r=`span.k-input-value-text`,i=n.guid(),o=e.options,s=t.find(r),c;s[0]||(c=a.renderButton(`<button role="button" tabindex="-1" class="k-input-button" aria-label="select"></button>`,{icon:`caret-alt-down`,size:o.size,fillMode:o.fillMode,shape:`none`}),t.append(`<span id="`+i+`" unselectable="on" class="k-input-inner"><span class="k-input-value-text"></span></span>`).append(c).append(e.element),s=t.find(r)),e.span=s,e._arrow=t.find(`.k-input-button`),e._arrowIcon=e._arrow.find(`.k-icon,.k-svg-icon`)},_wrapper:function(){var e=this,t=e.element,n=t[0],r=t.parent();r.is(`span.k-picker`)||(r=t.wrap(`<span />`).parent(),r[0].style.cssText=n.style.cssText,r[0].title=n.title),e._focused=e.wrapper=r.addClass(`k-picker k-dropdownlist`).addClass(n.className).removeClass(`input-validation-error`).css(`display`,``).attr({accesskey:t.attr(`accesskey`),unselectable:`on`,role:`combobox`,"aria-expanded":!1}),t.hide().removeAttr(`accesskey`)},_clearSelection:function(e){this.select(e.value()?0:-1)},_openHandler:function(e){this._adjustListWidth(),this.trigger(D)?e.preventDefault():(this.wrapper.attr(`aria-expanded`,!0),this.list.find(`.k-list-ul`).attr(`aria-hidden`,!1))},_closeHandler:function(e){this.trigger(O)?e.preventDefault():(this.wrapper.attr(`aria-expanded`,!1),this.list.find(`.k-list-ul`).attr(`aria-hidden`,!0))},_inputTemplate:function(){var e=this,t=e.options.valueTemplate;if(t=t?n.template(t):t=>r(e._text(t)),e.valueTemplate=t,e.hasOptionLabel()&&!e.options.optionLabelTemplate)try{e.valueTemplate(e._optionLabelDataItem())}catch{throw Error(E)}},_textAccessor:function(n){var r=null,i=this.valueTemplate,a=this._optionLabelText(),o=this.span;if(n===t)return o.text();e.isPlainObject(n)||n instanceof u?r=n:a&&a===n&&(r=this.options.optionLabel),r||=this._assignInstance(n,this._accessor()),this.hasOptionLabel()&&(r===a||this._text(r)===a)&&(i=this.optionLabelTemplate,typeof this.options.optionLabel==`string`&&!this.options.optionLabelTemplate&&(r=a));try{o.html(i(r))}catch{o.html(``)}},_preselect:function(e,t){!e&&!t&&(t=this._optionLabelText()),this._accessor(e),this._textAccessor(t),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(e,t){var n=this.options.dataTextField,r={};return n?(A(r,n.split(`.`),e),A(r,this.options.dataValueField.split(`.`),t),r=new u(r)):r=e,r}});function A(e,t,n){for(var r=0,i=t.length-1,a;r<i;++r)a=t[r],a in e||(e[a]={}),e=e[a];e[t[i]]=n}function j(e,t){return e>=t&&(e-=t),e}function M(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}i.plugin(k),n.cssProperties.registerPrefix(`DropDownList`,`k-picker-`),n.cssProperties.registerValues(`DropDownList`,[{prop:`rounded`,values:n.cssProperties.roundedValues.concat([[`full`,`full`]])}])})(window.kendo.jQuery);var s=kendo;e.__meta__=o,e.default=s}); //# sourceMappingURL=kendo.dropdownlist.min.js.map