@syncfusion/ej2-calendars 23.1.36 → 23.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,7 +1,7 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.1.36
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
3
+ * version : 23.1.40
4
+ * Copyright Syncfusion Inc. 2001 - 2023. 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
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-calendars@*",
3
- "_id": "@syncfusion/ej2-calendars@18.30.19",
3
+ "_id": "@syncfusion/ej2-calendars@23.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-5BGAVBB7bje1ac5Con6z38AcEVebQTlUxlPBskT+GbrPfw8RPSwlnsNOt0OCZEQuyiy5pXLgad6ka3LcaAzxoA==",
5
+ "_integrity": "sha512-jUmTyN6zTDeL1om70MJKiekxOZbY6tXM1fYfH3y6+ZEvgIRxyUWPPHBfdPc4LFT3/v7ptW41xz2hFNRChGpGwA==",
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-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.30.19.tgz",
36
- "_shasum": "6b657c36e2467ee9128c8449d1d803c369d60170",
35
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-23.1.38.tgz",
36
+ "_shasum": "90cefe9bd143b98573a2ea79d67eb1890be915ef",
37
37
  "_spec": "@syncfusion/ej2-calendars@*",
38
38
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
39
39
  "author": {
@@ -44,11 +44,11 @@
44
44
  },
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
- "@syncfusion/ej2-base": "~23.1.36",
48
- "@syncfusion/ej2-buttons": "~23.1.36",
49
- "@syncfusion/ej2-inputs": "~23.1.36",
47
+ "@syncfusion/ej2-base": "~23.1.38",
48
+ "@syncfusion/ej2-buttons": "~23.1.39",
49
+ "@syncfusion/ej2-inputs": "~23.1.40",
50
50
  "@syncfusion/ej2-lists": "~23.1.36",
51
- "@syncfusion/ej2-popups": "~23.1.36"
51
+ "@syncfusion/ej2-popups": "~23.1.38"
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": "23.1.36",
84
+ "version": "23.1.40",
85
85
  "sideEffects": false
86
86
  }
@@ -858,6 +858,7 @@ var CalendarBase = /** @class */ (function (_super) {
858
858
  var dayLink = this.createElement('span');
859
859
  var localMonth = (value && (value).getMonth() === localDate.getMonth());
860
860
  var select = (value && (value).getFullYear() === yr && localMonth);
861
+ var title = this.globalize.formatDate(localDate, { type: 'date', format: 'MMM y' });
861
862
  dayLink.textContent = this.toCapitalize(this.globalize.formatDate(localDate, {
862
863
  format: null, type: 'dateTime', skeleton: 'MMM'
863
864
  }));
@@ -876,6 +877,7 @@ var CalendarBase = /** @class */ (function (_super) {
876
877
  localDate.setMonth(localDate.getMonth() + 1);
877
878
  if (!tdEle.classList.contains(DISABLED)) {
878
879
  EventHandler.add(tdEle, 'click', this.clickHandler, this);
880
+ dayLink.setAttribute('title', '' + title);
879
881
  }
880
882
  tdEle.appendChild(dayLink);
881
883
  tdEles.push(tdEle);
@@ -934,6 +936,7 @@ var CalendarBase = /** @class */ (function (_super) {
934
936
  }
935
937
  if (!tdEle.classList.contains(DISABLED)) {
936
938
  EventHandler.add(tdEle, 'click', this.clickHandler, this);
939
+ dayLink.setAttribute('title', '' + dayLink.textContent);
937
940
  }
938
941
  tdEle.appendChild(dayLink);
939
942
  tdEles.push(tdEle);
@@ -2291,7 +2294,7 @@ var Calendar = /** @class */ (function (_super) {
2291
2294
  this.islamicModule.islamicRenderTemplate(elements, count, classNm, e, this.value);
2292
2295
  }
2293
2296
  this.changedArgs = { value: this.value, values: this.values };
2294
- this.changeHandler();
2297
+ e && e.type === 'click' && e.currentTarget.classList.contains(OTHERMONTH) ? this.changeHandler(e) : this.changeHandler();
2295
2298
  };
2296
2299
  Calendar.prototype.clickHandler = function (e) {
2297
2300
  var eve = e.currentTarget;
@@ -176,7 +176,7 @@ var DatePicker = /** @class */ (function (_super) {
176
176
  var ariaAttrs = {
177
177
  'aria-atomic': 'true', 'aria-expanded': 'false',
178
178
  'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
179
- 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
179
+ 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false', 'aria-label': this.getModuleName()
180
180
  };
181
181
  if (this.getModuleName() === 'datepicker') {
182
182
  var l10nLocale = { placeholder: this.placeholder };
@@ -926,10 +926,10 @@ var DatePicker = /** @class */ (function (_super) {
926
926
  }
927
927
  else {
928
928
  if (this.calendarMode === 'Gregorian') {
929
- formatOptions = { type: 'dateTime', skeleton: 'yMd' };
929
+ formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd' };
930
930
  }
931
931
  else {
932
- formatOptions = { type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
932
+ formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
933
933
  }
934
934
  date = this.globalize.parseDate(this.inputElement.value, formatOptions);
935
935
  }
@@ -993,7 +993,7 @@ var DatePicker = /** @class */ (function (_super) {
993
993
  targetType: 'container',
994
994
  enableRtl: this.enableRtl,
995
995
  zIndex: this.zIndex,
996
- collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : { X: 'flip', Y: 'flip' },
996
+ collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : (this.enableRtl ? { X: 'fit', Y: 'flip' } : { X: 'flip', Y: 'flip' }),
997
997
  open: function () {
998
998
  if (Browser.isDevice && _this.fullScreenMode) {
999
999
  _this.iconRight = parseInt(window.getComputedStyle(_this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;
@@ -1475,7 +1475,7 @@ var DatePicker = /** @class */ (function (_super) {
1475
1475
  var ariaAttrs = {
1476
1476
  'aria-atomic': 'true', 'aria-disabled': 'true',
1477
1477
  'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
1478
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
1478
+ 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-label': this.getModuleName()
1479
1479
  };
1480
1480
  if (this.inputElement) {
1481
1481
  Input.removeAttributes(ariaAttrs, this.inputElement);
@@ -198,6 +198,12 @@ var DateTimePicker = /** @class */ (function (_super) {
198
198
  this.cloneElement = this.element.cloneNode(true);
199
199
  this.dateTimeFormat = this.cldrDateTimeFormat();
200
200
  this.initValue = this.value;
201
+ if (typeof (this.min) === 'string') {
202
+ this.min = this.checkDateValue(new Date(this.min));
203
+ }
204
+ if (typeof (this.max) === 'string') {
205
+ this.max = this.checkDateValue(new Date(this.max));
206
+ }
201
207
  if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
202
208
  this.enabled = false;
203
209
  }