@syncfusion/ej2-calendars 21.1.37 → 21.1.41
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/CHANGELOG.md +8 -0
- 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 +17 -5
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +17 -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 +9 -9
- package/src/calendar/calendar.js +5 -2
- package/src/datepicker/datepicker.js +1 -1
- package/src/datetimepicker/datetimepicker.js +6 -1
- package/src/timepicker/timepicker.js +5 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
3
|
+
* version : 21.1.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rWDu1NlezEQAzMa2sz5ydD7TrCUs2nBJkZWtZXI1xeALPeeEV+JXNptXKozNC6cKhuVXBCaLkipHDG6Wx1yXfQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"/@syncfusion/ej2-schedule",
|
|
33
33
|
"/@syncfusion/ej2-vue-calendars"
|
|
34
34
|
],
|
|
35
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-21.1.38.tgz",
|
|
36
|
+
"_shasum": "e805e60e403d42ea26a40f4b5d8085db3257aed8",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~21.1.
|
|
47
|
+
"@syncfusion/ej2-base": "~21.1.40",
|
|
48
48
|
"@syncfusion/ej2-buttons": "~21.1.37",
|
|
49
|
-
"@syncfusion/ej2-inputs": "~21.1.
|
|
50
|
-
"@syncfusion/ej2-lists": "~21.1.
|
|
51
|
-
"@syncfusion/ej2-popups": "~21.1.
|
|
49
|
+
"@syncfusion/ej2-inputs": "~21.1.39",
|
|
50
|
+
"@syncfusion/ej2-lists": "~21.1.41",
|
|
51
|
+
"@syncfusion/ej2-popups": "~21.1.41"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"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.",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "21.1.
|
|
84
|
+
"version": "21.1.41",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -811,7 +811,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
811
811
|
addClass([tdEle], SELECTED);
|
|
812
812
|
}
|
|
813
813
|
this.updateFocus(otherMnthBool, disabledCls, localDate, tdEle, currentDate);
|
|
814
|
-
if (date.getFullYear() === todayDate.getFullYear() && date.getMonth() === todayDate.getMonth()
|
|
814
|
+
if (!isNullOrUndefined(date) && date.getFullYear() === todayDate.getFullYear() && date.getMonth() === todayDate.getMonth()
|
|
815
815
|
&& date.getDate() === todayDate.getDate()) {
|
|
816
816
|
addClass([tdEle], TODAY);
|
|
817
817
|
}
|
|
@@ -944,7 +944,10 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
944
944
|
var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
|
|
945
945
|
var dateFormatOptions = { skeleton: 'full', type: 'dateTime', calendar: type };
|
|
946
946
|
var date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
|
|
947
|
-
var value
|
|
947
|
+
var value;
|
|
948
|
+
if (!isNullOrUndefined(date)) {
|
|
949
|
+
value = date.valueOf();
|
|
950
|
+
}
|
|
948
951
|
var attrs = {
|
|
949
952
|
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
|
|
950
953
|
};
|
|
@@ -1749,7 +1749,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1749
1749
|
addClass([this.inputWrapper.container], ERROR);
|
|
1750
1750
|
attributes(this.inputElement, { 'aria-invalid': 'true' });
|
|
1751
1751
|
}
|
|
1752
|
-
else {
|
|
1752
|
+
else if (!isNullOrUndefined(this.inputWrapper)) {
|
|
1753
1753
|
removeClass([this.inputWrapper.container], ERROR);
|
|
1754
1754
|
attributes(this.inputElement, { 'aria-invalid': 'false' });
|
|
1755
1755
|
}
|
|
@@ -1344,7 +1344,12 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1344
1344
|
this.checkInvalidValue(newProp.value);
|
|
1345
1345
|
newProp.value = this.value;
|
|
1346
1346
|
newProp.value = this.validateValue(newProp.value);
|
|
1347
|
-
|
|
1347
|
+
if (this.enableMask) {
|
|
1348
|
+
Input.setValue(this.maskedDateValue, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
1349
|
+
}
|
|
1350
|
+
else {
|
|
1351
|
+
Input.setValue(this.getFormattedValue(newProp.value), this.inputElement, this.floatLabelType, this.showClearButton);
|
|
1352
|
+
}
|
|
1348
1353
|
this.valueWithMinutes = newProp.value;
|
|
1349
1354
|
this.setProperties({ value: newProp.value }, true);
|
|
1350
1355
|
if (this.popupObj) {
|
|
@@ -2352,7 +2352,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2352
2352
|
this.invalidValueString = null;
|
|
2353
2353
|
this.checkInvalidValue(newProp.value);
|
|
2354
2354
|
newProp.value = this.value;
|
|
2355
|
-
if (!this.invalidValueString) {
|
|
2355
|
+
if (!this.invalidValueString && !this.enableMask) {
|
|
2356
2356
|
if (typeof newProp.value === 'string') {
|
|
2357
2357
|
this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
|
|
2358
2358
|
newProp.value = this.value;
|
|
@@ -2365,6 +2365,10 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2365
2365
|
this.initValue = newProp.value;
|
|
2366
2366
|
newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
|
|
2367
2367
|
}
|
|
2368
|
+
else if (this.enableMask) {
|
|
2369
|
+
this.updateInputValue(this.maskedDateValue);
|
|
2370
|
+
this.checkErrorState(this.maskedDateValue);
|
|
2371
|
+
}
|
|
2368
2372
|
else {
|
|
2369
2373
|
this.updateInputValue(this.invalidValueString);
|
|
2370
2374
|
this.checkErrorState(this.invalidValueString);
|