@syncfusion/ej2-vue-notifications
Version:
A package of Essential JS 2 notification components such as Toast and Badge which used to notify important information to end-users. for Vue
12 lines (11 loc) • 8.23 kB
JavaScript
/*!
* filename: ej2-vue-notifications.umd.min.js
* version : 30.2.4
* Copyright Syncfusion Inc. 2001 - 2024. 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-notifications"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-notifications","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2Notifications,e.ej2VueBase,e.ej2Base)}(this,function(t,s,n,o){"use strict";var i=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!n.isExecute)return t=null,(n.isExecute?e:n.gh)("div",{class:"e-directive"},t=o.isNullOrUndefined(this.$slots.default)?t:n.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-buttonmodelprops"}}}),a={name:"e-buttonmodelprops",install:function(e){e.component(a.name,i)}},l=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-buttonmodelprop"}}}),r={name:"e-buttonmodelprop",install:function(e){e.component(r.name,l)}},e=["isLazyUpdate","plugins","animation","buttons","content","cssClass","enableHtmlSanitizer","enablePersistence","enableRtl","extendedTimeout","height","icon","locale","newestOnTop","position","progressDirection","showCloseButton","showProgressBar","target","template","timeOut","title","width","beforeClose","beforeOpen","beforeSanitizeHtml","click","close","created","destroyed","open"],c=[],u=n.getProps({props:e}),d=u[0],u=u[1],p=Object.keys(u);p.push("modelchanged","update:modelValue");for(var h=0,m=c;h<m.length;h++)p.push("update:"+m[h]);var f=n.vueDefineComponent({name:"ToastComponent",mixins:[n.ComponentBase],props:d,watch:u,emits:p,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new s.Toast({}),propKeys:e,models:c,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-buttonmodelprops":"e-buttonmodelprop"},tagNameMapper:{"e-buttonmodelprops":"e-buttons"},isVue3:!n.isExecute,templateCollection:{}}},created:function(){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(n.isExecute?e:n.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:n.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],o=this.templateCollection[n];if(o&&o.length){for(var i=0,a=o;i<a.length;i++){var l=a[i];this.destroyPortals(l)}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])))})})},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()},hide:function(e){return this.ej2Instances.hide(e)},show:function(e){return this.ej2Instances.show(e)}}}),j={name:"ejs-toast",install:function(e){e.component(j.name,f),e.component(r.name,l),e.component(a.name,i)}},g=["isLazyUpdate","plugins","content","cssClass","enablePersistence","enableRtl","locale","severity","showCloseIcon","showIcon","variant","visible","closed","created","destroyed"],v=[],d=n.getProps({props:g}),u=d[0],d=d[1],P=Object.keys(d);P.push("modelchanged","update:modelValue");for(var b=0,I=v;b<I.length;b++)P.push("update:"+I[b]);var y=n.vueDefineComponent({name:"MessageComponent",mixins:[n.ComponentBase],props:u,watch:d,emits:P,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new s.Message({}),propKeys:g,models:v,hasChildDirective:!1,hasInjectedModules:!1,tagMapper:{},tagNameMapper:{},isVue3:!n.isExecute,templateCollection:{}}},created:function(){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(n.isExecute?e:n.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:n.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],o=this.templateCollection[n];if(o&&o.length){for(var i=0,a=o;i<a.length;i++){var l=a[i];this.destroyPortals(l)}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])))})})},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()}}}),C={name:"ejs-message",install:function(e){e.component(C.name,y)}},M=["isLazyUpdate","plugins","cssClass","enablePersistence","enableRtl","height","label","locale","shape","shimmerEffect","visible","width"],$=[],u=n.getProps({props:M}),d=u[0],u=u[1],x=Object.keys(u);x.push("modelchanged","update:modelValue");for(var O=0,T=$;O<T.length;O++)x.push("update:"+T[O]);var k=n.vueDefineComponent({name:"SkeletonComponent",mixins:[n.ComponentBase],props:d,watch:u,emits:x,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new s.Skeleton({}),propKeys:M,models:$,hasChildDirective:!1,hasInjectedModules:!1,tagMapper:{},tagNameMapper:{},isVue3:!n.isExecute,templateCollection:{}}},created:function(){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(n.isExecute?e:n.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:n.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],o=this.templateCollection[n];if(o&&o.length){for(var i=0,a=o;i<a.length;i++){var l=a[i];this.destroyPortals(l)}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])))})})},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()}}}),w={name:"ejs-skeleton",install:function(e){e.component(w.name,k)}};Object.keys(s).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}),t.ButtonModelPropDirective=l,t.ButtonModelPropPlugin=r,t.ButtonModelPropsDirective=i,t.ButtonModelPropsPlugin=a,t.MessageComponent=y,t.MessagePlugin=C,t.SkeletonComponent=k,t.SkeletonPlugin=w,t.ToastComponent=f,t.ToastPlugin=j,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-vue-notifications.umd.min.js.map