@main-class/componentes 1.19.11 → 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.
- package/bundles/main-class-componentes-input.umd.js +35 -16
- 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/main-class-componentes-input.js +3 -2
- package/esm2015/input/src/input-datetime/input-datetime-validator.directive.js +27 -0
- package/esm2015/input/src/input-datetime/input-datetime.component.js +2 -15
- package/esm2015/input/src/input-datetime/input-datetime.module.js +8 -3
- package/fesm2015/main-class-componentes-input.js +33 -17
- package/fesm2015/main-class-componentes-input.js.map +1 -1
- package/input/main-class-componentes-input.d.ts +2 -1
- package/input/main-class-componentes-input.metadata.json +1 -1
- package/input/src/input-datetime/input-datetime-validator.directive.d.ts +5 -0
- package/input/src/input-datetime/input-datetime.component.d.ts +2 -3
- package/package.json +1 -1
|
@@ -535,14 +535,6 @@
|
|
|
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
|
-
};
|
|
546
538
|
return InputDatetimeComponent;
|
|
547
539
|
}(AbstractMatFormFieldControl));
|
|
548
540
|
InputDatetimeComponent.decorators = [
|
|
@@ -554,11 +546,6 @@
|
|
|
554
546
|
provide: formField.MatFormFieldControl,
|
|
555
547
|
useExisting: InputDatetimeComponent
|
|
556
548
|
},
|
|
557
|
-
{
|
|
558
|
-
provide: forms.NG_VALIDATORS,
|
|
559
|
-
useExisting: InputDatetimeComponent,
|
|
560
|
-
multi: true
|
|
561
|
-
}
|
|
562
549
|
],
|
|
563
550
|
styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}"]
|
|
564
551
|
},] }
|
|
@@ -578,6 +565,33 @@
|
|
|
578
565
|
picker: [{ type: core.ViewChild, args: ['pickerData',] }]
|
|
579
566
|
};
|
|
580
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
|
+
|
|
581
595
|
var ɵ0 = {
|
|
582
596
|
parse: {
|
|
583
597
|
dateInput: 'L',
|
|
@@ -603,7 +617,10 @@
|
|
|
603
617
|
}());
|
|
604
618
|
InputDatetimeModule.decorators = [
|
|
605
619
|
{ type: core.NgModule, args: [{
|
|
606
|
-
declarations: [
|
|
620
|
+
declarations: [
|
|
621
|
+
InputDatetimeComponent,
|
|
622
|
+
InputDatetimeValidatorDirective
|
|
623
|
+
],
|
|
607
624
|
imports: [
|
|
608
625
|
common.CommonModule,
|
|
609
626
|
input.MatInputModule,
|
|
@@ -614,7 +631,8 @@
|
|
|
614
631
|
model.ModelModule
|
|
615
632
|
],
|
|
616
633
|
exports: [
|
|
617
|
-
InputDatetimeComponent
|
|
634
|
+
InputDatetimeComponent,
|
|
635
|
+
InputDatetimeValidatorDirective
|
|
618
636
|
],
|
|
619
637
|
providers: [
|
|
620
638
|
{ provide: core$1.MAT_DATE_LOCALE, useExisting: core.LOCALE_ID },
|
|
@@ -2483,7 +2501,8 @@
|
|
|
2483
2501
|
exports.SelectRadioComponent = SelectRadioComponent;
|
|
2484
2502
|
exports.SelectRadioModule = SelectRadioModule;
|
|
2485
2503
|
exports.ɵ0 = ɵ0;
|
|
2486
|
-
exports.ɵa =
|
|
2504
|
+
exports.ɵa = InputDatetimeValidatorDirective;
|
|
2505
|
+
exports.ɵb = OptionCheckboxService;
|
|
2487
2506
|
|
|
2488
2507
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2489
2508
|
|