@syncfusion/ej2-angular-inputs 24.2.3-ngcc → 24.2.3
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/esm2020/public_api.mjs +3 -0
- package/esm2020/src/color-picker/colorpicker-all.module.mjs +23 -0
- package/esm2020/src/color-picker/colorpicker.component.mjs +84 -0
- package/esm2020/src/color-picker/colorpicker.module.mjs +25 -0
- package/esm2020/src/form-validator/form-validator.mjs +193 -0
- package/esm2020/src/index.mjs +28 -0
- package/esm2020/src/maskedtextbox/maskedtextbox-all.module.mjs +23 -0
- package/esm2020/src/maskedtextbox/maskedtextbox.component.mjs +85 -0
- package/esm2020/src/maskedtextbox/maskedtextbox.module.mjs +25 -0
- package/esm2020/src/numerictextbox/numerictextbox-all.module.mjs +23 -0
- package/esm2020/src/numerictextbox/numerictextbox.component.mjs +85 -0
- package/esm2020/src/numerictextbox/numerictextbox.module.mjs +25 -0
- package/esm2020/src/rating/rating-all.module.mjs +23 -0
- package/esm2020/src/rating/rating.component.mjs +109 -0
- package/esm2020/src/rating/rating.module.mjs +25 -0
- package/esm2020/src/signature/signature-all.module.mjs +23 -0
- package/esm2020/src/signature/signature.component.mjs +84 -0
- package/esm2020/src/signature/signature.module.mjs +25 -0
- package/esm2020/src/slider/slider-all.module.mjs +23 -0
- package/esm2020/src/slider/slider.component.mjs +84 -0
- package/esm2020/src/slider/slider.module.mjs +25 -0
- package/esm2020/src/textbox/textbox-all.module.mjs +23 -0
- package/esm2020/src/textbox/textbox.component.mjs +85 -0
- package/esm2020/src/textbox/textbox.module.mjs +25 -0
- package/esm2020/src/uploader/files.directive.mjs +58 -0
- package/esm2020/src/uploader/uploader-all.module.mjs +23 -0
- package/esm2020/src/uploader/uploader.component.mjs +96 -0
- package/esm2020/src/uploader/uploader.module.mjs +34 -0
- package/esm2020/syncfusion-ej2-angular-inputs.mjs +5 -0
- package/fesm2015/syncfusion-ej2-angular-inputs.mjs +1245 -0
- package/fesm2015/syncfusion-ej2-angular-inputs.mjs.map +1 -0
- package/fesm2020/syncfusion-ej2-angular-inputs.mjs +1245 -0
- package/fesm2020/syncfusion-ej2-angular-inputs.mjs.map +1 -0
- package/package.json +26 -12
- package/src/color-picker/colorpicker-all.module.d.ts +6 -0
- package/src/color-picker/colorpicker.component.d.ts +3 -0
- package/src/color-picker/colorpicker.module.d.ts +6 -0
- package/src/maskedtextbox/maskedtextbox-all.module.d.ts +6 -0
- package/src/maskedtextbox/maskedtextbox.component.d.ts +3 -0
- package/src/maskedtextbox/maskedtextbox.module.d.ts +6 -0
- package/src/numerictextbox/numerictextbox-all.module.d.ts +6 -0
- package/src/numerictextbox/numerictextbox.component.d.ts +3 -0
- package/src/numerictextbox/numerictextbox.module.d.ts +6 -0
- package/src/rating/rating-all.module.d.ts +6 -0
- package/src/rating/rating.component.d.ts +3 -0
- package/src/rating/rating.module.d.ts +6 -0
- package/src/signature/signature-all.module.d.ts +6 -0
- package/src/signature/signature.component.d.ts +3 -0
- package/src/signature/signature.module.d.ts +6 -0
- package/src/slider/slider-all.module.d.ts +6 -0
- package/src/slider/slider.component.d.ts +3 -0
- package/src/slider/slider.module.d.ts +6 -0
- package/src/textbox/textbox-all.module.d.ts +6 -0
- package/src/textbox/textbox.component.d.ts +3 -0
- package/src/textbox/textbox.module.d.ts +6 -0
- package/src/uploader/files.directive.d.ts +5 -0
- package/src/uploader/uploader-all.module.d.ts +6 -0
- package/src/uploader/uploader.component.d.ts +3 -0
- package/src/uploader/uploader.module.d.ts +7 -0
- package/syncfusion-ej2-angular-inputs.d.ts +5 -0
- package/@syncfusion/ej2-angular-inputs.es5.js +0 -1791
- package/@syncfusion/ej2-angular-inputs.es5.js.map +0 -1
- package/@syncfusion/ej2-angular-inputs.js +0 -1689
- package/@syncfusion/ej2-angular-inputs.js.map +0 -1
- package/CHANGELOG.md +0 -1477
- package/dist/ej2-angular-inputs.umd.js +0 -1880
- package/dist/ej2-angular-inputs.umd.js.map +0 -1
- package/dist/ej2-angular-inputs.umd.min.js +0 -11
- package/dist/ej2-angular-inputs.umd.min.js.map +0 -1
- package/ej2-angular-inputs.d.ts +0 -12
- package/ej2-angular-inputs.metadata.json +0 -1
- package/postinstall/tagchange.js +0 -18
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { forwardRef, Component, ChangeDetectionStrategy, NgModule, Directive, ContentChildren, ContentChild } from '@angular/core';
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
+
import { setValue, FormBase, ComponentBase, ComponentMixins, ComplexBase, ArrayBase, Template } from '@syncfusion/ej2-angular-base';
|
|
6
|
+
import { TextBox, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, FormValidator } from '@syncfusion/ej2-inputs';
|
|
7
|
+
export * from '@syncfusion/ej2-inputs';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
var TextBoxComponent_1;
|
|
11
|
+
const inputs$7 = ['autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width'];
|
|
12
|
+
const outputs$8 = ['blur', 'change', 'created', 'destroyed', 'focus', 'input', 'valueChange'];
|
|
13
|
+
const twoWays$7 = ['value'];
|
|
14
|
+
/**
|
|
15
|
+
* Represents the EJ2 Angular TextBox Component.
|
|
16
|
+
* ```html
|
|
17
|
+
* <ejs-textbox [value]='value'></ejs-textbox>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent extends TextBox {
|
|
21
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
22
|
+
super();
|
|
23
|
+
this.ngEle = ngEle;
|
|
24
|
+
this.srenderer = srenderer;
|
|
25
|
+
this.viewContainerRef = viewContainerRef;
|
|
26
|
+
this.injector = injector;
|
|
27
|
+
this.cdr = cdr;
|
|
28
|
+
this.skipFromEvent = true;
|
|
29
|
+
this.element = this.ngEle.nativeElement;
|
|
30
|
+
this.injectedModules = this.injectedModules || [];
|
|
31
|
+
this.registerEvents(outputs$8);
|
|
32
|
+
this.addTwoWay.call(this, twoWays$7);
|
|
33
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
34
|
+
this.formContext = new FormBase();
|
|
35
|
+
this.formCompContext = new ComponentBase();
|
|
36
|
+
}
|
|
37
|
+
registerOnChange(registerFunction) {
|
|
38
|
+
}
|
|
39
|
+
registerOnTouched(registerFunction) {
|
|
40
|
+
}
|
|
41
|
+
writeValue(value) {
|
|
42
|
+
}
|
|
43
|
+
setDisabledState(disabled) {
|
|
44
|
+
}
|
|
45
|
+
ngOnInit() {
|
|
46
|
+
this.formCompContext.ngOnInit(this);
|
|
47
|
+
}
|
|
48
|
+
ngAfterViewInit() {
|
|
49
|
+
this.formContext.ngAfterViewInit(this);
|
|
50
|
+
}
|
|
51
|
+
ngOnDestroy() {
|
|
52
|
+
this.formCompContext.ngOnDestroy(this);
|
|
53
|
+
}
|
|
54
|
+
ngAfterContentChecked() {
|
|
55
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
TextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: TextBoxComponent, selector: "ejs-textbox", inputs: { autocomplete: "autocomplete", cssClass: "cssClass", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", floatLabelType: "floatLabelType", htmlAttributes: "htmlAttributes", locale: "locale", multiline: "multiline", placeholder: "placeholder", readonly: "readonly", showClearButton: "showClearButton", type: "type", value: "value", width: "width" }, outputs: { blur: "blur", change: "change", created: "created", destroyed: "destroyed", focus: "focus", input: "input", valueChange: "valueChange" }, providers: [
|
|
60
|
+
{
|
|
61
|
+
provide: NG_VALUE_ACCESSOR,
|
|
62
|
+
useExisting: forwardRef(() => TextBoxComponent_1),
|
|
63
|
+
multi: true
|
|
64
|
+
}
|
|
65
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
66
|
+
TextBoxComponent = TextBoxComponent_1 = __decorate([
|
|
67
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
68
|
+
], TextBoxComponent);
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{
|
|
72
|
+
selector: 'ejs-textbox',
|
|
73
|
+
inputs: inputs$7,
|
|
74
|
+
outputs: outputs$8,
|
|
75
|
+
template: '',
|
|
76
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
77
|
+
providers: [
|
|
78
|
+
{
|
|
79
|
+
provide: NG_VALUE_ACCESSOR,
|
|
80
|
+
useExisting: forwardRef(() => TextBoxComponent),
|
|
81
|
+
multi: true
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
queries: {}
|
|
85
|
+
}]
|
|
86
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* NgModule definition for the TextBox component.
|
|
90
|
+
*/
|
|
91
|
+
class TextBoxModule {
|
|
92
|
+
}
|
|
93
|
+
TextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
94
|
+
TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxModule, declarations: [TextBoxComponent], imports: [CommonModule], exports: [TextBoxComponent] });
|
|
95
|
+
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxModule, imports: [[CommonModule]] });
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxModule, decorators: [{
|
|
97
|
+
type: NgModule,
|
|
98
|
+
args: [{
|
|
99
|
+
imports: [CommonModule],
|
|
100
|
+
declarations: [
|
|
101
|
+
TextBoxComponent
|
|
102
|
+
],
|
|
103
|
+
exports: [
|
|
104
|
+
TextBoxComponent
|
|
105
|
+
]
|
|
106
|
+
}]
|
|
107
|
+
}] });
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* NgModule definition for the TextBox component with providers.
|
|
111
|
+
*/
|
|
112
|
+
class TextBoxAllModule {
|
|
113
|
+
}
|
|
114
|
+
TextBoxAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
115
|
+
TextBoxAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxAllModule, imports: [CommonModule, TextBoxModule], exports: [TextBoxModule] });
|
|
116
|
+
TextBoxAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxAllModule, providers: [], imports: [[CommonModule, TextBoxModule], TextBoxModule] });
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TextBoxAllModule, decorators: [{
|
|
118
|
+
type: NgModule,
|
|
119
|
+
args: [{
|
|
120
|
+
imports: [CommonModule, TextBoxModule],
|
|
121
|
+
exports: [
|
|
122
|
+
TextBoxModule
|
|
123
|
+
],
|
|
124
|
+
providers: []
|
|
125
|
+
}]
|
|
126
|
+
}] });
|
|
127
|
+
|
|
128
|
+
var NumericTextBoxComponent_1;
|
|
129
|
+
const inputs$6 = ['cssClass', 'currency', 'currencyCode', 'decimals', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'htmlAttributes', 'locale', 'max', 'min', 'placeholder', 'readonly', 'showClearButton', 'showSpinButton', 'step', 'strictMode', 'validateDecimalOnType', 'value', 'width'];
|
|
130
|
+
const outputs$7 = ['blur', 'change', 'created', 'destroyed', 'focus', 'valueChange'];
|
|
131
|
+
const twoWays$6 = ['value'];
|
|
132
|
+
/**
|
|
133
|
+
* Represents the EJ2 Angular NumericTextBox Component.
|
|
134
|
+
* ```html
|
|
135
|
+
* <ej-numerictextbox [value]='value'></ej-numerictextbox>
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxComponent extends NumericTextBox {
|
|
139
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
140
|
+
super();
|
|
141
|
+
this.ngEle = ngEle;
|
|
142
|
+
this.srenderer = srenderer;
|
|
143
|
+
this.viewContainerRef = viewContainerRef;
|
|
144
|
+
this.injector = injector;
|
|
145
|
+
this.cdr = cdr;
|
|
146
|
+
this.skipFromEvent = true;
|
|
147
|
+
this.element = this.ngEle.nativeElement;
|
|
148
|
+
this.injectedModules = this.injectedModules || [];
|
|
149
|
+
this.registerEvents(outputs$7);
|
|
150
|
+
this.addTwoWay.call(this, twoWays$6);
|
|
151
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
152
|
+
this.formContext = new FormBase();
|
|
153
|
+
this.formCompContext = new ComponentBase();
|
|
154
|
+
}
|
|
155
|
+
registerOnChange(registerFunction) {
|
|
156
|
+
}
|
|
157
|
+
registerOnTouched(registerFunction) {
|
|
158
|
+
}
|
|
159
|
+
writeValue(value) {
|
|
160
|
+
}
|
|
161
|
+
setDisabledState(disabled) {
|
|
162
|
+
}
|
|
163
|
+
ngOnInit() {
|
|
164
|
+
this.formCompContext.ngOnInit(this);
|
|
165
|
+
}
|
|
166
|
+
ngAfterViewInit() {
|
|
167
|
+
this.formContext.ngAfterViewInit(this);
|
|
168
|
+
}
|
|
169
|
+
ngOnDestroy() {
|
|
170
|
+
this.formCompContext.ngOnDestroy(this);
|
|
171
|
+
}
|
|
172
|
+
ngAfterContentChecked() {
|
|
173
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
NumericTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
177
|
+
NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: NumericTextBoxComponent, selector: "ejs-numerictextbox", inputs: { cssClass: "cssClass", currency: "currency", currencyCode: "currencyCode", decimals: "decimals", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", floatLabelType: "floatLabelType", format: "format", htmlAttributes: "htmlAttributes", locale: "locale", max: "max", min: "min", placeholder: "placeholder", readonly: "readonly", showClearButton: "showClearButton", showSpinButton: "showSpinButton", step: "step", strictMode: "strictMode", validateDecimalOnType: "validateDecimalOnType", value: "value", width: "width" }, outputs: { blur: "blur", change: "change", created: "created", destroyed: "destroyed", focus: "focus", valueChange: "valueChange" }, providers: [
|
|
178
|
+
{
|
|
179
|
+
provide: NG_VALUE_ACCESSOR,
|
|
180
|
+
useExisting: forwardRef(() => NumericTextBoxComponent_1),
|
|
181
|
+
multi: true
|
|
182
|
+
}
|
|
183
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
184
|
+
NumericTextBoxComponent = NumericTextBoxComponent_1 = __decorate([
|
|
185
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
186
|
+
], NumericTextBoxComponent);
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxComponent, decorators: [{
|
|
188
|
+
type: Component,
|
|
189
|
+
args: [{
|
|
190
|
+
selector: 'ejs-numerictextbox',
|
|
191
|
+
inputs: inputs$6,
|
|
192
|
+
outputs: outputs$7,
|
|
193
|
+
template: '',
|
|
194
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
195
|
+
providers: [
|
|
196
|
+
{
|
|
197
|
+
provide: NG_VALUE_ACCESSOR,
|
|
198
|
+
useExisting: forwardRef(() => NumericTextBoxComponent),
|
|
199
|
+
multi: true
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
queries: {}
|
|
203
|
+
}]
|
|
204
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* NgModule definition for the NumericTextBox component.
|
|
208
|
+
*/
|
|
209
|
+
class NumericTextBoxModule {
|
|
210
|
+
}
|
|
211
|
+
NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
212
|
+
NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxModule, declarations: [NumericTextBoxComponent], imports: [CommonModule], exports: [NumericTextBoxComponent] });
|
|
213
|
+
NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule]] });
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxModule, decorators: [{
|
|
215
|
+
type: NgModule,
|
|
216
|
+
args: [{
|
|
217
|
+
imports: [CommonModule],
|
|
218
|
+
declarations: [
|
|
219
|
+
NumericTextBoxComponent
|
|
220
|
+
],
|
|
221
|
+
exports: [
|
|
222
|
+
NumericTextBoxComponent
|
|
223
|
+
]
|
|
224
|
+
}]
|
|
225
|
+
}] });
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* NgModule definition for the NumericTextBox component with providers.
|
|
229
|
+
*/
|
|
230
|
+
class NumericTextBoxAllModule {
|
|
231
|
+
}
|
|
232
|
+
NumericTextBoxAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
233
|
+
NumericTextBoxAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxAllModule, imports: [CommonModule, NumericTextBoxModule], exports: [NumericTextBoxModule] });
|
|
234
|
+
NumericTextBoxAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxAllModule, providers: [], imports: [[CommonModule, NumericTextBoxModule], NumericTextBoxModule] });
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NumericTextBoxAllModule, decorators: [{
|
|
236
|
+
type: NgModule,
|
|
237
|
+
args: [{
|
|
238
|
+
imports: [CommonModule, NumericTextBoxModule],
|
|
239
|
+
exports: [
|
|
240
|
+
NumericTextBoxModule
|
|
241
|
+
],
|
|
242
|
+
providers: []
|
|
243
|
+
}]
|
|
244
|
+
}] });
|
|
245
|
+
|
|
246
|
+
var MaskedTextBoxComponent_1;
|
|
247
|
+
const inputs$5 = ['cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width'];
|
|
248
|
+
const outputs$6 = ['blur', 'change', 'created', 'destroyed', 'focus', 'valueChange'];
|
|
249
|
+
const twoWays$5 = ['value'];
|
|
250
|
+
/**
|
|
251
|
+
* Represents the EJ2 Angular MaskedTextbox Component.
|
|
252
|
+
* ```html
|
|
253
|
+
* <ej-maskedtextbox [value]='value'></ej-maskedtextbox>
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
let MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxComponent extends MaskedTextBox {
|
|
257
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
258
|
+
super();
|
|
259
|
+
this.ngEle = ngEle;
|
|
260
|
+
this.srenderer = srenderer;
|
|
261
|
+
this.viewContainerRef = viewContainerRef;
|
|
262
|
+
this.injector = injector;
|
|
263
|
+
this.cdr = cdr;
|
|
264
|
+
this.skipFromEvent = true;
|
|
265
|
+
this.element = this.ngEle.nativeElement;
|
|
266
|
+
this.injectedModules = this.injectedModules || [];
|
|
267
|
+
this.registerEvents(outputs$6);
|
|
268
|
+
this.addTwoWay.call(this, twoWays$5);
|
|
269
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
270
|
+
this.formContext = new FormBase();
|
|
271
|
+
this.formCompContext = new ComponentBase();
|
|
272
|
+
}
|
|
273
|
+
registerOnChange(registerFunction) {
|
|
274
|
+
}
|
|
275
|
+
registerOnTouched(registerFunction) {
|
|
276
|
+
}
|
|
277
|
+
writeValue(value) {
|
|
278
|
+
}
|
|
279
|
+
setDisabledState(disabled) {
|
|
280
|
+
}
|
|
281
|
+
ngOnInit() {
|
|
282
|
+
this.formCompContext.ngOnInit(this);
|
|
283
|
+
}
|
|
284
|
+
ngAfterViewInit() {
|
|
285
|
+
this.formContext.ngAfterViewInit(this);
|
|
286
|
+
}
|
|
287
|
+
ngOnDestroy() {
|
|
288
|
+
this.formCompContext.ngOnDestroy(this);
|
|
289
|
+
}
|
|
290
|
+
ngAfterContentChecked() {
|
|
291
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
MaskedTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
295
|
+
MaskedTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: MaskedTextBoxComponent, selector: "ejs-maskedtextbox", inputs: { cssClass: "cssClass", customCharacters: "customCharacters", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", floatLabelType: "floatLabelType", htmlAttributes: "htmlAttributes", locale: "locale", mask: "mask", placeholder: "placeholder", promptChar: "promptChar", readonly: "readonly", showClearButton: "showClearButton", value: "value", width: "width" }, outputs: { blur: "blur", change: "change", created: "created", destroyed: "destroyed", focus: "focus", valueChange: "valueChange" }, providers: [
|
|
296
|
+
{
|
|
297
|
+
provide: NG_VALUE_ACCESSOR,
|
|
298
|
+
useExisting: forwardRef(() => MaskedTextBoxComponent_1),
|
|
299
|
+
multi: true
|
|
300
|
+
}
|
|
301
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
302
|
+
MaskedTextBoxComponent = MaskedTextBoxComponent_1 = __decorate([
|
|
303
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
304
|
+
], MaskedTextBoxComponent);
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxComponent, decorators: [{
|
|
306
|
+
type: Component,
|
|
307
|
+
args: [{
|
|
308
|
+
selector: 'ejs-maskedtextbox',
|
|
309
|
+
inputs: inputs$5,
|
|
310
|
+
outputs: outputs$6,
|
|
311
|
+
template: '',
|
|
312
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
313
|
+
providers: [
|
|
314
|
+
{
|
|
315
|
+
provide: NG_VALUE_ACCESSOR,
|
|
316
|
+
useExisting: forwardRef(() => MaskedTextBoxComponent),
|
|
317
|
+
multi: true
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
queries: {}
|
|
321
|
+
}]
|
|
322
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* NgModule definition for the MaskedTextBox component.
|
|
326
|
+
*/
|
|
327
|
+
class MaskedTextBoxModule {
|
|
328
|
+
}
|
|
329
|
+
MaskedTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
330
|
+
MaskedTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxModule, declarations: [MaskedTextBoxComponent], imports: [CommonModule], exports: [MaskedTextBoxComponent] });
|
|
331
|
+
MaskedTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxModule, imports: [[CommonModule]] });
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxModule, decorators: [{
|
|
333
|
+
type: NgModule,
|
|
334
|
+
args: [{
|
|
335
|
+
imports: [CommonModule],
|
|
336
|
+
declarations: [
|
|
337
|
+
MaskedTextBoxComponent
|
|
338
|
+
],
|
|
339
|
+
exports: [
|
|
340
|
+
MaskedTextBoxComponent
|
|
341
|
+
]
|
|
342
|
+
}]
|
|
343
|
+
}] });
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* NgModule definition for the MaskedTextBox component with providers.
|
|
347
|
+
*/
|
|
348
|
+
class MaskedTextBoxAllModule {
|
|
349
|
+
}
|
|
350
|
+
MaskedTextBoxAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
351
|
+
MaskedTextBoxAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxAllModule, imports: [CommonModule, MaskedTextBoxModule], exports: [MaskedTextBoxModule] });
|
|
352
|
+
MaskedTextBoxAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxAllModule, providers: [], imports: [[CommonModule, MaskedTextBoxModule], MaskedTextBoxModule] });
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: MaskedTextBoxAllModule, decorators: [{
|
|
354
|
+
type: NgModule,
|
|
355
|
+
args: [{
|
|
356
|
+
imports: [CommonModule, MaskedTextBoxModule],
|
|
357
|
+
exports: [
|
|
358
|
+
MaskedTextBoxModule
|
|
359
|
+
],
|
|
360
|
+
providers: []
|
|
361
|
+
}]
|
|
362
|
+
}] });
|
|
363
|
+
|
|
364
|
+
var SliderComponent_1;
|
|
365
|
+
const inputs$4 = ['colorRange', 'cssClass', 'customValues', 'enableAnimation', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'limits', 'locale', 'max', 'min', 'orientation', 'readonly', 'showButtons', 'step', 'ticks', 'tooltip', 'type', 'value', 'width'];
|
|
366
|
+
const outputs$5 = ['focus', 'blur', 'change', 'changed', 'created', 'renderedTicks', 'renderingTicks', 'tooltipChange', 'valueChange'];
|
|
367
|
+
const twoWays$4 = ['value'];
|
|
368
|
+
/**
|
|
369
|
+
* Represents the EJ2 Angular Slider Component.
|
|
370
|
+
* ```html
|
|
371
|
+
* <ejs-slider [value]='value'></ejs-slider>
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
let SliderComponent = SliderComponent_1 = class SliderComponent extends Slider {
|
|
375
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
376
|
+
super();
|
|
377
|
+
this.ngEle = ngEle;
|
|
378
|
+
this.srenderer = srenderer;
|
|
379
|
+
this.viewContainerRef = viewContainerRef;
|
|
380
|
+
this.injector = injector;
|
|
381
|
+
this.cdr = cdr;
|
|
382
|
+
this.element = this.ngEle.nativeElement;
|
|
383
|
+
this.injectedModules = this.injectedModules || [];
|
|
384
|
+
this.registerEvents(outputs$5);
|
|
385
|
+
this.addTwoWay.call(this, twoWays$4);
|
|
386
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
387
|
+
this.formContext = new FormBase();
|
|
388
|
+
this.formCompContext = new ComponentBase();
|
|
389
|
+
}
|
|
390
|
+
registerOnChange(registerFunction) {
|
|
391
|
+
}
|
|
392
|
+
registerOnTouched(registerFunction) {
|
|
393
|
+
}
|
|
394
|
+
writeValue(value) {
|
|
395
|
+
}
|
|
396
|
+
setDisabledState(disabled) {
|
|
397
|
+
}
|
|
398
|
+
ngOnInit() {
|
|
399
|
+
this.formCompContext.ngOnInit(this);
|
|
400
|
+
}
|
|
401
|
+
ngAfterViewInit() {
|
|
402
|
+
this.formContext.ngAfterViewInit(this);
|
|
403
|
+
}
|
|
404
|
+
ngOnDestroy() {
|
|
405
|
+
this.formCompContext.ngOnDestroy(this);
|
|
406
|
+
}
|
|
407
|
+
ngAfterContentChecked() {
|
|
408
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
SliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
412
|
+
SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SliderComponent, selector: "ejs-slider", inputs: { colorRange: "colorRange", cssClass: "cssClass", customValues: "customValues", enableAnimation: "enableAnimation", enableHtmlSanitizer: "enableHtmlSanitizer", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", limits: "limits", locale: "locale", max: "max", min: "min", orientation: "orientation", readonly: "readonly", showButtons: "showButtons", step: "step", ticks: "ticks", tooltip: "tooltip", type: "type", value: "value", width: "width" }, outputs: { focus: "focus", blur: "blur", change: "change", changed: "changed", created: "created", renderedTicks: "renderedTicks", renderingTicks: "renderingTicks", tooltipChange: "tooltipChange", valueChange: "valueChange" }, providers: [
|
|
413
|
+
{
|
|
414
|
+
provide: NG_VALUE_ACCESSOR,
|
|
415
|
+
useExisting: forwardRef(() => SliderComponent_1),
|
|
416
|
+
multi: true
|
|
417
|
+
}
|
|
418
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
419
|
+
SliderComponent = SliderComponent_1 = __decorate([
|
|
420
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
421
|
+
], SliderComponent);
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderComponent, decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{
|
|
425
|
+
selector: 'ejs-slider',
|
|
426
|
+
inputs: inputs$4,
|
|
427
|
+
outputs: outputs$5,
|
|
428
|
+
template: '',
|
|
429
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
430
|
+
providers: [
|
|
431
|
+
{
|
|
432
|
+
provide: NG_VALUE_ACCESSOR,
|
|
433
|
+
useExisting: forwardRef(() => SliderComponent),
|
|
434
|
+
multi: true
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
queries: {}
|
|
438
|
+
}]
|
|
439
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* NgModule definition for the Slider component.
|
|
443
|
+
*/
|
|
444
|
+
class SliderModule {
|
|
445
|
+
}
|
|
446
|
+
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
447
|
+
SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderModule, declarations: [SliderComponent], imports: [CommonModule], exports: [SliderComponent] });
|
|
448
|
+
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderModule, imports: [[CommonModule]] });
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderModule, decorators: [{
|
|
450
|
+
type: NgModule,
|
|
451
|
+
args: [{
|
|
452
|
+
imports: [CommonModule],
|
|
453
|
+
declarations: [
|
|
454
|
+
SliderComponent
|
|
455
|
+
],
|
|
456
|
+
exports: [
|
|
457
|
+
SliderComponent
|
|
458
|
+
]
|
|
459
|
+
}]
|
|
460
|
+
}] });
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* NgModule definition for the Slider component with providers.
|
|
464
|
+
*/
|
|
465
|
+
class SliderAllModule {
|
|
466
|
+
}
|
|
467
|
+
SliderAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
468
|
+
SliderAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderAllModule, imports: [CommonModule, SliderModule], exports: [SliderModule] });
|
|
469
|
+
SliderAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderAllModule, providers: [], imports: [[CommonModule, SliderModule], SliderModule] });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SliderAllModule, decorators: [{
|
|
471
|
+
type: NgModule,
|
|
472
|
+
args: [{
|
|
473
|
+
imports: [CommonModule, SliderModule],
|
|
474
|
+
exports: [
|
|
475
|
+
SliderModule
|
|
476
|
+
],
|
|
477
|
+
providers: []
|
|
478
|
+
}]
|
|
479
|
+
}] });
|
|
480
|
+
|
|
481
|
+
let input = ['name', 'size', 'type'];
|
|
482
|
+
let outputs$4 = [];
|
|
483
|
+
/**
|
|
484
|
+
* 'e-files' directive represent a file of angular uploader
|
|
485
|
+
* It must be contained in a Uploader component(`ejs-uploader`).
|
|
486
|
+
* ```html
|
|
487
|
+
* <ejs-uploader id='fileupload' multiple=true>
|
|
488
|
+
* <e-files>
|
|
489
|
+
* <e-file name='Java' size=23000 type='pdf'></e-file>
|
|
490
|
+
* <e-file name='C++' size=30000 type='.docx'></e-file>
|
|
491
|
+
* </e-files>
|
|
492
|
+
* </ejs-uploader>
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
class UploadedFilesDirective extends ComplexBase {
|
|
496
|
+
constructor(viewContainerRef) {
|
|
497
|
+
super();
|
|
498
|
+
this.viewContainerRef = viewContainerRef;
|
|
499
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
500
|
+
this.registerEvents(outputs$4);
|
|
501
|
+
this.directivePropList = input;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
UploadedFilesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploadedFilesDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
505
|
+
UploadedFilesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.3", type: UploadedFilesDirective, selector: "e-files>e-uploadedfiles", inputs: { name: "name", size: "size", type: "type" }, usesInheritance: true, ngImport: i0 });
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploadedFilesDirective, decorators: [{
|
|
507
|
+
type: Directive,
|
|
508
|
+
args: [{
|
|
509
|
+
selector: 'e-files>e-uploadedfiles',
|
|
510
|
+
inputs: input,
|
|
511
|
+
outputs: outputs$4,
|
|
512
|
+
queries: {}
|
|
513
|
+
}]
|
|
514
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
515
|
+
/**
|
|
516
|
+
* UploadedFiles Array Directive
|
|
517
|
+
* @private
|
|
518
|
+
*/
|
|
519
|
+
class FilesDirective extends ArrayBase {
|
|
520
|
+
constructor() {
|
|
521
|
+
super('files');
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
FilesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: FilesDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
525
|
+
FilesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.3", type: FilesDirective, selector: "ejs-uploader>e-files", queries: [{ propertyName: "children", predicate: UploadedFilesDirective }], usesInheritance: true, ngImport: i0 });
|
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: FilesDirective, decorators: [{
|
|
527
|
+
type: Directive,
|
|
528
|
+
args: [{
|
|
529
|
+
selector: 'ejs-uploader>e-files',
|
|
530
|
+
queries: {
|
|
531
|
+
children: new ContentChildren(UploadedFilesDirective)
|
|
532
|
+
},
|
|
533
|
+
}]
|
|
534
|
+
}], ctorParameters: function () { return []; } });
|
|
535
|
+
|
|
536
|
+
var UploaderComponent_1;
|
|
537
|
+
const inputs$3 = ['allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template'];
|
|
538
|
+
const outputs$3 = ['focus', 'blur', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
|
|
539
|
+
const twoWays$3 = [];
|
|
540
|
+
/**
|
|
541
|
+
* Represents the EJ2 Angular Uploader Component.
|
|
542
|
+
* ```html
|
|
543
|
+
* <ejs-uploader></ejs-uploader>
|
|
544
|
+
* ```
|
|
545
|
+
*/
|
|
546
|
+
let UploaderComponent = UploaderComponent_1 = class UploaderComponent extends Uploader {
|
|
547
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
548
|
+
super();
|
|
549
|
+
this.ngEle = ngEle;
|
|
550
|
+
this.srenderer = srenderer;
|
|
551
|
+
this.viewContainerRef = viewContainerRef;
|
|
552
|
+
this.injector = injector;
|
|
553
|
+
this.cdr = cdr;
|
|
554
|
+
this.tags = ['files'];
|
|
555
|
+
this.element = this.ngEle.nativeElement;
|
|
556
|
+
this.injectedModules = this.injectedModules || [];
|
|
557
|
+
this.registerEvents(outputs$3);
|
|
558
|
+
this.addTwoWay.call(this, twoWays$3);
|
|
559
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
560
|
+
this.formContext = new FormBase();
|
|
561
|
+
this.formCompContext = new ComponentBase();
|
|
562
|
+
}
|
|
563
|
+
registerOnChange(registerFunction) {
|
|
564
|
+
}
|
|
565
|
+
registerOnTouched(registerFunction) {
|
|
566
|
+
}
|
|
567
|
+
writeValue(value) {
|
|
568
|
+
}
|
|
569
|
+
setDisabledState(disabled) {
|
|
570
|
+
}
|
|
571
|
+
ngOnInit() {
|
|
572
|
+
this.formCompContext.ngOnInit(this);
|
|
573
|
+
}
|
|
574
|
+
ngAfterViewInit() {
|
|
575
|
+
this.formContext.ngAfterViewInit(this);
|
|
576
|
+
}
|
|
577
|
+
ngOnDestroy() {
|
|
578
|
+
this.formCompContext.ngOnDestroy(this);
|
|
579
|
+
}
|
|
580
|
+
ngAfterContentChecked() {
|
|
581
|
+
this.tagObjects[0].instance = this.childFiles;
|
|
582
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
UploaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
586
|
+
UploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: UploaderComponent, selector: "ejs-uploader", inputs: { allowedExtensions: "allowedExtensions", asyncSettings: "asyncSettings", autoUpload: "autoUpload", buttons: "buttons", cssClass: "cssClass", directoryUpload: "directoryUpload", dropArea: "dropArea", dropEffect: "dropEffect", enableHtmlSanitizer: "enableHtmlSanitizer", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", files: "files", htmlAttributes: "htmlAttributes", locale: "locale", maxFileSize: "maxFileSize", minFileSize: "minFileSize", multiple: "multiple", sequentialUpload: "sequentialUpload", showFileList: "showFileList", template: "template" }, outputs: { focus: "focus", blur: "blur", actionComplete: "actionComplete", beforeRemove: "beforeRemove", beforeUpload: "beforeUpload", canceling: "canceling", change: "change", chunkFailure: "chunkFailure", chunkSuccess: "chunkSuccess", chunkUploading: "chunkUploading", clearing: "clearing", created: "created", failure: "failure", fileListRendering: "fileListRendering", pausing: "pausing", progress: "progress", removing: "removing", rendering: "rendering", resuming: "resuming", selected: "selected", success: "success", uploading: "uploading" }, providers: [
|
|
587
|
+
{
|
|
588
|
+
provide: NG_VALUE_ACCESSOR,
|
|
589
|
+
useExisting: forwardRef(() => UploaderComponent_1),
|
|
590
|
+
multi: true
|
|
591
|
+
}
|
|
592
|
+
], queries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true }, { propertyName: "childFiles", first: true, predicate: FilesDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
593
|
+
__decorate([
|
|
594
|
+
Template()
|
|
595
|
+
], UploaderComponent.prototype, "template", void 0);
|
|
596
|
+
UploaderComponent = UploaderComponent_1 = __decorate([
|
|
597
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
598
|
+
], UploaderComponent);
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderComponent, decorators: [{
|
|
600
|
+
type: Component,
|
|
601
|
+
args: [{
|
|
602
|
+
selector: 'ejs-uploader',
|
|
603
|
+
inputs: inputs$3,
|
|
604
|
+
outputs: outputs$3,
|
|
605
|
+
template: '',
|
|
606
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
607
|
+
providers: [
|
|
608
|
+
{
|
|
609
|
+
provide: NG_VALUE_ACCESSOR,
|
|
610
|
+
useExisting: forwardRef(() => UploaderComponent),
|
|
611
|
+
multi: true
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
queries: {
|
|
615
|
+
childFiles: new ContentChild(FilesDirective)
|
|
616
|
+
}
|
|
617
|
+
}]
|
|
618
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { template: [{
|
|
619
|
+
type: ContentChild,
|
|
620
|
+
args: ['template']
|
|
621
|
+
}] } });
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* NgModule definition for the Uploader component.
|
|
625
|
+
*/
|
|
626
|
+
class UploaderModule {
|
|
627
|
+
}
|
|
628
|
+
UploaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
629
|
+
UploaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderModule, declarations: [UploaderComponent,
|
|
630
|
+
UploadedFilesDirective,
|
|
631
|
+
FilesDirective], imports: [CommonModule], exports: [UploaderComponent,
|
|
632
|
+
UploadedFilesDirective,
|
|
633
|
+
FilesDirective] });
|
|
634
|
+
UploaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderModule, imports: [[CommonModule]] });
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderModule, decorators: [{
|
|
636
|
+
type: NgModule,
|
|
637
|
+
args: [{
|
|
638
|
+
imports: [CommonModule],
|
|
639
|
+
declarations: [
|
|
640
|
+
UploaderComponent,
|
|
641
|
+
UploadedFilesDirective,
|
|
642
|
+
FilesDirective
|
|
643
|
+
],
|
|
644
|
+
exports: [
|
|
645
|
+
UploaderComponent,
|
|
646
|
+
UploadedFilesDirective,
|
|
647
|
+
FilesDirective
|
|
648
|
+
]
|
|
649
|
+
}]
|
|
650
|
+
}] });
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* NgModule definition for the Uploader component with providers.
|
|
654
|
+
*/
|
|
655
|
+
class UploaderAllModule {
|
|
656
|
+
}
|
|
657
|
+
UploaderAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
658
|
+
UploaderAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderAllModule, imports: [CommonModule, UploaderModule], exports: [UploaderModule] });
|
|
659
|
+
UploaderAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderAllModule, providers: [], imports: [[CommonModule, UploaderModule], UploaderModule] });
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UploaderAllModule, decorators: [{
|
|
661
|
+
type: NgModule,
|
|
662
|
+
args: [{
|
|
663
|
+
imports: [CommonModule, UploaderModule],
|
|
664
|
+
exports: [
|
|
665
|
+
UploaderModule
|
|
666
|
+
],
|
|
667
|
+
providers: []
|
|
668
|
+
}]
|
|
669
|
+
}] });
|
|
670
|
+
|
|
671
|
+
var ColorPickerComponent_1;
|
|
672
|
+
const inputs$2 = ['columns', 'createPopupOnClick', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'value'];
|
|
673
|
+
const outputs$2 = ['focus', 'blur', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select', 'valueChange'];
|
|
674
|
+
const twoWays$2 = ['value'];
|
|
675
|
+
/**
|
|
676
|
+
* Represents the EJ2 Angular ColorPicker Component.
|
|
677
|
+
* ```html
|
|
678
|
+
* <input ejs-colorpicker type='color'/>
|
|
679
|
+
* ```
|
|
680
|
+
*/
|
|
681
|
+
let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent extends ColorPicker {
|
|
682
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
683
|
+
super();
|
|
684
|
+
this.ngEle = ngEle;
|
|
685
|
+
this.srenderer = srenderer;
|
|
686
|
+
this.viewContainerRef = viewContainerRef;
|
|
687
|
+
this.injector = injector;
|
|
688
|
+
this.cdr = cdr;
|
|
689
|
+
this.element = this.ngEle.nativeElement;
|
|
690
|
+
this.injectedModules = this.injectedModules || [];
|
|
691
|
+
this.registerEvents(outputs$2);
|
|
692
|
+
this.addTwoWay.call(this, twoWays$2);
|
|
693
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
694
|
+
this.formContext = new FormBase();
|
|
695
|
+
this.formCompContext = new ComponentBase();
|
|
696
|
+
}
|
|
697
|
+
registerOnChange(registerFunction) {
|
|
698
|
+
}
|
|
699
|
+
registerOnTouched(registerFunction) {
|
|
700
|
+
}
|
|
701
|
+
writeValue(value) {
|
|
702
|
+
}
|
|
703
|
+
setDisabledState(disabled) {
|
|
704
|
+
}
|
|
705
|
+
ngOnInit() {
|
|
706
|
+
this.formCompContext.ngOnInit(this);
|
|
707
|
+
}
|
|
708
|
+
ngAfterViewInit() {
|
|
709
|
+
this.formContext.ngAfterViewInit(this);
|
|
710
|
+
}
|
|
711
|
+
ngOnDestroy() {
|
|
712
|
+
this.formCompContext.ngOnDestroy(this);
|
|
713
|
+
}
|
|
714
|
+
ngAfterContentChecked() {
|
|
715
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ColorPickerComponent, selector: "[ejs-colorpicker]", inputs: { columns: "columns", createPopupOnClick: "createPopupOnClick", cssClass: "cssClass", disabled: "disabled", enableOpacity: "enableOpacity", enablePersistence: "enablePersistence", enableRtl: "enableRtl", inline: "inline", locale: "locale", mode: "mode", modeSwitcher: "modeSwitcher", noColor: "noColor", presetColors: "presetColors", showButtons: "showButtons", value: "value" }, outputs: { focus: "focus", blur: "blur", beforeClose: "beforeClose", beforeModeSwitch: "beforeModeSwitch", beforeOpen: "beforeOpen", beforeTileRender: "beforeTileRender", change: "change", created: "created", onModeSwitch: "onModeSwitch", open: "open", select: "select", valueChange: "valueChange" }, providers: [
|
|
720
|
+
{
|
|
721
|
+
provide: NG_VALUE_ACCESSOR,
|
|
722
|
+
useExisting: forwardRef(() => ColorPickerComponent_1),
|
|
723
|
+
multi: true
|
|
724
|
+
}
|
|
725
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
726
|
+
ColorPickerComponent = ColorPickerComponent_1 = __decorate([
|
|
727
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
728
|
+
], ColorPickerComponent);
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
730
|
+
type: Component,
|
|
731
|
+
args: [{
|
|
732
|
+
selector: '[ejs-colorpicker]',
|
|
733
|
+
inputs: inputs$2,
|
|
734
|
+
outputs: outputs$2,
|
|
735
|
+
template: '',
|
|
736
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
737
|
+
providers: [
|
|
738
|
+
{
|
|
739
|
+
provide: NG_VALUE_ACCESSOR,
|
|
740
|
+
useExisting: forwardRef(() => ColorPickerComponent),
|
|
741
|
+
multi: true
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
queries: {}
|
|
745
|
+
}]
|
|
746
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* NgModule definition for the ColorPicker component.
|
|
750
|
+
*/
|
|
751
|
+
class ColorPickerModule {
|
|
752
|
+
}
|
|
753
|
+
ColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
754
|
+
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerModule, declarations: [ColorPickerComponent], imports: [CommonModule], exports: [ColorPickerComponent] });
|
|
755
|
+
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerModule, imports: [[CommonModule]] });
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
757
|
+
type: NgModule,
|
|
758
|
+
args: [{
|
|
759
|
+
imports: [CommonModule],
|
|
760
|
+
declarations: [
|
|
761
|
+
ColorPickerComponent
|
|
762
|
+
],
|
|
763
|
+
exports: [
|
|
764
|
+
ColorPickerComponent
|
|
765
|
+
]
|
|
766
|
+
}]
|
|
767
|
+
}] });
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* NgModule definition for the ColorPicker component with providers.
|
|
771
|
+
*/
|
|
772
|
+
class ColorPickerAllModule {
|
|
773
|
+
}
|
|
774
|
+
ColorPickerAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
775
|
+
ColorPickerAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerAllModule, imports: [CommonModule, ColorPickerModule], exports: [ColorPickerModule] });
|
|
776
|
+
ColorPickerAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerAllModule, providers: [], imports: [[CommonModule, ColorPickerModule], ColorPickerModule] });
|
|
777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ColorPickerAllModule, decorators: [{
|
|
778
|
+
type: NgModule,
|
|
779
|
+
args: [{
|
|
780
|
+
imports: [CommonModule, ColorPickerModule],
|
|
781
|
+
exports: [
|
|
782
|
+
ColorPickerModule
|
|
783
|
+
],
|
|
784
|
+
providers: []
|
|
785
|
+
}]
|
|
786
|
+
}] });
|
|
787
|
+
|
|
788
|
+
var SignatureComponent_1;
|
|
789
|
+
const inputs$1 = ['backgroundColor', 'backgroundImage', 'disabled', 'enablePersistence', 'enableRtl', 'isReadOnly', 'locale', 'maxStrokeWidth', 'minStrokeWidth', 'saveWithBackground', 'strokeColor', 'velocity'];
|
|
790
|
+
const outputs$1 = ['focus', 'blur', 'beforeSave', 'change', 'created'];
|
|
791
|
+
const twoWays$1 = [];
|
|
792
|
+
/**
|
|
793
|
+
* Represents the EJ2 Angular Signature Component.
|
|
794
|
+
* ```html
|
|
795
|
+
* <canvas ejs-signature />
|
|
796
|
+
* ```
|
|
797
|
+
*/
|
|
798
|
+
let SignatureComponent = SignatureComponent_1 = class SignatureComponent extends Signature {
|
|
799
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
800
|
+
super();
|
|
801
|
+
this.ngEle = ngEle;
|
|
802
|
+
this.srenderer = srenderer;
|
|
803
|
+
this.viewContainerRef = viewContainerRef;
|
|
804
|
+
this.injector = injector;
|
|
805
|
+
this.cdr = cdr;
|
|
806
|
+
this.element = this.ngEle.nativeElement;
|
|
807
|
+
this.injectedModules = this.injectedModules || [];
|
|
808
|
+
this.registerEvents(outputs$1);
|
|
809
|
+
this.addTwoWay.call(this, twoWays$1);
|
|
810
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
811
|
+
this.formContext = new FormBase();
|
|
812
|
+
this.formCompContext = new ComponentBase();
|
|
813
|
+
}
|
|
814
|
+
registerOnChange(registerFunction) {
|
|
815
|
+
}
|
|
816
|
+
registerOnTouched(registerFunction) {
|
|
817
|
+
}
|
|
818
|
+
writeValue(value) {
|
|
819
|
+
}
|
|
820
|
+
setDisabledState(disabled) {
|
|
821
|
+
}
|
|
822
|
+
ngOnInit() {
|
|
823
|
+
this.formCompContext.ngOnInit(this);
|
|
824
|
+
}
|
|
825
|
+
ngAfterViewInit() {
|
|
826
|
+
this.formContext.ngAfterViewInit(this);
|
|
827
|
+
}
|
|
828
|
+
ngOnDestroy() {
|
|
829
|
+
this.formCompContext.ngOnDestroy(this);
|
|
830
|
+
}
|
|
831
|
+
ngAfterContentChecked() {
|
|
832
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
836
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SignatureComponent, selector: "[ejs-signature]", inputs: { backgroundColor: "backgroundColor", backgroundImage: "backgroundImage", disabled: "disabled", enablePersistence: "enablePersistence", enableRtl: "enableRtl", isReadOnly: "isReadOnly", locale: "locale", maxStrokeWidth: "maxStrokeWidth", minStrokeWidth: "minStrokeWidth", saveWithBackground: "saveWithBackground", strokeColor: "strokeColor", velocity: "velocity" }, outputs: { focus: "focus", blur: "blur", beforeSave: "beforeSave", change: "change", created: "created" }, providers: [
|
|
837
|
+
{
|
|
838
|
+
provide: NG_VALUE_ACCESSOR,
|
|
839
|
+
useExisting: forwardRef(() => SignatureComponent_1),
|
|
840
|
+
multi: true
|
|
841
|
+
}
|
|
842
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
843
|
+
SignatureComponent = SignatureComponent_1 = __decorate([
|
|
844
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
845
|
+
], SignatureComponent);
|
|
846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
847
|
+
type: Component,
|
|
848
|
+
args: [{
|
|
849
|
+
selector: '[ejs-signature]',
|
|
850
|
+
inputs: inputs$1,
|
|
851
|
+
outputs: outputs$1,
|
|
852
|
+
template: '',
|
|
853
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
854
|
+
providers: [
|
|
855
|
+
{
|
|
856
|
+
provide: NG_VALUE_ACCESSOR,
|
|
857
|
+
useExisting: forwardRef(() => SignatureComponent),
|
|
858
|
+
multi: true
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
queries: {}
|
|
862
|
+
}]
|
|
863
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* NgModule definition for the Signature component.
|
|
867
|
+
*/
|
|
868
|
+
class SignatureModule {
|
|
869
|
+
}
|
|
870
|
+
SignatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
871
|
+
SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureModule, declarations: [SignatureComponent], imports: [CommonModule], exports: [SignatureComponent] });
|
|
872
|
+
SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureModule, imports: [[CommonModule]] });
|
|
873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureModule, decorators: [{
|
|
874
|
+
type: NgModule,
|
|
875
|
+
args: [{
|
|
876
|
+
imports: [CommonModule],
|
|
877
|
+
declarations: [
|
|
878
|
+
SignatureComponent
|
|
879
|
+
],
|
|
880
|
+
exports: [
|
|
881
|
+
SignatureComponent
|
|
882
|
+
]
|
|
883
|
+
}]
|
|
884
|
+
}] });
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* NgModule definition for the Signature component with providers.
|
|
888
|
+
*/
|
|
889
|
+
class SignatureAllModule {
|
|
890
|
+
}
|
|
891
|
+
SignatureAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
892
|
+
SignatureAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureAllModule, imports: [CommonModule, SignatureModule], exports: [SignatureModule] });
|
|
893
|
+
SignatureAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureAllModule, providers: [], imports: [[CommonModule, SignatureModule], SignatureModule] });
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SignatureAllModule, decorators: [{
|
|
895
|
+
type: NgModule,
|
|
896
|
+
args: [{
|
|
897
|
+
imports: [CommonModule, SignatureModule],
|
|
898
|
+
exports: [
|
|
899
|
+
SignatureModule
|
|
900
|
+
],
|
|
901
|
+
providers: []
|
|
902
|
+
}]
|
|
903
|
+
}] });
|
|
904
|
+
|
|
905
|
+
var RatingComponent_1;
|
|
906
|
+
const inputs = ['allowReset', 'cssClass', 'disabled', 'emptyTemplate', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSingleSelection', 'fullTemplate', 'itemsCount', 'labelPosition', 'labelTemplate', 'locale', 'min', 'precision', 'readOnly', 'showLabel', 'showTooltip', 'tooltipTemplate', 'value', 'visible'];
|
|
907
|
+
const outputs = ['focus', 'blur', 'beforeItemRender', 'created', 'onItemHover', 'valueChanged', 'valueChange'];
|
|
908
|
+
const twoWays = ['value'];
|
|
909
|
+
/**
|
|
910
|
+
* Represents the EJ2 Angular Rating Component.
|
|
911
|
+
* ```html
|
|
912
|
+
* <input ejs-rating [value]='value' />
|
|
913
|
+
* ```
|
|
914
|
+
*/
|
|
915
|
+
let RatingComponent = RatingComponent_1 = class RatingComponent extends Rating {
|
|
916
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
917
|
+
super();
|
|
918
|
+
this.ngEle = ngEle;
|
|
919
|
+
this.srenderer = srenderer;
|
|
920
|
+
this.viewContainerRef = viewContainerRef;
|
|
921
|
+
this.injector = injector;
|
|
922
|
+
this.cdr = cdr;
|
|
923
|
+
this.element = this.ngEle.nativeElement;
|
|
924
|
+
this.injectedModules = this.injectedModules || [];
|
|
925
|
+
this.registerEvents(outputs);
|
|
926
|
+
this.addTwoWay.call(this, twoWays);
|
|
927
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
928
|
+
this.formContext = new FormBase();
|
|
929
|
+
this.formCompContext = new ComponentBase();
|
|
930
|
+
}
|
|
931
|
+
registerOnChange(registerFunction) {
|
|
932
|
+
}
|
|
933
|
+
registerOnTouched(registerFunction) {
|
|
934
|
+
}
|
|
935
|
+
writeValue(value) {
|
|
936
|
+
}
|
|
937
|
+
setDisabledState(disabled) {
|
|
938
|
+
}
|
|
939
|
+
ngOnInit() {
|
|
940
|
+
this.formCompContext.ngOnInit(this);
|
|
941
|
+
}
|
|
942
|
+
ngAfterViewInit() {
|
|
943
|
+
this.formContext.ngAfterViewInit(this);
|
|
944
|
+
}
|
|
945
|
+
ngOnDestroy() {
|
|
946
|
+
this.formCompContext.ngOnDestroy(this);
|
|
947
|
+
}
|
|
948
|
+
ngAfterContentChecked() {
|
|
949
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
RatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
953
|
+
RatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: RatingComponent, selector: "[ejs-rating]", inputs: { allowReset: "allowReset", cssClass: "cssClass", disabled: "disabled", emptyTemplate: "emptyTemplate", enableAnimation: "enableAnimation", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enableSingleSelection: "enableSingleSelection", fullTemplate: "fullTemplate", itemsCount: "itemsCount", labelPosition: "labelPosition", labelTemplate: "labelTemplate", locale: "locale", min: "min", precision: "precision", readOnly: "readOnly", showLabel: "showLabel", showTooltip: "showTooltip", tooltipTemplate: "tooltipTemplate", value: "value", visible: "visible" }, outputs: { focus: "focus", blur: "blur", beforeItemRender: "beforeItemRender", created: "created", onItemHover: "onItemHover", valueChanged: "valueChanged", valueChange: "valueChange" }, providers: [
|
|
954
|
+
{
|
|
955
|
+
provide: NG_VALUE_ACCESSOR,
|
|
956
|
+
useExisting: forwardRef(() => RatingComponent_1),
|
|
957
|
+
multi: true
|
|
958
|
+
}
|
|
959
|
+
], queries: [{ propertyName: "fullTemplate", first: true, predicate: ["fullTemplate"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }, { propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }, { propertyName: "labelTemplate", first: true, predicate: ["labelTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
960
|
+
__decorate([
|
|
961
|
+
Template()
|
|
962
|
+
], RatingComponent.prototype, "fullTemplate", void 0);
|
|
963
|
+
__decorate([
|
|
964
|
+
Template()
|
|
965
|
+
], RatingComponent.prototype, "emptyTemplate", void 0);
|
|
966
|
+
__decorate([
|
|
967
|
+
Template()
|
|
968
|
+
], RatingComponent.prototype, "tooltipTemplate", void 0);
|
|
969
|
+
__decorate([
|
|
970
|
+
Template()
|
|
971
|
+
], RatingComponent.prototype, "labelTemplate", void 0);
|
|
972
|
+
RatingComponent = RatingComponent_1 = __decorate([
|
|
973
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
974
|
+
], RatingComponent);
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingComponent, decorators: [{
|
|
976
|
+
type: Component,
|
|
977
|
+
args: [{
|
|
978
|
+
selector: '[ejs-rating]',
|
|
979
|
+
inputs: inputs,
|
|
980
|
+
outputs: outputs,
|
|
981
|
+
template: '',
|
|
982
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
983
|
+
providers: [
|
|
984
|
+
{
|
|
985
|
+
provide: NG_VALUE_ACCESSOR,
|
|
986
|
+
useExisting: forwardRef(() => RatingComponent),
|
|
987
|
+
multi: true
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
queries: {}
|
|
991
|
+
}]
|
|
992
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fullTemplate: [{
|
|
993
|
+
type: ContentChild,
|
|
994
|
+
args: ['fullTemplate']
|
|
995
|
+
}], emptyTemplate: [{
|
|
996
|
+
type: ContentChild,
|
|
997
|
+
args: ['emptyTemplate']
|
|
998
|
+
}], tooltipTemplate: [{
|
|
999
|
+
type: ContentChild,
|
|
1000
|
+
args: ['tooltipTemplate']
|
|
1001
|
+
}], labelTemplate: [{
|
|
1002
|
+
type: ContentChild,
|
|
1003
|
+
args: ['labelTemplate']
|
|
1004
|
+
}] } });
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* NgModule definition for the Rating component.
|
|
1008
|
+
*/
|
|
1009
|
+
class RatingModule {
|
|
1010
|
+
}
|
|
1011
|
+
RatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1012
|
+
RatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingModule, declarations: [RatingComponent], imports: [CommonModule], exports: [RatingComponent] });
|
|
1013
|
+
RatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingModule, imports: [[CommonModule]] });
|
|
1014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingModule, decorators: [{
|
|
1015
|
+
type: NgModule,
|
|
1016
|
+
args: [{
|
|
1017
|
+
imports: [CommonModule],
|
|
1018
|
+
declarations: [
|
|
1019
|
+
RatingComponent
|
|
1020
|
+
],
|
|
1021
|
+
exports: [
|
|
1022
|
+
RatingComponent
|
|
1023
|
+
]
|
|
1024
|
+
}]
|
|
1025
|
+
}] });
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* NgModule definition for the Rating component with providers.
|
|
1029
|
+
*/
|
|
1030
|
+
class RatingAllModule {
|
|
1031
|
+
}
|
|
1032
|
+
RatingAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1033
|
+
RatingAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingAllModule, imports: [CommonModule, RatingModule], exports: [RatingModule] });
|
|
1034
|
+
RatingAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingAllModule, providers: [], imports: [[CommonModule, RatingModule], RatingModule] });
|
|
1035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: RatingAllModule, decorators: [{
|
|
1036
|
+
type: NgModule,
|
|
1037
|
+
args: [{
|
|
1038
|
+
imports: [CommonModule, RatingModule],
|
|
1039
|
+
exports: [
|
|
1040
|
+
RatingModule
|
|
1041
|
+
],
|
|
1042
|
+
providers: []
|
|
1043
|
+
}]
|
|
1044
|
+
}] });
|
|
1045
|
+
|
|
1046
|
+
class FormValidators {
|
|
1047
|
+
//max validation
|
|
1048
|
+
static max(number) {
|
|
1049
|
+
let max = number;
|
|
1050
|
+
return (control) => {
|
|
1051
|
+
//tslint:disable-next-line
|
|
1052
|
+
let result = FormValidator.checkValidator.max({ value: control.value, param: max });
|
|
1053
|
+
if (result === true) {
|
|
1054
|
+
return null;
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
return { 'max': true };
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
// min validation
|
|
1062
|
+
static min(number) {
|
|
1063
|
+
let min = number;
|
|
1064
|
+
return (control) => {
|
|
1065
|
+
//tslint:disable-next-line
|
|
1066
|
+
let result = FormValidator.checkValidator.min({ value: control.value, param: min });
|
|
1067
|
+
if (result === true) {
|
|
1068
|
+
return null;
|
|
1069
|
+
}
|
|
1070
|
+
else {
|
|
1071
|
+
return { 'min': true };
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
// Credit card validation
|
|
1076
|
+
static creditcard(control) {
|
|
1077
|
+
//tslint:disable-next-line
|
|
1078
|
+
let result = FormValidator.checkValidator.creditcard({ value: control.value });
|
|
1079
|
+
if (result === true) {
|
|
1080
|
+
return null;
|
|
1081
|
+
}
|
|
1082
|
+
else {
|
|
1083
|
+
return { 'cardno': true };
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
// date validation
|
|
1087
|
+
static date(control) {
|
|
1088
|
+
//tslint:disable-next-line
|
|
1089
|
+
let result = FormValidator.checkValidator.date({ value: control.value });
|
|
1090
|
+
if (result === true) {
|
|
1091
|
+
return null;
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
return { 'date': true };
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
// Date-ISO validation
|
|
1098
|
+
static dateIso(control) {
|
|
1099
|
+
//tslint:disable-next-line
|
|
1100
|
+
let result = FormValidator.checkValidator.dateIso({ value: control.value });
|
|
1101
|
+
if (result === true) {
|
|
1102
|
+
return null;
|
|
1103
|
+
}
|
|
1104
|
+
else {
|
|
1105
|
+
return { 'dateiso': true };
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
// Digit validation
|
|
1109
|
+
static digits(control) {
|
|
1110
|
+
//tslint:disable-next-line
|
|
1111
|
+
let result = FormValidator.checkValidator.digits({ value: control.value });
|
|
1112
|
+
if (result === true) {
|
|
1113
|
+
return null;
|
|
1114
|
+
}
|
|
1115
|
+
else {
|
|
1116
|
+
return { 'digit': true };
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
// Email validation
|
|
1120
|
+
static email(control) {
|
|
1121
|
+
//tslint:disable-next-line
|
|
1122
|
+
let result = FormValidator.checkValidator.email({ value: control.value });
|
|
1123
|
+
if (result === true) {
|
|
1124
|
+
return null;
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
return { 'email': true };
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
//maxlength validation
|
|
1131
|
+
static maxLength(number) {
|
|
1132
|
+
let maxlength = number;
|
|
1133
|
+
return (control) => {
|
|
1134
|
+
//tslint:disable-next-line
|
|
1135
|
+
let result = FormValidator.checkValidator.maxLength({ value: control.value, param: maxlength });
|
|
1136
|
+
if (result === true) {
|
|
1137
|
+
return null;
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
return { 'maxlength': true };
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
//minlength validation
|
|
1145
|
+
static minLength(number) {
|
|
1146
|
+
let minlength = number;
|
|
1147
|
+
return (control) => {
|
|
1148
|
+
//tslint:disable-next-line
|
|
1149
|
+
let result = FormValidator.checkValidator.minLength({ value: control.value, param: minlength });
|
|
1150
|
+
if (result === true) {
|
|
1151
|
+
return null;
|
|
1152
|
+
}
|
|
1153
|
+
else {
|
|
1154
|
+
return { 'minlength': true };
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
//number validation
|
|
1159
|
+
static number(control) {
|
|
1160
|
+
//tslint:disable-next-line
|
|
1161
|
+
let result = FormValidator.checkValidator.number({ value: control.value });
|
|
1162
|
+
if (result === true) {
|
|
1163
|
+
return null;
|
|
1164
|
+
}
|
|
1165
|
+
else {
|
|
1166
|
+
return { 'number': true };
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
// required validation
|
|
1170
|
+
static required(control) {
|
|
1171
|
+
//tslint:disable-next-line
|
|
1172
|
+
let result = (control.value === null) ? false : FormValidator.checkValidator.required({ value: control.value });
|
|
1173
|
+
if (result === true) {
|
|
1174
|
+
return null;
|
|
1175
|
+
}
|
|
1176
|
+
else {
|
|
1177
|
+
return { 'required': true };
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
// Telephone number validation
|
|
1181
|
+
static tel(control) {
|
|
1182
|
+
//tslint:disable-next-line
|
|
1183
|
+
let result = FormValidator.checkValidator.tel({ value: control.value });
|
|
1184
|
+
if (result === true) {
|
|
1185
|
+
return null;
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1188
|
+
return { 'telno': true };
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
// Url validation
|
|
1192
|
+
static url(control) {
|
|
1193
|
+
//tslint:disable-next-line
|
|
1194
|
+
let result = FormValidator.checkValidator.url({ value: control.value });
|
|
1195
|
+
if (result === true) {
|
|
1196
|
+
return null;
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
return { 'url': true };
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
// RangeLength validation
|
|
1203
|
+
static rangeLength(number1, number2) {
|
|
1204
|
+
let minRL = number1;
|
|
1205
|
+
let maxRL = number2;
|
|
1206
|
+
//tslint:disable-next-line
|
|
1207
|
+
let param = [minRL, maxRL];
|
|
1208
|
+
return (control) => {
|
|
1209
|
+
//tslint:disable-next-line
|
|
1210
|
+
let result = FormValidator.checkValidator.rangeLength({ value: control.value, param: param });
|
|
1211
|
+
if (result === true) {
|
|
1212
|
+
return null;
|
|
1213
|
+
}
|
|
1214
|
+
else {
|
|
1215
|
+
return { 'rangelength': true };
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
// Range validation
|
|
1220
|
+
static range(number1, number2) {
|
|
1221
|
+
let minR = number1;
|
|
1222
|
+
let maxR = number2;
|
|
1223
|
+
//tslint:disable-next-line
|
|
1224
|
+
let param1 = [minR, maxR];
|
|
1225
|
+
return (control) => {
|
|
1226
|
+
//tslint:disable-next-line
|
|
1227
|
+
let result = FormValidator.checkValidator.range({ value: control.value, param: param1 });
|
|
1228
|
+
if (result === true) {
|
|
1229
|
+
return null;
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
return { 'range': true };
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
// Mapping root file for package generation
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* Generated bundle index. Do not edit.
|
|
1242
|
+
*/
|
|
1243
|
+
|
|
1244
|
+
export { ColorPickerAllModule, ColorPickerComponent, ColorPickerModule, FilesDirective, FormValidators, MaskedTextBoxAllModule, MaskedTextBoxComponent, MaskedTextBoxModule, NumericTextBoxAllModule, NumericTextBoxComponent, NumericTextBoxModule, RatingAllModule, RatingComponent, RatingModule, SignatureAllModule, SignatureComponent, SignatureModule, SliderAllModule, SliderComponent, SliderModule, TextBoxAllModule, TextBoxComponent, TextBoxModule, UploadedFilesDirective, UploaderAllModule, UploaderComponent, UploaderModule };
|
|
1245
|
+
//# sourceMappingURL=syncfusion-ej2-angular-inputs.mjs.map
|