@syncfusion/ej2-calendars 20.3.56 → 20.4.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.
Files changed (76) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +0 -24
  3. package/dist/ej2-calendars.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js +2 -2
  5. package/dist/ej2-calendars.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es2015.js +197 -76
  7. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  8. package/dist/es6/ej2-calendars.es5.js +196 -75
  9. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  10. package/dist/global/ej2-calendars.min.js +2 -2
  11. package/dist/global/ej2-calendars.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +10 -10
  14. package/src/calendar/calendar.js +40 -19
  15. package/src/calendar/islamic.js +29 -7
  16. package/src/datepicker/datepicker.js +28 -15
  17. package/src/daterangepicker/daterangepicker.d.ts +0 -1
  18. package/src/daterangepicker/daterangepicker.js +46 -24
  19. package/src/datetimepicker/datetimepicker.js +13 -2
  20. package/src/maskbase/masked-date-time.js +24 -0
  21. package/src/timepicker/timepicker.js +16 -8
  22. package/styles/bootstrap-dark.css +7 -0
  23. package/styles/bootstrap.css +7 -0
  24. package/styles/bootstrap4.css +7 -0
  25. package/styles/bootstrap5-dark.css +8 -1
  26. package/styles/bootstrap5.css +7 -0
  27. package/styles/calendar/_fluent-definition.scss +1 -1
  28. package/styles/calendar/_material-definition.scss +3 -3
  29. package/styles/calendar/_theme.scss +1 -1
  30. package/styles/calendar/bootstrap5-dark.css +1 -1
  31. package/styles/calendar/fabric-dark.css +1 -1
  32. package/styles/calendar/fabric.css +1 -1
  33. package/styles/calendar/fluent-dark.css +3 -3
  34. package/styles/calendar/fluent.css +2 -2
  35. package/styles/calendar/material.css +3 -3
  36. package/styles/daterangepicker/_bootstrap-dark-definition.scss +1 -0
  37. package/styles/daterangepicker/_bootstrap-definition.scss +1 -0
  38. package/styles/daterangepicker/_bootstrap4-definition.scss +1 -0
  39. package/styles/daterangepicker/_bootstrap5-definition.scss +1 -0
  40. package/styles/daterangepicker/_fabric-dark-definition.scss +1 -0
  41. package/styles/daterangepicker/_fabric-definition.scss +1 -0
  42. package/styles/daterangepicker/_fluent-definition.scss +6 -0
  43. package/styles/daterangepicker/_fusionnew-definition.scss +1 -0
  44. package/styles/daterangepicker/_highcontrast-definition.scss +1 -0
  45. package/styles/daterangepicker/_highcontrast-light-definition.scss +1 -0
  46. package/styles/daterangepicker/_layout.scss +6 -0
  47. package/styles/daterangepicker/_material-dark-definition.scss +1 -0
  48. package/styles/daterangepicker/_material-definition.scss +1 -0
  49. package/styles/daterangepicker/_material3-definition.scss +1 -0
  50. package/styles/daterangepicker/_tailwind-definition.scss +1 -0
  51. package/styles/daterangepicker/_theme.scss +33 -0
  52. package/styles/daterangepicker/bootstrap-dark.css +7 -0
  53. package/styles/daterangepicker/bootstrap.css +7 -0
  54. package/styles/daterangepicker/bootstrap4.css +7 -0
  55. package/styles/daterangepicker/bootstrap5-dark.css +7 -0
  56. package/styles/daterangepicker/bootstrap5.css +7 -0
  57. package/styles/daterangepicker/fabric-dark.css +7 -0
  58. package/styles/daterangepicker/fabric.css +7 -0
  59. package/styles/daterangepicker/fluent-dark.css +30 -0
  60. package/styles/daterangepicker/fluent.css +30 -0
  61. package/styles/daterangepicker/highcontrast-light.css +7 -0
  62. package/styles/daterangepicker/highcontrast.css +7 -0
  63. package/styles/daterangepicker/material-dark.css +7 -0
  64. package/styles/daterangepicker/material.css +5 -0
  65. package/styles/daterangepicker/tailwind-dark.css +7 -0
  66. package/styles/daterangepicker/tailwind.css +7 -0
  67. package/styles/fabric-dark.css +8 -1
  68. package/styles/fabric.css +8 -1
  69. package/styles/fluent-dark.css +33 -3
  70. package/styles/fluent.css +32 -2
  71. package/styles/highcontrast-light.css +7 -0
  72. package/styles/highcontrast.css +7 -0
  73. package/styles/material-dark.css +7 -0
  74. package/styles/material.css +8 -3
  75. package/styles/tailwind-dark.css +7 -0
  76. package/styles/tailwind.css +7 -0
@@ -175,6 +175,10 @@ var MaskedDateTime = /** @class */ (function () {
175
175
  }
176
176
  if ((!args.e.altKey && !args.e.ctrlKey) && (args.e.key === ARROWUP || args.e.key === ARROWDOWN)) {
177
177
  var start = this.parent.inputElement.selectionStart;
178
+ var formatText = '';
179
+ if (this.validCharacters.indexOf(this.hiddenMask[start]) !== -1) {
180
+ formatText = this.hiddenMask[start];
181
+ }
178
182
  this.dateAlteration(args.e.key === ARROWDOWN ? true : false);
179
183
  var inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
180
184
  this.isHiddenMask = true;
@@ -183,6 +187,12 @@ var MaskedDateTime = /** @class */ (function () {
183
187
  this.previousHiddenMask = this.hiddenMask;
184
188
  this.previousValue = inputValue;
185
189
  this.parent.inputElement.value = inputValue;
190
+ for (var i = 0; i < this.hiddenMask.length; i++) {
191
+ if (formatText === this.hiddenMask[i]) {
192
+ start = i;
193
+ break;
194
+ }
195
+ }
186
196
  this.parent.inputElement.selectionStart = start;
187
197
  this.validCharacterCheck();
188
198
  }
@@ -578,6 +588,10 @@ var MaskedDateTime = /** @class */ (function () {
578
588
  MaskedDateTime.prototype.maskInputHandler = function () {
579
589
  var start = this.parent.inputElement.selectionStart;
580
590
  var selectionChar = this.previousHiddenMask[start - 1];
591
+ var formatText = '';
592
+ if (this.validCharacters.indexOf(this.hiddenMask[start]) !== -1) {
593
+ formatText = this.hiddenMask[start];
594
+ }
581
595
  var inputValue;
582
596
  this.differenceCheck();
583
597
  inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
@@ -588,6 +602,13 @@ var MaskedDateTime = /** @class */ (function () {
588
602
  this.previousHiddenMask = this.hiddenMask;
589
603
  this.previousValue = inputValue;
590
604
  this.parent.inputElement.value = inputValue;
605
+ this.parent.inputElement.value = inputValue;
606
+ for (var i = 0; i < this.hiddenMask.length; i++) {
607
+ if (formatText === this.hiddenMask[i]) {
608
+ start = i;
609
+ break;
610
+ }
611
+ }
591
612
  this.parent.inputElement.selectionStart = start;
592
613
  this.validCharacterCheck();
593
614
  if ((this.isNavigate || this.isDeletion) && !this.isDeleteKey) {
@@ -595,6 +616,9 @@ var MaskedDateTime = /** @class */ (function () {
595
616
  this.isNavigate = this.isDeletion = false;
596
617
  this.navigateSelection(isbackward);
597
618
  }
619
+ if (this.isDeleteKey) {
620
+ this.isDeletion = false;
621
+ }
598
622
  this.isDeleteKey = false;
599
623
  // this.setSelection(selectionChar);
600
624
  // this.navigateSelection(inputValue);
@@ -200,6 +200,9 @@ var TimePicker = /** @class */ (function (_super) {
200
200
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
201
201
  this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
202
202
  }
203
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
204
+ this.enabled = false;
205
+ }
203
206
  this.renderComplete();
204
207
  };
205
208
  TimePicker.prototype.setTimeAllowEdit = function () {
@@ -484,6 +487,11 @@ var TimePicker = /** @class */ (function (_super) {
484
487
  if (this.formElement) {
485
488
  EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
486
489
  }
490
+ this.rippleFn = null;
491
+ this.openPopupEventArgs = null;
492
+ this.selectedElement = null;
493
+ this.listTag = null;
494
+ this.liCollections = null;
487
495
  };
488
496
  TimePicker.prototype.ensureInputAttribute = function () {
489
497
  var propertyList = [];
@@ -597,19 +605,19 @@ var TimePicker = /** @class */ (function (_super) {
597
605
  var key = _a[_i];
598
606
  if (wrapperAttributes.indexOf(key) > -1) {
599
607
  if (key === 'class') {
600
- var updatedClassesValue = (this.htmlAttributes[key].replace(/\s+/g, ' ')).trim();
608
+ var updatedClassesValue = (this.htmlAttributes["" + key].replace(/\s+/g, ' ')).trim();
601
609
  if (updatedClassesValue !== '') {
602
610
  addClass([this.inputWrapper.container], updatedClassesValue.split(' '));
603
611
  }
604
612
  }
605
613
  else if (key === 'style') {
606
614
  var timeStyle = this.inputWrapper.container.getAttribute(key);
607
- timeStyle = !isNullOrUndefined(timeStyle) ? (timeStyle + this.htmlAttributes[key]) :
608
- this.htmlAttributes[key];
615
+ timeStyle = !isNullOrUndefined(timeStyle) ? (timeStyle + this.htmlAttributes["" + key]) :
616
+ this.htmlAttributes["" + key];
609
617
  this.inputWrapper.container.setAttribute(key, timeStyle);
610
618
  }
611
619
  else {
612
- this.inputWrapper.container.setAttribute(key, this.htmlAttributes[key]);
620
+ this.inputWrapper.container.setAttribute(key, this.htmlAttributes["" + key]);
613
621
  }
614
622
  }
615
623
  }
@@ -620,7 +628,7 @@ var TimePicker = /** @class */ (function (_super) {
620
628
  for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
621
629
  var key = _a[_i];
622
630
  if (wrapperAttributes.indexOf(key) < 0) {
623
- this.inputElement.setAttribute(key, this.htmlAttributes[key]);
631
+ this.inputElement.setAttribute(key, this.htmlAttributes["" + key]);
624
632
  }
625
633
  }
626
634
  }
@@ -1334,7 +1342,7 @@ var TimePicker = /** @class */ (function (_super) {
1334
1342
  this.inputEvent.destroy();
1335
1343
  }
1336
1344
  EventHandler.remove(this.inputElement, 'mousedown touchstart', this.mouseDownHandler);
1337
- if (this.showClearButton && !isNullOrUndefined(this.inputWrapper.clearButton)) {
1345
+ if (this.showClearButton && !isNullOrUndefined(this.inputWrapper) && !isNullOrUndefined(this.inputWrapper.clearButton)) {
1338
1346
  EventHandler.remove(this.inputWrapper.clearButton, 'mousedown touchstart', this.clearHandler);
1339
1347
  }
1340
1348
  if (this.formElement) {
@@ -1697,7 +1705,7 @@ var TimePicker = /** @class */ (function (_super) {
1697
1705
  return elementIndex;
1698
1706
  };
1699
1707
  TimePicker.prototype.keyHandler = function (event) {
1700
- if (isNullOrUndefined(this.step) || this.step <= 0 || this.inputWrapper.buttons[0].classList.contains(DISABLED)) {
1708
+ if (isNullOrUndefined(this.step) || this.step <= 0 || !isNullOrUndefined(this.inputWrapper) && this.inputWrapper.buttons[0].classList.contains(DISABLED)) {
1701
1709
  return;
1702
1710
  }
1703
1711
  var count = this.timeCollections.length;
@@ -1945,7 +1953,7 @@ var TimePicker = /** @class */ (function (_super) {
1945
1953
  };
1946
1954
  TimePicker.prototype.documentClickHandler = function (event) {
1947
1955
  var target = event.target;
1948
- if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
1956
+ if ((!isNullOrUndefined(this.popupObj) && !isNullOrUndefined(this.inputWrapper) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
1949
1957
  (this.popupObj.element && this.popupObj.element.contains(target)))) && event.type !== 'touchstart') {
1950
1958
  event.preventDefault();
1951
1959
  }
@@ -1833,6 +1833,13 @@ ejs-calendar {
1833
1833
  min-height: 40px;
1834
1834
  }
1835
1835
 
1836
+ @media screen and (orientation: landscape) {
1837
+ .e-daterangepicker .e-calendar.e-device .e-month table {
1838
+ display: inline-block;
1839
+ height: 150px;
1840
+ overflow: auto;
1841
+ }
1842
+ }
1836
1843
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
1837
1844
  width: calc(100% - 80px);
1838
1845
  }
@@ -1836,6 +1836,13 @@ ejs-calendar {
1836
1836
  min-height: 40px;
1837
1837
  }
1838
1838
 
1839
+ @media screen and (orientation: landscape) {
1840
+ .e-daterangepicker .e-calendar.e-device .e-month table {
1841
+ display: inline-block;
1842
+ height: 150px;
1843
+ overflow: auto;
1844
+ }
1845
+ }
1839
1846
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
1840
1847
  width: calc(100% - 80px);
1841
1848
  }
@@ -1864,6 +1864,13 @@ ejs-calendar {
1864
1864
  min-height: 40px;
1865
1865
  }
1866
1866
 
1867
+ @media screen and (orientation: landscape) {
1868
+ .e-daterangepicker .e-calendar.e-device .e-month table {
1869
+ display: inline-block;
1870
+ height: 150px;
1871
+ overflow: auto;
1872
+ }
1873
+ }
1867
1874
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
1868
1875
  width: calc(100% - 80px);
1869
1876
  }
@@ -686,7 +686,7 @@ ejs-calendar {
686
686
  .e-calendar .e-content.e-year td:hover span.e-day, .e-calendar .e-content.e-decade td:hover span.e-day,
687
687
  .e-bigger.e-small .e-calendar .e-content.e-year td:hover span.e-day,
688
688
  .e-bigger.e-small .e-calendar .e-content.e-decade td:hover span.e-day {
689
- background-color: #31373d;
689
+ background-color: #444c54;
690
690
  }
691
691
  .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day,
692
692
  .e-bigger.e-small .e-calendar .e-content.e-year td.e-selected:hover span.e-day,
@@ -1932,6 +1932,13 @@ ejs-calendar {
1932
1932
  min-height: 40px;
1933
1933
  }
1934
1934
 
1935
+ @media screen and (orientation: landscape) {
1936
+ .e-daterangepicker .e-calendar.e-device .e-month table {
1937
+ display: inline-block;
1938
+ height: 130px;
1939
+ overflow: auto;
1940
+ }
1941
+ }
1935
1942
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
1936
1943
  width: calc(100% - 80px);
1937
1944
  }
@@ -1932,6 +1932,13 @@ ejs-calendar {
1932
1932
  min-height: 40px;
1933
1933
  }
1934
1934
 
1935
+ @media screen and (orientation: landscape) {
1936
+ .e-daterangepicker .e-calendar.e-device .e-month table {
1937
+ display: inline-block;
1938
+ height: 130px;
1939
+ overflow: auto;
1940
+ }
1941
+ }
1935
1942
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
1936
1943
  width: calc(100% - 80px);
1937
1944
  }
@@ -162,7 +162,7 @@ $calendar-active-state-icon-bg-color: $secondary-border-color-pressed !default;
162
162
 
163
163
  //popup styles
164
164
  $calendar-border-style: 1px solid $border-light !default;
165
- $calendar-bg-color: $transparent !default;
165
+ $calendar-bg-color: $flyout-bg-color !default;
166
166
  $calendar-week-number-bg-color: $content-bg-color-alt1 !default;
167
167
  $calendar-week-number-font-weight: 400 !default;
168
168
  $calendar-box-shadow: none !default;
@@ -61,7 +61,7 @@ $calendar-small-min-width: $calendar-normal-min-width !default;
61
61
  $calendar-weeknumber-min-width: 262px !default;
62
62
  $calendar-weeknumber-bigger-width: 320px !default;
63
63
  $calendar-normal-month-view-height: 30px !default;
64
- $calendar-normal-month-view-line-height: $calendar-normal-month-view-height !default;
64
+ $calendar-normal-month-view-line-height: 28px !default;
65
65
  $calendar-normal-day-header-height: $calendar-normal-month-view-height !default;
66
66
  $calendar-normal-day-header-text: none !default;
67
67
  $calendar-normal-year-decade-height: 45px !default;
@@ -140,7 +140,7 @@ $calendar-week-normal-min-width: $calendar-normal-min-width !default;
140
140
  $calendar-week-bigger-max-width: $calendar-bigger-max-width !default;
141
141
  $calendar-week-bigger-min-width: $calendar-bigger-min-width !default;
142
142
  $calendar-bigger-month-view-width: $calendar-bigger-month-view-height !default;
143
- $calendar-bigger-month-view-line-height: $calendar-bigger-month-view-height !default;
143
+ $calendar-bigger-month-view-line-height: 34px !default;
144
144
  $calendar-bigger-year-decade-width: $calendar-bigger-year-decade-height !default;
145
145
  $calendar-today-bg-hover-color: $grey-200 !default;
146
146
  $calendar-disable-font-color: $calendar-light-font !default;
@@ -177,7 +177,7 @@ $calendar-small-icon-padding: 6px !default;
177
177
  $calendar-small-header-height: 32px !default;
178
178
  $calendar-small-day-header-height: 24px !default;
179
179
  $calendar-small-month-view-height: 24px !default;
180
- $calendar-small-month-view-line-height: $calendar-small-month-view-height !default;
180
+ $calendar-small-month-view-line-height: 22px !default;
181
181
  $calendar-small-date-font-size: 12px !default;
182
182
  $calendar-small-month-view-width: 24px !default;
183
183
  $calendar-small-popup-padding: 0 !default;
@@ -81,7 +81,7 @@
81
81
  }
82
82
  #{if(&, '&', '*')}.e-year td:hover span.e-day,
83
83
  #{if(&, '&', '*')}.e-decade td:hover span.e-day {
84
- background-color: $calendar-yeardecade-hover-bg;
84
+ background-color: $calendar-hover-color;
85
85
  }
86
86
  #{if(&, '&', '*')}.e-year td.e-selected:hover span.e-day,
87
87
  #{if(&, '&', '*')}.e-decade td.e-selected:hover span.e-day {
@@ -686,7 +686,7 @@ ejs-calendar {
686
686
  .e-calendar .e-content.e-year td:hover span.e-day, .e-calendar .e-content.e-decade td:hover span.e-day,
687
687
  .e-bigger.e-small .e-calendar .e-content.e-year td:hover span.e-day,
688
688
  .e-bigger.e-small .e-calendar .e-content.e-decade td:hover span.e-day {
689
- background-color: #31373d;
689
+ background-color: #444c54;
690
690
  }
691
691
  .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day,
692
692
  .e-bigger.e-small .e-calendar .e-content.e-year td.e-selected:hover span.e-day,
@@ -649,7 +649,7 @@ ejs-calendar {
649
649
  .e-calendar .e-content.e-year td:hover span.e-day, .e-calendar .e-content.e-decade td:hover span.e-day,
650
650
  .e-bigger.e-small .e-calendar .e-content.e-year td:hover span.e-day,
651
651
  .e-bigger.e-small .e-calendar .e-content.e-decade td:hover span.e-day {
652
- background-color: #514f4f;
652
+ background-color: #414040;
653
653
  }
654
654
  .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day,
655
655
  .e-bigger.e-small .e-calendar .e-content.e-year td.e-selected:hover span.e-day,
@@ -650,7 +650,7 @@ ejs-calendar {
650
650
  .e-calendar .e-content.e-year td:hover span.e-day, .e-calendar .e-content.e-decade td:hover span.e-day,
651
651
  .e-bigger.e-small .e-calendar .e-content.e-year td:hover span.e-day,
652
652
  .e-bigger.e-small .e-calendar .e-content.e-decade td:hover span.e-day {
653
- background-color: #dadada;
653
+ background-color: #eaeaea;
654
654
  }
655
655
  .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day,
656
656
  .e-bigger.e-small .e-calendar .e-content.e-year td.e-selected:hover span.e-day,
@@ -188,7 +188,7 @@ ejs-calendar {
188
188
  .e-calendar .e-content td.e-week-number:hover span.e-day, .e-calendar .e-content td.e-week-number:hover,
189
189
  .e-bigger.e-small .e-calendar .e-content td.e-week-number:hover span.e-day,
190
190
  .e-bigger.e-small .e-calendar .e-content td.e-week-number:hover {
191
- background-color: transparent;
191
+ background-color: #252423;
192
192
  cursor: default;
193
193
  background-color: #201f1e;
194
194
  }
@@ -568,7 +568,7 @@ ejs-calendar {
568
568
 
569
569
  .e-calendar,
570
570
  .e-bigger.e-small .e-calendar {
571
- background-color: transparent;
571
+ background-color: #252423;
572
572
  border: 1px solid #292827;
573
573
  box-shadow: none;
574
574
  }
@@ -660,7 +660,7 @@ ejs-calendar {
660
660
  .e-calendar .e-content.e-year td:hover span.e-day, .e-calendar .e-content.e-decade td:hover span.e-day,
661
661
  .e-bigger.e-small .e-calendar .e-content.e-year td:hover span.e-day,
662
662
  .e-bigger.e-small .e-calendar .e-content.e-decade td:hover span.e-day {
663
- background-color: #252423;
663
+ background-color: #323130;
664
664
  }
665
665
  .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day,
666
666
  .e-bigger.e-small .e-calendar .e-content.e-year td.e-selected:hover span.e-day,
@@ -188,7 +188,7 @@ ejs-calendar {
188
188
  .e-calendar .e-content td.e-week-number:hover span.e-day, .e-calendar .e-content td.e-week-number:hover,
189
189
  .e-bigger.e-small .e-calendar .e-content td.e-week-number:hover span.e-day,
190
190
  .e-bigger.e-small .e-calendar .e-content td.e-week-number:hover {
191
- background-color: transparent;
191
+ background-color: #fff;
192
192
  cursor: default;
193
193
  background-color: #faf9f8;
194
194
  }
@@ -568,7 +568,7 @@ ejs-calendar {
568
568
 
569
569
  .e-calendar,
570
570
  .e-bigger.e-small .e-calendar {
571
- background-color: transparent;
571
+ background-color: #fff;
572
572
  border: 1px solid #edebe9;
573
573
  box-shadow: none;
574
574
  }
@@ -306,7 +306,7 @@ ejs-calendar {
306
306
  }
307
307
  .e-calendar .e-content.e-month td.e-today span.e-day,
308
308
  .e-bigger.e-small .e-calendar .e-content.e-month td.e-today span.e-day {
309
- line-height: 30px;
309
+ line-height: 28px;
310
310
  }
311
311
  .e-calendar .e-content.e-year table, .e-calendar .e-content.e-decade table,
312
312
  .e-bigger.e-small .e-calendar .e-content.e-year table,
@@ -451,7 +451,7 @@ ejs-calendar {
451
451
  }
452
452
  .e-bigger.e-calendar .e-content.e-month td.e-today span.e-day,
453
453
  *.e-bigger .e-calendar .e-content.e-month td.e-today span.e-day {
454
- line-height: 36px;
454
+ line-height: 34px;
455
455
  }
456
456
  .e-bigger.e-calendar .e-content.e-month td,
457
457
  *.e-bigger .e-calendar .e-content.e-month td {
@@ -502,7 +502,7 @@ ejs-calendar {
502
502
  }
503
503
  .e-small.e-calendar .e-content.e-month td.e-today span.e-day,
504
504
  .e-small .e-calendar .e-content.e-month td.e-today span.e-day {
505
- line-height: 24px;
505
+ line-height: 22px;
506
506
  }
507
507
  .e-small.e-calendar .e-content.e-month td,
508
508
  .e-small .e-calendar .e-content.e-month td {
@@ -135,6 +135,7 @@ $range-icon-bottom-right-radius: 3px !default;
135
135
  $range-icon-top-right-radius: 3px !default;
136
136
  $range-icon-margin: 0 !default;
137
137
  $range-sart-end-btn-padding: 1px 6px !default;
138
+ $range-calendar-landscape-height: 150px !default;
138
139
 
139
140
  // fabric theme variable
140
141
  $range-icon-font-size: 16px !default;
@@ -135,6 +135,7 @@ $range-icon-top-right-radius: 3px !default;
135
135
  $range-icon-margin: 0 !default;
136
136
  $range-icon-bigger-margin: 0 !default;
137
137
  $range-sart-end-btn-padding: 1px 6px !default;
138
+ $range-calendar-landscape-height: 150px !default;
138
139
 
139
140
  // fabric theme variable
140
141
  $range-icon-font-size: 16px !default;
@@ -145,6 +145,7 @@ $range-bigger-icon-container-min-width: 33px !default;
145
145
  $range-icon-margin: 0 !default;
146
146
  $range-icon-bigger-margin: 0 !default;
147
147
  $range-sart-end-btn-padding: 1px 6px !default;
148
+ $range-calendar-landscape-height: 150px !default;
148
149
 
149
150
  // fabric theme variable
150
151
  $range-icon-font-size: 14px !default;
@@ -101,6 +101,7 @@ $range-icon-normal-padding: 0 !default;
101
101
  $range-preset-normal-list-height: 36px !default;
102
102
  $range-preset-bigger-list-height: 48px !default;
103
103
  $range-calendar-bigger-max: 296px !default;
104
+ $range-calendar-landscape-height: 130px !default;
104
105
 
105
106
  // new variable
106
107
  $range-icon: '\e245' !default;
@@ -135,6 +135,7 @@ $range-icon-bottom-right-radius: 0 !default;
135
135
  $range-icon-top-right-radius: 0 !default;
136
136
  $range-icon-margin: 0 !default;
137
137
  $range-sart-end-btn-padding: 1px 6px !default;
138
+ $range-calendar-landscape-height: 150px !default;
138
139
 
139
140
  // fabric theme variable
140
141
  $range-icon-font-size: 16px !default;
@@ -134,6 +134,7 @@ $range-icon-top-right-radius: 0 !default;
134
134
  $range-icon-margin: 0 !default;
135
135
  $range-icon-bigger-margin: 0 !default;
136
136
  $range-sart-end-btn-padding: 1px 6px !default;
137
+ $range-calendar-landscape-height: 150px !default;
137
138
 
138
139
  // fabric theme variable
139
140
  $range-icon-font-size: 16px !default;
@@ -77,6 +77,11 @@ $range-presets-width: 160px !default;
77
77
  $range-hover-start-radius: 0 !default;
78
78
  $range-hover-end-radius: 0 !default;
79
79
  $range-selected-hover-radius: 50% !default;
80
+ $range-today-hover-line-height: 26px !default;
81
+ $range-other-hover-line-height: 28px !default;
82
+ $range-small-today-hover-line-height: 24px !default;
83
+ $range-bigger-today-hover-line-height: 30px !default;
84
+ $range-bigger-other-hover-line-height: 32px !default;
80
85
  $range-btn-height: 36px !default;
81
86
  $range-device-btn-line-height: 34px !default;
82
87
  $range-icon-hover-color: $content-bg-color-hover !default;
@@ -104,6 +109,7 @@ $range-icon-normal-padding: 0 !default;
104
109
  $range-preset-normal-list-height: 36px !default;
105
110
  $range-preset-bigger-list-height: 48px !default;
106
111
  $range-calendar-bigger-max: 296px !default;
112
+ $range-calendar-landscape-height: 130px !default;
107
113
 
108
114
  // new variable
109
115
  $range-icon: '\e245' !default;
@@ -101,6 +101,7 @@ $range-icon-normal-padding: 0 !default;
101
101
  $range-preset-normal-list-height: 36px !default;
102
102
  $range-preset-bigger-list-height: 48px !default;
103
103
  $range-calendar-bigger-max: 296px !default;
104
+ $range-calendar-landscape-height: 130px !default;
104
105
 
105
106
  // new variable
106
107
  $range-icon: '\e245' !default;
@@ -133,6 +133,7 @@ $range-icon-top-right-radius: 0 !default;
133
133
  $range-icon-margin: 0 !default;
134
134
  $range-icon-bigger-margin: 0 !default;
135
135
  $range-sart-end-btn-padding: 1px 6px !default;
136
+ $range-calendar-landscape-height: 150px !default;
136
137
 
137
138
  // highcontrast theme variable
138
139
  $range-icon-font-size: 16px !default;
@@ -134,6 +134,7 @@ $range-icon-bottom-right-radius: 0 !default;
134
134
  $range-icon-top-right-radius: 0 !default;
135
135
  $range-icon-margin: 0 !default;
136
136
  $range-sart-end-btn-padding: 1px 6px !default;
137
+ $range-calendar-landscape-height: 150px !default;
137
138
 
138
139
  // highcontrast theme variable
139
140
  $range-icon-font-size: 16px !default;
@@ -652,6 +652,12 @@
652
652
 
653
653
 
654
654
  @media screen and (orientation: landscape) {
655
+ .e-daterangepicker .e-calendar.e-device .e-month table{
656
+ display: inline-block;
657
+ height: $range-calendar-landscape-height;
658
+ overflow: auto;
659
+ }
660
+
655
661
  .e-daterangepick-mob-popup-wrap {
656
662
  @if $skin-name == 'material' {
657
663
  #{if( &, '&', '*')} .e-daterangepicker.e-popup.e-popup-expand {
@@ -139,6 +139,7 @@ $range-bigger-icon-container-min-height: 24px !default;
139
139
  $range-bigger-icon-container-min-width: 24px !default;
140
140
  $range-icon-margin: 0 0 4px 0 !default;
141
141
  $range-sart-end-btn-padding: 1px 6px !default;
142
+ $range-calendar-landscape-height: 130px !default;
142
143
 
143
144
  // new variable
144
145
  $range-icon: '\e245' !default;
@@ -140,6 +140,7 @@ $range-bigger-icon-container-min-width: 24px !default;
140
140
  $range-icon-margin: 0 0 4px 0 !default;
141
141
  $range-icon-bigger-margin: 0 0 2px 0 !default;
142
142
  $range-sart-end-btn-padding: 1px 6px !default;
143
+ $range-calendar-landscape-height: 130px !default;
143
144
 
144
145
  // new variable
145
146
  $range-icon: '\e245' !default;
@@ -101,6 +101,7 @@ $range-icon-normal-padding: 0 !default;
101
101
  $range-preset-normal-list-height: 36px !default;
102
102
  $range-preset-bigger-list-height: 48px !default;
103
103
  $range-calendar-bigger-max: 296px !default;
104
+ $range-calendar-landscape-height: 130px !default;
104
105
 
105
106
  // new variable
106
107
  $range-icon: '\e245' !default;
@@ -109,6 +109,7 @@ $range-small-header-label-size: $text-base !default;
109
109
  $range-bigger-indicator-label-size: $text-sm !default;
110
110
  $range-bigger-change-icon-size: 20px !default;
111
111
  $range-control-bigger-header-margin: 12px 0 !default;
112
+ $range-calendar-landscape-height: 130px !default;
112
113
 
113
114
  // new variable
114
115
  $range-icon: '\e245' !default;
@@ -322,3 +322,36 @@
322
322
  }
323
323
  }
324
324
  }
325
+
326
+ .e-daterangepicker.e-popup .e-calendar .e-content.e-month .e-today.e-range-hover span,
327
+ .e-bigger.e-small .e-calendar .e-content.e-month td.e-today.e-range-hover span.e-day {
328
+ @if $skin-name == 'FluentUI' {
329
+ line-height: $range-today-hover-line-height;
330
+ }
331
+ }
332
+
333
+ .e-daterangepicker.e-popup .e-calendar .e-content .e-other-month.e-today.e-range-hover span,
334
+ .e-bigger.e-small .e-calendar .e-content.e-month td.e-today.e-other-month.e-range-hover span.e-day {
335
+ @if $skin-name == 'FluentUI' {
336
+ line-height: $range-other-hover-line-height;
337
+ }
338
+ }
339
+
340
+ .e-small .e-calendar .e-content.e-month td.e-today.e-range-hover span.e-day,
341
+ .e-small .e-calendar .e-content.e-month td.e-other-month.e-today.e-range-hover span.e-day {
342
+ @if $skin-name == 'FluentUI' {
343
+ line-height: $range-small-today-hover-line-height;
344
+ }
345
+ }
346
+
347
+ .e-bigger .e-calendar .e-content.e-month td.e-today.e-range-hover span.e-day {
348
+ @if $skin-name == 'FluentUI' {
349
+ line-height: $range-bigger-today-hover-line-height;
350
+ }
351
+ }
352
+
353
+ .e-bigger .e-calendar .e-content.e-month td.e-other-month.e-today.e-range-hover span.e-day {
354
+ @if $skin-name == 'FluentUI' {
355
+ line-height: $range-bigger-other-hover-line-height;
356
+ }
357
+ }
@@ -636,6 +636,13 @@
636
636
  min-height: 40px;
637
637
  }
638
638
 
639
+ @media screen and (orientation: landscape) {
640
+ .e-daterangepicker .e-calendar.e-device .e-month table {
641
+ display: inline-block;
642
+ height: 150px;
643
+ overflow: auto;
644
+ }
645
+ }
639
646
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
640
647
  width: calc(100% - 80px);
641
648
  }
@@ -637,6 +637,13 @@
637
637
  min-height: 40px;
638
638
  }
639
639
 
640
+ @media screen and (orientation: landscape) {
641
+ .e-daterangepicker .e-calendar.e-device .e-month table {
642
+ display: inline-block;
643
+ height: 150px;
644
+ overflow: auto;
645
+ }
646
+ }
640
647
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
641
648
  width: calc(100% - 80px);
642
649
  }
@@ -650,6 +650,13 @@
650
650
  min-height: 40px;
651
651
  }
652
652
 
653
+ @media screen and (orientation: landscape) {
654
+ .e-daterangepicker .e-calendar.e-device .e-month table {
655
+ display: inline-block;
656
+ height: 150px;
657
+ overflow: auto;
658
+ }
659
+ }
653
660
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
654
661
  width: calc(100% - 80px);
655
662
  }
@@ -650,6 +650,13 @@
650
650
  min-height: 40px;
651
651
  }
652
652
 
653
+ @media screen and (orientation: landscape) {
654
+ .e-daterangepicker .e-calendar.e-device .e-month table {
655
+ display: inline-block;
656
+ height: 130px;
657
+ overflow: auto;
658
+ }
659
+ }
653
660
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
654
661
  width: calc(100% - 80px);
655
662
  }
@@ -650,6 +650,13 @@
650
650
  min-height: 40px;
651
651
  }
652
652
 
653
+ @media screen and (orientation: landscape) {
654
+ .e-daterangepicker .e-calendar.e-device .e-month table {
655
+ display: inline-block;
656
+ height: 130px;
657
+ overflow: auto;
658
+ }
659
+ }
653
660
  .e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
654
661
  width: calc(100% - 80px);
655
662
  }