@covalent/dynamic-forms 4.0.0-beta.2 → 4.1.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -18
- package/covalent-dynamic-forms.d.ts +1 -1
- package/esm2020/covalent-dynamic-forms.mjs +2 -2
- package/esm2020/lib/dynamic-element.component.mjs +178 -0
- package/esm2020/lib/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.mjs +19 -0
- package/esm2020/lib/dynamic-elements/dynamic-datepicker/dynamic-datepicker.component.mjs +23 -0
- package/esm2020/lib/dynamic-elements/dynamic-file-input/dynamic-file-input.component.mjs +28 -0
- package/esm2020/lib/dynamic-elements/dynamic-input/dynamic-input.component.mjs +22 -0
- package/esm2020/lib/dynamic-elements/dynamic-select/dynamic-select.component.mjs +23 -0
- package/esm2020/lib/dynamic-elements/dynamic-slide-toggle/dynamic-slide-toggle.component.mjs +19 -0
- package/esm2020/lib/dynamic-elements/dynamic-slider/dynamic-slider.component.mjs +26 -0
- package/esm2020/lib/dynamic-elements/dynamic-textarea/dynamic-textarea.component.mjs +22 -0
- package/esm2020/lib/dynamic-forms.component.mjs +185 -0
- package/esm2020/lib/dynamic-forms.module.mjs +127 -0
- package/esm2020/lib/services/dynamic-forms.service.mjs +140 -0
- package/esm2020/public_api.mjs +13 -13
- package/fesm2015/covalent-dynamic-forms.mjs +177 -572
- package/fesm2015/covalent-dynamic-forms.mjs.map +1 -1
- package/fesm2020/covalent-dynamic-forms.mjs +248 -565
- package/fesm2020/covalent-dynamic-forms.mjs.map +1 -1
- package/{dynamic-element.component.d.ts → lib/dynamic-element.component.d.ts} +17 -17
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-checkbox/dynamic-checkbox.component.d.ts +0 -0
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-datepicker/dynamic-datepicker.component.d.ts +3 -3
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-file-input/dynamic-file-input.component.d.ts +1 -1
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-input/dynamic-input.component.d.ts +4 -4
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-select/dynamic-select.component.d.ts +2 -2
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-slide-toggle/dynamic-slide-toggle.component.d.ts +0 -0
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-slider/dynamic-slider.component.d.ts +2 -2
- package/{dynamic-elements → lib/dynamic-elements}/dynamic-textarea/dynamic-textarea.component.d.ts +0 -0
- package/{dynamic-forms.component.d.ts → lib/dynamic-forms.component.d.ts} +1 -1
- package/{dynamic-forms.module.d.ts → lib/dynamic-forms.module.d.ts} +2 -3
- package/{services → lib/services}/dynamic-forms.service.d.ts +2 -2
- package/package.json +17 -19
- package/public_api.d.ts +12 -12
- package/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.scss +0 -0
- package/dynamic-elements/dynamic-datepicker/dynamic-datepicker.component.scss +0 -13
- package/dynamic-elements/dynamic-file-input/dynamic-file-input.component.scss +0 -17
- package/dynamic-elements/dynamic-input/dynamic-input.component.scss +0 -13
- package/dynamic-elements/dynamic-select/dynamic-select.component.scss +0 -13
- package/dynamic-elements/dynamic-slide-toggle/dynamic-slide-toggle.component.scss +0 -0
- package/dynamic-elements/dynamic-slider/dynamic-slider.component.scss +0 -19
- package/dynamic-elements/dynamic-textarea/dynamic-textarea.component.scss +0 -13
- package/dynamic-forms.component.scss +0 -27
- package/esm2020/dynamic-element.component.mjs +0 -220
- package/esm2020/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.mjs +0 -35
- package/esm2020/dynamic-elements/dynamic-datepicker/dynamic-datepicker.component.mjs +0 -58
- package/esm2020/dynamic-elements/dynamic-file-input/dynamic-file-input.component.mjs +0 -84
- package/esm2020/dynamic-elements/dynamic-input/dynamic-input.component.mjs +0 -55
- package/esm2020/dynamic-elements/dynamic-select/dynamic-select.component.mjs +0 -67
- package/esm2020/dynamic-elements/dynamic-slide-toggle/dynamic-slide-toggle.component.mjs +0 -36
- package/esm2020/dynamic-elements/dynamic-slider/dynamic-slider.component.mjs +0 -62
- package/esm2020/dynamic-elements/dynamic-textarea/dynamic-textarea.component.mjs +0 -50
- package/esm2020/dynamic-forms.component.mjs +0 -220
- package/esm2020/dynamic-forms.module.mjs +0 -118
- package/esm2020/index.mjs +0 -2
- package/esm2020/services/dynamic-forms.service.mjs +0 -125
- package/index.d.ts +0 -1
|
@@ -8,212 +8,79 @@ import * as i1 from '@angular/material/form-field';
|
|
|
8
8
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
9
9
|
import * as i2 from '@angular/material/input';
|
|
10
10
|
import { MatInputModule } from '@angular/material/input';
|
|
11
|
-
import * as i2$
|
|
11
|
+
import * as i2$2 from '@angular/material/select';
|
|
12
12
|
import { MatSelectModule } from '@angular/material/select';
|
|
13
13
|
import * as i1$2 from '@angular/material/checkbox';
|
|
14
14
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i1$3 from '@angular/material/slider';
|
|
16
16
|
import { MatSliderModule } from '@angular/material/slider';
|
|
17
17
|
import * as i1$1 from '@angular/material/slide-toggle';
|
|
18
18
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i3$1 from '@angular/material/icon';
|
|
20
20
|
import { MatIconModule } from '@angular/material/icon';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i2$1 from '@angular/material/button';
|
|
22
22
|
import { MatButtonModule } from '@angular/material/button';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i2$3 from '@angular/material/datepicker';
|
|
24
24
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
25
|
-
import
|
|
26
|
-
import * as i2$1 from '@covalent/core/file';
|
|
25
|
+
import * as i4$1 from '@covalent/core/file';
|
|
27
26
|
import { CovalentFileModule } from '@covalent/core/file';
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
27
|
+
import { CdkPortal } from '@angular/cdk/portal';
|
|
28
|
+
import { mixinControlValueAccessor } from '@covalent/core/common';
|
|
29
|
+
import * as i3$2 from '@angular/material/core';
|
|
30
30
|
import { Subject, timer } from 'rxjs';
|
|
31
31
|
import { filter, takeUntil } from 'rxjs/operators';
|
|
32
32
|
|
|
33
|
-
function TdDynamicInputComponent_ng_template_9_Template(rf, ctx) { }
|
|
34
|
-
const _c0$5 = function (a0, a1) { return { control: a0, errors: a1 }; };
|
|
35
33
|
class TdDynamicInputComponent {
|
|
36
34
|
constructor() {
|
|
37
35
|
this.label = '';
|
|
38
36
|
this.hint = '';
|
|
39
|
-
this.
|
|
40
|
-
this.required = undefined;
|
|
37
|
+
this.required = false;
|
|
41
38
|
this.name = '';
|
|
42
|
-
this.min = undefined;
|
|
43
|
-
this.max = undefined;
|
|
44
|
-
this.minLength = undefined;
|
|
45
|
-
this.maxLength = undefined;
|
|
46
|
-
this.errorMessageTemplate = undefined;
|
|
47
39
|
this.placeholder = '';
|
|
48
40
|
}
|
|
49
41
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
54
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
55
|
-
i0.ɵɵelementStart(2, "mat-label");
|
|
56
|
-
i0.ɵɵtext(3);
|
|
57
|
-
i0.ɵɵelementEnd();
|
|
58
|
-
i0.ɵɵelement(4, "input", 2, 3);
|
|
59
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
60
|
-
i0.ɵɵtext(7);
|
|
61
|
-
i0.ɵɵelementEnd();
|
|
62
|
-
i0.ɵɵelementStart(8, "mat-error");
|
|
63
|
-
i0.ɵɵtemplate(9, TdDynamicInputComponent_ng_template_9_Template, 0, 0, "ng-template", 4);
|
|
64
|
-
i0.ɵɵelementEnd();
|
|
65
|
-
i0.ɵɵelementEnd();
|
|
66
|
-
i0.ɵɵelementEnd();
|
|
67
|
-
}
|
|
68
|
-
if (rf & 2) {
|
|
69
|
-
i0.ɵɵadvance(3);
|
|
70
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
71
|
-
i0.ɵɵadvance(1);
|
|
72
|
-
i0.ɵɵproperty("formControl", ctx.control)("placeholder", ctx.placeholder)("type", ctx.type)("required", ctx.required);
|
|
73
|
-
i0.ɵɵattribute("name", ctx.name)("min", ctx.min)("max", ctx.max)("minLength", ctx.minLength)("maxLength", ctx.maxLength);
|
|
74
|
-
i0.ɵɵadvance(3);
|
|
75
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
76
|
-
i0.ɵɵadvance(2);
|
|
77
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.errorMessageTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(13, _c0$5, ctx.control, ctx.control == null ? null : ctx.control.errors));
|
|
78
|
-
}
|
|
79
|
-
}, directives: [i1.MatFormField, i1.MatLabel, i2.MatInput, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator, i1.MatHint, i1.MatError, i4.NgTemplateOutlet], styles: [".td-dynamic-input-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-input-wrapper[_ngcontent-%COMP%] .td-dynamic-input-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}"] });
|
|
80
|
-
(function () {
|
|
81
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicInputComponent, [{
|
|
42
|
+
TdDynamicInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
TdDynamicInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicInputComponent, selector: "td-dynamic-input", ngImport: i0, template: "<div class=\"td-dynamic-input-wrapper\">\n <mat-form-field class=\"td-dynamic-input-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [type]=\"type\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [attr.min]=\"min\"\n [attr.max]=\"max\"\n [attr.minLength]=\"minLength\"\n [attr.maxLength]=\"maxLength\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-input-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-input-wrapper .td-dynamic-input-field{flex:1;box-sizing:border-box}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i1.MatLabel, selector: "mat-label" }, { type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicInputComponent, decorators: [{
|
|
82
45
|
type: Component,
|
|
83
|
-
args: [{ selector: 'td-dynamic-input', template: "<div class=\"td-dynamic-input-wrapper\">\n <mat-form-field class=\"td-dynamic-input-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [type]=\"type\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [attr.min]=\"min\"\n [attr.max]=\"max\"\n [attr.minLength]=\"minLength\"\n [attr.maxLength]=\"maxLength\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{
|
|
84
|
-
}]
|
|
85
|
-
})();
|
|
46
|
+
args: [{ selector: 'td-dynamic-input', template: "<div class=\"td-dynamic-input-wrapper\">\n <mat-form-field class=\"td-dynamic-input-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [type]=\"type\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [attr.min]=\"min\"\n [attr.max]=\"max\"\n [attr.minLength]=\"minLength\"\n [attr.maxLength]=\"maxLength\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-input-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-input-wrapper .td-dynamic-input-field{flex:1;box-sizing:border-box}\n"] }]
|
|
47
|
+
}] });
|
|
86
48
|
|
|
87
|
-
function TdDynamicFileInputComponent_ng_template_8_Template(rf, ctx) { }
|
|
88
|
-
function TdDynamicFileInputComponent_button_9_Template(rf, ctx) {
|
|
89
|
-
if (rf & 1) {
|
|
90
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
91
|
-
i0.ɵɵelementStart(0, "button", 7);
|
|
92
|
-
i0.ɵɵlistener("click", function TdDynamicFileInputComponent_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); i0.ɵɵnextContext(); const _r2 = i0.ɵɵreference(11); return _r2.clear(); })("keyup.enter", function TdDynamicFileInputComponent_button_9_Template_button_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r4); i0.ɵɵnextContext(); const _r2 = i0.ɵɵreference(11); return _r2.clear(); });
|
|
93
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
94
|
-
i0.ɵɵtext(2, "cancel");
|
|
95
|
-
i0.ɵɵelementEnd();
|
|
96
|
-
i0.ɵɵelementEnd();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
const _c0$4 = function (a0, a1) { return { control: a0, errors: a1 }; };
|
|
100
49
|
class TdDynamicFileInputComponent {
|
|
101
50
|
constructor() {
|
|
102
|
-
this.required =
|
|
51
|
+
this.required = false;
|
|
103
52
|
this.label = '';
|
|
104
53
|
this.name = '';
|
|
105
54
|
this.hint = '';
|
|
106
|
-
this.errorMessageTemplate = undefined;
|
|
107
55
|
this.placeholder = '';
|
|
108
56
|
}
|
|
109
57
|
_handlefileDrop(value) {
|
|
110
|
-
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = this.control) === null || _a === void 0 ? void 0 : _a.setValue(value);
|
|
111
60
|
}
|
|
112
61
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
117
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
118
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
119
|
-
i0.ɵɵlistener("fileDrop", function TdDynamicFileInputComponent_Template_mat_form_field_fileDrop_1_listener($event) { return ctx._handlefileDrop($event); })("click", function TdDynamicFileInputComponent_Template_mat_form_field_click_1_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(11); return !(ctx.control == null ? null : ctx.control.disabled) && _r2.inputElement.click(); })("keyup.enter", function TdDynamicFileInputComponent_Template_mat_form_field_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(11); return !(ctx.control == null ? null : ctx.control.disabled) && _r2.inputElement.click(); })("keyup.delete", function TdDynamicFileInputComponent_Template_mat_form_field_keyup_delete_1_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(11); return _r2.clear(); })("keyup.backspace", function TdDynamicFileInputComponent_Template_mat_form_field_keyup_backspace_1_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(11); return _r2.clear(); });
|
|
120
|
-
i0.ɵɵelementStart(2, "mat-label");
|
|
121
|
-
i0.ɵɵtext(3);
|
|
122
|
-
i0.ɵɵelementEnd();
|
|
123
|
-
i0.ɵɵelement(4, "input", 2);
|
|
124
|
-
i0.ɵɵelementStart(5, "mat-hint");
|
|
125
|
-
i0.ɵɵtext(6);
|
|
126
|
-
i0.ɵɵelementEnd();
|
|
127
|
-
i0.ɵɵelementStart(7, "mat-error");
|
|
128
|
-
i0.ɵɵtemplate(8, TdDynamicFileInputComponent_ng_template_8_Template, 0, 0, "ng-template", 3);
|
|
129
|
-
i0.ɵɵelementEnd();
|
|
130
|
-
i0.ɵɵelementEnd();
|
|
131
|
-
i0.ɵɵtemplate(9, TdDynamicFileInputComponent_button_9_Template, 3, 0, "button", 4);
|
|
132
|
-
i0.ɵɵelementStart(10, "td-file-input", 5, 6);
|
|
133
|
-
i0.ɵɵelementStart(12, "mat-icon");
|
|
134
|
-
i0.ɵɵtext(13, "folder");
|
|
135
|
-
i0.ɵɵelementEnd();
|
|
136
|
-
i0.ɵɵelementStart(14, "span");
|
|
137
|
-
i0.ɵɵtext(15);
|
|
138
|
-
i0.ɵɵelementEnd();
|
|
139
|
-
i0.ɵɵelementEnd();
|
|
140
|
-
i0.ɵɵelementEnd();
|
|
141
|
-
}
|
|
142
|
-
if (rf & 2) {
|
|
143
|
-
i0.ɵɵadvance(1);
|
|
144
|
-
i0.ɵɵproperty("disabled", ctx.control == null ? null : ctx.control.disabled);
|
|
145
|
-
i0.ɵɵadvance(2);
|
|
146
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
147
|
-
i0.ɵɵadvance(1);
|
|
148
|
-
i0.ɵɵproperty("value", ctx.control == null ? null : ctx.control.value == null ? null : ctx.control.value.name)("placeholder", ctx.placeholder)("disabled", ctx.control == null ? null : ctx.control.disabled);
|
|
149
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
150
|
-
i0.ɵɵadvance(2);
|
|
151
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
152
|
-
i0.ɵɵadvance(2);
|
|
153
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.errorMessageTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(12, _c0$4, ctx.control, ctx.control == null ? null : ctx.control.errors));
|
|
154
|
-
i0.ɵɵadvance(1);
|
|
155
|
-
i0.ɵɵproperty("ngIf", ctx.control.value);
|
|
156
|
-
i0.ɵɵadvance(1);
|
|
157
|
-
i0.ɵɵproperty("formControl", ctx.control);
|
|
158
|
-
i0.ɵɵadvance(5);
|
|
159
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
160
|
-
}
|
|
161
|
-
}, directives: [i1.MatFormField, i2$1.TdFileDropDirective, i1.MatLabel, i2.MatInput, i1.MatHint, i1.MatError, i4.NgTemplateOutlet, i4.NgIf, i5.MatButton, i6.MatIcon, i2$1.TdFileInputComponent, i3.NgControlStatus, i3.FormControlDirective], styles: [".td-dynamic-file-input-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-file-input-wrapper[_ngcontent-%COMP%] .td-dynamic-file-input-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}.td-file-input[_ngcontent-%COMP%]{margin-left:10px}"] });
|
|
162
|
-
(function () {
|
|
163
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicFileInputComponent, [{
|
|
62
|
+
TdDynamicFileInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
TdDynamicFileInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicFileInputComponent, selector: "td-dynamic-file-input", ngImport: i0, template: "<div class=\"td-dynamic-file-input-wrapper\">\n <mat-form-field\n tdFileDrop\n class=\"td-dynamic-file-input-field\"\n floatLabel=\"never\"\n [disabled]=\"control?.disabled\"\n (fileDrop)=\"_handlefileDrop($event)\"\n (click)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.enter)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.delete)=\"fileInput.clear()\"\n (keyup.backspace)=\"fileInput.clear()\"\n >\n <mat-label>{{ label }}</mat-label>\n <input\n matInput\n [value]=\"control?.value?.name\"\n [placeholder]=\"placeholder\"\n [attr.name]=\"name\"\n [disabled]=\"control?.disabled\"\n readonly\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n <button\n mat-icon-button\n *ngIf=\"control.value\"\n (click)=\"fileInput.clear()\"\n (keyup.enter)=\"fileInput.clear()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n <td-file-input class=\"td-file-input\" #fileInput [formControl]=\"control\">\n <mat-icon>folder</mat-icon>\n <span>{{ label }}</span>\n </td-file-input>\n</div>\n", styles: [".td-dynamic-file-input-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-file-input-wrapper .td-dynamic-file-input-field{flex:1;box-sizing:border-box}.td-file-input{margin-left:10px}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$1.TdFileInputComponent, selector: "td-file-input", inputs: ["disabled", "value", "color", "multiple", "accept"], outputs: ["selectFile"] }], directives: [{ type: i4$1.TdFileDropDirective, selector: "[tdFileDrop]", inputs: ["multiple", "disabled"], outputs: ["fileDrop"] }, { type: i1.MatLabel, selector: "mat-label" }, { type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFileInputComponent, decorators: [{
|
|
164
65
|
type: Component,
|
|
165
|
-
args: [{ selector: 'td-dynamic-file-input', template: "<div class=\"td-dynamic-file-input-wrapper\">\n <mat-form-field\n tdFileDrop\n class=\"td-dynamic-file-input-field\"\n floatLabel=\"never\"\n [disabled]=\"control?.disabled\"\n (fileDrop)=\"_handlefileDrop($event)\"\n (click)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.enter)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.delete)=\"fileInput.clear()\"\n (keyup.backspace)=\"fileInput.clear()\"\n >\n <mat-label>{{ label }}</mat-label>\n <input\n matInput\n [value]=\"control?.value?.name\"\n [placeholder]=\"placeholder\"\n [attr.name]=\"name\"\n [disabled]=\"control?.disabled\"\n readonly\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{
|
|
166
|
-
}]
|
|
167
|
-
})();
|
|
66
|
+
args: [{ selector: 'td-dynamic-file-input', template: "<div class=\"td-dynamic-file-input-wrapper\">\n <mat-form-field\n tdFileDrop\n class=\"td-dynamic-file-input-field\"\n floatLabel=\"never\"\n [disabled]=\"control?.disabled\"\n (fileDrop)=\"_handlefileDrop($event)\"\n (click)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.enter)=\"!control?.disabled && fileInput.inputElement.click()\"\n (keyup.delete)=\"fileInput.clear()\"\n (keyup.backspace)=\"fileInput.clear()\"\n >\n <mat-label>{{ label }}</mat-label>\n <input\n matInput\n [value]=\"control?.value?.name\"\n [placeholder]=\"placeholder\"\n [attr.name]=\"name\"\n [disabled]=\"control?.disabled\"\n readonly\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n <button\n mat-icon-button\n *ngIf=\"control.value\"\n (click)=\"fileInput.clear()\"\n (keyup.enter)=\"fileInput.clear()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n <td-file-input class=\"td-file-input\" #fileInput [formControl]=\"control\">\n <mat-icon>folder</mat-icon>\n <span>{{ label }}</span>\n </td-file-input>\n</div>\n", styles: [".td-dynamic-file-input-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-file-input-wrapper .td-dynamic-file-input-field{flex:1;box-sizing:border-box}.td-file-input{margin-left:10px}\n"] }]
|
|
67
|
+
}] });
|
|
168
68
|
|
|
169
|
-
function TdDynamicTextareaComponent_ng_template_9_Template(rf, ctx) { }
|
|
170
|
-
const _c0$3 = function (a0, a1) { return { control: a0, errors: a1 }; };
|
|
171
69
|
class TdDynamicTextareaComponent {
|
|
172
70
|
constructor() {
|
|
173
71
|
this.label = '';
|
|
174
72
|
this.hint = '';
|
|
175
73
|
this.name = '';
|
|
176
|
-
this.required =
|
|
177
|
-
this.errorMessageTemplate = undefined;
|
|
74
|
+
this.required = false;
|
|
178
75
|
this.placeholder = '';
|
|
179
76
|
}
|
|
180
77
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
185
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
186
|
-
i0.ɵɵelementStart(2, "mat-label");
|
|
187
|
-
i0.ɵɵtext(3);
|
|
188
|
-
i0.ɵɵelementEnd();
|
|
189
|
-
i0.ɵɵelement(4, "textarea", 2, 3);
|
|
190
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
191
|
-
i0.ɵɵtext(7);
|
|
192
|
-
i0.ɵɵelementEnd();
|
|
193
|
-
i0.ɵɵelementStart(8, "mat-error");
|
|
194
|
-
i0.ɵɵtemplate(9, TdDynamicTextareaComponent_ng_template_9_Template, 0, 0, "ng-template", 4);
|
|
195
|
-
i0.ɵɵelementEnd();
|
|
196
|
-
i0.ɵɵelementEnd();
|
|
197
|
-
i0.ɵɵelementEnd();
|
|
198
|
-
}
|
|
199
|
-
if (rf & 2) {
|
|
200
|
-
i0.ɵɵadvance(3);
|
|
201
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
202
|
-
i0.ɵɵadvance(1);
|
|
203
|
-
i0.ɵɵproperty("formControl", ctx.control)("placeholder", ctx.placeholder)("required", ctx.required);
|
|
204
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
205
|
-
i0.ɵɵadvance(3);
|
|
206
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
207
|
-
i0.ɵɵadvance(2);
|
|
208
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.errorMessageTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(8, _c0$3, ctx.control, ctx.control == null ? null : ctx.control.errors));
|
|
209
|
-
}
|
|
210
|
-
}, directives: [i1.MatFormField, i1.MatLabel, i2.MatInput, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator, i1.MatHint, i1.MatError, i4.NgTemplateOutlet], styles: [".td-dynamic-textarea-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-textarea-wrapper[_ngcontent-%COMP%] .td-dynamic-textarea-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}"] });
|
|
211
|
-
(function () {
|
|
212
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicTextareaComponent, [{
|
|
78
|
+
TdDynamicTextareaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
+
TdDynamicTextareaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicTextareaComponent, selector: "td-dynamic-textarea", ngImport: i0, template: "<div class=\"td-dynamic-textarea-wrapper\">\n <mat-form-field class=\"td-dynamic-textarea-field\">\n <mat-label>{{ label }}</mat-label>\n <textarea\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n rows=\"4\"\n ></textarea>\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-textarea-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-textarea-wrapper .td-dynamic-textarea-field{flex:1;box-sizing:border-box}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i1.MatLabel, selector: "mat-label" }, { type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicTextareaComponent, decorators: [{
|
|
213
81
|
type: Component,
|
|
214
|
-
args: [{ selector: 'td-dynamic-textarea', template: "<div class=\"td-dynamic-textarea-wrapper\">\n <mat-form-field class=\"td-dynamic-textarea-field\">\n <mat-label>{{ label }}</mat-label>\n <textarea\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n rows=\"4\"\n ></textarea>\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{
|
|
215
|
-
}]
|
|
216
|
-
})();
|
|
82
|
+
args: [{ selector: 'td-dynamic-textarea', template: "<div class=\"td-dynamic-textarea-wrapper\">\n <mat-form-field class=\"td-dynamic-textarea-field\">\n <mat-label>{{ label }}</mat-label>\n <textarea\n #elementInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n rows=\"4\"\n ></textarea>\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-textarea-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-textarea-wrapper .td-dynamic-textarea-field{flex:1;box-sizing:border-box}\n"] }]
|
|
83
|
+
}] });
|
|
217
84
|
|
|
218
85
|
class TdDynamicSlideToggleComponent {
|
|
219
86
|
constructor() {
|
|
@@ -223,34 +90,12 @@ class TdDynamicSlideToggleComponent {
|
|
|
223
90
|
this.required = false;
|
|
224
91
|
}
|
|
225
92
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
230
|
-
i0.ɵɵelementStart(1, "mat-slide-toggle", 1);
|
|
231
|
-
i0.ɵɵtext(2);
|
|
232
|
-
i0.ɵɵelementEnd();
|
|
233
|
-
i0.ɵɵelementStart(3, "span", 2);
|
|
234
|
-
i0.ɵɵtext(4);
|
|
235
|
-
i0.ɵɵelementEnd();
|
|
236
|
-
i0.ɵɵelementEnd();
|
|
237
|
-
}
|
|
238
|
-
if (rf & 2) {
|
|
239
|
-
i0.ɵɵadvance(1);
|
|
240
|
-
i0.ɵɵproperty("formControl", ctx.control)("required", ctx.required);
|
|
241
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
242
|
-
i0.ɵɵadvance(1);
|
|
243
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
244
|
-
i0.ɵɵadvance(2);
|
|
245
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
246
|
-
}
|
|
247
|
-
}, directives: [i1$1.MatSlideToggle, i1$1.MatSlideToggleRequiredValidator, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator], styles: [""] });
|
|
248
|
-
(function () {
|
|
249
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicSlideToggleComponent, [{
|
|
93
|
+
TdDynamicSlideToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
94
|
+
TdDynamicSlideToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicSlideToggleComponent, selector: "td-dynamic-slide-toggle", ngImport: i0, template: "<div class=\"td-dynamic-slide-toggle-wrapper\">\n <mat-slide-toggle\n [formControl]=\"control\"\n [attr.name]=\"name\"\n [required]=\"required\"\n >\n {{ label }}\n </mat-slide-toggle>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [""], components: [{ type: i1$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i1$1.MatSlideToggleRequiredValidator, selector: "mat-slide-toggle[required][formControlName], mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSlideToggleComponent, decorators: [{
|
|
250
96
|
type: Component,
|
|
251
|
-
args: [{ selector: 'td-dynamic-slide-toggle', template: "<div class=\"td-dynamic-slide-toggle-wrapper\">\n <mat-slide-toggle
|
|
252
|
-
}]
|
|
253
|
-
})();
|
|
97
|
+
args: [{ selector: 'td-dynamic-slide-toggle', template: "<div class=\"td-dynamic-slide-toggle-wrapper\">\n <mat-slide-toggle\n [formControl]=\"control\"\n [attr.name]=\"name\"\n [required]=\"required\"\n >\n {{ label }}\n </mat-slide-toggle>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [""] }]
|
|
98
|
+
}] });
|
|
254
99
|
|
|
255
100
|
class TdDynamicCheckboxComponent {
|
|
256
101
|
constructor() {
|
|
@@ -260,50 +105,20 @@ class TdDynamicCheckboxComponent {
|
|
|
260
105
|
this.required = false;
|
|
261
106
|
}
|
|
262
107
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
267
|
-
i0.ɵɵelementStart(1, "mat-checkbox", 1);
|
|
268
|
-
i0.ɵɵtext(2);
|
|
269
|
-
i0.ɵɵelementEnd();
|
|
270
|
-
i0.ɵɵelementStart(3, "span", 2);
|
|
271
|
-
i0.ɵɵtext(4);
|
|
272
|
-
i0.ɵɵelementEnd();
|
|
273
|
-
i0.ɵɵelementEnd();
|
|
274
|
-
}
|
|
275
|
-
if (rf & 2) {
|
|
276
|
-
i0.ɵɵadvance(1);
|
|
277
|
-
i0.ɵɵproperty("formControl", ctx.control)("name", ctx.name)("required", ctx.required);
|
|
278
|
-
i0.ɵɵadvance(1);
|
|
279
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
280
|
-
i0.ɵɵadvance(2);
|
|
281
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
282
|
-
}
|
|
283
|
-
}, directives: [i1$2.MatCheckbox, i1$2.MatCheckboxRequiredValidator, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator], styles: [""] });
|
|
284
|
-
(function () {
|
|
285
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicCheckboxComponent, [{
|
|
108
|
+
TdDynamicCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
TdDynamicCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicCheckboxComponent, selector: "td-dynamic-checkbox", ngImport: i0, template: "<div class=\"td-dynamic-checkbox-wrapper\">\n <mat-checkbox [formControl]=\"control\" [name]=\"name\" [required]=\"required\">\n {{ label }}\n </mat-checkbox>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [""], components: [{ type: i1$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i1$2.MatCheckboxRequiredValidator, selector: "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicCheckboxComponent, decorators: [{
|
|
286
111
|
type: Component,
|
|
287
112
|
args: [{ selector: 'td-dynamic-checkbox', template: "<div class=\"td-dynamic-checkbox-wrapper\">\n <mat-checkbox [formControl]=\"control\" [name]=\"name\" [required]=\"required\">\n {{ label }}\n </mat-checkbox>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [""] }]
|
|
288
|
-
}]
|
|
289
|
-
})();
|
|
113
|
+
}] });
|
|
290
114
|
|
|
291
|
-
function TdDynamicSliderComponent_span_4_Template(rf, ctx) {
|
|
292
|
-
if (rf & 1) {
|
|
293
|
-
i0.ɵɵelementStart(0, "span", 8);
|
|
294
|
-
i0.ɵɵtext(1, "*");
|
|
295
|
-
i0.ɵɵelementEnd();
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
115
|
class TdDynamicSliderComponent {
|
|
299
116
|
constructor(_changeDetectorRef) {
|
|
300
117
|
this._changeDetectorRef = _changeDetectorRef;
|
|
301
118
|
this.label = '';
|
|
302
|
-
this.required =
|
|
119
|
+
this.required = false;
|
|
303
120
|
this.name = '';
|
|
304
121
|
this.hint = '';
|
|
305
|
-
this.min = undefined;
|
|
306
|
-
this.max = undefined;
|
|
307
122
|
}
|
|
308
123
|
_handleBlur() {
|
|
309
124
|
setTimeout(() => {
|
|
@@ -311,170 +126,44 @@ class TdDynamicSliderComponent {
|
|
|
311
126
|
});
|
|
312
127
|
}
|
|
313
128
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
318
|
-
i0.ɵɵelementStart(1, "span", 1);
|
|
319
|
-
i0.ɵɵelementStart(2, "label", 2);
|
|
320
|
-
i0.ɵɵtext(3);
|
|
321
|
-
i0.ɵɵtemplate(4, TdDynamicSliderComponent_span_4_Template, 2, 0, "span", 3);
|
|
322
|
-
i0.ɵɵelementEnd();
|
|
323
|
-
i0.ɵɵelementEnd();
|
|
324
|
-
i0.ɵɵelementStart(5, "div", 4);
|
|
325
|
-
i0.ɵɵelementStart(6, "mat-slider", 5, 6);
|
|
326
|
-
i0.ɵɵlistener("blur", function TdDynamicSliderComponent_Template_mat_slider_blur_6_listener() { return ctx._handleBlur(); });
|
|
327
|
-
i0.ɵɵelementEnd();
|
|
328
|
-
i0.ɵɵelementEnd();
|
|
329
|
-
i0.ɵɵelementStart(8, "span", 7);
|
|
330
|
-
i0.ɵɵtext(9);
|
|
331
|
-
i0.ɵɵelementEnd();
|
|
332
|
-
i0.ɵɵelementEnd();
|
|
333
|
-
}
|
|
334
|
-
if (rf & 2) {
|
|
335
|
-
const _r1 = i0.ɵɵreference(7);
|
|
336
|
-
i0.ɵɵclassProp("mat-focused", _r1._isActive);
|
|
337
|
-
i0.ɵɵadvance(3);
|
|
338
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
339
|
-
i0.ɵɵadvance(1);
|
|
340
|
-
i0.ɵɵproperty("ngIf", ctx.required && !(ctx.control == null ? null : ctx.control.disabled));
|
|
341
|
-
i0.ɵɵadvance(2);
|
|
342
|
-
i0.ɵɵproperty("formControl", ctx.control)("min", ctx.min)("max", ctx.max)("required", ctx.required);
|
|
343
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
344
|
-
i0.ɵɵadvance(3);
|
|
345
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
346
|
-
}
|
|
347
|
-
}, directives: [i4.NgIf, i2$2.MatSlider, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator], styles: ["[_nghost-%COMP%] .td-dynamic-slider-wrapper[_ngcontent-%COMP%]{display:block}.td-dynamic-slider-field[_ngcontent-%COMP%]{position:relative;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-slider-field[_ngcontent-%COMP%] .td-dynamic-slider[_ngcontent-%COMP%]{-ms-flex:1;flex:1}"] });
|
|
348
|
-
(function () {
|
|
349
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicSliderComponent, [{
|
|
129
|
+
TdDynamicSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSliderComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
TdDynamicSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicSliderComponent, selector: "td-dynamic-slider", ngImport: i0, template: "<div\n class=\"td-dynamic-slider-wrapper mat-form-field mat-form-field-can-float mat-form-field-should-float\"\n [class.mat-focused]=\"slider._isActive\"\n>\n <span class=\"mat-form-field-label-wrapper\">\n <label class=\"mat-form-field-label mat-primary td-slider-label\">\n {{ label }}\n <span\n *ngIf=\"required && !control?.disabled\"\n class=\"mat-form-field-required-marker\"\n >*</span\n >\n </label>\n </span>\n <div class=\"td-dynamic-slider-field\">\n <mat-slider\n #slider\n class=\"td-dynamic-slider\"\n [formControl]=\"control\"\n [attr.name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n thumbLabel\n tickInterval=\"auto\"\n [required]=\"required\"\n (blur)=\"_handleBlur()\"\n ></mat-slider>\n </div>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [":host .td-dynamic-slider-wrapper{display:block}.td-dynamic-slider-field{position:relative;flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-slider-field .td-dynamic-slider{flex:1}\n"], components: [{ type: i1$3.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSliderComponent, decorators: [{
|
|
350
132
|
type: Component,
|
|
351
|
-
args: [{ selector: 'td-dynamic-slider', template: "<div\n class=\"td-dynamic-slider-wrapper mat-form-field mat-form-field-can-float mat-form-field-should-float\"\n [class.mat-focused]=\"slider._isActive\"\n>\n <span class=\"mat-form-field-label-wrapper\">\n <label class=\"mat-form-field-label mat-primary td-slider-label\">\n {{ label }}\n <span
|
|
352
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }
|
|
353
|
-
})();
|
|
133
|
+
args: [{ selector: 'td-dynamic-slider', template: "<div\n class=\"td-dynamic-slider-wrapper mat-form-field mat-form-field-can-float mat-form-field-should-float\"\n [class.mat-focused]=\"slider._isActive\"\n>\n <span class=\"mat-form-field-label-wrapper\">\n <label class=\"mat-form-field-label mat-primary td-slider-label\">\n {{ label }}\n <span\n *ngIf=\"required && !control?.disabled\"\n class=\"mat-form-field-required-marker\"\n >*</span\n >\n </label>\n </span>\n <div class=\"td-dynamic-slider-field\">\n <mat-slider\n #slider\n class=\"td-dynamic-slider\"\n [formControl]=\"control\"\n [attr.name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n thumbLabel\n tickInterval=\"auto\"\n [required]=\"required\"\n (blur)=\"_handleBlur()\"\n ></mat-slider>\n </div>\n <span class=\"mat-hint td-dynamic-element-hint\">{{ hint }}</span>\n</div>\n", styles: [":host .td-dynamic-slider-wrapper{display:block}.td-dynamic-slider-field{position:relative;flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-slider-field .td-dynamic-slider{flex:1}\n"] }]
|
|
134
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
354
135
|
|
|
355
|
-
function TdDynamicSelectComponent_mat_option_5_Template(rf, ctx) {
|
|
356
|
-
if (rf & 1) {
|
|
357
|
-
i0.ɵɵelementStart(0, "mat-option", 5);
|
|
358
|
-
i0.ɵɵtext(1);
|
|
359
|
-
i0.ɵɵelementEnd();
|
|
360
|
-
}
|
|
361
|
-
if (rf & 2) {
|
|
362
|
-
const selection_r2 = ctx.$implicit;
|
|
363
|
-
i0.ɵɵproperty("value", selection_r2.value || selection_r2);
|
|
364
|
-
i0.ɵɵadvance(1);
|
|
365
|
-
i0.ɵɵtextInterpolate1(" ", selection_r2.label || selection_r2, " ");
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
function TdDynamicSelectComponent_ng_template_9_Template(rf, ctx) { }
|
|
369
|
-
const _c0$2 = function (a0, a1) { return { control: a0, errors: a1 }; };
|
|
370
136
|
class TdDynamicSelectComponent {
|
|
371
137
|
constructor() {
|
|
372
138
|
this.label = '';
|
|
373
139
|
this.hint = '';
|
|
374
140
|
this.name = '';
|
|
375
|
-
this.required =
|
|
376
|
-
this.selections = undefined;
|
|
377
|
-
this.multiple = undefined;
|
|
378
|
-
this.errorMessageTemplate = undefined;
|
|
141
|
+
this.required = false;
|
|
379
142
|
this.placeholder = '';
|
|
380
143
|
}
|
|
381
144
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
386
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
387
|
-
i0.ɵɵelementStart(2, "mat-label");
|
|
388
|
-
i0.ɵɵtext(3);
|
|
389
|
-
i0.ɵɵelementEnd();
|
|
390
|
-
i0.ɵɵelementStart(4, "mat-select", 2);
|
|
391
|
-
i0.ɵɵtemplate(5, TdDynamicSelectComponent_mat_option_5_Template, 2, 2, "mat-option", 3);
|
|
392
|
-
i0.ɵɵelementEnd();
|
|
393
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
394
|
-
i0.ɵɵtext(7);
|
|
395
|
-
i0.ɵɵelementEnd();
|
|
396
|
-
i0.ɵɵelementStart(8, "mat-error");
|
|
397
|
-
i0.ɵɵtemplate(9, TdDynamicSelectComponent_ng_template_9_Template, 0, 0, "ng-template", 4);
|
|
398
|
-
i0.ɵɵelementEnd();
|
|
399
|
-
i0.ɵɵelementEnd();
|
|
400
|
-
i0.ɵɵelementEnd();
|
|
401
|
-
}
|
|
402
|
-
if (rf & 2) {
|
|
403
|
-
i0.ɵɵadvance(3);
|
|
404
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
405
|
-
i0.ɵɵadvance(1);
|
|
406
|
-
i0.ɵɵproperty("formControl", ctx.control)("placeholder", ctx.placeholder)("required", ctx.required)("multiple", ctx.multiple);
|
|
407
|
-
i0.ɵɵattribute("name", ctx.name);
|
|
408
|
-
i0.ɵɵadvance(1);
|
|
409
|
-
i0.ɵɵproperty("ngForOf", ctx.selections);
|
|
410
|
-
i0.ɵɵadvance(2);
|
|
411
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
412
|
-
i0.ɵɵadvance(2);
|
|
413
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.errorMessageTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(10, _c0$2, ctx.control, ctx.control == null ? null : ctx.control.errors));
|
|
414
|
-
}
|
|
415
|
-
}, directives: [i1.MatFormField, i1.MatLabel, i2$3.MatSelect, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator, i4.NgForOf, i5$1.MatOption, i1.MatHint, i1.MatError, i4.NgTemplateOutlet], styles: [".td-dynamic-select-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-select-wrapper[_ngcontent-%COMP%] .td-dynamic-select-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}"] });
|
|
416
|
-
(function () {
|
|
417
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicSelectComponent, [{
|
|
145
|
+
TdDynamicSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
146
|
+
TdDynamicSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicSelectComponent, selector: "td-dynamic-select", ngImport: i0, template: "<div class=\"td-dynamic-select-wrapper\">\n <mat-form-field class=\"td-dynamic-select-field\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [multiple]=\"multiple\"\n >\n <mat-option\n *ngFor=\"let selection of selections\"\n [value]=\"selection.value || selection\"\n >\n {{ selection.label || selection }}\n </mat-option>\n </mat-select>\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-select-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-select-wrapper .td-dynamic-select-field{flex:1;box-sizing:border-box}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2$2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3$2.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1.MatLabel, selector: "mat-label" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicSelectComponent, decorators: [{
|
|
418
148
|
type: Component,
|
|
419
|
-
args: [{ selector: 'td-dynamic-select', template: "<div class=\"td-dynamic-select-wrapper\">\n <mat-form-field class=\"td-dynamic-select-field\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [multiple]=\"multiple\"\n >\n <mat-option
|
|
420
|
-
}]
|
|
421
|
-
})();
|
|
149
|
+
args: [{ selector: 'td-dynamic-select', template: "<div class=\"td-dynamic-select-wrapper\">\n <mat-form-field class=\"td-dynamic-select-field\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [attr.name]=\"name\"\n [multiple]=\"multiple\"\n >\n <mat-option\n *ngFor=\"let selection of selections\"\n [value]=\"selection.value || selection\"\n >\n {{ selection.label || selection }}\n </mat-option>\n </mat-select>\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-select-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-select-wrapper .td-dynamic-select-field{flex:1;box-sizing:border-box}\n"] }]
|
|
150
|
+
}] });
|
|
422
151
|
|
|
423
|
-
function TdDynamicDatepickerComponent_ng_template_9_Template(rf, ctx) { }
|
|
424
|
-
const _c0$1 = function (a0, a1) { return { control: a0, errors: a1 }; };
|
|
425
152
|
class TdDynamicDatepickerComponent {
|
|
426
153
|
constructor() {
|
|
427
154
|
this.label = '';
|
|
428
155
|
this.hint = '';
|
|
429
156
|
this.name = '';
|
|
430
|
-
this.
|
|
431
|
-
this.required = undefined;
|
|
432
|
-
this.min = undefined;
|
|
433
|
-
this.max = undefined;
|
|
434
|
-
this.errorMessageTemplate = undefined;
|
|
157
|
+
this.required = false;
|
|
435
158
|
this.placeholder = '';
|
|
436
159
|
}
|
|
437
160
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
442
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
443
|
-
i0.ɵɵelementStart(2, "mat-label");
|
|
444
|
-
i0.ɵɵtext(3);
|
|
445
|
-
i0.ɵɵelementEnd();
|
|
446
|
-
i0.ɵɵelement(4, "input", 2, 3);
|
|
447
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
448
|
-
i0.ɵɵtext(7);
|
|
449
|
-
i0.ɵɵelementEnd();
|
|
450
|
-
i0.ɵɵelementStart(8, "mat-error");
|
|
451
|
-
i0.ɵɵtemplate(9, TdDynamicDatepickerComponent_ng_template_9_Template, 0, 0, "ng-template", 4);
|
|
452
|
-
i0.ɵɵelementEnd();
|
|
453
|
-
i0.ɵɵelement(10, "mat-datepicker-toggle", 5);
|
|
454
|
-
i0.ɵɵelement(11, "mat-datepicker", null, 6);
|
|
455
|
-
i0.ɵɵelementEnd();
|
|
456
|
-
i0.ɵɵelementEnd();
|
|
457
|
-
}
|
|
458
|
-
if (rf & 2) {
|
|
459
|
-
const _r2 = i0.ɵɵreference(12);
|
|
460
|
-
i0.ɵɵadvance(3);
|
|
461
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
462
|
-
i0.ɵɵadvance(1);
|
|
463
|
-
i0.ɵɵproperty("matDatepicker", _r2)("formControl", ctx.control)("placeholder", ctx.placeholder)("required", ctx.required)("name", ctx.name)("min", ctx.min)("max", ctx.max);
|
|
464
|
-
i0.ɵɵadvance(3);
|
|
465
|
-
i0.ɵɵtextInterpolate(ctx.hint);
|
|
466
|
-
i0.ɵɵadvance(2);
|
|
467
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.errorMessageTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(12, _c0$1, ctx.control, ctx.control == null ? null : ctx.control.errors));
|
|
468
|
-
i0.ɵɵadvance(1);
|
|
469
|
-
i0.ɵɵproperty("for", _r2);
|
|
470
|
-
}
|
|
471
|
-
}, directives: [i1.MatFormField, i1.MatLabel, i2.MatInput, i3$1.MatDatepickerInput, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i3.RequiredValidator, i1.MatHint, i1.MatError, i4.NgTemplateOutlet, i3$1.MatDatepickerToggle, i1.MatSuffix, i3$1.MatDatepicker], styles: [".td-dynamic-datepicker-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;box-sizing:border-box}.td-dynamic-datepicker-wrapper[_ngcontent-%COMP%] .td-dynamic-datepicker-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}"] });
|
|
472
|
-
(function () {
|
|
473
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicDatepickerComponent, [{
|
|
161
|
+
TdDynamicDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
+
TdDynamicDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicDatepickerComponent, selector: "td-dynamic-datepicker", ngImport: i0, template: "<div class=\"td-dynamic-datepicker-wrapper\">\n <mat-form-field class=\"td-dynamic-datepicker-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [matDatepicker]=\"dynamicDatePicker\"\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n <mat-datepicker-toggle\n matSuffix\n [for]=\"dynamicDatePicker\"\n ></mat-datepicker-toggle>\n <mat-datepicker #dynamicDatePicker></mat-datepicker>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-datepicker-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-datepicker-wrapper .td-dynamic-datepicker-field{flex:1;box-sizing:border-box}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2$3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { type: i2$3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }], directives: [{ type: i1.MatLabel, selector: "mat-label" }, { type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i2$3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.MatSuffix, selector: "[matSuffix]" }] });
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicDatepickerComponent, decorators: [{
|
|
474
164
|
type: Component,
|
|
475
|
-
args: [{ selector: 'td-dynamic-datepicker', template: "<div class=\"td-dynamic-datepicker-wrapper\">\n <mat-form-field class=\"td-dynamic-datepicker-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [matDatepicker]=\"dynamicDatePicker\"\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{
|
|
476
|
-
}]
|
|
477
|
-
})();
|
|
165
|
+
args: [{ selector: 'td-dynamic-datepicker', template: "<div class=\"td-dynamic-datepicker-wrapper\">\n <mat-form-field class=\"td-dynamic-datepicker-field\">\n <mat-label>{{ label }}</mat-label>\n <input\n #elementInput\n matInput\n [matDatepicker]=\"dynamicDatePicker\"\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n />\n <mat-hint>{{ hint }}</mat-hint>\n <mat-error>\n <ng-template\n [ngTemplateOutlet]=\"errorMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n control: control,\n errors: control?.errors\n }\"\n ></ng-template>\n </mat-error>\n <mat-datepicker-toggle\n matSuffix\n [for]=\"dynamicDatePicker\"\n ></mat-datepicker-toggle>\n <mat-datepicker #dynamicDatePicker></mat-datepicker>\n </mat-form-field>\n</div>\n", styles: [".td-dynamic-datepicker-wrapper{flex-direction:row;display:flex;box-sizing:border-box}.td-dynamic-datepicker-wrapper .td-dynamic-datepicker-field{flex:1;box-sizing:border-box}\n"] }]
|
|
166
|
+
}] });
|
|
478
167
|
|
|
479
168
|
var TdDynamicType;
|
|
480
169
|
(function (TdDynamicType) {
|
|
@@ -496,7 +185,7 @@ var TdDynamicElement;
|
|
|
496
185
|
TdDynamicElement["Select"] = "select";
|
|
497
186
|
TdDynamicElement["FileInput"] = "file-input";
|
|
498
187
|
})(TdDynamicElement || (TdDynamicElement = {}));
|
|
499
|
-
const DYNAMIC_ELEMENT_NAME_REGEX = /^[^0-9][
|
|
188
|
+
const DYNAMIC_ELEMENT_NAME_REGEX = /^[^0-9][^@]*$/;
|
|
500
189
|
class TdDynamicFormsService {
|
|
501
190
|
/**
|
|
502
191
|
* Method to validate if the [name] is a proper element name.
|
|
@@ -550,38 +239,51 @@ class TdDynamicFormsService {
|
|
|
550
239
|
* Creates form validationdepending [ITdDynamicElementConfig] properties.
|
|
551
240
|
*/
|
|
552
241
|
createValidators(config) {
|
|
553
|
-
let validator;
|
|
242
|
+
let validator = null;
|
|
554
243
|
if (config.required) {
|
|
555
244
|
validator = Validators.required;
|
|
556
245
|
}
|
|
557
246
|
if (config.max || config.max === 0) {
|
|
558
|
-
validator = Validators.compose([
|
|
247
|
+
validator = Validators.compose([
|
|
248
|
+
validator,
|
|
249
|
+
Validators.max(parseFloat(config.max)),
|
|
250
|
+
]);
|
|
559
251
|
}
|
|
560
252
|
if (config.min || config.min === 0) {
|
|
561
|
-
validator = Validators.compose([
|
|
253
|
+
validator = Validators.compose([
|
|
254
|
+
validator,
|
|
255
|
+
Validators.min(parseFloat(config.min)),
|
|
256
|
+
]);
|
|
562
257
|
}
|
|
563
258
|
if (config.maxLength || config.maxLength === 0) {
|
|
564
|
-
validator = Validators.compose([
|
|
259
|
+
validator = Validators.compose([
|
|
260
|
+
validator,
|
|
261
|
+
Validators.maxLength(parseFloat(config.maxLength)),
|
|
262
|
+
]);
|
|
565
263
|
}
|
|
566
264
|
if (config.minLength || config.minLength === 0) {
|
|
567
|
-
validator = Validators.compose([
|
|
265
|
+
validator = Validators.compose([
|
|
266
|
+
validator,
|
|
267
|
+
Validators.minLength(parseFloat(config.minLength)),
|
|
268
|
+
]);
|
|
568
269
|
}
|
|
569
270
|
// Add provided custom validators to the validator function
|
|
570
271
|
if (config.validators) {
|
|
571
272
|
config.validators.forEach((validatorConfig) => {
|
|
572
|
-
validator = Validators.compose([
|
|
273
|
+
validator = Validators.compose([
|
|
274
|
+
validator,
|
|
275
|
+
validatorConfig.validator,
|
|
276
|
+
]);
|
|
573
277
|
});
|
|
574
278
|
}
|
|
575
279
|
return validator;
|
|
576
280
|
}
|
|
577
281
|
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
(
|
|
581
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicFormsService, [{
|
|
282
|
+
TdDynamicFormsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
+
TdDynamicFormsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsService });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsService, decorators: [{
|
|
582
285
|
type: Injectable
|
|
583
|
-
}]
|
|
584
|
-
})();
|
|
286
|
+
}] });
|
|
585
287
|
function DYNAMIC_FORMS_PROVIDER_FACTORY(parent) {
|
|
586
288
|
return parent || new TdDynamicFormsService();
|
|
587
289
|
}
|
|
@@ -599,37 +301,33 @@ class TdDynamicElementBase {
|
|
|
599
301
|
}
|
|
600
302
|
/* tslint:disable-next-line */
|
|
601
303
|
const _TdDynamicElementMixinBase = mixinControlValueAccessor(TdDynamicElementBase);
|
|
602
|
-
class TdDynamicFormsErrorTemplateDirective extends
|
|
304
|
+
class TdDynamicFormsErrorTemplateDirective extends CdkPortal {
|
|
603
305
|
constructor(templateRef, viewContainerRef) {
|
|
604
306
|
super(templateRef, viewContainerRef);
|
|
605
307
|
this.templateRef = templateRef;
|
|
606
308
|
}
|
|
607
309
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
(
|
|
611
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicFormsErrorTemplateDirective, [{
|
|
310
|
+
TdDynamicFormsErrorTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsErrorTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
311
|
+
TdDynamicFormsErrorTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicFormsErrorTemplateDirective, selector: "[tdDynamicFormsError]ng-template", inputs: { tdDynamicFormsError: "tdDynamicFormsError" }, usesInheritance: true, ngImport: i0 });
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsErrorTemplateDirective, decorators: [{
|
|
612
313
|
type: Directive,
|
|
613
314
|
args: [{ selector: '[tdDynamicFormsError]ng-template' }]
|
|
614
|
-
}], function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, { tdDynamicFormsError: [{
|
|
315
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { tdDynamicFormsError: [{
|
|
615
316
|
type: Input
|
|
616
|
-
}] });
|
|
617
|
-
})();
|
|
317
|
+
}] } });
|
|
618
318
|
class TdDynamicElementDirective {
|
|
619
319
|
constructor(viewContainer) {
|
|
620
320
|
this.viewContainer = viewContainer;
|
|
621
321
|
}
|
|
622
322
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
(
|
|
626
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicElementDirective, [{
|
|
323
|
+
TdDynamicElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicElementDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
324
|
+
TdDynamicElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicElementDirective, selector: "[tdDynamicContainer]", ngImport: i0 });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicElementDirective, decorators: [{
|
|
627
326
|
type: Directive,
|
|
628
327
|
args: [{
|
|
629
328
|
selector: '[tdDynamicContainer]',
|
|
630
329
|
}]
|
|
631
|
-
}], function () { return [{ type: i0.ViewContainerRef }]; }
|
|
632
|
-
})();
|
|
330
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
633
331
|
class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
634
332
|
constructor(_componentFactoryResolver, _dynamicFormsService, _changeDetectorRef) {
|
|
635
333
|
super(_changeDetectorRef);
|
|
@@ -647,43 +345,6 @@ class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
|
647
345
|
* Sets name to be displayed as attribute.
|
|
648
346
|
*/
|
|
649
347
|
this.name = '';
|
|
650
|
-
/**
|
|
651
|
-
* Sets type or element of element to be rendered.
|
|
652
|
-
* Throws error if does not exist or no supported.
|
|
653
|
-
*/
|
|
654
|
-
this.type = undefined;
|
|
655
|
-
/**
|
|
656
|
-
* Sets required validation checkup (if supported by element).
|
|
657
|
-
*/
|
|
658
|
-
this.required = undefined;
|
|
659
|
-
/**
|
|
660
|
-
* Sets min validation checkup (if supported by element).
|
|
661
|
-
*/
|
|
662
|
-
this.min = undefined;
|
|
663
|
-
/**
|
|
664
|
-
* Sets max validation checkup (if supported by element).
|
|
665
|
-
*/
|
|
666
|
-
this.max = undefined;
|
|
667
|
-
/**
|
|
668
|
-
* Sets minLength validation checkup (if supported by element).
|
|
669
|
-
*/
|
|
670
|
-
this.minLength = undefined;
|
|
671
|
-
/**
|
|
672
|
-
* Sets maxLength validation checkup (if supported by element).
|
|
673
|
-
*/
|
|
674
|
-
this.maxLength = undefined;
|
|
675
|
-
/**
|
|
676
|
-
* Sets selections for array elements (if supported by element).
|
|
677
|
-
*/
|
|
678
|
-
this.selections = undefined;
|
|
679
|
-
/**
|
|
680
|
-
* Sets multiple property for array elements (if supported by element).
|
|
681
|
-
*/
|
|
682
|
-
this.multiple = undefined;
|
|
683
|
-
/**
|
|
684
|
-
* Sets error message template so it can be injected into dynamic components.
|
|
685
|
-
*/
|
|
686
|
-
this.errorMessageTemplate = undefined;
|
|
687
348
|
/**
|
|
688
349
|
* Sets the placeholder message
|
|
689
350
|
*/
|
|
@@ -696,7 +357,9 @@ class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
|
696
357
|
return this.min;
|
|
697
358
|
}
|
|
698
359
|
ngOnInit() {
|
|
699
|
-
const component = this.type instanceof Type
|
|
360
|
+
const component = this.type instanceof Type
|
|
361
|
+
? this.type
|
|
362
|
+
: this._dynamicFormsService.getDynamicElement(this.type);
|
|
700
363
|
const ref = this._componentFactoryResolver
|
|
701
364
|
.resolveComponentFactory(component)
|
|
702
365
|
.create(this.childElement.viewContainer.injector);
|
|
@@ -719,7 +382,9 @@ class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
|
719
382
|
this._instance.placeholder = this.placeholder;
|
|
720
383
|
if (this.customConfig) {
|
|
721
384
|
Object.getOwnPropertyNames(this.customConfig).forEach((name) => {
|
|
722
|
-
|
|
385
|
+
if (this.customConfig) {
|
|
386
|
+
this._instance[name] = this.customConfig[name];
|
|
387
|
+
}
|
|
723
388
|
});
|
|
724
389
|
}
|
|
725
390
|
}
|
|
@@ -734,47 +399,30 @@ class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
|
734
399
|
}
|
|
735
400
|
}
|
|
736
401
|
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
if (rf & 2) {
|
|
748
|
-
i0.ɵɵattribute("max", ctx.maxAttr)("min", ctx.minAttr);
|
|
749
|
-
}
|
|
750
|
-
}, inputs: { dynamicControl: "dynamicControl", label: "label", hint: "hint", name: "name", type: "type", required: "required", min: "min", max: "max", minLength: "minLength", maxLength: "maxLength", selections: "selections", multiple: "multiple", customConfig: "customConfig", errorMessageTemplate: "errorMessageTemplate", placeholder: "placeholder" }, features: [i0.ɵɵProvidersFeature([
|
|
751
|
-
TdDynamicFormsService,
|
|
752
|
-
{
|
|
753
|
-
provide: NG_VALUE_ACCESSOR,
|
|
754
|
-
useExisting: forwardRef((() => TdDynamicElementComponent)),
|
|
755
|
-
multi: true,
|
|
756
|
-
},
|
|
757
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 0, consts: [["tdDynamicContainer", ""]], template: function TdDynamicElementComponent_Template(rf, ctx) {
|
|
758
|
-
if (rf & 1) {
|
|
759
|
-
i0.ɵɵelement(0, "div", 0);
|
|
760
|
-
}
|
|
761
|
-
}, directives: [TdDynamicElementDirective], encapsulation: 2 });
|
|
762
|
-
(function () {
|
|
763
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicElementComponent, [{
|
|
402
|
+
TdDynamicElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicElementComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: TdDynamicFormsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
403
|
+
TdDynamicElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicElementComponent, selector: "td-dynamic-element", inputs: { dynamicControl: "dynamicControl", label: "label", hint: "hint", name: "name", type: "type", required: "required", min: "min", max: "max", minLength: "minLength", maxLength: "maxLength", selections: "selections", multiple: "multiple", customConfig: "customConfig", errorMessageTemplate: "errorMessageTemplate", placeholder: "placeholder" }, host: { properties: { "attr.max": "this.maxAttr", "attr.min": "this.minAttr" } }, providers: [
|
|
404
|
+
TdDynamicFormsService,
|
|
405
|
+
{
|
|
406
|
+
provide: NG_VALUE_ACCESSOR,
|
|
407
|
+
useExisting: forwardRef(() => TdDynamicElementComponent),
|
|
408
|
+
multi: true,
|
|
409
|
+
},
|
|
410
|
+
], viewQueries: [{ propertyName: "childElement", first: true, predicate: TdDynamicElementDirective, descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<div tdDynamicContainer></div>', isInline: true, directives: [{ type: TdDynamicElementDirective, selector: "[tdDynamicContainer]" }] });
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicElementComponent, decorators: [{
|
|
764
412
|
type: Component,
|
|
765
413
|
args: [{
|
|
766
414
|
providers: [
|
|
767
415
|
TdDynamicFormsService,
|
|
768
416
|
{
|
|
769
417
|
provide: NG_VALUE_ACCESSOR,
|
|
770
|
-
useExisting: forwardRef((
|
|
418
|
+
useExisting: forwardRef(() => TdDynamicElementComponent),
|
|
771
419
|
multi: true,
|
|
772
420
|
},
|
|
773
421
|
],
|
|
774
422
|
selector: 'td-dynamic-element',
|
|
775
423
|
template: '<div tdDynamicContainer></div>',
|
|
776
424
|
}]
|
|
777
|
-
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: TdDynamicFormsService }, { type: i0.ChangeDetectorRef }]; }, { dynamicControl: [{
|
|
425
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: TdDynamicFormsService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dynamicControl: [{
|
|
778
426
|
type: Input
|
|
779
427
|
}], label: [{
|
|
780
428
|
type: Input
|
|
@@ -813,34 +461,8 @@ class TdDynamicElementComponent extends _TdDynamicElementMixinBase {
|
|
|
813
461
|
}], minAttr: [{
|
|
814
462
|
type: HostBinding,
|
|
815
463
|
args: ['attr.min']
|
|
816
|
-
}] });
|
|
817
|
-
})();
|
|
464
|
+
}] } });
|
|
818
465
|
|
|
819
|
-
function TdDynamicFormsComponent_ng_template_2_td_dynamic_element_1_Template(rf, ctx) {
|
|
820
|
-
if (rf & 1) {
|
|
821
|
-
i0.ɵɵelement(0, "td-dynamic-element", 5, 6);
|
|
822
|
-
}
|
|
823
|
-
if (rf & 2) {
|
|
824
|
-
const element_r1 = i0.ɵɵnextContext().$implicit;
|
|
825
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
826
|
-
i0.ɵɵproperty("formControlName", element_r1.name)("dynamicControl", ctx_r2.dynamicForm.controls[element_r1.name])("id", element_r1.name)("name", element_r1.name)("label", element_r1.label || element_r1.name)("hint", element_r1.hint)("type", element_r1.type)("required", element_r1.required)("min", element_r1.min)("max", element_r1.max)("minLength", element_r1.minLength)("maxLength", element_r1.maxLength)("selections", element_r1.selections)("multiple", element_r1.multiple)("customConfig", element_r1.customConfig)("errorMessageTemplate", ctx_r2.getErrorTemplateRef(element_r1.name))("placeholder", element_r1.placeholder);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
function TdDynamicFormsComponent_ng_template_2_Template(rf, ctx) {
|
|
830
|
-
if (rf & 1) {
|
|
831
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
832
|
-
i0.ɵɵtemplate(1, TdDynamicFormsComponent_ng_template_2_td_dynamic_element_1_Template, 2, 17, "td-dynamic-element", 4);
|
|
833
|
-
i0.ɵɵelementEnd();
|
|
834
|
-
}
|
|
835
|
-
if (rf & 2) {
|
|
836
|
-
const element_r1 = ctx.$implicit;
|
|
837
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
838
|
-
i0.ɵɵstyleProp("max-width", element_r1.flex ? element_r1.flex : 100, "%")("flex", "1 1 " + (element_r1.flex ? element_r1.flex : 100) + "%")("-ms-flex", "1 1 " + (element_r1.flex ? element_r1.flex : 100) + "%")("-webkit-box-flex", 1);
|
|
839
|
-
i0.ɵɵadvance(1);
|
|
840
|
-
i0.ɵɵproperty("ngIf", ctx_r0.dynamicForm.controls[element_r1.name]);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
const _c0 = ["*"];
|
|
844
466
|
class TdDynamicFormsComponent {
|
|
845
467
|
constructor(_formBuilder, _dynamicFormsService, _changeDetectorRef) {
|
|
846
468
|
this._formBuilder = _formBuilder;
|
|
@@ -919,7 +541,7 @@ class TdDynamicFormsComponent {
|
|
|
919
541
|
this._updateErrorTemplates();
|
|
920
542
|
}
|
|
921
543
|
ngOnDestroy() {
|
|
922
|
-
this._destroy$.next();
|
|
544
|
+
this._destroy$.next(0);
|
|
923
545
|
this._destroy$.complete();
|
|
924
546
|
this._destroyControl$.complete();
|
|
925
547
|
}
|
|
@@ -940,9 +562,10 @@ class TdDynamicFormsComponent {
|
|
|
940
562
|
* Loads error templates and sets them in a map for faster access.
|
|
941
563
|
*/
|
|
942
564
|
_updateErrorTemplates() {
|
|
565
|
+
var _a;
|
|
943
566
|
this._templateMap = new Map();
|
|
944
567
|
for (const errorTemplate of this._errorTemplates.toArray()) {
|
|
945
|
-
this._templateMap.set(errorTemplate.tdDynamicFormsError, errorTemplate.templateRef);
|
|
568
|
+
this._templateMap.set((_a = errorTemplate.tdDynamicFormsError) !== null && _a !== void 0 ? _a : '', errorTemplate.templateRef);
|
|
946
569
|
}
|
|
947
570
|
}
|
|
948
571
|
_rerenderElements() {
|
|
@@ -977,7 +600,7 @@ class TdDynamicFormsComponent {
|
|
|
977
600
|
});
|
|
978
601
|
// call a change detection since the whole form might change
|
|
979
602
|
this._changeDetectorRef.detectChanges();
|
|
980
|
-
timer()
|
|
603
|
+
timer(0)
|
|
981
604
|
.toPromise()
|
|
982
605
|
.then(() => {
|
|
983
606
|
// call a markForCheck so elements are rendered correctly in OnPush
|
|
@@ -996,48 +619,24 @@ class TdDynamicFormsComponent {
|
|
|
996
619
|
_subscribeToControlStatusChanges(elementName) {
|
|
997
620
|
const control = this.controls[elementName];
|
|
998
621
|
const controlDestroyed$ = this._destroyControl$.pipe(filter((destroyedElementName) => destroyedElementName === elementName));
|
|
999
|
-
control.statusChanges
|
|
622
|
+
control.statusChanges
|
|
623
|
+
.pipe(takeUntil(this._destroy$), takeUntil(controlDestroyed$))
|
|
624
|
+
.subscribe(() => {
|
|
1000
625
|
this._changeDetectorRef.markForCheck();
|
|
1001
626
|
});
|
|
1002
627
|
}
|
|
1003
628
|
}
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
i0.ɵɵcontentQuery(dirIndex, TdDynamicFormsErrorTemplateDirective, 5);
|
|
1008
|
-
}
|
|
1009
|
-
if (rf & 2) {
|
|
1010
|
-
let _t;
|
|
1011
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._errorTemplates = _t);
|
|
1012
|
-
}
|
|
1013
|
-
}, inputs: { elements: "elements" }, ngContentSelectors: _c0, decls: 4, vars: 2, consts: [["novalidate", "", 3, "formGroup"], [1, "td-dynamic-form-wrapper"], ["ngFor", "", 3, "ngForOf"], [1, "td-dynamic-element-wrapper"], [3, "formControlName", "dynamicControl", "id", "name", "label", "hint", "type", "required", "min", "max", "minLength", "maxLength", "selections", "multiple", "customConfig", "errorMessageTemplate", "placeholder", 4, "ngIf"], [3, "formControlName", "dynamicControl", "id", "name", "label", "hint", "type", "required", "min", "max", "minLength", "maxLength", "selections", "multiple", "customConfig", "errorMessageTemplate", "placeholder"], ["dynamicElement", ""]], template: function TdDynamicFormsComponent_Template(rf, ctx) {
|
|
1014
|
-
if (rf & 1) {
|
|
1015
|
-
i0.ɵɵprojectionDef();
|
|
1016
|
-
i0.ɵɵelementStart(0, "form", 0);
|
|
1017
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
1018
|
-
i0.ɵɵtemplate(2, TdDynamicFormsComponent_ng_template_2_Template, 2, 9, "ng-template", 2);
|
|
1019
|
-
i0.ɵɵelementEnd();
|
|
1020
|
-
i0.ɵɵprojection(3);
|
|
1021
|
-
i0.ɵɵelementEnd();
|
|
1022
|
-
}
|
|
1023
|
-
if (rf & 2) {
|
|
1024
|
-
i0.ɵɵproperty("formGroup", ctx.dynamicForm);
|
|
1025
|
-
i0.ɵɵadvance(2);
|
|
1026
|
-
i0.ɵɵproperty("ngForOf", ctx.elements);
|
|
1027
|
-
}
|
|
1028
|
-
}, directives: [i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, i4.NgForOf, i4.NgIf, TdDynamicElementComponent, i3.NgControlStatus, i3.FormControlName, i3.RequiredValidator], styles: [".td-dynamic-form-wrapper[_ngcontent-%COMP%]{-ms-flex-flow:row wrap;flex-flow:row wrap;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:start;justify-content:flex-start}.td-dynamic-form-wrapper[_ngcontent-%COMP%] .mat-form-field-infix{width:auto}.td-dynamic-form-wrapper[_ngcontent-%COMP%] .td-dynamic-element-hint{font-size:75%;display:block}.td-dynamic-form-wrapper[_ngcontent-%COMP%] .td-dynamic-element-wrapper[_ngcontent-%COMP%]{max-height:100%;box-sizing:border-box;position:relative;padding:4px 4px 8px}"], changeDetection: 0 });
|
|
1029
|
-
(function () {
|
|
1030
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicFormsComponent, [{
|
|
629
|
+
TdDynamicFormsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsComponent, deps: [{ token: i3.FormBuilder }, { token: TdDynamicFormsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
630
|
+
TdDynamicFormsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicFormsComponent, selector: "td-dynamic-forms", inputs: { elements: "elements" }, queries: [{ propertyName: "_errorTemplates", predicate: TdDynamicFormsErrorTemplateDirective, descendants: true }], ngImport: i0, template: "<form [formGroup]=\"dynamicForm\" novalidate>\n <div class=\"td-dynamic-form-wrapper\">\n <ng-template let-element ngFor [ngForOf]=\"elements\">\n <div\n class=\"td-dynamic-element-wrapper\"\n [style.max-width.%]=\"element.flex ? element.flex : 100\"\n [style.flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-ms-flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <td-dynamic-element\n #dynamicElement\n *ngIf=\"dynamicForm.controls[element.name]\"\n [formControlName]=\"element.name\"\n [dynamicControl]=\"dynamicForm.controls[element.name]\"\n [id]=\"element.name\"\n [name]=\"element.name\"\n [label]=\"element.label || element.name\"\n [hint]=\"element.hint\"\n [type]=\"element.type\"\n [required]=\"element.required ?? false\"\n [min]=\"element.min\"\n [max]=\"element.max\"\n [minLength]=\"element.minLength\"\n [maxLength]=\"element.maxLength\"\n [selections]=\"element.selections\"\n [multiple]=\"element.multiple\"\n [customConfig]=\"element.customConfig\"\n [errorMessageTemplate]=\"getErrorTemplateRef(element.name)\"\n [placeholder]=\"element.placeholder\"\n ></td-dynamic-element>\n </div>\n </ng-template>\n </div>\n <ng-content></ng-content>\n</form>\n", styles: [".td-dynamic-form-wrapper{flex-flow:row wrap;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}.td-dynamic-form-wrapper ::ng-deep .mat-form-field-infix{width:auto}.td-dynamic-form-wrapper ::ng-deep .td-dynamic-element-hint{font-size:75%;display:block}.td-dynamic-form-wrapper .td-dynamic-element-wrapper{max-height:100%;box-sizing:border-box;position:relative;padding:4px 4px 8px}\n"], components: [{ type: TdDynamicElementComponent, selector: "td-dynamic-element", inputs: ["dynamicControl", "label", "hint", "name", "type", "required", "min", "max", "minLength", "maxLength", "selections", "multiple", "customConfig", "errorMessageTemplate", "placeholder"] }], directives: [{ type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicFormsComponent, decorators: [{
|
|
1031
632
|
type: Component,
|
|
1032
|
-
args: [{ selector: 'td-dynamic-forms', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"dynamicForm\" novalidate>\n <div class=\"td-dynamic-form-wrapper\">\n <ng-template let-element ngFor [ngForOf]=\"elements\">\n <div\n class=\"td-dynamic-element-wrapper\"\n [style.max-width.%]=\"element.flex ? element.flex : 100\"\n [style.flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-ms-flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <td-dynamic-element\n #dynamicElement\n *ngIf=\"dynamicForm.controls[element.name]\"\n [formControlName]=\"element.name\"\n [dynamicControl]=\"dynamicForm.controls[element.name]\"\n [id]=\"element.name\"\n [name]=\"element.name\"\n [label]=\"element.label || element.name\"\n [hint]=\"element.hint\"\n [type]=\"element.type\"\n [required]=\"element.required\"\n [min]=\"element.min\"\n [max]=\"element.max\"\n [minLength]=\"element.minLength\"\n [maxLength]=\"element.maxLength\"\n [selections]=\"element.selections\"\n [multiple]=\"element.multiple\"\n [customConfig]=\"element.customConfig\"\n [errorMessageTemplate]=\"getErrorTemplateRef(element.name)\"\n [placeholder]=\"element.placeholder\"\n ></td-dynamic-element>\n </div>\n </ng-template>\n </div>\n <ng-content></ng-content>\n</form>\n", styles: [".td-dynamic-form-wrapper{
|
|
1033
|
-
}], function () { return [{ type: i3.FormBuilder }, { type: TdDynamicFormsService }, { type: i0.ChangeDetectorRef }]; }, { _errorTemplates: [{
|
|
633
|
+
args: [{ selector: 'td-dynamic-forms', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"dynamicForm\" novalidate>\n <div class=\"td-dynamic-form-wrapper\">\n <ng-template let-element ngFor [ngForOf]=\"elements\">\n <div\n class=\"td-dynamic-element-wrapper\"\n [style.max-width.%]=\"element.flex ? element.flex : 100\"\n [style.flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-ms-flex]=\"'1 1 ' + (element.flex ? element.flex : 100) + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <td-dynamic-element\n #dynamicElement\n *ngIf=\"dynamicForm.controls[element.name]\"\n [formControlName]=\"element.name\"\n [dynamicControl]=\"dynamicForm.controls[element.name]\"\n [id]=\"element.name\"\n [name]=\"element.name\"\n [label]=\"element.label || element.name\"\n [hint]=\"element.hint\"\n [type]=\"element.type\"\n [required]=\"element.required ?? false\"\n [min]=\"element.min\"\n [max]=\"element.max\"\n [minLength]=\"element.minLength\"\n [maxLength]=\"element.maxLength\"\n [selections]=\"element.selections\"\n [multiple]=\"element.multiple\"\n [customConfig]=\"element.customConfig\"\n [errorMessageTemplate]=\"getErrorTemplateRef(element.name)\"\n [placeholder]=\"element.placeholder\"\n ></td-dynamic-element>\n </div>\n </ng-template>\n </div>\n <ng-content></ng-content>\n</form>\n", styles: [".td-dynamic-form-wrapper{flex-flow:row wrap;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}.td-dynamic-form-wrapper ::ng-deep .mat-form-field-infix{width:auto}.td-dynamic-form-wrapper ::ng-deep .td-dynamic-element-hint{font-size:75%;display:block}.td-dynamic-form-wrapper .td-dynamic-element-wrapper{max-height:100%;box-sizing:border-box;position:relative;padding:4px 4px 8px}\n"] }]
|
|
634
|
+
}], ctorParameters: function () { return [{ type: i3.FormBuilder }, { type: TdDynamicFormsService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _errorTemplates: [{
|
|
1034
635
|
type: ContentChildren,
|
|
1035
636
|
args: [TdDynamicFormsErrorTemplateDirective, { descendants: true }]
|
|
1036
637
|
}], elements: [{
|
|
1037
|
-
type: Input
|
|
1038
|
-
|
|
1039
|
-
}] });
|
|
1040
|
-
})();
|
|
638
|
+
type: Input
|
|
639
|
+
}] } });
|
|
1041
640
|
|
|
1042
641
|
const TD_DYNAMIC_FORMS = [
|
|
1043
642
|
TdDynamicFormsComponent,
|
|
@@ -1057,9 +656,41 @@ const TD_DYNAMIC_FORMS_ENTRY_COMPONENTS = [
|
|
|
1057
656
|
];
|
|
1058
657
|
class CovalentDynamicFormsModule {
|
|
1059
658
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
659
|
+
CovalentDynamicFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
660
|
+
CovalentDynamicFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicFormsModule, declarations: [TdDynamicFormsComponent,
|
|
661
|
+
TdDynamicElementComponent,
|
|
662
|
+
TdDynamicElementDirective,
|
|
663
|
+
TdDynamicFormsErrorTemplateDirective,
|
|
664
|
+
TdDynamicInputComponent,
|
|
665
|
+
TdDynamicFileInputComponent,
|
|
666
|
+
TdDynamicTextareaComponent,
|
|
667
|
+
TdDynamicSlideToggleComponent,
|
|
668
|
+
TdDynamicCheckboxComponent,
|
|
669
|
+
TdDynamicSliderComponent,
|
|
670
|
+
TdDynamicSelectComponent,
|
|
671
|
+
TdDynamicDatepickerComponent], imports: [CommonModule,
|
|
672
|
+
ReactiveFormsModule,
|
|
673
|
+
MatFormFieldModule,
|
|
674
|
+
MatInputModule,
|
|
675
|
+
MatSelectModule,
|
|
676
|
+
MatCheckboxModule,
|
|
677
|
+
MatSliderModule,
|
|
678
|
+
MatSlideToggleModule,
|
|
679
|
+
MatIconModule,
|
|
680
|
+
MatButtonModule,
|
|
681
|
+
MatDatepickerModule,
|
|
682
|
+
CovalentFileModule], exports: [TdDynamicFormsComponent,
|
|
683
|
+
TdDynamicElementComponent,
|
|
684
|
+
TdDynamicElementDirective,
|
|
685
|
+
TdDynamicFormsErrorTemplateDirective, TdDynamicInputComponent,
|
|
686
|
+
TdDynamicFileInputComponent,
|
|
687
|
+
TdDynamicTextareaComponent,
|
|
688
|
+
TdDynamicSlideToggleComponent,
|
|
689
|
+
TdDynamicCheckboxComponent,
|
|
690
|
+
TdDynamicSliderComponent,
|
|
691
|
+
TdDynamicSelectComponent,
|
|
692
|
+
TdDynamicDatepickerComponent] });
|
|
693
|
+
CovalentDynamicFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicFormsModule, providers: [DYNAMIC_FORMS_PROVIDER], imports: [[
|
|
1063
694
|
CommonModule,
|
|
1064
695
|
ReactiveFormsModule,
|
|
1065
696
|
MatFormFieldModule,
|
|
@@ -1071,14 +702,25 @@ class CovalentDynamicFormsModule {
|
|
|
1071
702
|
MatIconModule,
|
|
1072
703
|
MatButtonModule,
|
|
1073
704
|
MatDatepickerModule,
|
|
1074
|
-
CovalentCommonModule,
|
|
1075
705
|
CovalentFileModule,
|
|
1076
706
|
]] });
|
|
1077
|
-
(
|
|
1078
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDynamicFormsModule, [{
|
|
707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicFormsModule, decorators: [{
|
|
1079
708
|
type: NgModule,
|
|
1080
709
|
args: [{
|
|
1081
|
-
declarations: [
|
|
710
|
+
declarations: [
|
|
711
|
+
TdDynamicFormsComponent,
|
|
712
|
+
TdDynamicElementComponent,
|
|
713
|
+
TdDynamicElementDirective,
|
|
714
|
+
TdDynamicFormsErrorTemplateDirective,
|
|
715
|
+
TdDynamicInputComponent,
|
|
716
|
+
TdDynamicFileInputComponent,
|
|
717
|
+
TdDynamicTextareaComponent,
|
|
718
|
+
TdDynamicSlideToggleComponent,
|
|
719
|
+
TdDynamicCheckboxComponent,
|
|
720
|
+
TdDynamicSliderComponent,
|
|
721
|
+
TdDynamicSelectComponent,
|
|
722
|
+
TdDynamicDatepickerComponent,
|
|
723
|
+
],
|
|
1082
724
|
imports: [
|
|
1083
725
|
CommonModule,
|
|
1084
726
|
ReactiveFormsModule,
|
|
@@ -1091,49 +733,12 @@ class CovalentDynamicFormsModule {
|
|
|
1091
733
|
MatIconModule,
|
|
1092
734
|
MatButtonModule,
|
|
1093
735
|
MatDatepickerModule,
|
|
1094
|
-
CovalentCommonModule,
|
|
1095
736
|
CovalentFileModule,
|
|
1096
737
|
],
|
|
1097
|
-
exports: [TD_DYNAMIC_FORMS, TD_DYNAMIC_FORMS_ENTRY_COMPONENTS],
|
|
738
|
+
exports: [...TD_DYNAMIC_FORMS, ...TD_DYNAMIC_FORMS_ENTRY_COMPONENTS],
|
|
1098
739
|
providers: [DYNAMIC_FORMS_PROVIDER],
|
|
1099
740
|
}]
|
|
1100
|
-
}]
|
|
1101
|
-
})();
|
|
1102
|
-
(function () {
|
|
1103
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDynamicFormsModule, { declarations: [TdDynamicFormsComponent,
|
|
1104
|
-
TdDynamicElementComponent,
|
|
1105
|
-
TdDynamicElementDirective,
|
|
1106
|
-
TdDynamicFormsErrorTemplateDirective, TdDynamicInputComponent,
|
|
1107
|
-
TdDynamicFileInputComponent,
|
|
1108
|
-
TdDynamicTextareaComponent,
|
|
1109
|
-
TdDynamicSlideToggleComponent,
|
|
1110
|
-
TdDynamicCheckboxComponent,
|
|
1111
|
-
TdDynamicSliderComponent,
|
|
1112
|
-
TdDynamicSelectComponent,
|
|
1113
|
-
TdDynamicDatepickerComponent], imports: [CommonModule,
|
|
1114
|
-
ReactiveFormsModule,
|
|
1115
|
-
MatFormFieldModule,
|
|
1116
|
-
MatInputModule,
|
|
1117
|
-
MatSelectModule,
|
|
1118
|
-
MatCheckboxModule,
|
|
1119
|
-
MatSliderModule,
|
|
1120
|
-
MatSlideToggleModule,
|
|
1121
|
-
MatIconModule,
|
|
1122
|
-
MatButtonModule,
|
|
1123
|
-
MatDatepickerModule,
|
|
1124
|
-
CovalentCommonModule,
|
|
1125
|
-
CovalentFileModule], exports: [TdDynamicFormsComponent,
|
|
1126
|
-
TdDynamicElementComponent,
|
|
1127
|
-
TdDynamicElementDirective,
|
|
1128
|
-
TdDynamicFormsErrorTemplateDirective, TdDynamicInputComponent,
|
|
1129
|
-
TdDynamicFileInputComponent,
|
|
1130
|
-
TdDynamicTextareaComponent,
|
|
1131
|
-
TdDynamicSlideToggleComponent,
|
|
1132
|
-
TdDynamicCheckboxComponent,
|
|
1133
|
-
TdDynamicSliderComponent,
|
|
1134
|
-
TdDynamicSelectComponent,
|
|
1135
|
-
TdDynamicDatepickerComponent] });
|
|
1136
|
-
})();
|
|
741
|
+
}] });
|
|
1137
742
|
|
|
1138
743
|
/**
|
|
1139
744
|
* Generated bundle index. Do not edit.
|