@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.
@@ -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}"]