@syncfusion/ej2-calendars 26.2.8 → 26.2.11

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.
Files changed (64) hide show
  1. package/dist/ej2-calendars.min.js +2 -2
  2. package/dist/ej2-calendars.umd.min.js +2 -2
  3. package/dist/ej2-calendars.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-calendars.es2015.js +30 -14
  5. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es5.js +30 -14
  7. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  8. package/dist/global/ej2-calendars.min.js +2 -2
  9. package/dist/global/ej2-calendars.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +10 -10
  12. package/src/daterangepicker/daterangepicker.js +18 -3
  13. package/src/datetimepicker/datetimepicker.d.ts +1 -0
  14. package/src/datetimepicker/datetimepicker.js +12 -11
  15. package/styles/bootstrap-dark.css +28 -0
  16. package/styles/bootstrap.css +28 -0
  17. package/styles/bootstrap4.css +28 -0
  18. package/styles/bootstrap5-dark.css +28 -0
  19. package/styles/bootstrap5.css +28 -0
  20. package/styles/calendar/fluent2.css +3 -1031
  21. package/styles/calendar/material3-dark.css +1 -54
  22. package/styles/calendar/material3.css +2 -109
  23. package/styles/datepicker/fluent2.css +3 -1031
  24. package/styles/datepicker/material3-dark.css +1 -54
  25. package/styles/datepicker/material3.css +2 -109
  26. package/styles/daterangepicker/fluent2.css +3 -1031
  27. package/styles/daterangepicker/material3-dark.css +1 -54
  28. package/styles/daterangepicker/material3.css +2 -109
  29. package/styles/datetimepicker/_layout.scss +20 -0
  30. package/styles/datetimepicker/bootstrap-dark.css +28 -0
  31. package/styles/datetimepicker/bootstrap.css +28 -0
  32. package/styles/datetimepicker/bootstrap4.css +28 -0
  33. package/styles/datetimepicker/bootstrap5-dark.css +28 -0
  34. package/styles/datetimepicker/bootstrap5.css +28 -0
  35. package/styles/datetimepicker/fabric-dark.css +28 -0
  36. package/styles/datetimepicker/fabric.css +28 -0
  37. package/styles/datetimepicker/fluent-dark.css +28 -0
  38. package/styles/datetimepicker/fluent.css +28 -0
  39. package/styles/datetimepicker/fluent2.css +31 -1031
  40. package/styles/datetimepicker/highcontrast-light.css +28 -0
  41. package/styles/datetimepicker/highcontrast.css +28 -0
  42. package/styles/datetimepicker/material-dark.css +28 -0
  43. package/styles/datetimepicker/material.css +28 -0
  44. package/styles/datetimepicker/material3-dark.css +29 -54
  45. package/styles/datetimepicker/material3.css +30 -109
  46. package/styles/datetimepicker/tailwind-dark.css +28 -0
  47. package/styles/datetimepicker/tailwind.css +28 -0
  48. package/styles/fabric-dark.css +28 -0
  49. package/styles/fabric.css +28 -0
  50. package/styles/fluent-dark.css +28 -0
  51. package/styles/fluent.css +28 -0
  52. package/styles/fluent2.css +31 -1031
  53. package/styles/highcontrast-light.css +28 -0
  54. package/styles/highcontrast.css +28 -0
  55. package/styles/material-dark.css +28 -0
  56. package/styles/material.css +28 -0
  57. package/styles/material3-dark.css +29 -54
  58. package/styles/material3.css +31 -110
  59. package/styles/tailwind-dark.css +28 -0
  60. package/styles/tailwind.css +28 -0
  61. package/styles/timepicker/fluent2.css +3 -1031
  62. package/styles/timepicker/material3-dark.css +1 -54
  63. package/styles/timepicker/material3.css +2 -109
  64. package/hotfix/26.1.35_Vol2.txt +0 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.8
3
+ * version : 26.2.11
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@26.2.5",
3
+ "_id": "@syncfusion/ej2-calendars@26.2.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-V3bxc1is5hIgtd/3BjqWy8D5SkLTW1CpuJqoVMuoxHcwxdwQd32u48Gl/2QOw4ZKF/VVIWs76F3N7A5cyQw4EA==",
5
+ "_integrity": "sha512-wN7zqhweAP3NbCHYtSTvBL3hy9leNRnqxbwVPNOK8Z/hUUwat5Ec/AZdbbj5VOz51nqWhu00TAItN1O+R4drkA==",
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-26.2.5.tgz",
35
- "_shasum": "08ac9959d035192a8140d143b81c88451cea7031",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-26.2.10.tgz",
35
+ "_shasum": "1ab9bf50a93d12e92345c8eb81d1d7afeb524954",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
38
38
  "author": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~26.2.5",
47
- "@syncfusion/ej2-buttons": "~26.2.8",
48
- "@syncfusion/ej2-inputs": "~26.2.5",
49
- "@syncfusion/ej2-lists": "~26.2.5",
50
- "@syncfusion/ej2-popups": "~26.2.8"
46
+ "@syncfusion/ej2-base": "~26.2.10",
47
+ "@syncfusion/ej2-buttons": "~26.2.10",
48
+ "@syncfusion/ej2-inputs": "~26.2.11",
49
+ "@syncfusion/ej2-lists": "~26.2.11",
50
+ "@syncfusion/ej2-popups": "~26.2.11"
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": "26.2.8",
83
+ "version": "26.2.11",
84
84
  "sideEffects": false
85
85
  }
@@ -1059,12 +1059,15 @@ var DateRangePicker = /** @class */ (function (_super) {
1059
1059
  if (this.depth === 'Month') {
1060
1060
  return this.globalize.parseDate(range[isEnd ? 1 : 0].trim(), dateOptions);
1061
1061
  }
1062
- else if (this.depth === 'Year') {
1062
+ else if (this.depth === 'Year' && !isNullOrUndefined(date)) {
1063
1063
  return new Date(date.getFullYear(), date.getMonth() + (isEnd ? 1 : 0), isEnd ? 0 : 1);
1064
1064
  }
1065
- else {
1065
+ else if (!isNullOrUndefined(date)) {
1066
1066
  return new Date(date.getFullYear(), isEnd ? 11 : 0, isEnd ? 31 : 1);
1067
1067
  }
1068
+ else {
1069
+ return null;
1070
+ }
1068
1071
  };
1069
1072
  DateRangePicker.prototype.clearRange = function () {
1070
1073
  this.previousStartValue = this.previousEndValue = null;
@@ -1924,7 +1927,7 @@ var DateRangePicker = /** @class */ (function (_super) {
1924
1927
  };
1925
1928
  DateRangePicker.prototype.updateMinMaxDays = function (calendar) {
1926
1929
  if ((!isNullOrUndefined(this.startValue) && isNullOrUndefined(this.endValue)) ||
1927
- (this.isMobile && this.endButton.element.classList.contains(ACTIVE))) {
1930
+ (this.isMobile && this.endButton && this.endButton.element.classList.contains(ACTIVE))) {
1928
1931
  if ((!isNullOrUndefined(this.minDays) && this.minDays > 0) || (!isNullOrUndefined(this.maxDays) && this.maxDays > 0)) {
1929
1932
  var startValueSelected = this.removeTimeValueFromDate(this.startValue);
1930
1933
  var minDate = new Date(new Date(+startValueSelected).setDate(startValueSelected.getDate() + (this.minDays - 1)));
@@ -3097,6 +3100,18 @@ var DateRangePicker = /** @class */ (function (_super) {
3097
3100
  if (!isUndefined(_this.presets[0].start && _this.presets[0].end && _this.presets[0].label)) {
3098
3101
  _this.unWireListEvents();
3099
3102
  }
3103
+ if (_this.applyButton) {
3104
+ _this.applyButton.destroy();
3105
+ }
3106
+ if (_this.cancelButton) {
3107
+ _this.cancelButton.destroy();
3108
+ }
3109
+ if (_this.isMobile && _this.endButton) {
3110
+ _this.endButton.destroy();
3111
+ }
3112
+ if (_this.isMobile && _this.startButton) {
3113
+ _this.startButton.destroy();
3114
+ }
3100
3115
  if (!isNullOrUndefined(_this.popupObj)) {
3101
3116
  if (!isNullOrUndefined(_this.popupObj.element.parentElement)) {
3102
3117
  detach(_this.popupObj.element);
@@ -33,6 +33,7 @@ export declare class DateTimePicker extends DatePicker {
33
33
  private containerStyle;
34
34
  private popupObject;
35
35
  protected timeModal: HTMLElement;
36
+ protected modelWrapper: HTMLElement;
36
37
  private isNavigate;
37
38
  protected isPreventBlur: boolean;
38
39
  private timeValue;
@@ -578,11 +578,6 @@ var DateTimePicker = /** @class */ (function (_super) {
578
578
  if (Browser.isDevice && this.fullScreenMode) {
579
579
  this.dateTimeWrapper.style.left = '0px';
580
580
  }
581
- if (Browser.isDevice) {
582
- var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
583
- dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
584
- this.timeModal.appendChild(dlgOverlay);
585
- }
586
581
  }
587
582
  }
588
583
  };
@@ -651,6 +646,14 @@ var DateTimePicker = /** @class */ (function (_super) {
651
646
  this.timeModal.style.display = 'block';
652
647
  document.body.appendChild(this.timeModal);
653
648
  }
649
+ if (Browser.isDevice) {
650
+ this.modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
651
+ this.modelWrapper.appendChild(this.dateTimeWrapper);
652
+ var dlgOverlay = createElement('div', { className: 'e-dlg-overlay' });
653
+ dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
654
+ this.modelWrapper.appendChild(dlgOverlay);
655
+ document.body.appendChild(this.modelWrapper);
656
+ }
654
657
  var offset = 4;
655
658
  this.popupObject = new Popup(this.dateTimeWrapper, {
656
659
  width: this.setPopupWidth(),
@@ -679,6 +682,9 @@ var DateTimePicker = /** @class */ (function (_super) {
679
682
  remove(_this.popupObject.element);
680
683
  _this.popupObject.destroy();
681
684
  _this.dateTimeWrapper.innerHTML = '';
685
+ if (_this.modelWrapper) {
686
+ remove(_this.modelWrapper);
687
+ }
682
688
  _this.listWrapper = _this.dateTimeWrapper = undefined;
683
689
  if (_this.inputEvent) {
684
690
  _this.inputEvent.destroy();
@@ -690,7 +696,6 @@ var DateTimePicker = /** @class */ (function (_super) {
690
696
  }
691
697
  });
692
698
  if (Browser.isDevice && this.fullScreenMode) {
693
- this.popupObject.element.style.display = 'flex';
694
699
  this.popupObject.element.style.maxHeight = '100%';
695
700
  this.popupObject.element.style.width = '100%';
696
701
  }
@@ -698,18 +703,14 @@ var DateTimePicker = /** @class */ (function (_super) {
698
703
  this.popupObject.element.style.maxHeight = POPUPDIMENSION;
699
704
  }
700
705
  if (Browser.isDevice && this.fullScreenMode) {
701
- var modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
702
706
  var modelHeader = this.createElement('div', { className: 'e-model-header' });
703
707
  var modelTitleSpan = this.createElement('span', { className: 'e-model-title' });
704
708
  modelTitleSpan.textContent = 'Select time';
705
709
  var modelCloseIcon = this.createElement('span', { className: 'e-popup-close' });
706
710
  EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.dateTimeCloseHandler, this);
707
- var timeContent = this.dateTimeWrapper.querySelector('.e-content');
708
711
  modelHeader.appendChild(modelCloseIcon);
709
712
  modelHeader.appendChild(modelTitleSpan);
710
- modelWrapper.appendChild(modelHeader);
711
- modelWrapper.appendChild(timeContent);
712
- this.dateTimeWrapper.insertBefore(modelWrapper, this.dateTimeWrapper.firstElementChild);
713
+ this.dateTimeWrapper.insertBefore(modelHeader, this.dateTimeWrapper.firstElementChild);
713
714
  }
714
715
  };
715
716
  DateTimePicker.prototype.dateTimeCloseHandler = function (e) {
@@ -2883,6 +2883,34 @@ ejs-calendar {
2883
2883
  margin: 0;
2884
2884
  }
2885
2885
 
2886
+ .e-datetime-mob-popup-wrap {
2887
+ -webkit-box-align: center;
2888
+ -ms-flex-align: center;
2889
+ align-items: center;
2890
+ display: -webkit-box;
2891
+ display: -ms-flexbox;
2892
+ display: flex;
2893
+ -webkit-box-orient: vertical;
2894
+ -webkit-box-direction: normal;
2895
+ -ms-flex-direction: column;
2896
+ flex-direction: column;
2897
+ height: 100%;
2898
+ -webkit-box-pack: center;
2899
+ -ms-flex-pack: center;
2900
+ justify-content: center;
2901
+ left: 0;
2902
+ max-height: 100%;
2903
+ position: fixed;
2904
+ top: 0;
2905
+ width: 100%;
2906
+ z-index: 1002;
2907
+ }
2908
+ .e-datetime-mob-popup-wrap .e-datetimepicker.e-popup.e-lib.e-control.e-popup-open {
2909
+ left: 0 !important; /* stylelint-disable-line declaration-no-important */
2910
+ position: relative;
2911
+ top: 0 !important; /* stylelint-disable-line declaration-no-important */
2912
+ }
2913
+
2886
2914
  .e-datetimepicker.e-time-modal {
2887
2915
  background-color: rgba(26, 26, 26, 0.6);
2888
2916
  height: 100%;
@@ -2889,6 +2889,34 @@ ejs-calendar {
2889
2889
  margin: 0;
2890
2890
  }
2891
2891
 
2892
+ .e-datetime-mob-popup-wrap {
2893
+ -webkit-box-align: center;
2894
+ -ms-flex-align: center;
2895
+ align-items: center;
2896
+ display: -webkit-box;
2897
+ display: -ms-flexbox;
2898
+ display: flex;
2899
+ -webkit-box-orient: vertical;
2900
+ -webkit-box-direction: normal;
2901
+ -ms-flex-direction: column;
2902
+ flex-direction: column;
2903
+ height: 100%;
2904
+ -webkit-box-pack: center;
2905
+ -ms-flex-pack: center;
2906
+ justify-content: center;
2907
+ left: 0;
2908
+ max-height: 100%;
2909
+ position: fixed;
2910
+ top: 0;
2911
+ width: 100%;
2912
+ z-index: 1002;
2913
+ }
2914
+ .e-datetime-mob-popup-wrap .e-datetimepicker.e-popup.e-lib.e-control.e-popup-open {
2915
+ left: 0 !important; /* stylelint-disable-line declaration-no-important */
2916
+ position: relative;
2917
+ top: 0 !important; /* stylelint-disable-line declaration-no-important */
2918
+ }
2919
+
2892
2920
  .e-datetimepicker.e-time-modal {
2893
2921
  background-color: rgba(0, 0, 0, 0.6);
2894
2922
  height: 100%;
@@ -2915,6 +2915,34 @@ ejs-calendar {
2915
2915
  margin: 0;
2916
2916
  }
2917
2917
 
2918
+ .e-datetime-mob-popup-wrap {
2919
+ -webkit-box-align: center;
2920
+ -ms-flex-align: center;
2921
+ align-items: center;
2922
+ display: -webkit-box;
2923
+ display: -ms-flexbox;
2924
+ display: flex;
2925
+ -webkit-box-orient: vertical;
2926
+ -webkit-box-direction: normal;
2927
+ -ms-flex-direction: column;
2928
+ flex-direction: column;
2929
+ height: 100%;
2930
+ -webkit-box-pack: center;
2931
+ -ms-flex-pack: center;
2932
+ justify-content: center;
2933
+ left: 0;
2934
+ max-height: 100%;
2935
+ position: fixed;
2936
+ top: 0;
2937
+ width: 100%;
2938
+ z-index: 1002;
2939
+ }
2940
+ .e-datetime-mob-popup-wrap .e-datetimepicker.e-popup.e-lib.e-control.e-popup-open {
2941
+ left: 0 !important; /* stylelint-disable-line declaration-no-important */
2942
+ position: relative;
2943
+ top: 0 !important; /* stylelint-disable-line declaration-no-important */
2944
+ }
2945
+
2918
2946
  .e-datetimepicker.e-time-modal {
2919
2947
  background-color: rgba(0, 0, 0, 0.15);
2920
2948
  height: 100%;
@@ -3046,6 +3046,34 @@ ejs-calendar {
3046
3046
  margin: 0;
3047
3047
  }
3048
3048
 
3049
+ .e-datetime-mob-popup-wrap {
3050
+ -webkit-box-align: center;
3051
+ -ms-flex-align: center;
3052
+ align-items: center;
3053
+ display: -webkit-box;
3054
+ display: -ms-flexbox;
3055
+ display: flex;
3056
+ -webkit-box-orient: vertical;
3057
+ -webkit-box-direction: normal;
3058
+ -ms-flex-direction: column;
3059
+ flex-direction: column;
3060
+ height: 100%;
3061
+ -webkit-box-pack: center;
3062
+ -ms-flex-pack: center;
3063
+ justify-content: center;
3064
+ left: 0;
3065
+ max-height: 100%;
3066
+ position: fixed;
3067
+ top: 0;
3068
+ width: 100%;
3069
+ z-index: 1002;
3070
+ }
3071
+ .e-datetime-mob-popup-wrap .e-datetimepicker.e-popup.e-lib.e-control.e-popup-open {
3072
+ left: 0 !important; /* stylelint-disable-line declaration-no-important */
3073
+ position: relative;
3074
+ top: 0 !important; /* stylelint-disable-line declaration-no-important */
3075
+ }
3076
+
3049
3077
  .e-datetimepicker.e-time-modal {
3050
3078
  background-color: #343a40;
3051
3079
  height: 100%;
@@ -3046,6 +3046,34 @@ ejs-calendar {
3046
3046
  margin: 0;
3047
3047
  }
3048
3048
 
3049
+ .e-datetime-mob-popup-wrap {
3050
+ -webkit-box-align: center;
3051
+ -ms-flex-align: center;
3052
+ align-items: center;
3053
+ display: -webkit-box;
3054
+ display: -ms-flexbox;
3055
+ display: flex;
3056
+ -webkit-box-orient: vertical;
3057
+ -webkit-box-direction: normal;
3058
+ -ms-flex-direction: column;
3059
+ flex-direction: column;
3060
+ height: 100%;
3061
+ -webkit-box-pack: center;
3062
+ -ms-flex-pack: center;
3063
+ justify-content: center;
3064
+ left: 0;
3065
+ max-height: 100%;
3066
+ position: fixed;
3067
+ top: 0;
3068
+ width: 100%;
3069
+ z-index: 1002;
3070
+ }
3071
+ .e-datetime-mob-popup-wrap .e-datetimepicker.e-popup.e-lib.e-control.e-popup-open {
3072
+ left: 0 !important; /* stylelint-disable-line declaration-no-important */
3073
+ position: relative;
3074
+ top: 0 !important; /* stylelint-disable-line declaration-no-important */
3075
+ }
3076
+
3049
3077
  .e-datetimepicker.e-time-modal {
3050
3078
  background-color: #e9ecef;
3051
3079
  height: 100%;