@syncfusion/ej2-vue-form-renderer 34.2.2
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/README.md +130 -0
- package/dist/ej2-vue-form-renderer.umd.min.js +11 -0
- package/dist/ej2-vue-form-renderer.umd.min.js.map +1 -0
- package/dist/es6/ej2-vue-form-renderer.es2015.js +111 -0
- package/dist/es6/ej2-vue-form-renderer.es2015.js.map +1 -0
- package/dist/es6/ej2-vue-form-renderer.es5.js +115 -0
- package/dist/es6/ej2-vue-form-renderer.es5.js.map +1 -0
- package/form-renderer.d.ts +4 -0
- package/form-renderer.js +4 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/license +6 -0
- package/package.json +33 -0
- package/src/form-renderer/formrenderer.component.d.ts +35 -0
- package/src/form-renderer/formrenderer.component.js +110 -0
- package/src/form-renderer/index.d.ts +1 -0
- package/src/form-renderer/index.js +1 -0
- package/src/global.js +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/styles/bds-lite.css +1 -0
- package/styles/bds-lite.scss +1 -0
- package/styles/bds.css +1 -0
- package/styles/bds.scss +1 -0
- package/styles/bootstrap-dark-lite.css +1 -0
- package/styles/bootstrap-dark-lite.scss +1 -0
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap-lite.css +1 -0
- package/styles/bootstrap-lite.scss +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4-lite.css +1 -0
- package/styles/bootstrap4-lite.scss +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark-lite.css +1 -0
- package/styles/bootstrap5-dark-lite.scss +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5-lite.css +1 -0
- package/styles/bootstrap5-lite.scss +1 -0
- package/styles/bootstrap5.3-lite.css +1 -0
- package/styles/bootstrap5.3-lite.scss +1 -0
- package/styles/bootstrap5.3.css +1 -0
- package/styles/bootstrap5.3.scss +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark-lite.css +1 -0
- package/styles/fabric-dark-lite.scss +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric-lite.css +1 -0
- package/styles/fabric-lite.scss +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark-lite.css +1 -0
- package/styles/fluent-dark-lite.scss +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent-lite.css +1 -0
- package/styles/fluent-lite.scss +1 -0
- package/styles/fluent.css +1 -0
- package/styles/fluent.scss +1 -0
- package/styles/fluent2-lite.css +1 -0
- package/styles/fluent2-lite.scss +1 -0
- package/styles/fluent2.css +1 -0
- package/styles/fluent2.scss +1 -0
- package/styles/form-renderer/bds.css +1 -0
- package/styles/form-renderer/bds.scss +1 -0
- package/styles/form-renderer/bootstrap-dark.css +1 -0
- package/styles/form-renderer/bootstrap-dark.scss +1 -0
- package/styles/form-renderer/bootstrap.css +1 -0
- package/styles/form-renderer/bootstrap.scss +1 -0
- package/styles/form-renderer/bootstrap4.css +1 -0
- package/styles/form-renderer/bootstrap4.scss +1 -0
- package/styles/form-renderer/bootstrap5-dark.css +1 -0
- package/styles/form-renderer/bootstrap5-dark.scss +1 -0
- package/styles/form-renderer/bootstrap5.3.css +1 -0
- package/styles/form-renderer/bootstrap5.3.scss +1 -0
- package/styles/form-renderer/bootstrap5.css +1 -0
- package/styles/form-renderer/bootstrap5.scss +1 -0
- package/styles/form-renderer/fabric-dark.css +1 -0
- package/styles/form-renderer/fabric-dark.scss +1 -0
- package/styles/form-renderer/fabric.css +1 -0
- package/styles/form-renderer/fabric.scss +1 -0
- package/styles/form-renderer/fluent-dark.css +1 -0
- package/styles/form-renderer/fluent-dark.scss +1 -0
- package/styles/form-renderer/fluent.css +1 -0
- package/styles/form-renderer/fluent.scss +1 -0
- package/styles/form-renderer/fluent2.css +1 -0
- package/styles/form-renderer/fluent2.scss +1 -0
- package/styles/form-renderer/highcontrast-light.css +1 -0
- package/styles/form-renderer/highcontrast-light.scss +1 -0
- package/styles/form-renderer/highcontrast.css +1 -0
- package/styles/form-renderer/highcontrast.scss +1 -0
- package/styles/form-renderer/material-dark.css +1 -0
- package/styles/form-renderer/material-dark.scss +1 -0
- package/styles/form-renderer/material.css +1 -0
- package/styles/form-renderer/material.scss +1 -0
- package/styles/form-renderer/material3-dark.css +1 -0
- package/styles/form-renderer/material3-dark.scss +1 -0
- package/styles/form-renderer/material3.css +1 -0
- package/styles/form-renderer/material3.scss +1 -0
- package/styles/form-renderer/tailwind-dark.css +1 -0
- package/styles/form-renderer/tailwind-dark.scss +1 -0
- package/styles/form-renderer/tailwind.css +1 -0
- package/styles/form-renderer/tailwind.scss +1 -0
- package/styles/form-renderer/tailwind3.css +1 -0
- package/styles/form-renderer/tailwind3.scss +1 -0
- package/styles/highcontrast-light-lite.css +1 -0
- package/styles/highcontrast-light-lite.scss +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast-lite.css +1 -0
- package/styles/highcontrast-lite.scss +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark-lite.css +1 -0
- package/styles/material-dark-lite.scss +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material-lite.css +1 -0
- package/styles/material-lite.scss +1 -0
- package/styles/material.css +1 -0
- package/styles/material.scss +1 -0
- package/styles/material3-dark-lite.css +1 -0
- package/styles/material3-dark-lite.scss +1 -0
- package/styles/material3-dark.css +1 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3-lite.css +1 -0
- package/styles/material3-lite.scss +1 -0
- package/styles/material3.css +1 -0
- package/styles/material3.scss +1 -0
- package/styles/tailwind-dark-lite.css +1 -0
- package/styles/tailwind-dark-lite.scss +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind-lite.css +1 -0
- package/styles/tailwind-lite.scss +1 -0
- package/styles/tailwind.css +1 -0
- package/styles/tailwind.scss +1 -0
- package/styles/tailwind3-lite.css +1 -0
- package/styles/tailwind3-lite.scss +1 -0
- package/styles/tailwind3.css +1 -0
- package/styles/tailwind3.scss +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Vue Form Renderer Component
|
|
2
|
+
|
|
3
|
+
## What's Included in the Vue Form Renderer Package
|
|
4
|
+
|
|
5
|
+
The Vue Form Renderer package is a schema-driven form rendering and validation engine. It consumes a JSON form schema and renders a fully functional, Syncfusion-based form that supports field mapping, conditional visibility/disabling, expression-based value computation, custom validation, and data submission.
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://ej2.syncfusion.com/vue/documentation/introduction?utm_source=npm&utm_medium=listing&utm_campaign=vue-form-renderer-npm">Getting Started</a> .
|
|
9
|
+
<a href="https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-form-renderer-npm">Online demos</a> .
|
|
10
|
+
<a href="https://www.syncfusion.com/vue-components?utm_source=npm&utm_medium=listing&utm_campaign=vue-form-renderer-npm">Learn more</a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<img alt="Vue Form Renderer Component" src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/vue/vue-form-renderer.png">
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
## Form Renderer (Vue)
|
|
18
|
+
|
|
19
|
+
The [Vue Form Renderer](https://www.syncfusion.com/vue-components?utm_source=npm&utm_medium=listing&utm_campaign=vue-form-renderer-npm) component renders a fully interactive, validation-enabled form from a JSON schema. It is built on top of the Syncfusion Essential JS 2 Vue suite (inputs, dropdowns, calendars, grids, navigation, popups, and rich text editor) and exposes a `<ejs-formrenderer />` component that is the source of truth for the form-renderer contract.
|
|
20
|
+
|
|
21
|
+
#### Key features
|
|
22
|
+
|
|
23
|
+
* **Schema-driven rendering** — Consumes a JSON `FormSchema` (or Unified Schema) describing the form's version, fields (`properties`), layout, and global settings, then renders the form automatically.
|
|
24
|
+
* **30+ field types** — Maps every supported `component.type` to the equivalent Syncfusion EJ2 Vue component (textbox, textarea, number, checkbox, checkbox group, radio, dropdown, multiselect, date, dateTime, time, date range, switch, button, split button, signature, rating, color picker, input mask, range slider, file upload, image editor, message, panel, table, tabs, data grid, lookup, static HTML, card, rich text editor).
|
|
25
|
+
* **Built-in validation** — Uses the native EJ2 `FormValidator` to enforce `required`, `minLength`, `maxLength`, `min`, `max`, `regex`, and custom expression rules. Auto-applies email/URL regexes for `textbox` with `textboxType` set.
|
|
26
|
+
* **Conditional logic** — `visibleWhen`, `hideWhen`, `readOnlyWhen`, `disabledWhen`, `requiredWhen`, `setValueWhen`, choice-based field filtering, and conditional data sources for data grids.
|
|
27
|
+
* **Expression engine** — Computed fields via `expressionValue` with topological evaluation order, cycle detection, and per-target-type coercion.
|
|
28
|
+
* **Layouts & composition** — Single/Two/Three/Four column layouts, panels, tables, tabs, cards, and per-column width control.
|
|
29
|
+
* **Events** — `created`, `onChange`, `onSubmit`, `onButtonClick`, and `onFailure` for full integration.
|
|
30
|
+
* **Localization & RTL** — `locale` and `enableRtl` are threaded into every rendered Syncfusion Vue control.
|
|
31
|
+
|
|
32
|
+
### Usage
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<template>
|
|
36
|
+
<ejs-formrenderer :schema="schema" :onSubmit="onSubmit"></ejs-formrenderer>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
import { FormRendererComponent } from '@syncfusion/ej2-vue-form-renderer';
|
|
41
|
+
|
|
42
|
+
export default {
|
|
43
|
+
name: 'App',
|
|
44
|
+
components: { 'ejs-formrenderer': FormRendererComponent },
|
|
45
|
+
data() {
|
|
46
|
+
return {
|
|
47
|
+
schema: {
|
|
48
|
+
version: '0.1.0',
|
|
49
|
+
properties: {
|
|
50
|
+
name: { type: 'textbox', label: 'Name', required: true },
|
|
51
|
+
email: { type: 'textbox', label: 'Email', textboxType: 'email' },
|
|
52
|
+
role: { type: 'dropdown', label: 'Role', options: ['Admin', 'User'] },
|
|
53
|
+
accept: { type: 'checkbox', label: 'Accept Terms', required: true }
|
|
54
|
+
},
|
|
55
|
+
layout: [
|
|
56
|
+
{ row: 0, col: 0, field: 'name' },
|
|
57
|
+
{ row: 1, col: 0, field: 'email' },
|
|
58
|
+
{ row: 2, col: 0, field: 'role' },
|
|
59
|
+
{ row: 3, col: 0, field: 'accept' }
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
onSubmit(args) { console.log(args.data, args.isValid); }
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
</script>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
<p align="center">
|
|
72
|
+
Trusted by the world's leading companies
|
|
73
|
+
<a href="https://www.syncfusion.com/">
|
|
74
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Syncfusion logo">
|
|
75
|
+
</a>
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
## Setup
|
|
79
|
+
|
|
80
|
+
To install the form renderer and its dependent packages, use the following command.
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
npm install @syncfusion/ej2-vue-form-renderer
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The Vue Form Renderer pulls in its required EJ2 Vue peers automatically (inputs, calendars, dropdowns, buttons, split buttons, grids, navigation, popups, notifications, rich text editor, image editor).
|
|
87
|
+
|
|
88
|
+
## Supported frameworks
|
|
89
|
+
|
|
90
|
+
The Form Renderer is also offered in following list of frameworks.
|
|
91
|
+
|
|
92
|
+
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/> [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/react.svg" height="50" />](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)<br/> [React](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/angular-new.svg" height="50" />](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)<br/> [Angular](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github) |
|
|
93
|
+
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
94
|
+
|
|
95
|
+
## Showcase samples
|
|
96
|
+
|
|
97
|
+
* Job Application Form - [Source](https://github.com/syncfusion/ej2-showcase-vue-form-renderer), [Live Demo](https://ej2.syncfusion.com/showcase/vue/form-renderer/?utm_source=npm&utm_campaign=form-renderer)
|
|
98
|
+
* Asset Management - [Source](https://github.com/syncfusion/ej2-showcase-vue-assetmanagement), [Live Demo](https://ej2.syncfusion.com/showcase/vue/assetmanagement/?utm_source=npm&utm_campaign=form-renderer)
|
|
99
|
+
|
|
100
|
+
## Resources
|
|
101
|
+
|
|
102
|
+
* [Documentation](https://ej2.syncfusion.com/vue/documentation/introduction)
|
|
103
|
+
* [Theme Studio](https://ej2.syncfusion.com/themestudio/)
|
|
104
|
+
* [What's New](https://www.syncfusion.com/products/whatsnew/vue?utm_medium=listing&utm_source=github)
|
|
105
|
+
* [Road Map](https://www.syncfusion.com/products/roadmap/vue)
|
|
106
|
+
* [E-Books](https://www.syncfusion.com/succinctly-free-ebooks?searchkey=vue&type=all)
|
|
107
|
+
|
|
108
|
+
## Support
|
|
109
|
+
|
|
110
|
+
Product support is available through following mediums.
|
|
111
|
+
|
|
112
|
+
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
113
|
+
* [Community forum](https://www.syncfusion.com/forums/vue?utm_source=npm&utm_campaign=vue-form-renderer-npm)
|
|
114
|
+
* [GitHub issues](https://github.com/syncfusion/ej2-vue-ui-components/issues/new)
|
|
115
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/vue?utm_medium=listing&utm_source=github)
|
|
116
|
+
* Live chat
|
|
117
|
+
|
|
118
|
+
## Changelog
|
|
119
|
+
|
|
120
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/form-renderer/CHANGELOG.md). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
121
|
+
|
|
122
|
+
## License and copyright
|
|
123
|
+
|
|
124
|
+
> This is a commercial product and requires a paid license for possession or use. Syncfusion<sup>®</sup> licensed software, including this component, is subject to the terms and conditions of Syncfusion<sup>®</sup> [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 140+ [Vue UI components](https://www.syncfusion.com/vue-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
|
|
125
|
+
|
|
126
|
+
> A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
|
|
127
|
+
|
|
128
|
+
See [LICENSE FILE](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/license) for more info.
|
|
129
|
+
|
|
130
|
+
© Copyright 2026 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: ej2-vue-form-renderer.umd.min.js
|
|
3
|
+
* version : 34.2.2
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-form-renderer"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-form-renderer","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2FormRenderer,e.ej2VueBase,e.ej2Base)}(this,function(t,s,n,i){"use strict";var e=["isLazyUpdate","plugins","className","enablePersistence","enableRtl","layout","locale","schema","buttonClick","change","created","failure","submit"],o=[],r=n.getProps({props:e}),a=r[0],r=r[1],u=Object.keys(r);u.push("modelchanged","update:modelValue");for(var c=0,l=o;c<l.length;c++)u.push("update:"+l[c]);var d=n.vueDefineComponent({name:"FormRendererComponent",mixins:[n.ComponentBase],props:a,watch:r,emits:u,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new s.FormRenderer({}),propKeys:e,models:o,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=i.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],i=this.templateCollection[n];if(i&&i.length){for(var o=0,r=i;o<r.length;o++){var a=r[o];this.destroyPortals(a)}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()},getComponent:function(e){return this.ej2Instances.getComponent(e)}}}),p={name:"ejs-formrenderer",install:function(e){e.component(p.name,d)}};Object.keys(s).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}),t.FormRendererComponent=d,t.FormRendererPlugin=p,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
11
|
+
//# sourceMappingURL=ej2-vue-form-renderer.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ej2-vue-form-renderer.umd.min.js","sources":["../src/form-renderer/formrenderer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { FormRenderer } from '@syncfusion/ej2-form-renderer';\nexport var properties = ['isLazyUpdate', 'plugins', 'className', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema', 'buttonClick', 'change', 'created', 'failure', 'submit'];\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 FormRenderer Component\n * ```html\n * <ejs-form-renderer></ejs-form-renderer>\n * ```\n */\nexport var FormRendererComponent = vueDefineComponent({\n name: 'FormRendererComponent',\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 FormRenderer({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: false,\n tagMapper: {},\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 this.destroyPortals(ele);\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 getComponent: function (name) {\n return this.ej2Instances.getComponent(name);\n },\n }\n});\nexport var FormRendererPlugin = {\n name: 'ejs-formrenderer',\n install: function (Vue) {\n Vue.component(FormRendererPlugin.name, FormRendererComponent);\n }\n};\n"],"names":["properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","FormRendererComponent","vueDefineComponent","name","mixins","ComponentBase","emits","provide","custom","this","data","ej2Instances","FormRenderer","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","isVue3","isExecute","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","updated","render","createElement","slots","gh","isNullOrUndefined","$slots","default","methods","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","destroyPortals","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","getComponent","FormRendererPlugin","install","Vue","component"],"mappings":"6aAGO,IAAIA,EAAa,CAAC,eAAgB,UAAW,YAAa,oBAAqB,YAAa,SAAU,SAAU,SAAU,cAAe,SAAU,UAAW,UAAW,UACrKC,EAAa,GACbC,EAAWC,WAAS,CAAEC,MAAOJ,EAAY,EACzCI,EAAQF,EAAS,GAAIG,EAAQH,EAAS,GAAII,EAAYC,OAAOC,KAAKH,CAAK,EAClFC,EAAUG,KAAK,eAAgB,mBAAmB,EAClD,IAAK,IAAIC,EAAK,EAAGC,EAAeV,EAAYS,EAAKC,EAAaC,OAAQF,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E3B,OAAOjC,KAAKY,mBAAmBiB,MAK/Cb,cAAe,SAAUmB,EAAMC,GAC3B,IAAIC,EAAQrC,KACRA,KAAKU,SACLV,KAAKK,OAAUL,KAAKK,QAASL,KAAKE,aAAaoC,aAE/CtC,KAAKE,cAAgBF,KAAKE,aAAaa,gBACvCf,KAAKE,aAAaa,eAAeoB,EAAMC,CAAY,EAEnDD,GAAQnC,KAAKK,QAAUL,KAAKK,OAAOd,QACnCL,OAAOC,KAAKgD,CAAI,EAAEI,IAAI,SAAUC,GAC5BH,EAAMhC,OAAOkC,IAAI,SAAUE,GAClBD,IAAQC,GAAY,cAAcC,KAAKF,CAAI,IACxCH,EAAM3B,OACN2B,EAAMnC,aAAayC,YAAYC,MAAM,UAAYJ,EAAKL,EAAKK,EAAI,GAG/DH,EAAMO,MAAM,UAAYJ,EAAKL,EAAKK,EAAI,EACtCH,EAAMO,MAAM,eAAgBT,EAAKK,EAAI,IAGhD,EACJ,GAGTzC,OAAQ,WACJC,KAAKkB,WAET2B,aAAc,SAAUnD,GACpB,OAAOM,KAAKE,aAAa2C,aAAanD,CAAI,GAGtD,CAAC,EACUoD,EAAqB,CAC5BpD,KAAM,mBACNqD,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAmBpD,KAAMF,CAAqB,EAEpE"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { FormRenderer } from '@syncfusion/ej2-form-renderer';
|
|
2
|
+
export * from '@syncfusion/ej2-form-renderer';
|
|
3
|
+
import { getProps, vueDefineComponent, ComponentBase, isExecute, gh } from '@syncfusion/ej2-vue-base';
|
|
4
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
+
|
|
6
|
+
const properties = ['isLazyUpdate', 'plugins', 'className', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema', 'buttonClick', 'change', 'created', 'failure', 'submit'];
|
|
7
|
+
const modelProps = [];
|
|
8
|
+
const testProp = getProps({ props: properties });
|
|
9
|
+
const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
10
|
+
emitProbs.push('modelchanged', 'update:modelValue');
|
|
11
|
+
for (let props of modelProps) {
|
|
12
|
+
emitProbs.push('update:' + props);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents the Essential JS 2 VueJS FormRenderer Component
|
|
16
|
+
* ```html
|
|
17
|
+
* <ejs-form-renderer></ejs-form-renderer>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
let FormRendererComponent = vueDefineComponent({
|
|
21
|
+
name: 'FormRendererComponent',
|
|
22
|
+
mixins: [ComponentBase],
|
|
23
|
+
props: props,
|
|
24
|
+
watch: watch,
|
|
25
|
+
emits: emitProbs,
|
|
26
|
+
provide() { return { custom: this.custom }; },
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
ej2Instances: new FormRenderer({}),
|
|
30
|
+
propKeys: properties,
|
|
31
|
+
models: modelProps,
|
|
32
|
+
hasChildDirective: false,
|
|
33
|
+
hasInjectedModules: false,
|
|
34
|
+
tagMapper: {},
|
|
35
|
+
tagNameMapper: {},
|
|
36
|
+
isVue3: !isExecute,
|
|
37
|
+
templateCollection: {},
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
created() {
|
|
41
|
+
this.bindProperties();
|
|
42
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
43
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
44
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
45
|
+
this.updated = this.updated;
|
|
46
|
+
},
|
|
47
|
+
render(createElement) {
|
|
48
|
+
let h = !isExecute ? gh : createElement;
|
|
49
|
+
let slots = null;
|
|
50
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
51
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
52
|
+
}
|
|
53
|
+
return h('div', slots);
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
clearTemplate(templateNames) {
|
|
57
|
+
if (!templateNames) {
|
|
58
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
59
|
+
}
|
|
60
|
+
if (templateNames.length && this.templateCollection) {
|
|
61
|
+
for (let tempName of templateNames) {
|
|
62
|
+
let elementCollection = this.templateCollection[tempName];
|
|
63
|
+
if (elementCollection && elementCollection.length) {
|
|
64
|
+
for (let ele of elementCollection) {
|
|
65
|
+
this.destroyPortals(ele);
|
|
66
|
+
}
|
|
67
|
+
delete this.templateCollection[tempName];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
setProperties(prop, muteOnChange) {
|
|
73
|
+
if (this.isVue3) {
|
|
74
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
75
|
+
}
|
|
76
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
77
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
78
|
+
}
|
|
79
|
+
if (prop && this.models && this.models.length) {
|
|
80
|
+
Object.keys(prop).map((key) => {
|
|
81
|
+
this.models.map((model) => {
|
|
82
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
83
|
+
if (this.isVue3) {
|
|
84
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.$emit('update:' + key, prop[key]);
|
|
88
|
+
this.$emit('modelchanged', prop[key]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
custom() {
|
|
96
|
+
this.updated();
|
|
97
|
+
},
|
|
98
|
+
getComponent(name) {
|
|
99
|
+
return this.ej2Instances.getComponent(name);
|
|
100
|
+
},
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const FormRendererPlugin = {
|
|
104
|
+
name: 'ejs-formrenderer',
|
|
105
|
+
install(Vue) {
|
|
106
|
+
Vue.component(FormRendererPlugin.name, FormRendererComponent);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export { FormRendererComponent, FormRendererPlugin };
|
|
111
|
+
//# sourceMappingURL=ej2-vue-form-renderer.es2015.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ej2-vue-form-renderer.es2015.js","sources":["../src/es6/form-renderer/formrenderer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { FormRenderer } from '@syncfusion/ej2-form-renderer';\nexport const properties = ['isLazyUpdate', 'plugins', 'className', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema', 'buttonClick', 'change', 'created', 'failure', 'submit'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents the Essential JS 2 VueJS FormRenderer Component\n * ```html\n * <ejs-form-renderer></ejs-form-renderer>\n * ```\n */\nexport let FormRendererComponent = vueDefineComponent({\n name: 'FormRendererComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\n return {\n ej2Instances: new FormRenderer({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: false,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created() {\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(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n this.destroyPortals(ele);\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties(prop, muteOnChange) {\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((key) => {\n this.models.map((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() {\n this.updated();\n },\n getComponent(name) {\n return this.ej2Instances.getComponent(name);\n },\n }\n});\nexport const FormRendererPlugin = {\n name: 'ejs-formrenderer',\n install(Vue) {\n Vue.component(FormRendererPlugin.name, FormRendererComponent);\n }\n};\n"],"names":[],"mappings":";;;;;AAGO,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACrL,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACjD,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,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AACnB,aAAa;AACb,SAAS;AACT,QAAQ,MAAM,GAAG;AACjB,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;AAC3B,SAAS;AACT,QAAQ,YAAY,CAAC,IAAI,EAAE;AAC3B,YAAY,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxD,SAAS;AACT,KAAK;AACL,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,IAAI,IAAI,EAAE,kBAAkB;AAC5B,IAAI,OAAO,CAAC,GAAG,EAAE;AACjB,QAAQ,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACtE,KAAK;AACL;;;;"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { FormRenderer } from '@syncfusion/ej2-form-renderer';
|
|
2
|
+
export * from '@syncfusion/ej2-form-renderer';
|
|
3
|
+
import { getProps, vueDefineComponent, ComponentBase, isExecute, gh } from '@syncfusion/ej2-vue-base';
|
|
4
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
+
|
|
6
|
+
var properties = ['isLazyUpdate', 'plugins', 'className', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema', 'buttonClick', 'change', 'created', 'failure', 'submit'];
|
|
7
|
+
var modelProps = [];
|
|
8
|
+
var testProp = getProps({ props: properties });
|
|
9
|
+
var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
10
|
+
emitProbs.push('modelchanged', 'update:modelValue');
|
|
11
|
+
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
12
|
+
var props_1 = modelProps_1[_i];
|
|
13
|
+
emitProbs.push('update:' + props_1);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents the Essential JS 2 VueJS FormRenderer Component
|
|
17
|
+
* ```html
|
|
18
|
+
* <ejs-form-renderer></ejs-form-renderer>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
var FormRendererComponent = vueDefineComponent({
|
|
22
|
+
name: 'FormRendererComponent',
|
|
23
|
+
mixins: [ComponentBase],
|
|
24
|
+
props: props,
|
|
25
|
+
watch: watch,
|
|
26
|
+
emits: emitProbs,
|
|
27
|
+
provide: function () { return { custom: this.custom }; },
|
|
28
|
+
data: function () {
|
|
29
|
+
return {
|
|
30
|
+
ej2Instances: new FormRenderer({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: false,
|
|
34
|
+
hasInjectedModules: false,
|
|
35
|
+
tagMapper: {},
|
|
36
|
+
tagNameMapper: {},
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
created: function () {
|
|
42
|
+
this.bindProperties();
|
|
43
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
44
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
45
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
46
|
+
this.updated = this.updated;
|
|
47
|
+
},
|
|
48
|
+
render: function (createElement) {
|
|
49
|
+
var h = !isExecute ? gh : createElement;
|
|
50
|
+
var slots = null;
|
|
51
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
52
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
53
|
+
}
|
|
54
|
+
return h('div', slots);
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
clearTemplate: function (templateNames) {
|
|
58
|
+
if (!templateNames) {
|
|
59
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
60
|
+
}
|
|
61
|
+
if (templateNames.length && this.templateCollection) {
|
|
62
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
63
|
+
var tempName = templateNames_1[_i];
|
|
64
|
+
var elementCollection = this.templateCollection[tempName];
|
|
65
|
+
if (elementCollection && elementCollection.length) {
|
|
66
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
67
|
+
var ele = elementCollection_1[_a];
|
|
68
|
+
this.destroyPortals(ele);
|
|
69
|
+
}
|
|
70
|
+
delete this.templateCollection[tempName];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
setProperties: function (prop, muteOnChange) {
|
|
76
|
+
var _this = this;
|
|
77
|
+
if (this.isVue3) {
|
|
78
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
79
|
+
}
|
|
80
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
81
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
82
|
+
}
|
|
83
|
+
if (prop && this.models && this.models.length) {
|
|
84
|
+
Object.keys(prop).map(function (key) {
|
|
85
|
+
_this.models.map(function (model) {
|
|
86
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
87
|
+
if (_this.isVue3) {
|
|
88
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
_this.$emit('update:' + key, prop[key]);
|
|
92
|
+
_this.$emit('modelchanged', prop[key]);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
custom: function () {
|
|
100
|
+
this.updated();
|
|
101
|
+
},
|
|
102
|
+
getComponent: function (name) {
|
|
103
|
+
return this.ej2Instances.getComponent(name);
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var FormRendererPlugin = {
|
|
108
|
+
name: 'ejs-formrenderer',
|
|
109
|
+
install: function (Vue) {
|
|
110
|
+
Vue.component(FormRendererPlugin.name, FormRendererComponent);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export { FormRendererComponent, FormRendererPlugin };
|
|
115
|
+
//# sourceMappingURL=ej2-vue-form-renderer.es5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ej2-vue-form-renderer.es5.js","sources":["../../src/form-renderer/formrenderer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { FormRenderer } from '@syncfusion/ej2-form-renderer';\nexport var properties = ['isLazyUpdate', 'plugins', 'className', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema', 'buttonClick', 'change', 'created', 'failure', 'submit'];\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 FormRenderer Component\n * ```html\n * <ejs-form-renderer></ejs-form-renderer>\n * ```\n */\nexport var FormRendererComponent = vueDefineComponent({\n name: 'FormRendererComponent',\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 FormRenderer({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: false,\n tagMapper: {},\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 this.destroyPortals(ele);\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 getComponent: function (name) {\n return this.ej2Instances.getComponent(name);\n },\n }\n});\nexport var FormRendererPlugin = {\n name: 'ejs-formrenderer',\n install: function (Vue) {\n Vue.component(FormRendererPlugin.name, FormRendererComponent);\n }\n};\n"],"names":[],"mappings":";;;;;AAGO,IAAI,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACnL,IAAI,UAAU,GAAG,EAAE,CAAC;AACpB,IAAI,QAAQ,GAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AA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GAAG,CAAC,UAAU,KAAK,EAAE;AACtD,wBAAwB,IAAI,CAAC,GAAG,KAAK,KAAK,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;AAC3E,4BAA4B,IAAI,KAAK,CAAC,MAAM,EAAE;AAC9C,gCAAgC,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,6BAA6B;AAC7B,iCAAiC;AACjC,gCAAgC,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACxE,gCAAgC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,6BAA6B;AAC7B,yBAAyB;AACzB,qBAAqB,CAAC,CAAC;AACvB,iBAAiB,CAAC,CAAC;AACnB,aAAa;AACb,SAAS;AACT,QAAQ,MAAM,EAAE,YAAY;AAC5B,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;AAC3B,SAAS;AACT,QAAQ,YAAY,EAAE,UAAU,IAAI,EAAE;AACtC,YAAY,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxD,SAAS;AACT,KAAK;AACL,CAAC,EAAE;AACO,IAAC,kBAAkB,GAAG;AAChC,IAAI,IAAI,EAAE,kBAAkB;AAC5B,IAAI,OAAO,EAAE,UAAU,GAAG,EAAE;AAC5B,QAAQ,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACtE,KAAK;AACL;;;;"}
|
package/form-renderer.js
ADDED
package/index.d.ts
ADDED
package/index.js
ADDED
package/license
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
|
|
2
|
+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
|
|
3
|
+
Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
|
|
4
|
+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
|
|
5
|
+
The Syncfusion license that contains the terms and conditions can be found at
|
|
6
|
+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@syncfusion/ej2-vue-form-renderer",
|
|
3
|
+
"version": "34.2.2",
|
|
4
|
+
"description": "A package of Essential JS 2 Form Renderer which can render feature-rich Syncfusion components as a form. for Vue",
|
|
5
|
+
"author": "Syncfusion Inc.",
|
|
6
|
+
"license": "SEE LICENSE IN license",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"vue",
|
|
9
|
+
"vuejs",
|
|
10
|
+
"ej2-vue-form-renderer",
|
|
11
|
+
"vue-form-renderer"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/ej2-vue-form-renderer.umd.min.js",
|
|
18
|
+
"module": "./index.js",
|
|
19
|
+
"es2015": "dist/es6/ej2-vue-form-renderer.es2015.js",
|
|
20
|
+
"readme": "ReadMe.md",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@syncfusion/ej2-base": "~34.2.2",
|
|
23
|
+
"@syncfusion/ej2-vue-base": "~34.2.2",
|
|
24
|
+
"@syncfusion/ej2-form-renderer": "34.2.2"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"compile": "gulp ci-compile && gulp vue-global-script",
|
|
29
|
+
"ci-publish": "gulp ci-publish"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"homepage": "https://www.syncfusion.com/vue-components"
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentBase, DefineVueComponent } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { FormRenderer, FormRendererModel } from '@syncfusion/ej2-form-renderer';
|
|
3
|
+
export declare const properties: string[];
|
|
4
|
+
export declare const modelProps: string[];
|
|
5
|
+
export declare const testProp: any;
|
|
6
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
7
|
+
/**
|
|
8
|
+
* Represents the Essential JS 2 VueJS FormRenderer Component
|
|
9
|
+
* ```html
|
|
10
|
+
* <ejs-form-renderer></ejs-form-renderer>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare let FormRendererComponent: DefineVueComponent<FormRendererModel>;
|
|
14
|
+
export declare type FormRendererComponent = typeof ComponentBase & {
|
|
15
|
+
ej2Instances: FormRenderer;
|
|
16
|
+
isVue3: boolean;
|
|
17
|
+
isLazyUpdate: Boolean;
|
|
18
|
+
plugins: any[];
|
|
19
|
+
propKeys: string[];
|
|
20
|
+
models: string[];
|
|
21
|
+
hasChildDirective: boolean;
|
|
22
|
+
tagMapper: {
|
|
23
|
+
[key: string]: Object;
|
|
24
|
+
};
|
|
25
|
+
tagNameMapper: Object;
|
|
26
|
+
setProperties(prop: any, muteOnChange: boolean): void;
|
|
27
|
+
trigger(eventName: string, eventProp: {
|
|
28
|
+
[key: string]: Object;
|
|
29
|
+
}, successHandler?: Function): void;
|
|
30
|
+
getComponent(name: string): object | null;
|
|
31
|
+
};
|
|
32
|
+
export declare const FormRendererPlugin: {
|
|
33
|
+
name: string;
|
|
34
|
+
install(Vue: any): void;
|
|
35
|
+
};
|