@syncfusion/ej2-base 31.2.4 → 31.2.12

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.
@@ -6183,6 +6183,29 @@ class DateParser {
6183
6183
  return null;
6184
6184
  }
6185
6185
  }
6186
+ if (key === 'hour') {
6187
+ var is12h = options.hour12;
6188
+ if (is12h) {
6189
+ if (tValue < 1 || tValue > 12) {
6190
+ return null;
6191
+ }
6192
+ }
6193
+ else {
6194
+ if (tValue < 0 || tValue > 23) {
6195
+ return null;
6196
+ }
6197
+ }
6198
+ }
6199
+ else if (key === 'minute' || key === 'second') {
6200
+ if (tValue < 0 || tValue > 59) {
6201
+ return null;
6202
+ }
6203
+ }
6204
+ else if (key === 'milliseconds') {
6205
+ if (tValue < 0 || tValue > 999) {
6206
+ return null;
6207
+ }
6208
+ }
6186
6209
  res[`${timeSetter$1[`${key}`]}`](tValue);
6187
6210
  }
6188
6211
  }
@@ -7069,9 +7092,11 @@ function convertToChar(cArr) {
7069
7092
  * @returns {void}
7070
7093
  */
7071
7094
  function registerLicense(key) {
7095
+ key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
7072
7096
  licenseValidator = new LicenseValidator(key);
7073
7097
  }
7074
7098
  const validateLicense = (component, key) => {
7099
+ key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
7075
7100
  if (key) {
7076
7101
  registerLicense(key);
7077
7102
  }