@syncfusion/ej2-calendars 29.1.35 → 29.1.40

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 : 29.1.35
3
+ * version : 29.1.40
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@29.1.33",
3
+ "_id": "@syncfusion/ej2-calendars@29.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-jY5xeM6XhYDIMFAa0spg1RdBqr1KkxM7e4ukeqXSjqg1ml2CrMmmZm1LQXnUTS4lVsuHjh5zkSakzx3Q37bxYA==",
5
+ "_integrity": "sha512-5woE70fW8DIMAmH8vCbnd9mGc642S+Tojbu3FHIFmFvOwAPh6pVwSTj/N/z4HHeEARbipqL0zzfT64mPXwSjmg==",
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-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-29.1.33.tgz",
35
- "_shasum": "79eb04160dcb944b85380bfc8b68c9b9c336f5cb",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-29.1.39.tgz",
35
+ "_shasum": "a698ce9fcd55b0dbe539df462a1b00e0ce2718b5",
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.35",
46
+ "@syncfusion/ej2-base": "~29.1.36",
47
47
  "@syncfusion/ej2-buttons": "~29.1.34",
48
- "@syncfusion/ej2-inputs": "~29.1.34",
49
- "@syncfusion/ej2-lists": "~29.1.34",
50
- "@syncfusion/ej2-popups": "~29.1.35"
48
+ "@syncfusion/ej2-inputs": "~29.1.39",
49
+ "@syncfusion/ej2-lists": "~29.1.40",
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.35",
83
+ "version": "29.1.40",
84
84
  "sideEffects": false
85
85
  }
@@ -227,7 +227,7 @@ var CalendarBase = /** @class */ (function (_super) {
227
227
  'aria-label': 'next month'
228
228
  };
229
229
  var ariaTitleAttrs = {
230
- 'aria-atomic': 'true', 'aria-live': 'assertive', 'aria-label': 'title'
230
+ 'aria-atomic': 'true', 'aria-live': 'assertive'
231
231
  };
232
232
  var tabIndexAttr = { 'tabindex': '0' };
233
233
  this.headerElement = this.createElement('div', { className: HEADER });
@@ -1049,7 +1049,7 @@ var CalendarBase = /** @class */ (function (_super) {
1049
1049
  value = date.valueOf();
1050
1050
  }
1051
1051
  var attrs = {
1052
- className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
1052
+ className: CELL, attrs: { 'id': '' + getUniqueID('' + value) }
1053
1053
  };
1054
1054
  return this.createElement('td', attrs);
1055
1055
  };
@@ -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
- tempValueString = this.globalize.formatDate(tempValue, { type: 'date', skeleton: 'yMd' });
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
- tempValueString = this.globalize.formatDate(tempValue, { type: 'dateTime', skeleton: 'full', calendar: 'islamic' });
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
- if (+new Date(tempValueString) < +new Date(minString) ||
1450
- +new Date(tempValueString) > +new Date(maxString)) {
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
  }
@@ -118,6 +118,7 @@ var DatePicker = /** @class */ (function (_super) {
118
118
  timeZoneDiff = this.isDayLightSaving() ? timeZoneDiff-- : timeZoneDiff;
119
119
  this.value = new Date((this.value).getTime() + (timeZoneDiff * 60 * 60 * 1000));
120
120
  this.updateInput();
121
+ this.changeTrigger(null);
121
122
  }
122
123
  };
123
124
  DatePicker.prototype.isDayLightSaving = function () {
@@ -2724,7 +2724,6 @@ var DateRangePicker = /** @class */ (function (_super) {
2724
2724
  var labelContainer = this.createRangeHeader();
2725
2725
  headerContainer.appendChild(labelContainer);
2726
2726
  var daySpan = this.createElement('div', { className: DAYSPAN });
2727
- attributes(daySpan, { 'aria-label': 'Selected Days' });
2728
2727
  daySpan.textContent = this.l10n.getConstant('selectedDays');
2729
2728
  headerContainer.appendChild(daySpan);
2730
2729
  var separator = this.createElement('div', { className: SEPARATOR });
@@ -3492,8 +3491,11 @@ var DateRangePicker = /** @class */ (function (_super) {
3492
3491
  attributes(this.inputElement, {
3493
3492
  'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
3494
3493
  'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
3495
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
3494
+ 'autocapitalize': 'off', 'spellcheck': 'false'
3496
3495
  });
3496
+ if (Browser.isIos) {
3497
+ attributes(this.inputElement, { 'autocorrect': 'off' });
3498
+ }
3497
3499
  Input.addAttributes({ 'aria-label': 'select', 'role': 'button' }, this.inputWrapper.buttons[0]);
3498
3500
  // if (!isNullOrUndefined(this.placeholder) && this.placeholder.trim() !== '') {
3499
3501
  // Input.addAttributes({ 'aria-placeholder': this.placeholder }, this.inputElement);
@@ -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));