@syncfusion/ej2-calendars 20.4.48 → 20.4.51
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 +2 -0
- package/GitLeaksReport.json +1 -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 +9 -4
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +9 -4
- 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/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/package.json +10 -10
- package/src/calendar/calendar.js +1 -1
- package/src/datepicker/datepicker.js +7 -2
- package/src/datetimepicker/datetimepicker.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.51
|
|
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
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@20.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Mo7eEO+t4dyeK6ga6RoGSu7mMaybao+tnPiEOw81sYTDS5USjrC8fsMuZ4W5Pd/TVQWQCscMTrblPv+ccDWFJg==",
|
|
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-20.4.
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-20.4.48.tgz",
|
|
36
|
+
"_shasum": "992f7575ee30864d5aa80cea1ca9b5093e823610",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
48
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
49
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
51
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
47
|
+
"@syncfusion/ej2-base": "~20.4.51",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~20.4.50",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~20.4.51",
|
|
50
|
+
"@syncfusion/ej2-lists": "~20.4.50",
|
|
51
|
+
"@syncfusion/ej2-popups": "~20.4.51"
|
|
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": "20.4.
|
|
84
|
+
"version": "20.4.51",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -2570,7 +2570,7 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
2570
2570
|
if (!isNullOrUndefined(this.value)) {
|
|
2571
2571
|
this.setProperties({ value: this.value }, true);
|
|
2572
2572
|
}
|
|
2573
|
-
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate)
|
|
2573
|
+
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate) || this.previousDate == null
|
|
2574
2574
|
&& !isNaN(+this.value))) {
|
|
2575
2575
|
this.changeEvent(e);
|
|
2576
2576
|
}
|
|
@@ -1085,8 +1085,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1085
1085
|
this.trigger('navigated', this.navigatedArgs);
|
|
1086
1086
|
};
|
|
1087
1087
|
DatePicker.prototype.changeEvent = function (event) {
|
|
1088
|
-
if (
|
|
1088
|
+
if (!this.isIconClicked) {
|
|
1089
1089
|
this.selectCalendar(event);
|
|
1090
|
+
}
|
|
1091
|
+
if (((this.previousDate && this.previousDate.valueOf()) !== (this.value && this.value.valueOf()))) {
|
|
1090
1092
|
this.changedArgs.event = event ? event : null;
|
|
1091
1093
|
this.changedArgs.element = this.element;
|
|
1092
1094
|
this.changedArgs.isInteracted = this.isInteracted;
|
|
@@ -1100,6 +1102,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1100
1102
|
this.previousElementValue = this.inputElement.value;
|
|
1101
1103
|
this.errorClass();
|
|
1102
1104
|
}
|
|
1105
|
+
else if (event) {
|
|
1106
|
+
this.hide(event);
|
|
1107
|
+
}
|
|
1103
1108
|
};
|
|
1104
1109
|
DatePicker.prototype.requiredModules = function () {
|
|
1105
1110
|
var modules = [];
|
|
@@ -1188,7 +1193,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1188
1193
|
else {
|
|
1189
1194
|
var prevent_1 = true;
|
|
1190
1195
|
var outOfRange = void 0;
|
|
1191
|
-
if (!isNullOrUndefined(this.value) && !(+this.value >= +this.min && +this.value <= +this.max)) {
|
|
1196
|
+
if (!isNullOrUndefined(this.value) && !(+this.value >= +new Date(this.checkValue(this.min)) && +this.value <= +new Date(this.checkValue(this.max)))) {
|
|
1192
1197
|
outOfRange = new Date(this.checkValue(this.value));
|
|
1193
1198
|
this.setProperties({ 'value': null }, true);
|
|
1194
1199
|
}
|
|
@@ -717,8 +717,8 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
717
717
|
return popupHeight > height ? height : popupHeight;
|
|
718
718
|
};
|
|
719
719
|
DateTimePicker.prototype.changeEvent = function (e) {
|
|
720
|
+
_super.prototype.changeEvent.call(this, e);
|
|
720
721
|
if ((this.value && this.value.valueOf()) !== (this.previousDateTime && +this.previousDateTime.valueOf())) {
|
|
721
|
-
_super.prototype.changeEvent.call(this, e);
|
|
722
722
|
this.valueWithMinutes = this.value;
|
|
723
723
|
this.setInputValue('date');
|
|
724
724
|
this.previousDateTime = this.value && new Date(+this.value);
|