@main-class/componentes 3.2.8 → 3.2.9
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/fesm2022/main-class-componentes-arquivo.mjs +1 -1
- package/fesm2022/main-class-componentes-arquivo.mjs.map +1 -1
- package/fesm2022/main-class-componentes-crud.mjs +1 -1
- package/fesm2022/main-class-componentes-crud.mjs.map +1 -1
- package/fesm2022/main-class-componentes-input.mjs +33 -32
- package/fesm2022/main-class-componentes-input.mjs.map +1 -1
- package/input/src/input-mask/input-mask.component.d.ts +6 -6
- package/package.json +8 -8
|
@@ -332,8 +332,8 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
332
332
|
*/
|
|
333
333
|
$mask;
|
|
334
334
|
keepMask;
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
onFocusin = new EventEmitter();
|
|
336
|
+
onFocusout = new EventEmitter();
|
|
337
337
|
get value() {
|
|
338
338
|
return super.value;
|
|
339
339
|
}
|
|
@@ -393,21 +393,22 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
393
393
|
this.input.nativeElement.text = masked;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
|
|
397
|
-
this.
|
|
396
|
+
focusin() {
|
|
397
|
+
this.onTouched();
|
|
398
|
+
this.onFocusin.emit();
|
|
398
399
|
this.focused = true;
|
|
399
400
|
}
|
|
400
|
-
|
|
401
|
-
this.
|
|
401
|
+
focusout() {
|
|
402
|
+
this.onFocusout.emit();
|
|
402
403
|
this.focused = false;
|
|
403
404
|
}
|
|
404
405
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
405
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputMaskComponent, isStandalone: true, selector: "mcl-input[mask]", inputs: { keepMask: "keepMask", mask: "mask" }, outputs: {
|
|
406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputMaskComponent, isStandalone: true, selector: "mcl-input[mask]", inputs: { keepMask: "keepMask", mask: "mask" }, outputs: { onFocusin: "focusin", onFocusout: "focusout" }, providers: [
|
|
406
407
|
{
|
|
407
408
|
provide: MatFormFieldControl,
|
|
408
409
|
useExisting: InputMaskComponent
|
|
409
410
|
}
|
|
410
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
411
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
411
412
|
}
|
|
412
413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
413
414
|
type: Component,
|
|
@@ -419,15 +420,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
419
420
|
provide: MatFormFieldControl,
|
|
420
421
|
useExisting: InputMaskComponent
|
|
421
422
|
}
|
|
422
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
423
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
423
424
|
}], propDecorators: { keepMask: [{
|
|
424
425
|
type: Input
|
|
425
|
-
}],
|
|
426
|
+
}], onFocusin: [{
|
|
426
427
|
type: Output,
|
|
427
|
-
args: ['
|
|
428
|
-
}],
|
|
428
|
+
args: ['focusin']
|
|
429
|
+
}], onFocusout: [{
|
|
429
430
|
type: Output,
|
|
430
|
-
args: ['
|
|
431
|
+
args: ['focusout']
|
|
431
432
|
}], mask: [{
|
|
432
433
|
type: Input
|
|
433
434
|
}] } });
|
|
@@ -551,7 +552,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
551
552
|
}
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
|
-
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }, { propertyName: "inputMask", first: true, predicate: ["inputMask"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\n
|
|
555
|
+
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }, { propertyName: "inputMask", first: true, predicate: ["inputMask"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\n (focusin)=\"focused = true\" (focusout)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\"/>\n", styles: [".dateinput{display:flex}.dateinput mcl-input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatDatetimepickerModule }, { kind: "component", type: i1$1.MatDatetimepickerComponent, selector: "mat-datetimepicker", inputs: ["multiYearSelector", "twelvehour", "startView", "mode", "timeInterval", "ariaNextMonthLabel", "ariaPrevMonthLabel", "ariaNextYearLabel", "ariaPrevYearLabel", "preventSameDateTimeSelection", "panelClass", "startAt", "openOnFocus", "type", "touchUi", "disabled"], outputs: ["selectedChanged", "opened", "closed", "viewChanged"], exportAs: ["matDatetimepicker"] }, { kind: "component", type: i1$1.MatDatetimepickerToggleComponent, selector: "mat-datetimepicker-toggle", inputs: ["for", "disabled"], exportAs: ["matDatetimepickerToggle"] }, { kind: "directive", type: i1$1.MatDatetimepickerInputDirective, selector: "input[matDatetimepicker]", inputs: ["matDatetimepicker", "matDatepickerFilter", "value", "min", "max", "disabled"], outputs: ["dateChange", "dateInput"], exportAs: ["matDatepickerInput"] }, { kind: "ngmodule", type: MatMomentDatetimeModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputMaskComponent, selector: "mcl-input[mask]", inputs: ["keepMask", "mask"], outputs: ["focusin", "focusout"] }] });
|
|
555
556
|
}
|
|
556
557
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, decorators: [{
|
|
557
558
|
type: Component,
|
|
@@ -591,7 +592,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
|
-
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\n
|
|
595
|
+
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\n (focusin)=\"focused = true\" (focusout)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\"/>\n", styles: [".dateinput{display:flex}.dateinput mcl-input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"] }]
|
|
595
596
|
}], propDecorators: { type: [{
|
|
596
597
|
type: Input
|
|
597
598
|
}], readonly: [{
|
|
@@ -1011,7 +1012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1011
1012
|
class InputCnpjComponent extends InputMaskComponent {
|
|
1012
1013
|
constructor() {
|
|
1013
1014
|
super();
|
|
1014
|
-
this
|
|
1015
|
+
this.$mask = '##.###.###/####-##';
|
|
1015
1016
|
}
|
|
1016
1017
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1017
1018
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCnpjComponent, isStandalone: true, selector: "mcl-input[cnpj]", providers: [
|
|
@@ -1019,7 +1020,7 @@ class InputCnpjComponent extends InputMaskComponent {
|
|
|
1019
1020
|
provide: MatFormFieldControl,
|
|
1020
1021
|
useExisting: InputCnpjComponent
|
|
1021
1022
|
}
|
|
1022
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1023
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1023
1024
|
}
|
|
1024
1025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, decorators: [{
|
|
1025
1026
|
type: Component,
|
|
@@ -1031,13 +1032,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1031
1032
|
provide: MatFormFieldControl,
|
|
1032
1033
|
useExisting: InputCnpjComponent
|
|
1033
1034
|
}
|
|
1034
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1035
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
1035
1036
|
}], ctorParameters: () => [] });
|
|
1036
1037
|
|
|
1037
1038
|
class InputCepComponent extends InputMaskComponent {
|
|
1038
1039
|
constructor() {
|
|
1039
1040
|
super();
|
|
1040
|
-
this
|
|
1041
|
+
this.$mask = '##.###-###';
|
|
1041
1042
|
}
|
|
1042
1043
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1043
1044
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCepComponent, isStandalone: true, selector: "mcl-input[cep]", providers: [
|
|
@@ -1045,7 +1046,7 @@ class InputCepComponent extends InputMaskComponent {
|
|
|
1045
1046
|
provide: MatFormFieldControl,
|
|
1046
1047
|
useExisting: InputCepComponent
|
|
1047
1048
|
}
|
|
1048
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1049
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1049
1050
|
}
|
|
1050
1051
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, decorators: [{
|
|
1051
1052
|
type: Component,
|
|
@@ -1057,7 +1058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1057
1058
|
provide: MatFormFieldControl,
|
|
1058
1059
|
useExisting: InputCepComponent
|
|
1059
1060
|
}
|
|
1060
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1061
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
1061
1062
|
}], ctorParameters: () => [] });
|
|
1062
1063
|
|
|
1063
1064
|
class InputCpfCnpjComponent extends InputMaskComponent {
|
|
@@ -1068,10 +1069,10 @@ class InputCpfCnpjComponent extends InputMaskComponent {
|
|
|
1068
1069
|
const unmasked = this.removeMask(value);
|
|
1069
1070
|
if (!!unmasked) {
|
|
1070
1071
|
if (unmasked.length > 11) {
|
|
1071
|
-
this
|
|
1072
|
+
this.$mask = '##.###.###/####-##';
|
|
1072
1073
|
}
|
|
1073
1074
|
else {
|
|
1074
|
-
this
|
|
1075
|
+
this.$mask = '###.###.###-##';
|
|
1075
1076
|
}
|
|
1076
1077
|
super.value = value;
|
|
1077
1078
|
}
|
|
@@ -1082,7 +1083,7 @@ class InputCpfCnpjComponent extends InputMaskComponent {
|
|
|
1082
1083
|
provide: MatFormFieldControl,
|
|
1083
1084
|
useExisting: InputCpfCnpjComponent
|
|
1084
1085
|
}
|
|
1085
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1086
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1086
1087
|
}
|
|
1087
1088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfCnpjComponent, decorators: [{
|
|
1088
1089
|
type: Component,
|
|
@@ -1094,13 +1095,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1094
1095
|
provide: MatFormFieldControl,
|
|
1095
1096
|
useExisting: InputCpfCnpjComponent
|
|
1096
1097
|
}
|
|
1097
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1098
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
1098
1099
|
}] });
|
|
1099
1100
|
|
|
1100
1101
|
class InputCpfComponent extends InputMaskComponent {
|
|
1101
1102
|
constructor() {
|
|
1102
1103
|
super();
|
|
1103
|
-
this
|
|
1104
|
+
this.$mask = '###.###.###-##';
|
|
1104
1105
|
}
|
|
1105
1106
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1106
1107
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfComponent, isStandalone: true, selector: "mcl-input[cpf]", providers: [
|
|
@@ -1108,7 +1109,7 @@ class InputCpfComponent extends InputMaskComponent {
|
|
|
1108
1109
|
provide: MatFormFieldControl,
|
|
1109
1110
|
useExisting: InputCpfComponent
|
|
1110
1111
|
}
|
|
1111
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1112
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1112
1113
|
}
|
|
1113
1114
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, decorators: [{
|
|
1114
1115
|
type: Component,
|
|
@@ -1120,7 +1121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1120
1121
|
provide: MatFormFieldControl,
|
|
1121
1122
|
useExisting: InputCpfComponent
|
|
1122
1123
|
}
|
|
1123
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1124
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
1124
1125
|
}], ctorParameters: () => [] });
|
|
1125
1126
|
|
|
1126
1127
|
class InputPhoneComponent extends InputMaskComponent {
|
|
@@ -1128,10 +1129,10 @@ class InputPhoneComponent extends InputMaskComponent {
|
|
|
1128
1129
|
if (value) {
|
|
1129
1130
|
const unmasked = this.removeMask(value);
|
|
1130
1131
|
if (unmasked.length > 2 && unmasked[2] === '9') {
|
|
1131
|
-
this
|
|
1132
|
+
this.$mask = '(##) #####-####';
|
|
1132
1133
|
}
|
|
1133
1134
|
else {
|
|
1134
|
-
this
|
|
1135
|
+
this.$mask = '(##) ####-####';
|
|
1135
1136
|
}
|
|
1136
1137
|
}
|
|
1137
1138
|
return super.applyMask(value);
|
|
@@ -1142,7 +1143,7 @@ class InputPhoneComponent extends InputMaskComponent {
|
|
|
1142
1143
|
provide: MatFormFieldControl,
|
|
1143
1144
|
useExisting: InputPhoneComponent
|
|
1144
1145
|
}
|
|
1145
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1146
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1146
1147
|
}
|
|
1147
1148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, decorators: [{
|
|
1148
1149
|
type: Component,
|
|
@@ -1154,7 +1155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1154
1155
|
provide: MatFormFieldControl,
|
|
1155
1156
|
useExisting: InputPhoneComponent
|
|
1156
1157
|
}
|
|
1157
|
-
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"
|
|
1158
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"focusin()\" (focusout)=\"focusout()\"/>\n" }]
|
|
1158
1159
|
}] });
|
|
1159
1160
|
|
|
1160
1161
|
class OptionNode {
|