@main-class/componentes 1.19.9 → 1.19.13

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.
@@ -545,7 +545,7 @@
545
545
  {
546
546
  provide: formField.MatFormFieldControl,
547
547
  useExisting: InputDatetimeComponent
548
- }
548
+ },
549
549
  ],
550
550
  styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}"]
551
551
  },] }
@@ -565,6 +565,33 @@
565
565
  picker: [{ type: core.ViewChild, args: ['pickerData',] }]
566
566
  };
567
567
 
568
+ var InputDatetimeValidatorDirective = /** @class */ (function () {
569
+ function InputDatetimeValidatorDirective() {
570
+ }
571
+ InputDatetimeValidatorDirective.prototype.validate = function (control) {
572
+ if (!!control.value) {
573
+ if (isNaN(control.value)) {
574
+ return { date: true };
575
+ }
576
+ }
577
+ return null;
578
+ };
579
+ return InputDatetimeValidatorDirective;
580
+ }());
581
+ InputDatetimeValidatorDirective.decorators = [
582
+ { type: core.Directive, args: [{
583
+ selector: '[mclInputDatetimeValidator],mcl-input-datetime',
584
+ providers: [
585
+ {
586
+ provide: forms.NG_VALIDATORS,
587
+ useExisting: InputDatetimeValidatorDirective,
588
+ multi: true
589
+ }
590
+ ]
591
+ },] }
592
+ ];
593
+ InputDatetimeValidatorDirective.ctorParameters = function () { return []; };
594
+
568
595
  var ɵ0 = {
569
596
  parse: {
570
597
  dateInput: 'L',
@@ -590,7 +617,10 @@
590
617
  }());
591
618
  InputDatetimeModule.decorators = [
592
619
  { type: core.NgModule, args: [{
593
- declarations: [InputDatetimeComponent],
620
+ declarations: [
621
+ InputDatetimeComponent,
622
+ InputDatetimeValidatorDirective
623
+ ],
594
624
  imports: [
595
625
  common.CommonModule,
596
626
  input.MatInputModule,
@@ -601,7 +631,8 @@
601
631
  model.ModelModule
602
632
  ],
603
633
  exports: [
604
- InputDatetimeComponent
634
+ InputDatetimeComponent,
635
+ InputDatetimeValidatorDirective
605
636
  ],
606
637
  providers: [
607
638
  { provide: core$1.MAT_DATE_LOCALE, useExisting: core.LOCALE_ID },
@@ -2470,7 +2501,8 @@
2470
2501
  exports.SelectRadioComponent = SelectRadioComponent;
2471
2502
  exports.SelectRadioModule = SelectRadioModule;
2472
2503
  exports.ɵ0 = ɵ0;
2473
- exports.ɵa = OptionCheckboxService;
2504
+ exports.ɵa = InputDatetimeValidatorDirective;
2505
+ exports.ɵb = OptionCheckboxService;
2474
2506
 
2475
2507
  Object.defineProperty(exports, '__esModule', { value: true });
2476
2508