@syncfusion/ej2-vue-layouts 24.2.4 → 25.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/README.md +21 -1
- package/dist/ej2-vue-layouts.umd.min.js +2 -2
- package/dist/ej2-vue-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-layouts.es2015.js +172 -2
- package/dist/es6/ej2-vue-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-layouts.es5.js +176 -2
- package/dist/es6/ej2-vue-layouts.es5.js.map +1 -1
- package/dist/global/ej2-vue-layouts.min.js +2 -2
- package/package.json +11 -10
- package/src/dashboard-layout/dashboardlayout.component.d.ts +27 -3
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/splitter/splitter.component.d.ts +23 -3
- package/src/timeline/index.d.ts +2 -0
- package/src/timeline/index.js +2 -0
- package/src/timeline/items.directive.d.ts +24 -0
- package/src/timeline/items.directive.js +60 -0
- package/src/timeline/timeline.component.d.ts +34 -0
- package/src/timeline/timeline.component.js +116 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.scss +1 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.scss +1 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.scss +1 -0
- package/styles/timeline/bootstrap-dark.css +1 -0
- package/styles/timeline/bootstrap-dark.scss +1 -0
- package/styles/timeline/bootstrap.css +1 -0
- package/styles/timeline/bootstrap.scss +1 -0
- package/styles/timeline/bootstrap4.css +1 -0
- package/styles/timeline/bootstrap4.scss +1 -0
- package/styles/timeline/bootstrap5-dark.css +1 -0
- package/styles/timeline/bootstrap5-dark.scss +1 -0
- package/styles/timeline/bootstrap5.css +1 -0
- package/styles/timeline/bootstrap5.scss +1 -0
- package/styles/timeline/fabric-dark.css +1 -0
- package/styles/timeline/fabric-dark.scss +1 -0
- package/styles/timeline/fabric.css +1 -0
- package/styles/timeline/fabric.scss +1 -0
- package/styles/timeline/fluent-dark.css +1 -0
- package/styles/timeline/fluent-dark.scss +1 -0
- package/styles/timeline/fluent.css +1 -0
- package/styles/timeline/fluent.scss +1 -0
- package/styles/timeline/highcontrast-light.css +1 -0
- package/styles/timeline/highcontrast-light.scss +1 -0
- package/styles/timeline/highcontrast.css +1 -0
- package/styles/timeline/highcontrast.scss +1 -0
- package/styles/timeline/material-dark.css +1 -0
- package/styles/timeline/material-dark.scss +1 -0
- package/styles/timeline/material.css +1 -0
- package/styles/timeline/material.scss +1 -0
- package/styles/timeline/material3-dark.css +1 -0
- package/styles/timeline/material3-dark.scss +2 -0
- package/styles/timeline/material3.css +1 -0
- package/styles/timeline/material3.scss +2 -0
- package/styles/timeline/tailwind-dark.css +1 -0
- package/styles/timeline/tailwind-dark.scss +1 -0
- package/styles/timeline/tailwind.css +1 -0
- package/styles/timeline/tailwind.scss +1 -0
- package/timeline.d.ts +4 -0
- package/timeline.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### DashboardLayout
|
|
6
6
|
|
|
7
7
|
#### Bug Fixes
|
|
8
8
|
|
|
9
|
-
- `#
|
|
9
|
+
- `#I564184` - Resolved the issue with the dynamically added panel not being persisted when `enablePersistence` is enabled in the Dashboard Layout.
|
|
10
|
+
|
|
11
|
+
## 25.1.35 (2024-03-15)
|
|
12
|
+
|
|
13
|
+
### Timeline
|
|
14
|
+
|
|
15
|
+
The Timeline control enables users to display a series of data in chronological order, providing a visually compelling and user-friendly experience. This showcases user activities, tracking progress, narrating historical timelines, and more.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
The Timeline component enables users to display a series of data in chronological order, providing a visually compelling and user-friendly experience. This showcases user activities, tracking progress, narrating historical timelines, and more.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
#### Key features
|
|
22
|
+
|
|
23
|
+
- **Orientation** - Display items in a horizontal or vertical orientation.
|
|
24
|
+
- **Opposite content** - Display additional information opposite to the item content.
|
|
25
|
+
- **Items alignment** - Items' content and opposite content can be aligned - before, after, alternate, or alternate reverse.
|
|
26
|
+
- **Reverse timeline** - Shows the timeline items in the reverse order.
|
|
27
|
+
- **Templates** - Customize the default appearance, including styling the dot item, templated content, and more.
|
|
10
28
|
|
|
11
29
|
## 20.4.48 (2023-02-01)
|
|
12
30
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ej2-vue-layouts
|
|
2
2
|
|
|
3
|
-
The layout package contains cards, avatars, splitter and Dashboard Layout components.
|
|
3
|
+
The layout package contains cards, avatars, splitter, timeline and Dashboard Layout components.
|
|
4
4
|
|
|
5
5
|
* The `card` is a small container in which user can show defined content in specific structure.
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@ The layout package contains cards, avatars, splitter and Dashboard Layout compon
|
|
|
8
8
|
|
|
9
9
|
* The `splitter` is container component which used to construct different layouts using multiple and nested panes.
|
|
10
10
|
|
|
11
|
+
* The `timeline` is a tool for displaying chronological information effortlessly within your application. It offers a visually compelling and user-friendly experience for showcasing user activities, tracking progress, or narrating historical timelines.
|
|
12
|
+
|
|
11
13
|
* The `DashboardLayout` is a grid structured layout component that helps to create a dashboard with panels. Panels hold the UI components and allow resize, reorder, drag-n-drop, remove and add options. This allows users to easily place the components at the desired position within the grid layout.
|
|
12
14
|
|
|
13
15
|

|
|
@@ -40,6 +42,10 @@ Following list of components are available in the package
|
|
|
40
42
|
* [Getting Started](https://ej2.syncfusion.com/vue/documentation/splitter/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm)
|
|
41
43
|
* [View Online Demos](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/splitter/default.html)
|
|
42
44
|
|
|
45
|
+
* [Vue Timeline](https://www.syncfusion.com/vue-ui-components/vue-timeline?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm) - Used to build timelines to showcases user activities, tracking progress, narrating historical timelines, and more.
|
|
46
|
+
* [Getting Started](https://ej2.syncfusion.com/vue/documentation/timeline/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm)
|
|
47
|
+
* [View Online Demos](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/default.html)
|
|
48
|
+
|
|
43
49
|
* [Vue Dashboard Layout](https://www.syncfusion.com/vue-ui-components/vue-dashboard-layout?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm) - Used to build dashboards with panels that holds the UI components and allow resize, reorder, drag-n-drop, remove and add options.
|
|
44
50
|
* [Getting Started](https://ej2.syncfusion.com/vue/documentation/dashboard-layout/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm)
|
|
45
51
|
* [View Online Demos](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/dashboard-layout/default.html)
|
|
@@ -68,6 +74,7 @@ These components are available in following list of:
|
|
|
68
74
|
## Key Features
|
|
69
75
|
|
|
70
76
|
* Card
|
|
77
|
+
|
|
71
78
|
* [Header](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/card/basic.html) - Header supports to include title, subtitle along with image.
|
|
72
79
|
|
|
73
80
|
* [Images and Title](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/card/reveal.html) - Support to include images with customizable caption positions in it.
|
|
@@ -88,6 +95,7 @@ These components are available in following list of:
|
|
|
88
95
|
* xlarge
|
|
89
96
|
|
|
90
97
|
* Splitter
|
|
98
|
+
|
|
91
99
|
* [Multiple Panes](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/splitter/default.html) - Provided an option to configure more than two panes.
|
|
92
100
|
|
|
93
101
|
* [Resizable Panes](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/splitter/code-editor-layout.html) - Supports resizable to adjust its pane size dynamically.
|
|
@@ -98,6 +106,18 @@ These components are available in following list of:
|
|
|
98
106
|
|
|
99
107
|
* [Nested Panes](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/splitter/code-editor-layout.html) - Another splitter can be integrated within panes to create a complex layout.
|
|
100
108
|
|
|
109
|
+
* Timeline
|
|
110
|
+
|
|
111
|
+
* [Orientation](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/api.html) - Display items in a horizontal or vertical orientation.
|
|
112
|
+
|
|
113
|
+
* [Opposite content](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/api.html) - Display additional information opposite to the item content.
|
|
114
|
+
|
|
115
|
+
* [Items alignment](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/api.html) - Items content and opposite content can be aligned - before, after, alternate, or alternate reverse.
|
|
116
|
+
|
|
117
|
+
* [Reverse timeline](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/api.html) - Shows the timeline items in the reverse order.
|
|
118
|
+
|
|
119
|
+
* [Templates](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/timeline/template.html) - Customize the default appearance, including styling the dot item, templated content, and more.
|
|
120
|
+
|
|
101
121
|
* Dashboard Layout
|
|
102
122
|
|
|
103
123
|
* [Drag and Drop](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-layout-npm#/material/dashboard-layout/properties.html) - Allows drag and drop of panels at the desired location within the dashboard.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-layouts.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 25.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(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.ej={},e.ej2Layouts,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,s){"use strict";var i=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},i)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-panes"}}}),a={name:"e-panes",install:function(e){e.component(a.name,i)}},o=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-pane"}}}),l={name:"e-pane",install:function(e){e.component(l.name,o)}},r=["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=n.getProps({props:r}),d=c[0],p=c[1],
|
|
10
|
+
!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.ej={},e.ej2Layouts,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,s){"use strict";var i=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},i)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-panes"}}}),a={name:"e-panes",install:function(e){e.component(a.name,i)}},o=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-pane"}}}),l={name:"e-pane",install:function(e){e.component(l.name,o)}},r=["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=n.getProps({props:r}),d=c[0],p=c[1],m=Object.keys(p);m.push("modelchanged","update:modelValue");for(var h=0,f=u;h<f.length;h++){var g=f[h];m.push("update:"+g)}var v=n.vueDefineComponent({name:"SplitterComponent",mixins:[n.ComponentBase],props:d,watch:p,emits:m,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.Splitter({}),propKeys:r,models:u,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-panes":"e-pane"},tagNameMapper:{"e-panes":"e-paneSettings"},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=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",i)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],a=this.templateCollection[i];if(a&&a.length){for(var o=0,l=a;o<l.length;o++){var r=l[o];s.getValue("__vue__.$destroy",r)&&r.__vue__.$destroy(),r.innerHTML&&(r.innerHTML="")}delete this.templateCollection[i]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},addPane:function(e,t){return this.ej2Instances.addPane(e,t)},collapse:function(e){return this.ej2Instances.collapse(e)},expand:function(e){return this.ej2Instances.expand(e)},removePane:function(e){return this.ej2Instances.removePane(e)}}}),j={name:"ejs-splitter",install:function(e){e.component(j.name,v),e.component(l.name,o),e.component(a.name,i)}},P=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},i)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-panels"}}}),I={name:"e-panels",install:function(e){e.component(I.name,P)}},y=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-panel"}}}),b={name:"e-panel",install:function(e){e.component(b.name,y)}},C=["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"],_=[],$=n.getProps({props:C}),x=$[0],T=$[1],D=Object.keys(T);D.push("modelchanged","update:modelValue");for(var E=0,z=_;E<z.length;E++){var M=z[E];D.push("update:"+M)}var O=n.vueDefineComponent({name:"DashboardLayoutComponent",mixins:[n.ComponentBase],props:x,watch:T,emits:D,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.DashboardLayout({}),propKeys:C,models:_,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-panels":"e-panel"},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=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",i)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],a=this.templateCollection[i];if(a&&a.length){for(var o=0,l=a;o<l.length;o++){var r=l[o];s.getValue("__vue__.$destroy",r)&&r.__vue__.$destroy(),r.innerHTML&&(r.innerHTML="")}delete this.templateCollection[i]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},addPanel:function(e){return this.ej2Instances.addPanel(e)},movePanel:function(e,t,n){return this.ej2Instances.movePanel(e,t,n)},refresh:function(){return this.ej2Instances.refresh()},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)}}}),S={name:"ejs-dashboardlayout",install:function(e){e.component(S.name,O),e.component(b.name,y),e.component(I.name,P)}},V=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},i)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-items"}}}),L={name:"e-items",install:function(e){e.component(L.name,V)}},w=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-item"}}}),H={name:"e-item",install:function(e){e.component(H.name,w)}},k=["isLazyUpdate","plugins","align","cssClass","enablePersistence","enableRtl","items","locale","orientation","reverse","template","beforeItemRender","created"],N=[],U=n.getProps({props:k}),R=U[0],B=U[1],q=Object.keys(B);q.push("modelchanged","update:modelValue");for(var A=0,K=N;A<K.length;A++){var F=K[A];q.push("update:"+F)}var G=n.vueDefineComponent({name:"TimelineComponent",mixins:[n.ComponentBase],props:R,watch:B,emits:q,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.Timeline({}),propKeys:k,models:N,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-items":"e-item"},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=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",i)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],a=this.templateCollection[i];if(a&&a.length){for(var o=0,l=a;o<l.length;o++){var r=l[o];s.getValue("__vue__.$destroy",r)&&r.__vue__.$destroy(),r.innerHTML&&(r.innerHTML="")}delete this.templateCollection[i]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()}}}),Q={name:"ejs-timeline",install:function(e){e.component(Q.name,G),e.component(H.name,w),e.component(L.name,V)}};e.PanesDirective=i,e.PaneDirective=o,e.PanesPlugin=a,e.PanePlugin=l,e.SplitterComponent=v,e.SplitterPlugin=j,e.PanelsDirective=P,e.PanelDirective=y,e.PanelsPlugin=I,e.PanelPlugin=b,e.DashboardLayoutComponent=O,e.DashboardLayoutPlugin=S,e.ItemsDirective=V,e.ItemDirective=w,e.ItemsPlugin=L,e.ItemPlugin=H,e.TimelineComponent=G,e.TimelinePlugin=Q,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-layouts.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-layouts.umd.min.js","sources":["../src/splitter/panesettings.directive.js","../src/splitter/splitter.component.js","../src/dashboard-layout/panels.directive.js","../src/dashboard-layout/dashboardlayout.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var PanesDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-panes';\n }\n }\n});\nexport var PanesPlugin = {\n name: 'e-panes',\n install: function (Vue) {\n Vue.component(PanesPlugin.name, PanesDirective);\n }\n};\n/**\n * 'e-pane' directive represent a pane of Vue Splitter\n * It must be contained in a Splitter component(`ejs-splitter`).\n * ```html\n * <ejs-splitter id='splitter'>\n * <e-panes>\n * <e-pane size='150px'></e-pane>\n * <e-pane size='150px'></e-pane>\n * </e-panes>\n * </ejs-splitter>\n * ```\n */\nexport var PaneDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-pane';\n }\n }\n});\nexport var PanePlugin = {\n name: 'e-pane',\n install: function (Vue) {\n Vue.component(PanePlugin.name, PaneDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { Splitter } from '@syncfusion/ej2-layouts';\nimport { PanesDirective, PaneDirective, PanesPlugin, PanePlugin } from './panesettings.directive';\nexport var properties = ['isLazyUpdate', 'plugins', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableReversePanes', 'enableRtl', 'enabled', 'height', 'locale', 'orientation', 'paneSettings', 'separatorSize', 'width', 'beforeCollapse', 'beforeExpand', 'beforeSanitizeHtml', 'collapsed', 'created', 'expanded', 'resizeStart', 'resizeStop', 'resizing'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the VueJS Splitter component\n * ```html\n * <ejs-splitter></ejs-splitter>\n * ```\n */\nexport var SplitterComponent = vueDefineComponent({\n name: 'SplitterComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new Splitter({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-panes\": \"e-pane\" },\n tagNameMapper: { \"e-panes\": \"e-paneSettings\" },\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addPane: function (paneProperties, index) {\n return this.ej2Instances.addPane(paneProperties, index);\n },\n collapse: function (index) {\n return this.ej2Instances.collapse(index);\n },\n expand: function (index) {\n return this.ej2Instances.expand(index);\n },\n removePane: function (index) {\n return this.ej2Instances.removePane(index);\n },\n }\n});\nexport var SplitterPlugin = {\n name: 'ejs-splitter',\n install: function (Vue) {\n Vue.component(SplitterPlugin.name, SplitterComponent);\n Vue.component(PanePlugin.name, PaneDirective);\n Vue.component(PanesPlugin.name, PanesDirective);\n }\n};\n","import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var PanelsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-panels';\n }\n }\n});\nexport var PanelsPlugin = {\n name: 'e-panels',\n install: function (Vue) {\n Vue.component(PanelsPlugin.name, PanelsDirective);\n }\n};\n/**\n * 'e-panels' directive represent a presets of VueJS dashboardlayout component\n * It must be contained in a dashboardlayout component(`ejs-dashboardlayout`).\n * ```html\n * <ejs-dashboardlayout>\n * <e-panels>\n * <e-panel></e-panel>\n * <e-panel></e-panel>\n * </e-panels>\n * </ejs-dashboardlayout>\n * ```\n */\nexport var PanelDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-panel';\n }\n }\n});\nexport var PanelPlugin = {\n name: 'e-panel',\n install: function (Vue) {\n Vue.component(PanelPlugin.name, PanelDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { DashboardLayout } from '@syncfusion/ej2-layouts';\nimport { PanelsDirective, PanelDirective, PanelsPlugin, PanelPlugin } from './panels.directive';\nexport var properties = ['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'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Essential JS 2 VueJS DashboardLayout Component.\n * ```html\n * <ejs-dashboardlayout></ejs-dashboardlayout>\n * ```\n */\nexport var DashboardLayoutComponent = vueDefineComponent({\n name: 'DashboardLayoutComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new DashboardLayout({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-panels\": \"e-panel\" },\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addPanel: function (panel) {\n return this.ej2Instances.addPanel(panel);\n },\n movePanel: function (id, row, col) {\n return this.ej2Instances.movePanel(id, row, col);\n },\n refresh: function () {\n return this.ej2Instances.refresh();\n },\n removeAll: function () {\n return this.ej2Instances.removeAll();\n },\n removePanel: function (id) {\n return this.ej2Instances.removePanel(id);\n },\n resizePanel: function (id, sizeX, sizeY) {\n return this.ej2Instances.resizePanel(id, sizeX, sizeY);\n },\n serialize: function () {\n return this.ej2Instances.serialize();\n },\n updatePanel: function (panel) {\n return this.ej2Instances.updatePanel(panel);\n },\n }\n});\nexport var DashboardLayoutPlugin = {\n name: 'ejs-dashboardlayout',\n install: function (Vue) {\n Vue.component(DashboardLayoutPlugin.name, DashboardLayoutComponent);\n Vue.component(PanelPlugin.name, PanelDirective);\n Vue.component(PanelsPlugin.name, PanelsDirective);\n }\n};\n"],"names":["PanesDirective","vueDefineComponent","inject","custom","default","render","createElement","isExecute","h","gh","slots","isNullOrUndefined","this","$slots","class","updated","methods","getTag","PanesPlugin","name","install","Vue","component","PaneDirective","PanePlugin","properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","SplitterComponent","mixins","ComponentBase","emits","provide","data","ej2Instances","Splitter","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-panes","tagNameMapper","isVue3","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addPane","paneProperties","index","collapse","expand","removePane","SplitterPlugin","PanelsDirective","PanelsPlugin","PanelDirective","PanelPlugin","DashboardLayoutComponent","DashboardLayout","e-panels","addPanel","panel","movePanel","id","row","col","refresh","removeAll","removePanel","resizePanel","sizeX","sizeY","serialize","updatePanel","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AAKC,GAC1B,OAAOzF,KAAKiC,aAAaqD,UAAUC,EAAIC,EAAKC,IAEhDC,QAAS,WACL,OAAO1F,KAAKiC,aAAayD,WAE7BC,UAAW,WACP,OAAO3F,KAAKiC,aAAa0D,aAE7BC,YAAa,SAAUL,GACnB,OAAOvF,KAAKiC,aAAa2D,YAAYL,IAEzCM,YAAa,SAAUN,EAAIO,EAAOC,GAC9B,OAAO/F,KAAKiC,aAAa4D,YAAYN,EAAIO,EAAOC,IAEpDC,UAAW,WACP,OAAOhG,KAAKiC,aAAa+D,aAE7BC,YAAa,SAAUZ,GACnB,OAAOrF,KAAKiC,aAAagE,YAAYZ,OAItCa,GACP3F,KAAM,sBACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUwF,EAAsB3F,KAAM0E,GAC1CxE,EAAIC,UAAUsE,EAAYzE,KAAMwE,GAChCtE,EAAIC,UAAUoE,EAAavE,KAAMsE"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-layouts.umd.min.js","sources":["../src/splitter/panesettings.directive.js","../src/splitter/splitter.component.js","../src/dashboard-layout/panels.directive.js","../src/dashboard-layout/dashboardlayout.component.js","../src/timeline/items.directive.js","../src/timeline/timeline.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var PanesDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-panes';\n }\n }\n});\nexport var PanesPlugin = {\n name: 'e-panes',\n install: function (Vue) {\n Vue.component(PanesPlugin.name, PanesDirective);\n }\n};\n/**\n * 'e-pane' directive represent a pane of Vue Splitter\n * It must be contained in a Splitter component(`ejs-splitter`).\n * ```html\n * <ejs-splitter id='splitter'>\n * <e-panes>\n * <e-pane size='150px'></e-pane>\n * <e-pane size='150px'></e-pane>\n * </e-panes>\n * </ejs-splitter>\n * ```\n */\nexport var PaneDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-pane';\n }\n }\n});\nexport var PanePlugin = {\n name: 'e-pane',\n install: function (Vue) {\n Vue.component(PanePlugin.name, PaneDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { Splitter } from '@syncfusion/ej2-layouts';\nimport { PanesDirective, PaneDirective, PanesPlugin, PanePlugin } from './panesettings.directive';\nexport var properties = ['isLazyUpdate', 'plugins', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableReversePanes', 'enableRtl', 'enabled', 'height', 'locale', 'orientation', 'paneSettings', 'separatorSize', 'width', 'beforeCollapse', 'beforeExpand', 'beforeSanitizeHtml', 'collapsed', 'created', 'expanded', 'resizeStart', 'resizeStop', 'resizing'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the VueJS Splitter component\n * ```html\n * <ejs-splitter></ejs-splitter>\n * ```\n */\nexport var SplitterComponent = vueDefineComponent({\n name: 'SplitterComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new Splitter({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-panes\": \"e-pane\" },\n tagNameMapper: { \"e-panes\": \"e-paneSettings\" },\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addPane: function (paneProperties, index) {\n return this.ej2Instances.addPane(paneProperties, index);\n },\n collapse: function (index) {\n return this.ej2Instances.collapse(index);\n },\n expand: function (index) {\n return this.ej2Instances.expand(index);\n },\n removePane: function (index) {\n return this.ej2Instances.removePane(index);\n },\n }\n});\nexport var SplitterPlugin = {\n name: 'ejs-splitter',\n install: function (Vue) {\n Vue.component(SplitterPlugin.name, SplitterComponent);\n Vue.component(PanePlugin.name, PaneDirective);\n Vue.component(PanesPlugin.name, PanesDirective);\n }\n};\n","import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var PanelsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-panels';\n }\n }\n});\nexport var PanelsPlugin = {\n name: 'e-panels',\n install: function (Vue) {\n Vue.component(PanelsPlugin.name, PanelsDirective);\n }\n};\n/**\n * 'e-panels' directive represent a presets of VueJS dashboardlayout component\n * It must be contained in a dashboardlayout component(`ejs-dashboardlayout`).\n * ```html\n * <ejs-dashboardlayout>\n * <e-panels>\n * <e-panel></e-panel>\n * <e-panel></e-panel>\n * </e-panels>\n * </ejs-dashboardlayout>\n * ```\n */\nexport var PanelDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-panel';\n }\n }\n});\nexport var PanelPlugin = {\n name: 'e-panel',\n install: function (Vue) {\n Vue.component(PanelPlugin.name, PanelDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { DashboardLayout } from '@syncfusion/ej2-layouts';\nimport { PanelsDirective, PanelDirective, PanelsPlugin, PanelPlugin } from './panels.directive';\nexport var properties = ['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'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Essential JS 2 VueJS DashboardLayout Component.\n * ```html\n * <ejs-dashboardlayout></ejs-dashboardlayout>\n * ```\n */\nexport var DashboardLayoutComponent = vueDefineComponent({\n name: 'DashboardLayoutComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new DashboardLayout({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-panels\": \"e-panel\" },\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addPanel: function (panel) {\n return this.ej2Instances.addPanel(panel);\n },\n movePanel: function (id, row, col) {\n return this.ej2Instances.movePanel(id, row, col);\n },\n refresh: function () {\n return this.ej2Instances.refresh();\n },\n removeAll: function () {\n return this.ej2Instances.removeAll();\n },\n removePanel: function (id) {\n return this.ej2Instances.removePanel(id);\n },\n resizePanel: function (id, sizeX, sizeY) {\n return this.ej2Instances.resizePanel(id, sizeX, sizeY);\n },\n serialize: function () {\n return this.ej2Instances.serialize();\n },\n updatePanel: function (panel) {\n return this.ej2Instances.updatePanel(panel);\n },\n }\n});\nexport var DashboardLayoutPlugin = {\n name: 'ejs-dashboardlayout',\n install: function (Vue) {\n Vue.component(DashboardLayoutPlugin.name, DashboardLayoutComponent);\n Vue.component(PanelPlugin.name, PanelDirective);\n Vue.component(PanelsPlugin.name, PanelsDirective);\n }\n};\n","import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var ItemsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-items';\n }\n }\n});\nexport var ItemsPlugin = {\n name: 'e-items',\n install: function (Vue) {\n Vue.component(ItemsPlugin.name, ItemsDirective);\n }\n};\n/**\n * 'e-timelineItem' directive represents a item of the Vue Timeline\n * It must be contained in a Timeline component(`ejs-timeline`).\n * ```html\n * <ejs-timeline>\n * <e-items>\n * <e-item :dotCss='e-icons e-folder' :content='Item 1' />\n * <e-item :dotCss='e-icons e-folder' :content='Item 2' />\n * </e-items>\n * </ejs-timeline>\n * ```\n */\nexport var ItemDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-item';\n }\n }\n});\nexport var ItemPlugin = {\n name: 'e-item',\n install: function (Vue) {\n Vue.component(ItemPlugin.name, ItemDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { Timeline } from '@syncfusion/ej2-layouts';\nimport { ItemsDirective, ItemDirective, ItemsPlugin, ItemPlugin } from './items.directive';\nexport var properties = ['isLazyUpdate', 'plugins', 'align', 'cssClass', 'enablePersistence', 'enableRtl', 'items', 'locale', 'orientation', 'reverse', 'template', 'beforeItemRender', 'created'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Essential JS 2 VueJS Timeline Component.\n * ```html\n * <ejs-timeline :items='timelineItems'></ejs-timeline>\n * ```\n */\nexport var TimelineComponent = vueDefineComponent({\n name: 'TimelineComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new Timeline({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-items\": \"e-item\" },\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n }\n});\nexport var TimelinePlugin = {\n name: 'ejs-timeline',\n install: function (Vue) {\n Vue.component(TimelinePlugin.name, TimelineComponent);\n Vue.component(ItemPlugin.name, ItemDirective);\n Vue.component(ItemsPlugin.name, ItemsDirective);\n }\n};\n"],"names":["PanesDirective","vueDefineComponent","inject","custom","default","render","createElement","isExecute","h","gh","slots","isNullOrUndefined","this","$slots","class","updated","methods","getTag","PanesPlugin","name","install","Vue","component","PaneDirective","PanePlugin","properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","SplitterComponent","mixins","ComponentBase","emits","provide","data","ej2Instances","Splitter","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-panes","tagNameMapper","isVue3","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addPane","paneProperties","index","collapse","expand","removePane","SplitterPlugin","PanelsDirective","PanelsPlugin","PanelDirective","PanelPlugin","DashboardLayoutComponent","DashboardLayout","e-panels","addPanel","panel","movePanel","id","row","col","refresh","removeAll","removePanel","resizePanel","sizeX","sizeY","serialize","updatePanel","DashboardLayoutPlugin","ItemsDirective","ItemsPlugin","ItemDirective","ItemPlugin","TimelineCom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mBQ,GAChD,GAAIC,GAAqBA,EAAkB3B,OAAQ,CAC/C,IAAK,IAAI4B,EAAK,EAAGC,EAAsBF,EAAmBC,EAAKC,EAAoB7B,OAAQ4B,IAAM,CAC7F,IAAIE,EAAMD,EAAoBD,GAChBG,WAAS,mBAAoBD,IAEvCA,EAAIE,QAAQC,WAEZH,EAAII,YACJJ,EAAII,UAAY,WAGjB3D,KAAK2C,mBAAmBQ,MAK/CJ,cAAe,SAAUa,EAAMC,GAC3B,IAAIC,EAAQ9D,KACRA,KAAK0C,SACL1C,KAAKoC,OAAUpC,KAAKoC,OAAyCpC,KAAKoC,OAArCpC,KAAKiC,aAAa8B,aAE/C/D,KAAKiC,cAAgBjC,KAAKiC,aAAaa,gBACvC9C,KAAKiC,aAAaa,eAAec,EAAMC,GAEvCD,GAAQ5D,KAAKoC,QAAUpC,KAAKoC,OAAOX,QACnCL,OAAOC,KAAKuC,GAAMI,IAAI,SAAUC,GAC5BH,EAAM1B,OAAO4B,IAAI,SAAUE,GAClBD,IAAQC,GAAY,cAAcC,KAAKF,KACpCH,EAAMpB,OACNoB,EAAM7B,aAAamC,YAAYC,MAAM,UAAYJ,EAAKL,EAAKK,KAG3DH,EAAMO,MAAM,UAAYJ,EAAKL,EAAKK,IAClCH,EAAMO,MAAM,eAAgBT,EAAKK,WAOzD1E,OAAQ,WACJS,KAAKG,cAINuG,GACPnG,KAAM,eACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUgG,EAAenG,KAAMgG,GACnC9F,EAAIC,UAAU4F,EAAW/F,KAAM8F,GAC/B5F,EAAIC,UAAU0F,EAAY7F,KAAM4F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DashboardLayout, Splitter } from '@syncfusion/ej2-layouts';
|
|
1
|
+
import { DashboardLayout, Splitter, Timeline } from '@syncfusion/ej2-layouts';
|
|
2
2
|
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -378,6 +378,176 @@ const DashboardLayoutPlugin = {
|
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
|
|
381
|
+
let ItemsDirective = vueDefineComponent({
|
|
382
|
+
inject: { custom: { default: null } },
|
|
383
|
+
render(createElement) {
|
|
384
|
+
if (!isExecute) {
|
|
385
|
+
let h = !isExecute ? gh : createElement;
|
|
386
|
+
let slots = null;
|
|
387
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
388
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
389
|
+
}
|
|
390
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
391
|
+
}
|
|
392
|
+
return;
|
|
393
|
+
},
|
|
394
|
+
updated() {
|
|
395
|
+
if (!isExecute && this.custom) {
|
|
396
|
+
this.custom();
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
methods: {
|
|
400
|
+
getTag() {
|
|
401
|
+
return 'e-items';
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
const ItemsPlugin = {
|
|
406
|
+
name: 'e-items',
|
|
407
|
+
install(Vue) {
|
|
408
|
+
Vue.component(ItemsPlugin.name, ItemsDirective);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* 'e-timelineItem' directive represents a item of the Vue Timeline
|
|
413
|
+
* It must be contained in a Timeline component(`ejs-timeline`).
|
|
414
|
+
* ```html
|
|
415
|
+
* <ejs-timeline>
|
|
416
|
+
* <e-items>
|
|
417
|
+
* <e-item :dotCss='e-icons e-folder' :content='Item 1' />
|
|
418
|
+
* <e-item :dotCss='e-icons e-folder' :content='Item 2' />
|
|
419
|
+
* </e-items>
|
|
420
|
+
* </ejs-timeline>
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
let ItemDirective = vueDefineComponent({
|
|
424
|
+
render() {
|
|
425
|
+
return;
|
|
426
|
+
},
|
|
427
|
+
methods: {
|
|
428
|
+
getTag() {
|
|
429
|
+
return 'e-item';
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
const ItemPlugin = {
|
|
434
|
+
name: 'e-item',
|
|
435
|
+
install(Vue) {
|
|
436
|
+
Vue.component(ItemPlugin.name, ItemDirective);
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
const properties$2 = ['isLazyUpdate', 'plugins', 'align', 'cssClass', 'enablePersistence', 'enableRtl', 'items', 'locale', 'orientation', 'reverse', 'template', 'beforeItemRender', 'created'];
|
|
441
|
+
const modelProps$2 = [];
|
|
442
|
+
const testProp$2 = getProps({ props: properties$2 });
|
|
443
|
+
const props$2 = testProp$2[0];
|
|
444
|
+
const watch$2 = testProp$2[1];
|
|
445
|
+
const emitProbs$2 = Object.keys(watch$2);
|
|
446
|
+
emitProbs$2.push('modelchanged', 'update:modelValue');
|
|
447
|
+
for (let props of modelProps$2) {
|
|
448
|
+
emitProbs$2.push('update:' + props);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Represents the Essential JS 2 VueJS Timeline Component.
|
|
452
|
+
* ```html
|
|
453
|
+
* <ejs-timeline :items='timelineItems'></ejs-timeline>
|
|
454
|
+
* ```
|
|
455
|
+
*/
|
|
456
|
+
let TimelineComponent = vueDefineComponent({
|
|
457
|
+
name: 'TimelineComponent',
|
|
458
|
+
mixins: [ComponentBase],
|
|
459
|
+
props: props$2,
|
|
460
|
+
watch: watch$2,
|
|
461
|
+
emits: emitProbs$2,
|
|
462
|
+
provide() { return { custom: this.custom }; },
|
|
463
|
+
data() {
|
|
464
|
+
return {
|
|
465
|
+
ej2Instances: new Timeline({}),
|
|
466
|
+
propKeys: properties$2,
|
|
467
|
+
models: modelProps$2,
|
|
468
|
+
hasChildDirective: true,
|
|
469
|
+
hasInjectedModules: false,
|
|
470
|
+
tagMapper: { "e-items": "e-item" },
|
|
471
|
+
tagNameMapper: {},
|
|
472
|
+
isVue3: !isExecute,
|
|
473
|
+
templateCollection: {},
|
|
474
|
+
};
|
|
475
|
+
},
|
|
476
|
+
created() {
|
|
477
|
+
this.bindProperties();
|
|
478
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
479
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
480
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
481
|
+
this.updated = this.updated;
|
|
482
|
+
},
|
|
483
|
+
render(createElement) {
|
|
484
|
+
let h = !isExecute ? gh : createElement;
|
|
485
|
+
let slots = null;
|
|
486
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
487
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
488
|
+
}
|
|
489
|
+
return h('div', slots);
|
|
490
|
+
},
|
|
491
|
+
methods: {
|
|
492
|
+
clearTemplate(templateNames) {
|
|
493
|
+
if (!templateNames) {
|
|
494
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
495
|
+
}
|
|
496
|
+
if (templateNames.length && this.templateCollection) {
|
|
497
|
+
for (let tempName of templateNames) {
|
|
498
|
+
let elementCollection = this.templateCollection[tempName];
|
|
499
|
+
if (elementCollection && elementCollection.length) {
|
|
500
|
+
for (let ele of elementCollection) {
|
|
501
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
502
|
+
if (destroy) {
|
|
503
|
+
ele.__vue__.$destroy();
|
|
504
|
+
}
|
|
505
|
+
if (ele.innerHTML) {
|
|
506
|
+
ele.innerHTML = '';
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
delete this.templateCollection[tempName];
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
setProperties(prop, muteOnChange) {
|
|
515
|
+
if (this.isVue3) {
|
|
516
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
517
|
+
}
|
|
518
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
519
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
520
|
+
}
|
|
521
|
+
if (prop && this.models && this.models.length) {
|
|
522
|
+
Object.keys(prop).map((key) => {
|
|
523
|
+
this.models.map((model) => {
|
|
524
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
525
|
+
if (this.isVue3) {
|
|
526
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
this.$emit('update:' + key, prop[key]);
|
|
530
|
+
this.$emit('modelchanged', prop[key]);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
custom() {
|
|
538
|
+
this.updated();
|
|
539
|
+
},
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
const TimelinePlugin = {
|
|
543
|
+
name: 'ejs-timeline',
|
|
544
|
+
install(Vue) {
|
|
545
|
+
Vue.component(TimelinePlugin.name, TimelineComponent);
|
|
546
|
+
Vue.component(ItemPlugin.name, ItemDirective);
|
|
547
|
+
Vue.component(ItemsPlugin.name, ItemsDirective);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export { PanesDirective, PaneDirective, PanesPlugin, PanePlugin, SplitterComponent, SplitterPlugin, PanelsDirective, PanelDirective, PanelsPlugin, PanelPlugin, DashboardLayoutComponent, DashboardLayoutPlugin, ItemsDirective, ItemDirective, ItemsPlugin, ItemPlugin, TimelineComponent, TimelinePlugin };
|
|
382
552
|
export * from '@syncfusion/ej2-layouts';
|
|
383
553
|
//# sourceMappingURL=ej2-vue-layouts.es2015.js.map
|