@syncfusion/ej2-calendars 28.1.39 → 28.1.41
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 +6 -5
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +6 -5
- 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 +6 -6
- package/src/maskbase/masked-date-time.js +6 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.1.
|
|
3
|
+
* version : 28.1.41
|
|
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@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@28.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-aUzCpwwRK5XWWssVF+GjqDuo+b6zdCZvMAe2dvDGhb5iERjrAvHONsbomAogMjHSZEjJnRGCEoA0wLcrCMOr9w==",
|
|
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-28.1.
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-28.1.39.tgz",
|
|
35
|
+
"_shasum": "4157a9cffcd7a839d122aee106a75a947d0482ac",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
37
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~28.1.33",
|
|
47
47
|
"@syncfusion/ej2-buttons": "~28.1.39",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~28.1.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~28.1.41",
|
|
49
49
|
"@syncfusion/ej2-lists": "~28.1.37",
|
|
50
50
|
"@syncfusion/ej2-popups": "~28.1.39"
|
|
51
51
|
},
|
|
@@ -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": "28.1.
|
|
83
|
+
"version": "28.1.41",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
|
@@ -290,7 +290,8 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
290
290
|
return;
|
|
291
291
|
}
|
|
292
292
|
this.isDayPart = true;
|
|
293
|
-
|
|
293
|
+
var maxDaysInMonth = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
|
|
294
|
+
this.dayTypeCount += (this.dayTypeCount === 0 && (parseInt(date + '0', 10) > maxDaysInMonth)) ? 2 : 1;
|
|
294
295
|
}
|
|
295
296
|
else {
|
|
296
297
|
this.isDayPart = false;
|
|
@@ -413,7 +414,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
413
414
|
newDateValue.setHours(Math.floor(newDateValue.getHours() / 12) * 12 + (this.hour % 12));
|
|
414
415
|
this.isNavigate = this.hour.toString().length === 2;
|
|
415
416
|
this.isHourPart = true;
|
|
416
|
-
this.hourTypeCount = this.hourTypeCount + 1;
|
|
417
|
+
this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 12)) ? 2 : this.hourTypeCount + 1;
|
|
417
418
|
break;
|
|
418
419
|
case 'H':
|
|
419
420
|
this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 &&
|
|
@@ -429,7 +430,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
429
430
|
newDateValue.setHours(this.hour);
|
|
430
431
|
this.isNavigate = this.hour.toString().length === 2;
|
|
431
432
|
this.isHourPart = true;
|
|
432
|
-
this.hourTypeCount = this.hourTypeCount + 1;
|
|
433
|
+
this.hourTypeCount = (this.hourTypeCount === 0 && this.hour && (parseInt(this.hour + '0', 10) > 23)) ? 2 : this.hourTypeCount + 1;
|
|
433
434
|
break;
|
|
434
435
|
case 'm':
|
|
435
436
|
{
|
|
@@ -446,7 +447,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
446
447
|
newDateValue.setMinutes(minutes);
|
|
447
448
|
this.isNavigate = minutes.toString().length === 2;
|
|
448
449
|
this.isMinutePart = true;
|
|
449
|
-
this.minuteTypeCount = this.minuteTypeCount + 1;
|
|
450
|
+
this.minuteTypeCount = (this.minuteTypeCount === 0 && (parseInt(minutes + '0', 10) > 59)) ? 2 : this.minuteTypeCount + 1;
|
|
450
451
|
break;
|
|
451
452
|
}
|
|
452
453
|
case 's':
|
|
@@ -464,7 +465,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
464
465
|
newDateValue.setSeconds(seconds);
|
|
465
466
|
this.isNavigate = seconds.toString().length === 2;
|
|
466
467
|
this.isSecondsPart = true;
|
|
467
|
-
this.secondTypeCount = this.secondTypeCount + 1;
|
|
468
|
+
this.secondTypeCount = (this.secondTypeCount === 0 && (parseInt(seconds + '0', 10) > 59)) ? 2 : this.secondTypeCount + 1;
|
|
468
469
|
break;
|
|
469
470
|
}
|
|
470
471
|
case 'a':
|