/*!
*  filename: ej2-vue-inplace-editor.umd.min.js
*  version : 33.1.44
*  Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
*  Use of this code is subject to the terms of our license.
*  A copy of the current license can be obtained at any time by e-mailing
*  licensing@syncfusion.com. Any infringement will be prosecuted under
*  applicable laws. 
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-inplace-editor"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-inplace-editor","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2InplaceEditor,e.ej2VueBase,e.ej2Base)}(this,function(t,s,a,o){"use strict";var e=["isLazyUpdate","plugins","actionOnBlur","adaptor","cancelButton","cssClass","disabled","editableOn","emptyText","enableEditMode","enableHtmlParse","enableHtmlSanitizer","enablePersistence","enableRtl","locale","mode","model","name","popupSettings","primaryKey","saveButton","showButtons","submitOnEnter","template","textOption","type","url","validationRules","value","actionBegin","actionFailure","actionSuccess","beforeSanitizeHtml","beginEdit","cancelClick","change","created","destroyed","endEdit","submitClick","validating"],n=["value"],i=a.getProps({props:e}),c=i[0],i=i[1],r=Object.keys(i);r.push("modelchanged","update:modelValue");for(var l=0,d=n;l<d.length;l++)r.push("update:"+d[l]);var u=a.vueDefineComponent({name:"InPlaceEditorComponent",mixins:[a.ComponentBase],props:c,watch:i,emits:r,model:{event:"modelchanged"},provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new s.InPlaceEditor({}),propKeys:e,models:n,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!a.isExecute,templateCollection:{}}},created:function(){this.ej2Instances._trigger=this.ej2Instances.trigger,this.ej2Instances.trigger=this.trigger,this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=null;return(a.isExecute?e:a.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:a.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,s=e;t<s.length;t++){var n=s[t],i=this.templateCollection[n];if(i&&i.length){for(var a=0,o=i;a<o.length;a++){var c=o[a];this.destroyPortals(c)}delete this.templateCollection[n]}}},setProperties:function(s,e){var n=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(s,e),s&&this.models&&this.models.length&&Object.keys(s).map(function(t){n.models.map(function(e){t!==e||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,s[t]):(n.$emit("update:"+t,s[t]),n.$emit("modelchanged",s[t])))})})},trigger:function(e,t,s){var n,i;a.isExecute||(this.models=this.models||this.ej2Instances.referModels),"change"!==e&&"input"!==e||!this.models||0===this.models.length?"actionBegin"===e&&"dateNavigate"===t.requestType&&this.models&&0!==this.models.length&&(i=(n=this.models.toString().match(/currentView|selectedDate/)||[])[0],t)&&n&&!o.isUndefined(t[i])&&(a.isExecute?(this.$emit("update:"+i,t[i]),this):(this.ej2Instances.vueInstance.$emit("update:"+i,t[i]),this.ej2Instances.vueInstance)).$emit("modelchanged",t[i]):(i=(n=this.models.toString().match(/checked|value/)||[])[0],t&&n&&!o.isUndefined(t[i])&&(a.isExecute?("change"===e||this.$props&&!this.$props.isLazyUpdate)&&(this.$emit("update:"+i,t[i]),this.$emit("modelchanged",t[i])):(this.ej2Instances.vueInstance.$emit("update:"+i,t[i]),this.ej2Instances.vueInstance.$emit("modelchanged",t[i]),this.ej2Instances.vueInstance.$emit("update:modelValue",t[i])))),this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t,s)},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()},extendModelValue:function(e){return this.ej2Instances.extendModelValue(e)},save:function(){return this.ej2Instances.save()},setValue:function(){return this.ej2Instances.setValue()},validate:function(){return this.ej2Instances.validate()}}}),h={name:"ejs-inplaceeditor",install:function(e){e.component(h.name,u)}};Object.keys(s).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}),t.InPlaceEditorComponent=u,t.InPlaceEditorPlugin=h,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-vue-inplace-editor.umd.min.js.map
