@syncfusion/ej2-calendars 27.1.52 → 27.1.55
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 +23 -0
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +23 -0
- 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 +9 -9
- package/src/maskbase/masked-date-time.d.ts +2 -0
- package/src/maskbase/masked-date-time.js +24 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.1.
|
|
3
|
+
* version : 27.1.55
|
|
4
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
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@27.1.52",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-iQ86qDROqYqFxZUaO3x3+MlOUlu0MAuCcBYix+qICneAqcNVi4tCK/sW4l11uTTZ+keaeV+hv1OUWipuD30Zkg==",
|
|
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-27.1.
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-27.1.52.tgz",
|
|
35
|
+
"_shasum": "025c3258a584a7fe99ed416d9ac8708561631f53",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
37
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~27.1.
|
|
47
|
-
"@syncfusion/ej2-buttons": "~27.1.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~27.1.
|
|
46
|
+
"@syncfusion/ej2-base": "~27.1.55",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~27.1.53",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~27.1.55",
|
|
49
49
|
"@syncfusion/ej2-lists": "~27.1.50",
|
|
50
|
-
"@syncfusion/ej2-popups": "~27.1.
|
|
50
|
+
"@syncfusion/ej2-popups": "~27.1.55"
|
|
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": "27.1.
|
|
83
|
+
"version": "27.1.55",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L10n, getValue, getDefaultDateObject, cldrData } from '@syncfusion/ej2-base';
|
|
1
|
+
import { L10n, getValue, getDefaultDateObject, cldrData, Browser } from '@syncfusion/ej2-base';
|
|
2
2
|
var ARROWLEFT = 'ArrowLeft';
|
|
3
3
|
var ARROWRIGHT = 'ArrowRight';
|
|
4
4
|
var ARROWUP = 'ArrowUp';
|
|
@@ -709,18 +709,41 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
+
var scrollPositionY;
|
|
713
|
+
if (Browser.isDevice && (Browser.isIos || Browser.isIos7)) {
|
|
714
|
+
var scrollableParent = this.findScrollableParent(this.parent.inputElement);
|
|
715
|
+
scrollPositionY = scrollableParent ? scrollableParent.getBoundingClientRect().top : window.scrollY;
|
|
716
|
+
}
|
|
712
717
|
this.parent.inputElement.selectionStart = start;
|
|
713
718
|
this.validCharacterCheck();
|
|
714
719
|
if ((this.isNavigate || this.isDeletion) && !this.isDeleteKey) {
|
|
715
720
|
var isbackward = this.isNavigate ? false : true;
|
|
716
721
|
this.isNavigate = this.isDeletion = false;
|
|
717
722
|
this.navigateSelection(isbackward);
|
|
723
|
+
if (Browser.isDevice && (Browser.isIos || Browser.isIos7)) {
|
|
724
|
+
setTimeout(function () {
|
|
725
|
+
window.scrollTo(0, scrollPositionY);
|
|
726
|
+
}, 0);
|
|
727
|
+
}
|
|
718
728
|
}
|
|
719
729
|
if (this.isDeleteKey) {
|
|
720
730
|
this.isDeletion = false;
|
|
721
731
|
}
|
|
722
732
|
this.isDeleteKey = false;
|
|
723
733
|
};
|
|
734
|
+
MaskedDateTime.prototype.findScrollableParent = function (element) {
|
|
735
|
+
while (element) {
|
|
736
|
+
if (this.isScrollable(element)) {
|
|
737
|
+
return element;
|
|
738
|
+
}
|
|
739
|
+
element = element.parentElement;
|
|
740
|
+
}
|
|
741
|
+
return null;
|
|
742
|
+
};
|
|
743
|
+
MaskedDateTime.prototype.isScrollable = function (element) {
|
|
744
|
+
var overflowY = window.getComputedStyle(element).overflowY;
|
|
745
|
+
return element.scrollHeight > element.clientHeight && (overflowY === 'auto' || overflowY === 'scroll');
|
|
746
|
+
};
|
|
724
747
|
MaskedDateTime.prototype.navigateSelection = function (isbackward) {
|
|
725
748
|
var start = this.parent.inputElement.selectionStart;
|
|
726
749
|
var end = this.parent.inputElement.selectionEnd;
|