@syncfusion/ej2-base 32.1.22 → 32.1.23
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/{ReadMe.md → README.md} +1 -1
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +10 -1
- package/dist/ej2-base.umd.min.js +10 -1
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +9 -1
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +9 -1
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +10 -1
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/intl/date-parser.js +9 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 32.1.23
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _base from '@syncfusion/ej2-base';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
package/src/intl/date-parser.js
CHANGED
|
@@ -221,10 +221,15 @@ var DateParser = /** @class */ (function () {
|
|
|
221
221
|
var tzone = options.timeZone;
|
|
222
222
|
if (!isUndefined(y)) {
|
|
223
223
|
var len = (y + '').length;
|
|
224
|
-
|
|
224
|
+
var typedYearString = options.typedYearString || '';
|
|
225
|
+
var isPaddedAncientYear = /^0{2,3}\d{1,2}$/.test(typedYearString);
|
|
226
|
+
if (len <= 2 && !isPaddedAncientYear) {
|
|
225
227
|
var century = Math.floor(res.getFullYear() / 100) * 100;
|
|
226
228
|
y += century;
|
|
227
229
|
}
|
|
230
|
+
if (isPaddedAncientYear) {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
228
233
|
res.setFullYear(y);
|
|
229
234
|
}
|
|
230
235
|
for (var _i = 0, tKeys_1 = tKeys; _i < tKeys_1.length; _i++) {
|
|
@@ -318,6 +323,9 @@ var DateParser = /** @class */ (function () {
|
|
|
318
323
|
var matchString = matches[curObject.pos];
|
|
319
324
|
if (curObject.isNumber) {
|
|
320
325
|
retOptions["" + prop] = this.internalNumberParser(matchString, num);
|
|
326
|
+
if (prop === 'year' && !isNullOrUndefined(matchString)) {
|
|
327
|
+
retOptions.typedYearString = matchString.trim();
|
|
328
|
+
}
|
|
321
329
|
}
|
|
322
330
|
else {
|
|
323
331
|
if (prop === 'timeZone' && !isUndefined(matchString)) {
|