@ldmjs/ui 1.0.68 → 1.0.69
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/dist/index.js +7 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19709,10 +19709,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19709
19709
|
if (!this.date && !this.currentMinDate) {
|
|
19710
19710
|
this.currentMinDate = new Date(newVal);
|
|
19711
19711
|
}
|
|
19712
|
-
if (this.date &&
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
this.currentMinDate = new Date(d);
|
|
19712
|
+
if (this.date &&
|
|
19713
|
+
datetime.compare(new Date(this.date.getFullYear(), this.date.getMonth(), this.date.getDate(), 0, 0, 0, 0), new Date(newVal.getFullYear(), newVal.getMonth(), newVal.getDate(), 0, 0, 0, 0)) > -1) {
|
|
19714
|
+
this.currentMinDate = new Date(newVal);
|
|
19716
19715
|
}
|
|
19717
19716
|
}
|
|
19718
19717
|
async onCurrentMinDateChanged(newVal) {
|
|
@@ -19729,10 +19728,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19729
19728
|
if (!this.date && !this.currentMaxDate) {
|
|
19730
19729
|
this.currentMaxDate = new Date(newVal);
|
|
19731
19730
|
}
|
|
19732
|
-
if (this.date &&
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
this.currentMaxDate = new Date(d);
|
|
19731
|
+
if (this.date &&
|
|
19732
|
+
datetime.compare(new Date(this.date.getFullYear(), this.date.getMonth(), this.date.getDate(), 0, 0, 0, 0), new Date(newVal.getFullYear(), newVal.getMonth(), newVal.getDate(), 0, 0, 0, 0)) < 1) {
|
|
19733
|
+
this.currentMaxDate = new Date(newVal);
|
|
19736
19734
|
}
|
|
19737
19735
|
}
|
|
19738
19736
|
async onCurrentMaxDateChanged(newVal) {
|
|
@@ -19777,7 +19775,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19777
19775
|
Y: {
|
|
19778
19776
|
mask: IMask.MaskedRange,
|
|
19779
19777
|
from: 1900,
|
|
19780
|
-
to:
|
|
19778
|
+
to: 9999,
|
|
19781
19779
|
},
|
|
19782
19780
|
},
|
|
19783
19781
|
format: date => this.formatDate(date),
|