@syncfusion/ej2-calendars 22.1.34 → 22.1.38
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/CHANGELOG.md +2 -0
- 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 +17 -4
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +17 -4
- 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/datepicker/datepicker.js +11 -2
- package/src/daterangepicker/daterangepicker.js +5 -1
- package/src/timepicker/timepicker.js +1 -1
- package/styles/bootstrap-dark.css +0 -30
- package/styles/bootstrap.css +0 -30
- package/styles/bootstrap4.css +0 -30
- package/styles/bootstrap5-dark.css +0 -30
- package/styles/bootstrap5.css +0 -30
- package/styles/calendar/_fabric-dark-definition.scss +1 -1
- package/styles/calendar/_fabric-definition.scss +1 -1
- package/styles/calendar/_highcontrast-definition.scss +1 -1
- package/styles/calendar/_highcontrast-light-definition.scss +1 -1
- package/styles/calendar/fabric-dark.css +1 -1
- package/styles/calendar/fabric.css +1 -1
- package/styles/calendar/highcontrast-light.css +1 -1
- package/styles/calendar/highcontrast.css +1 -1
- package/styles/daterangepicker/_highcontrast-definition.scss +1 -1
- package/styles/daterangepicker/_highcontrast-light-definition.scss +1 -1
- package/styles/daterangepicker/_layout.scss +0 -28
- package/styles/daterangepicker/_material3-definition.scss +1 -1
- package/styles/daterangepicker/bootstrap-dark.css +0 -30
- package/styles/daterangepicker/bootstrap.css +0 -30
- package/styles/daterangepicker/bootstrap4.css +0 -30
- package/styles/daterangepicker/bootstrap5-dark.css +0 -30
- package/styles/daterangepicker/bootstrap5.css +0 -30
- package/styles/daterangepicker/fabric-dark.css +0 -30
- package/styles/daterangepicker/fabric.css +0 -30
- package/styles/daterangepicker/fluent-dark.css +0 -30
- package/styles/daterangepicker/fluent.css +0 -30
- package/styles/daterangepicker/highcontrast-light.css +2 -32
- package/styles/daterangepicker/highcontrast.css +2 -32
- package/styles/daterangepicker/material-dark.css +0 -30
- package/styles/daterangepicker/material.css +0 -30
- package/styles/daterangepicker/material3-dark.css +1 -31
- package/styles/daterangepicker/material3.css +1 -31
- package/styles/daterangepicker/tailwind-dark.css +0 -30
- package/styles/daterangepicker/tailwind.css +0 -30
- package/styles/fabric-dark.css +1 -31
- package/styles/fabric.css +1 -31
- package/styles/fluent-dark.css +0 -30
- package/styles/fluent.css +0 -30
- package/styles/highcontrast-light.css +3 -33
- package/styles/highcontrast.css +3 -33
- package/styles/material-dark.css +0 -30
- package/styles/material.css +0 -30
- package/styles/material3-dark.css +1 -31
- package/styles/material3.css +1 -31
- package/styles/tailwind-dark.css +0 -30
- package/styles/tailwind.css +0 -30
|
@@ -3303,7 +3303,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3303
3303
|
this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
|
|
3304
3304
|
}
|
|
3305
3305
|
if (this.fullScreenMode && Browser.isDevice) {
|
|
3306
|
-
this.cssClass
|
|
3306
|
+
this.cssClass += ' ' + "e-popup-expand";
|
|
3307
3307
|
}
|
|
3308
3308
|
let updatedCssClassValues = this.cssClass;
|
|
3309
3309
|
if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
|
|
@@ -3986,11 +3986,13 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
strictModeUpdate() {
|
|
3988
3988
|
let format;
|
|
3989
|
+
let pattern = /^y/;
|
|
3990
|
+
let charPattern = /[^a-zA-Z]/;
|
|
3989
3991
|
let formatOptions;
|
|
3990
3992
|
if (this.getModuleName() === 'datetimepicker') {
|
|
3991
3993
|
format = !isNullOrUndefined(this.formatString) ? this.formatString : this.dateTimeFormat;
|
|
3992
3994
|
}
|
|
3993
|
-
else {
|
|
3995
|
+
else if (!pattern.test(this.formatString) || charPattern.test(this.formatString)) {
|
|
3994
3996
|
format = isNullOrUndefined(this.formatString) ? this.formatString : this.formatString.replace('dd', 'd');
|
|
3995
3997
|
}
|
|
3996
3998
|
if (!isNullOrUndefined(format)) {
|
|
@@ -3999,6 +4001,9 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3999
4001
|
format = format.replace('MM', 'M');
|
|
4000
4002
|
}
|
|
4001
4003
|
}
|
|
4004
|
+
else {
|
|
4005
|
+
format = this.formatString;
|
|
4006
|
+
}
|
|
4002
4007
|
let dateOptions;
|
|
4003
4008
|
if (this.getModuleName() === 'datetimepicker') {
|
|
4004
4009
|
if (this.calendarMode === 'Gregorian') {
|
|
@@ -4411,6 +4416,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
4411
4416
|
addClass(this.inputWrapper.buttons, ACTIVE);
|
|
4412
4417
|
this.preventArgs.appendTo.appendChild(this.popupWrapper);
|
|
4413
4418
|
this.popupObj.refreshPosition(this.inputElement);
|
|
4419
|
+
const popupLeft = parseFloat(this.popupWrapper.style.left) - (this.popupWrapper.offsetWidth - this.inputWrapper.container.offsetWidth);
|
|
4414
4420
|
const openAnimation = {
|
|
4415
4421
|
name: 'FadeIn',
|
|
4416
4422
|
duration: Browser.isDevice ? 0 : OPENDURATION
|
|
@@ -4424,6 +4430,9 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
4424
4430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4425
4431
|
super.setOverlayIndex(this.mobilePopupWrapper, this.popupObj.element, this.modal, Browser.isDevice);
|
|
4426
4432
|
this.setAriaAttributes();
|
|
4433
|
+
if (this.enableRtl && popupLeft > 0) {
|
|
4434
|
+
this.popupWrapper.style.left = popupLeft + "px";
|
|
4435
|
+
}
|
|
4427
4436
|
}
|
|
4428
4437
|
else {
|
|
4429
4438
|
this.popupObj.destroy();
|
|
@@ -8160,6 +8169,10 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
8160
8169
|
else {
|
|
8161
8170
|
this.inputElement.removeAttribute('aria-activedescendant');
|
|
8162
8171
|
}
|
|
8172
|
+
if (this.enableRtl) {
|
|
8173
|
+
const popupLeft = parseFloat(this.popupWrapper.style.left) - (this.popupWrapper.offsetWidth - this.inputWrapper.container.offsetWidth);
|
|
8174
|
+
this.popupWrapper.style.left = popupLeft > 0 ? popupLeft + "px" : this.popupWrapper.style.left;
|
|
8175
|
+
}
|
|
8163
8176
|
addClass([this.inputWrapper.buttons[0]], ACTIVE$1);
|
|
8164
8177
|
if (!this.isMobile) {
|
|
8165
8178
|
if (this.cancelButton) {
|
|
@@ -8536,7 +8549,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
8536
8549
|
}
|
|
8537
8550
|
createInput() {
|
|
8538
8551
|
if (this.fullScreenMode && this.isMobile) {
|
|
8539
|
-
this.cssClass
|
|
8552
|
+
this.cssClass += ' ' + "e-popup-expand";
|
|
8540
8553
|
}
|
|
8541
8554
|
let updatedCssClassValue = this.cssClass;
|
|
8542
8555
|
if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
|
|
@@ -10037,7 +10050,7 @@ let TimePicker = class TimePicker extends Component {
|
|
|
10037
10050
|
}
|
|
10038
10051
|
createInputElement() {
|
|
10039
10052
|
if (this.fullScreenMode && Browser.isDevice) {
|
|
10040
|
-
this.cssClass
|
|
10053
|
+
this.cssClass += ' ' + "e-popup-expand";
|
|
10041
10054
|
}
|
|
10042
10055
|
let updatedCssClassesValue = this.cssClass;
|
|
10043
10056
|
const isBindClearAction = this.enableMask ? false : true;
|