@websy/websy-designs 1.2.26 → 1.2.28
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.
|
@@ -215,7 +215,7 @@ class WebsyDatePicker {
|
|
|
215
215
|
hideRanges: false,
|
|
216
216
|
arrowIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z"/></svg>`,
|
|
217
217
|
clearIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512"><line x1="368" y1="368" x2="144" y2="144" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="368" y1="144" x2="144" y2="368" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
218
|
-
confirmIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
218
|
+
confirmIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512"><polyline points="416 128 192 384 96 288" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
219
219
|
minAllowedDate: this.floorDate(new Date(new Date((new Date().setFullYear(new Date().getFullYear() - 1))).setDate(1))),
|
|
220
220
|
maxAllowedDate: this.floorDate(new Date((new Date()))),
|
|
221
221
|
minAllowedYear: 1970,
|
|
@@ -945,7 +945,8 @@ class WebsyDatePicker {
|
|
|
945
945
|
el.classList.add('range-selected')
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
this.highlightRange()
|
|
948
|
+
this.highlightRange()
|
|
949
|
+
this.updateRange()
|
|
949
950
|
this.close(confirm)
|
|
950
951
|
}
|
|
951
952
|
}
|
|
@@ -288,7 +288,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
288
288
|
hideRanges: false,
|
|
289
289
|
arrowIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z\"/></svg>",
|
|
290
290
|
clearIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 512 512\"><line x1=\"368\" y1=\"368\" x2=\"144\" y2=\"144\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/><line x1=\"368\" y1=\"144\" x2=\"144\" y2=\"368\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
291
|
-
confirmIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"
|
|
291
|
+
confirmIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 512 512\"><polyline points=\"416 128 192 384 96 288\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
292
292
|
minAllowedDate: this.floorDate(new Date(new Date(new Date().setFullYear(new Date().getFullYear() - 1)).setDate(1))),
|
|
293
293
|
maxAllowedDate: this.floorDate(new Date(new Date())),
|
|
294
294
|
minAllowedYear: 1970,
|
|
@@ -1051,6 +1051,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
1053
|
this.highlightRange();
|
|
1054
|
+
this.updateRange();
|
|
1054
1055
|
this.close(confirm);
|
|
1055
1056
|
}
|
|
1056
1057
|
}
|