@syncfusion/ej2-calendars 21.2.4 → 21.2.6

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 : 21.2.4
3
+ * version : 21.2.6
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@21.2.3",
3
+ "_id": "@syncfusion/ej2-calendars@21.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-DItIO44g80ST3MRlnZY3MFwf0POIFovRqH9cLKKYhgRM/lz9OOHNhTszRPq1w+lltpneor18Pj0waGcwwf/AnA==",
5
+ "_integrity": "sha512-ppc0T53jivBeaNR1uw9jsLwFsJKBQqX5XJfrWMeYk+KAd96JhUK2qdze2VnGX9dzacZL4+oqcXLrOLGdmz2jcg==",
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-21.2.3.tgz",
36
- "_shasum": "dc29ecf160815791fea16ffbf6f632089ab52e39",
35
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-21.2.5.tgz",
36
+ "_shasum": "33e1c1cbf4198f2c7cdc9fd7d4ebc7f3cc2c3c79",
37
37
  "_spec": "@syncfusion/ej2-calendars@*",
38
38
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
39
39
  "author": {
@@ -45,9 +45,9 @@
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
47
  "@syncfusion/ej2-base": "~21.2.3",
48
- "@syncfusion/ej2-buttons": "~21.2.3",
49
- "@syncfusion/ej2-inputs": "~21.2.4",
50
- "@syncfusion/ej2-lists": "~21.2.3",
48
+ "@syncfusion/ej2-buttons": "~21.2.6",
49
+ "@syncfusion/ej2-inputs": "~21.2.6",
50
+ "@syncfusion/ej2-lists": "~21.2.6",
51
51
  "@syncfusion/ej2-popups": "~21.2.4"
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": "21.2.4",
84
+ "version": "21.2.6",
85
85
  "sideEffects": false
86
86
  }
@@ -297,6 +297,10 @@ var Islamic = /** @class */ (function () {
297
297
  var endFullYr = endYr.getFullYear();
298
298
  var startHdrYr = this.calendarInstance.globalize.formatDate(startYr, { type: 'dateTime', format: 'y', calendar: 'islamic' });
299
299
  var endHdrYr = this.calendarInstance.globalize.formatDate(endYr, { type: 'dateTime', format: 'y', calendar: 'islamic' });
300
+ if (this.calendarInstance.locale === 'ar') {
301
+ startHdrYr = Number(startHdrYr.replace(/[٠١٢٣٤٥٦٧٨٩]/g, function (d) { return String.fromCharCode(d.charCodeAt(0) - 1632 + 48); }));
302
+ endHdrYr = Number(endHdrYr.replace(/[٠١٢٣٤٥٦٧٨٩]/g, function (d) { return String.fromCharCode(d.charCodeAt(0) - 1632 + 48); }));
303
+ }
300
304
  var splityear = this.calendarInstance.headerElement.textContent.split('-');
301
305
  if ((!isNullOrUndefined(e) && (splityear[0] !== startHdrYr) && e.action === 'home') || (!isNullOrUndefined(e) && e.type === 'keydown' && e.action === 'end')) {
302
306
  startHdrYr = this.calendarInstance.headerElement.textContent.split('-')[0].trim();
@@ -358,7 +362,14 @@ var Islamic = /** @class */ (function () {
358
362
  ? (parseInt(endHdrYr, 10) + 2).toString() : endHdrYr - startHdrYr === 8
359
363
  ? (parseInt(endHdrYr, 10) + 1).toString() : endHdrYr;
360
364
  }
361
- this.calendarInstance.headerTitleElement.textContent = startHdrYr + ' - ' + (endHdrYr);
365
+ if (this.calendarInstance.locale === 'ar') {
366
+ var startHeaderYear = this.calendarInstance.globalize.formatDate(startYr, { type: 'dateTime', format: 'y', calendar: 'islamic' });
367
+ var endHeaderYear = this.calendarInstance.globalize.formatDate(endYr, { type: 'dateTime', format: 'y', calendar: 'islamic' });
368
+ this.calendarInstance.headerTitleElement.textContent = startHeaderYear + ' - ' + (endHeaderYear);
369
+ }
370
+ else {
371
+ this.calendarInstance.headerTitleElement.textContent = startHdrYr + ' - ' + (endHdrYr);
372
+ }
362
373
  this.calendarInstance.nextIconClicked = this.calendarInstance.previousIconClicked = false;
363
374
  var year = (parseInt(startHdrYr, 10) - 2).toString();
364
375
  startFullYr = Math.round(parseInt(startHdrYr, 10) * 0.97 + 622);
@@ -526,7 +526,6 @@ var TimePicker = /** @class */ (function (_super) {
526
526
  this.generateList();
527
527
  append([this.listWrapper], this.popupWrapper);
528
528
  }
529
- this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
530
529
  this.addSelection();
531
530
  this.renderPopup();
532
531
  detach(this.popupWrapper);
@@ -2352,7 +2351,7 @@ var TimePicker = /** @class */ (function (_super) {
2352
2351
  this.invalidValueString = null;
2353
2352
  this.checkInvalidValue(newProp.value);
2354
2353
  newProp.value = this.value;
2355
- if (!this.invalidValueString && !this.enableMask) {
2354
+ if (!this.invalidValueString) {
2356
2355
  if (typeof newProp.value === 'string') {
2357
2356
  this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
2358
2357
  newProp.value = this.value;
@@ -2365,14 +2364,14 @@ var TimePicker = /** @class */ (function (_super) {
2365
2364
  this.initValue = newProp.value;
2366
2365
  newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
2367
2366
  }
2368
- else if (this.enableMask) {
2369
- this.updateInputValue(this.maskedDateValue);
2370
- this.checkErrorState(this.maskedDateValue);
2371
- }
2372
2367
  else {
2373
2368
  this.updateInputValue(this.invalidValueString);
2374
2369
  this.checkErrorState(this.invalidValueString);
2375
2370
  }
2371
+ if (this.enableMask && isNullOrUndefined(newProp.value)) {
2372
+ this.updateInputValue(this.maskedDateValue);
2373
+ this.checkErrorState(this.maskedDateValue);
2374
+ }
2376
2375
  this.checkValueChange(null, false);
2377
2376
  if (this.isPopupOpen()) {
2378
2377
  this.setScrollPosition();