@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.
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +25 -0
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +25 -0
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/intl/date-parser.js +23 -0
- package/src/validate-lic.js +2 -0
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -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
|
}
|
|
@@ -7249,9 +7272,11 @@ function convertToChar(cArr) {
|
|
|
7249
7272
|
* @returns {void}
|
|
7250
7273
|
*/
|
|
7251
7274
|
function registerLicense(key) {
|
|
7275
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
7252
7276
|
licenseValidator = new LicenseValidator(key);
|
|
7253
7277
|
}
|
|
7254
7278
|
var validateLicense = function (component, key) {
|
|
7279
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
7255
7280
|
if (key) {
|
|
7256
7281
|
registerLicense(key);
|
|
7257
7282
|
}
|