@syncfusion/ej2-angular-form-renderer 34.2.8-ngcc → 35.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 +3 -0
- package/README.md +14 -0
- package/fesm2022/syncfusion-ej2-angular-form-renderer.mjs +185 -0
- package/fesm2022/syncfusion-ej2-angular-form-renderer.mjs.map +1 -0
- package/package.json +16 -10
- package/schematics/collection.json +9 -10
- package/schematics/ng-add/index.js +5 -8
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.js +1 -2
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +33 -25
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +4 -6
- package/schematics/utils/lib-details.ts +4 -4
- package/types/syncfusion-ej2-angular-form-renderer.d.ts +105 -0
- package/@syncfusion/ej2-angular-form-renderer.es5.js +0 -161
- package/@syncfusion/ej2-angular-form-renderer.es5.js.map +0 -1
- package/@syncfusion/ej2-angular-form-renderer.js +0 -142
- package/@syncfusion/ej2-angular-form-renderer.js.map +0 -1
- package/LICENSE +0 -10
- package/dist/ej2-angular-form-renderer.umd.js +0 -180
- package/dist/ej2-angular-form-renderer.umd.js.map +0 -1
- package/dist/ej2-angular-form-renderer.umd.min.js +0 -11
- package/dist/ej2-angular-form-renderer.umd.min.js.map +0 -1
- package/ej2-angular-form-renderer.d.ts +0 -5
- package/ej2-angular-form-renderer.metadata.json +0 -1
- package/public_api.d.ts +0 -1
- package/src/form-renderer/formrenderer-all.module.d.ts +0 -5
- package/src/form-renderer/formrenderer.component.d.ts +0 -32
- package/src/form-renderer/formrenderer.module.d.ts +0 -5
- package/src/index.d.ts +0 -4
- package/styles/bds-lite.css +0 -1
- package/styles/bds-lite.scss +0 -1
- package/styles/bds.css +0 -1
- package/styles/bds.scss +0 -1
- package/styles/bootstrap-dark-lite.css +0 -1
- package/styles/bootstrap-dark-lite.scss +0 -1
- package/styles/bootstrap-dark.css +0 -1
- package/styles/bootstrap-dark.scss +0 -1
- package/styles/bootstrap-lite.css +0 -1
- package/styles/bootstrap-lite.scss +0 -1
- package/styles/bootstrap.css +0 -1
- package/styles/bootstrap.scss +0 -1
- package/styles/bootstrap4-lite.css +0 -1
- package/styles/bootstrap4-lite.scss +0 -1
- package/styles/bootstrap4.css +0 -1
- package/styles/bootstrap4.scss +0 -1
- package/styles/bootstrap5-dark-lite.css +0 -1
- package/styles/bootstrap5-dark-lite.scss +0 -1
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5-dark.scss +0 -1
- package/styles/bootstrap5-lite.css +0 -1
- package/styles/bootstrap5-lite.scss +0 -1
- package/styles/bootstrap5.3-lite.css +0 -1
- package/styles/bootstrap5.3-lite.scss +0 -1
- package/styles/bootstrap5.3.css +0 -1
- package/styles/bootstrap5.3.scss +0 -1
- package/styles/bootstrap5.css +0 -1
- package/styles/bootstrap5.scss +0 -1
- package/styles/fabric-dark-lite.css +0 -1
- package/styles/fabric-dark-lite.scss +0 -1
- package/styles/fabric-dark.css +0 -1
- package/styles/fabric-dark.scss +0 -1
- package/styles/fabric-lite.css +0 -1
- package/styles/fabric-lite.scss +0 -1
- package/styles/fabric.css +0 -1
- package/styles/fabric.scss +0 -1
- package/styles/fluent-dark-lite.css +0 -1
- package/styles/fluent-dark-lite.scss +0 -1
- package/styles/fluent-dark.css +0 -1
- package/styles/fluent-dark.scss +0 -1
- package/styles/fluent-lite.css +0 -1
- package/styles/fluent-lite.scss +0 -1
- package/styles/fluent.css +0 -1
- package/styles/fluent.scss +0 -1
- package/styles/fluent2-lite.css +0 -1
- package/styles/fluent2-lite.scss +0 -1
- package/styles/fluent2.css +0 -1
- package/styles/fluent2.scss +0 -1
- package/styles/form-renderer/bds.css +0 -1
- package/styles/form-renderer/bds.scss +0 -1
- package/styles/form-renderer/bootstrap-dark.css +0 -1
- package/styles/form-renderer/bootstrap-dark.scss +0 -1
- package/styles/form-renderer/bootstrap.css +0 -1
- package/styles/form-renderer/bootstrap.scss +0 -1
- package/styles/form-renderer/bootstrap4.css +0 -1
- package/styles/form-renderer/bootstrap4.scss +0 -1
- package/styles/form-renderer/bootstrap5-dark.css +0 -1
- package/styles/form-renderer/bootstrap5-dark.scss +0 -1
- package/styles/form-renderer/bootstrap5.3.css +0 -1
- package/styles/form-renderer/bootstrap5.3.scss +0 -1
- package/styles/form-renderer/bootstrap5.css +0 -1
- package/styles/form-renderer/bootstrap5.scss +0 -1
- package/styles/form-renderer/fabric-dark.css +0 -1
- package/styles/form-renderer/fabric-dark.scss +0 -1
- package/styles/form-renderer/fabric.css +0 -1
- package/styles/form-renderer/fabric.scss +0 -1
- package/styles/form-renderer/fluent-dark.css +0 -1
- package/styles/form-renderer/fluent-dark.scss +0 -1
- package/styles/form-renderer/fluent.css +0 -1
- package/styles/form-renderer/fluent.scss +0 -1
- package/styles/form-renderer/fluent2.css +0 -1
- package/styles/form-renderer/fluent2.scss +0 -1
- package/styles/form-renderer/highcontrast-light.css +0 -1
- package/styles/form-renderer/highcontrast-light.scss +0 -1
- package/styles/form-renderer/highcontrast.css +0 -1
- package/styles/form-renderer/highcontrast.scss +0 -1
- package/styles/form-renderer/material-dark.css +0 -1
- package/styles/form-renderer/material-dark.scss +0 -1
- package/styles/form-renderer/material.css +0 -1
- package/styles/form-renderer/material.scss +0 -1
- package/styles/form-renderer/material3-dark.css +0 -1
- package/styles/form-renderer/material3-dark.scss +0 -1
- package/styles/form-renderer/material3.css +0 -1
- package/styles/form-renderer/material3.scss +0 -1
- package/styles/form-renderer/tailwind-dark.css +0 -1
- package/styles/form-renderer/tailwind-dark.scss +0 -1
- package/styles/form-renderer/tailwind.css +0 -1
- package/styles/form-renderer/tailwind.scss +0 -1
- package/styles/form-renderer/tailwind3.css +0 -1
- package/styles/form-renderer/tailwind3.scss +0 -1
- package/styles/highcontrast-light-lite.css +0 -1
- package/styles/highcontrast-light-lite.scss +0 -1
- package/styles/highcontrast-light.css +0 -1
- package/styles/highcontrast-light.scss +0 -1
- package/styles/highcontrast-lite.css +0 -1
- package/styles/highcontrast-lite.scss +0 -1
- package/styles/highcontrast.css +0 -1
- package/styles/highcontrast.scss +0 -1
- package/styles/material-dark-lite.css +0 -1
- package/styles/material-dark-lite.scss +0 -1
- package/styles/material-dark.css +0 -1
- package/styles/material-dark.scss +0 -1
- package/styles/material-lite.css +0 -1
- package/styles/material-lite.scss +0 -1
- package/styles/material.css +0 -1
- package/styles/material.scss +0 -1
- package/styles/material3-dark-lite.css +0 -1
- package/styles/material3-dark-lite.scss +0 -1
- package/styles/material3-dark.css +0 -1
- package/styles/material3-dark.scss +0 -1
- package/styles/material3-lite.css +0 -1
- package/styles/material3-lite.scss +0 -1
- package/styles/material3.css +0 -1
- package/styles/material3.scss +0 -1
- package/styles/tailwind-dark-lite.css +0 -1
- package/styles/tailwind-dark-lite.scss +0 -1
- package/styles/tailwind-dark.css +0 -1
- package/styles/tailwind-dark.scss +0 -1
- package/styles/tailwind-lite.css +0 -1
- package/styles/tailwind-lite.scss +0 -1
- package/styles/tailwind.css +0 -1
- package/styles/tailwind.scss +0 -1
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3-lite.scss +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/tailwind3.scss +0 -1
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Angular Form Renderer Component
|
|
2
2
|
|
|
3
|
+
> **Using this package with an AI coding agent**
|
|
4
|
+
>
|
|
5
|
+
> Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
|
|
6
|
+
>
|
|
7
|
+
> ```text
|
|
8
|
+
> Set up this project for Syncfusion before generating code. Fetch
|
|
9
|
+
> and follow the official instructions at https://ai.syncfusion.com,
|
|
10
|
+
> then report the detected platform, installed skill pack, MCP
|
|
11
|
+
> status, and any required licensing action.
|
|
12
|
+
> ```
|
|
13
|
+
> The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
|
|
14
|
+
>
|
|
15
|
+
> **Platform reference:** [https://ai.syncfusion.com/angular/llms.txt](https://ai.syncfusion.com/angular/llms.txt)
|
|
16
|
+
|
|
3
17
|
## What's Included in the Angular Form Renderer Package
|
|
4
18
|
|
|
5
19
|
The Angular 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.
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ContentChild, Directive, ContentChildren, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { ComplexBase, setValue, Template, ArrayBase, ComponentBase, ComponentMixins } from '@syncfusion/ej2-angular-base';
|
|
4
|
+
import { __decorate } from 'tslib';
|
|
5
|
+
import { FormRenderer } from '@syncfusion/ej2-form-renderer';
|
|
6
|
+
export * from '@syncfusion/ej2-form-renderer';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
|
|
9
|
+
let input = ['fieldName', 'template', 'templateId', 'type'];
|
|
10
|
+
let outputs$1 = [];
|
|
11
|
+
/**
|
|
12
|
+
* `e-custom-widget-setting` directive represents a custom widget
|
|
13
|
+
* configuration item of the Angular FormRenderer component.
|
|
14
|
+
* It must be contained within the `e-custom-widget-settings`
|
|
15
|
+
* collection of an `ejs-form-renderer` component.
|
|
16
|
+
* ```html
|
|
17
|
+
* <ejs-form-renderer>
|
|
18
|
+
* <e-customwidgetsettings>
|
|
19
|
+
* <e-customwidgetsetting></e-customwidgetsetting>
|
|
20
|
+
* </e-customwidgetsettings>
|
|
21
|
+
* </ejs-form-renderer>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class CustomWidgetSettingDirective extends ComplexBase {
|
|
25
|
+
viewContainerRef;
|
|
26
|
+
directivePropList;
|
|
27
|
+
constructor(viewContainerRef) {
|
|
28
|
+
super();
|
|
29
|
+
this.viewContainerRef = viewContainerRef;
|
|
30
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
31
|
+
this.registerEvents(outputs$1);
|
|
32
|
+
this.directivePropList = input;
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomWidgetSettingDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: CustomWidgetSettingDirective, isStandalone: true, selector: "e-customwidgetsettings>e-customwidgetsetting", inputs: { fieldName: "fieldName", template: "template", templateId: "templateId", type: "type" }, queries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomWidgetSettingDirective, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: 'e-customwidgetsettings>e-customwidgetsetting',
|
|
41
|
+
inputs: input,
|
|
42
|
+
outputs: outputs$1,
|
|
43
|
+
standalone: true,
|
|
44
|
+
queries: {
|
|
45
|
+
template: new ContentChild('template')
|
|
46
|
+
}
|
|
47
|
+
}]
|
|
48
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }] });
|
|
49
|
+
Template()(CustomWidgetSettingDirective.prototype, 'template');
|
|
50
|
+
/**
|
|
51
|
+
* CustomWidgetSetting Array Directive
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
class CustomWidgetSettingsDirective extends ArrayBase {
|
|
55
|
+
constructor() {
|
|
56
|
+
super('customwidgetsettings');
|
|
57
|
+
}
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomWidgetSettingsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: CustomWidgetSettingsDirective, isStandalone: true, selector: "ejs-formrenderer>e-customwidgetsettings", queries: [{ propertyName: "children", predicate: CustomWidgetSettingDirective }], usesInheritance: true, ngImport: i0 });
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomWidgetSettingsDirective, decorators: [{
|
|
62
|
+
type: Directive,
|
|
63
|
+
args: [{
|
|
64
|
+
selector: 'ejs-formrenderer>e-customwidgetsettings',
|
|
65
|
+
standalone: true,
|
|
66
|
+
queries: {
|
|
67
|
+
children: new ContentChildren(CustomWidgetSettingDirective)
|
|
68
|
+
},
|
|
69
|
+
}]
|
|
70
|
+
}], ctorParameters: () => [] });
|
|
71
|
+
|
|
72
|
+
const inputs = ['className', 'customWidgetSettings', 'dataModel', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'layout', 'locale', 'schema'];
|
|
73
|
+
const outputs = ['buttonClick', 'change', 'created', 'failure', 'submit', 'dataModelChange'];
|
|
74
|
+
const twoWays = ['dataModel'];
|
|
75
|
+
/**
|
|
76
|
+
* Represents the Angular FormRenderer Component.
|
|
77
|
+
* ```html
|
|
78
|
+
* <ejs-form-renderer></ejs-form-renderer>
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
let FormRendererComponent = class FormRendererComponent extends FormRenderer {
|
|
82
|
+
ngEle;
|
|
83
|
+
srenderer;
|
|
84
|
+
viewContainerRef;
|
|
85
|
+
injector;
|
|
86
|
+
tags = ['customWidgetSettings'];
|
|
87
|
+
constructor(ngEle, srenderer, viewContainerRef, injector) {
|
|
88
|
+
super();
|
|
89
|
+
this.ngEle = ngEle;
|
|
90
|
+
this.srenderer = srenderer;
|
|
91
|
+
this.viewContainerRef = viewContainerRef;
|
|
92
|
+
this.injector = injector;
|
|
93
|
+
this.element = this.ngEle.nativeElement;
|
|
94
|
+
this.injectedModules = this.injectedModules || [];
|
|
95
|
+
this.registerEvents(outputs);
|
|
96
|
+
this.addTwoWay.call(this, twoWays);
|
|
97
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
98
|
+
this.containerContext = new ComponentBase();
|
|
99
|
+
}
|
|
100
|
+
ngOnInit() {
|
|
101
|
+
this.containerContext.ngOnInit(this);
|
|
102
|
+
}
|
|
103
|
+
ngAfterViewInit() {
|
|
104
|
+
this.containerContext.ngAfterViewInit(this);
|
|
105
|
+
}
|
|
106
|
+
ngOnDestroy() {
|
|
107
|
+
this.containerContext.ngOnDestroy(this);
|
|
108
|
+
}
|
|
109
|
+
ngAfterContentChecked() {
|
|
110
|
+
this.tagObjects[0].instance = this.childCustomWidgetSettings;
|
|
111
|
+
this.containerContext.ngAfterContentChecked(this);
|
|
112
|
+
}
|
|
113
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: FormRendererComponent, isStandalone: true, selector: "[ejs-form-renderer], ejs-form-renderer", inputs: { className: "className", customWidgetSettings: "customWidgetSettings", dataModel: "dataModel", enableHtmlSanitizer: "enableHtmlSanitizer", enablePersistence: "enablePersistence", enableRtl: "enableRtl", layout: "layout", locale: "locale", schema: "schema" }, outputs: { buttonClick: "buttonClick", change: "change", created: "created", failure: "failure", submit: "submit", dataModelChange: "dataModelChange" }, queries: [{ propertyName: "childCustomWidgetSettings", first: true, predicate: CustomWidgetSettingsDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `<ng-content ></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
115
|
+
};
|
|
116
|
+
FormRendererComponent = __decorate([
|
|
117
|
+
ComponentMixins([ComponentBase])
|
|
118
|
+
], FormRendererComponent);
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererComponent, decorators: [{
|
|
120
|
+
type: Component,
|
|
121
|
+
args: [{
|
|
122
|
+
selector: '[ejs-form-renderer], ejs-form-renderer',
|
|
123
|
+
inputs: inputs,
|
|
124
|
+
outputs: outputs,
|
|
125
|
+
template: `<ng-content ></ng-content>`,
|
|
126
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
127
|
+
standalone: true,
|
|
128
|
+
queries: {
|
|
129
|
+
childCustomWidgetSettings: new ContentChild(CustomWidgetSettingsDirective)
|
|
130
|
+
}
|
|
131
|
+
}]
|
|
132
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }] });
|
|
133
|
+
|
|
134
|
+
const FORMRENDERER_DIRECTIVES = [
|
|
135
|
+
FormRendererComponent,
|
|
136
|
+
CustomWidgetSettingDirective,
|
|
137
|
+
CustomWidgetSettingsDirective
|
|
138
|
+
];
|
|
139
|
+
/**
|
|
140
|
+
* NgModule definition for the FormRenderer component.
|
|
141
|
+
* Re-exports standalone FormRenderer component and directives so existing apps can keep using:
|
|
142
|
+
* `imports: [FormRendererModule]`
|
|
143
|
+
*/
|
|
144
|
+
class FormRendererModule {
|
|
145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
146
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: FormRendererModule, imports: [CommonModule, FormRendererComponent,
|
|
147
|
+
CustomWidgetSettingDirective,
|
|
148
|
+
CustomWidgetSettingsDirective], exports: [FormRendererComponent,
|
|
149
|
+
CustomWidgetSettingDirective,
|
|
150
|
+
CustomWidgetSettingsDirective] });
|
|
151
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererModule, imports: [CommonModule] });
|
|
152
|
+
}
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererModule, decorators: [{
|
|
154
|
+
type: NgModule,
|
|
155
|
+
args: [{
|
|
156
|
+
imports: [CommonModule, ...FORMRENDERER_DIRECTIVES],
|
|
157
|
+
exports: [...FORMRENDERER_DIRECTIVES]
|
|
158
|
+
}]
|
|
159
|
+
}] });
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* NgModule definition for the FormRenderer component with providers.
|
|
163
|
+
*/
|
|
164
|
+
class FormRendererAllModule {
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
166
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: FormRendererAllModule, imports: [CommonModule, FormRendererModule], exports: [FormRendererModule] });
|
|
167
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererAllModule, imports: [CommonModule, FormRendererModule, FormRendererModule] });
|
|
168
|
+
}
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormRendererAllModule, decorators: [{
|
|
170
|
+
type: NgModule,
|
|
171
|
+
args: [{
|
|
172
|
+
imports: [CommonModule, FormRendererModule],
|
|
173
|
+
exports: [
|
|
174
|
+
FormRendererModule
|
|
175
|
+
],
|
|
176
|
+
providers: []
|
|
177
|
+
}]
|
|
178
|
+
}] });
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Generated bundle index. Do not edit.
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
export { CustomWidgetSettingDirective, CustomWidgetSettingsDirective, FormRendererAllModule, FormRendererComponent, FormRendererModule };
|
|
185
|
+
//# sourceMappingURL=syncfusion-ej2-angular-form-renderer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncfusion-ej2-angular-form-renderer.mjs","sources":["../../src/form-renderer/customwidgetsettings.directive.ts","../../src/form-renderer/formrenderer.component.ts","../../src/form-renderer/formrenderer.module.ts","../../src/form-renderer/formrenderer-all.module.ts","../../syncfusion-ej2-angular-form-renderer.ts"],"sourcesContent":["import { Directive, ViewContainerRef, ContentChildren, ContentChild } from '@angular/core';\nimport { ComplexBase, ArrayBase, setValue } from '@syncfusion/ej2-angular-base';\nimport { Template } from '@syncfusion/ej2-angular-base';\n\n\nlet input: string[] = ['fieldName', 'template', 'templateId', 'type'];\nlet outputs: string[] = [];\n/**\n * `e-custom-widget-setting` directive represents a custom widget\n * configuration item of the Angular FormRenderer component.\n * It must be contained within the `e-custom-widget-settings`\n * collection of an `ejs-form-renderer` component.\n * ```html\n * <ejs-form-renderer>\n * <e-customwidgetsettings>\n * <e-customwidgetsetting></e-customwidgetsetting>\n * </e-customwidgetsettings>\n * </ejs-form-renderer>\n * ```\n */\n@Directive({\n selector: 'e-customwidgetsettings>e-customwidgetsetting',\n inputs: input,\n outputs: outputs,\n standalone: true,\n queries: {\n template: new ContentChild('template')\n }\n})\nexport class CustomWidgetSettingDirective extends ComplexBase<CustomWidgetSettingDirective> {\n public directivePropList: any;\n\t\n\n\n /** \n * Specifies the type of the widget to which the template must be bound. The values will be FormComponentType.\n * @default ''\n */\n public declare type: any;\n /** \n * Specifies the name of the field to which the template must be bound. When set, the template is rendered to the control with the matching name, irrespective of the type property value.\n * @default ''\n */\n public declare fieldName: any;\n /** \n * Specifies an optional template identifier. When set, the template is rendered to the JSON object whose templateId matches this value, irrespective of the type.\n * @default ''\n */\n public declare templateId: any;\n\n constructor(private viewContainerRef:ViewContainerRef) {\n super();\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs);\n this.directivePropList = input;\n }\n}\nTemplate()(CustomWidgetSettingDirective.prototype, 'template');\n\n/**\n * CustomWidgetSetting Array Directive\n * @private\n */\n@Directive({\n selector: 'ejs-formrenderer>e-customwidgetsettings',\n standalone: true,\n queries: {\n children: new ContentChildren(CustomWidgetSettingDirective)\n },\n})\nexport class CustomWidgetSettingsDirective extends ArrayBase<CustomWidgetSettingsDirective> {\n constructor() {\n super('customwidgetsettings');\n }\n}","import { Component, ElementRef, ViewContainerRef, Renderer2, Injector, ChangeDetectionStrategy, QueryList, ValueProvider, ContentChild } from '@angular/core';\nimport { ComponentBase, ComponentMixins, IComponentBase, applyMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';\nimport { FormRenderer } from '@syncfusion/ej2-form-renderer';\n\nimport { CustomWidgetSettingsDirective } from './customwidgetsettings.directive';\n\nexport const inputs: string[] = ['className','customWidgetSettings','dataModel','enableHtmlSanitizer','enablePersistence','enableRtl','layout','locale','schema'];\nexport const outputs: string[] = ['buttonClick','change','created','failure','submit','dataModelChange'];\nexport const twoWays: string[] = ['dataModel'];\n\n/**\n * Represents the Angular FormRenderer Component.\n * ```html\n * <ejs-form-renderer></ejs-form-renderer>\n * ```\n */\n@Component({\n selector: '[ejs-form-renderer], ejs-form-renderer',\n inputs: inputs,\n outputs: outputs,\n template: `<ng-content ></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n queries: {\n childCustomWidgetSettings: new ContentChild(CustomWidgetSettingsDirective)\n }\n})\n@ComponentMixins([ComponentBase])\nexport class FormRendererComponent extends FormRenderer implements IComponentBase {\n public declare containerContext : any;\n public declare tagObjects: any;\n\tdeclare buttonClick: any;\n\tdeclare change: any;\n\tdeclare created: any;\n\tdeclare failure: any;\n\tdeclare submit: any;\n\tpublic declare dataModelChange: any;\n public declare childCustomWidgetSettings: QueryList<CustomWidgetSettingsDirective>;\n public tags: string[] = ['customWidgetSettings'];\n\n constructor(private ngEle: ElementRef, private srenderer: Renderer2, private viewContainerRef:ViewContainerRef, private injector: Injector) {\n super();\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n\n public ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n\n public ngAfterViewInit(): void {\n this.containerContext.ngAfterViewInit(this);\n }\n\n public ngOnDestroy(): void {\n this.containerContext.ngOnDestroy(this);\n }\n\n public ngAfterContentChecked(): void {\n this.tagObjects[0].instance = this.childCustomWidgetSettings;\n this.containerContext.ngAfterContentChecked(this);\n }\n\n public declare registerEvents: (eventList: string[]) => void;\n public declare addTwoWay: (propList: string[]) => void;\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CustomWidgetSettingDirective, CustomWidgetSettingsDirective } from './customwidgetsettings.directive';\nimport { FormRendererComponent } from './formrenderer.component';\n\nconst FORMRENDERER_DIRECTIVES = [\n FormRendererComponent,\n CustomWidgetSettingDirective,\n CustomWidgetSettingsDirective\n];\n\n/**\n * NgModule definition for the FormRenderer component.\n * Re-exports standalone FormRenderer component and directives so existing apps can keep using:\n * `imports: [FormRendererModule]`\n */\n@NgModule({\n imports: [CommonModule, ...FORMRENDERER_DIRECTIVES],\n exports: [...FORMRENDERER_DIRECTIVES]\n})\nexport class FormRendererModule { }","import { NgModule, ValueProvider } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CustomWidgetSettingDirective, CustomWidgetSettingsDirective } from './customwidgetsettings.directive';\nimport { FormRendererComponent } from './formrenderer.component';\nimport { FormRendererModule } from './formrenderer.module';\n\n\n\n\n\n/**\n * NgModule definition for the FormRenderer component with providers.\n */\n@NgModule({\n imports: [CommonModule, FormRendererModule],\n exports: [\n FormRendererModule\n ],\n providers:[\n \n ]\n})\nexport class FormRendererAllModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["outputs"],"mappings":";;;;;;;;AAKA,IAAI,KAAK,GAAa,CAAC,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,CAAC;AACrE,IAAIA,SAAO,GAAa,EAAE;AAC1B;;;;;;;;;;;;AAYG;AAUG,MAAO,4BAA6B,SAAQ,WAAyC,CAAA;AAqBnE,IAAA,gBAAA;AApBb,IAAA,iBAAiB;AAoBxB,IAAA,WAAA,CAAoB,gBAAiC,EAAA;AACjD,QAAA,KAAK,EAAE;QADS,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAEhC,QAAQ,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC;AACxD,QAAA,IAAI,CAAC,cAAc,CAACA,SAAO,CAAC;AAC5B,QAAA,IAAI,CAAC,iBAAiB,GAAG,KAAK;IAClC;uGA1BS,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA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AA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,uBAAuB,CAAC;AACnD,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB;AACvC,iBAAA;;;ACTD;;AAEG;MAUU,qBAAqB,CAAA;uGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAAA,OAAA,EAAA,CARpB,YAAY,EAAE,kBAAkB,aAEtC,kBAAkB,CAAA,EAAA,CAAA;AAMb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAAA,OAAA,EAAA,CARpB,YAAY,EAAE,kBAAkB,EAEtC,kBAAkB,CAAA,EAAA,CAAA;;2FAMb,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBATjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC;AAC3C,oBAAA,OAAO,EAAE;wBACL;AACH,qBAAA;AACD,oBAAA,SAAS,EAAC;AAGb,iBAAA;;;ACrBD;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-angular-form-renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.1.37",
|
|
4
4
|
"description": "A package of Essential JS 2 Form Renderer which can render feature-rich Syncfusion components as a form. for Angular",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
7
7
|
"schematics": "./schematics/collection.json",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@syncfusion/ej2-base": "~
|
|
10
|
-
"@syncfusion/ej2-angular-base": "~
|
|
11
|
-
"@syncfusion/ej2-form-renderer": "
|
|
9
|
+
"@syncfusion/ej2-base": "~35.1.37",
|
|
10
|
+
"@syncfusion/ej2-angular-base": "~35.1.37",
|
|
11
|
+
"@syncfusion/ej2-form-renderer": "35.1.37"
|
|
12
12
|
},
|
|
13
|
-
"devDependencies": {},
|
|
14
13
|
"keywords": [
|
|
15
14
|
"angular",
|
|
16
15
|
"ng",
|
|
@@ -23,10 +22,17 @@
|
|
|
23
22
|
"url": "https://github.com/syncfusion/ej2-angular-ui-components.git"
|
|
24
23
|
},
|
|
25
24
|
"sideEffects": false,
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
"module": "fesm2022/syncfusion-ej2-angular-form-renderer.mjs",
|
|
26
|
+
"typings": "types/syncfusion-ej2-angular-form-renderer.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./types/syncfusion-ej2-angular-form-renderer.d.ts",
|
|
33
|
+
"default": "./fesm2022/syncfusion-ej2-angular-form-renderer.mjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"type": "module",
|
|
31
37
|
"homepage": "https://www.syncfusion.com/angular-components"
|
|
32
38
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Essential JS 2 specific Angular package to an application",
|
|
6
|
+
"factory": "./ng-add",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const libOptions = Object.assign({}, { 'pkgName': lib_details_1.pkgName, 'pkgVer': lib_details_1.pkgVer, 'moduleName': lib_details_1.moduleName, 'themeVer': lib_details_1.themeVer });
|
|
7
|
-
return schematics_1.install(options, libOptions);
|
|
1
|
+
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
+
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
+
export default function (options) {
|
|
4
|
+
const libOptions = Object.assign({}, { 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
5
|
+
return install(options, libOptions);
|
|
8
6
|
}
|
|
9
|
-
exports.default = default_1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
-
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
-
import { OptionsSchema, LibOptionsSchema } from './schema';
|
|
4
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
5
|
-
|
|
6
|
-
export default function (options: OptionsSchema): Rule {
|
|
7
|
-
const libOptions: LibOptionsSchema = Object.assign({},
|
|
8
|
-
{ 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
9
|
-
return install(options, libOptions);
|
|
10
|
-
}
|
|
1
|
+
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
+
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
+
import { OptionsSchema, LibOptionsSchema } from './schema';
|
|
4
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
5
|
+
|
|
6
|
+
export default function (options: OptionsSchema): Rule {
|
|
7
|
+
const libOptions: LibOptionsSchema = Object.assign({},
|
|
8
|
+
{ 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
9
|
+
return install(options, libOptions);
|
|
10
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "ngAdd",
|
|
4
|
-
"title": "Add Essential JS 2 Angular packages",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"skipPackageJson": {
|
|
8
|
-
"type": "boolean",
|
|
9
|
-
"default": false,
|
|
10
|
-
"description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
|
|
11
|
-
},
|
|
12
|
-
"modules": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"default": "",
|
|
15
|
-
"description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
|
|
16
|
-
},
|
|
17
|
-
"modulePath": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"default": "",
|
|
20
|
-
"description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
|
|
21
|
-
},
|
|
22
|
-
"theme": {
|
|
23
|
-
"enum": [
|
|
24
|
-
"material",
|
|
25
|
-
"fabric",
|
|
26
|
-
"bootstrap",
|
|
27
|
-
"highcontrast"
|
|
28
|
-
],
|
|
29
|
-
"default": "material",
|
|
30
|
-
"description": "Used to change the theme that needs to be imported"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": []
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "ngAdd",
|
|
4
|
+
"title": "Add Essential JS 2 Angular packages",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipPackageJson": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
|
|
11
|
+
},
|
|
12
|
+
"modules": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "",
|
|
15
|
+
"description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
|
|
16
|
+
},
|
|
17
|
+
"modulePath": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "",
|
|
20
|
+
"description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
|
|
21
|
+
},
|
|
22
|
+
"theme": {
|
|
23
|
+
"enum": [
|
|
24
|
+
"material",
|
|
25
|
+
"fabric",
|
|
26
|
+
"bootstrap",
|
|
27
|
+
"highcontrast"
|
|
28
|
+
],
|
|
29
|
+
"default": "material",
|
|
30
|
+
"description": "Used to change the theme that needs to be imported"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": []
|
|
34
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface OptionsSchema {
|
|
2
|
-
// Whether to skip package.json install.
|
|
3
|
-
skipPackageJson: boolean;
|
|
4
|
-
|
|
5
|
-
// Used to specify required module names
|
|
6
|
-
modules: string;
|
|
7
|
-
|
|
8
|
-
// Used to specify custom module path
|
|
9
|
-
modulePath: string;
|
|
10
|
-
|
|
11
|
-
// Used to specify theme name
|
|
12
|
-
theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
|
|
13
|
-
|
|
14
|
-
// Name of the project to target.
|
|
15
|
-
project?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface LibOptionsSchema {
|
|
19
|
-
// Package name
|
|
20
|
-
pkgName: string;
|
|
21
|
-
|
|
22
|
-
// Package version
|
|
23
|
-
pkgVer: string;
|
|
24
|
-
|
|
25
|
-
// Library base module name
|
|
26
|
-
moduleName: string;
|
|
27
|
-
|
|
28
|
-
// Theme version
|
|
29
|
-
themeVer: string;
|
|
30
|
-
}
|
|
1
|
+
export interface OptionsSchema {
|
|
2
|
+
// Whether to skip package.json install.
|
|
3
|
+
skipPackageJson: boolean;
|
|
4
|
+
|
|
5
|
+
// Used to specify required module names
|
|
6
|
+
modules: string;
|
|
7
|
+
|
|
8
|
+
// Used to specify custom module path
|
|
9
|
+
modulePath: string;
|
|
10
|
+
|
|
11
|
+
// Used to specify theme name
|
|
12
|
+
theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
|
|
13
|
+
|
|
14
|
+
// Name of the project to target.
|
|
15
|
+
project?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface LibOptionsSchema {
|
|
19
|
+
// Package name
|
|
20
|
+
pkgName: string;
|
|
21
|
+
|
|
22
|
+
// Package version
|
|
23
|
+
pkgVer: string;
|
|
24
|
+
|
|
25
|
+
// Library base module name
|
|
26
|
+
moduleName: string;
|
|
27
|
+
|
|
28
|
+
// Theme version
|
|
29
|
+
themeVer: string;
|
|
30
|
+
}
|
package/schematics/tsconfig.json
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"module": "
|
|
5
|
-
"moduleResolution": "
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ES2022",
|
|
8
|
+
"dom"
|
|
9
|
+
],
|
|
10
|
+
"noEmitOnError": false,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noImplicitAny": true,
|
|
16
|
+
"noImplicitOverride": true,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"useDefineForClassFields": false,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
20
|
+
"types": [
|
|
21
|
+
"jasmine",
|
|
22
|
+
"node"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"exclude": [
|
|
26
|
+
"node_modules",
|
|
27
|
+
"src",
|
|
28
|
+
"src/**/*.ts",
|
|
29
|
+
"spec",
|
|
30
|
+
"spec/**/*.ts",
|
|
31
|
+
"@typings"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const pkgName = "@syncfusion/ej2-angular-form-renderer";
|
|
2
|
-
export declare const pkgVer = "^28.
|
|
2
|
+
export declare const pkgVer = "^28.1.33";
|
|
3
3
|
export declare const moduleName = "FormRendererModule";
|
|
4
|
-
export declare const themeVer = "~28.
|
|
4
|
+
export declare const themeVer = "~28.1.33";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.moduleName = 'FormRendererModule';
|
|
6
|
-
exports.themeVer = '~34.2.8';
|
|
1
|
+
export const pkgName = '@syncfusion/ej2-angular-form-renderer';
|
|
2
|
+
export const pkgVer = '^35.1.37';
|
|
3
|
+
export const moduleName = 'FormRendererModule';
|
|
4
|
+
export const themeVer = '~35.1.37';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const pkgName = '@syncfusion/ej2-angular-form-renderer';
|
|
2
|
-
export const pkgVer = '^
|
|
3
|
-
export const moduleName = 'FormRendererModule';
|
|
4
|
-
export const themeVer = '~
|
|
1
|
+
export const pkgName = '@syncfusion/ej2-angular-form-renderer';
|
|
2
|
+
export const pkgVer = '^35.1.37';
|
|
3
|
+
export const moduleName = 'FormRendererModule';
|
|
4
|
+
export const themeVer = '~35.1.37';
|