@websy/websy-designs 1.2.7 → 1.2.8
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.
|
@@ -881,12 +881,13 @@ class WebsyDatePicker {
|
|
|
881
881
|
}
|
|
882
882
|
if (this.monthYearMonths.indexOf(`${d.getMonth()}-${d.getFullYear()}`) === -1) {
|
|
883
883
|
this.monthYearMonths.push(`${d.getMonth()}-${d.getFullYear()}`)
|
|
884
|
+
let firstOfMonth = new Date(new Date(d).setDate(1))
|
|
884
885
|
this.monthYears[d.getFullYear()].push({
|
|
885
|
-
date:
|
|
886
|
+
date: firstOfMonth,
|
|
886
887
|
month: this.options.monthMap[d.getMonth()],
|
|
887
888
|
monthNum: d.getMonth(),
|
|
888
889
|
year: d.getFullYear(),
|
|
889
|
-
id:
|
|
890
|
+
id: firstOfMonth.getTime()
|
|
890
891
|
})
|
|
891
892
|
}
|
|
892
893
|
if (disabled.indexOf(d.getTime()) === -1) {
|
package/dist/websy-designs.js
CHANGED
|
@@ -988,12 +988,13 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
988
988
|
|
|
989
989
|
if (this.monthYearMonths.indexOf("".concat(d.getMonth(), "-").concat(d.getFullYear())) === -1) {
|
|
990
990
|
this.monthYearMonths.push("".concat(d.getMonth(), "-").concat(d.getFullYear()));
|
|
991
|
+
var firstOfMonth = new Date(new Date(d).setDate(1));
|
|
991
992
|
this.monthYears[d.getFullYear()].push({
|
|
992
|
-
date:
|
|
993
|
+
date: firstOfMonth,
|
|
993
994
|
month: this.options.monthMap[d.getMonth()],
|
|
994
995
|
monthNum: d.getMonth(),
|
|
995
996
|
year: d.getFullYear(),
|
|
996
|
-
id:
|
|
997
|
+
id: firstOfMonth.getTime()
|
|
997
998
|
});
|
|
998
999
|
}
|
|
999
1000
|
|