@syncfusion/ej2-calendars 20.4.54 → 21.1.35

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 (132) hide show
  1. package/CHANGELOG.md +0 -16
  2. package/README.md +94 -83
  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 +431 -372
  7. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  8. package/dist/es6/ej2-calendars.es5.js +386 -327
  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 +11 -11
  14. package/src/calendar/calendar-model.d.ts +1 -1
  15. package/src/calendar/calendar.js +13 -6
  16. package/src/calendar/islamic.js +39 -29
  17. package/src/datepicker/datepicker-model.d.ts +3 -3
  18. package/src/datepicker/datepicker.js +61 -56
  19. package/src/daterangepicker/daterangepicker.js +11 -5
  20. package/src/datetimepicker/datetimepicker-model.d.ts +3 -3
  21. package/src/datetimepicker/datetimepicker.d.ts +4 -4
  22. package/src/datetimepicker/datetimepicker.js +15 -17
  23. package/src/maskbase/masked-date-time.js +208 -179
  24. package/src/timepicker/timepicker-model.d.ts +7 -7
  25. package/src/timepicker/timepicker.d.ts +9 -9
  26. package/src/timepicker/timepicker.js +39 -36
  27. package/styles/bootstrap-dark.css +9 -8
  28. package/styles/bootstrap.css +9 -3
  29. package/styles/bootstrap4.css +6 -4
  30. package/styles/bootstrap5-dark.css +19 -17
  31. package/styles/bootstrap5.css +17 -15
  32. package/styles/calendar/_bootstrap-dark-definition.scss +1 -1
  33. package/styles/calendar/_bootstrap5-definition.scss +21 -21
  34. package/styles/calendar/_fabric-dark-definition.scss +5 -3
  35. package/styles/calendar/_fabric-definition.scss +2 -0
  36. package/styles/calendar/_fluent-definition.scss +36 -36
  37. package/styles/calendar/_highcontrast-definition.scss +3 -1
  38. package/styles/calendar/_highcontrast-light-definition.scss +2 -0
  39. package/styles/calendar/_layout.scss +53 -6
  40. package/styles/calendar/_material-dark-definition.scss +4 -2
  41. package/styles/calendar/_material-definition.scss +2 -0
  42. package/styles/calendar/_tailwind-definition.scss +13 -13
  43. package/styles/calendar/_theme.scss +74 -13
  44. package/styles/calendar/bootstrap-dark.css +4 -3
  45. package/styles/calendar/bootstrap.css +3 -2
  46. package/styles/calendar/bootstrap4.css +3 -2
  47. package/styles/calendar/bootstrap5-dark.css +14 -13
  48. package/styles/calendar/bootstrap5.css +13 -12
  49. package/styles/calendar/fabric-dark.css +15 -5
  50. package/styles/calendar/fabric.css +12 -2
  51. package/styles/calendar/fluent-dark.css +51 -28
  52. package/styles/calendar/fluent.css +51 -28
  53. package/styles/calendar/highcontrast-light.css +3 -2
  54. package/styles/calendar/highcontrast.css +14 -4
  55. package/styles/calendar/icons/_material3.scss +3 -3
  56. package/styles/calendar/material-dark.css +14 -4
  57. package/styles/calendar/material.css +12 -2
  58. package/styles/calendar/tailwind-dark.css +11 -10
  59. package/styles/calendar/tailwind.css +11 -10
  60. package/styles/datepicker/_bootstrap5-definition.scss +8 -8
  61. package/styles/datepicker/_fluent-definition.scss +8 -8
  62. package/styles/datepicker/_layout.scss +16 -6
  63. package/styles/datepicker/_tailwind-definition.scss +8 -8
  64. package/styles/datepicker/_theme.scss +11 -1
  65. package/styles/datepicker/icons/_material3.scss +3 -3
  66. package/styles/daterangepicker/_bootstrap-dark-definition.scss +5 -5
  67. package/styles/daterangepicker/_bootstrap-definition.scss +1 -1
  68. package/styles/daterangepicker/_bootstrap4-definition.scss +2 -2
  69. package/styles/daterangepicker/_bootstrap5-definition.scss +21 -21
  70. package/styles/daterangepicker/_fabric-dark-definition.scss +1 -1
  71. package/styles/daterangepicker/_fabric-definition.scss +1 -1
  72. package/styles/daterangepicker/_fluent-definition.scss +27 -27
  73. package/styles/daterangepicker/_highcontrast-definition.scss +1 -1
  74. package/styles/daterangepicker/_highcontrast-light-definition.scss +1 -1
  75. package/styles/daterangepicker/_layout.scss +50 -3
  76. package/styles/daterangepicker/_material-dark-definition.scss +1 -1
  77. package/styles/daterangepicker/_material-definition.scss +1 -1
  78. package/styles/daterangepicker/_tailwind-definition.scss +19 -19
  79. package/styles/daterangepicker/_theme.scss +93 -15
  80. package/styles/daterangepicker/bootstrap-dark.css +5 -5
  81. package/styles/daterangepicker/bootstrap.css +6 -1
  82. package/styles/daterangepicker/bootstrap4.css +3 -2
  83. package/styles/daterangepicker/bootstrap5-dark.css +5 -4
  84. package/styles/daterangepicker/bootstrap5.css +4 -3
  85. package/styles/daterangepicker/fabric-dark.css +1 -1
  86. package/styles/daterangepicker/fabric.css +1 -1
  87. package/styles/daterangepicker/fluent-dark.css +33 -9
  88. package/styles/daterangepicker/fluent.css +33 -9
  89. package/styles/daterangepicker/highcontrast-light.css +1 -1
  90. package/styles/daterangepicker/highcontrast.css +1 -1
  91. package/styles/daterangepicker/icons/_material3.scss +33 -6
  92. package/styles/daterangepicker/material-dark.css +1 -1
  93. package/styles/daterangepicker/material.css +8 -2
  94. package/styles/daterangepicker/tailwind-dark.css +2 -2
  95. package/styles/daterangepicker/tailwind.css +2 -2
  96. package/styles/datetimepicker/_bootstrap5-definition.scss +1 -1
  97. package/styles/datetimepicker/_fluent-definition.scss +1 -1
  98. package/styles/datetimepicker/_layout.scss +8 -3
  99. package/styles/datetimepicker/_tailwind-definition.scss +1 -1
  100. package/styles/datetimepicker/_theme.scss +24 -4
  101. package/styles/datetimepicker/icons/_material3.scss +1 -1
  102. package/styles/fabric-dark.css +16 -6
  103. package/styles/fabric.css +16 -4
  104. package/styles/fluent-dark.css +84 -37
  105. package/styles/fluent.css +84 -37
  106. package/styles/highcontrast-light.css +4 -3
  107. package/styles/highcontrast.css +15 -5
  108. package/styles/material-dark.css +15 -5
  109. package/styles/material.css +20 -4
  110. package/styles/tailwind-dark.css +13 -12
  111. package/styles/tailwind.css +13 -12
  112. package/styles/timepicker/_bootstrap-dark-definition.scss +1 -0
  113. package/styles/timepicker/_bootstrap-definition.scss +1 -0
  114. package/styles/timepicker/_bootstrap4-definition.scss +1 -0
  115. package/styles/timepicker/_bootstrap5-definition.scss +6 -5
  116. package/styles/timepicker/_fabric-dark-definition.scss +1 -0
  117. package/styles/timepicker/_fabric-definition.scss +1 -0
  118. package/styles/timepicker/_fluent-definition.scss +6 -5
  119. package/styles/timepicker/_fusionnew-definition.scss +1 -0
  120. package/styles/timepicker/_highcontrast-definition.scss +1 -0
  121. package/styles/timepicker/_highcontrast-light-definition.scss +1 -0
  122. package/styles/timepicker/_layout.scss +11 -3
  123. package/styles/timepicker/_material-dark-definition.scss +1 -0
  124. package/styles/timepicker/_material-definition.scss +1 -0
  125. package/styles/timepicker/_tailwind-definition.scss +6 -5
  126. package/styles/timepicker/_theme.scss +36 -6
  127. package/styles/timepicker/icons/_material3.scss +1 -1
  128. package/styles/calendar/_material3-definition.scss +0 -250
  129. package/styles/datepicker/_material3-definition.scss +0 -46
  130. package/styles/daterangepicker/_material3-definition.scss +0 -230
  131. package/styles/datetimepicker/_material3-definition.scss +0 -60
  132. package/styles/timepicker/_material3-definition.scss +0 -57
@@ -12,20 +12,20 @@ $range-max-height: 500px !default;
12
12
  $range-normal-nav-icon-width: 28px !default;
13
13
  $range-control-border-right: 0 !default;
14
14
  $range-normal-nav-icon-height: 28px !default;
15
- $range-calendar-medium-font-size: 14px !default;
16
- $range-calendar-btn-font-size: 14px !default;
17
- $range-presets-normal-list-font-size: 14px !default;
18
- $range-presets-bigger-list-font-size: 16px !default;
19
- $range-range-btn-font-weight: 500 !default;
15
+ $range-calendar-medium-font-size: $text-sm !default;
16
+ $range-calendar-btn-font-size: $text-sm !default;
17
+ $range-presets-normal-list-font-size: $text-sm !default;
18
+ $range-presets-bigger-list-font-size: $text-base !default;
19
+ $range-range-btn-font-weight: $font-weight-medium !default;
20
20
  $range-header-label-size: $text-sm !default;
21
21
  $range-bigger-header-label-size: $text-base !default;
22
22
  $range-bigger-indicator-label-size: $text-xs !default;
23
23
  $range-calendar-small-font-size: $text-xxs !default;
24
- $range-calendar-bigger-font-size: 20px !default;
24
+ $range-calendar-bigger-font-size: $text-xl !default;
25
25
  $range-calendar-header-padding: 12px 5px !default;
26
26
  $range-e-bigger-header-padding: 10px 5px !default;
27
27
  $range-device-control-header-margin: 0 !default;
28
- $range-device-control-header-padding: 12px !default;
28
+ $range-device-control-header-padding: 12px 0 12px 12px !default;
29
29
  $range-control-header-margin: 12px 0 !default;
30
30
  $range-control-bigger-header-margin: 12px 0 !default;
31
31
  $range-indicator-margin: 0 !default;
@@ -35,10 +35,10 @@ $range-calendar-margin: 0 !default;
35
35
  $range-start-end-label-width: 48% !default;
36
36
  $range-change-icon-width: 4% !default;
37
37
  $range-font-weight-bold: $font-weight-medium !default;
38
- $range-font-size: 15px !default;
39
- $range-bigger-change-icon-size: 18px !default;
38
+ $range-font-size: $text-base !default;
39
+ $range-bigger-change-icon-size: $font-icon-18 !default;
40
40
  $range-indicator-label-width: 100% !default;
41
- $range-device-indicator-margin: 10px 0 !default;
41
+ $range-device-indicator-margin: 12px 0 !default;
42
42
  $range-separator-height: 1px !default;
43
43
  $range-border-value: 1px solid $border-light !default;
44
44
  $range-separator-margin: 0 !default;
@@ -57,10 +57,10 @@ $range-list-item-height: 48px !default;
57
57
  $range-list-item-padding: 0 24px !default;
58
58
  $range-listview-padding: 4px 0 !default;
59
59
  $range-list-item-line-height: 47px !default;
60
- $range-device-medium-font-size: 13px !default;
61
- $range-device-medium-header-font-size: 13px !default;
62
- $range-device-small-font-size: 11px !default;
63
- $range-week-header-font-size: 13px !default;
60
+ $range-device-medium-font-size: $text-sm !default;
61
+ $range-device-medium-header-font-size: $text-sm !default;
62
+ $range-device-small-font-size: $text-xs !default;
63
+ $range-week-header-font-size: $text-sm !default;
64
64
  $range-device-header-container-height: 36px !default;
65
65
  $range-device-header-container-width: 100% !default;
66
66
  $range-device-list-item-padding: 0 16px !default;
@@ -77,11 +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
+ $range-today-hover-line-height: 23px !default;
81
+ $range-other-hover-line-height: 25px !default;
82
+ $range-small-today-hover-line-height: 19px !default;
83
+ $range-bigger-today-hover-line-height: 28px !default;
84
+ $range-bigger-other-hover-line-height: 29px !default;
85
85
  $range-btn-height: 36px !default;
86
86
  $range-device-btn-line-height: 34px !default;
87
87
  $range-icon-hover-color: $content-bg-color-hover !default;
@@ -113,8 +113,8 @@ $range-calendar-landscape-height: 130px !default;
113
113
 
114
114
  // new variable
115
115
  $range-icon: '\e245' !default;
116
- $range-icon-font-size: 16px !default;
117
- $range-bigger-icon-font-size: 18px !default;
116
+ $range-icon-font-size: $font-icon-16 !default;
117
+ $range-bigger-icon-font-size: $font-icon-18 !default;
118
118
  $range-icon-next: '\e913' !default;
119
119
  $range-icon-prev: '\e921' !default;
120
120
  $range-change-icon: '\e85f' !default;
@@ -124,18 +124,18 @@ $range-rtl-icon-change: '\e85b' !default;
124
124
 
125
125
  // Mouse small size
126
126
  $range-small-header-label-size: 16px !default;
127
- $range-small-font-size: 12px !default;
127
+ $range-small-font-size: $text-xs !default;
128
128
  $range-start-end-container-small-height: 32px !default;
129
- $range-calendar-mouse-small-font-size: 12px !default;
129
+ $range-calendar-mouse-small-font-size: $text-xs !default;
130
130
  $range-indicator-small-margin: 0 0 10px 0 !default;
131
131
  $range-control-small-header-margin: 10px 10px 0 10px !default;
132
132
  $range-separator-small-margin: 0 10px !default;
133
133
  $range-small-footer-margin: 10px 10px 10px 8px !default;
134
134
  $range-preset-small-list-height: 26px !default;
135
- $range-presets-small-list-font-size: 12px !default;
135
+ $range-presets-small-list-font-size: $text-xs !default;
136
136
  $calendar-bigger-small-max-width: 246px !default;
137
137
  $range-control-header-width: auto !default;
138
- $range-font-weight-normal: normal !default;
138
+ $range-font-weight-normal: $font-weight-normal !default;
139
139
  $range-flex-style: flex !default;
140
140
  $range-flex-justify-content: flex-end !default;
141
141
  $range-inline-block-style: inline-block !default;
@@ -165,10 +165,10 @@ $range-text-overflow: ellipsis !default;
165
165
  $range-calendar-other-normal-border: none !default;
166
166
 
167
167
  // mouse small icon
168
- $range-small-icon-font-size: 14px !default;
168
+ $range-small-icon-font-size: $font-icon-14 !default;
169
169
 
170
170
  // touch small icon
171
- $range-bigger-small-icon-font-size: 18px !default;
171
+ $range-bigger-small-icon-font-size: $font-icon-18 !default;
172
172
 
173
173
  // color variables
174
174
  $range-bg-color: $flyout-bg-color !default;
@@ -75,7 +75,7 @@ $range-device-indicator-margin: 10px 0 !default;
75
75
  $range-separator-height: 1px !default;
76
76
  $range-border-value: 1px solid $border-default !default;
77
77
  $range-separator-color: $border-default !default;
78
- $range-separator-margin: 0 16px !default;
78
+ $range-separator-margin: 0 !default;
79
79
  $range-footer-height: 48px !default;
80
80
  $range-bigger-footer-height: 58px !default;
81
81
  $range-flex-direction-row-reverse: row-reverse !default;
@@ -76,7 +76,7 @@ $range-device-indicator-margin: 10px 0 !default;
76
76
  $range-separator-height: 1px !default;
77
77
  $range-border-value: 1px solid $border-default !default;
78
78
  $range-separator-color: $border-default !default;
79
- $range-separator-margin: 0 16px !default;
79
+ $range-separator-margin: 0 !default;
80
80
  $range-footer-height: 48px !default;
81
81
  $range-bigger-footer-height: 58px !default;
82
82
  $range-flex-direction-row-reverse: row-reverse !default;
@@ -295,7 +295,12 @@
295
295
 
296
296
  .e-bigger #{&}.e-daterangepicker.e-range-modal,
297
297
  #{if(&, '&', '*')}.e-device#{&}.e-daterangepicker.e-range-modal {
298
- background-color: $range-overlay;
298
+ @if $skin-name != 'Material3' {
299
+ background-color: $range-overlay;
300
+ }
301
+ @if $skin-name == 'Material3' {
302
+ background: $range-overlay;
303
+ }
299
304
  height: 100%;
300
305
  left: 0;
301
306
  opacity: .5;
@@ -316,6 +321,12 @@
316
321
  #{if(&, '&', '*')}.e-bigger#{&}.e-daterangepicker,
317
322
  #{if(&, '&', '*')}.e-device#{&}.e-daterangepicker {
318
323
  #{if(&, '&', '*')}.e-popup {
324
+ @if $skin-name == 'material' or $skin-name == 'bootstrap'{
325
+ background-color: $range-background;
326
+ }
327
+ @if $skin-name == 'Material3' {
328
+ background: $range-background;
329
+ }
319
330
 
320
331
  #{if(&, '&', '*')} .e-start-label,
321
332
  #{if(&, '&', '*')} .e-end-label {
@@ -433,6 +444,10 @@
433
444
  }
434
445
  }
435
446
  #{if(&, '&', '*')} .e-header {
447
+ @if ($skin-name == 'FluentUI') {
448
+ padding: 8px 16px;
449
+ }
450
+
436
451
  #{if(&, '&', '*')} .e-next,
437
452
  #{if(&, '&', '*')} .e-prev {
438
453
  height: $range-bigger-nav-icon-height;
@@ -502,6 +517,10 @@
502
517
  line-height: $range-device-indicator-height;
503
518
  }
504
519
  margin: $range-device-indicator-margin;
520
+
521
+ @if $skin-name == 'fluentUI' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap4' {
522
+ margin-bottom: 0;
523
+ }
505
524
  }
506
525
  }
507
526
  }
@@ -558,6 +577,28 @@
558
577
  }
559
578
  }
560
579
  }
580
+ .e-daterangepicker .e-calendar .e-month .e-selected span.e-day,
581
+ .e-daterangepicker.e-bigger.e-small .e-calendar .e-month .e-selected span.e-day {
582
+ @if $skin-name == 'FluentUI' {
583
+ height: 25px;
584
+ width: 25px;
585
+ line-height: 25px;
586
+ }
587
+ }
588
+ .e-daterangepicker.e-bigger .e-calendar .e-month .e-selected span.e-day {
589
+ @if $skin-name == 'FluentUI' {
590
+ height: 29px;
591
+ width: 29px;
592
+ line-height: 29px;
593
+ }
594
+ }
595
+ .e-daterangepicker.e-small .e-calendar .e-month .e-selected span.e-day {
596
+ @if $skin-name == 'FluentUI' {
597
+ height: 21px;
598
+ width: 21px;
599
+ line-height: 21px;
600
+ }
601
+ }
561
602
  }
562
603
 
563
604
  /* stylelint-disable */
@@ -660,7 +701,7 @@
660
701
  }
661
702
 
662
703
  .e-daterangepick-mob-popup-wrap {
663
- @if $skin-name == 'material' {
704
+ @if $skin-name == 'material' or $skin-name == 'Material3' {
664
705
  #{if( &, '&', '*')} .e-daterangepicker.e-popup.e-popup-expand {
665
706
  .e-range-header {
666
707
  float: left;
@@ -670,7 +711,12 @@
670
711
  width: 40%;
671
712
  margin: 0;
672
713
  display: block;
673
- background-color: $range-primary-color;
714
+ @if $skin-name != 'Material3' {
715
+ background-color: $range-primary-color;
716
+ }
717
+ @if $skin-name == 'Material3' {
718
+ background: $range-primary-color;
719
+ }
674
720
  }
675
721
 
676
722
  .e-calendar-holder {
@@ -715,6 +761,7 @@
715
761
  .e-content.e-month {
716
762
  height: 80%;
717
763
  table {
764
+ display: table;
718
765
  border-spacing: unset;
719
766
  }
720
767
  }
@@ -84,7 +84,7 @@ $range-device-indicator-margin: 10px 0 !default;
84
84
  $range-separator-height: 1px !default;
85
85
  $range-border-value: 1px solid $grey-700 !default;
86
86
  $range-separator-color: $grey-700 !default;
87
- $range-separator-margin: 0 16px !default;
87
+ $range-separator-margin: 0 !default;
88
88
  $range-footer-height: 48px !default;
89
89
  $range-bigger-footer-height: 58px !default;
90
90
  $range-flex-direction-row-reverse: row-reverse !default;
@@ -84,7 +84,7 @@ $range-device-indicator-margin: 10px 0 !default;
84
84
  $range-separator-height: 1px !default;
85
85
  $range-border-value: 1px solid rgba($grey-light-font, .12) !default;
86
86
  $range-separator-color: rgba($grey-light-font, .12) !default;
87
- $range-separator-margin: 0 16px !default;
87
+ $range-separator-margin: 0 !default;
88
88
  $range-footer-height: 48px !default;
89
89
  $range-bigger-footer-height: 58px !default;
90
90
  $range-flex-direction-row-reverse: row-reverse !default;
@@ -12,13 +12,13 @@ $range-max-height: 500px !default;
12
12
  $range-control-border-right: 0 !default;
13
13
  $range-normal-nav-icon-width: 24px !default;
14
14
  $range-normal-nav-icon-height: 24px !default;
15
- $range-calendar-medium-font-size: 14px !default;
16
- $range-calendar-btn-font-size: 14px !default;
17
- $range-presets-normal-list-font-size: 13px !default;
18
- $range-presets-bigger-list-font-size: 14px !default;
19
- $range-range-btn-font-weight: 500 !default;
15
+ $range-calendar-medium-font-size: $text-sm !default;
16
+ $range-calendar-btn-font-size: $text-sm !default;
17
+ $range-presets-normal-list-font-size: $text-xs !default;
18
+ $range-presets-bigger-list-font-size: $text-sm !default;
19
+ $range-range-btn-font-weight: $font-weight-medium !default;
20
20
  $range-calendar-small-font-size: $text-xs !default;
21
- $range-calendar-bigger-font-size: 20px !default;
21
+ $range-calendar-bigger-font-size: $text-xl !default;
22
22
  $range-calendar-header-padding: 8px 6px !default;
23
23
  $range-e-bigger-header-padding: 8px 8px !default;
24
24
  $range-device-control-header-margin: 0 !default;
@@ -31,7 +31,7 @@ $range-calendar-margin: 0 !default;
31
31
  $range-start-end-label-width: 48% !default;
32
32
  $range-change-icon-width: 4% !default;
33
33
  $range-font-weight-bold: $font-weight-medium !default;
34
- $range-font-size: 16px !default;
34
+ $range-font-size: $text-base !default;
35
35
  $range-indicator-label-width: 100% !default;
36
36
  $range-device-indicator-margin: 8px 0 0 !default;
37
37
  $range-device-indicator-height: 24px !default;
@@ -54,10 +54,10 @@ $range-list-item-height: 48px !default;
54
54
  $range-list-item-padding: 0 24px !default;
55
55
  $range-listview-padding: 4px 0 !default;
56
56
  $range-list-item-line-height: 47px !default;
57
- $range-device-medium-font-size: 13px !default;
58
- $range-device-medium-header-font-size: 13px !default;
59
- $range-device-small-font-size: 11px !default;
60
- $range-week-header-font-size: 13px !default;
57
+ $range-device-medium-font-size: $text-sm !default;
58
+ $range-device-medium-header-font-size: $text-sm !default;
59
+ $range-device-small-font-size: $text-xs !default;
60
+ $range-week-header-font-size: $text-sm !default;
61
61
  $range-device-header-container-height: 36px !default;
62
62
  $range-device-header-container-width: 100% !default;
63
63
  $range-device-list-item-padding: 0 16px !default;
@@ -113,8 +113,8 @@ $range-calendar-landscape-height: 130px !default;
113
113
 
114
114
  // new variable
115
115
  $range-icon: '\e245' !default;
116
- $range-icon-font-size: 16px !default;
117
- $range-bigger-icon-font-size: 18px !default;
116
+ $range-icon-font-size: $font-icon-16 !default;
117
+ $range-bigger-icon-font-size: $font-icon-18 !default;
118
118
  $range-icon-next: '\e913' !default;
119
119
  $range-icon-prev: '\e921' !default;
120
120
  $range-change-icon: '\e85f' !default;
@@ -123,18 +123,18 @@ $range-rtl-icon-prev: '\e913' !default;
123
123
  $range-rtl-icon-change: '\e85b' !default;
124
124
 
125
125
  // Mouse small size
126
- $range-small-font-size: 12px !default;
126
+ $range-small-font-size: $text-xs !default;
127
127
  $range-start-end-container-small-height: 32px !default;
128
- $range-calendar-mouse-small-font-size: 12px !default;
128
+ $range-calendar-mouse-small-font-size: $text-xs !default;
129
129
  $range-indicator-small-margin: 0 0 10px 0 !default;
130
130
  $range-control-small-header-margin: 10px 10px 0 10px !default;
131
131
  $range-separator-small-margin: 0 10px !default;
132
132
  $range-small-footer-margin: 10px 10px 10px 8px !default;
133
133
  $range-preset-small-list-height: 26px !default;
134
- $range-presets-small-list-font-size: 12px !default;
134
+ $range-presets-small-list-font-size: $text-xs !default;
135
135
  $calendar-bigger-small-max-width: 246px !default;
136
136
  $range-control-header-width: auto !default;
137
- $range-font-weight-normal: normal !default;
137
+ $range-font-weight-normal: $font-weight-normal !default;
138
138
  $range-flex-style: flex !default;
139
139
  $range-flex-justify-content: flex-end !default;
140
140
  $range-inline-block-style: inline-block !default;
@@ -164,10 +164,10 @@ $range-text-overflow: ellipsis !default;
164
164
  $range-calendar-other-normal-border: none !default;
165
165
 
166
166
  // mouse small icon
167
- $range-small-icon-font-size: 14px !default;
167
+ $range-small-icon-font-size: $font-icon-14 !default;
168
168
 
169
169
  // touch small icon
170
- $range-bigger-small-icon-font-size: 18px !default;
170
+ $range-bigger-small-icon-font-size: $font-icon-18 !default;
171
171
 
172
172
  // color variables
173
173
  $range-bg-color: $content-bg-color !default;
@@ -22,7 +22,12 @@
22
22
  background: $range-background;
23
23
 
24
24
  #{if(&, '&', '*')} .e-calendar {
25
- background-color: $range-background;
25
+ @if $skin-name != 'Material3' {
26
+ background-color: $range-background;
27
+ }
28
+ @if $skin-name == 'Material3' {
29
+ background: $range-background;
30
+ }
26
31
 
27
32
  #{if(&, '&', '*')} .e-header .e-title,
28
33
  #{if(&, '&', '*')} .e-header .e-title:hover {
@@ -30,7 +35,12 @@
30
35
  text-decoration: none;
31
36
  }
32
37
  #{if(&, '&', '*')} .e-content .e-range-hover {
33
- background-color: $range-hover-color;
38
+ @if $skin-name != 'Material3' {
39
+ background-color: $range-hover-color;
40
+ }
41
+ @if $skin-name == 'Material3' {
42
+ background: $range-hover-color;
43
+ }
34
44
  color: $range-calendar-dark-color;
35
45
  }
36
46
  #{if(&, '&', '*')} .e-content .e-start-date.e-selected,
@@ -41,21 +51,31 @@
41
51
  }
42
52
  }
43
53
  #{if(&, '&', '*')} .e-content.e-month .e-today.e-range-hover span {
44
- @if $skin-name != 'tailwind' {
54
+ @if $skin-name != 'tailwind' and $skin-name != 'Material3' {
45
55
  background-color: $range-today-color;
46
56
  border: $range-today-border-color;
47
57
  color: $range-calendar-today-color;
48
58
  }
59
+ @if $skin-name == 'Material3' {
60
+ background: $range-today-color;
61
+ border: $range-today-border-color;
62
+ color: $range-calendar-today-color;
63
+ }
49
64
  @if $skin-name == 'FluentUI' {
50
65
  box-shadow: $range-today-hover-box-shadow;
51
66
  }
52
67
  }
53
68
  #{if(&, '&', '*')} .e-content .e-range-hover span {
54
- @if $skin-name != 'tailwind' {
69
+ @if $skin-name != 'tailwind' and $skin-name != 'Material3' {
55
70
  background: $range-hover-color;
56
71
  border: $range-calendar-selection-border;
57
72
  color: $range-calendar-dark-color;
58
73
  }
74
+ @if $skin-name == 'Material3' {
75
+ background: $range-hover-bg-color;
76
+ border: $range-calendar-selection-border;
77
+ color: $range-calendar-dark-color;
78
+ }
59
79
  }
60
80
 
61
81
  #{if(&, '&', '*')} .e-content .e-range-hover:not(.e-other-month) span {
@@ -68,11 +88,16 @@
68
88
  #{if(&, '&', '*')} .e-range-hover:not(.e-selected):hover span.e-day,
69
89
  #{if(&, '&', '*')} .e-range-hover.e-focused-date:not(.e-selected) span.e-day,
70
90
  #{if(&, '&', '*')} .e-range-hover.e-focused-date.e-today span.e-day {
71
- @if $skin-name != 'tailwind' {
91
+ @if $skin-name != 'tailwind' and $skin-name != 'Material3' {
72
92
  background-color: $range-hover-content-color;
73
93
  border: $range-calendar-hover-border-color;
74
94
  color: $range-calendar-dark-color;
75
95
  }
96
+ @if $skin-name == 'Material3' {
97
+ background: $range-hover-content-color;
98
+ border: $range-calendar-hover-border-color;
99
+ color: $range-calendar-dark-color;
100
+ }
76
101
  }
77
102
  #{if(&, '&', '*')} .e-range-hover.e-today:hover span.e-day,
78
103
  #{if(&, '&', '*')} .e-range-hover.e-focused-date.e-today span.e-day,
@@ -93,11 +118,16 @@
93
118
  #{if(&, '&', '*')} .e-content .e-other-month.e-range-hover:hover span.e-day,
94
119
  #{if(&, '&', '*')} .e-content .e-other-month.e-selected,
95
120
  #{if(&, '&', '*')} .e-content .e-other-month.e-selected span {
96
- @if $skin-name != 'tailwind' {
121
+ @if $skin-name != 'tailwind' and $skin-name != 'Material3' {
97
122
  background-color: $range-other-hover-color;
98
123
  border: $range-calendar-other-month-border;
99
124
  color: $range-other-month-date;
100
125
  }
126
+ @if $skin-name == 'Material3' {
127
+ background: $range-other-hover-color;
128
+ border: $range-calendar-other-month-border;
129
+ color: $range-other-month-date;
130
+ }
101
131
  }
102
132
  #{if(&, '&', '*')} .e-content .e-other-month.e-range-hover,
103
133
  #{if(&, '&', '*')} .e-content .e-other-month.e-today.e-range-hover span,
@@ -111,11 +141,16 @@
111
141
  }
112
142
  #{if(&, '&', '*')} .e-content .e-other-month.e-range-hover,
113
143
  #{if(&, '&', '*')} .e-content .e-other-month.e-selected {
114
- @if $skin-name != 'tailwind' {
144
+ @if $skin-name != 'tailwind' and $skin-name != 'Material3' {
115
145
  background-color: $range-other-hover-color;
116
146
  border: $range-calendar-other-normal-border;
117
147
  color: $range-other-month-date;
118
148
  }
149
+ @if $skin-name == 'Material3' {
150
+ background: $range-other-hover-color;
151
+ border: $range-calendar-other-normal-border;
152
+ color: $range-other-month-date;
153
+ }
119
154
  }
120
155
  #{if(&, '&', '*')} .e-content .e-other-month.e-range-hover {
121
156
  @if $skin-name == 'tailwind' {
@@ -126,7 +161,12 @@
126
161
  }
127
162
  #{if(&, '&', '*')} .e-end-date.e-selected.e-range-hover span.e-day,
128
163
  #{if(&, '&', '*')} .e-start-date.e-selected.e-range-hover span.e-day {
129
- background-color: $range-selection-bg;
164
+ @if $skin-name != 'Material3' {
165
+ background-color: $range-selection-bg;
166
+ }
167
+ @if $skin-name == 'Material3' {
168
+ background: $range-selection-bg;
169
+ }
130
170
  color: $range-active-font-color;
131
171
  @if ($skin-name == 'FluentUI') {
132
172
  border-radius: $range-selected-hover-radius;
@@ -150,7 +190,12 @@
150
190
  }
151
191
  }
152
192
  #{if(&, '&', '*')} .e-start-date.e-selected.e-range-hover.e-today span.e-day {
153
- background-color: $range-selection-bg;
193
+ @if $skin-name != 'Material3' {
194
+ background-color: $range-selection-bg;
195
+ }
196
+ @if $skin-name == 'Material3' {
197
+ background: $range-selection-bg;
198
+ }
154
199
  color: $range-active-font-color;
155
200
  }
156
201
  #{if(&, '&', '*')} .e-other-month.e-selected span {
@@ -158,15 +203,30 @@
158
203
  }
159
204
  }
160
205
  #{if(&, '&', '*')} .e-presets {
161
- background-color: $range-presets-bg;
206
+ @if $skin-name != 'Material3' {
207
+ background-color: $range-presets-bg;
208
+ }
209
+ @if $skin-name == 'Material3' {
210
+ background: $range-presets-bg;
211
+ }
162
212
  color: $range-preset-normal-font-color;
163
213
 
164
214
  #{if(&, '&', '*')} .e-list-item.e-active {
165
- background-color: $range-presets-bg-color;
215
+ @if $skin-name != 'Material3' {
216
+ background-color: $range-presets-bg-color;
217
+ }
218
+ @if $skin-name == 'Material3' {
219
+ background: $range-presets-bg-color;
220
+ }
166
221
  color: $range-presets-font-color;
167
222
  }
168
223
  #{if(&, '&', '*')} .e-list-item.e-hover {
169
- background-color: $range-presets-hover-bg;
224
+ @if $skin-name != 'Material3' {
225
+ background-color: $range-presets-hover-bg;
226
+ }
227
+ @if $skin-name == 'Material3' {
228
+ background: $range-presets-hover-bg;
229
+ }
170
230
  color: $range-list-hover-color;
171
231
  }
172
232
  }
@@ -181,10 +241,20 @@
181
241
  color: $range-calendar-medium-color;
182
242
  }
183
243
  #{if(&, '&', '*')} .e-separator {
184
- background-color: $range-separator-color;
244
+ @if $skin-name != 'Material3' {
245
+ background-color: $range-separator-color;
246
+ }
247
+ @if $skin-name == 'Material3' {
248
+ background: $range-separator-color;
249
+ }
185
250
  }
186
251
  #{if(&, '&', '*')} .e-footer {
187
- background-color: $range-footer-background;
252
+ @if $skin-name != 'Material3' {
253
+ background-color: $range-footer-background;
254
+ }
255
+ @if $skin-name == 'Material3' {
256
+ background: $range-footer-background;
257
+ }
188
258
 
189
259
  #{if(&, '&', '*')} .e-cancel.e-flat:not(:hover) {
190
260
  @if $skin-name == 'tailwind' {
@@ -213,7 +283,15 @@
213
283
  .e-bigger #{&}.e-daterangepicker,
214
284
  #{if(&, '&', '*')}.e-bigger#{&}.e-daterangepicker,
215
285
  #{if(&, '&', '*')}.e-device#{&}.e-daterangepicker {
216
- background-color: $range-bg-color;
286
+ @if $skin-name == 'material' {
287
+ background-color: initial;
288
+ }
289
+ @else if $skin-name == 'Material3' {
290
+ background: initial;
291
+ }
292
+ @else {
293
+ background-color: $range-bg-color;
294
+ }
217
295
  padding: $range-popup-padding;
218
296
 
219
297
  #{if(&, '&', '*')} .e-calendar th {
@@ -129,8 +129,8 @@
129
129
  .e-bigger.e-small .e-daterangepicker.e-popup .e-range-header .e-day-span {
130
130
  direction: ltr;
131
131
  font-size: 13px;
132
- height: 14px;
133
- margin: 0 0 13px 0;
132
+ height: 20px;
133
+ margin: 0;
134
134
  text-align: center;
135
135
  -webkit-user-select: none;
136
136
  -ms-user-select: none;
@@ -148,7 +148,7 @@
148
148
  .e-daterangepicker.e-popup .e-separator,
149
149
  .e-bigger.e-small .e-daterangepicker.e-popup .e-separator {
150
150
  height: 1px;
151
- margin: 0 16px;
151
+ margin: 0;
152
152
  }
153
153
  .e-daterangepicker.e-popup .e-calendar,
154
154
  .e-bigger.e-small .e-daterangepicker.e-popup .e-calendar {
@@ -564,7 +564,7 @@
564
564
 
565
565
  .e-small .e-daterangepicker.e-popup .e-range-header,
566
566
  *.e-small.e-daterangepicker.e-popup .e-range-header {
567
- margin: 10px 10px 0 10px;
567
+ margin: 0;
568
568
  }
569
569
  .e-small .e-daterangepicker.e-popup .e-range-header .e-start-label, .e-small .e-daterangepicker.e-popup .e-range-header .e-end-label,
570
570
  *.e-small.e-daterangepicker.e-popup .e-range-header .e-start-label,
@@ -582,7 +582,7 @@
582
582
  .e-small .e-daterangepicker.e-popup .e-range-header .e-day-span,
583
583
  *.e-small.e-daterangepicker.e-popup .e-range-header .e-day-span {
584
584
  font-size: 12px;
585
- margin: 0 0 10px 0;
585
+ margin: 0;
586
586
  }
587
587
  .e-small .e-daterangepicker.e-popup .e-range-header .e-separator,
588
588
  *.e-small.e-daterangepicker.e-popup .e-range-header .e-separator {
@@ -149,7 +149,7 @@
149
149
  .e-daterangepicker.e-popup .e-separator,
150
150
  .e-bigger.e-small .e-daterangepicker.e-popup .e-separator {
151
151
  height: 1px;
152
- margin: 0 16px;
152
+ margin: 0;
153
153
  }
154
154
  .e-daterangepicker.e-popup .e-calendar,
155
155
  .e-bigger.e-small .e-daterangepicker.e-popup .e-calendar {
@@ -354,6 +354,11 @@
354
354
  max-width: 262px;
355
355
  }
356
356
 
357
+ .e-bigger .e-daterangepicker.e-popup,
358
+ *.e-bigger.e-daterangepicker.e-popup,
359
+ *.e-device.e-daterangepicker.e-popup {
360
+ background-color: #fff;
361
+ }
357
362
  .e-bigger .e-daterangepicker.e-popup.e-preset-wrapper,
358
363
  *.e-bigger.e-daterangepicker.e-popup.e-preset-wrapper,
359
364
  *.e-device.e-daterangepicker.e-popup.e-preset-wrapper {
@@ -567,13 +567,14 @@
567
567
  .e-bigger .e-daterangepicker.e-device.e-popup .e-range-header,
568
568
  *.e-bigger.e-daterangepicker.e-device.e-popup .e-range-header,
569
569
  *.e-device.e-daterangepicker.e-device.e-popup .e-range-header {
570
- margin: 16px 16px 0 16px;
571
- padding: 0;
570
+ margin: 0;
571
+ padding: 16px;
572
572
  }
573
573
  .e-bigger .e-daterangepicker.e-device.e-popup .e-range-header .e-day-span,
574
574
  *.e-bigger.e-daterangepicker.e-device.e-popup .e-range-header .e-day-span,
575
575
  *.e-device.e-daterangepicker.e-device.e-popup .e-range-header .e-day-span {
576
576
  margin: 10px 0;
577
+ margin-bottom: 0;
577
578
  }
578
579
 
579
580
  .e-small .e-daterangepicker.e-popup .e-range-header,