@syncfusion/ej2-calendars 20.2.45 → 20.2.46

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.2.45
3
+ * version : 20.2.46
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@20.2.40",
3
+ "_id": "@syncfusion/ej2-calendars@20.2.45",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-YQI158Ua9My8CuQw3U0/vE1Z3pVjDfdGJUEoGhjVRPLCj5gLF/g79LAjk15tVUwokIvFu5U+5AHJHmfhnEMq0Q==",
5
+ "_integrity": "sha512-gm2Er77YnJmU5M57CsM+3ZBkCd9wmb5oudLW0Vgdh30NnqlJVbunldlL7zFsj8Gl7/IfznCkzyeBZhGes5rrTg==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-20.2.40.tgz",
36
- "_shasum": "f091606efa7fb03d7527d1e92047f06a209757e7",
35
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-20.2.45.tgz",
36
+ "_shasum": "c97feb31bba8ff3a25e69381a504b6da07861c37",
37
37
  "_spec": "@syncfusion/ej2-calendars@*",
38
38
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
39
39
  "author": {
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
- "@syncfusion/ej2-base": "~20.2.45",
48
- "@syncfusion/ej2-buttons": "~20.2.45",
47
+ "@syncfusion/ej2-base": "~20.2.46",
48
+ "@syncfusion/ej2-buttons": "~20.2.46",
49
49
  "@syncfusion/ej2-inputs": "~20.2.45",
50
- "@syncfusion/ej2-lists": "~20.2.45",
50
+ "@syncfusion/ej2-lists": "~20.2.46",
51
51
  "@syncfusion/ej2-popups": "~20.2.45"
52
52
  },
53
53
  "deprecated": false,
@@ -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.2.45",
84
+ "version": "20.2.46",
85
85
  "sideEffects": false
86
86
  }
@@ -2523,7 +2523,7 @@ var Calendar = /** @class */ (function (_super) {
2523
2523
  if (!isNullOrUndefined(this.value)) {
2524
2524
  this.setProperties({ value: this.value }, true);
2525
2525
  }
2526
- if (!this.isMultiSelection && +this.value !== Number.NaN && (+this.value !== +this.previousDate || this.previousDate == null
2526
+ if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate) && +new Date(this.value.toDateString()) !== +new Date(this.previousDate.toDateString()) || this.previousDate == null
2527
2527
  && !isNaN(+this.value))) {
2528
2528
  this.changeEvent(e);
2529
2529
  }
@@ -718,7 +718,7 @@ var DatePicker = /** @class */ (function (_super) {
718
718
  this.isPopupClicked = false;
719
719
  };
720
720
  DatePicker.prototype.documentHandler = function (e) {
721
- if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) ||
721
+ if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) && e.type !== 'mousedown' ||
722
722
  (this.popupObj.element && this.popupObj.element.contains(e.target)))) && e.type !== 'touchstart') {
723
723
  e.preventDefault();
724
724
  }
@@ -3264,7 +3264,7 @@ var DateRangePicker = /** @class */ (function (_super) {
3264
3264
  }
3265
3265
  var target = e.target;
3266
3266
  if (!this.inputWrapper.container.contains(target) ||
3267
- (!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]'))) {
3267
+ (!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type === 'mousedown')) {
3268
3268
  if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
3269
3269
  this.closeEventArgs && !this.closeEventArgs.cancel)) {
3270
3270
  e.preventDefault();
@@ -571,7 +571,7 @@ var DateTimePicker = /** @class */ (function (_super) {
571
571
  };
572
572
  DateTimePicker.prototype.documentClickHandler = function (event) {
573
573
  var target = event.target;
574
- if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) ||
574
+ if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
575
575
  (this.popupObject.element && this.popupObject.element.contains(target)))) && event.type !== 'touchstart') {
576
576
  event.preventDefault();
577
577
  }
@@ -1932,7 +1932,7 @@ var TimePicker = /** @class */ (function (_super) {
1932
1932
  };
1933
1933
  TimePicker.prototype.documentClickHandler = function (event) {
1934
1934
  var target = event.target;
1935
- if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) ||
1935
+ if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
1936
1936
  (this.popupObj.element && this.popupObj.element.contains(target)))) && event.type !== 'touchstart') {
1937
1937
  event.preventDefault();
1938
1938
  }