@webilix/ngx-form-m3 0.0.17 → 0.0.19
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.
|
@@ -439,10 +439,13 @@ class InputDateComponent {
|
|
|
439
439
|
setDate() {
|
|
440
440
|
if (this.formControl.disabled)
|
|
441
441
|
return;
|
|
442
|
-
const minDate = this.input.minDate === 'NOW' ? new Date() : this.input.minDate;
|
|
443
|
-
const maxDate = this.input.maxDate === 'NOW' ? new Date() : this.input.maxDate;
|
|
444
442
|
this.ngxCalendarService
|
|
445
|
-
.getDate({
|
|
443
|
+
.getDate({
|
|
444
|
+
title: this.input.title || 'تاریخ',
|
|
445
|
+
value: this.formControl.value,
|
|
446
|
+
minDate: this.input.minDate,
|
|
447
|
+
maxDate: this.input.maxDate,
|
|
448
|
+
})
|
|
446
449
|
.dialog((data) => {
|
|
447
450
|
this.formControl.setValue(data.date);
|
|
448
451
|
this.formControl.markAsTouched();
|
|
@@ -807,10 +810,13 @@ class InputMomentComponent {
|
|
|
807
810
|
setMoment() {
|
|
808
811
|
if (this.formControl.disabled)
|
|
809
812
|
return;
|
|
810
|
-
const minDate = this.input.minDate === 'NOW' ? new Date() : this.input.minDate;
|
|
811
|
-
const maxDate = this.input.maxDate === 'NOW' ? new Date() : this.input.maxDate;
|
|
812
813
|
this.ngxCalendarService
|
|
813
|
-
.getMoment({
|
|
814
|
+
.getMoment({
|
|
815
|
+
title: this.input.title || 'زمان',
|
|
816
|
+
value: this.formControl.value,
|
|
817
|
+
minDate: this.input.minDate,
|
|
818
|
+
maxDate: this.input.maxDate,
|
|
819
|
+
})
|
|
814
820
|
.dialog((moment) => {
|
|
815
821
|
this.formControl.setValue(moment.moment);
|
|
816
822
|
this.formControl.markAsTouched();
|
|
@@ -1402,7 +1408,7 @@ class NgxFormComponent {
|
|
|
1402
1408
|
});
|
|
1403
1409
|
// INPUT CONFIG
|
|
1404
1410
|
this.inputConfig = {
|
|
1405
|
-
appearance: this.ngxForm.appearance || 'fill',
|
|
1411
|
+
appearance: this.ngxForm.appearance || this.config?.appearance || 'fill',
|
|
1406
1412
|
autoFocus,
|
|
1407
1413
|
};
|
|
1408
1414
|
// REGISTER VALUE CHANGE
|