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

@syncfusion/ej2-inplace-editor

Package Overview
Dependencies
Maintainers
3
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-inplace-editor - npm Package Compare versions

Comparing version 18.2.48 to 18.2.54

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

#### New Features
- `#279315` - Provided new event `change` that triggers when the integrated component value has changed that render based on the `type` property in the In-place editor.
## 18.2.48 (2020-08-04)
### In-place Editor
#### Bug Fixes

@@ -9,0 +17,0 @@

4

dist/ej2-inplace-editor.umd.min.js
/*!
* filename: ej2-inplace-editor.umd.min.js
* version : 18.2.48
* version : 18.2.54
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-data"),require("@syncfusion/ej2-buttons"),require("@syncfusion/ej2-calendars"),require("@syncfusion/ej2-inputs"),require("@syncfusion/ej2-popups"),require("@syncfusion/ej2-dropdowns"),require("@syncfusion/ej2-richtexteditor")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-data","@syncfusion/ej2-buttons","@syncfusion/ej2-calendars","@syncfusion/ej2-inputs","@syncfusion/ej2-popups","@syncfusion/ej2-dropdowns","@syncfusion/ej2-richtexteditor"],t):t(e.ej={},e.ej2Base,e.ej2Data,e.ej2Buttons,e.ej2Calendars,e.ej2Inputs,e.ej2Popups,e.ej2Dropdowns,e.ej2Richtexteditor)}(this,function(e,t,i,o,n,s,r,a,l){"use strict";function p(e,i,o){if(t.isNullOrUndefined(i)||""===i)return"";var n,s;switch(e){case"Color":var r=i;n=r.length>7?r.slice(0,-2):r;break;case"Date":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateRange":s=o.format;var a=i;n=h.formatDate(a[0],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" - "+h.formatDate(a[1],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateTime":s=o.format,n=t.isNullOrUndefined(s)||""===s?h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" "+h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"}):h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"Time":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"});break;case"Numeric":s=t.isNullOrUndefined(o.format)?"n2":o.format;var l=t.isNullOrUndefined(i)?null:"number"==typeof i?i:h.parseNumber(i);n=h.formatNumber(l,{format:s});break;default:n=i.toString()}return n}function d(e,i){if(t.isNullOrUndefined(i)||""===i)return i;if("Date"!==e&&"Time"!==e&&"DateTime"!==e||"string"!=typeof i){if("DateRange"===e)if("object"==typeof i&&"string"==typeof i[0])i=[new Date(i[0]),new Date(i[1])];else if("string"==typeof i){var o=i.split("-");i=[new Date(o[0]),new Date(o[1])]}}else i=new Date(i);return i}var h=new t.Internationalization,c="render",u="update",m="destroy",f="set-focus",y="access-value",v="destroy-modules",b="show-popup",E=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),O=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return E(i,e),O([t.Property("")],i.prototype,"title",void 0),O([t.Property(null)],i.prototype,"model",void 0),i}(t.ChildProperty),C={AutoComplete:"auto-complete",Color:"color-picker",ComboBox:"combo-box",DateRange:"date-range-picker",MultiSelect:"multi-select",RTE:"rte",Slider:"slider",Time:"time-picker"},w={Click:{editAreaClick:"Click to edit"},DblClick:{editAreaDoubleClick:"Double click to edit"},EditIconClick:{editAreaClick:"Click to edit"}},j="e-inplaceeditor",k="e-inplaceeditor-tip",D="e-editable-value-wrapper",P="e-editable-value",M="e-editable-overlay-icon",H="e-editable-tip-title",S="e-editable-title",T="e-editable-inline",B="e-editable-popup",V="e-editable-wrapper",N="e-editable-loading",x="e-editable-form",A="e-component-group",R="e-editable-component",L="e-editable-action-buttons",I="e-editable-error",U="e-editable-elements",W="e-editable-open",z="e-btn-save",_="e-btn-cancel",K="e-rte-spin-wrap",q="e-control-overlay",F="e-disable",Q="e-show",Y="e-hide",G="e-rtl",$="e-error",J="e-loading",X=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Z=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ee=function(e){function l(t,i){var o=e.call(this,t,i)||this;return o.initRender=!0,o.isTemplate=!1,o.isExtModule=!1,o.submitBtn=void 0,o.cancelBtn=void 0,o.isClearTarget=!1,o.btnElements=void 0,o.dataManager=void 0,o.divComponents=["RTE","Slider"],o.clearComponents=["AutoComplete","Mask","Text"],o.dateType=["Date","DateTime","Time"],o.inputDataEle=["Date","DateTime","DateRange","Time","Numeric"],o.dropDownEle=["AutoComplete","ComboBox","DropDownList","MultiSelect"],o.moduleList=["AutoComplete","Color","ComboBox","DateRange","MultiSelect","RTE","Slider","Time"],o.needsID=!0,o}return X(l,e),l.prototype.preRender=function(){t.isNullOrUndefined(this.model)&&this.setProperties({model:{}},!0),this.titleEle=this.createElement("div",{className:S}),!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.afterOpenEvent=this.popupSettings.model.afterOpen)},l.prototype.render=function(){this.element.setAttribute("tabindex","0"),this.checkIsTemplate(),this.disable(this.disabled),this.updateAdaptor(),this.appendValueElement(),this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue(),this.wireEvents(),this.setRtl(this.enableRtl),this.enableEditor(this.enableEditMode),this.setClass("add",this.cssClass),this.renderComplete()},l.prototype.setClass=function(e,i){this.isEmpty(i)||("add"===e?t.addClass([this.element],[i]):t.removeClass([this.element],[i]))},l.prototype.appendValueElement=function(){this.valueWrap=this.createElement("div",{id:this.element.id+"_wrap",className:D}),t.isBlazor()||(this.element.innerHTML=""),this.valueEle=this.createElement("span",{className:P}),this.editIcon=this.createElement("span",{className:M+" e-icons",attrs:{title:this.getLocale({editIcon:"Click to edit"},"editIcon")}}),this.valueWrap.appendChild(this.valueEle),this.valueWrap.appendChild(this.editIcon),this.element.appendChild(this.valueWrap)},l.prototype.renderInitialValue=function(){!(["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1)||t.isNullOrUndefined(this.value)||this.isEmpty(this.value.toString())||t.isNullOrUndefined(this.model.fields)||t.isNullOrUndefined(this.model.dataSource)?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):(this.renderValue(this.getLocale({loadingText:"Loading..."},"loadingText")),this.valueWrap.classList.add(J),r.createSpinner({target:this.valueWrap,width:10}),r.showSpinner(this.valueWrap),this.getInitFieldMapValue())},l.prototype.getInitFieldMapValue=function(){var e=this,o=this.model,n=o.fields.text,s=o.fields.value,r=t.isNullOrUndefined(o.query)?new i.Query:o.query;o.dataSource instanceof i.DataManager?o.dataSource.executeQuery(this.getInitQuery(o,r)).then(function(t){e.updateInitValue(n,s,t.result)}):this.updateInitValue(n,s,new i.DataManager(o.dataSource).executeLocal(this.getInitQuery(o,r)))},l.prototype.getInitQuery=function(e,t){var o,n=e.fields.value,s=this.value;if("MultiSelect"!==this.type||"object"!=typeof this.value)o=new i.Predicate(n,"equal",this.value);else for(var r=0,a=0,l=s;a<l.length;a++){var p=l[a];o=0===r?o=new i.Predicate(n,"equal",p):o.or(n,"equal",p),r++}return t.where(o)},l.prototype.updateInitValue=function(e,i,o){if(!(o.length<=0)){if(1===o.length)this.valueEle.innerHTML=this.checkValue(t.getValue(t.isNullOrUndefined(e)?i:e,o[0]));else{for(var n=[],s=0,a=o;s<a.length;s++){var l=a[s];n.push(t.getValue(t.isNullOrUndefined(e)?i:e,l))}this.valueEle.innerHTML=this.checkValue(n.toString())}r.hideSpinner(this.valueWrap),this.valueWrap.classList.remove(J)}},l.prototype.renderValue=function(e){this.enableHtmlSanitizer&&"RTE"!==this.type&&"MultiSelect"!==this.type?this.valueEle.innerText=e:this.valueEle.innerHTML=e,"Color"===this.type&&t.setStyleAttribute(this.valueEle,{color:e}),"Inline"===this.mode&&t.removeClass([this.valueWrap],[Y])},l.prototype.renderEditor=function(){if(this.prevValue=this.value,this.beginEditArgs={mode:this.mode,cancelFocus:!1,cancel:!1},this.trigger("beginEdit",this.beginEditArgs),!this.beginEditArgs.cancel){var e=void 0,i=t.select("."+D,this.element);if("EditIconClick"!==this.editableOn&&i.parentElement.removeAttribute("title"),!this.valueWrap.classList.contains(W)){if("Inline"===this.mode)this.loaderWidth=this.valueWrap.offsetWidth,t.addClass([this.valueWrap],[Y]),this.inlineWrapper=this.createElement("div",{className:T}),this.element.appendChild(this.inlineWrapper),["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1?this.checkRemoteData(this.model):this.renderAndOpen();else{!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.popupSettings.model.afterOpen=this.afterOpenHandler.bind(this));var o=this.createElement("div",{className:B});this.isEmpty(this.popupSettings.title)||(this.titleEle.innerHTML=this.popupSettings.title,o.appendChild(this.titleEle)),e={content:o,opensOn:"Custom",enableRtl:this.enableRtl,cssClass:k,afterOpen:this.afterOpenHandler.bind(this)},o.appendChild(this.renderControl(document.body)),t.extend(e,this.popupSettings.model,e,!0),this.tipObj=new r.Tooltip(e),this.tipObj.appendTo(i),this.tipObj.open(i)}"Ignore"!==this.actionOnBlur&&this.wireDocEvent(),t.addClass([this.valueWrap],[W]),this.setProperties({enableEditMode:!0},!0)}}},l.prototype.renderAndOpen=function(){this.renderControl(this.inlineWrapper),this.afterOpenHandler(null)},l.prototype.checkRemoteData=function(e){var o=this;e.dataSource instanceof i.DataManager?(e.dataBound=function(){o.afterOpenHandler(null)},this.renderControl(this.inlineWrapper),(t.isNullOrUndefined(e.value)&&t.isNullOrUndefined(this.value)||e.value===this.value&&!t.isNullOrUndefined(e.value)&&0===e.value.length)&&this.showDropDownPopup()):this.renderAndOpen()},l.prototype.showDropDownPopup=function(){"DropDownList"===this.type?(this.model.allowFiltering||this.componentObj.focusIn(),this.componentObj.showPopup()):this.isExtModule&&this.notify("MultiSelect"===this.type?f:b,{})},l.prototype.setAttribute=function(e,t){var i=this.name&&0!==this.name.length?this.name:this.element.id;t.forEach(function(t){e.setAttribute(t,"id"===t?i+"_editor":i)})},l.prototype.renderControl=function(e){var t;this.containerEle=this.createElement("div",{className:V}),this.loader=this.createElement("div",{className:N}),this.formEle=this.createElement("form",{className:x});var i=this.createElement("div",{className:A}),o=this.createElement("div",{className:R});return e.appendChild(this.containerEle),this.loadSpinner(),this.containerEle.appendChild(this.formEle),this.formEle.appendChild(i),this.isTemplate?this.appendTemplate(o,this.template):(Array.prototype.indexOf.call(this.divComponents,this.type)>-1?(t=this.createElement("div"),this.setAttribute(t,["id"])):(t=this.createElement("input"),this.setAttribute(t,["id","name"])),this.componentRoot=t,o.appendChild(t),o.appendChild(this.loader)),i.appendChild(o),i.appendChild(this.createElement("div",{className:I})),this.appendButtons(this.formEle),this.isTemplate||this.renderComponent(t),this.removeSpinner(),this.submitOnEnter&&this.wireEditorKeyDownEvent(this.containerEle),this.containerEle},l.prototype.appendButtons=function(e){this.showButtons&&e&&(this.btnElements=this.renderButtons(),e.appendChild(this.btnElements),this.wireBtnEvents())},l.prototype.renderButtons=function(){var e=this.createElement("div",{className:L}),i=t.isNullOrUndefined(this.saveButton.content)||0===this.saveButton.content.length?"":" e-primary";return this.submitBtn=this.createButtons({constant:"save",type:"submit",container:e,title:{save:"Save"},model:this.saveButton,className:z+i}),this.cancelBtn=this.createButtons({type:"button",constant:"cancel",title:{cancel:"Cancel"},container:e,model:this.cancelButton,className:_}),e},l.prototype.createButtons=function(e){var t=void 0;if(Object.keys(e.model).length>0){var i=this.createElement("button",{className:e.className,attrs:{type:e.type,title:this.getLocale(e.title,e.constant)}});e.container.appendChild(i),t=new o.Button(e.model,i)}return t},l.prototype.renderComponent=function(e){this.isExtModule=Array.prototype.indexOf.call(this.moduleList,this.type)>-1;var i;if(i=t.isNullOrUndefined(this.model.cssClass)?U:this.model.cssClass.indexOf(U)<0?""===this.model.cssClass?U:this.model.cssClass+" "+U:this.model.cssClass,t.extend(this.model,this.model,{cssClass:i,enableRtl:this.enableRtl,locale:this.locale}),t.isNullOrUndefined(this.value)||this.updateModelValue(),this.isExtModule)this.notify(c,{module:C[this.type],target:e,type:this.type});else{switch(t.isNullOrUndefined(this.model.showClearButton)&&!t.isBlazor()&&(this.model.showClearButton=!0),this.type){case"Date":this.componentObj=new n.DatePicker(this.model);break;case"DateTime":this.componentObj=new n.DateTimePicker(this.model);break;case"DropDownList":this.componentObj=new a.DropDownList(this.model);break;case"Mask":this.componentObj=new s.MaskedTextBox(this.model);break;case"Numeric":this.model.value&&(this.model.value=this.model.value.toString().replace(/[`~!@#$%^&*()_|\=?;:'",<>\{\}\[\]\\\/]/gi,"")),this.componentObj=new s.NumericTextBox(this.model);break;case"Text":this.componentObj=new s.TextBox(this.model)}this.componentObj.appendTo(e)}},l.prototype.updateAdaptor=function(){switch(this.adaptor){case"UrlAdaptor":this.dataAdaptor=new i.UrlAdaptor;break;case"WebApiAdaptor":this.dataAdaptor=new i.WebApiAdaptor;break;case"ODataV4Adaptor":this.dataAdaptor=new i.ODataV4Adaptor}},l.prototype.loadSpinner=function(e){t.addClass([this.loader],[Q]),"validate"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type?this.spinObj={target:this.loader,width:t.Browser.isDevice?"16px":"14px"}:(t.addClass([this.loader],[K]),t.addClass([this.getEditElement()],[q]),this.spinObj={target:this.loader}),this.formEle&&t.addClass([this.formEle],[J]),this.btnElements&&t.addClass([this.btnElements],[Y]),t.setStyleAttribute(this.loader,{width:"100%"}),r.createSpinner(this.spinObj),r.showSpinner(this.spinObj.target)},l.prototype.removeSpinner=function(e){this.loader.removeAttribute("style"),r.hideSpinner(this.spinObj.target),t.detach(this.spinObj.target.firstChild),"submit"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type||(t.removeClass([this.loader],[K]),t.removeClass([this.getEditElement()],[q])),this.formEle&&t.removeClass([this.formEle],[J]),this.btnElements&&t.removeClass([this.btnElements],[Y]),t.removeClass([this.loader],[Q])},l.prototype.getEditElement=function(){return t.select("."+U,this.formEle)},l.prototype.getLocale=function(e,i){return new t.L10n("inplace-editor",e,this.locale).getConstant(i)},l.prototype.checkValue=function(e){return this.isEmpty(e)?this.emptyText:e},l.prototype.extendModelValue=function(e){var i=this.model;t.extend(i,{value:e}),this.setProperties({model:i},!0)},l.prototype.updateValue=function(){var e=this.value;this.enableHtmlSanitizer&&"string"==typeof this.value&&(e=this.sanitizeHelper(this.value)),t.isNullOrUndefined(this.value)||(this.setProperties({value:d(this.type,e)},!0),this.extendModelValue(d(this.type,e)))},l.prototype.updateModelValue=function(){"MultiSelect"!==this.type||this.isEmpty(this.value)?this.model.value=this.value:this.model.value=this.value.slice()},l.prototype.setValue=function(){this.isExtModule?this.notify(u,{type:this.type}):this.componentObj&&("Numeric"===this.type&&null===this.componentObj.value&&this.componentObj.setProperties({value:0},!0),this.setProperties({value:this.componentObj.value},!0),this.extendModelValue(this.componentObj.value))},l.prototype.getDropDownsValue=function(e){var i;return Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1&&"MultiSelect"!==this.type?i=e?t.select(".e-"+this.type.toLocaleLowerCase(),this.containerEle).value:this.value.toString():"MultiSelect"===this.type&&(this.notify(y,{type:this.type}),i=e?this.printValue:this.value.join()),i},l.prototype.getSendValue=function(){return this.isEmpty(this.value)?"":Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!1):Array.prototype.indexOf.call(this.dateType,this.type)>-1?this.value.toISOString():"DateRange"===this.type?this.value[0].toISOString()+" - "+this.value[1].toISOString():this.value.toString()},l.prototype.getRenderValue=function(){return"Mask"===this.type&&0!==this.componentObj.value.length?this.componentObj.getMaskedValue():Array.prototype.indexOf.call(this.inputDataEle,this.type)>-1?this.componentRoot.value:Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!0):p(this.type,this.value,this.model)},l.prototype.setRtl=function(e){e?t.addClass([this.element],[G]):t.removeClass([this.element],[G])},l.prototype.setFocus=function(){this.isTemplate||(this.isExtModule?this.notify(f,{}):this.componentObj.element.focus())},l.prototype.removeEditor=function(e){t.isBlazor()&&!this.isStringTemplate&&t.resetBlazorTemplate(this.element.id+"template","Template");if(this.tipObj&&this.formEle&&t.closest(this.formEle,"."+k).classList.add(Y),this.unWireDocEvent(),this.destroyComponents(),this.formEle=void 0,t.isNullOrUndefined(t.select("."+T,this.element))?this.tipObj&&("MultiSelect"===this.type&&(t.EventHandler.remove(this.containerEle,"mousedown",this.popMouseDown),t.EventHandler.remove(this.containerEle,"click",this.popClickHandler)),this.tipObj.close(),this.tipObj.destroy(),this.tipObj=void 0):(t.detach(this.inlineWrapper),this.inlineWrapper=void 0),this.containerEle=void 0,t.removeClass([this.valueWrap],[W,Y]),e||this.setProperties({enableEditMode:!1},!0),"EditIconClick"!==this.editableOn){var i="DblClick"===this.editableOn?"editAreaDoubleClick":"editAreaClick";t.isNullOrUndefined(this.valueWrap.parentElement)||this.valueWrap.parentElement.setAttribute("title",this.getLocale(w[this.editableOn],i))}},l.prototype.destroyComponents=function(){this.showButtons&&this.destroyButtons(),this.isExtModule?this.notify(v,{}):(this.templateEle&&(document.body.appendChild(this.templateEle),this.templateEle.style.display="none",this.templateEle=void 0),t.isNullOrUndefined(this.componentObj)||(this.componentObj.destroy(),this.componentObj=void 0)),this.formValidate&&(this.formValidate=void 0),this.submitOnEnter&&this.containerEle&&this.unWireEditorKeyDownEvent(this.containerEle)},l.prototype.destroyButtons=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.remove(this.submitBtn.element,"mousedown",this.submitHandler),t.EventHandler.remove(this.submitBtn.element,"click",this.submitPrevent),t.EventHandler.remove(this.submitBtn.element,"keydown",this.btnKeyDownHandler),this.submitBtn.destroy(),this.submitBtn=void 0),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.remove(this.cancelBtn.element,"mousedown",this.cancelHandler),t.EventHandler.remove(this.cancelBtn.element,"keydown",this.btnKeyDownHandler),this.cancelBtn.destroy(),this.cancelBtn=void 0),this.btnElements=void 0},l.prototype.getQuery=function(e){var t=new i.Query;return Object.keys(e).forEach(function(i){t.addParams(i,e[i])}),t},l.prototype.sendValue=function(){var e=this,t={data:{name:this.name,primaryKey:this.primaryKey,value:this.getSendValue()}};this.trigger("actionBegin",t,function(t){if(t.cancel)e.removeSpinner("submit"),"Popup"===e.mode&&e.updateArrow();else{if(e.isEmpty(e.url)||e.isEmpty(e.primaryKey)||!e.initRender&&(e.initRender||e.prevValue===e.value)){var o={data:{},value:t.data.value};e.triggerSuccess(o)}else if(e.dataManager=new i.DataManager({url:e.url,adaptor:e.dataAdaptor}),"UrlAdaptor"===e.adaptor)e.dataManager.executeQuery(e.getQuery(t.data),e.successHandler.bind(e),e.failureHandler.bind(e));else{e.dataManager.insert(t.data).then(function(t){return e.successHandler(t)}).catch(function(t){return e.failureHandler(t)})}e.dataManager=void 0}})},l.prototype.isEmpty=function(e){return!(!t.isNullOrUndefined(e)&&0!==e.length)},l.prototype.checkIsTemplate=function(){this.isTemplate=!t.isNullOrUndefined(this.template)&&""!==this.template},l.prototype.templateCompile=function(e,i){var o;"string"==typeof i&&(i=i.trim());var n=t.compile(i);if(!t.isNullOrUndefined(n)){var s=!(t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor"))||this.isStringTemplate;o=n({},this,"template",this.element.id+"template",s)}!t.isNullOrUndefined(n)&&o.length>0&&([].slice.call(o).forEach(function(t){e.appendChild(t)}),t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor")&&t.updateBlazorTemplate(this.element.id+"template","Template",this))},l.prototype.sanitizeHelper=function(e){if(this.enableHtmlSanitizer){var i=t.SanitizeHtmlHelper.beforeSanitize();t.extend(i,i,{cancel:!1,helper:null}),this.trigger("beforeSanitizeHtml",i,function(o){i.cancel&&!t.isNullOrUndefined(i.helper)?e=i.helper(e):i.cancel||(e=t.SanitizeHtmlHelper.serializeValue(i,e))})}return e},l.prototype.appendTemplate=function(e,i){i="string"==typeof i?this.sanitizeHelper(i):i,this.setProperties({template:i},!0),"string"==typeof i||t.isNullOrUndefined(i.innerHTML)?("."===i[0]||"#"===i[0])&&document.querySelectorAll(i).length?(this.templateEle=document.querySelector(i),e.appendChild(this.templateEle),this.templateEle.style.display=""):this.templateCompile(e,i):(this.templateEle=i,e.appendChild(this.templateEle))},l.prototype.disable=function(e){e?t.addClass([this.element],[F]):t.removeClass([this.element],[F])},l.prototype.enableEditor=function(e){e?this.renderEditor():this.cancelHandler()},l.prototype.checkValidation=function(e){var i,o=this,n=!0;this.validationRules?(this.formValidate=new s.FormValidator(this.formEle,{rules:this.validationRules,validationComplete:function(s){i={errorMessage:s.message,data:{name:o.name,primaryKey:o.primaryKey,value:o.checkValue(o.getSendValue())}},o.trigger("validating",i,function(i){"failure"===s.status?(s.errorElement.innerText=i.errorMessage,o.toggleErrorClass(!0)):o.toggleErrorClass(!1),!t.isNullOrUndefined(n)&&n&&(n=!1,o.afterValidation(e))})},customPlacement:function(e,i){t.select("."+I,o.formEle).appendChild(i)}}),this.formValidate.validate()):this.afterValidation(e)},l.prototype.afterValidation=function(e){!this.formEle.classList.contains($)&&e&&(this.loadSpinner("validate"),"Popup"===this.mode&&this.updateArrow(),this.sendValue())},l.prototype.toggleErrorClass=function(e){if(!t.isNullOrUndefined(this.formEle)){var i=t.select(".e-input-group",this.formEle);!function(e,i,o){[].slice.call(e).forEach(function(e){e&&("add"===o?t.addClass([e],[i]):t.removeClass([e],[i]))})}([this.formEle,i],$,e?"add":"remove")}},l.prototype.updateArrow=function(){var e=this.tipObj.tipPointerPosition;this.tipObj.tipPointerPosition="Middle"===e?"Auto":"Middle",this.tipObj.tipPointerPosition=e,this.tipObj.dataBind()},l.prototype.triggerSuccess=function(e){var i=this,o=e.value;this.trigger("actionSuccess",e,function(e){i.removeSpinner("submit"),e.cancel||i.renderValue(i.checkValue(e.value!==o?e.value:i.getRenderValue())),e.cancel&&"Inline"===i.mode&&t.removeClass([i.valueWrap],[Y]),i.removeEditor()})},l.prototype.wireEvents=function(){this.wireEditEvent(this.editableOn),t.EventHandler.add(this.editIcon,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.valueKeyDownHandler,this),t.EventHandler.add(document,"scroll",this.scrollResizeHandler,this),window.addEventListener("resize",this.scrollResizeHandler.bind(this)),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.add(this.element,"mousedown",this.mouseDownHandler,this)},l.prototype.wireDocEvent=function(){t.EventHandler.add(document,"mousedown",this.docClickHandler,this)},l.prototype.wireEditEvent=function(e){if("EditIconClick"!==e){var i="Click"===e?"editAreaClick":"editAreaDoubleClick";this.element.setAttribute("title",this.getLocale(w[e],i)),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?this.touchModule=new t.Touch(this.valueWrap,{tap:this.doubleTapHandler.bind(this)}):t.EventHandler.add(this.valueWrap,e.toLowerCase(),this.clickHandler,this)}},l.prototype.wireEditorKeyDownEvent=function(e){t.EventHandler.add(e,"keydown",this.enterKeyDownHandler,this)},l.prototype.wireBtnEvents=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.add(this.submitBtn.element,"mousedown",this.submitHandler,this),t.EventHandler.add(this.submitBtn.element,"click",this.submitPrevent,this),t.EventHandler.add(this.submitBtn.element,"keydown",this.btnKeyDownHandler,this)),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.add(this.cancelBtn.element,"mousedown",this.cancelHandler,this),t.EventHandler.add(this.cancelBtn.element,"keydown",this.btnKeyDownHandler,this))},l.prototype.unWireEvents=function(){this.unWireEditEvent(this.editableOn),t.EventHandler.remove(this.editIcon,"click",this.clickHandler),t.EventHandler.remove(document,"scroll",this.scrollResizeHandler),window.removeEventListener("resize",this.scrollResizeHandler.bind(this)),t.EventHandler.remove(this.element,"keydown",this.valueKeyDownHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.remove(this.element,"mousedown",this.mouseDownHandler)},l.prototype.unWireDocEvent=function(){t.EventHandler.remove(document,"mousedown",this.docClickHandler)},l.prototype.unWireEditEvent=function(e){"EditIconClick"!==e&&(this.element.removeAttribute("title"),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?(this.touchModule.destroy(),this.touchModule=void 0):t.EventHandler.remove(this.valueWrap,e.toLowerCase(),this.clickHandler))},l.prototype.unWireEditorKeyDownEvent=function(e){t.EventHandler.remove(e,"keydown",this.enterKeyDownHandler)},l.prototype.submitPrevent=function(e){e.preventDefault()},l.prototype.btnKeyDownHandler=function(e){var i=e.target;(13===e.keyCode&&13===e.which||32===e.keyCode&&32===e.which)&&(i.classList.contains(z)?this.save():i.classList.contains(_)&&this.cancelHandler()),9!==e.keyCode||!1!==e.shiftKey||!t.isNullOrUndefined(e.target.nextElementSibling)&&"BUTTON"===e.target.nextElementSibling.tagName||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.afterOpenHandler=function(e){"Popup"===this.mode&&"MultiSelect"===this.type&&(t.EventHandler.add(this.containerEle,"mousedown",this.popMouseDown,this),t.EventHandler.add(this.containerEle,"click",this.popClickHandler,this)),"Popup"!==this.mode||this.isEmpty(this.titleEle.innerHTML)||e.element.classList.add(H),"RTE"===this.type?(this.rteModule.refresh(),this.setAttribute(t.select(".e-richtexteditor textarea",this.containerEle),["name"])):"Slider"===this.type&&(this.sliderModule.refresh(),this.setAttribute(t.select(".e-slider-input",this.containerEle),["name"])),this.beginEditArgs.cancelFocus||("Inline"===this.mode&&["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1&&this.model.dataSource instanceof i.DataManager?this.showDropDownPopup():this.setFocus()),this.afterOpenEvent&&(this.tipObj.setProperties({afterOpen:this.afterOpenEvent},!0),this.tipObj.trigger("afterOpen",e))},l.prototype.popMouseDown=function(e){var t=e.target.classList;t.contains("e-chips-close")&&!t.contains("e-close-hooker")&&this.updateArrow()},l.prototype.doubleTapHandler=function(e){e.tapCount>1&&this.clickHandler(e.originalEvent)},l.prototype.clickHandler=function(e){"EditIconClick"!==this.editableOn&&e.stopPropagation(),this.renderEditor()},l.prototype.submitHandler=function(e){e.preventDefault(),this.save()},l.prototype.cancelHandler=function(){this.removeEditor()},l.prototype.popClickHandler=function(e){var i=t.select("."+D,this.element);e.target.classList.contains("e-chips-close")&&this.tipObj.refresh(i)},l.prototype.successHandler=function(e){this.initRender=!1;var t={data:e,value:this.getSendValue()};this.triggerSuccess(t)},l.prototype.failureHandler=function(e){var t=this,i={data:e,value:this.getSendValue()};this.trigger("actionFailure",i,function(e){t.removeSpinner("submit"),"Popup"===t.mode&&t.updateArrow()})},l.prototype.enterKeyDownHandler=function(e){t.closest(e.target,"."+R+" .e-richtexteditor")||(13===e.keyCode&&13===e.which&&t.closest(e.target,"."+R)?this.save():27===e.keyCode&&27===e.which&&this.cancelHandler())},l.prototype.valueKeyDownHandler=function(e){9===e.keyCode&&!0===e.shiftKey&&"BUTTON"!==e.target.tagName&&("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler()),13!==e.keyCode||13!==e.which||!e.target.classList.contains(j)||this.valueWrap.classList.contains(W)||this.element.classList.contains(F)||(e.preventDefault(),this.renderEditor())},l.prototype.mouseDownHandler=function(e){e.target.classList.contains("e-clear-icon")&&(this.isClearTarget=!0)},l.prototype.scrollResizeHandler=function(){"Popup"===this.mode&&this.tipObj&&!t.Browser.isDevice&&this.removeEditor()},l.prototype.docClickHandler=function(e){var i=e.target;if(this.isClearTarget)this.isClearTarget=!1;else{var o=t.closest(i,"."+j),n=t.closest(i,"."+k),s=t.closest(i,"."+U),r=t.closest(i,".e-rte-elements");!t.isNullOrUndefined(o)&&o.isEqualNode(this.element)||!t.isNullOrUndefined(n)&&this.tipObj&&n.id.indexOf(this.valueWrap.id)>-1||!t.isNullOrUndefined(s)||!t.isNullOrUndefined(r)||i.classList.contains("e-chips-close")||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())}},l.prototype.validate=function(){this.checkValidation(!1)},l.prototype.save=function(){if(this.formEle){this.element.focus(),this.editEle=t.select("."+R,this.formEle);t.select("."+$,this.editEle),this.isTemplate||this.setValue(),this.checkValidation(!0)}},l.prototype.destroy=function(){var i=this;this.removeEditor(t.isBlazor()),this.isExtModule&&this.notify(m,{}),this.unWireEvents();for([F,G].forEach(function(e){t.removeClass([i.element],[e])});this.element.firstElementChild;)this.element.removeChild(this.element.firstElementChild);t.isBlazor()&&this.isServerRendered||e.prototype.destroy.call(this)},l.prototype.getPersistData=function(){return this.addOnPersist(["value"])},l.prototype.requiredModules=function(){var e=[];return e.push({member:C[this.type],args:[this]}),e},l.prototype.getModuleName=function(){return"inplaceeditor"},l.prototype.onPropertyChanged=function(e,t){this.removeEditor();for(var i=0,o=Object.keys(e);i<o.length;i++){switch(o[i]){case"showButtons":e.showButtons?this.appendButtons(this.formEle):this.destroyButtons();break;case"value":this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"emptyText":"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"template":this.checkIsTemplate();break;case"disabled":this.disable(e.disabled);break;case"enableRtl":this.setRtl(e.enableRtl);break;case"cssClass":this.setClass("remove",t.cssClass),this.setClass("add",e.cssClass);break;case"mode":this.enableEditor(this.enableEditMode);break;case"enableEditMode":this.enableEditor(e.enableEditMode);break;case"editableOn":this.unWireEditEvent(t.editableOn),"EditIconClick"!==e.editableOn&&this.wireEditEvent(e.editableOn)}}},Z([t.Property("")],l.prototype,"name",void 0),Z([t.Property(null)],l.prototype,"value",void 0),Z([t.Property("")],l.prototype,"template",void 0),Z([t.Property(!0)],l.prototype,"enableHtmlSanitizer",void 0),Z([t.Property("")],l.prototype,"cssClass",void 0),Z([t.Property("")],l.prototype,"primaryKey",void 0),Z([t.Property("Empty")],l.prototype,"emptyText",void 0),Z([t.Property("")],l.prototype,"url",void 0),Z([t.Property("Popup")],l.prototype,"mode",void 0),Z([t.Property("UrlAdaptor")],l.prototype,"adaptor",void 0),Z([t.Property("Text")],l.prototype,"type",void 0),Z([t.Property("Click")],l.prototype,"editableOn",void 0),Z([t.Property("Never")],l.prototype,"textOption",void 0),Z([t.Property("Submit")],l.prototype,"actionOnBlur",void 0),Z([t.Property(!1)],l.prototype,"enablePersistence",void 0),Z([t.Property(!1)],l.prototype,"disabled",void 0),Z([t.Property(!0)],l.prototype,"showButtons",void 0),Z([t.Property(!1)],l.prototype,"enableEditMode",void 0),Z([t.Property(!0)],l.prototype,"submitOnEnter",void 0),Z([t.Complex({},g)],l.prototype,"popupSettings",void 0),Z([t.Property(null)],l.prototype,"model",void 0),Z([t.Property({iconCss:"e-icons e-save-icon"})],l.prototype,"saveButton",void 0),Z([t.Property({iconCss:"e-icons e-cancel-icon"})],l.prototype,"cancelButton",void 0),Z([t.Property(null)],l.prototype,"validationRules",void 0),Z([t.Event()],l.prototype,"created",void 0),Z([t.Event()],l.prototype,"beforeSanitizeHtml",void 0),Z([t.Event()],l.prototype,"actionBegin",void 0),Z([t.Event()],l.prototype,"actionSuccess",void 0),Z([t.Event()],l.prototype,"actionFailure",void 0),Z([t.Event()],l.prototype,"validating",void 0),Z([t.Event()],l.prototype,"beginEdit",void 0),Z([t.Event()],l.prototype,"destroyed",void 0),l=Z([t.NotifyPropertyChanges],l)}(t.Component),te=function(){function e(e,t){this.parent=e,this.module=t,this.addEventListener()}return e.prototype.render=function(e){this.module.render(e)},e.prototype.showPopup=function(){this.module.showPopup()},e.prototype.focus=function(){this.module.focus()},e.prototype.update=function(e){this.module.updateValue(e)},e.prototype.getValue=function(){this.module.getRenderValue()},e.prototype.destroyComponent=function(){t.isNullOrUndefined(this.module.compObj)||(this.module.compObj.destroy(),this.module.compObj=void 0)},e.prototype.destroy=function(){this.destroyComponent(),this.removeEventListener()},e.prototype.addEventListener=function(){this.parent.on(c,this.render,this),this.parent.on(f,this.focus,this),this.parent.on(b,this.showPopup,this),this.parent.on(u,this.update,this),this.parent.on(y,this.getValue,this),this.parent.on(v,this.destroyComponent,this),this.parent.on(m,this.destroy,this)},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off(c,this.render),this.parent.off(f,this.focus),this.parent.off(b,this.showPopup),this.parent.off(u,this.update),this.parent.off(y,this.getValue),this.parent.off(v,this.destroyComponent),this.parent.off(m,this.destroy))},e}(),ie=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.atcModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.AutoComplete(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"AutoComplete"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"auto-complete"},e}(),oe=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.colorModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new s.ColorPicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Color"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"color-picker"},e}(),ne=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.comboBoxModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.ComboBox(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.updateValue=function(e){this.compObj&&"ComboBox"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"combo-box"},e}(),se=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.dateRangeModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.DateRangePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"DateRange"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"date-range-picker"},e}(),re=function(){return(re=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)},ae=function(){function e(e){this.isPopOpen=!1,this.compObj=void 0,this.parent=e,this.parent.multiSelectModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){var t=re({},this.parent.model);this.openEvent=t.open,this.closeEvent=t.close,t.open=this.openHandler.bind(this),t.close=this.closeHandler.bind(this),this.compObj=new a.MultiSelect(t),this.compObj.appendTo(e.target)},e.prototype.openHandler=function(e){this.isPopOpen=!0,this.openEvent&&(this.compObj.setProperties({open:this.openEvent},!0),this.compObj.trigger("open",e))},e.prototype.closeHandler=function(e){this.isPopOpen=!1,this.closeEvent&&(this.compObj.setProperties({close:this.closeEvent},!0),this.compObj.trigger("close",e))},e.prototype.focus=function(){if(!this.isPopOpen){var e=document.createEvent("MouseEvent");e.initEvent("mousedown",!0,!0),t.closest(this.compObj.element,".e-multi-select-wrapper").dispatchEvent(e)}},e.prototype.updateValue=function(e){this.compObj&&"MultiSelect"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRenderValue=function(){this.parent.printValue=this.compObj.text},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"multi-select"},e}(),le=function(){function e(e){this.compObj=void 0,l.RichTextEditor.Inject(l.HtmlEditor,l.MarkdownEditor,l.Toolbar,l.Link,l.Image,l.QuickToolbar,l.Table),this.parent=e,this.parent.rteModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new l.RichTextEditor(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"RTE"===e.type&&(this.parent.setProperties({value:this.getRteValue()},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRteValue=function(){var e;return"Markdown"===this.compObj.editorMode?""===(e=this.compObj.contentModule.getEditPanel().value)?"":e:"<p><br></p>"===(e=this.compObj.contentModule.getEditPanel().innerHTML)||"&lt;p&gt;&lt;br&gt;&lt;/p&gt;"===e||""===e?"":e},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"rte"},e}(),pe=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.sliderModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new s.Slider(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Slider"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"slider"},e}(),de=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.timeModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.TimePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"Time"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"time-picker"},e}();e.parseValue=p,e.getCompValue=d,e.render=c,e.update=u,e.destroy=m,e.setFocus=f,e.accessValue=y,e.destroyModules=v,e.showPopup=b,e.PopupSettings=g,e.modulesList=C,e.localeConstant=w,e.ROOT=j,e.ROOT_TIP=k,e.VALUE_WRAPPER=D,e.VALUE=P,e.OVERLAY_ICON=M,e.TIP_TITLE=H,e.TITLE=S,e.INLINE=T,e.POPUP=B,e.WRAPPER=V,e.LOADING=N,e.FORM=x,e.CTRL_GROUP=A,e.INPUT=R,e.BUTTONS=L,e.EDITABLE_ERROR=I,e.ELEMENTS=U,e.OPEN=W,e.BTN_SAVE=z,e.BTN_CANCEL=_,e.RTE_SPIN_WRAP=K,e.CTRL_OVERLAY=q,e.DISABLE=F,e.ICONS="e-icons",e.PRIMARY="e-primary",e.SHOW=Q,e.HIDE=Y,e.RTL=G,e.ERROR=$,e.LOAD=J,e.InPlaceEditor=ee,e.Base=te,e.AutoComplete=ie,e.ColorPicker=oe,e.ComboBox=ne,e.DateRangePicker=se,e.MultiSelect=ae,e.Rte=le,e.Slider=pe,e.TimePicker=de,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-data"),require("@syncfusion/ej2-buttons"),require("@syncfusion/ej2-calendars"),require("@syncfusion/ej2-popups"),require("@syncfusion/ej2-inputs"),require("@syncfusion/ej2-dropdowns"),require("@syncfusion/ej2-richtexteditor")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-data","@syncfusion/ej2-buttons","@syncfusion/ej2-calendars","@syncfusion/ej2-popups","@syncfusion/ej2-inputs","@syncfusion/ej2-dropdowns","@syncfusion/ej2-richtexteditor"],t):t(e.ej={},e.ej2Base,e.ej2Data,e.ej2Buttons,e.ej2Calendars,e.ej2Popups,e.ej2Inputs,e.ej2Dropdowns,e.ej2Richtexteditor)}(this,function(e,t,i,o,n,s,r,a,l){"use strict";function p(e,i,o){if(t.isNullOrUndefined(i)||""===i)return"";var n,s;switch(e){case"Color":var r=i;n=r.length>7?r.slice(0,-2):r;break;case"Date":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateRange":s=o.format;var a=i;n=h.formatDate(a[0],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" - "+h.formatDate(a[1],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateTime":s=o.format,n=t.isNullOrUndefined(s)||""===s?h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" "+h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"}):h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"Time":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"});break;case"Numeric":s=t.isNullOrUndefined(o.format)?"n2":o.format;var l=t.isNullOrUndefined(i)?null:"number"==typeof i?i:h.parseNumber(i);n=h.formatNumber(l,{format:s});break;default:n=i.toString()}return n}function d(e,i){if(t.isNullOrUndefined(i)||""===i)return i;if("Date"!==e&&"Time"!==e&&"DateTime"!==e||"string"!=typeof i){if("DateRange"===e)if("object"==typeof i&&"string"==typeof i[0])i=[new Date(i[0]),new Date(i[1])];else if("string"==typeof i){var o=i.split("-");i=[new Date(o[0]),new Date(o[1])]}}else i=new Date(i);return i}var h=new t.Internationalization,c="render",u="update",m="destroy",f="set-focus",y="access-value",v="destroy-modules",b="show-popup",E=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),O=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return E(i,e),O([t.Property("")],i.prototype,"title",void 0),O([t.Property(null)],i.prototype,"model",void 0),i}(t.ChildProperty),C={AutoComplete:"auto-complete",Color:"color-picker",ComboBox:"combo-box",DateRange:"date-range-picker",MultiSelect:"multi-select",RTE:"rte",Slider:"slider",Time:"time-picker"},w={Click:{editAreaClick:"Click to edit"},DblClick:{editAreaDoubleClick:"Double click to edit"},EditIconClick:{editAreaClick:"Click to edit"}},j="e-inplaceeditor",D="e-inplaceeditor-tip",k="e-editable-value-wrapper",P="e-editable-value",M="e-editable-overlay-icon",H="e-editable-tip-title",S="e-editable-title",T="e-editable-inline",B="e-editable-popup",V="e-editable-wrapper",N="e-editable-loading",x="e-editable-form",A="e-component-group",R="e-editable-component",L="e-editable-action-buttons",I="e-editable-error",U="e-editable-elements",W="e-editable-open",z="e-btn-save",_="e-btn-cancel",K="e-rte-spin-wrap",q="e-control-overlay",F="e-disable",Q="e-show",Y="e-hide",G="e-rtl",$="e-error",J="e-loading",X=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Z=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ee=function(e){function l(t,i){var o=e.call(this,t,i)||this;return o.initRender=!0,o.isTemplate=!1,o.isExtModule=!1,o.submitBtn=void 0,o.cancelBtn=void 0,o.isClearTarget=!1,o.btnElements=void 0,o.dataManager=void 0,o.divComponents=["RTE","Slider"],o.clearComponents=["AutoComplete","Mask","Text"],o.dateType=["Date","DateTime","Time"],o.inputDataEle=["Date","DateTime","DateRange","Time","Numeric"],o.dropDownEle=["AutoComplete","ComboBox","DropDownList","MultiSelect"],o.moduleList=["AutoComplete","Color","ComboBox","DateRange","MultiSelect","RTE","Slider","Time"],o.needsID=!0,o}return X(l,e),l.prototype.preRender=function(){t.isNullOrUndefined(this.model)&&this.setProperties({model:{}},!0),this.titleEle=this.createElement("div",{className:S}),!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.afterOpenEvent=this.popupSettings.model.afterOpen)},l.prototype.render=function(){t.isNullOrUndefined(this.element.getAttribute("tabindex"))&&this.element.setAttribute("tabindex","0"),this.checkIsTemplate(),this.disable(this.disabled),this.updateAdaptor(),this.appendValueElement(),this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue(),this.wireEvents(),this.setRtl(this.enableRtl),this.enableEditor(this.enableEditMode),this.setClass("add",this.cssClass),this.renderComplete()},l.prototype.setClass=function(e,i){this.isEmpty(i)||("add"===e?t.addClass([this.element],[i]):t.removeClass([this.element],[i]))},l.prototype.appendValueElement=function(){this.valueWrap=this.createElement("div",{id:this.element.id+"_wrap",className:k}),t.isBlazor()||(this.element.innerHTML=""),this.valueEle=this.createElement("span",{className:P}),this.editIcon=this.createElement("span",{className:M+" e-icons",attrs:{title:this.getLocale({editIcon:"Click to edit"},"editIcon")}}),this.valueWrap.appendChild(this.valueEle),this.valueWrap.appendChild(this.editIcon),this.element.appendChild(this.valueWrap)},l.prototype.renderInitialValue=function(){!(["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1)||t.isNullOrUndefined(this.value)||this.isEmpty(this.value.toString())||t.isNullOrUndefined(this.model.fields)||t.isNullOrUndefined(this.model.dataSource)?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):(this.renderValue(this.getLocale({loadingText:"Loading..."},"loadingText")),this.valueWrap.classList.add(J),s.createSpinner({target:this.valueWrap,width:10}),s.showSpinner(this.valueWrap),this.getInitFieldMapValue())},l.prototype.getInitFieldMapValue=function(){var e=this,o=this.model,n=o.fields.text,s=o.fields.value,r=t.isNullOrUndefined(o.query)?new i.Query:o.query;o.dataSource instanceof i.DataManager?o.dataSource.executeQuery(this.getInitQuery(o,r)).then(function(t){e.updateInitValue(n,s,t.result)}):this.updateInitValue(n,s,new i.DataManager(o.dataSource).executeLocal(this.getInitQuery(o,r)))},l.prototype.getInitQuery=function(e,t){var o,n=e.fields.value,s=this.value;if("MultiSelect"!==this.type||"object"!=typeof this.value)o=new i.Predicate(n,"equal",this.value);else for(var r=0,a=0,l=s;a<l.length;a++){var p=l[a];o=0===r?o=new i.Predicate(n,"equal",p):o.or(n,"equal",p),r++}return t.where(o)},l.prototype.updateInitValue=function(e,i,o){if(!(o.length<=0)){if(1===o.length)this.valueEle.innerHTML=this.checkValue(t.getValue(t.isNullOrUndefined(e)?i:e,o[0]));else{for(var n=[],r=0,a=o;r<a.length;r++){var l=a[r];n.push(t.getValue(t.isNullOrUndefined(e)?i:e,l))}this.valueEle.innerHTML=this.checkValue(n.toString())}s.hideSpinner(this.valueWrap),this.valueWrap.classList.remove(J)}},l.prototype.renderValue=function(e){this.enableHtmlSanitizer&&"RTE"!==this.type&&"MultiSelect"!==this.type?this.valueEle.innerText=e:this.valueEle.innerHTML=e,"Color"===this.type&&t.setStyleAttribute(this.valueEle,{color:e}),"Inline"===this.mode&&t.removeClass([this.valueWrap],[Y])},l.prototype.renderEditor=function(){if(this.prevValue=this.value,this.beginEditArgs={mode:this.mode,cancelFocus:!1,cancel:!1},this.trigger("beginEdit",this.beginEditArgs),!this.beginEditArgs.cancel){var e=void 0,i=t.select("."+k,this.element);if("EditIconClick"!==this.editableOn&&i.parentElement.removeAttribute("title"),!this.valueWrap.classList.contains(W)){if("Inline"===this.mode)t.addClass([this.valueWrap],[Y]),this.inlineWrapper=this.createElement("div",{className:T}),this.element.appendChild(this.inlineWrapper),["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1?this.checkRemoteData(this.model):this.renderAndOpen();else{!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.popupSettings.model.afterOpen=this.afterOpenHandler.bind(this));var o=this.createElement("div",{className:B});this.isEmpty(this.popupSettings.title)||(this.titleEle.innerHTML=this.popupSettings.title,o.appendChild(this.titleEle)),e={content:o,opensOn:"Custom",enableRtl:this.enableRtl,cssClass:D,afterOpen:this.afterOpenHandler.bind(this)},o.appendChild(this.renderControl(document.body)),t.extend(e,this.popupSettings.model,e,!0),this.tipObj=new s.Tooltip(e),this.tipObj.appendTo(i),this.tipObj.open(i)}"Ignore"!==this.actionOnBlur&&this.wireDocEvent(),t.addClass([this.valueWrap],[W]),this.setProperties({enableEditMode:!0},!0)}}},l.prototype.renderAndOpen=function(){this.renderControl(this.inlineWrapper),this.afterOpenHandler(null)},l.prototype.checkRemoteData=function(e){var o=this;e.dataSource instanceof i.DataManager?(e.dataBound=function(){o.afterOpenHandler(null)},this.renderControl(this.inlineWrapper),(t.isNullOrUndefined(e.value)&&t.isNullOrUndefined(this.value)||e.value===this.value&&!t.isNullOrUndefined(e.value)&&0===e.value.length)&&this.showDropDownPopup()):this.renderAndOpen()},l.prototype.showDropDownPopup=function(){"DropDownList"===this.type?(this.model.allowFiltering||this.componentObj.focusIn(),this.componentObj.showPopup()):this.isExtModule&&this.notify("MultiSelect"===this.type?f:b,{})},l.prototype.setAttribute=function(e,t){var i=this.name&&0!==this.name.length?this.name:this.element.id;t.forEach(function(t){e.setAttribute(t,"id"===t?i+"_editor":i)})},l.prototype.renderControl=function(e){var t;this.containerEle=this.createElement("div",{className:V}),this.loader=this.createElement("div",{className:N}),this.formEle=this.createElement("form",{className:x});var i=this.createElement("div",{className:A}),o=this.createElement("div",{className:R});return e.appendChild(this.containerEle),this.loadSpinner(),this.containerEle.appendChild(this.formEle),this.formEle.appendChild(i),this.isTemplate?this.appendTemplate(o,this.template):(Array.prototype.indexOf.call(this.divComponents,this.type)>-1?(t=this.createElement("div"),this.setAttribute(t,["id"])):(t=this.createElement("input"),this.setAttribute(t,["id","name"])),this.componentRoot=t,o.appendChild(t),o.appendChild(this.loader)),i.appendChild(o),i.appendChild(this.createElement("div",{className:I})),this.appendButtons(this.formEle),this.isTemplate||this.renderComponent(t),this.removeSpinner(),this.submitOnEnter&&this.wireEditorKeyDownEvent(this.containerEle),this.containerEle},l.prototype.appendButtons=function(e){this.showButtons&&e&&(this.btnElements=this.renderButtons(),e.appendChild(this.btnElements),this.wireBtnEvents())},l.prototype.renderButtons=function(){var e=this.createElement("div",{className:L}),i=t.isNullOrUndefined(this.saveButton.content)||0===this.saveButton.content.length?"":" e-primary";return this.submitBtn=this.createButtons({constant:"save",type:"submit",container:e,title:{save:"Save"},model:this.saveButton,className:z+i}),this.cancelBtn=this.createButtons({type:"button",constant:"cancel",title:{cancel:"Cancel"},container:e,model:this.cancelButton,className:_}),e},l.prototype.createButtons=function(e){var t=void 0;if(Object.keys(e.model).length>0){var i=this.createElement("button",{className:e.className,attrs:{type:e.type,title:this.getLocale(e.title,e.constant)}});e.container.appendChild(i),t=new o.Button(e.model,i)}return t},l.prototype.renderComponent=function(e){this.isExtModule=Array.prototype.indexOf.call(this.moduleList,this.type)>-1;var i;if(i=t.isNullOrUndefined(this.model.cssClass)?U:this.model.cssClass.indexOf(U)<0?""===this.model.cssClass?U:this.model.cssClass+" "+U:this.model.cssClass,t.extend(this.model,this.model,{cssClass:i,enableRtl:this.enableRtl,locale:this.locale,change:this.changeHandler.bind(this)}),t.isNullOrUndefined(this.value)||this.updateModelValue(),this.isExtModule)this.notify(c,{module:C[this.type],target:e,type:this.type});else{switch(t.isNullOrUndefined(this.model.showClearButton)&&!t.isBlazor()&&(this.model.showClearButton=!0),this.type){case"Date":this.componentObj=new n.DatePicker(this.model);break;case"DateTime":this.componentObj=new n.DateTimePicker(this.model);break;case"DropDownList":this.componentObj=new a.DropDownList(this.model);break;case"Mask":this.componentObj=new r.MaskedTextBox(this.model);break;case"Numeric":this.model.value&&(this.model.value=this.model.value.toString().replace(/[`~!@#$%^&*()_|\=?;:'",<>\{\}\[\]\\\/]/gi,"")),this.componentObj=new r.NumericTextBox(this.model);break;case"Text":this.componentObj=new r.TextBox(this.model)}this.componentObj.appendTo(e)}},l.prototype.updateAdaptor=function(){switch(this.adaptor){case"UrlAdaptor":this.dataAdaptor=new i.UrlAdaptor;break;case"WebApiAdaptor":this.dataAdaptor=new i.WebApiAdaptor;break;case"ODataV4Adaptor":this.dataAdaptor=new i.ODataV4Adaptor}},l.prototype.loadSpinner=function(e){t.addClass([this.loader],[Q]),"validate"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type?this.spinObj={target:this.loader,width:t.Browser.isDevice?"16px":"14px"}:(t.addClass([this.loader],[K]),t.addClass([this.getEditElement()],[q]),this.spinObj={target:this.loader}),this.formEle&&t.addClass([this.formEle],[J]),this.btnElements&&t.addClass([this.btnElements],[Y]),t.setStyleAttribute(this.loader,{width:"100%"}),s.createSpinner(this.spinObj),s.showSpinner(this.spinObj.target)},l.prototype.removeSpinner=function(e){this.loader.removeAttribute("style"),s.hideSpinner(this.spinObj.target),t.detach(this.spinObj.target.firstChild),"submit"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type||(t.removeClass([this.loader],[K]),t.removeClass([this.getEditElement()],[q])),this.formEle&&t.removeClass([this.formEle],[J]),this.btnElements&&t.removeClass([this.btnElements],[Y]),t.removeClass([this.loader],[Q])},l.prototype.getEditElement=function(){return t.select("."+U,this.formEle)},l.prototype.getLocale=function(e,i){return new t.L10n("inplace-editor",e,this.locale).getConstant(i)},l.prototype.checkValue=function(e){return this.isEmpty(e)?this.emptyText:e},l.prototype.extendModelValue=function(e){var i=this.model;t.extend(i,{value:e}),this.setProperties({model:i},!0)},l.prototype.updateValue=function(){var e=this.value;this.enableHtmlSanitizer&&"string"==typeof this.value&&(e=this.sanitizeHelper(this.value)),t.isNullOrUndefined(this.value)||(this.setProperties({value:d(this.type,e)},!0),this.extendModelValue(d(this.type,e)))},l.prototype.updateModelValue=function(){"MultiSelect"!==this.type||this.isEmpty(this.value)?this.model.value=this.value:this.model.value=this.value.slice()},l.prototype.setValue=function(){this.isExtModule?this.notify(u,{type:this.type}):this.componentObj&&("Numeric"===this.type&&null===this.componentObj.value&&this.componentObj.setProperties({value:null},!0),this.setProperties({value:this.componentObj.value},!0),this.extendModelValue(this.componentObj.value))},l.prototype.getDropDownsValue=function(e){var i;return Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1&&"MultiSelect"!==this.type?i=e?t.select(".e-"+this.type.toLocaleLowerCase(),this.containerEle).value:this.value.toString():"MultiSelect"===this.type&&(this.notify(y,{type:this.type}),i=e?this.printValue:this.value.join()),i},l.prototype.getSendValue=function(){return this.isEmpty(this.value)?"":Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!1):Array.prototype.indexOf.call(this.dateType,this.type)>-1?this.value.toISOString():"DateRange"===this.type?this.value[0].toISOString()+" - "+this.value[1].toISOString():this.value.toString()},l.prototype.getRenderValue=function(){return"Mask"===this.type&&0!==this.componentObj.value.length?this.componentObj.getMaskedValue():Array.prototype.indexOf.call(this.inputDataEle,this.type)>-1?this.componentRoot.value:Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!0):p(this.type,this.value,this.model)},l.prototype.setRtl=function(e){e?t.addClass([this.element],[G]):t.removeClass([this.element],[G])},l.prototype.setFocus=function(){this.isTemplate||(this.isExtModule?this.notify(f,{}):this.componentObj.element.focus())},l.prototype.removeEditor=function(e){t.isBlazor()&&!this.isStringTemplate&&t.resetBlazorTemplate(this.element.id+"template","Template");if(this.tipObj&&this.formEle&&t.closest(this.formEle,"."+D).classList.add(Y),this.unWireDocEvent(),this.destroyComponents(),this.formEle=void 0,t.isNullOrUndefined(t.select("."+T,this.element))?this.tipObj&&("MultiSelect"===this.type&&(t.EventHandler.remove(this.containerEle,"mousedown",this.popMouseDown),t.EventHandler.remove(this.containerEle,"click",this.popClickHandler)),this.tipObj.close(),this.tipObj.destroy(),this.tipObj=void 0):(t.detach(this.inlineWrapper),this.inlineWrapper=void 0),this.containerEle=void 0,t.removeClass([this.valueWrap],[W,Y]),e||this.setProperties({enableEditMode:!1},!0),"EditIconClick"!==this.editableOn){var i="DblClick"===this.editableOn?"editAreaDoubleClick":"editAreaClick";t.isNullOrUndefined(this.valueWrap.parentElement)||this.valueWrap.parentElement.setAttribute("title",this.getLocale(w[this.editableOn],i))}},l.prototype.destroyComponents=function(){this.showButtons&&this.destroyButtons(),this.isExtModule?this.notify(v,{}):(this.templateEle&&(document.body.appendChild(this.templateEle),this.templateEle.style.display="none",this.templateEle=void 0),t.isNullOrUndefined(this.componentObj)||(this.componentObj.destroy(),this.componentObj=void 0)),this.formValidate&&(this.formValidate=void 0),this.submitOnEnter&&this.containerEle&&this.unWireEditorKeyDownEvent(this.containerEle)},l.prototype.destroyButtons=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.remove(this.submitBtn.element,"mousedown",this.submitHandler),t.EventHandler.remove(this.submitBtn.element,"click",this.submitPrevent),t.EventHandler.remove(this.submitBtn.element,"keydown",this.btnKeyDownHandler),this.submitBtn.destroy(),this.submitBtn=void 0),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.remove(this.cancelBtn.element,"mousedown",this.cancelHandler),t.EventHandler.remove(this.cancelBtn.element,"keydown",this.btnKeyDownHandler),this.cancelBtn.destroy(),this.cancelBtn=void 0),this.btnElements=void 0},l.prototype.getQuery=function(e){var t=new i.Query;return Object.keys(e).forEach(function(i){t.addParams(i,e[i])}),t},l.prototype.sendValue=function(){var e=this,t={data:{name:this.name,primaryKey:this.primaryKey,value:this.getSendValue()}};this.trigger("actionBegin",t,function(t){if(t.cancel)e.removeSpinner("submit"),"Popup"===e.mode&&e.updateArrow();else{if(e.isEmpty(e.url)||e.isEmpty(e.primaryKey)||!e.initRender&&(e.initRender||e.prevValue===e.value)){var o={data:{},value:t.data.value};e.triggerSuccess(o)}else if(e.dataManager=new i.DataManager({url:e.url,adaptor:e.dataAdaptor}),"UrlAdaptor"===e.adaptor)e.dataManager.executeQuery(e.getQuery(t.data),e.successHandler.bind(e),e.failureHandler.bind(e));else{e.dataManager.insert(t.data).then(function(t){return e.successHandler(t)}).catch(function(t){return e.failureHandler(t)})}e.dataManager=void 0}})},l.prototype.isEmpty=function(e){return!(!t.isNullOrUndefined(e)&&0!==e.length)},l.prototype.checkIsTemplate=function(){this.isTemplate=!t.isNullOrUndefined(this.template)&&""!==this.template},l.prototype.templateCompile=function(e,i){var o;"string"==typeof i&&(i=i.trim());var n=t.compile(i);if(!t.isNullOrUndefined(n)){var s=!(t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor"))||this.isStringTemplate;o=n({},this,"template",this.element.id+"template",s)}!t.isNullOrUndefined(n)&&o.length>0&&([].slice.call(o).forEach(function(t){e.appendChild(t)}),t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor")&&t.updateBlazorTemplate(this.element.id+"template","Template",this))},l.prototype.sanitizeHelper=function(e){if(this.enableHtmlSanitizer){var i=t.SanitizeHtmlHelper.beforeSanitize();t.extend(i,i,{cancel:!1,helper:null}),this.trigger("beforeSanitizeHtml",i,function(o){i.cancel&&!t.isNullOrUndefined(i.helper)?e=i.helper(e):i.cancel||(e=t.SanitizeHtmlHelper.serializeValue(i,e))})}return e},l.prototype.appendTemplate=function(e,i){i="string"==typeof i?this.sanitizeHelper(i):i,this.setProperties({template:i},!0),"string"==typeof i||t.isNullOrUndefined(i.innerHTML)?("."===i[0]||"#"===i[0])&&document.querySelectorAll(i).length?(this.templateEle=document.querySelector(i),e.appendChild(this.templateEle),this.templateEle.style.display=""):this.templateCompile(e,i):(this.templateEle=i,e.appendChild(this.templateEle))},l.prototype.disable=function(e){e?t.addClass([this.element],[F]):t.removeClass([this.element],[F])},l.prototype.enableEditor=function(e){e?this.renderEditor():this.cancelHandler()},l.prototype.checkValidation=function(e){var i,o=this,n=!0;this.validationRules?(this.formValidate=new r.FormValidator(this.formEle,{rules:this.validationRules,validationComplete:function(s){i={errorMessage:s.message,data:{name:o.name,primaryKey:o.primaryKey,value:o.checkValue(o.getSendValue())}},o.trigger("validating",i,function(i){"failure"===s.status?(s.errorElement.innerText=i.errorMessage,o.toggleErrorClass(!0)):o.toggleErrorClass(!1),!t.isNullOrUndefined(n)&&n&&(n=!1,o.afterValidation(e))})},customPlacement:function(e,i){t.select("."+I,o.formEle).appendChild(i)}}),this.formValidate.validate()):this.afterValidation(e)},l.prototype.afterValidation=function(e){!this.formEle.classList.contains($)&&e&&(this.loadSpinner("validate"),"Popup"===this.mode&&this.updateArrow(),this.sendValue())},l.prototype.toggleErrorClass=function(e){if(!t.isNullOrUndefined(this.formEle)){var i=t.select(".e-input-group",this.formEle);!function(e,i,o){[].slice.call(e).forEach(function(e){e&&("add"===o?t.addClass([e],[i]):t.removeClass([e],[i]))})}([this.formEle,i],$,e?"add":"remove")}},l.prototype.updateArrow=function(){var e=this.tipObj.tipPointerPosition;this.tipObj.tipPointerPosition="Middle"===e?"Auto":"Middle",this.tipObj.tipPointerPosition=e,this.tipObj.dataBind()},l.prototype.triggerSuccess=function(e){var i=this,o=e.value;this.trigger("actionSuccess",e,function(e){i.removeSpinner("submit"),e.cancel||i.renderValue(i.checkValue(e.value!==o?e.value:i.getRenderValue())),e.cancel&&"Inline"===i.mode&&t.removeClass([i.valueWrap],[Y]),i.removeEditor()})},l.prototype.wireEvents=function(){this.wireEditEvent(this.editableOn),t.EventHandler.add(this.editIcon,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.valueKeyDownHandler,this),t.EventHandler.add(document,"scroll",this.scrollResizeHandler,this),window.addEventListener("resize",this.scrollResizeHandler.bind(this)),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.add(this.element,"mousedown",this.mouseDownHandler,this)},l.prototype.wireDocEvent=function(){t.EventHandler.add(document,"mousedown",this.docClickHandler,this)},l.prototype.wireEditEvent=function(e){if("EditIconClick"!==e){var i="Click"===e?"editAreaClick":"editAreaDoubleClick";this.element.setAttribute("title",this.getLocale(w[e],i)),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?this.touchModule=new t.Touch(this.valueWrap,{tap:this.doubleTapHandler.bind(this)}):t.EventHandler.add(this.valueWrap,e.toLowerCase(),this.clickHandler,this)}},l.prototype.wireEditorKeyDownEvent=function(e){t.EventHandler.add(e,"keydown",this.enterKeyDownHandler,this)},l.prototype.wireBtnEvents=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.add(this.submitBtn.element,"mousedown",this.submitHandler,this),t.EventHandler.add(this.submitBtn.element,"click",this.submitPrevent,this),t.EventHandler.add(this.submitBtn.element,"keydown",this.btnKeyDownHandler,this)),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.add(this.cancelBtn.element,"mousedown",this.cancelHandler,this),t.EventHandler.add(this.cancelBtn.element,"keydown",this.btnKeyDownHandler,this))},l.prototype.unWireEvents=function(){this.unWireEditEvent(this.editableOn),t.EventHandler.remove(this.editIcon,"click",this.clickHandler),t.EventHandler.remove(document,"scroll",this.scrollResizeHandler),window.removeEventListener("resize",this.scrollResizeHandler.bind(this)),t.EventHandler.remove(this.element,"keydown",this.valueKeyDownHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.remove(this.element,"mousedown",this.mouseDownHandler)},l.prototype.unWireDocEvent=function(){t.EventHandler.remove(document,"mousedown",this.docClickHandler)},l.prototype.unWireEditEvent=function(e){"EditIconClick"!==e&&(this.element.removeAttribute("title"),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?(this.touchModule.destroy(),this.touchModule=void 0):t.EventHandler.remove(this.valueWrap,e.toLowerCase(),this.clickHandler))},l.prototype.unWireEditorKeyDownEvent=function(e){t.EventHandler.remove(e,"keydown",this.enterKeyDownHandler)},l.prototype.submitPrevent=function(e){e.preventDefault()},l.prototype.btnKeyDownHandler=function(e){var i=e.target;(13===e.keyCode&&13===e.which||32===e.keyCode&&32===e.which)&&(i.classList.contains(z)?this.save():i.classList.contains(_)&&this.cancelHandler()),9!==e.keyCode||!1!==e.shiftKey||!t.isNullOrUndefined(e.target.nextElementSibling)&&"BUTTON"===e.target.nextElementSibling.tagName||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.afterOpenHandler=function(e){"Popup"===this.mode&&"MultiSelect"===this.type&&(t.EventHandler.add(this.containerEle,"mousedown",this.popMouseDown,this),t.EventHandler.add(this.containerEle,"click",this.popClickHandler,this)),"Popup"!==this.mode||this.isEmpty(this.titleEle.innerHTML)||e.element.classList.add(H),"RTE"===this.type?(this.rteModule.refresh(),this.setAttribute(t.select(".e-richtexteditor textarea",this.containerEle),["name"])):"Slider"===this.type&&(this.sliderModule.refresh(),this.setAttribute(t.select(".e-slider-input",this.containerEle),["name"])),this.beginEditArgs.cancelFocus||("Inline"===this.mode&&["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1&&this.model.dataSource instanceof i.DataManager?this.showDropDownPopup():this.setFocus()),this.afterOpenEvent&&(this.tipObj.setProperties({afterOpen:this.afterOpenEvent},!0),this.tipObj.trigger("afterOpen",e))},l.prototype.popMouseDown=function(e){var t=e.target.classList;t.contains("e-chips-close")&&!t.contains("e-close-hooker")&&this.updateArrow()},l.prototype.doubleTapHandler=function(e){e.tapCount>1&&this.clickHandler(e.originalEvent)},l.prototype.clickHandler=function(e){"EditIconClick"!==this.editableOn&&e.stopPropagation(),this.renderEditor()},l.prototype.submitHandler=function(e){e.preventDefault(),this.save()},l.prototype.cancelHandler=function(){this.removeEditor()},l.prototype.popClickHandler=function(e){var i=t.select("."+k,this.element);e.target.classList.contains("e-chips-close")&&this.tipObj.refresh(i)},l.prototype.successHandler=function(e){this.initRender=!1;var t={data:e,value:this.getSendValue()};this.triggerSuccess(t)},l.prototype.failureHandler=function(e){var t=this,i={data:e,value:this.getSendValue()};this.trigger("actionFailure",i,function(e){t.removeSpinner("submit"),"Popup"===t.mode&&t.updateArrow()})},l.prototype.enterKeyDownHandler=function(e){t.closest(e.target,"."+R+" .e-richtexteditor")||(13===e.keyCode&&13===e.which&&t.closest(e.target,"."+R)?this.save():27===e.keyCode&&27===e.which&&this.cancelHandler())},l.prototype.valueKeyDownHandler=function(e){9===e.keyCode&&!0===e.shiftKey&&"BUTTON"!==e.target.tagName&&("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler()),13!==e.keyCode||13!==e.which||!e.target.classList.contains(j)||this.valueWrap.classList.contains(W)||this.element.classList.contains(F)||(e.preventDefault(),this.renderEditor())},l.prototype.mouseDownHandler=function(e){e.target.classList.contains("e-clear-icon")&&(this.isClearTarget=!0)},l.prototype.scrollResizeHandler=function(){"Popup"===this.mode&&this.tipObj&&!t.Browser.isDevice&&this.removeEditor()},l.prototype.docClickHandler=function(e){var i=e.target;if(this.isClearTarget)this.isClearTarget=!1;else{var o=t.closest(i,"."+j),n=t.closest(i,"."+D),s=t.closest(i,"."+U),r=t.closest(i,".e-rte-elements");!t.isNullOrUndefined(o)&&o.isEqualNode(this.element)||!t.isNullOrUndefined(n)&&this.tipObj&&n.id.indexOf(this.valueWrap.id)>-1||!t.isNullOrUndefined(s)||!t.isNullOrUndefined(r)||i.classList.contains("e-chips-close")||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())}},l.prototype.changeHandler=function(e){var t={previousValue:void 0===this.compPrevValue?this.value:this.compPrevValue,value:e.value};"AutoComplete"!==this.type&&"ComboBox"!==this.type&&"DropDownList"!==this.type||(t.itemData=e.itemData,t.previousItemData=e.previousItemData),this.compPrevValue=t.value,this.trigger("change",t)},l.prototype.validate=function(){this.checkValidation(!1)},l.prototype.save=function(){if(this.formEle){this.element.focus(),this.editEle=t.select("."+R,this.formEle);t.select("."+$,this.editEle),this.isTemplate||this.setValue(),this.checkValidation(!0)}},l.prototype.destroy=function(){var i=this;this.removeEditor(t.isBlazor()),this.isExtModule&&this.notify(m,{}),this.unWireEvents();for([F,G].forEach(function(e){t.removeClass([i.element],[e])});this.element.firstElementChild;)this.element.removeChild(this.element.firstElementChild);t.isBlazor()&&this.isServerRendered||e.prototype.destroy.call(this)},l.prototype.getPersistData=function(){return this.addOnPersist(["value"])},l.prototype.requiredModules=function(){var e=[];return e.push({member:C[this.type],args:[this]}),e},l.prototype.getModuleName=function(){return"inplaceeditor"},l.prototype.onPropertyChanged=function(e,t){this.removeEditor();for(var i=0,o=Object.keys(e);i<o.length;i++){switch(o[i]){case"showButtons":e.showButtons?this.appendButtons(this.formEle):this.destroyButtons();break;case"value":this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"emptyText":"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"template":this.checkIsTemplate();break;case"disabled":this.disable(e.disabled);break;case"enableRtl":this.setRtl(e.enableRtl);break;case"cssClass":this.setClass("remove",t.cssClass),this.setClass("add",e.cssClass);break;case"mode":this.enableEditor(this.enableEditMode);break;case"enableEditMode":this.enableEditor(e.enableEditMode);break;case"editableOn":this.unWireEditEvent(t.editableOn),"EditIconClick"!==e.editableOn&&this.wireEditEvent(e.editableOn)}}},Z([t.Property("")],l.prototype,"name",void 0),Z([t.Property(null)],l.prototype,"value",void 0),Z([t.Property("")],l.prototype,"template",void 0),Z([t.Property(!0)],l.prototype,"enableHtmlSanitizer",void 0),Z([t.Property("")],l.prototype,"cssClass",void 0),Z([t.Property("")],l.prototype,"primaryKey",void 0),Z([t.Property("Empty")],l.prototype,"emptyText",void 0),Z([t.Property("")],l.prototype,"url",void 0),Z([t.Property("Popup")],l.prototype,"mode",void 0),Z([t.Property("UrlAdaptor")],l.prototype,"adaptor",void 0),Z([t.Property("Text")],l.prototype,"type",void 0),Z([t.Property("Click")],l.prototype,"editableOn",void 0),Z([t.Property("Never")],l.prototype,"textOption",void 0),Z([t.Property("Submit")],l.prototype,"actionOnBlur",void 0),Z([t.Property(!1)],l.prototype,"enablePersistence",void 0),Z([t.Property(!1)],l.prototype,"disabled",void 0),Z([t.Property(!0)],l.prototype,"showButtons",void 0),Z([t.Property(!1)],l.prototype,"enableEditMode",void 0),Z([t.Property(!0)],l.prototype,"submitOnEnter",void 0),Z([t.Complex({},g)],l.prototype,"popupSettings",void 0),Z([t.Property(null)],l.prototype,"model",void 0),Z([t.Property({iconCss:"e-icons e-save-icon"})],l.prototype,"saveButton",void 0),Z([t.Property({iconCss:"e-icons e-cancel-icon"})],l.prototype,"cancelButton",void 0),Z([t.Property(null)],l.prototype,"validationRules",void 0),Z([t.Event()],l.prototype,"created",void 0),Z([t.Event()],l.prototype,"beforeSanitizeHtml",void 0),Z([t.Event()],l.prototype,"actionBegin",void 0),Z([t.Event()],l.prototype,"actionSuccess",void 0),Z([t.Event()],l.prototype,"actionFailure",void 0),Z([t.Event()],l.prototype,"validating",void 0),Z([t.Event()],l.prototype,"beginEdit",void 0),Z([t.Event()],l.prototype,"change",void 0),Z([t.Event()],l.prototype,"destroyed",void 0),l=Z([t.NotifyPropertyChanges],l)}(t.Component),te=function(){function e(e,t){this.parent=e,this.module=t,this.addEventListener()}return e.prototype.render=function(e){this.module.render(e)},e.prototype.showPopup=function(){this.module.showPopup()},e.prototype.focus=function(){this.module.focus()},e.prototype.update=function(e){this.module.updateValue(e)},e.prototype.getValue=function(){this.module.getRenderValue()},e.prototype.destroyComponent=function(){t.isNullOrUndefined(this.module.compObj)||(this.module.compObj.destroy(),this.module.compObj=void 0)},e.prototype.destroy=function(){this.destroyComponent(),this.removeEventListener()},e.prototype.addEventListener=function(){this.parent.on(c,this.render,this),this.parent.on(f,this.focus,this),this.parent.on(b,this.showPopup,this),this.parent.on(u,this.update,this),this.parent.on(y,this.getValue,this),this.parent.on(v,this.destroyComponent,this),this.parent.on(m,this.destroy,this)},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off(c,this.render),this.parent.off(f,this.focus),this.parent.off(b,this.showPopup),this.parent.off(u,this.update),this.parent.off(y,this.getValue),this.parent.off(v,this.destroyComponent),this.parent.off(m,this.destroy))},e}(),ie=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.atcModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.AutoComplete(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"AutoComplete"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"auto-complete"},e}(),oe=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.colorModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new r.ColorPicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Color"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"color-picker"},e}(),ne=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.comboBoxModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.ComboBox(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.updateValue=function(e){this.compObj&&"ComboBox"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"combo-box"},e}(),se=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.dateRangeModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.DateRangePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"DateRange"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"date-range-picker"},e}(),re=function(){return(re=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)},ae=function(){function e(e){this.isPopOpen=!1,this.compObj=void 0,this.parent=e,this.parent.multiSelectModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){var t=re({},this.parent.model);this.openEvent=t.open,this.closeEvent=t.close,t.open=this.openHandler.bind(this),t.close=this.closeHandler.bind(this),this.compObj=new a.MultiSelect(t),this.compObj.appendTo(e.target)},e.prototype.openHandler=function(e){this.isPopOpen=!0,this.openEvent&&(this.compObj.setProperties({open:this.openEvent},!0),this.compObj.trigger("open",e))},e.prototype.closeHandler=function(e){this.isPopOpen=!1,this.closeEvent&&(this.compObj.setProperties({close:this.closeEvent},!0),this.compObj.trigger("close",e))},e.prototype.focus=function(){if(!this.isPopOpen){var e=document.createEvent("MouseEvent");e.initEvent("mousedown",!0,!0),t.closest(this.compObj.element,".e-multi-select-wrapper").dispatchEvent(e)}},e.prototype.updateValue=function(e){this.compObj&&"MultiSelect"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRenderValue=function(){this.parent.printValue=this.compObj.text},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"multi-select"},e}(),le=function(){function e(e){this.compObj=void 0,l.RichTextEditor.Inject(l.HtmlEditor,l.MarkdownEditor,l.Toolbar,l.Link,l.Image,l.QuickToolbar,l.Table),this.parent=e,this.parent.rteModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new l.RichTextEditor(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"RTE"===e.type&&(this.parent.setProperties({value:this.getRteValue()},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRteValue=function(){var e;return"Markdown"===this.compObj.editorMode?""===(e=this.compObj.contentModule.getEditPanel().value)?"":e:"<p><br></p>"===(e=this.compObj.contentModule.getEditPanel().innerHTML)||"&lt;p&gt;&lt;br&gt;&lt;/p&gt;"===e||""===e?"":e},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"rte"},e}(),pe=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.sliderModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new r.Slider(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Slider"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"slider"},e}(),de=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.timeModule=this,this.base=new te(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.TimePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"Time"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"time-picker"},e}();e.parseValue=p,e.getCompValue=d,e.render=c,e.update=u,e.destroy=m,e.setFocus=f,e.accessValue=y,e.destroyModules=v,e.showPopup=b,e.PopupSettings=g,e.modulesList=C,e.localeConstant=w,e.ROOT=j,e.ROOT_TIP=D,e.VALUE_WRAPPER=k,e.VALUE=P,e.OVERLAY_ICON=M,e.TIP_TITLE=H,e.TITLE=S,e.INLINE=T,e.POPUP=B,e.WRAPPER=V,e.LOADING=N,e.FORM=x,e.CTRL_GROUP=A,e.INPUT=R,e.BUTTONS=L,e.EDITABLE_ERROR=I,e.ELEMENTS=U,e.OPEN=W,e.BTN_SAVE=z,e.BTN_CANCEL=_,e.RTE_SPIN_WRAP=K,e.CTRL_OVERLAY=q,e.DISABLE=F,e.ICONS="e-icons",e.PRIMARY="e-primary",e.SHOW=Q,e.HIDE=Y,e.RTL=G,e.ERROR=$,e.LOAD=J,e.InPlaceEditor=ee,e.Base=te,e.AutoComplete=ie,e.ColorPicker=oe,e.ComboBox=ne,e.DateRangePicker=se,e.MultiSelect=ae,e.Rte=le,e.Slider=pe,e.TimePicker=de,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-inplace-editor.umd.min.js.map
/*!
* filename: ej2-inplace-editor.min.js
* version : 18.2.48
* version : 18.2.54
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.inplaceeditor=function(e,t,i,o,n,s,r,a,l){"use strict";function p(e,i,o){if(t.isNullOrUndefined(i)||""===i)return"";var n,s;switch(e){case"Color":var r=i;n=r.length>7?r.slice(0,-2):r;break;case"Date":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateRange":s=o.format;var a=i;n=h.formatDate(a[0],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" - "+h.formatDate(a[1],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateTime":s=o.format,n=t.isNullOrUndefined(s)||""===s?h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" "+h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"}):h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"Time":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"});break;case"Numeric":s=t.isNullOrUndefined(o.format)?"n2":o.format;var l=t.isNullOrUndefined(i)?null:"number"==typeof i?i:h.parseNumber(i);n=h.formatNumber(l,{format:s});break;default:n=i.toString()}return n}function d(e,i){if(t.isNullOrUndefined(i)||""===i)return i;if("Date"!==e&&"Time"!==e&&"DateTime"!==e||"string"!=typeof i){if("DateRange"===e)if("object"==typeof i&&"string"==typeof i[0])i=[new Date(i[0]),new Date(i[1])];else if("string"==typeof i){var o=i.split("-");i=[new Date(o[0]),new Date(o[1])]}}else i=new Date(i);return i}var h=new t.Internationalization,c=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),u=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},m=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return c(i,e),u([t.Property("")],i.prototype,"title",void 0),u([t.Property(null)],i.prototype,"model",void 0),i}(t.ChildProperty),y={AutoComplete:"auto-complete",Color:"color-picker",ComboBox:"combo-box",DateRange:"date-range-picker",MultiSelect:"multi-select",RTE:"rte",Slider:"slider",Time:"time-picker"},f={Click:{editAreaClick:"Click to edit"},DblClick:{editAreaDoubleClick:"Double click to edit"},EditIconClick:{editAreaClick:"Click to edit"}},v="e-inplaceeditor",b="e-inplaceeditor-tip",E="e-editable-value-wrapper",O="e-editable-value",g="e-editable-title",w="e-editable-inline",C="e-editable-popup",j="e-editable-form",k="e-editable-component",D="e-editable-action-buttons",P="e-editable-elements",M="e-editable-open",H="e-hide",S="e-rtl",T="e-loading",B=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),V=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},N=function(e){function l(t,i){var o=e.call(this,t,i)||this;return o.initRender=!0,o.isTemplate=!1,o.isExtModule=!1,o.submitBtn=void 0,o.cancelBtn=void 0,o.isClearTarget=!1,o.btnElements=void 0,o.dataManager=void 0,o.divComponents=["RTE","Slider"],o.clearComponents=["AutoComplete","Mask","Text"],o.dateType=["Date","DateTime","Time"],o.inputDataEle=["Date","DateTime","DateRange","Time","Numeric"],o.dropDownEle=["AutoComplete","ComboBox","DropDownList","MultiSelect"],o.moduleList=["AutoComplete","Color","ComboBox","DateRange","MultiSelect","RTE","Slider","Time"],o.needsID=!0,o}return B(l,e),l.prototype.preRender=function(){t.isNullOrUndefined(this.model)&&this.setProperties({model:{}},!0),this.titleEle=this.createElement("div",{className:g}),!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.afterOpenEvent=this.popupSettings.model.afterOpen)},l.prototype.render=function(){this.element.setAttribute("tabindex","0"),this.checkIsTemplate(),this.disable(this.disabled),this.updateAdaptor(),this.appendValueElement(),this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue(),this.wireEvents(),this.setRtl(this.enableRtl),this.enableEditor(this.enableEditMode),this.setClass("add",this.cssClass),this.renderComplete()},l.prototype.setClass=function(e,i){this.isEmpty(i)||("add"===e?t.addClass([this.element],[i]):t.removeClass([this.element],[i]))},l.prototype.appendValueElement=function(){this.valueWrap=this.createElement("div",{id:this.element.id+"_wrap",className:E}),t.isBlazor()||(this.element.innerHTML=""),this.valueEle=this.createElement("span",{className:O}),this.editIcon=this.createElement("span",{className:"e-editable-overlay-icon e-icons",attrs:{title:this.getLocale({editIcon:"Click to edit"},"editIcon")}}),this.valueWrap.appendChild(this.valueEle),this.valueWrap.appendChild(this.editIcon),this.element.appendChild(this.valueWrap)},l.prototype.renderInitialValue=function(){!(["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1)||t.isNullOrUndefined(this.value)||this.isEmpty(this.value.toString())||t.isNullOrUndefined(this.model.fields)||t.isNullOrUndefined(this.model.dataSource)?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):(this.renderValue(this.getLocale({loadingText:"Loading..."},"loadingText")),this.valueWrap.classList.add(T),r.createSpinner({target:this.valueWrap,width:10}),r.showSpinner(this.valueWrap),this.getInitFieldMapValue())},l.prototype.getInitFieldMapValue=function(){var e=this,o=this.model,n=o.fields.text,s=o.fields.value,r=t.isNullOrUndefined(o.query)?new i.Query:o.query;o.dataSource instanceof i.DataManager?o.dataSource.executeQuery(this.getInitQuery(o,r)).then(function(t){e.updateInitValue(n,s,t.result)}):this.updateInitValue(n,s,new i.DataManager(o.dataSource).executeLocal(this.getInitQuery(o,r)))},l.prototype.getInitQuery=function(e,t){var o,n=e.fields.value,s=this.value;if("MultiSelect"!==this.type||"object"!=typeof this.value)o=new i.Predicate(n,"equal",this.value);else for(var r=0,a=0,l=s;a<l.length;a++){var p=l[a];o=0===r?o=new i.Predicate(n,"equal",p):o.or(n,"equal",p),r++}return t.where(o)},l.prototype.updateInitValue=function(e,i,o){if(!(o.length<=0)){if(1===o.length)this.valueEle.innerHTML=this.checkValue(t.getValue(t.isNullOrUndefined(e)?i:e,o[0]));else{for(var n=[],s=0,a=o;s<a.length;s++){var l=a[s];n.push(t.getValue(t.isNullOrUndefined(e)?i:e,l))}this.valueEle.innerHTML=this.checkValue(n.toString())}r.hideSpinner(this.valueWrap),this.valueWrap.classList.remove(T)}},l.prototype.renderValue=function(e){this.enableHtmlSanitizer&&"RTE"!==this.type&&"MultiSelect"!==this.type?this.valueEle.innerText=e:this.valueEle.innerHTML=e,"Color"===this.type&&t.setStyleAttribute(this.valueEle,{color:e}),"Inline"===this.mode&&t.removeClass([this.valueWrap],[H])},l.prototype.renderEditor=function(){if(this.prevValue=this.value,this.beginEditArgs={mode:this.mode,cancelFocus:!1,cancel:!1},this.trigger("beginEdit",this.beginEditArgs),!this.beginEditArgs.cancel){var e=void 0,i=t.select("."+E,this.element);if("EditIconClick"!==this.editableOn&&i.parentElement.removeAttribute("title"),!this.valueWrap.classList.contains(M)){if("Inline"===this.mode)this.loaderWidth=this.valueWrap.offsetWidth,t.addClass([this.valueWrap],[H]),this.inlineWrapper=this.createElement("div",{className:w}),this.element.appendChild(this.inlineWrapper),["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1?this.checkRemoteData(this.model):this.renderAndOpen();else{!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.popupSettings.model.afterOpen=this.afterOpenHandler.bind(this));var o=this.createElement("div",{className:C});this.isEmpty(this.popupSettings.title)||(this.titleEle.innerHTML=this.popupSettings.title,o.appendChild(this.titleEle)),e={content:o,opensOn:"Custom",enableRtl:this.enableRtl,cssClass:b,afterOpen:this.afterOpenHandler.bind(this)},o.appendChild(this.renderControl(document.body)),t.extend(e,this.popupSettings.model,e,!0),this.tipObj=new r.Tooltip(e),this.tipObj.appendTo(i),this.tipObj.open(i)}"Ignore"!==this.actionOnBlur&&this.wireDocEvent(),t.addClass([this.valueWrap],[M]),this.setProperties({enableEditMode:!0},!0)}}},l.prototype.renderAndOpen=function(){this.renderControl(this.inlineWrapper),this.afterOpenHandler(null)},l.prototype.checkRemoteData=function(e){var o=this;e.dataSource instanceof i.DataManager?(e.dataBound=function(){o.afterOpenHandler(null)},this.renderControl(this.inlineWrapper),(t.isNullOrUndefined(e.value)&&t.isNullOrUndefined(this.value)||e.value===this.value&&!t.isNullOrUndefined(e.value)&&0===e.value.length)&&this.showDropDownPopup()):this.renderAndOpen()},l.prototype.showDropDownPopup=function(){"DropDownList"===this.type?(this.model.allowFiltering||this.componentObj.focusIn(),this.componentObj.showPopup()):this.isExtModule&&this.notify("MultiSelect"===this.type?"set-focus":"show-popup",{})},l.prototype.setAttribute=function(e,t){var i=this.name&&0!==this.name.length?this.name:this.element.id;t.forEach(function(t){e.setAttribute(t,"id"===t?i+"_editor":i)})},l.prototype.renderControl=function(e){var t;this.containerEle=this.createElement("div",{className:"e-editable-wrapper"}),this.loader=this.createElement("div",{className:"e-editable-loading"}),this.formEle=this.createElement("form",{className:j});var i=this.createElement("div",{className:"e-component-group"}),o=this.createElement("div",{className:k});return e.appendChild(this.containerEle),this.loadSpinner(),this.containerEle.appendChild(this.formEle),this.formEle.appendChild(i),this.isTemplate?this.appendTemplate(o,this.template):(Array.prototype.indexOf.call(this.divComponents,this.type)>-1?(t=this.createElement("div"),this.setAttribute(t,["id"])):(t=this.createElement("input"),this.setAttribute(t,["id","name"])),this.componentRoot=t,o.appendChild(t),o.appendChild(this.loader)),i.appendChild(o),i.appendChild(this.createElement("div",{className:"e-editable-error"})),this.appendButtons(this.formEle),this.isTemplate||this.renderComponent(t),this.removeSpinner(),this.submitOnEnter&&this.wireEditorKeyDownEvent(this.containerEle),this.containerEle},l.prototype.appendButtons=function(e){this.showButtons&&e&&(this.btnElements=this.renderButtons(),e.appendChild(this.btnElements),this.wireBtnEvents())},l.prototype.renderButtons=function(){var e=this.createElement("div",{className:D}),i=t.isNullOrUndefined(this.saveButton.content)||0===this.saveButton.content.length?"":" e-primary";return this.submitBtn=this.createButtons({constant:"save",type:"submit",container:e,title:{save:"Save"},model:this.saveButton,className:"e-btn-save"+i}),this.cancelBtn=this.createButtons({type:"button",constant:"cancel",title:{cancel:"Cancel"},container:e,model:this.cancelButton,className:"e-btn-cancel"}),e},l.prototype.createButtons=function(e){var t=void 0;if(Object.keys(e.model).length>0){var i=this.createElement("button",{className:e.className,attrs:{type:e.type,title:this.getLocale(e.title,e.constant)}});e.container.appendChild(i),t=new o.Button(e.model,i)}return t},l.prototype.renderComponent=function(e){this.isExtModule=Array.prototype.indexOf.call(this.moduleList,this.type)>-1;var i;if(i=t.isNullOrUndefined(this.model.cssClass)?P:this.model.cssClass.indexOf(P)<0?""===this.model.cssClass?P:this.model.cssClass+" "+P:this.model.cssClass,t.extend(this.model,this.model,{cssClass:i,enableRtl:this.enableRtl,locale:this.locale}),t.isNullOrUndefined(this.value)||this.updateModelValue(),this.isExtModule)this.notify("render",{module:y[this.type],target:e,type:this.type});else{switch(t.isNullOrUndefined(this.model.showClearButton)&&!t.isBlazor()&&(this.model.showClearButton=!0),this.type){case"Date":this.componentObj=new n.DatePicker(this.model);break;case"DateTime":this.componentObj=new n.DateTimePicker(this.model);break;case"DropDownList":this.componentObj=new a.DropDownList(this.model);break;case"Mask":this.componentObj=new s.MaskedTextBox(this.model);break;case"Numeric":this.model.value&&(this.model.value=this.model.value.toString().replace(/[`~!@#$%^&*()_|\=?;:'",<>\{\}\[\]\\\/]/gi,"")),this.componentObj=new s.NumericTextBox(this.model);break;case"Text":this.componentObj=new s.TextBox(this.model)}this.componentObj.appendTo(e)}},l.prototype.updateAdaptor=function(){switch(this.adaptor){case"UrlAdaptor":this.dataAdaptor=new i.UrlAdaptor;break;case"WebApiAdaptor":this.dataAdaptor=new i.WebApiAdaptor;break;case"ODataV4Adaptor":this.dataAdaptor=new i.ODataV4Adaptor}},l.prototype.loadSpinner=function(e){t.addClass([this.loader],["e-show"]),"validate"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type?this.spinObj={target:this.loader,width:t.Browser.isDevice?"16px":"14px"}:(t.addClass([this.loader],["e-rte-spin-wrap"]),t.addClass([this.getEditElement()],["e-control-overlay"]),this.spinObj={target:this.loader}),this.formEle&&t.addClass([this.formEle],[T]),this.btnElements&&t.addClass([this.btnElements],[H]),t.setStyleAttribute(this.loader,{width:"100%"}),r.createSpinner(this.spinObj),r.showSpinner(this.spinObj.target)},l.prototype.removeSpinner=function(e){this.loader.removeAttribute("style"),r.hideSpinner(this.spinObj.target),t.detach(this.spinObj.target.firstChild),"submit"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type||(t.removeClass([this.loader],["e-rte-spin-wrap"]),t.removeClass([this.getEditElement()],["e-control-overlay"])),this.formEle&&t.removeClass([this.formEle],[T]),this.btnElements&&t.removeClass([this.btnElements],[H]),t.removeClass([this.loader],["e-show"])},l.prototype.getEditElement=function(){return t.select("."+P,this.formEle)},l.prototype.getLocale=function(e,i){return new t.L10n("inplace-editor",e,this.locale).getConstant(i)},l.prototype.checkValue=function(e){return this.isEmpty(e)?this.emptyText:e},l.prototype.extendModelValue=function(e){var i=this.model;t.extend(i,{value:e}),this.setProperties({model:i},!0)},l.prototype.updateValue=function(){var e=this.value;this.enableHtmlSanitizer&&"string"==typeof this.value&&(e=this.sanitizeHelper(this.value)),t.isNullOrUndefined(this.value)||(this.setProperties({value:d(this.type,e)},!0),this.extendModelValue(d(this.type,e)))},l.prototype.updateModelValue=function(){"MultiSelect"!==this.type||this.isEmpty(this.value)?this.model.value=this.value:this.model.value=this.value.slice()},l.prototype.setValue=function(){this.isExtModule?this.notify("update",{type:this.type}):this.componentObj&&("Numeric"===this.type&&null===this.componentObj.value&&this.componentObj.setProperties({value:0},!0),this.setProperties({value:this.componentObj.value},!0),this.extendModelValue(this.componentObj.value))},l.prototype.getDropDownsValue=function(e){var i;return Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1&&"MultiSelect"!==this.type?i=e?t.select(".e-"+this.type.toLocaleLowerCase(),this.containerEle).value:this.value.toString():"MultiSelect"===this.type&&(this.notify("access-value",{type:this.type}),i=e?this.printValue:this.value.join()),i},l.prototype.getSendValue=function(){return this.isEmpty(this.value)?"":Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!1):Array.prototype.indexOf.call(this.dateType,this.type)>-1?this.value.toISOString():"DateRange"===this.type?this.value[0].toISOString()+" - "+this.value[1].toISOString():this.value.toString()},l.prototype.getRenderValue=function(){return"Mask"===this.type&&0!==this.componentObj.value.length?this.componentObj.getMaskedValue():Array.prototype.indexOf.call(this.inputDataEle,this.type)>-1?this.componentRoot.value:Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!0):p(this.type,this.value,this.model)},l.prototype.setRtl=function(e){e?t.addClass([this.element],[S]):t.removeClass([this.element],[S])},l.prototype.setFocus=function(){this.isTemplate||(this.isExtModule?this.notify("set-focus",{}):this.componentObj.element.focus())},l.prototype.removeEditor=function(e){t.isBlazor()&&!this.isStringTemplate&&t.resetBlazorTemplate(this.element.id+"template","Template");if(this.tipObj&&this.formEle&&t.closest(this.formEle,"."+b).classList.add(H),this.unWireDocEvent(),this.destroyComponents(),this.formEle=void 0,t.isNullOrUndefined(t.select("."+w,this.element))?this.tipObj&&("MultiSelect"===this.type&&(t.EventHandler.remove(this.containerEle,"mousedown",this.popMouseDown),t.EventHandler.remove(this.containerEle,"click",this.popClickHandler)),this.tipObj.close(),this.tipObj.destroy(),this.tipObj=void 0):(t.detach(this.inlineWrapper),this.inlineWrapper=void 0),this.containerEle=void 0,t.removeClass([this.valueWrap],[M,H]),e||this.setProperties({enableEditMode:!1},!0),"EditIconClick"!==this.editableOn){var i="DblClick"===this.editableOn?"editAreaDoubleClick":"editAreaClick";t.isNullOrUndefined(this.valueWrap.parentElement)||this.valueWrap.parentElement.setAttribute("title",this.getLocale(f[this.editableOn],i))}},l.prototype.destroyComponents=function(){this.showButtons&&this.destroyButtons(),this.isExtModule?this.notify("destroy-modules",{}):(this.templateEle&&(document.body.appendChild(this.templateEle),this.templateEle.style.display="none",this.templateEle=void 0),t.isNullOrUndefined(this.componentObj)||(this.componentObj.destroy(),this.componentObj=void 0)),this.formValidate&&(this.formValidate=void 0),this.submitOnEnter&&this.containerEle&&this.unWireEditorKeyDownEvent(this.containerEle)},l.prototype.destroyButtons=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.remove(this.submitBtn.element,"mousedown",this.submitHandler),t.EventHandler.remove(this.submitBtn.element,"click",this.submitPrevent),t.EventHandler.remove(this.submitBtn.element,"keydown",this.btnKeyDownHandler),this.submitBtn.destroy(),this.submitBtn=void 0),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.remove(this.cancelBtn.element,"mousedown",this.cancelHandler),t.EventHandler.remove(this.cancelBtn.element,"keydown",this.btnKeyDownHandler),this.cancelBtn.destroy(),this.cancelBtn=void 0),this.btnElements=void 0},l.prototype.getQuery=function(e){var t=new i.Query;return Object.keys(e).forEach(function(i){t.addParams(i,e[i])}),t},l.prototype.sendValue=function(){var e=this,t={data:{name:this.name,primaryKey:this.primaryKey,value:this.getSendValue()}};this.trigger("actionBegin",t,function(t){if(t.cancel)e.removeSpinner("submit"),"Popup"===e.mode&&e.updateArrow();else{if(e.isEmpty(e.url)||e.isEmpty(e.primaryKey)||!e.initRender&&(e.initRender||e.prevValue===e.value)){var o={data:{},value:t.data.value};e.triggerSuccess(o)}else e.dataManager=new i.DataManager({url:e.url,adaptor:e.dataAdaptor}),"UrlAdaptor"===e.adaptor?e.dataManager.executeQuery(e.getQuery(t.data),e.successHandler.bind(e),e.failureHandler.bind(e)):e.dataManager.insert(t.data).then(function(t){return e.successHandler(t)}).catch(function(t){return e.failureHandler(t)});e.dataManager=void 0}})},l.prototype.isEmpty=function(e){return!(!t.isNullOrUndefined(e)&&0!==e.length)},l.prototype.checkIsTemplate=function(){this.isTemplate=!t.isNullOrUndefined(this.template)&&""!==this.template},l.prototype.templateCompile=function(e,i){var o;"string"==typeof i&&(i=i.trim());var n=t.compile(i);if(!t.isNullOrUndefined(n)){var s=!(t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor"))||this.isStringTemplate;o=n({},this,"template",this.element.id+"template",s)}!t.isNullOrUndefined(n)&&o.length>0&&([].slice.call(o).forEach(function(t){e.appendChild(t)}),t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor")&&t.updateBlazorTemplate(this.element.id+"template","Template",this))},l.prototype.sanitizeHelper=function(e){if(this.enableHtmlSanitizer){var i=t.SanitizeHtmlHelper.beforeSanitize(),o={cancel:!1,helper:null};t.extend(i,i,o),this.trigger("beforeSanitizeHtml",i,function(o){i.cancel&&!t.isNullOrUndefined(i.helper)?e=i.helper(e):i.cancel||(e=t.SanitizeHtmlHelper.serializeValue(i,e))})}return e},l.prototype.appendTemplate=function(e,i){i="string"==typeof i?this.sanitizeHelper(i):i,this.setProperties({template:i},!0),"string"==typeof i||t.isNullOrUndefined(i.innerHTML)?("."===i[0]||"#"===i[0])&&document.querySelectorAll(i).length?(this.templateEle=document.querySelector(i),e.appendChild(this.templateEle),this.templateEle.style.display=""):this.templateCompile(e,i):(this.templateEle=i,e.appendChild(this.templateEle))},l.prototype.disable=function(e){e?t.addClass([this.element],["e-disable"]):t.removeClass([this.element],["e-disable"])},l.prototype.enableEditor=function(e){e?this.renderEditor():this.cancelHandler()},l.prototype.checkValidation=function(e){var i,o=this,n=!0;this.validationRules?(this.formValidate=new s.FormValidator(this.formEle,{rules:this.validationRules,validationComplete:function(s){i={errorMessage:s.message,data:{name:o.name,primaryKey:o.primaryKey,value:o.checkValue(o.getSendValue())}},o.trigger("validating",i,function(i){"failure"===s.status?(s.errorElement.innerText=i.errorMessage,o.toggleErrorClass(!0)):o.toggleErrorClass(!1),!t.isNullOrUndefined(n)&&n&&(n=!1,o.afterValidation(e))})},customPlacement:function(e,i){t.select(".e-editable-error",o.formEle).appendChild(i)}}),this.formValidate.validate()):this.afterValidation(e)},l.prototype.afterValidation=function(e){!this.formEle.classList.contains("e-error")&&e&&(this.loadSpinner("validate"),"Popup"===this.mode&&this.updateArrow(),this.sendValue())},l.prototype.toggleErrorClass=function(e){if(!t.isNullOrUndefined(this.formEle)){var i=t.select(".e-input-group",this.formEle);!function(e,i,o){[].slice.call(e).forEach(function(e){e&&("add"===o?t.addClass([e],[i]):t.removeClass([e],[i]))})}([this.formEle,i],"e-error",e?"add":"remove")}},l.prototype.updateArrow=function(){var e=this.tipObj.tipPointerPosition;this.tipObj.tipPointerPosition="Middle"===e?"Auto":"Middle",this.tipObj.tipPointerPosition=e,this.tipObj.dataBind()},l.prototype.triggerSuccess=function(e){var i=this,o=e.value;this.trigger("actionSuccess",e,function(e){i.removeSpinner("submit"),e.cancel||i.renderValue(i.checkValue(e.value!==o?e.value:i.getRenderValue())),e.cancel&&"Inline"===i.mode&&t.removeClass([i.valueWrap],[H]),i.removeEditor()})},l.prototype.wireEvents=function(){this.wireEditEvent(this.editableOn),t.EventHandler.add(this.editIcon,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.valueKeyDownHandler,this),t.EventHandler.add(document,"scroll",this.scrollResizeHandler,this),window.addEventListener("resize",this.scrollResizeHandler.bind(this)),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.add(this.element,"mousedown",this.mouseDownHandler,this)},l.prototype.wireDocEvent=function(){t.EventHandler.add(document,"mousedown",this.docClickHandler,this)},l.prototype.wireEditEvent=function(e){if("EditIconClick"!==e){var i="Click"===e?"editAreaClick":"editAreaDoubleClick";this.element.setAttribute("title",this.getLocale(f[e],i)),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?this.touchModule=new t.Touch(this.valueWrap,{tap:this.doubleTapHandler.bind(this)}):t.EventHandler.add(this.valueWrap,e.toLowerCase(),this.clickHandler,this)}},l.prototype.wireEditorKeyDownEvent=function(e){t.EventHandler.add(e,"keydown",this.enterKeyDownHandler,this)},l.prototype.wireBtnEvents=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.add(this.submitBtn.element,"mousedown",this.submitHandler,this),t.EventHandler.add(this.submitBtn.element,"click",this.submitPrevent,this),t.EventHandler.add(this.submitBtn.element,"keydown",this.btnKeyDownHandler,this)),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.add(this.cancelBtn.element,"mousedown",this.cancelHandler,this),t.EventHandler.add(this.cancelBtn.element,"keydown",this.btnKeyDownHandler,this))},l.prototype.unWireEvents=function(){this.unWireEditEvent(this.editableOn),t.EventHandler.remove(this.editIcon,"click",this.clickHandler),t.EventHandler.remove(document,"scroll",this.scrollResizeHandler),window.removeEventListener("resize",this.scrollResizeHandler.bind(this)),t.EventHandler.remove(this.element,"keydown",this.valueKeyDownHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.remove(this.element,"mousedown",this.mouseDownHandler)},l.prototype.unWireDocEvent=function(){t.EventHandler.remove(document,"mousedown",this.docClickHandler)},l.prototype.unWireEditEvent=function(e){"EditIconClick"!==e&&(this.element.removeAttribute("title"),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?(this.touchModule.destroy(),this.touchModule=void 0):t.EventHandler.remove(this.valueWrap,e.toLowerCase(),this.clickHandler))},l.prototype.unWireEditorKeyDownEvent=function(e){t.EventHandler.remove(e,"keydown",this.enterKeyDownHandler)},l.prototype.submitPrevent=function(e){e.preventDefault()},l.prototype.btnKeyDownHandler=function(e){var i=e.target;(13===e.keyCode&&13===e.which||32===e.keyCode&&32===e.which)&&(i.classList.contains("e-btn-save")?this.save():i.classList.contains("e-btn-cancel")&&this.cancelHandler()),9!==e.keyCode||!1!==e.shiftKey||!t.isNullOrUndefined(e.target.nextElementSibling)&&"BUTTON"===e.target.nextElementSibling.tagName||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.afterOpenHandler=function(e){"Popup"===this.mode&&"MultiSelect"===this.type&&(t.EventHandler.add(this.containerEle,"mousedown",this.popMouseDown,this),t.EventHandler.add(this.containerEle,"click",this.popClickHandler,this)),"Popup"!==this.mode||this.isEmpty(this.titleEle.innerHTML)||e.element.classList.add("e-editable-tip-title"),"RTE"===this.type?(this.rteModule.refresh(),this.setAttribute(t.select(".e-richtexteditor textarea",this.containerEle),["name"])):"Slider"===this.type&&(this.sliderModule.refresh(),this.setAttribute(t.select(".e-slider-input",this.containerEle),["name"])),this.beginEditArgs.cancelFocus||("Inline"===this.mode&&["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1&&this.model.dataSource instanceof i.DataManager?this.showDropDownPopup():this.setFocus()),this.afterOpenEvent&&(this.tipObj.setProperties({afterOpen:this.afterOpenEvent},!0),this.tipObj.trigger("afterOpen",e))},l.prototype.popMouseDown=function(e){var t=e.target.classList;t.contains("e-chips-close")&&!t.contains("e-close-hooker")&&this.updateArrow()},l.prototype.doubleTapHandler=function(e){e.tapCount>1&&this.clickHandler(e.originalEvent)},l.prototype.clickHandler=function(e){"EditIconClick"!==this.editableOn&&e.stopPropagation(),this.renderEditor()},l.prototype.submitHandler=function(e){e.preventDefault(),this.save()},l.prototype.cancelHandler=function(){this.removeEditor()},l.prototype.popClickHandler=function(e){var i=t.select("."+E,this.element);e.target.classList.contains("e-chips-close")&&this.tipObj.refresh(i)},l.prototype.successHandler=function(e){this.initRender=!1;var t={data:e,value:this.getSendValue()};this.triggerSuccess(t)},l.prototype.failureHandler=function(e){var t=this,i={data:e,value:this.getSendValue()};this.trigger("actionFailure",i,function(e){t.removeSpinner("submit"),"Popup"===t.mode&&t.updateArrow()})},l.prototype.enterKeyDownHandler=function(e){t.closest(e.target,"."+k+" .e-richtexteditor")||(13===e.keyCode&&13===e.which&&t.closest(e.target,"."+k)?this.save():27===e.keyCode&&27===e.which&&this.cancelHandler())},l.prototype.valueKeyDownHandler=function(e){9===e.keyCode&&!0===e.shiftKey&&"BUTTON"!==e.target.tagName&&("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler()),13!==e.keyCode||13!==e.which||!e.target.classList.contains(v)||this.valueWrap.classList.contains(M)||this.element.classList.contains("e-disable")||(e.preventDefault(),this.renderEditor())},l.prototype.mouseDownHandler=function(e){e.target.classList.contains("e-clear-icon")&&(this.isClearTarget=!0)},l.prototype.scrollResizeHandler=function(){"Popup"===this.mode&&this.tipObj&&!t.Browser.isDevice&&this.removeEditor()},l.prototype.docClickHandler=function(e){var i=e.target;if(this.isClearTarget)return void(this.isClearTarget=!1);var o=t.closest(i,"."+v),n=t.closest(i,"."+b),s=t.closest(i,"."+P),r=t.closest(i,".e-rte-elements");!t.isNullOrUndefined(o)&&o.isEqualNode(this.element)||!t.isNullOrUndefined(n)&&this.tipObj&&n.id.indexOf(this.valueWrap.id)>-1||!t.isNullOrUndefined(s)||!t.isNullOrUndefined(r)||i.classList.contains("e-chips-close")||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.validate=function(){this.checkValidation(!1)},l.prototype.save=function(){if(this.formEle){this.element.focus(),this.editEle=t.select("."+k,this.formEle);t.select(".e-error",this.editEle),this.isTemplate||this.setValue(),this.checkValidation(!0)}},l.prototype.destroy=function(){var i=this;for(this.removeEditor(t.isBlazor()),this.isExtModule&&this.notify("destroy",{}),this.unWireEvents(),["e-disable",S].forEach(function(e){t.removeClass([i.element],[e])});this.element.firstElementChild;)this.element.removeChild(this.element.firstElementChild);t.isBlazor()&&this.isServerRendered||e.prototype.destroy.call(this)},l.prototype.getPersistData=function(){return this.addOnPersist(["value"])},l.prototype.requiredModules=function(){var e=[];return e.push({member:y[this.type],args:[this]}),e},l.prototype.getModuleName=function(){return"inplaceeditor"},l.prototype.onPropertyChanged=function(e,t){this.removeEditor();for(var i=0,o=Object.keys(e);i<o.length;i++)switch(o[i]){case"showButtons":e.showButtons?this.appendButtons(this.formEle):this.destroyButtons();break;case"value":this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"emptyText":"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"template":this.checkIsTemplate();break;case"disabled":this.disable(e.disabled);break;case"enableRtl":this.setRtl(e.enableRtl);break;case"cssClass":this.setClass("remove",t.cssClass),this.setClass("add",e.cssClass);break;case"mode":this.enableEditor(this.enableEditMode);break;case"enableEditMode":this.enableEditor(e.enableEditMode);break;case"editableOn":this.unWireEditEvent(t.editableOn),"EditIconClick"!==e.editableOn&&this.wireEditEvent(e.editableOn)}},V([t.Property("")],l.prototype,"name",void 0),V([t.Property(null)],l.prototype,"value",void 0),V([t.Property("")],l.prototype,"template",void 0),V([t.Property(!0)],l.prototype,"enableHtmlSanitizer",void 0),V([t.Property("")],l.prototype,"cssClass",void 0),V([t.Property("")],l.prototype,"primaryKey",void 0),V([t.Property("Empty")],l.prototype,"emptyText",void 0),V([t.Property("")],l.prototype,"url",void 0),V([t.Property("Popup")],l.prototype,"mode",void 0),V([t.Property("UrlAdaptor")],l.prototype,"adaptor",void 0),V([t.Property("Text")],l.prototype,"type",void 0),V([t.Property("Click")],l.prototype,"editableOn",void 0),V([t.Property("Never")],l.prototype,"textOption",void 0),V([t.Property("Submit")],l.prototype,"actionOnBlur",void 0),V([t.Property(!1)],l.prototype,"enablePersistence",void 0),V([t.Property(!1)],l.prototype,"disabled",void 0),V([t.Property(!0)],l.prototype,"showButtons",void 0),V([t.Property(!1)],l.prototype,"enableEditMode",void 0),V([t.Property(!0)],l.prototype,"submitOnEnter",void 0),V([t.Complex({},m)],l.prototype,"popupSettings",void 0),V([t.Property(null)],l.prototype,"model",void 0),V([t.Property({iconCss:"e-icons e-save-icon"})],l.prototype,"saveButton",void 0),V([t.Property({iconCss:"e-icons e-cancel-icon"})],l.prototype,"cancelButton",void 0),V([t.Property(null)],l.prototype,"validationRules",void 0),V([t.Event()],l.prototype,"created",void 0),V([t.Event()],l.prototype,"beforeSanitizeHtml",void 0),V([t.Event()],l.prototype,"actionBegin",void 0),V([t.Event()],l.prototype,"actionSuccess",void 0),V([t.Event()],l.prototype,"actionFailure",void 0),V([t.Event()],l.prototype,"validating",void 0),V([t.Event()],l.prototype,"beginEdit",void 0),V([t.Event()],l.prototype,"destroyed",void 0),l=V([t.NotifyPropertyChanges],l)}(t.Component),x=function(){function e(e,t){this.parent=e,this.module=t,this.addEventListener()}return e.prototype.render=function(e){this.module.render(e)},e.prototype.showPopup=function(){this.module.showPopup()},e.prototype.focus=function(){this.module.focus()},e.prototype.update=function(e){this.module.updateValue(e)},e.prototype.getValue=function(){this.module.getRenderValue()},e.prototype.destroyComponent=function(){t.isNullOrUndefined(this.module.compObj)||(this.module.compObj.destroy(),this.module.compObj=void 0)},e.prototype.destroy=function(){this.destroyComponent(),this.removeEventListener()},e.prototype.addEventListener=function(){this.parent.on("render",this.render,this),this.parent.on("set-focus",this.focus,this),this.parent.on("show-popup",this.showPopup,this),this.parent.on("update",this.update,this),this.parent.on("access-value",this.getValue,this),this.parent.on("destroy-modules",this.destroyComponent,this),this.parent.on("destroy",this.destroy,this)},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off("render",this.render),this.parent.off("set-focus",this.focus),this.parent.off("show-popup",this.showPopup),this.parent.off("update",this.update),this.parent.off("access-value",this.getValue),this.parent.off("destroy-modules",this.destroyComponent),this.parent.off("destroy",this.destroy))},e}(),A=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.atcModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.AutoComplete(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"AutoComplete"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"auto-complete"},e}(),R=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.colorModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new s.ColorPicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Color"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"color-picker"},e}(),L=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.comboBoxModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.ComboBox(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.updateValue=function(e){this.compObj&&"ComboBox"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"combo-box"},e}(),I=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.dateRangeModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.DateRangePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"DateRange"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"date-range-picker"},e}(),U=function(){return(U=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)},W=function(){function e(e){this.isPopOpen=!1,this.compObj=void 0,this.parent=e,this.parent.multiSelectModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){var t=U({},this.parent.model);this.openEvent=t.open,this.closeEvent=t.close,t.open=this.openHandler.bind(this),t.close=this.closeHandler.bind(this),this.compObj=new a.MultiSelect(t),this.compObj.appendTo(e.target)},e.prototype.openHandler=function(e){this.isPopOpen=!0,this.openEvent&&(this.compObj.setProperties({open:this.openEvent},!0),this.compObj.trigger("open",e))},e.prototype.closeHandler=function(e){this.isPopOpen=!1,this.closeEvent&&(this.compObj.setProperties({close:this.closeEvent},!0),this.compObj.trigger("close",e))},e.prototype.focus=function(){if(!this.isPopOpen){var e=document.createEvent("MouseEvent");e.initEvent("mousedown",!0,!0),t.closest(this.compObj.element,".e-multi-select-wrapper").dispatchEvent(e)}},e.prototype.updateValue=function(e){this.compObj&&"MultiSelect"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRenderValue=function(){this.parent.printValue=this.compObj.text},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"multi-select"},e}(),z=function(){function e(e){this.compObj=void 0,l.RichTextEditor.Inject(l.HtmlEditor,l.MarkdownEditor,l.Toolbar,l.Link,l.Image,l.QuickToolbar,l.Table),this.parent=e,this.parent.rteModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new l.RichTextEditor(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"RTE"===e.type&&(this.parent.setProperties({value:this.getRteValue()},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRteValue=function(){var e;return"Markdown"===this.compObj.editorMode?(e=this.compObj.contentModule.getEditPanel().value,""===e?"":e):(e=this.compObj.contentModule.getEditPanel().innerHTML,"<p><br></p>"===e||"&lt;p&gt;&lt;br&gt;&lt;/p&gt;"===e||""===e?"":e)},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"rte"},e}(),_=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.sliderModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new s.Slider(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Slider"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"slider"},e}(),K=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.timeModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.TimePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"Time"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"time-picker"},e}();return N.Inject(A,R,L,I,W,z,_,K),e.parseValue=p,e.getCompValue=d,e.render="render",e.update="update",e.destroy="destroy",e.setFocus="set-focus",e.accessValue="access-value",e.destroyModules="destroy-modules",e.showPopup="show-popup",e.PopupSettings=m,e.modulesList=y,e.localeConstant=f,e.ROOT=v,e.ROOT_TIP=b,e.VALUE_WRAPPER=E,e.VALUE=O,e.OVERLAY_ICON="e-editable-overlay-icon",e.TIP_TITLE="e-editable-tip-title",e.TITLE=g,e.INLINE=w,e.POPUP=C,e.WRAPPER="e-editable-wrapper",e.LOADING="e-editable-loading",e.FORM=j,e.CTRL_GROUP="e-component-group",e.INPUT=k,e.BUTTONS=D,e.EDITABLE_ERROR="e-editable-error",e.ELEMENTS=P,e.OPEN=M,e.BTN_SAVE="e-btn-save",e.BTN_CANCEL="e-btn-cancel",e.RTE_SPIN_WRAP="e-rte-spin-wrap",e.CTRL_OVERLAY="e-control-overlay",e.DISABLE="e-disable",e.ICONS="e-icons",e.PRIMARY="e-primary",e.SHOW="e-show",e.HIDE=H,e.RTL=S,e.ERROR="e-error",e.LOAD=T,e.InPlaceEditor=N,e.Base=x,e.AutoComplete=A,e.ColorPicker=R,e.ComboBox=L,e.DateRangePicker=I,e.MultiSelect=W,e.Rte=z,e.Slider=_,e.TimePicker=K,e}({},ej.base,ej.data,ej.buttons,ej.calendars,ej.inputs,ej.popups,ej.dropdowns,ej.richtexteditor),this.ejs=ej;
this.ej=this.ej||{},this.ej.inplaceeditor=function(e,t,i,o,n,s,r,a,l){"use strict";function p(e,i,o){if(t.isNullOrUndefined(i)||""===i)return"";var n,s;switch(e){case"Color":var r=i;n=r.length>7?r.slice(0,-2):r;break;case"Date":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateRange":s=o.format;var a=i;n=h.formatDate(a[0],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" - "+h.formatDate(a[1],{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"DateTime":s=o.format,n=t.isNullOrUndefined(s)||""===s?h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"})+" "+h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"}):h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"d":"yMd"});break;case"Time":s=o.format,n=h.formatDate(i,{format:s,type:e,skeleton:t.isBlazor()?"t":"hm"});break;case"Numeric":s=t.isNullOrUndefined(o.format)?"n2":o.format;var l=t.isNullOrUndefined(i)?null:"number"==typeof i?i:h.parseNumber(i);n=h.formatNumber(l,{format:s});break;default:n=i.toString()}return n}function d(e,i){if(t.isNullOrUndefined(i)||""===i)return i;if("Date"!==e&&"Time"!==e&&"DateTime"!==e||"string"!=typeof i){if("DateRange"===e)if("object"==typeof i&&"string"==typeof i[0])i=[new Date(i[0]),new Date(i[1])];else if("string"==typeof i){var o=i.split("-");i=[new Date(o[0]),new Date(o[1])]}}else i=new Date(i);return i}var h=new t.Internationalization,c=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),u=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},m=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return c(i,e),u([t.Property("")],i.prototype,"title",void 0),u([t.Property(null)],i.prototype,"model",void 0),i}(t.ChildProperty),y={AutoComplete:"auto-complete",Color:"color-picker",ComboBox:"combo-box",DateRange:"date-range-picker",MultiSelect:"multi-select",RTE:"rte",Slider:"slider",Time:"time-picker"},f={Click:{editAreaClick:"Click to edit"},DblClick:{editAreaDoubleClick:"Double click to edit"},EditIconClick:{editAreaClick:"Click to edit"}},v="e-inplaceeditor",b="e-inplaceeditor-tip",E="e-editable-value-wrapper",O="e-editable-value",g="e-editable-title",w="e-editable-inline",C="e-editable-popup",j="e-editable-form",D="e-editable-component",k="e-editable-action-buttons",P="e-editable-elements",M="e-editable-open",H="e-hide",S="e-rtl",T="e-loading",B=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),V=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},N=function(e){function l(t,i){var o=e.call(this,t,i)||this;return o.initRender=!0,o.isTemplate=!1,o.isExtModule=!1,o.submitBtn=void 0,o.cancelBtn=void 0,o.isClearTarget=!1,o.btnElements=void 0,o.dataManager=void 0,o.divComponents=["RTE","Slider"],o.clearComponents=["AutoComplete","Mask","Text"],o.dateType=["Date","DateTime","Time"],o.inputDataEle=["Date","DateTime","DateRange","Time","Numeric"],o.dropDownEle=["AutoComplete","ComboBox","DropDownList","MultiSelect"],o.moduleList=["AutoComplete","Color","ComboBox","DateRange","MultiSelect","RTE","Slider","Time"],o.needsID=!0,o}return B(l,e),l.prototype.preRender=function(){t.isNullOrUndefined(this.model)&&this.setProperties({model:{}},!0),this.titleEle=this.createElement("div",{className:g}),!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.afterOpenEvent=this.popupSettings.model.afterOpen)},l.prototype.render=function(){t.isNullOrUndefined(this.element.getAttribute("tabindex"))&&this.element.setAttribute("tabindex","0"),this.checkIsTemplate(),this.disable(this.disabled),this.updateAdaptor(),this.appendValueElement(),this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue(),this.wireEvents(),this.setRtl(this.enableRtl),this.enableEditor(this.enableEditMode),this.setClass("add",this.cssClass),this.renderComplete()},l.prototype.setClass=function(e,i){this.isEmpty(i)||("add"===e?t.addClass([this.element],[i]):t.removeClass([this.element],[i]))},l.prototype.appendValueElement=function(){this.valueWrap=this.createElement("div",{id:this.element.id+"_wrap",className:E}),t.isBlazor()||(this.element.innerHTML=""),this.valueEle=this.createElement("span",{className:O}),this.editIcon=this.createElement("span",{className:"e-editable-overlay-icon e-icons",attrs:{title:this.getLocale({editIcon:"Click to edit"},"editIcon")}}),this.valueWrap.appendChild(this.valueEle),this.valueWrap.appendChild(this.editIcon),this.element.appendChild(this.valueWrap)},l.prototype.renderInitialValue=function(){!(["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1)||t.isNullOrUndefined(this.value)||this.isEmpty(this.value.toString())||t.isNullOrUndefined(this.model.fields)||t.isNullOrUndefined(this.model.dataSource)?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):(this.renderValue(this.getLocale({loadingText:"Loading..."},"loadingText")),this.valueWrap.classList.add(T),s.createSpinner({target:this.valueWrap,width:10}),s.showSpinner(this.valueWrap),this.getInitFieldMapValue())},l.prototype.getInitFieldMapValue=function(){var e=this,o=this.model,n=o.fields.text,s=o.fields.value,r=t.isNullOrUndefined(o.query)?new i.Query:o.query;o.dataSource instanceof i.DataManager?o.dataSource.executeQuery(this.getInitQuery(o,r)).then(function(t){e.updateInitValue(n,s,t.result)}):this.updateInitValue(n,s,new i.DataManager(o.dataSource).executeLocal(this.getInitQuery(o,r)))},l.prototype.getInitQuery=function(e,t){var o,n=e.fields.value,s=this.value;if("MultiSelect"!==this.type||"object"!=typeof this.value)o=new i.Predicate(n,"equal",this.value);else for(var r=0,a=0,l=s;a<l.length;a++){var p=l[a];o=0===r?o=new i.Predicate(n,"equal",p):o.or(n,"equal",p),r++}return t.where(o)},l.prototype.updateInitValue=function(e,i,o){if(!(o.length<=0)){if(1===o.length)this.valueEle.innerHTML=this.checkValue(t.getValue(t.isNullOrUndefined(e)?i:e,o[0]));else{for(var n=[],r=0,a=o;r<a.length;r++){var l=a[r];n.push(t.getValue(t.isNullOrUndefined(e)?i:e,l))}this.valueEle.innerHTML=this.checkValue(n.toString())}s.hideSpinner(this.valueWrap),this.valueWrap.classList.remove(T)}},l.prototype.renderValue=function(e){this.enableHtmlSanitizer&&"RTE"!==this.type&&"MultiSelect"!==this.type?this.valueEle.innerText=e:this.valueEle.innerHTML=e,"Color"===this.type&&t.setStyleAttribute(this.valueEle,{color:e}),"Inline"===this.mode&&t.removeClass([this.valueWrap],[H])},l.prototype.renderEditor=function(){if(this.prevValue=this.value,this.beginEditArgs={mode:this.mode,cancelFocus:!1,cancel:!1},this.trigger("beginEdit",this.beginEditArgs),!this.beginEditArgs.cancel){var e=void 0,i=t.select("."+E,this.element);if("EditIconClick"!==this.editableOn&&i.parentElement.removeAttribute("title"),!this.valueWrap.classList.contains(M)){if("Inline"===this.mode)t.addClass([this.valueWrap],[H]),this.inlineWrapper=this.createElement("div",{className:w}),this.element.appendChild(this.inlineWrapper),["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1?this.checkRemoteData(this.model):this.renderAndOpen();else{!t.isNullOrUndefined(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.popupSettings.model.afterOpen=this.afterOpenHandler.bind(this));var o=this.createElement("div",{className:C});this.isEmpty(this.popupSettings.title)||(this.titleEle.innerHTML=this.popupSettings.title,o.appendChild(this.titleEle)),e={content:o,opensOn:"Custom",enableRtl:this.enableRtl,cssClass:b,afterOpen:this.afterOpenHandler.bind(this)},o.appendChild(this.renderControl(document.body)),t.extend(e,this.popupSettings.model,e,!0),this.tipObj=new s.Tooltip(e),this.tipObj.appendTo(i),this.tipObj.open(i)}"Ignore"!==this.actionOnBlur&&this.wireDocEvent(),t.addClass([this.valueWrap],[M]),this.setProperties({enableEditMode:!0},!0)}}},l.prototype.renderAndOpen=function(){this.renderControl(this.inlineWrapper),this.afterOpenHandler(null)},l.prototype.checkRemoteData=function(e){var o=this;e.dataSource instanceof i.DataManager?(e.dataBound=function(){o.afterOpenHandler(null)},this.renderControl(this.inlineWrapper),(t.isNullOrUndefined(e.value)&&t.isNullOrUndefined(this.value)||e.value===this.value&&!t.isNullOrUndefined(e.value)&&0===e.value.length)&&this.showDropDownPopup()):this.renderAndOpen()},l.prototype.showDropDownPopup=function(){"DropDownList"===this.type?(this.model.allowFiltering||this.componentObj.focusIn(),this.componentObj.showPopup()):this.isExtModule&&this.notify("MultiSelect"===this.type?"set-focus":"show-popup",{})},l.prototype.setAttribute=function(e,t){var i=this.name&&0!==this.name.length?this.name:this.element.id;t.forEach(function(t){e.setAttribute(t,"id"===t?i+"_editor":i)})},l.prototype.renderControl=function(e){var t;this.containerEle=this.createElement("div",{className:"e-editable-wrapper"}),this.loader=this.createElement("div",{className:"e-editable-loading"}),this.formEle=this.createElement("form",{className:j});var i=this.createElement("div",{className:"e-component-group"}),o=this.createElement("div",{className:D});return e.appendChild(this.containerEle),this.loadSpinner(),this.containerEle.appendChild(this.formEle),this.formEle.appendChild(i),this.isTemplate?this.appendTemplate(o,this.template):(Array.prototype.indexOf.call(this.divComponents,this.type)>-1?(t=this.createElement("div"),this.setAttribute(t,["id"])):(t=this.createElement("input"),this.setAttribute(t,["id","name"])),this.componentRoot=t,o.appendChild(t),o.appendChild(this.loader)),i.appendChild(o),i.appendChild(this.createElement("div",{className:"e-editable-error"})),this.appendButtons(this.formEle),this.isTemplate||this.renderComponent(t),this.removeSpinner(),this.submitOnEnter&&this.wireEditorKeyDownEvent(this.containerEle),this.containerEle},l.prototype.appendButtons=function(e){this.showButtons&&e&&(this.btnElements=this.renderButtons(),e.appendChild(this.btnElements),this.wireBtnEvents())},l.prototype.renderButtons=function(){var e=this.createElement("div",{className:k}),i=t.isNullOrUndefined(this.saveButton.content)||0===this.saveButton.content.length?"":" e-primary";return this.submitBtn=this.createButtons({constant:"save",type:"submit",container:e,title:{save:"Save"},model:this.saveButton,className:"e-btn-save"+i}),this.cancelBtn=this.createButtons({type:"button",constant:"cancel",title:{cancel:"Cancel"},container:e,model:this.cancelButton,className:"e-btn-cancel"}),e},l.prototype.createButtons=function(e){var t=void 0;if(Object.keys(e.model).length>0){var i=this.createElement("button",{className:e.className,attrs:{type:e.type,title:this.getLocale(e.title,e.constant)}});e.container.appendChild(i),t=new o.Button(e.model,i)}return t},l.prototype.renderComponent=function(e){this.isExtModule=Array.prototype.indexOf.call(this.moduleList,this.type)>-1;var i;if(i=t.isNullOrUndefined(this.model.cssClass)?P:this.model.cssClass.indexOf(P)<0?""===this.model.cssClass?P:this.model.cssClass+" "+P:this.model.cssClass,t.extend(this.model,this.model,{cssClass:i,enableRtl:this.enableRtl,locale:this.locale,change:this.changeHandler.bind(this)}),t.isNullOrUndefined(this.value)||this.updateModelValue(),this.isExtModule)this.notify("render",{module:y[this.type],target:e,type:this.type});else{switch(t.isNullOrUndefined(this.model.showClearButton)&&!t.isBlazor()&&(this.model.showClearButton=!0),this.type){case"Date":this.componentObj=new n.DatePicker(this.model);break;case"DateTime":this.componentObj=new n.DateTimePicker(this.model);break;case"DropDownList":this.componentObj=new a.DropDownList(this.model);break;case"Mask":this.componentObj=new r.MaskedTextBox(this.model);break;case"Numeric":this.model.value&&(this.model.value=this.model.value.toString().replace(/[`~!@#$%^&*()_|\=?;:'",<>\{\}\[\]\\\/]/gi,"")),this.componentObj=new r.NumericTextBox(this.model);break;case"Text":this.componentObj=new r.TextBox(this.model)}this.componentObj.appendTo(e)}},l.prototype.updateAdaptor=function(){switch(this.adaptor){case"UrlAdaptor":this.dataAdaptor=new i.UrlAdaptor;break;case"WebApiAdaptor":this.dataAdaptor=new i.WebApiAdaptor;break;case"ODataV4Adaptor":this.dataAdaptor=new i.ODataV4Adaptor}},l.prototype.loadSpinner=function(e){t.addClass([this.loader],["e-show"]),"validate"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type?this.spinObj={target:this.loader,width:t.Browser.isDevice?"16px":"14px"}:(t.addClass([this.loader],["e-rte-spin-wrap"]),t.addClass([this.getEditElement()],["e-control-overlay"]),this.spinObj={target:this.loader}),this.formEle&&t.addClass([this.formEle],[T]),this.btnElements&&t.addClass([this.btnElements],[H]),t.setStyleAttribute(this.loader,{width:"100%"}),s.createSpinner(this.spinObj),s.showSpinner(this.spinObj.target)},l.prototype.removeSpinner=function(e){this.loader.removeAttribute("style"),s.hideSpinner(this.spinObj.target),t.detach(this.spinObj.target.firstChild),"submit"!==e||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type||(t.removeClass([this.loader],["e-rte-spin-wrap"]),t.removeClass([this.getEditElement()],["e-control-overlay"])),this.formEle&&t.removeClass([this.formEle],[T]),this.btnElements&&t.removeClass([this.btnElements],[H]),t.removeClass([this.loader],["e-show"])},l.prototype.getEditElement=function(){return t.select("."+P,this.formEle)},l.prototype.getLocale=function(e,i){return new t.L10n("inplace-editor",e,this.locale).getConstant(i)},l.prototype.checkValue=function(e){return this.isEmpty(e)?this.emptyText:e},l.prototype.extendModelValue=function(e){var i=this.model;t.extend(i,{value:e}),this.setProperties({model:i},!0)},l.prototype.updateValue=function(){var e=this.value;this.enableHtmlSanitizer&&"string"==typeof this.value&&(e=this.sanitizeHelper(this.value)),t.isNullOrUndefined(this.value)||(this.setProperties({value:d(this.type,e)},!0),this.extendModelValue(d(this.type,e)))},l.prototype.updateModelValue=function(){"MultiSelect"!==this.type||this.isEmpty(this.value)?this.model.value=this.value:this.model.value=this.value.slice()},l.prototype.setValue=function(){this.isExtModule?this.notify("update",{type:this.type}):this.componentObj&&("Numeric"===this.type&&null===this.componentObj.value&&this.componentObj.setProperties({value:null},!0),this.setProperties({value:this.componentObj.value},!0),this.extendModelValue(this.componentObj.value))},l.prototype.getDropDownsValue=function(e){var i;return Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1&&"MultiSelect"!==this.type?i=e?t.select(".e-"+this.type.toLocaleLowerCase(),this.containerEle).value:this.value.toString():"MultiSelect"===this.type&&(this.notify("access-value",{type:this.type}),i=e?this.printValue:this.value.join()),i},l.prototype.getSendValue=function(){return this.isEmpty(this.value)?"":Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!1):Array.prototype.indexOf.call(this.dateType,this.type)>-1?this.value.toISOString():"DateRange"===this.type?this.value[0].toISOString()+" - "+this.value[1].toISOString():this.value.toString()},l.prototype.getRenderValue=function(){return"Mask"===this.type&&0!==this.componentObj.value.length?this.componentObj.getMaskedValue():Array.prototype.indexOf.call(this.inputDataEle,this.type)>-1?this.componentRoot.value:Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!0):p(this.type,this.value,this.model)},l.prototype.setRtl=function(e){e?t.addClass([this.element],[S]):t.removeClass([this.element],[S])},l.prototype.setFocus=function(){this.isTemplate||(this.isExtModule?this.notify("set-focus",{}):this.componentObj.element.focus())},l.prototype.removeEditor=function(e){t.isBlazor()&&!this.isStringTemplate&&t.resetBlazorTemplate(this.element.id+"template","Template");if(this.tipObj&&this.formEle&&t.closest(this.formEle,"."+b).classList.add(H),this.unWireDocEvent(),this.destroyComponents(),this.formEle=void 0,t.isNullOrUndefined(t.select("."+w,this.element))?this.tipObj&&("MultiSelect"===this.type&&(t.EventHandler.remove(this.containerEle,"mousedown",this.popMouseDown),t.EventHandler.remove(this.containerEle,"click",this.popClickHandler)),this.tipObj.close(),this.tipObj.destroy(),this.tipObj=void 0):(t.detach(this.inlineWrapper),this.inlineWrapper=void 0),this.containerEle=void 0,t.removeClass([this.valueWrap],[M,H]),e||this.setProperties({enableEditMode:!1},!0),"EditIconClick"!==this.editableOn){var i="DblClick"===this.editableOn?"editAreaDoubleClick":"editAreaClick";t.isNullOrUndefined(this.valueWrap.parentElement)||this.valueWrap.parentElement.setAttribute("title",this.getLocale(f[this.editableOn],i))}},l.prototype.destroyComponents=function(){this.showButtons&&this.destroyButtons(),this.isExtModule?this.notify("destroy-modules",{}):(this.templateEle&&(document.body.appendChild(this.templateEle),this.templateEle.style.display="none",this.templateEle=void 0),t.isNullOrUndefined(this.componentObj)||(this.componentObj.destroy(),this.componentObj=void 0)),this.formValidate&&(this.formValidate=void 0),this.submitOnEnter&&this.containerEle&&this.unWireEditorKeyDownEvent(this.containerEle)},l.prototype.destroyButtons=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.remove(this.submitBtn.element,"mousedown",this.submitHandler),t.EventHandler.remove(this.submitBtn.element,"click",this.submitPrevent),t.EventHandler.remove(this.submitBtn.element,"keydown",this.btnKeyDownHandler),this.submitBtn.destroy(),this.submitBtn=void 0),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.remove(this.cancelBtn.element,"mousedown",this.cancelHandler),t.EventHandler.remove(this.cancelBtn.element,"keydown",this.btnKeyDownHandler),this.cancelBtn.destroy(),this.cancelBtn=void 0),this.btnElements=void 0},l.prototype.getQuery=function(e){var t=new i.Query;return Object.keys(e).forEach(function(i){t.addParams(i,e[i])}),t},l.prototype.sendValue=function(){var e=this,t={data:{name:this.name,primaryKey:this.primaryKey,value:this.getSendValue()}};this.trigger("actionBegin",t,function(t){if(t.cancel)e.removeSpinner("submit"),"Popup"===e.mode&&e.updateArrow();else{if(e.isEmpty(e.url)||e.isEmpty(e.primaryKey)||!e.initRender&&(e.initRender||e.prevValue===e.value)){var o={data:{},value:t.data.value};e.triggerSuccess(o)}else e.dataManager=new i.DataManager({url:e.url,adaptor:e.dataAdaptor}),"UrlAdaptor"===e.adaptor?e.dataManager.executeQuery(e.getQuery(t.data),e.successHandler.bind(e),e.failureHandler.bind(e)):e.dataManager.insert(t.data).then(function(t){return e.successHandler(t)}).catch(function(t){return e.failureHandler(t)});e.dataManager=void 0}})},l.prototype.isEmpty=function(e){return!(!t.isNullOrUndefined(e)&&0!==e.length)},l.prototype.checkIsTemplate=function(){this.isTemplate=!t.isNullOrUndefined(this.template)&&""!==this.template},l.prototype.templateCompile=function(e,i){var o;"string"==typeof i&&(i=i.trim());var n=t.compile(i);if(!t.isNullOrUndefined(n)){var s=!(t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor"))||this.isStringTemplate;o=n({},this,"template",this.element.id+"template",s)}!t.isNullOrUndefined(n)&&o.length>0&&([].slice.call(o).forEach(function(t){e.appendChild(t)}),t.isBlazor()&&!this.isStringTemplate&&0===i.indexOf("<div>Blazor")&&t.updateBlazorTemplate(this.element.id+"template","Template",this))},l.prototype.sanitizeHelper=function(e){if(this.enableHtmlSanitizer){var i=t.SanitizeHtmlHelper.beforeSanitize(),o={cancel:!1,helper:null};t.extend(i,i,o),this.trigger("beforeSanitizeHtml",i,function(o){i.cancel&&!t.isNullOrUndefined(i.helper)?e=i.helper(e):i.cancel||(e=t.SanitizeHtmlHelper.serializeValue(i,e))})}return e},l.prototype.appendTemplate=function(e,i){i="string"==typeof i?this.sanitizeHelper(i):i,this.setProperties({template:i},!0),"string"==typeof i||t.isNullOrUndefined(i.innerHTML)?("."===i[0]||"#"===i[0])&&document.querySelectorAll(i).length?(this.templateEle=document.querySelector(i),e.appendChild(this.templateEle),this.templateEle.style.display=""):this.templateCompile(e,i):(this.templateEle=i,e.appendChild(this.templateEle))},l.prototype.disable=function(e){e?t.addClass([this.element],["e-disable"]):t.removeClass([this.element],["e-disable"])},l.prototype.enableEditor=function(e){e?this.renderEditor():this.cancelHandler()},l.prototype.checkValidation=function(e){var i,o=this,n=!0;this.validationRules?(this.formValidate=new r.FormValidator(this.formEle,{rules:this.validationRules,validationComplete:function(s){i={errorMessage:s.message,data:{name:o.name,primaryKey:o.primaryKey,value:o.checkValue(o.getSendValue())}},o.trigger("validating",i,function(i){"failure"===s.status?(s.errorElement.innerText=i.errorMessage,o.toggleErrorClass(!0)):o.toggleErrorClass(!1),!t.isNullOrUndefined(n)&&n&&(n=!1,o.afterValidation(e))})},customPlacement:function(e,i){t.select(".e-editable-error",o.formEle).appendChild(i)}}),this.formValidate.validate()):this.afterValidation(e)},l.prototype.afterValidation=function(e){!this.formEle.classList.contains("e-error")&&e&&(this.loadSpinner("validate"),"Popup"===this.mode&&this.updateArrow(),this.sendValue())},l.prototype.toggleErrorClass=function(e){if(!t.isNullOrUndefined(this.formEle)){var i=t.select(".e-input-group",this.formEle);!function(e,i,o){[].slice.call(e).forEach(function(e){e&&("add"===o?t.addClass([e],[i]):t.removeClass([e],[i]))})}([this.formEle,i],"e-error",e?"add":"remove")}},l.prototype.updateArrow=function(){var e=this.tipObj.tipPointerPosition;this.tipObj.tipPointerPosition="Middle"===e?"Auto":"Middle",this.tipObj.tipPointerPosition=e,this.tipObj.dataBind()},l.prototype.triggerSuccess=function(e){var i=this,o=e.value;this.trigger("actionSuccess",e,function(e){i.removeSpinner("submit"),e.cancel||i.renderValue(i.checkValue(e.value!==o?e.value:i.getRenderValue())),e.cancel&&"Inline"===i.mode&&t.removeClass([i.valueWrap],[H]),i.removeEditor()})},l.prototype.wireEvents=function(){this.wireEditEvent(this.editableOn),t.EventHandler.add(this.editIcon,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.valueKeyDownHandler,this),t.EventHandler.add(document,"scroll",this.scrollResizeHandler,this),window.addEventListener("resize",this.scrollResizeHandler.bind(this)),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.add(this.element,"mousedown",this.mouseDownHandler,this)},l.prototype.wireDocEvent=function(){t.EventHandler.add(document,"mousedown",this.docClickHandler,this)},l.prototype.wireEditEvent=function(e){if("EditIconClick"!==e){var i="Click"===e?"editAreaClick":"editAreaDoubleClick";this.element.setAttribute("title",this.getLocale(f[e],i)),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?this.touchModule=new t.Touch(this.valueWrap,{tap:this.doubleTapHandler.bind(this)}):t.EventHandler.add(this.valueWrap,e.toLowerCase(),this.clickHandler,this)}},l.prototype.wireEditorKeyDownEvent=function(e){t.EventHandler.add(e,"keydown",this.enterKeyDownHandler,this)},l.prototype.wireBtnEvents=function(){t.isNullOrUndefined(this.submitBtn)||(t.EventHandler.add(this.submitBtn.element,"mousedown",this.submitHandler,this),t.EventHandler.add(this.submitBtn.element,"click",this.submitPrevent,this),t.EventHandler.add(this.submitBtn.element,"keydown",this.btnKeyDownHandler,this)),t.isNullOrUndefined(this.cancelBtn)||(t.EventHandler.add(this.cancelBtn.element,"mousedown",this.cancelHandler,this),t.EventHandler.add(this.cancelBtn.element,"keydown",this.btnKeyDownHandler,this))},l.prototype.unWireEvents=function(){this.unWireEditEvent(this.editableOn),t.EventHandler.remove(this.editIcon,"click",this.clickHandler),t.EventHandler.remove(document,"scroll",this.scrollResizeHandler),window.removeEventListener("resize",this.scrollResizeHandler.bind(this)),t.EventHandler.remove(this.element,"keydown",this.valueKeyDownHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&t.EventHandler.remove(this.element,"mousedown",this.mouseDownHandler)},l.prototype.unWireDocEvent=function(){t.EventHandler.remove(document,"mousedown",this.docClickHandler)},l.prototype.unWireEditEvent=function(e){"EditIconClick"!==e&&(this.element.removeAttribute("title"),t.Browser.isDevice&&t.Browser.isIos&&"DblClick"===e?(this.touchModule.destroy(),this.touchModule=void 0):t.EventHandler.remove(this.valueWrap,e.toLowerCase(),this.clickHandler))},l.prototype.unWireEditorKeyDownEvent=function(e){t.EventHandler.remove(e,"keydown",this.enterKeyDownHandler)},l.prototype.submitPrevent=function(e){e.preventDefault()},l.prototype.btnKeyDownHandler=function(e){var i=e.target;(13===e.keyCode&&13===e.which||32===e.keyCode&&32===e.which)&&(i.classList.contains("e-btn-save")?this.save():i.classList.contains("e-btn-cancel")&&this.cancelHandler()),9!==e.keyCode||!1!==e.shiftKey||!t.isNullOrUndefined(e.target.nextElementSibling)&&"BUTTON"===e.target.nextElementSibling.tagName||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.afterOpenHandler=function(e){"Popup"===this.mode&&"MultiSelect"===this.type&&(t.EventHandler.add(this.containerEle,"mousedown",this.popMouseDown,this),t.EventHandler.add(this.containerEle,"click",this.popClickHandler,this)),"Popup"!==this.mode||this.isEmpty(this.titleEle.innerHTML)||e.element.classList.add("e-editable-tip-title"),"RTE"===this.type?(this.rteModule.refresh(),this.setAttribute(t.select(".e-richtexteditor textarea",this.containerEle),["name"])):"Slider"===this.type&&(this.sliderModule.refresh(),this.setAttribute(t.select(".e-slider-input",this.containerEle),["name"])),this.beginEditArgs.cancelFocus||("Inline"===this.mode&&["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1&&this.model.dataSource instanceof i.DataManager?this.showDropDownPopup():this.setFocus()),this.afterOpenEvent&&(this.tipObj.setProperties({afterOpen:this.afterOpenEvent},!0),this.tipObj.trigger("afterOpen",e))},l.prototype.popMouseDown=function(e){var t=e.target.classList;t.contains("e-chips-close")&&!t.contains("e-close-hooker")&&this.updateArrow()},l.prototype.doubleTapHandler=function(e){e.tapCount>1&&this.clickHandler(e.originalEvent)},l.prototype.clickHandler=function(e){"EditIconClick"!==this.editableOn&&e.stopPropagation(),this.renderEditor()},l.prototype.submitHandler=function(e){e.preventDefault(),this.save()},l.prototype.cancelHandler=function(){this.removeEditor()},l.prototype.popClickHandler=function(e){var i=t.select("."+E,this.element);e.target.classList.contains("e-chips-close")&&this.tipObj.refresh(i)},l.prototype.successHandler=function(e){this.initRender=!1;var t={data:e,value:this.getSendValue()};this.triggerSuccess(t)},l.prototype.failureHandler=function(e){var t=this,i={data:e,value:this.getSendValue()};this.trigger("actionFailure",i,function(e){t.removeSpinner("submit"),"Popup"===t.mode&&t.updateArrow()})},l.prototype.enterKeyDownHandler=function(e){t.closest(e.target,"."+D+" .e-richtexteditor")||(13===e.keyCode&&13===e.which&&t.closest(e.target,"."+D)?this.save():27===e.keyCode&&27===e.which&&this.cancelHandler())},l.prototype.valueKeyDownHandler=function(e){9===e.keyCode&&!0===e.shiftKey&&"BUTTON"!==e.target.tagName&&("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler()),13!==e.keyCode||13!==e.which||!e.target.classList.contains(v)||this.valueWrap.classList.contains(M)||this.element.classList.contains("e-disable")||(e.preventDefault(),this.renderEditor())},l.prototype.mouseDownHandler=function(e){e.target.classList.contains("e-clear-icon")&&(this.isClearTarget=!0)},l.prototype.scrollResizeHandler=function(){"Popup"===this.mode&&this.tipObj&&!t.Browser.isDevice&&this.removeEditor()},l.prototype.docClickHandler=function(e){var i=e.target;if(this.isClearTarget)return void(this.isClearTarget=!1);var o=t.closest(i,"."+v),n=t.closest(i,"."+b),s=t.closest(i,"."+P),r=t.closest(i,".e-rte-elements");!t.isNullOrUndefined(o)&&o.isEqualNode(this.element)||!t.isNullOrUndefined(n)&&this.tipObj&&n.id.indexOf(this.valueWrap.id)>-1||!t.isNullOrUndefined(s)||!t.isNullOrUndefined(r)||i.classList.contains("e-chips-close")||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler())},l.prototype.changeHandler=function(e){var t={previousValue:void 0===this.compPrevValue?this.value:this.compPrevValue,value:e.value};"AutoComplete"!==this.type&&"ComboBox"!==this.type&&"DropDownList"!==this.type||(t.itemData=e.itemData,t.previousItemData=e.previousItemData),this.compPrevValue=t.value,this.trigger("change",t)},l.prototype.validate=function(){this.checkValidation(!1)},l.prototype.save=function(){if(this.formEle){this.element.focus(),this.editEle=t.select("."+D,this.formEle);t.select(".e-error",this.editEle),this.isTemplate||this.setValue(),this.checkValidation(!0)}},l.prototype.destroy=function(){var i=this;for(this.removeEditor(t.isBlazor()),this.isExtModule&&this.notify("destroy",{}),this.unWireEvents(),["e-disable",S].forEach(function(e){t.removeClass([i.element],[e])});this.element.firstElementChild;)this.element.removeChild(this.element.firstElementChild);t.isBlazor()&&this.isServerRendered||e.prototype.destroy.call(this)},l.prototype.getPersistData=function(){return this.addOnPersist(["value"])},l.prototype.requiredModules=function(){var e=[];return e.push({member:y[this.type],args:[this]}),e},l.prototype.getModuleName=function(){return"inplaceeditor"},l.prototype.onPropertyChanged=function(e,t){this.removeEditor();for(var i=0,o=Object.keys(e);i<o.length;i++)switch(o[i]){case"showButtons":e.showButtons?this.appendButtons(this.formEle):this.destroyButtons();break;case"value":this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"emptyText":"Never"===this.textOption?this.renderValue(this.checkValue(p(this.type,this.value,this.model))):this.renderInitialValue();break;case"template":this.checkIsTemplate();break;case"disabled":this.disable(e.disabled);break;case"enableRtl":this.setRtl(e.enableRtl);break;case"cssClass":this.setClass("remove",t.cssClass),this.setClass("add",e.cssClass);break;case"mode":this.enableEditor(this.enableEditMode);break;case"enableEditMode":this.enableEditor(e.enableEditMode);break;case"editableOn":this.unWireEditEvent(t.editableOn),"EditIconClick"!==e.editableOn&&this.wireEditEvent(e.editableOn)}},V([t.Property("")],l.prototype,"name",void 0),V([t.Property(null)],l.prototype,"value",void 0),V([t.Property("")],l.prototype,"template",void 0),V([t.Property(!0)],l.prototype,"enableHtmlSanitizer",void 0),V([t.Property("")],l.prototype,"cssClass",void 0),V([t.Property("")],l.prototype,"primaryKey",void 0),V([t.Property("Empty")],l.prototype,"emptyText",void 0),V([t.Property("")],l.prototype,"url",void 0),V([t.Property("Popup")],l.prototype,"mode",void 0),V([t.Property("UrlAdaptor")],l.prototype,"adaptor",void 0),V([t.Property("Text")],l.prototype,"type",void 0),V([t.Property("Click")],l.prototype,"editableOn",void 0),V([t.Property("Never")],l.prototype,"textOption",void 0),V([t.Property("Submit")],l.prototype,"actionOnBlur",void 0),V([t.Property(!1)],l.prototype,"enablePersistence",void 0),V([t.Property(!1)],l.prototype,"disabled",void 0),V([t.Property(!0)],l.prototype,"showButtons",void 0),V([t.Property(!1)],l.prototype,"enableEditMode",void 0),V([t.Property(!0)],l.prototype,"submitOnEnter",void 0),V([t.Complex({},m)],l.prototype,"popupSettings",void 0),V([t.Property(null)],l.prototype,"model",void 0),V([t.Property({iconCss:"e-icons e-save-icon"})],l.prototype,"saveButton",void 0),V([t.Property({iconCss:"e-icons e-cancel-icon"})],l.prototype,"cancelButton",void 0),V([t.Property(null)],l.prototype,"validationRules",void 0),V([t.Event()],l.prototype,"created",void 0),V([t.Event()],l.prototype,"beforeSanitizeHtml",void 0),V([t.Event()],l.prototype,"actionBegin",void 0),V([t.Event()],l.prototype,"actionSuccess",void 0),V([t.Event()],l.prototype,"actionFailure",void 0),V([t.Event()],l.prototype,"validating",void 0),V([t.Event()],l.prototype,"beginEdit",void 0),V([t.Event()],l.prototype,"change",void 0),V([t.Event()],l.prototype,"destroyed",void 0),l=V([t.NotifyPropertyChanges],l)}(t.Component),x=function(){function e(e,t){this.parent=e,this.module=t,this.addEventListener()}return e.prototype.render=function(e){this.module.render(e)},e.prototype.showPopup=function(){this.module.showPopup()},e.prototype.focus=function(){this.module.focus()},e.prototype.update=function(e){this.module.updateValue(e)},e.prototype.getValue=function(){this.module.getRenderValue()},e.prototype.destroyComponent=function(){t.isNullOrUndefined(this.module.compObj)||(this.module.compObj.destroy(),this.module.compObj=void 0)},e.prototype.destroy=function(){this.destroyComponent(),this.removeEventListener()},e.prototype.addEventListener=function(){this.parent.on("render",this.render,this),this.parent.on("set-focus",this.focus,this),this.parent.on("show-popup",this.showPopup,this),this.parent.on("update",this.update,this),this.parent.on("access-value",this.getValue,this),this.parent.on("destroy-modules",this.destroyComponent,this),this.parent.on("destroy",this.destroy,this)},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off("render",this.render),this.parent.off("set-focus",this.focus),this.parent.off("show-popup",this.showPopup),this.parent.off("update",this.update),this.parent.off("access-value",this.getValue),this.parent.off("destroy-modules",this.destroyComponent),this.parent.off("destroy",this.destroy))},e}(),A=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.atcModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.AutoComplete(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"AutoComplete"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"auto-complete"},e}(),R=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.colorModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new r.ColorPicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Color"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"color-picker"},e}(),L=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.comboBoxModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new a.ComboBox(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},e.prototype.updateValue=function(e){this.compObj&&"ComboBox"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"combo-box"},e}(),I=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.dateRangeModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.DateRangePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"DateRange"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"date-range-picker"},e}(),U=function(){return(U=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)},W=function(){function e(e){this.isPopOpen=!1,this.compObj=void 0,this.parent=e,this.parent.multiSelectModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){var t=U({},this.parent.model);this.openEvent=t.open,this.closeEvent=t.close,t.open=this.openHandler.bind(this),t.close=this.closeHandler.bind(this),this.compObj=new a.MultiSelect(t),this.compObj.appendTo(e.target)},e.prototype.openHandler=function(e){this.isPopOpen=!0,this.openEvent&&(this.compObj.setProperties({open:this.openEvent},!0),this.compObj.trigger("open",e))},e.prototype.closeHandler=function(e){this.isPopOpen=!1,this.closeEvent&&(this.compObj.setProperties({close:this.closeEvent},!0),this.compObj.trigger("close",e))},e.prototype.focus=function(){if(!this.isPopOpen){var e=document.createEvent("MouseEvent");e.initEvent("mousedown",!0,!0),t.closest(this.compObj.element,".e-multi-select-wrapper").dispatchEvent(e)}},e.prototype.updateValue=function(e){this.compObj&&"MultiSelect"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRenderValue=function(){this.parent.printValue=this.compObj.text},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"multi-select"},e}(),z=function(){function e(e){this.compObj=void 0,l.RichTextEditor.Inject(l.HtmlEditor,l.MarkdownEditor,l.Toolbar,l.Link,l.Image,l.QuickToolbar,l.Table),this.parent=e,this.parent.rteModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new l.RichTextEditor(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"RTE"===e.type&&(this.parent.setProperties({value:this.getRteValue()},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.getRteValue=function(){var e;return"Markdown"===this.compObj.editorMode?(e=this.compObj.contentModule.getEditPanel().value,""===e?"":e):(e=this.compObj.contentModule.getEditPanel().innerHTML,"<p><br></p>"===e||"&lt;p&gt;&lt;br&gt;&lt;/p&gt;"===e||""===e?"":e)},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"rte"},e}(),_=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.sliderModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new r.Slider(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.element.focus()},e.prototype.updateValue=function(e){this.compObj&&"Slider"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.refresh=function(){this.compObj.refresh()},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"slider"},e}(),K=function(){function e(e){this.compObj=void 0,this.parent=e,this.parent.timeModule=this,this.base=new x(this.parent,this)}return e.prototype.render=function(e){this.compObj=new n.TimePicker(this.parent.model),this.compObj.appendTo(e.target)},e.prototype.focus=function(){this.compObj.focusIn()},e.prototype.updateValue=function(e){this.compObj&&"Time"===e.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},e.prototype.destroy=function(){this.base.destroy()},e.prototype.getModuleName=function(){return"time-picker"},e}();return N.Inject(A,R,L,I,W,z,_,K),e.parseValue=p,e.getCompValue=d,e.render="render",e.update="update",e.destroy="destroy",e.setFocus="set-focus",e.accessValue="access-value",e.destroyModules="destroy-modules",e.showPopup="show-popup",e.PopupSettings=m,e.modulesList=y,e.localeConstant=f,e.ROOT=v,e.ROOT_TIP=b,e.VALUE_WRAPPER=E,e.VALUE=O,e.OVERLAY_ICON="e-editable-overlay-icon",e.TIP_TITLE="e-editable-tip-title",e.TITLE=g,e.INLINE=w,e.POPUP=C,e.WRAPPER="e-editable-wrapper",e.LOADING="e-editable-loading",e.FORM=j,e.CTRL_GROUP="e-component-group",e.INPUT=D,e.BUTTONS=k,e.EDITABLE_ERROR="e-editable-error",e.ELEMENTS=P,e.OPEN=M,e.BTN_SAVE="e-btn-save",e.BTN_CANCEL="e-btn-cancel",e.RTE_SPIN_WRAP="e-rte-spin-wrap",e.CTRL_OVERLAY="e-control-overlay",e.DISABLE="e-disable",e.ICONS="e-icons",e.PRIMARY="e-primary",e.SHOW="e-show",e.HIDE=H,e.RTL=S,e.ERROR="e-error",e.LOAD=T,e.InPlaceEditor=N,e.Base=x,e.AutoComplete=A,e.ColorPicker=R,e.ComboBox=L,e.DateRangePicker=I,e.MultiSelect=W,e.Rte=z,e.Slider=_,e.TimePicker=K,e}({},ej.base,ej.data,ej.buttons,ej.calendars,ej.popups,ej.inputs,ej.dropdowns,ej.richtexteditor),this.ejs=ej;
//# sourceMappingURL=ej2-inplace-editor.min.js.map
/*!
* filename: index.d.ts
* version : 18.2.48
* version : 18.2.54
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-inplace-editor@*",
"_id": "@syncfusion/ej2-inplace-editor@18.2.45",
"_id": "@syncfusion/ej2-inplace-editor@18.2.48",
"_inBundle": false,
"_integrity": "sha512-kBLIuh+09qbztIZVf/t3R9DPJ9w7z9b+DnyQxsO3mZZpWg9wnLLdwGhUOjhKaDqxIWJdoR6OxkvnOpAHH0PM7A==",
"_integrity": "sha512-aNgACBk6CJdLdpwQ5tS2U2vnzdYoJFU0FzyXnm64eikuZCiLMLjpeUQExBVs4sfJK4wAwe8Kgo7nOHENLXuy3Q==",
"_location": "/@syncfusion/ej2-inplace-editor",

@@ -27,4 +27,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-18.2.45.tgz",
"_shasum": "0287f37649e117b36a2549e32ce7ba5c3a5218d3",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-18.2.48.tgz",
"_shasum": "3337f27e7ff5cd102bc0934e721e1a7fbaa36312",
"_spec": "@syncfusion/ej2-inplace-editor@*",

@@ -40,13 +40,13 @@ "_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~18.2.47",
"@syncfusion/ej2-buttons": "~18.2.44",
"@syncfusion/ej2-calendars": "~18.2.44",
"@syncfusion/ej2-data": "~18.2.44",
"@syncfusion/ej2-dropdowns": "~18.2.48",
"@syncfusion/ej2-inputs": "~18.2.48",
"@syncfusion/ej2-lists": "~18.2.48",
"@syncfusion/ej2-navigations": "~18.2.47",
"@syncfusion/ej2-popups": "~18.2.46",
"@syncfusion/ej2-richtexteditor": "~18.2.48",
"@syncfusion/ej2-splitbuttons": "~18.2.44"
"@syncfusion/ej2-base": "~18.2.54",
"@syncfusion/ej2-buttons": "~18.2.54",
"@syncfusion/ej2-calendars": "~18.2.54",
"@syncfusion/ej2-data": "~18.2.54",
"@syncfusion/ej2-dropdowns": "~18.2.54",
"@syncfusion/ej2-inputs": "~18.2.54",
"@syncfusion/ej2-lists": "~18.2.54",
"@syncfusion/ej2-navigations": "~18.2.54",
"@syncfusion/ej2-popups": "~18.2.54",
"@syncfusion/ej2-richtexteditor": "~18.2.54",
"@syncfusion/ej2-splitbuttons": "~18.2.54"
},

@@ -74,4 +74,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "18.2.48",
"version": "18.2.54",
"sideEffects": false
}

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

import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, Event, EmitType, select } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, EventHandler, setStyleAttribute, Complex, ModuleDeclaration } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, closest, extend, L10n, compile, Browser, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { updateBlazorTemplate, resetBlazorTemplate, SanitizeHtmlHelper, getValue, isBlazor } from '@syncfusion/ej2-base';import { DataManager, UrlAdaptor, Query, WebApiAdaptor, ODataV4Adaptor, ReturnOption, Predicate } from '@syncfusion/ej2-data';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';import { DatePicker, DatePickerModel, DateTimePicker, DateRange } from '@syncfusion/ej2-calendars';import { DateTimePickerModel, DateRangePickerModel, TimePickerModel } from '@syncfusion/ej2-calendars';import { NumericTextBox, NumericTextBoxModel, TextBox, TextBoxModel } from '@syncfusion/ej2-inputs';import { createSpinner, hideSpinner, SpinnerArgs, showSpinner } from '@syncfusion/ej2-popups';import { Tooltip, TooltipEventArgs, TipPointerPosition } from '@syncfusion/ej2-popups';import { ColorPickerModel, FormValidator, MaskedTextBox, MaskedTextBoxModel, SliderModel } from '@syncfusion/ej2-inputs';import { AutoCompleteModel, ComboBoxModel, DropDownList, DropDownListModel, MultiSelectModel } from '@syncfusion/ej2-dropdowns';import { Rte } from '../modules/rte';import { Slider } from '../modules/slider';import { ComboBox } from '../modules/combo-box';import { TimePicker } from '../modules/time-picker';import { MultiSelect } from '../modules/multi-select';import { ColorPicker } from '../modules/color-picker';import { AutoComplete } from '../modules/auto-complete';import { DateRangePicker } from '../modules/date-range-picker';import * as events from './events';import * as classes from './classes';import { PopupSettings, modulesList, localeConstant } from './models';import { PopupSettingsModel } from './models-model';import { ActionBeginEventArgs, ActionEventArgs, FormEventArgs, ValidateEventArgs, IButton, BeginEditEventArgs } from './interface';import { parseValue, getCompValue } from './util';
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, Event, EmitType, select } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, EventHandler, setStyleAttribute, Complex, ModuleDeclaration } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, closest, extend, L10n, compile, Browser, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { updateBlazorTemplate, resetBlazorTemplate, SanitizeHtmlHelper, getValue, isBlazor } from '@syncfusion/ej2-base';import { DataManager, UrlAdaptor, Query, WebApiAdaptor, ODataV4Adaptor, ReturnOption, Predicate } from '@syncfusion/ej2-data';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';import { DatePicker, DatePickerModel, DateTimePicker, DateRange, RangeEventArgs } from '@syncfusion/ej2-calendars';import { DateTimePickerModel, DateRangePickerModel, TimePickerModel } from '@syncfusion/ej2-calendars';import { createSpinner, hideSpinner, SpinnerArgs, showSpinner } from '@syncfusion/ej2-popups';import { Tooltip, TooltipEventArgs, TipPointerPosition } from '@syncfusion/ej2-popups';import { NumericTextBox, NumericTextBoxModel, TextBox, TextBoxModel, SliderChangeEventArgs } from '@syncfusion/ej2-inputs';import { ColorPickerModel, FormValidator, MaskedTextBox, MaskedTextBoxModel, SliderModel } from '@syncfusion/ej2-inputs';import { ChangeEventArgs as InputChangeEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';import { AutoCompleteModel, ComboBoxModel, DropDownList, DropDownListModel, MultiSelectModel } from '@syncfusion/ej2-dropdowns';import { MultiSelectChangeEventArgs, ChangeEventArgs as DropDownsChangeEventArgs } from '@syncfusion/ej2-dropdowns';import { Rte } from '../modules/rte';import { Slider } from '../modules/slider';import { ComboBox } from '../modules/combo-box';import { TimePicker } from '../modules/time-picker';import { MultiSelect } from '../modules/multi-select';import { ColorPicker } from '../modules/color-picker';import { AutoComplete } from '../modules/auto-complete';import { DateRangePicker } from '../modules/date-range-picker';import * as events from './events';import * as classes from './classes';import { PopupSettings, modulesList, localeConstant } from './models';import { PopupSettingsModel } from './models-model';import { ActionBeginEventArgs, ActionEventArgs, FormEventArgs, ValidateEventArgs, IButton, BeginEditEventArgs } from './interface';import { ChangeEventArgs } from './interface';import { parseValue, getCompValue } from './util';
import {RenderMode,AdaptorType,InputType,EditableType,textOptionType,ActionBlur,BeforeSanitizeHtmlArgs} from "./inplace-editor";

@@ -285,2 +285,10 @@ import {ComponentModel} from '@syncfusion/ej2-base';

/**
* The event will be fired when the integrated component value has changed that render based on the `type` property
* in the In-place editor.
* @event
* @blazorProperty 'ValueChange'
*/
change?: EmitType<ChangeEventArgs>;
/**
* The event will be fired when the component gets destroyed.

@@ -287,0 +295,0 @@ * @event

@@ -21,2 +21,3 @@ import { Component, INotifyPropertyChanged, EmitType } from '@syncfusion/ej2-base';

import { ActionBeginEventArgs, ActionEventArgs, ValidateEventArgs, BeginEditEventArgs } from './interface';
import { ChangeEventArgs } from './interface';
/**

@@ -94,3 +95,2 @@ * Provides information about a SanitizeSelectors.

private touchModule;
private loaderWidth;
private loader;

@@ -126,2 +126,3 @@ private editEle;

private dropDownEle;
private compPrevValue;
private moduleList;

@@ -417,2 +418,9 @@ private afterOpenEvent;

/**
* The event will be fired when the integrated component value has changed that render based on the `type` property
* in the In-place editor.
* @event
* @blazorProperty 'ValueChange'
*/
change: EmitType<ChangeEventArgs>;
/**
* The event will be fired when the component gets destroyed.

@@ -516,2 +524,3 @@ * @event

private docClickHandler;
private changeHandler;
/**

@@ -518,0 +527,0 @@ * Validate current editor value.

@@ -27,5 +27,5 @@ var __extends = (this && this.__extends) || (function () {

import { DatePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
import { NumericTextBox, TextBox } from '@syncfusion/ej2-inputs';
import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
import { Tooltip } from '@syncfusion/ej2-popups';
import { NumericTextBox, TextBox } from '@syncfusion/ej2-inputs';
import { FormValidator, MaskedTextBox } from '@syncfusion/ej2-inputs';

@@ -97,3 +97,5 @@ import { DropDownList } from '@syncfusion/ej2-dropdowns';

InPlaceEditor.prototype.render = function () {
this.element.setAttribute('tabindex', '0');
if (isNOU(this.element.getAttribute('tabindex'))) {
this.element.setAttribute('tabindex', '0');
}
this.checkIsTemplate();

@@ -222,3 +224,2 @@ this.disable(this.disabled);

if (this.mode === 'Inline') {
this.loaderWidth = this.valueWrap.offsetWidth;
addClass([this.valueWrap], [classes.HIDE]);

@@ -383,3 +384,5 @@ this.inlineWrapper = this.createElement('div', { className: classes.INLINE });

}
extend(this.model, this.model, { cssClass: classProp, enableRtl: this.enableRtl, locale: this.locale });
extend(this.model, this.model, {
cssClass: classProp, enableRtl: this.enableRtl, locale: this.locale, change: this.changeHandler.bind(this)
});
if (!isNOU(this.value)) {

@@ -508,3 +511,3 @@ this.updateModelValue();

if (this.type === 'Numeric' && this.componentObj.value === null) {
this.componentObj.setProperties({ value: 0 }, true);
this.componentObj.setProperties({ value: null }, true);
}

@@ -1068,2 +1071,14 @@ this.setProperties({ value: this.componentObj.value }, true);

};
InPlaceEditor.prototype.changeHandler = function (e) {
var eventArgs = {
previousValue: this.compPrevValue === undefined ? this.value : this.compPrevValue,
value: e.value
};
if (this.type === 'AutoComplete' || this.type === 'ComboBox' || this.type === 'DropDownList') {
eventArgs.itemData = e.itemData;
eventArgs.previousItemData = e.previousItemData;
}
this.compPrevValue = eventArgs.value;
this.trigger('change', eventArgs);
};
/**

@@ -1287,2 +1302,5 @@ * Validate current editor value.

Event()
], InPlaceEditor.prototype, "change", void 0);
__decorate([
Event()
], InPlaceEditor.prototype, "destroyed", void 0);

@@ -1289,0 +1307,0 @@ InPlaceEditor = __decorate([

import { ButtonModel } from '@syncfusion/ej2-buttons';
import { ColorPicker, Slider } from '@syncfusion/ej2-inputs';
import { RichTextEditor } from '@syncfusion/ej2-richtexteditor';
import { DateRangePicker, TimePicker } from '@syncfusion/ej2-calendars';
import { AutoComplete, ComboBox, MultiSelect } from '@syncfusion/ej2-dropdowns';
import { DateRangePicker, TimePicker, DateRange } from '@syncfusion/ej2-calendars';
import { AutoComplete, ComboBox, MultiSelect, FieldSettingsModel } from '@syncfusion/ej2-dropdowns';
import { RenderMode } from './inplace-editor';

@@ -93,1 +93,14 @@ /**

}
/**
* Provides information about the Change event.
*/
export interface ChangeEventArgs {
/** Returns the selected item as JSON Object from the AutoComplete/ComboBox/DropDownList data source. */
itemData?: FieldSettingsModel;
/** Returns the previous selected item as JSON Object from the AutoComplete/ComboBox/DropDownList data source. */
previousItemData?: FieldSettingsModel;
/** Returns the previous value of integrated component that renders based on the `type` property in the In-place editor. */
previousValue: string | string[] | number | number[] | boolean[] | Date | Date[] | DateRange;
/** Returns the value of integrated component that renders based on the `type` property in the In-place editor. */
value: string | string[] | number | number[] | boolean[] | Date | Date[] | DateRange;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc