@descope/web-components-ui 1.127.0 → 1.129.0

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.
@@ -17257,11 +17257,14 @@ class RawDateFieldClass extends BaseInputClass$2 {
17257
17257
  }
17258
17258
 
17259
17259
  set value(val) {
17260
- if (!Number.isNaN(val)) {
17261
- this.updateEpoch(val);
17262
- this.updateDateCounters(newDate(val));
17260
+ let value = parseInt(val, 10);
17261
+ if (!Number.isNaN(value)) {
17262
+ this.updateEpoch(value);
17263
+ this.updateDateCounters(newDate(value));
17263
17264
  } else {
17264
17265
  this.updateEpoch('');
17266
+ this.resetDateCounters();
17267
+ this.clearInputEle();
17265
17268
  }
17266
17269
  }
17267
17270
 
@@ -17561,10 +17564,14 @@ class RawDateFieldClass extends BaseInputClass$2 {
17561
17564
  }
17562
17565
 
17563
17566
  if (this.inputElement.value === this.format) {
17564
- this.inputElement.value = '';
17567
+ this.clearInputEle();
17565
17568
  }
17566
17569
  }
17567
17570
 
17571
+ clearInputEle() {
17572
+ this.inputElement.value = '';
17573
+ }
17574
+
17568
17575
  onFormatUpdate(format) {
17569
17576
  if (Object.keys(formats).includes(format)) {
17570
17577
  this.format = format;