@syncfusion/ej2-vue-layouts
Version:
A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person. for Vue
12 lines (11 loc) • 10.4 kB
JavaScript
/*!
* filename: ej2-vue-layouts.umd.min.js
* version : 31.1.17
* 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-layouts"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-layouts","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2Layouts,e.ej2VueBase,e.ej2Base)}(this,function(t,n,s,i){"use strict";var a=s.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!s.isExecute)return t=null,(s.isExecute?e:s.gh)("div",{class:"e-directive"},t=i.isNullOrUndefined(this.$slots.default)?t:s.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!s.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-panes"}}}),o={name:"e-panes",install:function(e){e.component(o.name,a)}},l=s.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-pane"}}}),r={name:"e-pane",install:function(e){e.component(r.name,l)}},e=["isLazyUpdate","plugins","cssClass","enableHtmlSanitizer","enablePersistence","enableReversePanes","enableRtl","enabled","height","locale","orientation","paneSettings","separatorSize","width","beforeCollapse","beforeExpand","beforeSanitizeHtml","collapsed","created","expanded","resizeStart","resizeStop","resizing"],u=[],c=s.getProps({props:e}),d=c[0],c=c[1],p=Object.keys(c);p.push("modelchanged","update:modelValue");for(var m=0,h=u;m<h.length;m++)p.push("update:"+h[m]);var f=s.vueDefineComponent({name:"SplitterComponent",mixins:[s.ComponentBase],props:d,watch:c,emits:p,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Splitter({}),propKeys:e,models:u,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-panes":"e-pane"},tagNameMapper:{"e-panes":"e-paneSettings"},isVue3:!s.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(s.isExecute?e:s.gh)("div",t=i.isNullOrUndefined(this.$slots.default)?t:s.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,n=e;t<n.length;t++){var s=n[t],i=this.templateCollection[s];if(i&&i.length){for(var a=0,o=i;a<o.length;a++){var l=o[a];this.destroyPortals(l)}delete this.templateCollection[s]}}},setProperties:function(n,e){var s=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){s.models.map(function(e){t!==e||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(s.$emit("update:"+t,n[t]),s.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},addPane:function(e,t){return this.ej2Instances.addPane(e,t)},collapse:function(e){return this.ej2Instances.collapse(e)},destroy:function(){return this.ej2Instances.destroy()},expand:function(e){return this.ej2Instances.expand(e)},removePane:function(e){return this.ej2Instances.removePane(e)}}}),g={name:"ejs-splitter",install:function(e){e.component(g.name,f),e.component(r.name,l),e.component(o.name,a)}},j=s.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!s.isExecute)return t=null,(s.isExecute?e:s.gh)("div",{class:"e-directive"},t=i.isNullOrUndefined(this.$slots.default)?t:s.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!s.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-panels"}}}),v={name:"e-panels",install:function(e){e.component(v.name,j)}},P=s.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-panel"}}}),I={name:"e-panel",install:function(e){e.component(I.name,P)}},y=["isLazyUpdate","plugins","allowDragging","allowFloating","allowPushing","allowResizing","cellAspectRatio","cellSpacing","columns","draggableHandle","enableHtmlSanitizer","enablePersistence","enableRtl","locale","mediaQuery","panels","resizableHandles","showGridLines","change","created","destroyed","drag","dragStart","dragStop","resize","resizeStart","resizeStop"],b=[],d=s.getProps({props:y}),c=d[0],d=d[1],C=Object.keys(d);C.push("modelchanged","update:modelValue");for(var x=0,$=b;x<$.length;x++)C.push("update:"+$[x]);var D=s.vueDefineComponent({name:"DashboardLayoutComponent",mixins:[s.ComponentBase],props:c,watch:d,emits:C,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.DashboardLayout({}),propKeys:y,models:b,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-panels":"e-panel"},tagNameMapper:{},isVue3:!s.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(s.isExecute?e:s.gh)("div",t=i.isNullOrUndefined(this.$slots.default)?t:s.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,n=e;t<n.length;t++){var s=n[t],i=this.templateCollection[s];if(i&&i.length){for(var a=0,o=i;a<o.length;a++){var l=o[a];this.destroyPortals(l)}delete this.templateCollection[s]}}},setProperties:function(n,e){var s=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){s.models.map(function(e){t!==e||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(s.$emit("update:"+t,n[t]),s.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},addPanel:function(e){return this.ej2Instances.addPanel(e)},destroy:function(){return this.ej2Instances.destroy()},movePanel:function(e,t,n){return this.ej2Instances.movePanel(e,t,n)},refresh:function(){return this.ej2Instances.refresh()},refreshDraggableHandle:function(){return this.ej2Instances.refreshDraggableHandle()},removeAll:function(){return this.ej2Instances.removeAll()},removePanel:function(e){return this.ej2Instances.removePanel(e)},resizePanel:function(e,t,n){return this.ej2Instances.resizePanel(e,t,n)},serialize:function(){return this.ej2Instances.serialize()},updatePanel:function(e){return this.ej2Instances.updatePanel(e)}}}),E={name:"ejs-dashboardlayout",install:function(e){e.component(E.name,D),e.component(I.name,P),e.component(v.name,j)}},z=s.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!s.isExecute)return t=null,(s.isExecute?e:s.gh)("div",{class:"e-directive"},t=i.isNullOrUndefined(this.$slots.default)?t:s.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!s.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-items"}}}),T={name:"e-items",install:function(e){e.component(T.name,z)}},O=s.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-item"}}}),S={name:"e-item",install:function(e){e.component(S.name,O)}},M=["isLazyUpdate","plugins","align","cssClass","enablePersistence","enableRtl","items","locale","orientation","reverse","template","beforeItemRender","created"],V=[],c=s.getProps({props:M}),d=c[0],c=c[1],w=Object.keys(c);w.push("modelchanged","update:modelValue");for(var _=0,k=V;_<k.length;_++)w.push("update:"+k[_]);var L=s.vueDefineComponent({name:"TimelineComponent",mixins:[s.ComponentBase],props:d,watch:c,emits:w,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Timeline({}),propKeys:M,models:V,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-items":"e-item"},tagNameMapper:{},isVue3:!s.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(s.isExecute?e:s.gh)("div",t=i.isNullOrUndefined(this.$slots.default)?t:s.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,n=e;t<n.length;t++){var s=n[t],i=this.templateCollection[s];if(i&&i.length){for(var a=0,o=i;a<o.length;a++){var l=o[a];this.destroyPortals(l)}delete this.templateCollection[s]}}},setProperties:function(n,e){var s=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){s.models.map(function(e){t!==e||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(s.$emit("update:"+t,n[t]),s.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()}}}),N={name:"ejs-timeline",install:function(e){e.component(N.name,L),e.component(S.name,O),e.component(T.name,z)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.DashboardLayoutComponent=D,t.DashboardLayoutPlugin=E,t.ItemDirective=O,t.ItemPlugin=S,t.ItemsDirective=z,t.ItemsPlugin=T,t.PaneDirective=l,t.PanePlugin=r,t.PanelDirective=P,t.PanelPlugin=I,t.PanelsDirective=j,t.PanelsPlugin=v,t.PanesDirective=a,t.PanesPlugin=o,t.SplitterComponent=f,t.SplitterPlugin=g,t.TimelineComponent=L,t.TimelinePlugin=N,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-vue-layouts.umd.min.js.map