@syncfusion/ej2-calendars 21.2.3 → 21.2.5
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/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 +18 -7
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +18 -7
- 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/package.json +12 -9
- package/src/calendar/islamic.js +12 -1
- package/src/datepicker/datepicker.js +1 -1
- package/src/timepicker/timepicker.js +5 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.5
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@21.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-WoHLfBHHttaf1VAPu7lgnzixnLDISqBJunBajQUDDS1rTn44iqcfJvJGFCdz1drCnOeFduQUOdKq5TVqTzWyiw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-calendars",
|
|
22
23
|
"/@syncfusion/ej2-charts",
|
|
23
24
|
"/@syncfusion/ej2-documenteditor",
|
|
24
25
|
"/@syncfusion/ej2-gantt",
|
|
@@ -27,10 +28,12 @@
|
|
|
27
28
|
"/@syncfusion/ej2-pdfviewer",
|
|
28
29
|
"/@syncfusion/ej2-pivotview",
|
|
29
30
|
"/@syncfusion/ej2-querybuilder",
|
|
30
|
-
"/@syncfusion/ej2-
|
|
31
|
+
"/@syncfusion/ej2-react-calendars",
|
|
32
|
+
"/@syncfusion/ej2-schedule",
|
|
33
|
+
"/@syncfusion/ej2-vue-calendars"
|
|
31
34
|
],
|
|
32
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-21.
|
|
33
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-21.2.4.tgz",
|
|
36
|
+
"_shasum": "0d6658a8b40d98712f34a71a12a34b8650662d59",
|
|
34
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
35
38
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
36
39
|
"author": {
|
|
@@ -42,10 +45,10 @@
|
|
|
42
45
|
"bundleDependencies": false,
|
|
43
46
|
"dependencies": {
|
|
44
47
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
45
|
-
"@syncfusion/ej2-buttons": "~21.2.
|
|
46
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
48
|
+
"@syncfusion/ej2-buttons": "~21.2.5",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~21.2.4",
|
|
47
50
|
"@syncfusion/ej2-lists": "~21.2.3",
|
|
48
|
-
"@syncfusion/ej2-popups": "~21.2.
|
|
51
|
+
"@syncfusion/ej2-popups": "~21.2.4"
|
|
49
52
|
},
|
|
50
53
|
"deprecated": false,
|
|
51
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.",
|
|
@@ -78,6 +81,6 @@
|
|
|
78
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
79
82
|
},
|
|
80
83
|
"typings": "index.d.ts",
|
|
81
|
-
"version": "21.2.
|
|
84
|
+
"version": "21.2.5",
|
|
82
85
|
"sideEffects": false
|
|
83
86
|
}
|
package/src/calendar/islamic.js
CHANGED
|
@@ -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.
|
|
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);
|
|
@@ -1311,7 +1311,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1311
1311
|
this.modal = null;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (Browser.isDevice) {
|
|
1314
|
-
if (!isNullOrUndefined(this.mobilePopupWrapper)) {
|
|
1314
|
+
if (!isNullOrUndefined(this.mobilePopupWrapper) && (prevent && (isNullOrUndefined(this.preventArgs) || !this.preventArgs.cancel))) {
|
|
1315
1315
|
this.mobilePopupWrapper.remove();
|
|
1316
1316
|
this.mobilePopupWrapper = null;
|
|
1317
1317
|
}
|
|
@@ -2352,7 +2352,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2352
2352
|
this.invalidValueString = null;
|
|
2353
2353
|
this.checkInvalidValue(newProp.value);
|
|
2354
2354
|
newProp.value = this.value;
|
|
2355
|
-
if (!this.invalidValueString
|
|
2355
|
+
if (!this.invalidValueString) {
|
|
2356
2356
|
if (typeof newProp.value === 'string') {
|
|
2357
2357
|
this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
|
|
2358
2358
|
newProp.value = this.value;
|
|
@@ -2365,14 +2365,14 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2365
2365
|
this.initValue = newProp.value;
|
|
2366
2366
|
newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
|
|
2367
2367
|
}
|
|
2368
|
-
else if (this.enableMask) {
|
|
2369
|
-
this.updateInputValue(this.maskedDateValue);
|
|
2370
|
-
this.checkErrorState(this.maskedDateValue);
|
|
2371
|
-
}
|
|
2372
2368
|
else {
|
|
2373
2369
|
this.updateInputValue(this.invalidValueString);
|
|
2374
2370
|
this.checkErrorState(this.invalidValueString);
|
|
2375
2371
|
}
|
|
2372
|
+
if (this.enableMask && isNullOrUndefined(newProp.value)) {
|
|
2373
|
+
this.updateInputValue(this.maskedDateValue);
|
|
2374
|
+
this.checkErrorState(this.maskedDateValue);
|
|
2375
|
+
}
|
|
2376
2376
|
this.checkValueChange(null, false);
|
|
2377
2377
|
if (this.isPopupOpen()) {
|
|
2378
2378
|
this.setScrollPosition();
|