@syncfusion/ej2-calendars 29.1.33 → 29.1.39
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/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +13 -5
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +13 -5
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/calendar/calendar.js +11 -4
- package/src/timepicker/timepicker.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 29.1.
|
|
3
|
+
* version : 29.1.39
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@29.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-mqvrCexNlIzUSRNILrmadYJgMGqvnWbFWJtskEBlEHccUUZJUQvDkgWSr9OVD38jIGKR5lzHE9OvF2vOzBAI8A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"/@syncfusion/ej2-schedule",
|
|
32
32
|
"/@syncfusion/ej2-vue-calendars"
|
|
33
33
|
],
|
|
34
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-29.1.35.tgz",
|
|
35
|
+
"_shasum": "f60c06255c1d44f23918cbd651aebb277c060b19",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
37
|
"_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~29.1.
|
|
47
|
-
"@syncfusion/ej2-buttons": "~29.1.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~29.1.
|
|
49
|
-
"@syncfusion/ej2-lists": "~29.1.
|
|
50
|
-
"@syncfusion/ej2-popups": "~29.1.
|
|
46
|
+
"@syncfusion/ej2-base": "~29.1.36",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~29.1.34",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~29.1.39",
|
|
49
|
+
"@syncfusion/ej2-lists": "~29.1.34",
|
|
50
|
+
"@syncfusion/ej2-popups": "~29.1.37"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
81
|
},
|
|
82
82
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "29.1.
|
|
83
|
+
"version": "29.1.39",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -1433,12 +1433,18 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
1433
1433
|
for (var skipIndex = 0; skipIndex < copyValues.length; skipIndex++) {
|
|
1434
1434
|
var tempValue = copyValues[skipIndex];
|
|
1435
1435
|
var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
|
|
1436
|
+
var tempValueFormat = void 0;
|
|
1436
1437
|
var tempValueString = void 0;
|
|
1438
|
+
var tempValueDate = void 0;
|
|
1437
1439
|
if (this.calendarMode === 'Gregorian') {
|
|
1438
|
-
|
|
1440
|
+
tempValueFormat = { type: 'date', skeleton: 'yMd' };
|
|
1441
|
+
tempValueString = this.globalize.formatDate(tempValue, tempValueFormat);
|
|
1442
|
+
tempValueDate = this.globalize.parseDate(tempValueString, tempValueFormat);
|
|
1439
1443
|
}
|
|
1440
1444
|
else {
|
|
1441
|
-
|
|
1445
|
+
tempValueFormat = { type: 'date', skeleton: 'yMd', calendar: 'islamic' };
|
|
1446
|
+
tempValueString = this.globalize.formatDate(tempValue, tempValueFormat);
|
|
1447
|
+
tempValueDate = this.globalize.parseDate(tempValueString, tempValueFormat);
|
|
1442
1448
|
}
|
|
1443
1449
|
var minFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
|
|
1444
1450
|
var minStringValue = this.globalize.formatDate(this.min, minFormatOption);
|
|
@@ -1446,8 +1452,9 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
1446
1452
|
var maxFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
|
|
1447
1453
|
var maxStringValue = this.globalize.formatDate(this.max, maxFormatOption);
|
|
1448
1454
|
var maxString = maxStringValue;
|
|
1449
|
-
|
|
1450
|
-
|
|
1455
|
+
var minDate = this.globalize.parseDate(minString, minFormatOption);
|
|
1456
|
+
var maxDate = this.globalize.parseDate(maxString, maxFormatOption);
|
|
1457
|
+
if (+tempValueDate < +minDate || +tempValueDate > +maxDate) {
|
|
1451
1458
|
copyValues.splice(skipIndex, 1);
|
|
1452
1459
|
skipIndex = -1;
|
|
1453
1460
|
}
|
|
@@ -1966,7 +1966,8 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1966
1966
|
var formatStr = null;
|
|
1967
1967
|
var today = this.globalize.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
|
|
1968
1968
|
var value = null;
|
|
1969
|
-
if (typeof val === 'string'
|
|
1969
|
+
if (typeof val === 'string' && !(this.enableMask && this.maskedDateValue &&
|
|
1970
|
+
this.inputElement.value === this.maskedDateValue && !this.value)) {
|
|
1970
1971
|
if (val.toUpperCase().indexOf('AM') > -1 || val.toUpperCase().indexOf('PM') > -1) {
|
|
1971
1972
|
today = this.defaultCulture.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
|
|
1972
1973
|
value = isNaN(+new Date(today + ' ' + val)) ? null : new Date(new Date(today + ' ' + val).setMilliseconds(0));
|