@syncfusion/ej2-calendars 20.4.48 → 20.4.52
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/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/daterangepicker/_layout.scss +1 -0
- package/styles/daterangepicker/bootstrap-dark.css +1 -0
- package/styles/daterangepicker/bootstrap.css +1 -0
- package/styles/daterangepicker/bootstrap4.css +1 -0
- package/styles/daterangepicker/bootstrap5-dark.css +1 -0
- package/styles/daterangepicker/bootstrap5.css +1 -0
- package/styles/daterangepicker/fabric-dark.css +1 -0
- package/styles/daterangepicker/fabric.css +1 -0
- package/styles/daterangepicker/fluent-dark.css +1 -0
- package/styles/daterangepicker/fluent.css +1 -0
- package/styles/daterangepicker/highcontrast-light.css +1 -0
- package/styles/daterangepicker/highcontrast.css +1 -0
- package/styles/daterangepicker/material-dark.css +1 -0
- package/styles/daterangepicker/material.css +1 -0
- package/styles/daterangepicker/tailwind-dark.css +1 -0
- package/styles/daterangepicker/tailwind.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
|
@@ -2568,7 +2568,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
|
|
|
2568
2568
|
if (!isNullOrUndefined(this.value)) {
|
|
2569
2569
|
this.setProperties({ value: this.value }, true);
|
|
2570
2570
|
}
|
|
2571
|
-
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate)
|
|
2571
|
+
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate) || this.previousDate == null
|
|
2572
2572
|
&& !isNaN(+this.value))) {
|
|
2573
2573
|
this.changeEvent(e);
|
|
2574
2574
|
}
|
|
@@ -4213,8 +4213,10 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4213
4213
|
this.trigger('navigated', this.navigatedArgs);
|
|
4214
4214
|
};
|
|
4215
4215
|
DatePicker.prototype.changeEvent = function (event) {
|
|
4216
|
-
if (
|
|
4216
|
+
if (!this.isIconClicked) {
|
|
4217
4217
|
this.selectCalendar(event);
|
|
4218
|
+
}
|
|
4219
|
+
if (((this.previousDate && this.previousDate.valueOf()) !== (this.value && this.value.valueOf()))) {
|
|
4218
4220
|
this.changedArgs.event = event ? event : null;
|
|
4219
4221
|
this.changedArgs.element = this.element;
|
|
4220
4222
|
this.changedArgs.isInteracted = this.isInteracted;
|
|
@@ -4228,6 +4230,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4228
4230
|
this.previousElementValue = this.inputElement.value;
|
|
4229
4231
|
this.errorClass();
|
|
4230
4232
|
}
|
|
4233
|
+
else if (event) {
|
|
4234
|
+
this.hide(event);
|
|
4235
|
+
}
|
|
4231
4236
|
};
|
|
4232
4237
|
DatePicker.prototype.requiredModules = function () {
|
|
4233
4238
|
var modules = [];
|
|
@@ -4316,7 +4321,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4316
4321
|
else {
|
|
4317
4322
|
var prevent_1 = true;
|
|
4318
4323
|
var outOfRange = void 0;
|
|
4319
|
-
if (!isNullOrUndefined(this.value) && !(+this.value >= +this.min && +this.value <= +this.max)) {
|
|
4324
|
+
if (!isNullOrUndefined(this.value) && !(+this.value >= +new Date(this.checkValue(this.min)) && +this.value <= +new Date(this.checkValue(this.max)))) {
|
|
4320
4325
|
outOfRange = new Date(this.checkValue(this.value));
|
|
4321
4326
|
this.setProperties({ 'value': null }, true);
|
|
4322
4327
|
}
|
|
@@ -12860,8 +12865,8 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12860
12865
|
return popupHeight > height ? height : popupHeight;
|
|
12861
12866
|
};
|
|
12862
12867
|
DateTimePicker.prototype.changeEvent = function (e) {
|
|
12868
|
+
_super.prototype.changeEvent.call(this, e);
|
|
12863
12869
|
if ((this.value && this.value.valueOf()) !== (this.previousDateTime && +this.previousDateTime.valueOf())) {
|
|
12864
|
-
_super.prototype.changeEvent.call(this, e);
|
|
12865
12870
|
this.valueWithMinutes = this.value;
|
|
12866
12871
|
this.setInputValue('date');
|
|
12867
12872
|
this.previousDateTime = this.value && new Date(+this.value);
|