@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/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 31.2.
|
|
3
|
+
* version : 31.2.12
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-base",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.12",
|
|
4
4
|
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"syncfusion-license": "bin/syncfusion-license.js"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@syncfusion/ej2-icons": "~31.2.
|
|
45
|
+
"@syncfusion/ej2-icons": "~31.2.12"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {},
|
|
48
48
|
"typings": "index.d.ts",
|
package/src/intl/date-parser.js
CHANGED
|
@@ -252,6 +252,29 @@ var DateParser = /** @class */ (function () {
|
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
+
if (key === 'hour') {
|
|
256
|
+
var is12h = options.hour12;
|
|
257
|
+
if (is12h) {
|
|
258
|
+
if (tValue < 1 || tValue > 12) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
if (tValue < 0 || tValue > 23) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
else if (key === 'minute' || key === 'second') {
|
|
269
|
+
if (tValue < 0 || tValue > 59) {
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else if (key === 'milliseconds') {
|
|
274
|
+
if (tValue < 0 || tValue > 999) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
255
278
|
res["" + timeSetter["" + key]](tValue);
|
|
256
279
|
}
|
|
257
280
|
}
|
package/src/validate-lic.js
CHANGED
|
@@ -326,9 +326,11 @@ function convertToChar(cArr) {
|
|
|
326
326
|
* @returns {void}
|
|
327
327
|
*/
|
|
328
328
|
export function registerLicense(key) {
|
|
329
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
329
330
|
licenseValidator = new LicenseValidator(key);
|
|
330
331
|
}
|
|
331
332
|
export var validateLicense = function (component, key) {
|
|
333
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
332
334
|
if (key) {
|
|
333
335
|
registerLicense(key);
|
|
334
336
|
}
|