@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.
- package/bundles/main-class-componentes-input.umd.js +36 -4
- 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 -2
- package/esm2015/input/src/input-datetime/input-datetime.module.js +8 -3
- package/fesm2015/main-class-componentes-input.js +35 -6
- 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/package.json +1 -1
|
@@ -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: [
|
|
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 =
|
|
2504
|
+
exports.ɵa = InputDatetimeValidatorDirective;
|
|
2505
|
+
exports.ɵb = OptionCheckboxService;
|
|
2474
2506
|
|
|
2475
2507
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2476
2508
|
|