@websy/websy-designs 1.2.25 → 1.2.27

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.
@@ -400,7 +400,7 @@ class WebsyDatePicker {
400
400
  allowClear: true,
401
401
  hideRanges: false,
402
402
  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>`,
403
- 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-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="368" y1="144" x2="144" y2="368" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
403
+ 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>`,
404
404
  confirmIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" 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>`,
405
405
  minAllowedDate: this.floorDate(new Date(new Date((new Date().setFullYear(new Date().getFullYear() - 1))).setDate(1))),
406
406
  maxAllowedDate: this.floorDate(new Date((new Date()))),
@@ -1131,7 +1131,8 @@ class WebsyDatePicker {
1131
1131
  el.classList.add('range-selected')
1132
1132
  }
1133
1133
  }
1134
- this.highlightRange()
1134
+ this.highlightRange()
1135
+ this.updateRange()
1135
1136
  this.close(confirm)
1136
1137
  }
1137
1138
  }
@@ -1162,6 +1163,7 @@ class WebsyDatePicker {
1162
1163
  })
1163
1164
  if (rangeInput.length > 2 && isContinuousRange === true) {
1164
1165
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]]
1166
+ this.customRangeSelected = true
1165
1167
  }
1166
1168
  if (isContinuousRange === false) {
1167
1169
  this.currentselection = []
@@ -499,7 +499,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
499
499
  allowClear: true,
500
500
  hideRanges: false,
501
501
  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>",
502
- 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-linecap:round;stroke-linejoin:round;stroke-width:32px\"/><line x1=\"368\" y1=\"144\" x2=\"144\" y2=\"368\" style=\"fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
502
+ 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>",
503
503
  confirmIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" 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>",
504
504
  minAllowedDate: this.floorDate(new Date(new Date(new Date().setFullYear(new Date().getFullYear() - 1)).setDate(1))),
505
505
  maxAllowedDate: this.floorDate(new Date(new Date())),
@@ -1263,6 +1263,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1263
1263
  }
1264
1264
 
1265
1265
  this.highlightRange();
1266
+ this.updateRange();
1266
1267
  this.close(confirm);
1267
1268
  }
1268
1269
  }
@@ -1298,6 +1299,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1298
1299
 
1299
1300
  if (rangeInput.length > 2 && isContinuousRange === true) {
1300
1301
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]];
1302
+ this.customRangeSelected = true;
1301
1303
  }
1302
1304
 
1303
1305
  if (isContinuousRange === false) {