ngx-render-material-forms 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/Webform.mjs +1 -2
- package/esm2020/lib/components/currency/currency.component.mjs +5 -4
- package/esm2020/lib/components/date/date.component.mjs +129 -117
- package/esm2020/lib/components/email/email.component.mjs +5 -4
- package/esm2020/lib/components/number/number.component.mjs +5 -4
- package/esm2020/lib/components/password/password.component.mjs +5 -4
- package/esm2020/lib/components/phonenumber/phonenumber.component.mjs +5 -4
- package/esm2020/lib/components/select/select.component.mjs +92 -92
- package/esm2020/lib/components/textfield/textfield.component.mjs +45 -37
- package/esm2020/lib/components/url/url.component.mjs +5 -4
- package/esm2020/lib/ngx-render-material-forms.module.mjs +1 -1
- package/fesm2015/ngx-render-material-forms.js +288 -270
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +288 -270
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/textfield/textfield.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -7,8 +7,9 @@ import * as i2 from "@angular/forms";
|
|
|
7
7
|
import * as i3 from "@angular/material/form-field";
|
|
8
8
|
import * as i4 from "@angular/material/input";
|
|
9
9
|
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i6 from "
|
|
11
|
-
import * as i7 from "../
|
|
10
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
11
|
+
import * as i7 from "../formio-form-field/formio-form-field.component";
|
|
12
|
+
import * as i8 from "../label/label.component";
|
|
12
13
|
export class MaterialPasswordComponent extends MaterialTextfieldComponent {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -16,7 +17,7 @@ export class MaterialPasswordComponent extends MaterialTextfieldComponent {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
MaterialPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
MaterialPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPasswordComponent, selector: "mat-formio-password", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "
|
|
20
|
+
MaterialPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPasswordComponent, selector: "mat-formio-password", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n [ngClass]=\"{ 'show-invalid': inputType=='email' }\"\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i7.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i8.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
20
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPasswordComponent, decorators: [{
|
|
21
22
|
type: Component,
|
|
22
23
|
args: [{
|
|
@@ -26,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
26
27
|
}] });
|
|
27
28
|
PasswordComponent.MaterialComponent = MaterialPasswordComponent;
|
|
28
29
|
export { PasswordComponent };
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJlbmRlci1tYXRlcmlhbC1mb3Jtcy9zcmMvbGliL2NvbXBvbmVudHMvcGFzc3dvcmQvcGFzc3dvcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLDBCQUEwQixFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDbEcsT0FBTyxpQkFBaUIsTUFBTSwwQ0FBMEMsQ0FBQzs7Ozs7Ozs7OztBQUt6RSxNQUFNL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9 @@ import * as i2 from "@angular/forms";
|
|
|
7
7
|
import * as i3 from "@angular/material/form-field";
|
|
8
8
|
import * as i4 from "@angular/material/input";
|
|
9
9
|
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i6 from "
|
|
11
|
-
import * as i7 from "../
|
|
10
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
11
|
+
import * as i7 from "../formio-form-field/formio-form-field.component";
|
|
12
|
+
import * as i8 from "../label/label.component";
|
|
12
13
|
export class MaterialPhoneNumberComponent extends MaterialTextfieldComponent {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -16,7 +17,7 @@ export class MaterialPhoneNumberComponent extends MaterialTextfieldComponent {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
MaterialPhoneNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPhoneNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
MaterialPhoneNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPhoneNumberComponent, selector: "mat-formio-phonenumber", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "
|
|
20
|
+
MaterialPhoneNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPhoneNumberComponent, selector: "mat-formio-phonenumber", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n [ngClass]=\"{ 'show-invalid': inputType=='email' }\"\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i7.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i8.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
20
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPhoneNumberComponent, decorators: [{
|
|
21
22
|
type: Component,
|
|
22
23
|
args: [{
|
|
@@ -26,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
26
27
|
}] });
|
|
27
28
|
PhoneNumberComponent.MaterialComponent = MaterialPhoneNumberComponent;
|
|
28
29
|
export { PhoneNumberComponent };
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
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XBvcnQgUGhvbmVOdW1iZXJDb21wb25lbnQgZnJvbSAnZm9ybWlvanMvY29tcG9uZW50cy9waG9uZW51bWJlci9QaG9uZU51bWJlci5qcyc7XG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdtYXQtZm9ybWlvLXBob25lbnVtYmVyJyxcbiAgdGVtcGxhdGU6IFRFWFRGSUVMRF9URU1QTEFURVxufSlcbmV4cG9ydCBjbGFzcyBNYXRlcmlhbFBob25lTnVtYmVyQ29tcG9uZW50IGV4dGVuZHMgTWF0ZXJpYWxUZXh0ZmllbGRDb21wb25lbnQge1xuICBwdWJsaWMgaW5wdXRUeXBlID0gJ3RleHQnO1xufVxuUGhvbmVOdW1iZXJDb21wb25lbnQuTWF0ZXJpYWxDb21wb25lbnQgPSBNYXRlcmlhbFBob25lTnVtYmVyQ29tcG9uZW50O1xuZXhwb3J0IHsgUGhvbmVOdW1iZXJDb21wb25lbnQgfTtcbiJdfQ==
|
|
@@ -29,7 +29,7 @@ export class MaterialSelectComponent extends MaterialComponent {
|
|
|
29
29
|
let search = this.websiteMultiFilterCtrl.value;
|
|
30
30
|
search = search.toLowerCase();
|
|
31
31
|
this.filteredOptions = this.selectOptions.then((options) => {
|
|
32
|
-
const filtered = options.filter((option) => option.label.toLowerCase().indexOf(search) !== -1);
|
|
32
|
+
const filtered = options.filter((option) => option.label.replace(/<\/?span[^>]*>/g, "").toLowerCase().indexOf(search) !== -1);
|
|
33
33
|
this.filteredOptionsLength = filtered.length;
|
|
34
34
|
return filtered;
|
|
35
35
|
});
|
|
@@ -73,101 +73,101 @@ export class MaterialSelectComponent extends MaterialComponent {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
MaterialSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
76
|
-
MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectComponent, selector: "mat-formio-select", viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
77
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
78
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
79
|
-
<mat-form-field fxFill>
|
|
80
|
-
|
|
81
|
-
<mat-label *ngIf="hasLabel">
|
|
82
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
83
|
-
</mat-label>
|
|
84
|
-
|
|
85
|
-
<span *ngIf="instance.component.prefix" matPrefix>
|
|
86
|
-
{{ instance.component.prefix }}
|
|
87
|
-
</span>
|
|
88
|
-
<mat-select
|
|
89
|
-
[multiple]="instance.component.multiple"
|
|
90
|
-
[formControl]="control"
|
|
91
|
-
[placeholder]="instance.component.placeholder"
|
|
92
|
-
(selectionChange)="onChange()"
|
|
93
|
-
[compareWith]="compareObjects"
|
|
94
|
-
>
|
|
95
|
-
|
|
96
|
-
<mat-option>
|
|
97
|
-
<ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
|
|
98
|
-
</mat-option>
|
|
99
|
-
|
|
100
|
-
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
101
|
-
<span [innerHTML]="option.label"></span>
|
|
102
|
-
</mat-option>
|
|
103
|
-
|
|
104
|
-
<!-- <div class="mat-option">
|
|
105
|
-
<input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
|
|
106
|
-
</div> -->
|
|
107
|
-
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
108
|
-
<span>Nothing was found</span>
|
|
109
|
-
</mat-option>
|
|
110
|
-
<!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
111
|
-
<span [innerHTML]="option.label"></span>
|
|
112
|
-
</mat-option> -->
|
|
113
|
-
</mat-select>
|
|
114
|
-
|
|
115
|
-
<span *ngIf="instance.component.suffix" matSuffix>
|
|
116
|
-
{{ instance.component.suffix }}
|
|
117
|
-
</span>
|
|
118
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
119
|
-
</mat-form-field>
|
|
120
|
-
</ng-template>
|
|
76
|
+
MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectComponent, selector: "mat-formio-select", viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
77
|
+
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
78
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
79
|
+
<mat-form-field fxFill>
|
|
80
|
+
|
|
81
|
+
<mat-label *ngIf="hasLabel">
|
|
82
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
83
|
+
</mat-label>
|
|
84
|
+
|
|
85
|
+
<span *ngIf="instance.component.prefix" matPrefix>
|
|
86
|
+
{{ instance.component.prefix }}
|
|
87
|
+
</span>
|
|
88
|
+
<mat-select
|
|
89
|
+
[multiple]="instance.component.multiple"
|
|
90
|
+
[formControl]="control"
|
|
91
|
+
[placeholder]="instance.component.placeholder"
|
|
92
|
+
(selectionChange)="onChange()"
|
|
93
|
+
[compareWith]="compareObjects"
|
|
94
|
+
>
|
|
95
|
+
|
|
96
|
+
<mat-option>
|
|
97
|
+
<ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
|
|
98
|
+
</mat-option>
|
|
99
|
+
|
|
100
|
+
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
101
|
+
<span [innerHTML]="option.label"></span>
|
|
102
|
+
</mat-option>
|
|
103
|
+
|
|
104
|
+
<!-- <div class="mat-option">
|
|
105
|
+
<input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
|
|
106
|
+
</div> -->
|
|
107
|
+
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
108
|
+
<span>Nothing was found</span>
|
|
109
|
+
</mat-option>
|
|
110
|
+
<!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
111
|
+
<span [innerHTML]="option.label"></span>
|
|
112
|
+
</mat-option> -->
|
|
113
|
+
</mat-select>
|
|
114
|
+
|
|
115
|
+
<span *ngIf="instance.component.suffix" matSuffix>
|
|
116
|
+
{{ instance.component.suffix }}
|
|
117
|
+
</span>
|
|
118
|
+
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
119
|
+
</mat-form-field>
|
|
120
|
+
</ng-template>
|
|
121
121
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "indexAndLengthScreenReaderText", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toogleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "component", type: i8.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i9.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
122
122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, decorators: [{
|
|
123
123
|
type: Component,
|
|
124
124
|
args: [{
|
|
125
125
|
selector: 'mat-formio-select',
|
|
126
|
-
template: `
|
|
127
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
128
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
129
|
-
<mat-form-field fxFill>
|
|
130
|
-
|
|
131
|
-
<mat-label *ngIf="hasLabel">
|
|
132
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
133
|
-
</mat-label>
|
|
134
|
-
|
|
135
|
-
<span *ngIf="instance.component.prefix" matPrefix>
|
|
136
|
-
{{ instance.component.prefix }}
|
|
137
|
-
</span>
|
|
138
|
-
<mat-select
|
|
139
|
-
[multiple]="instance.component.multiple"
|
|
140
|
-
[formControl]="control"
|
|
141
|
-
[placeholder]="instance.component.placeholder"
|
|
142
|
-
(selectionChange)="onChange()"
|
|
143
|
-
[compareWith]="compareObjects"
|
|
144
|
-
>
|
|
145
|
-
|
|
146
|
-
<mat-option>
|
|
147
|
-
<ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
|
|
148
|
-
</mat-option>
|
|
149
|
-
|
|
150
|
-
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
151
|
-
<span [innerHTML]="option.label"></span>
|
|
152
|
-
</mat-option>
|
|
153
|
-
|
|
154
|
-
<!-- <div class="mat-option">
|
|
155
|
-
<input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
|
|
156
|
-
</div> -->
|
|
157
|
-
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
158
|
-
<span>Nothing was found</span>
|
|
159
|
-
</mat-option>
|
|
160
|
-
<!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
161
|
-
<span [innerHTML]="option.label"></span>
|
|
162
|
-
</mat-option> -->
|
|
163
|
-
</mat-select>
|
|
164
|
-
|
|
165
|
-
<span *ngIf="instance.component.suffix" matSuffix>
|
|
166
|
-
{{ instance.component.suffix }}
|
|
167
|
-
</span>
|
|
168
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
169
|
-
</mat-form-field>
|
|
170
|
-
</ng-template>
|
|
126
|
+
template: `
|
|
127
|
+
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
128
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
129
|
+
<mat-form-field fxFill>
|
|
130
|
+
|
|
131
|
+
<mat-label *ngIf="hasLabel">
|
|
132
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
133
|
+
</mat-label>
|
|
134
|
+
|
|
135
|
+
<span *ngIf="instance.component.prefix" matPrefix>
|
|
136
|
+
{{ instance.component.prefix }}
|
|
137
|
+
</span>
|
|
138
|
+
<mat-select
|
|
139
|
+
[multiple]="instance.component.multiple"
|
|
140
|
+
[formControl]="control"
|
|
141
|
+
[placeholder]="instance.component.placeholder"
|
|
142
|
+
(selectionChange)="onChange()"
|
|
143
|
+
[compareWith]="compareObjects"
|
|
144
|
+
>
|
|
145
|
+
|
|
146
|
+
<mat-option>
|
|
147
|
+
<ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
|
|
148
|
+
</mat-option>
|
|
149
|
+
|
|
150
|
+
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
151
|
+
<span [innerHTML]="option.label"></span>
|
|
152
|
+
</mat-option>
|
|
153
|
+
|
|
154
|
+
<!-- <div class="mat-option">
|
|
155
|
+
<input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
|
|
156
|
+
</div> -->
|
|
157
|
+
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
158
|
+
<span>Nothing was found</span>
|
|
159
|
+
</mat-option>
|
|
160
|
+
<!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
|
|
161
|
+
<span [innerHTML]="option.label"></span>
|
|
162
|
+
</mat-option> -->
|
|
163
|
+
</mat-select>
|
|
164
|
+
|
|
165
|
+
<span *ngIf="instance.component.suffix" matSuffix>
|
|
166
|
+
{{ instance.component.suffix }}
|
|
167
|
+
</span>
|
|
168
|
+
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
169
|
+
</mat-form-field>
|
|
170
|
+
</ng-template>
|
|
171
171
|
`
|
|
172
172
|
}]
|
|
173
173
|
}], propDecorators: { multiSelect: [{
|
|
@@ -184,4 +184,4 @@ SelectComponent.prototype.setItems = function (...args) {
|
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
export { SelectComponent };
|
|
187
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmNvbXBvbmVudC5qcyIs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|
@@ -7,43 +7,46 @@ import * as i2 from "@angular/forms";
|
|
|
7
7
|
import * as i3 from "@angular/material/form-field";
|
|
8
8
|
import * as i4 from "@angular/material/input";
|
|
9
9
|
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i6 from "
|
|
11
|
-
import * as i7 from "../
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
10
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
11
|
+
import * as i7 from "../formio-form-field/formio-form-field.component";
|
|
12
|
+
import * as i8 from "../label/label.component";
|
|
13
|
+
export const TEXTFIELD_TEMPLATE = `
|
|
14
|
+
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
15
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
16
|
+
<mat-form-field [appearance]="getFormFieldAppearance()" fxFill>
|
|
17
|
+
|
|
18
|
+
<mat-label *ngIf="hasLabel">
|
|
19
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
20
|
+
</mat-label>
|
|
21
|
+
|
|
22
|
+
<span *ngIf="instance.component.prefix && instance.type !== 'currency'"
|
|
23
|
+
matPrefix
|
|
24
|
+
>
|
|
25
|
+
{{ instance.component.prefix }}
|
|
26
|
+
</span>
|
|
27
|
+
<input matInput
|
|
28
|
+
type="{{ inputType }}"
|
|
29
|
+
[formControl]="control"
|
|
30
|
+
[placeholder]="instance.component.placeholder"
|
|
31
|
+
(input)="onChange()" #input
|
|
32
|
+
[ngClass]="{ 'show-invalid': inputType=='email' }"
|
|
33
|
+
>
|
|
34
|
+
<span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
|
|
35
|
+
|
|
36
|
+
<mat-hint *ngIf="instance.component.showWordCount || instance.component.showCharCount">
|
|
37
|
+
{{ getHint() }}
|
|
38
|
+
</mat-hint>
|
|
39
|
+
|
|
40
|
+
<br/>
|
|
41
|
+
<mat-error *ngIf="isError()" >{{ getErrorMessage() }}</mat-error>
|
|
42
|
+
</mat-form-field>
|
|
43
|
+
</ng-template>
|
|
42
44
|
`;
|
|
43
45
|
export class MaterialTextfieldComponent extends MaterialComponent {
|
|
44
46
|
constructor() {
|
|
45
47
|
super(...arguments);
|
|
46
48
|
this.inputType = 'text';
|
|
49
|
+
this.emailCounter = 0;
|
|
47
50
|
}
|
|
48
51
|
ngAfterContentInit() {
|
|
49
52
|
if (this.instance && this.control && this.instance.component.disabled) {
|
|
@@ -90,12 +93,17 @@ export class MaterialTextfieldComponent extends MaterialComponent {
|
|
|
90
93
|
for (const msg of messages) {
|
|
91
94
|
//this.control.hasError(msg.context.validator)
|
|
92
95
|
if (this.instance.type == 'phoneNumber' || this.instance.type == 'email') {
|
|
93
|
-
this.
|
|
96
|
+
this.controlHasError = true;
|
|
97
|
+
if (this.emailCounter == 1) {
|
|
98
|
+
let element = document.getElementsByClassName('show-invalid')[0];
|
|
99
|
+
element.click();
|
|
100
|
+
}
|
|
101
|
+
this.emailCounter++;
|
|
94
102
|
}
|
|
95
103
|
else {
|
|
96
|
-
this.
|
|
104
|
+
this.controlHasError = this.control.hasError(msg.context.validator);
|
|
97
105
|
}
|
|
98
|
-
if (msg.context && this.
|
|
106
|
+
if (msg.context && this.controlHasError) {
|
|
99
107
|
return this.instance.error.message;
|
|
100
108
|
}
|
|
101
109
|
}
|
|
@@ -104,7 +112,7 @@ export class MaterialTextfieldComponent extends MaterialComponent {
|
|
|
104
112
|
}
|
|
105
113
|
}
|
|
106
114
|
MaterialTextfieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTextfieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
-
MaterialTextfieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTextfieldComponent, selector: "mat-formio-textfield", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "
|
|
115
|
+
MaterialTextfieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTextfieldComponent, selector: "mat-formio-textfield", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n [ngClass]=\"{ 'show-invalid': inputType=='email' }\"\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i7.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i8.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
108
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTextfieldComponent, decorators: [{
|
|
109
117
|
type: Component,
|
|
110
118
|
args: [{
|
|
@@ -114,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
114
122
|
}] });
|
|
115
123
|
TextFieldComponent.MaterialComponent = MaterialTextfieldComponent;
|
|
116
124
|
export { TextFieldComponent };
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
125
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3RleHRmaWVsZC90ZXh0ZmllbGQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQTRCLE1BQU0sZUFBZSxDQUFDO0FBQ3BFLE9BQU8sa0JBQWtCLE1BQU0sNENBQTRDLENBQUM7QUFDNUUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE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Ryb2xIYXNFcnJvciA9IHRoaXMuY29udHJvbC5oYXNFcnJvcihtc2cuY29udGV4dC52YWxpZGF0b3IpXHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgaWYgKG1zZy5jb250ZXh0ICYmIHRoaXMuY29udHJvbEhhc0Vycm9yKSB7XHJcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmluc3RhbmNlLmVycm9yLm1lc3NhZ2U7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgIFxyXG4gICAgICAgIH1cclxuICAgICAgIFxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcblRleHRGaWVsZENvbXBvbmVudC5NYXRlcmlhbENvbXBvbmVudCA9IE1hdGVyaWFsVGV4dGZpZWxkQ29tcG9uZW50O1xyXG5leHBvcnQgeyBUZXh0RmllbGRDb21wb25lbnQgfTtcclxuIl19
|
|
@@ -7,8 +7,9 @@ import * as i2 from "@angular/forms";
|
|
|
7
7
|
import * as i3 from "@angular/material/form-field";
|
|
8
8
|
import * as i4 from "@angular/material/input";
|
|
9
9
|
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i6 from "
|
|
11
|
-
import * as i7 from "../
|
|
10
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
11
|
+
import * as i7 from "../formio-form-field/formio-form-field.component";
|
|
12
|
+
import * as i8 from "../label/label.component";
|
|
12
13
|
export class MaterialUrlComponent extends MaterialTextfieldComponent {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -16,7 +17,7 @@ export class MaterialUrlComponent extends MaterialTextfieldComponent {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
MaterialUrlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialUrlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
MaterialUrlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialUrlComponent, selector: "mat-formio-url", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "
|
|
20
|
+
MaterialUrlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialUrlComponent, selector: "mat-formio-url", usesInheritance: true, ngImport: i0, template: "\n <mat-formio-form-field [instance]=\"instance\" [componentTemplate]=\"componentTemplate\"></mat-formio-form-field>\n <ng-template #componentTemplate let-hasLabel>\n <mat-form-field [appearance]=\"getFormFieldAppearance()\" fxFill>\n\n <mat-label *ngIf=\"hasLabel\">\n <span [instance]=\"instance\" matFormioLabel></span>\n </mat-label>\n\n <span *ngIf=\"instance.component.prefix && instance.type !== 'currency'\"\n matPrefix\n >\n {{ instance.component.prefix }} \n </span>\n <input matInput\n type=\"{{ inputType }}\"\n [formControl]=\"control\"\n [placeholder]=\"instance.component.placeholder\"\n (input)=\"onChange()\" #input\n [ngClass]=\"{ 'show-invalid': inputType=='email' }\"\n >\n <span *ngIf=\"instance.component.suffix\" matSuffix>{{ instance.component.suffix }}</span>\n\n <mat-hint *ngIf=\"instance.component.showWordCount || instance.component.showCharCount\">\n {{ getHint() }}\n </mat-hint>\n\n <br/>\n <mat-error *ngIf=\"isError()\" >{{ getErrorMessage() }}</mat-error>\n </mat-form-field>\n </ng-template>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i7.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i8.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
20
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialUrlComponent, decorators: [{
|
|
21
22
|
type: Component,
|
|
22
23
|
args: [{
|
|
@@ -26,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
26
27
|
}] });
|
|
27
28
|
UrlComponent.MaterialComponent = MaterialUrlComponent;
|
|
28
29
|
export { UrlComponent };
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3VybC91cmwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLDBCQUEwQixFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDbEcsT0FBTyxZQUFZLE1BQU0sZ0NBQWdDLENBQUM7Ozs7Ozs7Ozs7QUFLMUQsTUFBTSxPQUFPLG9CQUFxQixTQUFRLDBCQUEwQjtJQUpwRTs7UUFLUyxjQUFTLEdBQUcsS0FBSyxDQUFDO0tBQzFCOztpSEFGWSxvQkFBb0I7cUdBQXBCLG9CQUFvQjsyRkFBcEIsb0JBQW9CO2tCQUpoQyxTQUF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