@syncfusion/ej2-react-multicolumn-combobox 28.2.3 → 28.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-react-multicolumn-combobox.min.js
3
- * version : 28.2.3
3
+ * version : 28.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionGrids")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionBase","SyncfusionInputs","SyncfusionData","SyncfusionPopups","SyncfusionGrids"],e):"object"==typeof exports?exports.SyncfusionReactMulticolumnCombobox=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionGrids")):t.SyncfusionReactMulticolumnCombobox=e(t.SyncfusionReactBase,t.React,t.SyncfusionBase,t.SyncfusionInputs,t.SyncfusionData,t.SyncfusionPopups,t.SyncfusionGrids)}(self,((t,e,i,n,o,r,s)=>(()=>{"use strict";var a={24:t=>{t.exports=e},766:t=>{t.exports=i},74:t=>{t.exports=o},707:t=>{t.exports=s},323:t=>{t.exports=n},197:t=>{t.exports=r},705:e=>{e.exports=t}},l={};function p(t){var e=l[t];if(void 0!==e)return e.exports;var i=l[t]={exports:{}};return a[t](i,i.exports,p),i.exports}p.d=(t,e)=>{for(var i in e)p.o(e,i)&&!p.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return(()=>{p.r(u),p.d(u,{Column:()=>D,ColumnDirective:()=>a,ColumnsDirective:()=>l,FieldSettings:()=>R,FilterType:()=>e,GridSettings:()=>T,Inject:()=>r.Inject,MultiColumnComboBox:()=>I,MultiColumnComboBoxComponent:()=>A,MultiColumnGrid:()=>P,SortOrder:()=>i,SortType:()=>n,WrapMode:()=>o});var t,e,i,n,o,r=p(705),s=(t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)},function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.moduleName="column",e}(r.ComplexBase),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.propertyName="columns",e.moduleName="columns",e}(r.ComplexBase),d=p(24),h=p(766),c=p(323),f=p(74),g=p(197),y=p(707),v=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s},b=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){t.done?o(t.value):new i((function(e){e(t.value)})).then(s,a)}l((n=n.apply(t,e||[])).next())}))},O=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},w="e-icon-anim",S="e-nodata",C="e-disabled",x="e-input-focus",E="e-multicolumn-list",j="e-multicolumn-grid",P=function(){function t(){}return t.prototype.InjectModules=function(){y.Grid.Inject(y.VirtualScroll,y.Group,y.Edit,y.Sort,y.Resize)},t}();!function(t){t.StartsWith="StartsWith",t.EndsWith="EndsWith",t.Contains="Contains"}(e||(e={})),function(t){t.None="None",t.Ascending="Ascending",t.Descending="Descending"}(i||(i={})),function(t){t.OneColumn="OneColumn",t.MultipleColumns="MultipleColumns"}(n||(n={})),function(t){t.Both="Both",t.Content="Content",t.Header="Header"}(o||(o={}));var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)()],e.prototype,"text",void 0),m([(0,h.Property)()],e.prototype,"value",void 0),m([(0,h.Property)()],e.prototype,"groupBy",void 0),e}(h.ChildProperty),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)("")],e.prototype,"field",void 0),m([(0,h.Property)("")],e.prototype,"header",void 0),m([(0,h.Property)("")],e.prototype,"width",void 0),m([(0,h.Property)("")],e.prototype,"textAlign",void 0),m([(0,h.Property)(null)],e.prototype,"format",void 0),m([(0,h.Property)(!1)],e.prototype,"displayAsCheckBox",void 0),m([(0,h.Property)(null)],e.prototype,"template",void 0),m([(0,h.Property)(null)],e.prototype,"headerTemplate",void 0),m([(0,h.Property)(null)],e.prototype,"customAttributes",void 0),e}(h.ChildProperty),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)(!1)],e.prototype,"enableAltRow",void 0),m([(0,h.Property)(null)],e.prototype,"rowHeight",void 0),m([(0,h.Property)("Default")],e.prototype,"gridLines",void 0),m([(0,h.Property)(!1)],e.prototype,"allowTextWrap",void 0),m([(0,h.Property)(o.Both)],e.prototype,"textWrapMode",void 0),m([(0,h.Property)(!1)],e.prototype,"allowResizing",void 0),m([(0,h.Event)()],e.prototype,"resizing",void 0),m([(0,h.Event)()],e.prototype,"resizeStart",void 0),m([(0,h.Event)()],e.prototype,"resizeStop",void 0),e}(h.ChildProperty),I=function(t){function o(e,i){var n=t.call(this,e,i)||this;return n.gridInject=new P,n.gridInject.InjectModules(),n}return v(o,t),o.prototype.preRender=function(){this.element.id||(this.element.id=(0,h.getUniqueID)("e-"+this.getModuleName())),this.keyConfigs={escape:"escape",altUp:"alt+uparrow",altDown:"alt+downarrow",tab:"tab",shiftTab:"shift+tab",end:"end",enter:"enter",home:"home",moveDown:"downarrow",moveUp:"uparrow"},this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null,this.persistData()},o.prototype.getDirective=function(){return"EJS-MULTICOLUMNCOMBOBOX"},o.prototype.getModuleName=function(){return"multicolumncombobox"},o.prototype.getPersistData=function(){return this.addOnPersist(["value"])},o.prototype.persistData=function(){if(this.enablePersistence){this.element.id+="_wrapper";var t=window.localStorage.getItem(this.getModuleName()+this.element.id);(0,h.isNullOrUndefined)(t)||""===t||this.setProperties(JSON.parse(t),!0)}},o.prototype.render=function(){this.renderGrid(),this.renderInput(),this.popupDiv=this.createElement("div",{className:"e-popup-content"}),this.popupDiv.appendChild(this.gridEle),this.setHTMLAttributes(),this.renderPopup(),this.wireEvents()},o.prototype.renderGrid=function(){var t=this,e=this.getGridColumns(),n=this.sortOrder.toString().toLowerCase();this.gridObj=new y.Grid({dataSource:this.dataSource,columns:e,allowSorting:this.allowSorting,enableStickyHeader:!0,gridLines:this.gridSettings.gridLines,rowHeight:this.gridSettings.rowHeight,enableAltRow:this.gridSettings.enableAltRow,enableVirtualization:this.enableVirtualization,enableRtl:this.enableRtl,editSettings:{allowAdding:!1},query:this.query,allowTextWrap:this.gridSettings.allowTextWrap,textWrapSettings:{wrapMode:this.gridSettings.textWrapMode},height:this.popupHeight,allowResizing:this.gridSettings.allowResizing,allowMultiSorting:"multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting,rowTemplate:this.itemTemplate,dataBound:function(){t.onDataBound()},actionFailure:function(e){t.onActionFailure(e)},actionBegin:function(e){t.trigger("actionBegin",e)},actionComplete:this.handleActionComplete.bind(this),keyPressed:this.handleKeyPressed.bind(this),resizing:function(e){t.gridSettings.resizing&&t.gridSettings.resizing.call(t,e)},resizeStart:function(e){t.gridSettings.resizeStart&&t.gridSettings.resizeStart.call(t,e)},resizeStop:function(e){t.gridSettings.resizeStop&&t.gridSettings.resizeStop.call(t,e)}}),this.gridEle=this.createElement("div",{id:(0,h.getUniqueID)("grid"),className:j}),this.updateGroupByField(),e.length>0&&(this.gridObj.columns[0].isPrimaryKey=!0),"none"!==n&&(this.gridObj.sortSettings={columns:[{field:this.fields.text,direction:"ascending"===n?i.Ascending:i.Descending}]}),this.gridObj.appendTo(this.gridEle)},o.prototype.handleActionComplete=function(t){this.trigger("actionComplete",t),"sorting"===t.requestType&&this.updateRowSelection(t),this.popupObj.refreshPosition(),this.gridObj.element.querySelector(".e-content").scrollTop=0},o.prototype.handleKeyPressed=function(t){"Enter"===t.key&&(t.cancel=!0,this.isPopupOpen&&(this.selectedGridRow(this.gridObj.getRows()[this.gridObj.selectedRowIndex],t,!0),this.hidePopup(t),this.focusIn(t))),this.fields.groupBy&&(t.cancel=!0,this.gridKeyActionHandler(t,!0))},o.prototype.isRowMatching=function(t,e,i){var n=function(t){var e=[];return t&&"object"==typeof t?Array.isArray(t)?t.forEach((function(t){return e.push.apply(e,n(t))})):Object.keys(t).forEach((function(i){return e.push.apply(e,n(t[""+i]))})):null!=t&&e.push(String(t)),e},o=n(t);return-1!==o.indexOf(e)&&-1!==o.indexOf(i)},o.prototype.updateRowSelection=function(t){var e=this;t&&t.rows.forEach((function(t){e.selectDataRow(t.data,t.index)}))},o.prototype.selectDataRow=function(t,e){if(this.isRowMatching(t,this.value?this.value.toString():"",this.text?this.text.toString():"")){this.gridObj.selectRow(e);var i=this.isProtectedOnChange;return this.isProtectedOnChange=!0,this.index=e,void(this.isProtectedOnChange=i)}},o.prototype.findIndex=function(t,e){return t.findIndex((function(t){return Object.keys(e).every((function(i){return t[i]===e[i]}))}))},o.prototype.getGridColumns=function(){var t=this;return this.columns.map((function(e){var i=e.field,n=e.header,o=e.width,r=e.textAlign,s=e.format,a=e.displayAsCheckBox,l=e.template,p=e.headerTemplate,u=e.customAttributes;return{field:i,headerText:n,width:o,textAlign:""===r.toString()&&t.enableRtl?"Right":r,format:s,displayAsCheckBox:a,template:l,headerTemplate:p,customAttributes:u,type:a&&!s?"boolean":void 0}}))},o.prototype.updateGroupByField=function(){var t=this.fields.groupBy,e=""!==t&&!(0,h.isNullOrUndefined)(t);if(e){"multiplecolumns"!==this.sortType.toString().toLowerCase()&&this.gridEle.classList.add("e-multicolumn-group");var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.allowGrouping=!0,this.gridObj.groupSettings={showDropArea:!1,columns:[t]},this.groupTemplate&&e&&(this.gridObj.groupSettings.captionTemplate=this.groupTemplate),this.isVue&&(this.gridObj.isVue=this.isVue),this.isProtectedOnChange=i}},o.prototype.onDataBound=function(){var t=this.dataSource.length,e=this.popupDiv.querySelector("."+j),i=this.popupDiv.classList.contains(S);if(t<=0&&e)this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),(0,h.addClass)([this.popupDiv],[S]);else if(i&&t>=1){(0,h.removeClass)([this.popupDiv],[S]);var n=this.popupDiv.querySelector(".e-no-records");n&&this.popupDiv.removeChild(n)}if(this.isInitialRender){var o=this.popupDiv.querySelector(".e-gridcontent tr"),r=i?this.popupDiv.getBoundingClientRect().height:o?o.getBoundingClientRect().height:0;this.popupRowHeight=r,this.popupObj.hide(),this.popupEle.style.visibility="unset",this.isInitialRender=!1}var s=this.gridObj.element.querySelectorAll(".e-row");this.isDataFiltered&&s.length>0&&""!==this.inputEle.value&&s[0].classList.add("e-row-focus")},o.prototype.onActionFailure=function(t){this.trigger("actionFailure",t),this.l10nUpdate(!0),(0,h.addClass)([this.popupDiv],[S])},o.prototype.renderInput=function(){var t=["aria-expanded","aria-readOnly","aria-disabled","autocomplete","autocapitalize","spellcheck","tabindex"];"INPUT"===this.element.tagName?(this.inputEle=this.element,(0,h.isNullOrUndefined)(this.inputEle.getAttribute("role"))&&this.inputEle.setAttribute("role","combobox"),(0,h.isNullOrUndefined)(this.inputEle.getAttribute("type"))&&this.inputEle.setAttribute("type","text"),function(e,i){for(var n in i)i.hasOwnProperty(n)&&-1!==t.indexOf(n)&&(0,h.isNullOrUndefined)(e.getAttribute(n))&&e.setAttribute(n,i[n])}(this.inputEle,{"aria-expanded":"false","aria-readOnly":this.readonly.toString(),"aria-disabled":this.disabled.toString(),autocomplete:"off",autocapitalize:"off",spellcheck:"false",tabindex:"0"})):(this.inputEle=this.createElement("input",{attrs:{role:"textbox",type:"text"}}),this.element.parentElement.insertBefore(this.inputEle,this.element)),this.inputObj=c.Input.createInput({element:this.inputEle,buttons:["e-input-group-icon e-multicolumn-list-icon e-icons"],floatLabelType:this.floatLabelType,properties:{enabled:!this.disabled,readonly:this.readonly,placeholder:this.placeholder,enableRtl:this.enableRtl,showClearButton:this.showClearButton,cssClass:this.cssClass}},this.createElement),this.inputWrapper=this.inputObj.container,this.inputWrapper.classList.add(E),this.inputWrapper.setAttribute("spellcheck","false"),this.element.tagName===this.getDirective()&&this.element.appendChild(this.inputWrapper),this.setElementWidth(this.width),(0,h.isNullOrUndefined)(this.value)&&(0,h.isNullOrUndefined)(this.text)&&(0,h.isNullOrUndefined)(this.index)||this.initValue(null,null,!0)},o.prototype.setElementWidth=function(t){if(!(0,h.isNullOrUndefined)(t)){var e=this.inputWrapper;"number"==typeof t?e.style.width=(0,h.formatUnit)(t):"string"==typeof t&&(e.style.width=t.match(/px|%|em/)?t:(0,h.formatUnit)(t))}},o.prototype.setHTMLAttributes=function(){var t=this.htmlAttributes,e=this.inputEle;if(Object.keys(t).length)for(var i=0,n=Object.keys(t);i<n.length;i++){var o=n[i];switch(o){case"class":this.inputWrapper.classList.add(t[o]);break;case"disabled":this.setProperties({enabled:!1},!0),this.setEnable();break;case"readonly":this.setProperties({readonly:!0},!0),this.dataBind();break;case"style":this.inputWrapper.setAttribute("style",t[o]);break;default:["title","id","placeholder","role","autocomplete","autocapitalize","spellcheck","minlength","maxlength"].indexOf(o)>-1&&"placeholder"===o?c.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},o.prototype.setEnable=function(){c.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),(0,h.addClass)([this.inputWrapper],C),this.inputWrapper&&this.inputWrapper.classList.contains(x)&&(0,h.removeClass)([this.inputWrapper],[x]),this.setAriaDisabled("true")):((0,h.removeClass)([this.inputWrapper],C),this.setAriaDisabled("false"))},o.prototype.setAriaDisabled=function(t){this.inputEle.setAttribute("aria-disabled",t),this.inputWrapper.setAttribute("aria-disabled",t)},o.prototype.updateFieldValue=function(t,e){return(0,h.getValue)(t,e).toString()},o.prototype.initValue=function(t,e,i){var n,o,r,s,a=this,l=this.gridObj.getSelectedRecords()[0],p=this.gridObj.getSelectedRows()[0],u=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.value=this.value?this.value.toString():this.value,this.isProtectedOnChange=u;var d=function(t){var e=a.updateCurrentValues(n,t);o=e.currentValue,r=e.currentText,s=e.currentIndex};if(!t&&(!(0,h.isNullOrUndefined)(this.value)||!(0,h.isNullOrUndefined)(this.text))||t&&void 0!==e){var c=t?e?this.value:this.text:(0,h.isNullOrUndefined)(this.value)?this.text:this.value;!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager?this.dataSource.executeQuery(new f.Query).then((function(u){var f=u.result,g=f.filter((function(i){return a.updateFieldValue(t?e?a.fields.value:a.fields.text:(0,h.isNullOrUndefined)(a.value)?a.fields.text:a.fields.value,i)===c}));g.length>0&&(n=g[0],d(f),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index))})):!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array&&(n=this.dataSource.filter((function(i){return a.updateFieldValue(t?e?a.fields.value:a.fields.text:(0,h.isNullOrUndefined)(a.value)?a.fields.text:a.fields.value,i)===c}))[0],d(this.dataSource))}else(0,h.isNullOrUndefined)(this.index)||(!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager?this.dataSource.executeQuery(new f.Query).then((function(e){var u=e.result;n=u[a.index],d(u),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index)})):!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout((function(){var e=a.gridObj.getRows();if(e&&e.length>0)for(var u=a.gridObj.getRowInfo(e[a.index]).rowData,h=a.fields.value,c=0;c<e.length;c++)if(u&&u[parseInt(h.toString(),10)]===a.dataSource[parseInt(c.toString(),10)][parseInt(h.toString(),10)]){n=u,d(a.dataSource),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index);break}})):(n=this.dataSource[this.index],d(this.dataSource))));this.dataSource instanceof f.DataManager||this.updateChangeEvent(n,l,p,o,r,s,t,i)},o.prototype.updateChangeEvent=function(t,e,i,n,o,r,s,a){var l=t?this.updateFieldValue(this.fields.value,t):null,p={value:t?l:null,itemData:{text:o,value:n},item:this.getDataByValue(this.value),previousItemData:e,previousItemElement:i,itemElement:this.inputWrapper,event:null,isInteracted:!s};this.updateValues(n,o,r,p,a)},o.prototype.updateCurrentValues=function(t,e){if(!(0,h.isNullOrUndefined)(t)){var i=this.updateFieldValue(this.fields.text,t),n=this.updateFieldValue(this.fields.value,t);return c.Input.setValue(i,this.inputEle,this.floatLabelType,this.showClearButton),{currentValue:n,currentText:i,currentIndex:e.indexOf(t)}}return{currentValue:null,currentText:null,currentIndex:null}},o.prototype.renderPopup=function(){this.popupEle=this.createElement("div",{id:this.element.id+"_options",className:E+" e-popup "+(null!==this.cssClass?this.cssClass:"")}),(0,h.attributes)(this.popupEle,{"aria-label":this.element.id,role:"dialog"}),document.body.appendChild(this.popupEle),this.createPopup(this.popupEle),(0,h.prepend)([this.popupDiv],this.popupEle),this.footerTemplate&&this.setFooterTemplate();var t=this.getSize(!1);if(this.popupEle.style.maxHeight=t,this.footerTemplate){this.footer=this.footer?this.footer:this.popupEle.querySelector(".e-popup-footer");var e=Math.round(this.footer.getBoundingClientRect().height);t=(0,h.formatUnit)(parseInt(t,10)-e+"px")}this.popupDiv.style.maxHeight=t,this.updateGridHeight(),this.popupEle.style.visibility="hidden",this.isInitialRender=!0},o.prototype.updateGridHeight=function(t,e,i){var n;if(t){var o=this.gridObj.getContent().querySelector(".e-content"),r=o.offsetHeight-o.clientHeight,s=i*this.popupRowHeight;""===this.fields.groupBy||(0,h.isNullOrUndefined)(this.fields.groupBy)||(s+=this.popupRowHeight),n=e&&s<this.prevGridHeight?s+r+"px":this.prevGridHeight+"px"}else this.prevGridHeight=this.popupDiv.getBoundingClientRect().height-this.popupDiv.querySelector(".e-gridheader").getBoundingClientRect().height,n=this.prevGridHeight+"px";var a=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.height=n,this.isProtectedOnChange=a},o.prototype.createPopup=function(t){var e=this;this.popupObj=new g.Popup(t,{width:this.getSize(!0),targetType:"relative",collision:{X:"flip",Y:"flip"},relateTo:this.inputWrapper,enableRtl:this.enableRtl,position:{X:"left",Y:"bottom"},targetExitViewport:function(){h.Browser.isDevice||e.hidePopup()},open:function(){e.inputEle.focus(),e.updateClearIconState()}})},o.prototype.setFooterTemplate=function(){this.footer?this.isReact&&"function"==typeof this.footerTemplate?this.clearTemplate(["footerTemplate"]):this.footer.innerHTML="":(this.footer=this.createElement("div"),(0,h.addClass)([this.footer],"e-popup-footer"));var t=this.getTemplateFunction(this.footerTemplate)({count:this.dataSource.length},this,"footerTemplate",this.element.id+"footerTemplate",this.isStringTemplate,void 0,this.footer);t&&(t=Array.prototype.slice.call(t),(0,h.append)(t,this.footer)),(0,h.append)([this.footer],this.popupEle)},o.prototype.l10nUpdate=function(t){if(this.noRecord?this.noRecord.innerHTML="":this.noRecord=this.createElement("div"),"No records found"!==this.noRecordsTemplate||"Request Failed"!==this.actionFailureTemplate){var e=t?this.actionFailureTemplate:this.noRecordsTemplate,i=t?this.element.id+"_actionFailure":this.element.id+"_noRecords",n=t?"actionFailureTemplate":"noRecordsTemplate",o=this.getTemplateFunction(e)({},this,n,i,this.isStringTemplate,void 0,this.noRecord);o&&(o=Array.prototype.slice.call(o),(0,h.append)(o,this.noRecord))}else{this.l10n=new h.L10n("multicolumncombobox",{noRecordsTemplate:"No records found",actionFailureTemplate:"Request Failed"},this.locale),this.noRecord.innerHTML=t?this.l10n.getConstant("actionFailureTemplate"):this.l10n.getConstant("noRecordsTemplate")}(0,h.addClass)([this.noRecord],"e-no-records"),(0,h.prepend)([this.noRecord],this.popupDiv),this.popupObj.refreshPosition()},o.prototype.getTemplateFunction=function(t){if("string"==typeof t){var e="";try{var i=(0,h.select)(t);e=i?"SCRIPT"===i.tagName?i.innerHTML:i.outerHTML:t}catch(i){e=t}return(0,h.compile)(e)}return(0,h.compile)(t)},o.prototype.getSize=function(t){var e=t?this.popupWidth:this.popupHeight,i=(0,h.formatUnit)(e);i.includes("%")?i=((t?this.inputWrapper.offsetWidth:document.documentElement.clientHeight)*parseFloat(i)/100).toString()+"px":"string"==typeof e&&(i=e.match(/px|em/)?e:i);return i},o.prototype.selectedGridRow=function(t,e,i){var n=this,o={isInteracted:!!e,item:this.gridObj.getSelectedRecords()[0],itemElement:t,itemData:this.gridObj.getSelectedRecords()[0],event:e,cancel:!1},r=this.gridObj.getSelectedRecords()[0],s=r?this.updateFieldValue(this.fields.text,r):"",a=r?this.updateFieldValue(this.fields.value,r):"",l={isInteracted:!!e,item:r,itemElement:t,itemData:{text:r?s:"",value:r?a:""},event:e,cancel:!1,value:r?a:"",previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement};this.trigger("select",o,(function(t){if(!t.cancel&&t.itemData){var o=e,p="Enter"===o.key||"Tab"===o.key||o.shiftKey&&"Tab"===o.key||o.altKey&&"ArrowUp"===o.key;(!i||i&&p)&&n.updateValues(r?a:"",r?s:"",n.gridObj.selectedRowIndex,l),c.Input.setValue(r?s:"",n.inputEle,n.floatLabelType,n.showClearButton),(!i||i&&p)&&n.hidePopup(e)}}))},o.prototype.updateValues=function(t,e,i,n,o){this.previousItemElement=n.itemElement;var r=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=e||this.text,this.value=t||this.value,this.index=this.selectedRowIndex=(0,h.isNullOrUndefined)(i)?this.index:i,this.isProtectedOnChange=r,o||this.triggerChangeEvent(n)},o.prototype.triggerChangeEvent=function(t){this.trigger("change",t,(function(t){t.cancel}))},o.prototype.inputHandler=function(t){var e=this;if(this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering){var i=t.target.value.toLowerCase(),n=!1,o={preventDefaultAction:!1,text:i,updateData:function(t,r,s){o.cancel||(n=!0,e.filterAction(t,i,r,s))},event:t,cancel:!1};this.trigger("filtering",o,(function(t){t.cancel||t.preventDefaultAction||n||e.filterAction(e.dataSource,i,e.query,e.fields)}))}this.updateInputValue(t.target.value)},o.prototype.updateInputValue=function(t){return b(this,void 0,void 0,(function(){var e,i,n,o,r,s,a;return O(this,(function(l){switch(l.label){case 0:return this.dataSource instanceof f.DataManager?(r=new f.Query,[4,this.dataSource.executeQuery(r)]):[3,2];case 1:return s=l.sent(),a=s.result,e=this.filterDatas(a,t),n=e.data,o=e.exactData,[3,3];case 2:Array.isArray(this.dataSource)&&(i=this.filterDatas(this.dataSource,t),n=i.data,o=i.exactData),l.label=3;case 3:return this.selectFilteredRows(n,o),[2]}}))}))},o.prototype.filterDatas=function(t,e){var i=this;return{data:t.filter((function(t){var n=i.updateFieldValue(i.fields.text,t);return e&&n.toLowerCase().startsWith(e.toLowerCase())})),exactData:t.filter((function(t){return i.updateFieldValue(i.fields.text,t)===e}))}},o.prototype.selectFilteredRows=function(t,e){if(t.length<=0)this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null;else{this.matchedContent=t[0],this.exactMatchedContent=e[0];var i=this.findIndex(this.gridObj.currentViewData,this.matchedContent);this.matchedRowEle=this.gridObj.getRowByIndex(i)}},o.prototype.filterAction=function(t,e,i,n){var o=this,r=i||new f.Query,s=this.filterType.toString().toLowerCase();if((0,h.isNullOrUndefined)(i)&&(0,h.isNullOrUndefined)(n))this.updateGridDataSource(t);else if(i)t instanceof f.DataManager?this.filteringHandler(t,e,i,n):new f.DataManager(t).executeQuery(i).then((function(t){var e=t.result;o.updateGridDataSource(e)}));else if(t instanceof f.DataManager)this.filteringHandler(t,e,r,n);else if(Array.isArray(t)){var a=t.filter((function(t){return o.filterData(t,s,e,n)}));this.updateGridDataSource(a)}},o.prototype.filteringHandler=function(t,e,i,n){var o,r=this,s=this.filterType.toString().toLowerCase();t.executeQuery(i).then((function(t){var i=t.result,a=i.length;o=i.filter((function(t){return r.filterData(t,s,e,n)})),r.updateGridDataSource(o,a)}))},o.prototype.filterData=function(t,e,i,n){var o=this.updateFieldValue(n?n.text:this.fields.text,t).toLowerCase();switch(e){case"startswith":return o.startsWith(i);case"endswith":return o.endsWith(i);case"contains":return o.includes(i);default:return!1}},o.prototype.updateGridDataSource=function(t,e){var i=!0;if(t.length>0){i=(this.dataSource instanceof f.DataManager?e:this.dataSource.length)!==t.length,(0,h.removeClass)([this.popupDiv],[S]);var n=this.popupDiv.querySelector(".e-no-records");n&&this.popupDiv.removeChild(n),this.gridObj.dataSource=t,this.isDataFiltered=!0}else this.l10nUpdate(),(0,h.addClass)([this.popupDiv],[S]);this.updateGridHeight(!0,i,t.length)},o.prototype.wireEvents=function(){(0,h.isNullOrUndefined)(this.inputObj.buttons[0])||(h.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.preventBlur,this),h.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.dropDownClick,this)),h.EventHandler.add(document,"mousedown",this.onDocumentClick,this),h.EventHandler.add(this.gridEle,"click",this.onMouseClick,this),h.EventHandler.add(this.inputEle,"input",this.inputHandler,this),h.EventHandler.add(this.inputEle,"focus",this.focusIn,this),this.showClearButton&&h.EventHandler.add(this.inputObj.clearButton,"mousedown",this.clearText,this),h.EventHandler.add(window,"resize",this.windowResize,this),this.keyboardModule=new h.KeyboardEvents(this.inputWrapper,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.keyboardModule=new h.KeyboardEvents(this.gridEle,{keyAction:this.gridKeyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},o.prototype.unWireEvents=function(){(0,h.isNullOrUndefined)(this.inputObj.buttons[0])||(h.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.preventBlur),h.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.dropDownClick)),h.EventHandler.remove(document,"mousedown",this.onDocumentClick),h.EventHandler.remove(this.inputEle,"input",this.inputHandler),h.EventHandler.remove(this.inputWrapper,"focus",this.focusIn),h.EventHandler.remove(window,"resize",this.windowResize),h.EventHandler.remove(this.gridEle,"click",this.onMouseClick),this.showClearButton&&h.EventHandler.remove(this.inputObj.clearButton,"mousedown",this.clearText),this.keyboardModule&&this.keyboardModule.destroy()},o.prototype.preventBlur=function(t){t.preventDefault()},o.prototype.dropDownClick=function(t){if(!this.disabled&&!this.readonly){var e=this.gridEle.querySelector(".e-row-focus");e&&e.classList.remove("e-row-focus"),this.isPopupOpen?this.hidePopup(t):this.showPopup(t)}},o.prototype.onMouseClick=function(t){var e=t.target,i=(0,h.closest)(e,".e-row"),n=this.gridObj.selectedRowIndex;i&&(n>=0?this.selectedGridRow(i,t):(this.gridObj.selectedRowIndex=this.gridObj.getRows().indexOf(i),this.gridObj.selectRow(this.gridObj.selectedRowIndex),this.hidePopup(t)))},o.prototype.onDocumentClick=function(t){var e=t.target;if(this.disabled||this.readonly||!this.isPopupOpen)e.closest(".e-multicolumn-list")||this.focusOut();else if(e.classList.contains("e-multicolumn-list-icon")||(0,h.closest)(e,".e-popup"))t.preventDefault();else if(!e.classList.contains("e-multicolumncombobox")&&!e.classList.contains("e-clear-icon")){(0,h.isNullOrUndefined)(this.text)||this.updateInputValue(this.text);var i=""===this.inputEle.value;this.updateValuesOnInput(t,null,i)}},o.prototype.updateValuesOnInput=function(t,e,i,n){void 0===n&&(n=!1);var o=t||e,r=n?this.matchedContent:this.exactMatchedContent;if(r||(this.inputEle.value=this.value=this.index=this.text=null),this.hidePopup(o),this.matchedRowEle&&!i&&r){var s=this.isProtectedOnChange;this.isProtectedOnChange=!0;var a=this.updateFieldValue(this.fields.text,this.matchedContent),l=this.updateFieldValue(this.fields.value,this.matchedContent);this.inputEle.value=a,this.value=l;var p=this.findIndex(this.gridObj.currentViewData,this.matchedContent);this.index=p,this.text=a,this.gridObj.selectRow(p),this.selectedGridRow(this.gridObj.getRowByIndex(p),o),this.previousItemElement=this.gridObj.getSelectedRows()[0],this.isProtectedOnChange=s}else if(this.isDataFiltered){this.inputEle.value="";var u={value:null,itemData:{text:null,value:null},item:null,previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement,itemElement:null,event:o,isInteracted:!0,cancel:!1};s=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=this.value=this.index=null,this.gridObj.refreshColumns(),this.isProtectedOnChange=s,this.triggerChangeEvent(u),this.isDataFiltered=!1,this.matchedContent=this.matchedRowEle=null}},o.prototype.clearText=function(t){this.isDataFiltered=!0,this.updateValuesOnInput(t,null,!0)},o.prototype.windowResize=function(){this.popupObj&&(this.popupObj.setProperties({width:this.getSize(!0)}),this.popupObj.refreshPosition())},o.prototype.setCssClass=function(t,e){var i=this.popupObj?[this.inputWrapper,this.popupObj.element]:[this.inputWrapper];(0,h.isNullOrUndefined)(e)||""===e||(0,h.removeClass)(i,e.split(" ")),(0,h.isNullOrUndefined)(t)||""===t||(0,h.addClass)(i,t.split(" "))},o.prototype.keyActionHandler=function(t){switch(t.action){case"escape":case"altUp":case"shiftTab":case"tab":this.isPopupOpen?this.hidePopup(t):this.focusOut();break;case"altDown":this.isPopupOpen||(this.showPopup(t),this.updateSelectedItem(t,!1));break;case"moveDown":case"moveUp":this.updateSelectedItem(t,!0,!0);break;case"enter":this.updateValuesOnInput(null,t,!1,!0),this.focusIn(t);break;case"home":case"end":this.updateSelectedItem(t)}},o.prototype.gridKeyActionHandler=function(t,e){if(e){var i=(t.altKey?"Alt+":"")+(t.shiftKey?"Shift+":"")+t.key;t.action={ArrowDown:"moveDown",ArrowUp:"moveUp",End:"end",Home:"home",Tab:"tab",Escape:"escape","Shift+Tab":"shiftTab","Alt+ArrowUp":"altUp"}[i]||t.action}switch(t.action){case"escape":case"tab":case"shiftTab":case"altUp":this.isPopupOpen&&(t.preventDefault(),"escape"!==t.action&&this.updateSelectedItem(t),this.hidePopup(t));break;case"moveDown":case"moveUp":case"home":case"end":this.updateSelectedItem(t)}},o.prototype.updateSelectedItem=function(t,e,i){var n=this;if(void 0===e&&(e=!0),this.isPopupOpen){var o=this.fields.groupBy?this.gridObj.selectedRowIndex||0:this.gridObj.selectedRowIndex,r=this.dataSource instanceof f.DataManager?this.remoteDataLength:this.dataSource.length;-1===o&&("moveDown"===t.action||"moveUp"===t.action)||"home"===t.action?o=0:o>=r-1&&"moveDown"===t.action||"end"===t.action?o=r-1:"moveDown"===t.action&&o>=0&&o<=r-1&&(this.fields.groupBy||i)?o+=1:("moveUp"===t.action&&o>0&&this.fields.groupBy||i)&&(o-=1),this.enableVirtualization?setTimeout((function(){n.selectRow(t,e,o)})):this.selectRow(t,e,o)}},o.prototype.selectRow=function(t,e,i){void 0===e&&(e=!0),this.gridObj.selectRow(i),this.gridObj.selectedRowIndex=i;var n=this.gridEle.querySelector(".e-row-focus");n&&n.classList.remove("e-row-focus"),e&&this.selectedGridRow(this.gridObj.getRows()[parseInt(i.toString(),10)],t,!0)},o.prototype.updateClearIconState=function(){var t=this.inputWrapper.querySelector(".e-clear-icon");t&&(t.style.display=""===this.inputEle.value?"none":"flex")},o.prototype.updateDynamicDataSource=function(t,e){var i;this.gridObj&&(this.gridObj.dataSource=t,e instanceof f.DataManager?e.executeQuery(new f.Query).then((function(t){i=t.result.length})):i=e.length,0===i&&this.popupDiv.appendChild(this.gridEle))},o.prototype.focusIn=function(t){this.disabled||this.readonly||((0,h.addClass)([this.inputWrapper],[x]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&c.Input.calculateWidth(this.inputEle,this.inputWrapper))},o.prototype.focusOut=function(t){if(!this.disabled&&!this.readonly&&(this.isPopupOpen&&this.hidePopup(t),this.inputWrapper)){(0,h.removeClass)([this.inputWrapper],[x]);var e=this.inputWrapper.querySelector(".e-clear-icon");e&&(e.style.display="none"),"Never"!==this.floatLabelType&&c.Input.calculateWidth(this.inputEle,this.inputWrapper)}},o.prototype.showPopup=function(t,e){var i=this,n={popup:this.popupObj,event:t,cancel:!1,animation:{name:"FadeIn",duration:100}};this.trigger("open",n,(function(n){if(!n.cancel&&!i.isPopupOpen){i.isPopupOpen=!0,i.popupObj.refreshPosition(),(0,h.addClass)([i.inputWrapper],[w]),(0,h.attributes)(i.inputEle,{"aria-expanded":"true","aria-owns":i.element.id+"_popup","aria-controls":i.element.id}),e||((i.value||i.text||i.index)&&i.gridObj.selectRow(i.selectedRowIndex),i.focusIn(t));var o=i.gridObj.getContent();if(o){var r=o.querySelector(".e-rowcell.e-active"),s=o.querySelector(".e-row");r?i.inputEle.setAttribute("aria-activedescendant",r.parentElement.getAttribute("data-uid")):s&&i.inputEle.setAttribute("aria-activedescendant",s.getAttribute("data-uid"))}!(0,h.isNullOrUndefined)(i.dataSource)&&i.dataSource instanceof f.DataManager&&i.dataSource.executeQuery(new f.Query).then((function(t){i.remoteDataLength=t.result.length})),i.popupObj.show(new h.Animation(n.animation),i.popupEle)}}))},o.prototype.hidePopup=function(t){var e=this,i={popup:this.popupObj,event:t||null,cancel:!1,animation:{name:"FadeOut",duration:100}},n=t?t.target:null;this.trigger("close",i,(function(i){i.cancel||(e.isPopupOpen=!1,(0,h.removeClass)([e.inputWrapper],[w]),(0,h.attributes)(e.inputEle,{"aria-expanded":"false"}),e.popupObj.hide(new h.Animation(i.animation)),n&&(n.classList.contains("e-multicolumn-list-icon")||n.classList.contains("e-rowcell"))?(e.value||e.gridObj.refreshColumns(),setTimeout((function(){e.focusIn(t)}))):e.focusOut(),e.inputEle.removeAttribute("aria-owns"),e.inputEle.removeAttribute("aria-activedescendant"))})),setTimeout((function(){e.gridObj&&(e.gridObj.dataSource=e.dataSource,e.updateGridHeight(!0,!1))}),100)},o.prototype.addItems=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.editSettings.allowAdding=!0,this.gridObj.dataBind(),this.isProtectedOnChange=i,this.gridObj.addRecord(t,e)},o.prototype.getItems=function(){return this.gridObj.getDataRows()},o.prototype.getDataByValue=function(t){var e=this;return!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array?this.dataSource.filter((function(i){return e.updateFieldValue(e.fields.value,i)===t}))[0]:(!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager&&this.dataSource.executeQuery(new f.Query).then((function(i){return i.result.filter((function(i){return e.updateFieldValue(e.fields.value,i)===t}))[0]})),null)},o.prototype.destroy=function(){if(this.unWireEvents(),this.gridObj&&(this.gridObj.destroy(),(0,h.detach)(this.gridObj.element)),this.inputEle){for(var e=["placeholder","aria-expanded","spellcheck","aria-label","role","type","aria-owns","aria-controls","aria-readonly","autocomplete","autocapitalize","spellcheck","aria-activedescendant"],i=0;i<e.length;i++)this.inputEle.removeAttribute(e[i]);this.inputEle.classList.remove("e-input"),c.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton)}this.popupEle&&(this.popupEle.removeAttribute("aria-label"),this.popupEle.removeAttribute("role")),this.popupObj&&(this.popupObj.destroy(),(0,h.detach)(this.popupObj.element)),this.element.tagName!==this.getDirective()&&this.inputWrapper.parentElement.insertBefore(this.element,this.inputWrapper),this.inputObj&&((0,h.detach)(this.inputObj.container),this.inputObj=null),c.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),(0,h.detach)(this.inputWrapper),(0,h.detach)(this.popupDiv),this.inputEle=null,this.previousItemElement=null,this.inputWrapper.innerHTML="",this.inputWrapper=null,this.popupDiv=null,this.popupObj=null,this.gridObj=null,this.gridEle=null,this.popupEle=null,this.footer=null,this.noRecord=null,t.prototype.destroy.call(this)},o.prototype.onPropertyChanged=function(t,e){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n],s=void 0;switch(r){case"width":case"popupWidth":"width"===r&&this.setElementWidth(t.width),this.popupObj&&(this.popupObj.element.style.width=this.getSize(!0));break;case"popupHeight":if(this.popupObj){var a=this.getSize(!1);this.popupObj.element.style.maxHeight=a,this.popupDiv.style.maxHeight=a,this.gridObj.height=a}break;case"placeholder":c.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":c.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":c.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":c.Input.removeFloating(this.inputObj),c.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":c.Input.setClearButton(t.showClearButton,this.inputEle,this.inputObj);break;case"value":this.initValue(!0,!0);break;case"text":this.initValue(!0,!1);break;case"index":this.initValue(!0);break;case"sortOrder":this.gridObj&&(this.gridObj.sortSettings.columns=[{field:this.fields.text,direction:t.sortOrder===i.Ascending?i.Ascending:i.Descending}]);break;case"htmlAttributes":this.setHTMLAttributes();break;case"noRecordsTemplate":this.l10nUpdate();break;case"actionFailureTemplate":this.l10nUpdate(!0);break;case"footerTemplate":this.setFooterTemplate();break;case"itemTemplate":this.gridObj&&(this.gridObj.rowTemplate=t.itemTemplate);break;case"groupTemplate":this.groupTemplate=t.groupTemplate,this.updateGroupByField();break;case"enableRtl":this.gridObj&&this.popupObj&&(this.gridObj.enableRtl=t.enableRtl,c.Input.setEnableRtl(t.enableRtl,[this.inputWrapper]),this.popupObj.enableRtl=t.enableRtl);break;case"dataSource":this.updateDynamicDataSource(t.dataSource,e.dataSource);break;case"query":this.gridObj&&(this.gridObj.query=t.query);break;case"gridSettings":this.gridObj&&(this.gridObj.gridLines=t.gridSettings.gridLines,this.gridObj.rowHeight=t.gridSettings.rowHeight,this.gridObj.enableAltRow=t.gridSettings.enableAltRow,this.gridObj.allowResizing=t.gridSettings.allowResizing,(0,h.isNullOrUndefined)(t.gridSettings.allowTextWrap)||(this.gridObj.allowTextWrap=t.gridSettings.allowTextWrap),(0,h.isNullOrUndefined)(t.gridSettings.textWrapMode)||(this.gridObj.textWrapSettings.wrapMode=t.gridSettings.textWrapMode));break;case"fields":this.fields=t.fields,this.updateGroupByField();break;case"filterType":this.filterType=t.filterType;break;case"enableVirtualization":this.gridObj&&(this.enableVirtualization=this.gridObj.enableVirtualization=t.enableVirtualization);break;case"sortType":this.gridObj&&(this.sortType=t.sortType,this.gridObj.allowMultiSorting="multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting);break;case"allowFiltering":this.allowFiltering=t.allowFiltering;break;case"allowSorting":this.gridObj&&(this.allowSorting=this.gridObj.allowSorting=t.allowSorting);break;case"columns":this.gridObj&&(s=this.getGridColumns(),this.gridObj.columns=s)}}},m([(0,h.Property)([])],o.prototype,"dataSource",void 0),m([(0,h.Property)(null)],o.prototype,"text",void 0),m([(0,h.Property)(null)],o.prototype,"value",void 0),m([(0,h.Property)(null)],o.prototype,"index",void 0),m([(0,h.Property)("100%")],o.prototype,"width",void 0),m([(0,h.Property)("300px")],o.prototype,"popupHeight",void 0),m([(0,h.Property)("100%")],o.prototype,"popupWidth",void 0),m([(0,h.Property)(null)],o.prototype,"placeholder",void 0),m([(0,h.Property)(!0)],o.prototype,"allowFiltering",void 0),m([(0,h.Property)(!0)],o.prototype,"allowSorting",void 0),m([(0,h.Property)(!1)],o.prototype,"showClearButton",void 0),m([(0,h.Property)("")],o.prototype,"cssClass",void 0),m([(0,h.Complex)({text:null,value:null,groupBy:null},R)],o.prototype,"fields",void 0),m([(0,h.Collection)([],D)],o.prototype,"columns",void 0),m([(0,h.Complex)({},T)],o.prototype,"gridSettings",void 0),m([(0,h.Property)(e.StartsWith)],o.prototype,"filterType",void 0),m([(0,h.Property)("Never")],o.prototype,"floatLabelType",void 0),m([(0,h.Property)(i.None)],o.prototype,"sortOrder",void 0),m([(0,h.Property)(n.OneColumn)],o.prototype,"sortType",void 0),m([(0,h.Property)(!1)],o.prototype,"enableVirtualization",void 0),m([(0,h.Property)(!1)],o.prototype,"disabled",void 0),m([(0,h.Property)(!1)],o.prototype,"readonly",void 0),m([(0,h.Property)(!1)],o.prototype,"enablePersistence",void 0),m([(0,h.Property)()],o.prototype,"query",void 0),m([(0,h.Property)(null)],o.prototype,"itemTemplate",void 0),m([(0,h.Property)(null)],o.prototype,"footerTemplate",void 0),m([(0,h.Property)(null)],o.prototype,"groupTemplate",void 0),m([(0,h.Property)("Request Failed")],o.prototype,"actionFailureTemplate",void 0),m([(0,h.Property)("No records found")],o.prototype,"noRecordsTemplate",void 0),m([(0,h.Property)({})],o.prototype,"htmlAttributes",void 0),m([(0,h.Event)()],o.prototype,"created",void 0),m([(0,h.Event)()],o.prototype,"open",void 0),m([(0,h.Event)()],o.prototype,"close",void 0),m([(0,h.Event)()],o.prototype,"actionFailure",void 0),m([(0,h.Event)()],o.prototype,"actionBegin",void 0),m([(0,h.Event)()],o.prototype,"actionComplete",void 0),m([(0,h.Event)()],o.prototype,"filtering",void 0),m([(0,h.Event)()],o.prototype,"select",void 0),m([(0,h.Event)()],o.prototype,"change",void 0),o=m([h.NotifyPropertyChanges],o)}(h.Component),k=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),A=function(t){function e(e){var i=t.call(this,e)||this;return i.initRenderCalled=!1,i.checkInjectedModules=!0,i.directivekeys={columns:"column"},i.statelessTemplateProps=null,i.templateProps=null,i.immediateRender=!1,i.isReactMock=!0,i.portals=[],i}return k(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return d.createElement(d.Fragment,null,[].concat(d.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(I);(0,r.applyMixins)(A,[r.ComponentBase,d.Component])})(),u})()));
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionGrids")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionBase","SyncfusionInputs","SyncfusionData","SyncfusionPopups","SyncfusionGrids"],e):"object"==typeof exports?exports.SyncfusionReactMulticolumnCombobox=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionGrids")):t.SyncfusionReactMulticolumnCombobox=e(t.SyncfusionReactBase,t.React,t.SyncfusionBase,t.SyncfusionInputs,t.SyncfusionData,t.SyncfusionPopups,t.SyncfusionGrids)}(self,((t,e,i,n,o,r,s)=>(()=>{"use strict";var a={24:t=>{t.exports=e},766:t=>{t.exports=i},74:t=>{t.exports=o},707:t=>{t.exports=s},323:t=>{t.exports=n},197:t=>{t.exports=r},705:e=>{e.exports=t}},l={};function p(t){var e=l[t];if(void 0!==e)return e.exports;var i=l[t]={exports:{}};return a[t](i,i.exports,p),i.exports}p.d=(t,e)=>{for(var i in e)p.o(e,i)&&!p.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return(()=>{p.r(u),p.d(u,{Column:()=>D,ColumnDirective:()=>a,ColumnsDirective:()=>l,FieldSettings:()=>R,FilterType:()=>e,GridSettings:()=>T,Inject:()=>r.Inject,MultiColumnComboBox:()=>I,MultiColumnComboBoxComponent:()=>A,MultiColumnGrid:()=>P,SortOrder:()=>i,SortType:()=>n,WrapMode:()=>o});var t,e,i,n,o,r=p(705),s=(t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)},function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.moduleName="column",e}(r.ComplexBase),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.propertyName="columns",e.moduleName="columns",e}(r.ComplexBase),d=p(24),h=p(766),c=p(323),f=p(74),g=p(197),y=p(707),v=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s},b=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){t.done?o(t.value):new i((function(e){e(t.value)})).then(s,a)}l((n=n.apply(t,e||[])).next())}))},O=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},w="e-icon-anim",S="e-nodata",C="e-disabled",x="e-input-focus",E="e-multicolumn-list",j="e-multicolumn-grid",P=function(){function t(){}return t.prototype.InjectModules=function(){y.Grid.Inject(y.VirtualScroll,y.Group,y.Edit,y.Sort,y.Resize)},t}();!function(t){t.StartsWith="StartsWith",t.EndsWith="EndsWith",t.Contains="Contains"}(e||(e={})),function(t){t.None="None",t.Ascending="Ascending",t.Descending="Descending"}(i||(i={})),function(t){t.OneColumn="OneColumn",t.MultipleColumns="MultipleColumns"}(n||(n={})),function(t){t.Both="Both",t.Content="Content",t.Header="Header"}(o||(o={}));var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)()],e.prototype,"text",void 0),m([(0,h.Property)()],e.prototype,"value",void 0),m([(0,h.Property)()],e.prototype,"groupBy",void 0),e}(h.ChildProperty),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)("")],e.prototype,"field",void 0),m([(0,h.Property)("")],e.prototype,"header",void 0),m([(0,h.Property)("")],e.prototype,"width",void 0),m([(0,h.Property)("")],e.prototype,"textAlign",void 0),m([(0,h.Property)(null)],e.prototype,"format",void 0),m([(0,h.Property)(!1)],e.prototype,"displayAsCheckBox",void 0),m([(0,h.Property)(null)],e.prototype,"template",void 0),m([(0,h.Property)(null)],e.prototype,"headerTemplate",void 0),m([(0,h.Property)(null)],e.prototype,"customAttributes",void 0),e}(h.ChildProperty),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),m([(0,h.Property)(!1)],e.prototype,"enableAltRow",void 0),m([(0,h.Property)(null)],e.prototype,"rowHeight",void 0),m([(0,h.Property)("Default")],e.prototype,"gridLines",void 0),m([(0,h.Property)(!1)],e.prototype,"allowTextWrap",void 0),m([(0,h.Property)(o.Both)],e.prototype,"textWrapMode",void 0),m([(0,h.Property)(!1)],e.prototype,"allowResizing",void 0),m([(0,h.Event)()],e.prototype,"resizing",void 0),m([(0,h.Event)()],e.prototype,"resizeStart",void 0),m([(0,h.Event)()],e.prototype,"resizeStop",void 0),e}(h.ChildProperty),I=function(t){function o(e,i){var n=t.call(this,e,i)||this;return n.gridInject=new P,n.gridInject.InjectModules(),n}return v(o,t),o.prototype.preRender=function(){this.element.id||(this.element.id=(0,h.getUniqueID)("e-"+this.getModuleName())),this.keyConfigs={escape:"escape",altUp:"alt+uparrow",altDown:"alt+downarrow",tab:"tab",shiftTab:"shift+tab",end:"end",enter:"enter",home:"home",moveDown:"downarrow",moveUp:"uparrow"},this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null,this.persistData()},o.prototype.getDirective=function(){return"EJS-MULTICOLUMNCOMBOBOX"},o.prototype.getModuleName=function(){return"multicolumncombobox"},o.prototype.getPersistData=function(){return this.addOnPersist(["value"])},o.prototype.persistData=function(){if(this.enablePersistence){this.element.id+="_wrapper";var t=window.localStorage.getItem(this.getModuleName()+this.element.id);(0,h.isNullOrUndefined)(t)||""===t||this.setProperties(JSON.parse(t),!0)}},o.prototype.render=function(){this.renderGrid(),this.renderInput(),this.popupDiv=this.createElement("div",{className:"e-popup-content"}),this.popupDiv.appendChild(this.gridEle),this.setHTMLAttributes(),this.renderPopup(),this.wireEvents()},o.prototype.renderGrid=function(){var t=this,e=this.getGridColumns(),n=this.sortOrder.toString().toLowerCase();this.gridObj=new y.Grid({dataSource:this.dataSource,columns:e,allowSorting:this.allowSorting,enableStickyHeader:!0,gridLines:this.gridSettings.gridLines,rowHeight:this.gridSettings.rowHeight,enableAltRow:this.gridSettings.enableAltRow,enableVirtualization:this.enableVirtualization,enableRtl:this.enableRtl,editSettings:{allowAdding:!1},query:this.query,allowTextWrap:this.gridSettings.allowTextWrap,textWrapSettings:{wrapMode:this.gridSettings.textWrapMode},height:this.popupHeight,allowResizing:this.gridSettings.allowResizing,allowMultiSorting:"multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting,rowTemplate:this.itemTemplate,dataBound:function(){t.onDataBound()},actionFailure:function(e){t.onActionFailure(e)},actionBegin:function(e){t.trigger("actionBegin",e)},actionComplete:this.handleActionComplete.bind(this),keyPressed:this.handleKeyPressed.bind(this),resizing:function(e){t.gridSettings.resizing&&t.gridSettings.resizing.call(t,e)},resizeStart:function(e){t.gridSettings.resizeStart&&t.gridSettings.resizeStart.call(t,e)},resizeStop:function(e){t.gridSettings.resizeStop&&t.gridSettings.resizeStop.call(t,e)}}),this.gridEle=this.createElement("div",{id:(0,h.getUniqueID)("grid"),className:j}),this.updateGroupByField(),e.length>0&&(this.gridObj.columns[0].isPrimaryKey=!0),"none"!==n&&(this.gridObj.sortSettings={columns:[{field:this.fields.text,direction:"ascending"===n?i.Ascending:i.Descending}]}),this.gridObj.appendTo(this.gridEle)},o.prototype.handleActionComplete=function(t){this.trigger("actionComplete",t),"sorting"===t.requestType&&this.updateRowSelection(t),this.popupObj.refreshPosition(),this.gridObj.element.querySelector(".e-content").scrollTop=0},o.prototype.handleKeyPressed=function(t){"Enter"===t.key&&(t.cancel=!0,this.isPopupOpen&&(this.selectedGridRow(this.gridObj.getRows()[this.gridObj.selectedRowIndex],t,!0),this.hidePopup(t),this.focusIn(t))),this.fields.groupBy&&(t.cancel=!0,this.gridKeyActionHandler(t,!0))},o.prototype.isRowMatching=function(t,e,i){var n=function(t){var e=[];return t&&"object"==typeof t?Array.isArray(t)?t.forEach((function(t){return e.push.apply(e,n(t))})):Object.keys(t).forEach((function(i){return e.push.apply(e,n(t[""+i]))})):null!=t&&e.push(String(t)),e},o=n(t);return-1!==o.indexOf(e)&&-1!==o.indexOf(i)},o.prototype.updateRowSelection=function(t){var e=this;t&&t.rows.forEach((function(t){e.selectDataRow(t.data,t.index)}))},o.prototype.selectDataRow=function(t,e){if(this.isRowMatching(t,this.value?this.value.toString():"",this.text?this.text.toString():"")){this.gridObj.selectRow(e);var i=this.isProtectedOnChange;return this.isProtectedOnChange=!0,this.index=e,void(this.isProtectedOnChange=i)}},o.prototype.findIndex=function(t,e){return t.findIndex((function(t){return Object.keys(e).every((function(i){return t[i]===e[i]}))}))},o.prototype.getGridColumns=function(){var t=this;return this.columns.map((function(e){var i=e.field,n=e.header,o=e.width,r=e.textAlign,s=e.format,a=e.displayAsCheckBox,l=e.template,p=e.headerTemplate,u=e.customAttributes;return{field:i,headerText:n,width:o,textAlign:""===r.toString()&&t.enableRtl?"Right":r,format:s,displayAsCheckBox:a,template:l,headerTemplate:p,customAttributes:u,type:a&&!s?"boolean":void 0}}))},o.prototype.updateGroupByField=function(){var t=this.fields.groupBy,e=""!==t&&!(0,h.isNullOrUndefined)(t);if(e){"multiplecolumns"!==this.sortType.toString().toLowerCase()&&this.gridEle.classList.add("e-multicolumn-group");var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.allowGrouping=!0,this.gridObj.groupSettings={showDropArea:!1,columns:[t]},this.groupTemplate&&e&&(this.gridObj.groupSettings.captionTemplate=this.groupTemplate),this.isVue&&(this.gridObj.isVue=this.isVue),this.isProtectedOnChange=i}},o.prototype.onDataBound=function(){var t=this.dataSource.length,e=this.popupDiv.querySelector("."+j),i=this.popupDiv.classList.contains(S);if(t<=0&&e)this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),(0,h.addClass)([this.popupDiv],[S]);else if(i&&t>=1){(0,h.removeClass)([this.popupDiv],[S]);var n=this.popupDiv.querySelector(".e-no-records");n&&this.popupDiv.removeChild(n)}if(this.isInitialRender){var o=this.popupDiv.querySelector(".e-gridcontent tr"),r=i?this.popupDiv.getBoundingClientRect().height:o?o.getBoundingClientRect().height:0;this.popupRowHeight=r,this.popupObj.hide(),this.popupEle.style.visibility="unset",this.isInitialRender=!1}var s=this.gridObj.element.querySelectorAll(".e-row");this.isDataFiltered&&s.length>0&&""!==this.inputEle.value&&s[0].classList.add("e-row-focus")},o.prototype.onActionFailure=function(t){this.trigger("actionFailure",t),this.l10nUpdate(!0),(0,h.addClass)([this.popupDiv],[S])},o.prototype.renderInput=function(){var t=["aria-expanded","aria-readOnly","aria-disabled","autocomplete","autocapitalize","spellcheck","tabindex"];"INPUT"===this.element.tagName?(this.inputEle=this.element,(0,h.isNullOrUndefined)(this.inputEle.getAttribute("role"))&&this.inputEle.setAttribute("role","combobox"),(0,h.isNullOrUndefined)(this.inputEle.getAttribute("type"))&&this.inputEle.setAttribute("type","text"),function(e,i){for(var n in i)i.hasOwnProperty(n)&&-1!==t.indexOf(n)&&(0,h.isNullOrUndefined)(e.getAttribute(n))&&e.setAttribute(n,i[n])}(this.inputEle,{"aria-expanded":"false","aria-readOnly":this.readonly.toString(),"aria-disabled":this.disabled.toString(),autocomplete:"off",autocapitalize:"off",spellcheck:"false",tabindex:"0"})):(this.inputEle=this.createElement("input",{attrs:{role:"textbox",type:"text"}}),this.element.parentElement.insertBefore(this.inputEle,this.element)),this.inputObj=c.Input.createInput({element:this.inputEle,buttons:["e-input-group-icon e-multicolumn-list-icon e-icons"],floatLabelType:this.floatLabelType,properties:{enabled:!this.disabled,readonly:this.readonly,placeholder:this.placeholder,enableRtl:this.enableRtl,showClearButton:this.showClearButton,cssClass:this.cssClass}},this.createElement),this.inputWrapper=this.inputObj.container,this.inputWrapper.classList.add(E),this.inputWrapper.setAttribute("spellcheck","false"),this.element.tagName===this.getDirective()&&this.element.appendChild(this.inputWrapper),this.setElementWidth(this.width),(0,h.isNullOrUndefined)(this.value)&&(0,h.isNullOrUndefined)(this.text)&&(0,h.isNullOrUndefined)(this.index)||this.initValue(null,null,!0)},o.prototype.setElementWidth=function(t){if(!(0,h.isNullOrUndefined)(t)){var e=this.inputWrapper;"number"==typeof t?e.style.width=(0,h.formatUnit)(t):"string"==typeof t&&(e.style.width=t.match(/px|%|em/)?t:(0,h.formatUnit)(t))}},o.prototype.setHTMLAttributes=function(){var t=this.htmlAttributes,e=this.inputEle;if(Object.keys(t).length)for(var i=0,n=Object.keys(t);i<n.length;i++){var o=n[i];switch(o){case"class":this.inputWrapper.classList.add(t[o]);break;case"disabled":this.setProperties({enabled:!1},!0),this.setEnable();break;case"readonly":this.setProperties({readonly:!0},!0),this.dataBind();break;case"style":this.inputWrapper.setAttribute("style",t[o]);break;default:["title","id","placeholder","role","autocomplete","autocapitalize","spellcheck","minlength","maxlength"].indexOf(o)>-1&&"placeholder"===o?c.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},o.prototype.setEnable=function(){c.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),(0,h.addClass)([this.inputWrapper],C),this.inputWrapper&&this.inputWrapper.classList.contains(x)&&(0,h.removeClass)([this.inputWrapper],[x]),this.setAriaDisabled("true")):((0,h.removeClass)([this.inputWrapper],C),this.setAriaDisabled("false"))},o.prototype.setAriaDisabled=function(t){this.inputEle.setAttribute("aria-disabled",t),this.inputWrapper.setAttribute("aria-disabled",t)},o.prototype.updateFieldValue=function(t,e){return(0,h.getValue)(t,e).toString()},o.prototype.initValue=function(t,e,i){var n,o,r,s,a=this,l=this.gridObj.getSelectedRecords()[0],p=this.gridObj.getSelectedRows()[0],u=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.value=this.value?this.value.toString():this.value,this.isProtectedOnChange=u;var d=function(t){var e=a.updateCurrentValues(n,t);o=e.currentValue,r=e.currentText,s=e.currentIndex};if(!t&&(!(0,h.isNullOrUndefined)(this.value)||!(0,h.isNullOrUndefined)(this.text))||t&&void 0!==e){var c=t?e?this.value:this.text:(0,h.isNullOrUndefined)(this.value)?this.text:this.value;!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager?this.dataSource.executeQuery(new f.Query).then((function(u){var f=u.result,g=f.filter((function(i){return a.updateFieldValue(t?e?a.fields.value:a.fields.text:(0,h.isNullOrUndefined)(a.value)?a.fields.text:a.fields.value,i)===c}));g.length>0&&(n=g[0],d(f),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index))})):!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array&&(n=this.dataSource.filter((function(i){return a.updateFieldValue(t?e?a.fields.value:a.fields.text:(0,h.isNullOrUndefined)(a.value)?a.fields.text:a.fields.value,i)===c}))[0],d(this.dataSource))}else(0,h.isNullOrUndefined)(this.index)||(!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager?this.dataSource.executeQuery(new f.Query).then((function(e){var u=e.result;n=u[a.index],d(u),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index)})):!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout((function(){var e=a.gridObj.getRows();if(e&&e.length>0)for(var u=a.gridObj.getRowInfo(e[a.index]).rowData,h=a.fields.value,c=0;c<e.length;c++)if(u&&u[parseInt(h.toString(),10)]===a.dataSource[parseInt(c.toString(),10)][parseInt(h.toString(),10)]){n=u,d(a.dataSource),a.updateChangeEvent(n,l,p,o,r,s,t,i),a.gridObj.selectRow(a.index);break}})):(n=this.dataSource[this.index],d(this.dataSource))));this.dataSource instanceof f.DataManager||this.updateChangeEvent(n,l,p,o,r,s,t,i)},o.prototype.updateChangeEvent=function(t,e,i,n,o,r,s,a){var l=t?this.updateFieldValue(this.fields.value,t):null,p={value:t?l:null,itemData:{text:o,value:n},item:this.getDataByValue(this.value),previousItemData:e,previousItemElement:i,itemElement:this.inputWrapper,event:null,isInteracted:!s};this.updateValues(n,o,r,p,a)},o.prototype.updateCurrentValues=function(t,e){if(!(0,h.isNullOrUndefined)(t)){var i=this.updateFieldValue(this.fields.text,t),n=this.updateFieldValue(this.fields.value,t);return c.Input.setValue(i,this.inputEle,this.floatLabelType,this.showClearButton),{currentValue:n,currentText:i,currentIndex:e.indexOf(t)}}return{currentValue:null,currentText:null,currentIndex:null}},o.prototype.renderPopup=function(){this.popupEle=this.createElement("div",{id:this.element.id+"_options",className:E+" e-popup "+(null!==this.cssClass?this.cssClass:"")}),(0,h.attributes)(this.popupEle,{"aria-label":this.element.id,role:"dialog"}),document.body.appendChild(this.popupEle),this.createPopup(this.popupEle),(0,h.prepend)([this.popupDiv],this.popupEle),this.footerTemplate&&this.setFooterTemplate();var t=this.getSize(!1);if(this.popupEle.style.maxHeight=t,this.footerTemplate){this.footer=this.footer?this.footer:this.popupEle.querySelector(".e-popup-footer");var e=Math.round(this.footer.getBoundingClientRect().height);t=(0,h.formatUnit)(parseInt(t,10)-e+"px")}this.popupDiv.style.maxHeight=t,this.updateGridHeight(),this.popupEle.style.visibility="hidden",this.isInitialRender=!0},o.prototype.updateGridHeight=function(t,e,i){var n;if(t){var o=this.gridObj.getContent().querySelector(".e-content"),r=o.offsetHeight-o.clientHeight,s=i*this.popupRowHeight;""===this.fields.groupBy||(0,h.isNullOrUndefined)(this.fields.groupBy)||(s+=this.popupRowHeight),n=e&&s<this.prevGridHeight?s+r+"px":this.prevGridHeight+"px"}else this.prevGridHeight=this.popupDiv.getBoundingClientRect().height-this.popupDiv.querySelector(".e-gridheader").getBoundingClientRect().height,n=this.prevGridHeight+"px";var a=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.height=n,this.isProtectedOnChange=a},o.prototype.createPopup=function(t){var e=this;this.popupObj=new g.Popup(t,{width:this.getSize(!0),targetType:"relative",collision:{X:"flip",Y:"flip"},relateTo:this.inputWrapper,enableRtl:this.enableRtl,position:{X:"left",Y:"bottom"},targetExitViewport:function(){h.Browser.isDevice||e.hidePopup()},open:function(){e.inputEle.focus(),e.updateClearIconState()}})},o.prototype.setFooterTemplate=function(){this.footer?this.isReact&&"function"==typeof this.footerTemplate?this.clearTemplate(["footerTemplate"]):this.footer.innerHTML="":(this.footer=this.createElement("div"),(0,h.addClass)([this.footer],"e-popup-footer"));var t=this.getTemplateFunction(this.footerTemplate)({count:this.dataSource.length},this,"footerTemplate",this.element.id+"footerTemplate",this.isStringTemplate,void 0,this.footer);t&&(t=Array.prototype.slice.call(t),(0,h.append)(t,this.footer)),(0,h.append)([this.footer],this.popupEle)},o.prototype.l10nUpdate=function(t){if(this.noRecord?this.noRecord.innerHTML="":this.noRecord=this.createElement("div"),"No records found"!==this.noRecordsTemplate||"Request Failed"!==this.actionFailureTemplate){var e=t?this.actionFailureTemplate:this.noRecordsTemplate,i=t?this.element.id+"_actionFailure":this.element.id+"_noRecords",n=t?"actionFailureTemplate":"noRecordsTemplate",o=this.getTemplateFunction(e)({},this,n,i,this.isStringTemplate,void 0,this.noRecord);o&&(o=Array.prototype.slice.call(o),(0,h.append)(o,this.noRecord))}else{this.l10n=new h.L10n("multicolumncombobox",{noRecordsTemplate:"No records found",actionFailureTemplate:"Request Failed"},this.locale),this.noRecord.innerHTML=t?this.l10n.getConstant("actionFailureTemplate"):this.l10n.getConstant("noRecordsTemplate")}(0,h.addClass)([this.noRecord],"e-no-records"),(0,h.prepend)([this.noRecord],this.popupDiv),this.popupObj.refreshPosition()},o.prototype.getTemplateFunction=function(t){if("string"==typeof t){var e="";try{var i=(0,h.select)(t);e=i?"SCRIPT"===i.tagName?i.innerHTML:i.outerHTML:t}catch(i){e=t}return(0,h.compile)(e)}return(0,h.compile)(t)},o.prototype.getSize=function(t){var e=t?this.popupWidth:this.popupHeight,i=(0,h.formatUnit)(e);i.includes("%")?i=((t?this.inputWrapper.offsetWidth:document.documentElement.clientHeight)*parseFloat(i)/100).toString()+"px":"string"==typeof e&&(i=e.match(/px|em/)?e:i);return i},o.prototype.selectedGridRow=function(t,e,i){var n=this,o={isInteracted:!!e,item:this.gridObj.getSelectedRecords()[0],itemElement:t,itemData:this.gridObj.getSelectedRecords()[0],event:e,cancel:!1},r=this.gridObj.getSelectedRecords()[0],s=r?this.updateFieldValue(this.fields.text,r):"",a=r?this.updateFieldValue(this.fields.value,r):"",l={isInteracted:!!e,item:r,itemElement:t,itemData:{text:r?s:"",value:r?a:""},event:e,cancel:!1,value:r?a:"",previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement};this.trigger("select",o,(function(t){if(!t.cancel&&t.itemData){var o=e,p="Enter"===o.key||"Tab"===o.key||o.shiftKey&&"Tab"===o.key||o.altKey&&"ArrowUp"===o.key;(!i||i&&p)&&n.updateValues(r?a:"",r?s:"",n.gridObj.selectedRowIndex,l),c.Input.setValue(r?s:"",n.inputEle,n.floatLabelType,n.showClearButton),(!i||i&&p)&&n.hidePopup(e)}}))},o.prototype.updateValues=function(t,e,i,n,o){this.previousItemElement=n.itemElement;var r=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=e||this.text,this.value=t||this.value,this.index=this.selectedRowIndex=(0,h.isNullOrUndefined)(i)?this.index:i,this.isProtectedOnChange=r,o||this.triggerChangeEvent(n)},o.prototype.triggerChangeEvent=function(t){this.trigger("change",t,(function(t){t.cancel}))},o.prototype.inputHandler=function(t){var e=this;if(this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering){var i=t.target.value.toLowerCase(),n=!1,o={preventDefaultAction:!1,text:i,updateData:function(t,r,s){o.cancel||(n=!0,e.filterAction(t,i,r,s))},event:t,cancel:!1};this.trigger("filtering",o,(function(t){t.cancel||t.preventDefaultAction||n||e.filterAction(e.dataSource,i,e.query,e.fields)}))}this.updateInputValue(t.target.value)},o.prototype.updateInputValue=function(t){return b(this,void 0,void 0,(function(){var e,i,n,o,r,s,a;return O(this,(function(l){switch(l.label){case 0:return this.dataSource instanceof f.DataManager?(r=new f.Query,[4,this.dataSource.executeQuery(r)]):[3,2];case 1:return s=l.sent(),a=s.result,e=this.filterDatas(a,t),n=e.data,o=e.exactData,[3,3];case 2:Array.isArray(this.dataSource)&&(i=this.filterDatas(this.dataSource,t),n=i.data,o=i.exactData),l.label=3;case 3:return this.selectFilteredRows(n,o),[2]}}))}))},o.prototype.filterDatas=function(t,e){var i=this;return{data:t.filter((function(t){var n=i.updateFieldValue(i.fields.text,t);return e&&n.toLowerCase().startsWith(e.toLowerCase())})),exactData:t.filter((function(t){return i.updateFieldValue(i.fields.text,t)===e}))}},o.prototype.selectFilteredRows=function(t,e){if(t.length<=0)this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null;else{this.matchedContent=t[0],this.exactMatchedContent=e[0];var i=this.findIndex(this.gridObj.currentViewData,this.matchedContent);this.matchedRowEle=this.gridObj.getRowByIndex(i)}},o.prototype.filterAction=function(t,e,i,n){var o=this,r=i||new f.Query,s=this.filterType.toString().toLowerCase();if((0,h.isNullOrUndefined)(i)&&(0,h.isNullOrUndefined)(n))this.updateGridDataSource(t);else if(i)t instanceof f.DataManager?this.filteringHandler(t,e,i,n):new f.DataManager(t).executeQuery(i).then((function(t){var e=t.result;o.updateGridDataSource(e)}));else if(t instanceof f.DataManager)this.filteringHandler(t,e,r,n);else if(Array.isArray(t)){var a=t.filter((function(t){return o.filterData(t,s,e,n)}));this.updateGridDataSource(a)}},o.prototype.filteringHandler=function(t,e,i,n){var o,r=this,s=this.filterType.toString().toLowerCase();t.executeQuery(i).then((function(t){var i=t.result,a=i.length;o=i.filter((function(t){return r.filterData(t,s,e,n)})),r.updateGridDataSource(o,a)}))},o.prototype.filterData=function(t,e,i,n){var o=this.updateFieldValue(n?n.text:this.fields.text,t).toLowerCase();switch(e){case"startswith":return o.startsWith(i);case"endswith":return o.endsWith(i);case"contains":return o.includes(i);default:return!1}},o.prototype.updateGridDataSource=function(t,e){var i=!0;if(t.length>0){i=(this.dataSource instanceof f.DataManager?e:this.dataSource.length)!==t.length,(0,h.removeClass)([this.popupDiv],[S]);var n=this.popupDiv.querySelector(".e-no-records");n&&this.popupDiv.removeChild(n),this.gridObj.dataSource=t,this.isDataFiltered=!0}else this.l10nUpdate(),(0,h.addClass)([this.popupDiv],[S]);this.updateGridHeight(!0,i,t.length)},o.prototype.wireEvents=function(){(0,h.isNullOrUndefined)(this.inputObj.buttons[0])||(h.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.preventBlur,this),h.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.dropDownClick,this)),h.EventHandler.add(document,"mousedown",this.onDocumentClick,this),h.EventHandler.add(this.gridEle,"click",this.onMouseClick,this),h.EventHandler.add(this.inputEle,"input",this.inputHandler,this),h.EventHandler.add(this.inputEle,"focus",this.focusIn,this),this.showClearButton&&h.EventHandler.add(this.inputObj.clearButton,"mousedown",this.clearText,this),h.EventHandler.add(window,"resize",this.windowResize,this),this.keyboardModule=new h.KeyboardEvents(this.inputWrapper,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.keyboardModule=new h.KeyboardEvents(this.gridEle,{keyAction:this.gridKeyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},o.prototype.unWireEvents=function(){(0,h.isNullOrUndefined)(this.inputObj.buttons[0])||(h.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.preventBlur),h.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.dropDownClick)),h.EventHandler.remove(document,"mousedown",this.onDocumentClick),h.EventHandler.remove(this.inputEle,"input",this.inputHandler),h.EventHandler.remove(this.inputWrapper,"focus",this.focusIn),h.EventHandler.remove(window,"resize",this.windowResize),h.EventHandler.remove(this.gridEle,"click",this.onMouseClick),this.showClearButton&&h.EventHandler.remove(this.inputObj.clearButton,"mousedown",this.clearText),this.keyboardModule&&this.keyboardModule.destroy()},o.prototype.preventBlur=function(t){t.preventDefault()},o.prototype.dropDownClick=function(t){if(!this.disabled&&!this.readonly){var e=this.gridEle.querySelector(".e-row-focus");e&&e.classList.remove("e-row-focus"),this.isPopupOpen?this.hidePopup(t):this.showPopup(t)}},o.prototype.onMouseClick=function(t){var e=t.target,i=(0,h.closest)(e,".e-row"),n=this.gridObj.selectedRowIndex;i&&(n>=0?this.selectedGridRow(i,t):(this.gridObj.selectedRowIndex=this.gridObj.getRows().indexOf(i),this.gridObj.selectRow(this.gridObj.selectedRowIndex),this.hidePopup(t)))},o.prototype.onDocumentClick=function(t){var e=t.target;if(this.disabled||this.readonly||!this.isPopupOpen)e.closest(".e-multicolumn-list")||this.focusOut();else if(e.classList.contains("e-multicolumn-list-icon")||(0,h.closest)(e,".e-multicolumn-list.e-popup"))t.preventDefault();else if(!e.classList.contains("e-multicolumncombobox")&&!e.classList.contains("e-clear-icon")){(0,h.isNullOrUndefined)(this.text)||this.updateInputValue(this.text);var i=""===this.inputEle.value;this.updateValuesOnInput(t,null,i)}},o.prototype.updateValuesOnInput=function(t,e,i,n){void 0===n&&(n=!1);var o=t||e,r=n?this.matchedContent:this.exactMatchedContent;if(r||(this.inputEle.value=this.value=this.index=this.text=null),this.hidePopup(o),this.matchedRowEle&&!i&&r){var s=this.isProtectedOnChange;this.isProtectedOnChange=!0;var a=this.updateFieldValue(this.fields.text,this.matchedContent),l=this.updateFieldValue(this.fields.value,this.matchedContent);this.inputEle.value=a,this.value=l;var p=this.findIndex(this.gridObj.currentViewData,this.matchedContent);this.index=p,this.text=a,this.gridObj.selectRow(p),this.selectedGridRow(this.gridObj.getRowByIndex(p),o),this.previousItemElement=this.gridObj.getSelectedRows()[0],this.isProtectedOnChange=s}else if(this.isDataFiltered){this.inputEle.value="";var u={value:null,itemData:{text:null,value:null},item:null,previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement,itemElement:null,event:o,isInteracted:!0,cancel:!1};s=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=this.value=this.index=null,this.gridObj.refreshColumns(),this.isProtectedOnChange=s,this.triggerChangeEvent(u),this.isDataFiltered=!1,this.matchedContent=this.matchedRowEle=null}},o.prototype.clearText=function(t){this.isDataFiltered=!0,this.updateValuesOnInput(t,null,!0)},o.prototype.windowResize=function(){this.popupObj&&(this.popupObj.setProperties({width:this.getSize(!0)}),this.popupObj.refreshPosition())},o.prototype.setCssClass=function(t,e){var i=this.popupObj?[this.inputWrapper,this.popupObj.element]:[this.inputWrapper];(0,h.isNullOrUndefined)(e)||""===e||(0,h.removeClass)(i,e.split(" ")),(0,h.isNullOrUndefined)(t)||""===t||(0,h.addClass)(i,t.split(" "))},o.prototype.keyActionHandler=function(t){switch(t.action){case"escape":case"altUp":case"shiftTab":case"tab":this.isPopupOpen?this.hidePopup(t):this.focusOut();break;case"altDown":this.isPopupOpen||(this.showPopup(t),this.updateSelectedItem(t,!1));break;case"moveDown":case"moveUp":this.updateSelectedItem(t,!0,!0);break;case"enter":this.updateValuesOnInput(null,t,!1,!0),this.focusIn(t);break;case"home":case"end":this.updateSelectedItem(t)}},o.prototype.gridKeyActionHandler=function(t,e){if(e){var i=(t.altKey?"Alt+":"")+(t.shiftKey?"Shift+":"")+t.key;t.action={ArrowDown:"moveDown",ArrowUp:"moveUp",End:"end",Home:"home",Tab:"tab",Escape:"escape","Shift+Tab":"shiftTab","Alt+ArrowUp":"altUp"}[i]||t.action}switch(t.action){case"escape":case"tab":case"shiftTab":case"altUp":this.isPopupOpen&&(t.preventDefault(),"escape"!==t.action&&this.updateSelectedItem(t),this.hidePopup(t));break;case"moveDown":case"moveUp":case"home":case"end":this.updateSelectedItem(t)}},o.prototype.updateSelectedItem=function(t,e,i){var n=this;if(void 0===e&&(e=!0),this.isPopupOpen){var o=this.fields.groupBy?this.gridObj.selectedRowIndex||0:this.gridObj.selectedRowIndex,r=this.dataSource instanceof f.DataManager?this.remoteDataLength:this.dataSource.length;-1===o&&("moveDown"===t.action||"moveUp"===t.action)||"home"===t.action?o=0:o>=r-1&&"moveDown"===t.action||"end"===t.action?o=r-1:"moveDown"===t.action&&o>=0&&o<=r-1&&(this.fields.groupBy||i)?o+=1:("moveUp"===t.action&&o>0&&this.fields.groupBy||i)&&(o-=1),this.enableVirtualization?setTimeout((function(){n.selectRow(t,e,o)})):this.selectRow(t,e,o)}},o.prototype.selectRow=function(t,e,i){void 0===e&&(e=!0),this.gridObj.selectRow(i),this.gridObj.selectedRowIndex=i;var n=this.gridEle.querySelector(".e-row-focus");n&&n.classList.remove("e-row-focus"),e&&this.selectedGridRow(this.gridObj.getRows()[parseInt(i.toString(),10)],t,!0)},o.prototype.updateClearIconState=function(){var t=this.inputWrapper.querySelector(".e-clear-icon");t&&(t.style.display=""===this.inputEle.value?"none":"flex")},o.prototype.updateDynamicDataSource=function(t,e){var i;this.gridObj&&(this.gridObj.dataSource=t,e instanceof f.DataManager?e.executeQuery(new f.Query).then((function(t){i=t.result.length})):i=e.length,0===i&&this.popupDiv.appendChild(this.gridEle))},o.prototype.focusIn=function(t){this.disabled||this.readonly||((0,h.addClass)([this.inputWrapper],[x]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&c.Input.calculateWidth(this.inputEle,this.inputWrapper))},o.prototype.focusOut=function(t){if(!this.disabled&&!this.readonly&&(this.isPopupOpen&&this.hidePopup(t),this.inputWrapper)){(0,h.removeClass)([this.inputWrapper],[x]);var e=this.inputWrapper.querySelector(".e-clear-icon");e&&(e.style.display="none"),"Never"!==this.floatLabelType&&c.Input.calculateWidth(this.inputEle,this.inputWrapper)}},o.prototype.showPopup=function(t,e){var i=this,n={popup:this.popupObj,event:t,cancel:!1,animation:{name:"FadeIn",duration:100}};this.trigger("open",n,(function(n){if(!n.cancel&&!i.isPopupOpen){i.isPopupOpen=!0,i.popupObj.refreshPosition(),(0,h.addClass)([i.inputWrapper],[w]),(0,h.attributes)(i.inputEle,{"aria-expanded":"true","aria-owns":i.element.id+"_popup","aria-controls":i.element.id}),e||((i.value||i.text||i.index)&&i.gridObj.selectRow(i.selectedRowIndex),i.focusIn(t));var o=i.gridObj.getContent();if(o){var r=o.querySelector(".e-rowcell.e-active"),s=o.querySelector(".e-row");r?i.inputEle.setAttribute("aria-activedescendant",r.parentElement.getAttribute("data-uid")):s&&i.inputEle.setAttribute("aria-activedescendant",s.getAttribute("data-uid"))}!(0,h.isNullOrUndefined)(i.dataSource)&&i.dataSource instanceof f.DataManager&&i.dataSource.executeQuery(new f.Query).then((function(t){i.remoteDataLength=t.result.length})),i.popupObj.show(new h.Animation(n.animation),i.popupEle.firstElementChild)}}))},o.prototype.hidePopup=function(t){var e=this,i={popup:this.popupObj,event:t||null,cancel:!1,animation:{name:"FadeOut",duration:100}},n=t?t.target:null;this.trigger("close",i,(function(i){i.cancel||(e.isPopupOpen=!1,(0,h.removeClass)([e.inputWrapper],[w]),(0,h.attributes)(e.inputEle,{"aria-expanded":"false"}),e.popupObj.hide(new h.Animation(i.animation)),n&&(n.classList.contains("e-multicolumn-list-icon")||n.classList.contains("e-rowcell"))?(e.value||e.gridObj.refreshColumns(),setTimeout((function(){e.focusIn(t)}))):e.focusOut(),e.inputEle.removeAttribute("aria-owns"),e.inputEle.removeAttribute("aria-activedescendant"))})),setTimeout((function(){e.gridObj&&(e.gridObj.dataSource=e.dataSource,e.updateGridHeight(!0,!1))}),100)},o.prototype.addItems=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.editSettings.allowAdding=!0,this.gridObj.dataBind(),this.isProtectedOnChange=i,this.gridObj.addRecord(t,e)},o.prototype.getItems=function(){return this.gridObj.getDataRows()},o.prototype.getDataByValue=function(t){var e=this;return!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof Array?this.dataSource.filter((function(i){return e.updateFieldValue(e.fields.value,i)===t}))[0]:(!(0,h.isNullOrUndefined)(this.dataSource)&&this.dataSource instanceof f.DataManager&&this.dataSource.executeQuery(new f.Query).then((function(i){return i.result.filter((function(i){return e.updateFieldValue(e.fields.value,i)===t}))[0]})),null)},o.prototype.destroy=function(){if(this.unWireEvents(),this.gridObj&&(this.gridObj.destroy(),(0,h.detach)(this.gridObj.element)),this.inputEle){for(var e=["placeholder","aria-expanded","spellcheck","aria-label","role","type","aria-owns","aria-controls","aria-readonly","autocomplete","autocapitalize","spellcheck","aria-activedescendant"],i=0;i<e.length;i++)this.inputEle.removeAttribute(e[i]);this.inputEle.classList.remove("e-input"),c.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton)}this.popupEle&&(this.popupEle.removeAttribute("aria-label"),this.popupEle.removeAttribute("role")),this.popupObj&&(this.popupObj.destroy(),(0,h.detach)(this.popupObj.element)),this.element.tagName!==this.getDirective()&&this.inputWrapper.parentElement.insertBefore(this.element,this.inputWrapper),this.inputObj&&((0,h.detach)(this.inputObj.container),this.inputObj=null),c.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),(0,h.detach)(this.inputWrapper),(0,h.detach)(this.popupDiv),this.inputEle=null,this.previousItemElement=null,this.inputWrapper.innerHTML="",this.inputWrapper=null,this.popupDiv=null,this.popupObj=null,this.gridObj=null,this.gridEle=null,this.popupEle=null,this.footer=null,this.noRecord=null,t.prototype.destroy.call(this)},o.prototype.onPropertyChanged=function(t,e){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n],s=void 0;switch(r){case"width":case"popupWidth":"width"===r&&this.setElementWidth(t.width),this.popupObj&&(this.popupObj.element.style.width=this.getSize(!0));break;case"popupHeight":if(this.popupObj){var a=this.getSize(!1);this.popupObj.element.style.maxHeight=a,this.popupDiv.style.maxHeight=a,this.gridObj.height=a}break;case"placeholder":c.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":c.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":c.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":c.Input.removeFloating(this.inputObj),c.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":c.Input.setClearButton(t.showClearButton,this.inputEle,this.inputObj);break;case"value":this.initValue(!0,!0);break;case"text":this.initValue(!0,!1);break;case"index":this.initValue(!0);break;case"sortOrder":this.gridObj&&(this.gridObj.sortSettings.columns=[{field:this.fields.text,direction:t.sortOrder===i.Ascending?i.Ascending:i.Descending}]);break;case"htmlAttributes":this.setHTMLAttributes();break;case"noRecordsTemplate":this.l10nUpdate();break;case"actionFailureTemplate":this.l10nUpdate(!0);break;case"footerTemplate":this.setFooterTemplate();break;case"itemTemplate":this.gridObj&&(this.gridObj.rowTemplate=t.itemTemplate);break;case"groupTemplate":this.groupTemplate=t.groupTemplate,this.updateGroupByField();break;case"enableRtl":this.gridObj&&this.popupObj&&(this.gridObj.enableRtl=t.enableRtl,c.Input.setEnableRtl(t.enableRtl,[this.inputWrapper]),this.popupObj.enableRtl=t.enableRtl);break;case"dataSource":this.updateDynamicDataSource(t.dataSource,e.dataSource);break;case"query":this.gridObj&&(this.gridObj.query=t.query);break;case"gridSettings":this.gridObj&&(this.gridObj.gridLines=t.gridSettings.gridLines,this.gridObj.rowHeight=t.gridSettings.rowHeight,this.gridObj.enableAltRow=t.gridSettings.enableAltRow,this.gridObj.allowResizing=t.gridSettings.allowResizing,(0,h.isNullOrUndefined)(t.gridSettings.allowTextWrap)||(this.gridObj.allowTextWrap=t.gridSettings.allowTextWrap),(0,h.isNullOrUndefined)(t.gridSettings.textWrapMode)||(this.gridObj.textWrapSettings.wrapMode=t.gridSettings.textWrapMode));break;case"fields":this.fields=t.fields,this.updateGroupByField();break;case"filterType":this.filterType=t.filterType;break;case"enableVirtualization":this.gridObj&&(this.enableVirtualization=this.gridObj.enableVirtualization=t.enableVirtualization);break;case"sortType":this.gridObj&&(this.sortType=t.sortType,this.gridObj.allowMultiSorting="multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting);break;case"allowFiltering":this.allowFiltering=t.allowFiltering;break;case"allowSorting":this.gridObj&&(this.allowSorting=this.gridObj.allowSorting=t.allowSorting);break;case"columns":this.gridObj&&(s=this.getGridColumns(),this.gridObj.columns=s)}}},m([(0,h.Property)([])],o.prototype,"dataSource",void 0),m([(0,h.Property)(null)],o.prototype,"text",void 0),m([(0,h.Property)(null)],o.prototype,"value",void 0),m([(0,h.Property)(null)],o.prototype,"index",void 0),m([(0,h.Property)("100%")],o.prototype,"width",void 0),m([(0,h.Property)("300px")],o.prototype,"popupHeight",void 0),m([(0,h.Property)("100%")],o.prototype,"popupWidth",void 0),m([(0,h.Property)(null)],o.prototype,"placeholder",void 0),m([(0,h.Property)(!0)],o.prototype,"allowFiltering",void 0),m([(0,h.Property)(!0)],o.prototype,"allowSorting",void 0),m([(0,h.Property)(!1)],o.prototype,"showClearButton",void 0),m([(0,h.Property)("")],o.prototype,"cssClass",void 0),m([(0,h.Complex)({text:null,value:null,groupBy:null},R)],o.prototype,"fields",void 0),m([(0,h.Collection)([],D)],o.prototype,"columns",void 0),m([(0,h.Complex)({},T)],o.prototype,"gridSettings",void 0),m([(0,h.Property)(e.StartsWith)],o.prototype,"filterType",void 0),m([(0,h.Property)("Never")],o.prototype,"floatLabelType",void 0),m([(0,h.Property)(i.None)],o.prototype,"sortOrder",void 0),m([(0,h.Property)(n.OneColumn)],o.prototype,"sortType",void 0),m([(0,h.Property)(!1)],o.prototype,"enableVirtualization",void 0),m([(0,h.Property)(!1)],o.prototype,"disabled",void 0),m([(0,h.Property)(!1)],o.prototype,"readonly",void 0),m([(0,h.Property)(!1)],o.prototype,"enablePersistence",void 0),m([(0,h.Property)()],o.prototype,"query",void 0),m([(0,h.Property)(null)],o.prototype,"itemTemplate",void 0),m([(0,h.Property)(null)],o.prototype,"footerTemplate",void 0),m([(0,h.Property)(null)],o.prototype,"groupTemplate",void 0),m([(0,h.Property)("Request Failed")],o.prototype,"actionFailureTemplate",void 0),m([(0,h.Property)("No records found")],o.prototype,"noRecordsTemplate",void 0),m([(0,h.Property)({})],o.prototype,"htmlAttributes",void 0),m([(0,h.Event)()],o.prototype,"created",void 0),m([(0,h.Event)()],o.prototype,"open",void 0),m([(0,h.Event)()],o.prototype,"close",void 0),m([(0,h.Event)()],o.prototype,"actionFailure",void 0),m([(0,h.Event)()],o.prototype,"actionBegin",void 0),m([(0,h.Event)()],o.prototype,"actionComplete",void 0),m([(0,h.Event)()],o.prototype,"filtering",void 0),m([(0,h.Event)()],o.prototype,"select",void 0),m([(0,h.Event)()],o.prototype,"change",void 0),o=m([h.NotifyPropertyChanges],o)}(h.Component),k=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),A=function(t){function e(e){var i=t.call(this,e)||this;return i.initRenderCalled=!1,i.checkInjectedModules=!0,i.directivekeys={columns:"column"},i.statelessTemplateProps=null,i.templateProps=null,i.immediateRender=!1,i.isReactMock=!0,i.portals=[],i}return k(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return d.createElement(d.Fragment,null,[].concat(d.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(I);(0,r.applyMixins)(A,[r.ComponentBase,d.Component])})(),u})()));
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: ej2-react-multicolumn-combobox.umd.min.js
3
- * version : 28.2.3
3
+ * version : 28.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-react-multicolumn-combobox@*",
3
- "_id": "@syncfusion/ej2-react-multicolumn-combobox@28.1.39",
3
+ "_id": "@syncfusion/ej2-react-multicolumn-combobox@28.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-X0UiIkwW1jPmKlMr3PwLe05TPwqolImcIvAgJ6xIMcsuBr/1mRK1/gwQQPFg9QNA4kjqM5WBaG5Q0gHTt1Fi2Q==",
5
+ "_integrity": "sha512-E1XxvoHHkWsvIRrfRj6EO3SXYTvjm+pQD8pHLc00ey1etF1SCJkKl4VZwdypji7tqgZSi6vnk1AzjbgCGjbfhw==",
6
6
  "_location": "/@syncfusion/ej2-react-multicolumn-combobox",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,8 +19,8 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-multicolumn-combobox/-/ej2-react-multicolumn-combobox-28.1.39.tgz",
23
- "_shasum": "3220e3c2a6cbcc9e2838edd9931b7f3a8c5e69bf",
22
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-multicolumn-combobox/-/ej2-react-multicolumn-combobox-28.2.3.tgz",
23
+ "_shasum": "921f60ef49261ea1dafe1997b44d5dbbcbebf088",
24
24
  "_spec": "@syncfusion/ej2-react-multicolumn-combobox@*",
25
25
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
26
26
  "author": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~28.2.3",
35
- "@syncfusion/ej2-multicolumn-combobox": "28.2.3",
36
- "@syncfusion/ej2-react-base": "~28.2.3"
34
+ "@syncfusion/ej2-base": "~28.2.5",
35
+ "@syncfusion/ej2-multicolumn-combobox": "28.2.7",
36
+ "@syncfusion/ej2-react-base": "~28.2.7"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 Component for React",
@@ -54,6 +54,6 @@
54
54
  "type": "git",
55
55
  "url": "https://github.com/syncfusion/ej2-react-ui-components.git"
56
56
  },
57
- "version": "28.2.3",
57
+ "version": "28.2.7",
58
58
  "sideEffects": false
59
59
  }