@main-class/componentes 1.19.9 → 1.19.11
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/bundles/main-class-componentes-input.umd.js +13 -0
- package/bundles/main-class-componentes-input.umd.js.map +1 -1
- package/bundles/main-class-componentes-input.umd.min.js +1 -1
- package/bundles/main-class-componentes-input.umd.min.js.map +1 -1
- package/esm2015/input/src/input-datetime/input-datetime.component.js +15 -2
- package/fesm2015/main-class-componentes-input.js +14 -1
- package/fesm2015/main-class-componentes-input.js.map +1 -1
- package/input/main-class-componentes-input.metadata.json +1 -1
- package/input/src/input-datetime/input-datetime.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -535,6 +535,14 @@
|
|
|
535
535
|
}
|
|
536
536
|
this.stateChanges.next();
|
|
537
537
|
};
|
|
538
|
+
InputDatetimeComponent.prototype.validate = function (control) {
|
|
539
|
+
if (!!control.value) {
|
|
540
|
+
if (isNaN(control.value)) {
|
|
541
|
+
return { date: true };
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return null;
|
|
545
|
+
};
|
|
538
546
|
return InputDatetimeComponent;
|
|
539
547
|
}(AbstractMatFormFieldControl));
|
|
540
548
|
InputDatetimeComponent.decorators = [
|
|
@@ -545,6 +553,11 @@
|
|
|
545
553
|
{
|
|
546
554
|
provide: formField.MatFormFieldControl,
|
|
547
555
|
useExisting: InputDatetimeComponent
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
provide: forms.NG_VALIDATORS,
|
|
559
|
+
useExisting: InputDatetimeComponent,
|
|
560
|
+
multi: true
|
|
548
561
|
}
|
|
549
562
|
],
|
|
550
563
|
styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}"]
|