@syncfusion/ej2-base 31.2.4 → 31.2.5

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.
@@ -6362,6 +6362,29 @@ var DateParser = /** @__PURE__ @class */ (function () {
6362
6362
  return null;
6363
6363
  }
6364
6364
  }
6365
+ if (key === 'hour') {
6366
+ var is12h = options.hour12;
6367
+ if (is12h) {
6368
+ if (tValue < 1 || tValue > 12) {
6369
+ return null;
6370
+ }
6371
+ }
6372
+ else {
6373
+ if (tValue < 0 || tValue > 23) {
6374
+ return null;
6375
+ }
6376
+ }
6377
+ }
6378
+ else if (key === 'minute' || key === 'second') {
6379
+ if (tValue < 0 || tValue > 59) {
6380
+ return null;
6381
+ }
6382
+ }
6383
+ else if (key === 'milliseconds') {
6384
+ if (tValue < 0 || tValue > 999) {
6385
+ return null;
6386
+ }
6387
+ }
6365
6388
  res["" + timeSetter$1["" + key]](tValue);
6366
6389
  }
6367
6390
  }