@mantine/schedule 9.7.1 → 9.7.3

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 (107) hide show
  1. package/cjs/components/DayView/DayView.cjs +45 -29
  2. package/cjs/components/DayView/DayView.cjs.map +1 -1
  3. package/cjs/components/DayView/DayView.module.cjs.map +1 -1
  4. package/cjs/components/MobileMonthView/MobileMonthView.cjs +60 -23
  5. package/cjs/components/MobileMonthView/MobileMonthView.cjs.map +1 -1
  6. package/cjs/components/MobileMonthView/MobileMonthView.module.cjs.map +1 -1
  7. package/cjs/components/MobileMonthView/get-mobile-month-view-weeks.cjs +32 -0
  8. package/cjs/components/MobileMonthView/get-mobile-month-view-weeks.cjs.map +1 -0
  9. package/cjs/components/ResourcesDayView/ResourcesDayView.cjs +15 -7
  10. package/cjs/components/ResourcesDayView/ResourcesDayView.cjs.map +1 -1
  11. package/cjs/components/ResourcesDayView/ResourcesDayView.module.cjs.map +1 -1
  12. package/cjs/components/ResourcesDayView/ResourcesDayViewColumn.cjs +11 -6
  13. package/cjs/components/ResourcesDayView/ResourcesDayViewColumn.cjs.map +1 -1
  14. package/cjs/components/ResourcesMonthView/ResourcesMonthView.module.cjs.map +1 -1
  15. package/cjs/components/ResourcesWeekView/ResourcesWeekView.cjs +15 -7
  16. package/cjs/components/ResourcesWeekView/ResourcesWeekView.cjs.map +1 -1
  17. package/cjs/components/ResourcesWeekView/ResourcesWeekView.module.cjs.map +1 -1
  18. package/cjs/components/ResourcesWeekView/ResourcesWeekViewRow.cjs +11 -6
  19. package/cjs/components/ResourcesWeekView/ResourcesWeekViewRow.cjs.map +1 -1
  20. package/cjs/components/Schedule/Schedule.cjs +2 -0
  21. package/cjs/components/Schedule/Schedule.cjs.map +1 -1
  22. package/cjs/components/WeekView/WeekView.cjs +29 -19
  23. package/cjs/components/WeekView/WeekView.cjs.map +1 -1
  24. package/cjs/components/WeekView/WeekView.module.cjs.map +1 -1
  25. package/cjs/components/WeekView/WeekViewDay.cjs +13 -7
  26. package/cjs/components/WeekView/WeekViewDay.cjs.map +1 -1
  27. package/cjs/components/YearView/YearView.cjs +1 -1
  28. package/cjs/components/YearView/YearView.cjs.map +1 -1
  29. package/cjs/components/YearView/YearViewMonth.cjs +1 -1
  30. package/cjs/components/YearView/YearViewMonth.cjs.map +1 -1
  31. package/cjs/index.cjs +10 -0
  32. package/cjs/utils/add-minutes-to-time/add-minutes-to-time.cjs +17 -0
  33. package/cjs/utils/add-minutes-to-time/add-minutes-to-time.cjs.map +1 -0
  34. package/cjs/utils/clamp-slot-label-interval/clamp-slot-label-interval.cjs +22 -0
  35. package/cjs/utils/clamp-slot-label-interval/clamp-slot-label-interval.cjs.map +1 -0
  36. package/cjs/utils/get-business-hours-mod/get-business-hours-mod.cjs +74 -17
  37. package/cjs/utils/get-business-hours-mod/get-business-hours-mod.cjs.map +1 -1
  38. package/cjs/utils/get-day-time-intervals/get-day-time-intervals.cjs +7 -2
  39. package/cjs/utils/get-day-time-intervals/get-day-time-intervals.cjs.map +1 -1
  40. package/cjs/utils/get-slot-label-groups/get-slot-label-groups.cjs +26 -0
  41. package/cjs/utils/get-slot-label-groups/get-slot-label-groups.cjs.map +1 -0
  42. package/cjs/{components/YearView → utils/get-visible-week-days}/get-visible-week-days.cjs +1 -1
  43. package/cjs/utils/get-visible-week-days/get-visible-week-days.cjs.map +1 -0
  44. package/esm/components/DayView/DayView.mjs +46 -30
  45. package/esm/components/DayView/DayView.mjs.map +1 -1
  46. package/esm/components/DayView/DayView.module.mjs.map +1 -1
  47. package/esm/components/MobileMonthView/MobileMonthView.mjs +60 -23
  48. package/esm/components/MobileMonthView/MobileMonthView.mjs.map +1 -1
  49. package/esm/components/MobileMonthView/MobileMonthView.module.mjs.map +1 -1
  50. package/esm/components/MobileMonthView/get-mobile-month-view-weeks.mjs +30 -0
  51. package/esm/components/MobileMonthView/get-mobile-month-view-weeks.mjs.map +1 -0
  52. package/esm/components/ResourcesDayView/ResourcesDayView.mjs +16 -8
  53. package/esm/components/ResourcesDayView/ResourcesDayView.mjs.map +1 -1
  54. package/esm/components/ResourcesDayView/ResourcesDayView.module.mjs.map +1 -1
  55. package/esm/components/ResourcesDayView/ResourcesDayViewColumn.mjs +12 -7
  56. package/esm/components/ResourcesDayView/ResourcesDayViewColumn.mjs.map +1 -1
  57. package/esm/components/ResourcesMonthView/ResourcesMonthView.module.mjs.map +1 -1
  58. package/esm/components/ResourcesWeekView/ResourcesWeekView.mjs +16 -8
  59. package/esm/components/ResourcesWeekView/ResourcesWeekView.mjs.map +1 -1
  60. package/esm/components/ResourcesWeekView/ResourcesWeekView.module.mjs.map +1 -1
  61. package/esm/components/ResourcesWeekView/ResourcesWeekViewRow.mjs +12 -7
  62. package/esm/components/ResourcesWeekView/ResourcesWeekViewRow.mjs.map +1 -1
  63. package/esm/components/Schedule/Schedule.mjs +2 -0
  64. package/esm/components/Schedule/Schedule.mjs.map +1 -1
  65. package/esm/components/WeekView/WeekView.mjs +30 -20
  66. package/esm/components/WeekView/WeekView.mjs.map +1 -1
  67. package/esm/components/WeekView/WeekView.module.mjs.map +1 -1
  68. package/esm/components/WeekView/WeekViewDay.mjs +14 -8
  69. package/esm/components/WeekView/WeekViewDay.mjs.map +1 -1
  70. package/esm/components/YearView/YearView.mjs +1 -1
  71. package/esm/components/YearView/YearView.mjs.map +1 -1
  72. package/esm/components/YearView/YearViewMonth.mjs +1 -1
  73. package/esm/components/YearView/YearViewMonth.mjs.map +1 -1
  74. package/esm/index.mjs +6 -2
  75. package/esm/utils/add-minutes-to-time/add-minutes-to-time.mjs +17 -0
  76. package/esm/utils/add-minutes-to-time/add-minutes-to-time.mjs.map +1 -0
  77. package/esm/utils/clamp-slot-label-interval/clamp-slot-label-interval.mjs +22 -0
  78. package/esm/utils/clamp-slot-label-interval/clamp-slot-label-interval.mjs.map +1 -0
  79. package/esm/utils/get-business-hours-mod/get-business-hours-mod.mjs +74 -18
  80. package/esm/utils/get-business-hours-mod/get-business-hours-mod.mjs.map +1 -1
  81. package/esm/utils/get-day-time-intervals/get-day-time-intervals.mjs +7 -2
  82. package/esm/utils/get-day-time-intervals/get-day-time-intervals.mjs.map +1 -1
  83. package/esm/utils/get-slot-label-groups/get-slot-label-groups.mjs +26 -0
  84. package/esm/utils/get-slot-label-groups/get-slot-label-groups.mjs.map +1 -0
  85. package/esm/{components/YearView → utils/get-visible-week-days}/get-visible-week-days.mjs +1 -1
  86. package/esm/utils/get-visible-week-days/get-visible-week-days.mjs.map +1 -0
  87. package/lib/components/DayView/DayView.d.ts +3 -1
  88. package/lib/components/MobileMonthView/MobileMonthView.d.ts +2 -0
  89. package/lib/components/MobileMonthView/get-mobile-month-view-weeks.d.ts +11 -0
  90. package/lib/components/ResourcesDayView/ResourcesDayView.d.ts +1 -1
  91. package/lib/components/ResourcesDayView/ResourcesDayViewColumn.d.ts +2 -1
  92. package/lib/components/ResourcesWeekView/ResourcesWeekView.d.ts +1 -1
  93. package/lib/components/ResourcesWeekView/ResourcesWeekViewRow.d.ts +2 -1
  94. package/lib/components/Schedule/Schedule.d.ts +1 -1
  95. package/lib/components/WeekView/WeekView.d.ts +3 -1
  96. package/lib/utils/add-minutes-to-time/add-minutes-to-time.d.ts +1 -0
  97. package/lib/utils/clamp-slot-label-interval/clamp-slot-label-interval.d.ts +9 -0
  98. package/lib/utils/get-business-hours-mod/get-business-hours-mod.d.ts +24 -5
  99. package/lib/utils/get-day-time-intervals/get-day-time-intervals.d.ts +5 -1
  100. package/lib/utils/get-slot-label-groups/get-slot-label-groups.d.ts +15 -0
  101. package/lib/utils/index.d.ts +7 -2
  102. package/package.json +4 -4
  103. package/styles.css +178 -9
  104. package/styles.layer.css +178 -9
  105. package/cjs/components/YearView/get-visible-week-days.cjs.map +0 -1
  106. package/esm/components/YearView/get-visible-week-days.mjs.map +0 -1
  107. /package/lib/{components/YearView → utils/get-visible-week-days}/get-visible-week-days.d.ts +0 -0
package/styles.layer.css CHANGED
@@ -813,7 +813,7 @@
813
813
  }
814
814
 
815
815
  .m_2f950041 {
816
- height: var(--slot-height);
816
+ height: calc(var(--slot-height) * var(--slot-label-size, 1));
817
817
  border-top: 1px solid var(--day-view-border-color);
818
818
  font-size: var(--mantine-font-size-sm);
819
819
  text-align: right;
@@ -830,6 +830,10 @@
830
830
  border-top: 0;
831
831
  }
832
832
 
833
+ .m_2f950041:where([data-sub-hour]) {
834
+ border-top-style: dotted;
835
+ }
836
+
833
837
  .m_2f950041:where([data-business-hours]) {
834
838
  background-color: var(--day-view-business-hours-bg);
835
839
  }
@@ -838,6 +842,16 @@
838
842
  background-color: var(--day-view-non-business-hours-bg);
839
843
  }
840
844
 
845
+ .m_2f950041:where([data-partial-business-hours]) {
846
+ background-image: linear-gradient(
847
+ to bottom,
848
+ var(--day-view-non-business-hours-bg) var(--business-hours-from),
849
+ var(--day-view-business-hours-bg) var(--business-hours-from),
850
+ var(--day-view-business-hours-bg) var(--business-hours-to),
851
+ var(--day-view-non-business-hours-bg) var(--business-hours-to)
852
+ );
853
+ }
854
+
841
855
  .m_d5dc3060 {
842
856
  flex: 1;
843
857
  }
@@ -859,6 +873,11 @@
859
873
  }
860
874
 
861
875
  @media (hover: hover) {
876
+
877
+ .m_cd179e73:hover {
878
+ background-image: none;
879
+ }
880
+
862
881
  :where([data-mantine-color-scheme='light']) .m_cd179e73:hover {
863
882
  background-color: var(--mantine-color-gray-1);
864
883
  }
@@ -869,6 +888,11 @@
869
888
  }
870
889
 
871
890
  @media (hover: none) {
891
+
892
+ .m_cd179e73:active {
893
+ background-image: none;
894
+ }
895
+
872
896
  :where([data-mantine-color-scheme='light']) .m_cd179e73:active {
873
897
  background-color: var(--mantine-color-gray-1);
874
898
  }
@@ -891,6 +915,20 @@
891
915
  background-color: var(--day-view-non-business-hours-bg);
892
916
  }
893
917
 
918
+ .m_cd179e73:where([data-partial-business-hours]) {
919
+ background-image: linear-gradient(
920
+ to bottom,
921
+ var(--day-view-non-business-hours-bg) var(--business-hours-from),
922
+ var(--day-view-business-hours-bg) var(--business-hours-from),
923
+ var(--day-view-business-hours-bg) var(--business-hours-to),
924
+ var(--day-view-non-business-hours-bg) var(--business-hours-to)
925
+ );
926
+ }
927
+
928
+ .m_cd179e73:where([data-drop-target]) {
929
+ background-image: none;
930
+ }
931
+
894
932
  :where([data-mantine-color-scheme='light']) .m_cd179e73:where([data-drop-target]) {
895
933
  background-color: var(--mantine-color-blue-1);
896
934
  }
@@ -919,6 +957,7 @@
919
957
 
920
958
  .m_cd179e73:where([data-drag-selected]),
921
959
  .m_cd179e73:where([data-drag-selected]):hover {
960
+ background-image: none;
922
961
  background-color: var(--mantine-primary-color-light);
923
962
  }
924
963
 
@@ -948,7 +987,8 @@
948
987
  pointer-events: none;
949
988
  }
950
989
 
951
- .m_3c5fb2d5:where([data-hide-sub-hour-grid-lines]) .m_cd179e73:not([data-hour-start]) {
990
+ .m_3c5fb2d5:where([data-hide-sub-hour-grid-lines]) .m_cd179e73:not([data-hour-start]),
991
+ .m_3c5fb2d5:where([data-hide-sub-hour-grid-lines]) .m_2f950041:where([data-sub-hour]) {
952
992
  border-top-color: transparent;
953
993
  }
954
994
 
@@ -1097,6 +1137,7 @@
1097
1137
 
1098
1138
  .m_70d87f99 {
1099
1139
  --mobile-month-view-radius: var(--schedule-radius, var(--mantine-radius-default));
1140
+ --mobile-month-view-columns: 7;
1100
1141
  --week-numbers-offset: 0rem;
1101
1142
  --day-base-color: var(--mantine-color-text);
1102
1143
  --day-dimmed-color: color-mix(in srgb, var(--day-base-color), transparent 50%);
@@ -1165,7 +1206,11 @@
1165
1206
  }
1166
1207
 
1167
1208
  .m_e357794f {
1168
- flex: 0 0 calc(100% / 7 - var(--week-numbers-offset) / 7);
1209
+ flex: 0 0
1210
+ calc(
1211
+ 100% / var(--mobile-month-view-columns) - var(--week-numbers-offset) /
1212
+ var(--mobile-month-view-columns)
1213
+ );
1169
1214
  font-size: var(--mobile-month-view-font-size);
1170
1215
  font-weight: var(--mantine-font-weight-medium);
1171
1216
  text-align: center;
@@ -1224,7 +1269,11 @@
1224
1269
  }
1225
1270
 
1226
1271
  .m_fa29b943 {
1227
- flex: 0 0 calc(100% / 7 - var(--week-numbers-offset) / 7);
1272
+ flex: 0 0
1273
+ calc(
1274
+ 100% / var(--mobile-month-view-columns) - var(--week-numbers-offset) /
1275
+ var(--mobile-month-view-columns)
1276
+ );
1228
1277
  height: calc(3rem * var(--mantine-scale));
1229
1278
  padding: calc(0.25rem * var(--mantine-scale));
1230
1279
  font-weight: var(--mantine-font-weight-medium);
@@ -1822,7 +1871,7 @@
1822
1871
  .m_29f492e9 {
1823
1872
  border-top: 1px solid var(--week-view-border-color);
1824
1873
  text-align: right;
1825
- height: var(--week-view-slot-height);
1874
+ height: calc(var(--week-view-slot-height) * var(--slot-label-size, 1));
1826
1875
  padding: calc(0.25rem * var(--mantine-scale));
1827
1876
  padding-inline-end: calc(0.5rem * var(--mantine-scale));
1828
1877
  font-size: var(--mantine-font-size-sm);
@@ -1832,6 +1881,10 @@
1832
1881
  text-transform: uppercase;
1833
1882
  }
1834
1883
 
1884
+ .m_29f492e9:where([data-sub-hour]) {
1885
+ border-top-style: dotted;
1886
+ }
1887
+
1835
1888
  .m_29f492e9:where([data-business-hours]) {
1836
1889
  background-color: var(--week-view-business-hours-bg);
1837
1890
  }
@@ -1840,6 +1893,16 @@
1840
1893
  background-color: var(--week-view-non-business-hours-bg);
1841
1894
  }
1842
1895
 
1896
+ .m_29f492e9:where([data-partial-business-hours]) {
1897
+ background-image: linear-gradient(
1898
+ to bottom,
1899
+ var(--week-view-non-business-hours-bg) var(--business-hours-from),
1900
+ var(--week-view-business-hours-bg) var(--business-hours-from),
1901
+ var(--week-view-business-hours-bg) var(--business-hours-to),
1902
+ var(--week-view-non-business-hours-bg) var(--business-hours-to)
1903
+ );
1904
+ }
1905
+
1843
1906
  .m_98199d2f {
1844
1907
  flex: 1;
1845
1908
  border-inline-start: 1px solid var(--week-view-border-color);
@@ -2058,6 +2121,11 @@
2058
2121
  }
2059
2122
 
2060
2123
  @media (hover: hover) {
2124
+
2125
+ .m_8ac0cbcd:hover {
2126
+ background-image: none;
2127
+ }
2128
+
2061
2129
  :where([data-mantine-color-scheme='light']) .m_8ac0cbcd:hover {
2062
2130
  background-color: var(--mantine-color-gray-1);
2063
2131
  }
@@ -2068,6 +2136,11 @@
2068
2136
  }
2069
2137
 
2070
2138
  @media (hover: none) {
2139
+
2140
+ .m_8ac0cbcd:active {
2141
+ background-image: none;
2142
+ }
2143
+
2071
2144
  :where([data-mantine-color-scheme='light']) .m_8ac0cbcd:active {
2072
2145
  background-color: var(--mantine-color-gray-1);
2073
2146
  }
@@ -2085,6 +2158,20 @@
2085
2158
  background-color: var(--week-view-non-business-hours-bg);
2086
2159
  }
2087
2160
 
2161
+ .m_8ac0cbcd:where([data-partial-business-hours]) {
2162
+ background-image: linear-gradient(
2163
+ to bottom,
2164
+ var(--week-view-non-business-hours-bg) var(--business-hours-from),
2165
+ var(--week-view-business-hours-bg) var(--business-hours-from),
2166
+ var(--week-view-business-hours-bg) var(--business-hours-to),
2167
+ var(--week-view-non-business-hours-bg) var(--business-hours-to)
2168
+ );
2169
+ }
2170
+
2171
+ .m_8ac0cbcd:where([data-drop-target]) {
2172
+ background-image: none;
2173
+ }
2174
+
2088
2175
  :where([data-mantine-color-scheme='light']) .m_8ac0cbcd:where([data-drop-target]) {
2089
2176
  background-color: var(--mantine-color-blue-1);
2090
2177
  }
@@ -2113,6 +2200,7 @@
2113
2200
 
2114
2201
  .m_8ac0cbcd:where([data-drag-selected]),
2115
2202
  .m_8ac0cbcd:where([data-drag-selected]):hover {
2203
+ background-image: none;
2116
2204
  background-color: var(--mantine-primary-color-light);
2117
2205
  }
2118
2206
 
@@ -2152,7 +2240,8 @@
2152
2240
 
2153
2241
  .m_6b2099af:where([data-hide-sub-hour-grid-lines])
2154
2242
  .m_cd58ae46
2155
- .m_8ac0cbcd:not([data-hour-start]) {
2243
+ .m_8ac0cbcd:not([data-hour-start]),
2244
+ .m_6b2099af:where([data-hide-sub-hour-grid-lines]) .m_29f492e9:where([data-sub-hour]) {
2156
2245
  border-top-color: transparent;
2157
2246
  }
2158
2247
 
@@ -2592,6 +2681,7 @@
2592
2681
  }
2593
2682
 
2594
2683
  .m_25154d8d {
2684
+ --_business-hours-direction: to right;
2595
2685
  --resources-day-view-radius: var(--schedule-radius, var(--mantine-radius-default));
2596
2686
  --resources-day-view-resource-label-width: calc(7.5rem * var(--mantine-scale));
2597
2687
  --resources-day-view-slot-width: calc(5rem * var(--mantine-scale));
@@ -2612,6 +2702,10 @@
2612
2702
  --resources-day-view-non-business-hours-bg: var(--mantine-color-dark-6);
2613
2703
  }
2614
2704
 
2705
+ [dir="rtl"] .m_25154d8d {
2706
+ --_business-hours-direction: to left;
2707
+ }
2708
+
2615
2709
  .m_d790b40f {
2616
2710
  border: 1px solid var(--resources-day-view-border-color);
2617
2711
  border-radius: var(--resources-day-view-radius);
@@ -2638,7 +2732,7 @@
2638
2732
  display: flex;
2639
2733
  position: sticky;
2640
2734
  top: 0;
2641
- z-index: 5;
2735
+ z-index: 14;
2642
2736
  background-color: var(--mantine-color-body);
2643
2737
  border-bottom: 1px solid var(--resources-day-view-border-color);
2644
2738
  margin-bottom: calc(-0.0625rem * var(--mantine-scale));
@@ -2693,6 +2787,16 @@
2693
2787
  background-color: var(--resources-day-view-non-business-hours-bg);
2694
2788
  }
2695
2789
 
2790
+ .m_de91b51a:where([data-partial-business-hours]) {
2791
+ background-image: linear-gradient(
2792
+ var(--_business-hours-direction),
2793
+ var(--resources-day-view-non-business-hours-bg) var(--business-hours-from),
2794
+ var(--resources-day-view-business-hours-bg) var(--business-hours-from),
2795
+ var(--resources-day-view-business-hours-bg) var(--business-hours-to),
2796
+ var(--resources-day-view-non-business-hours-bg) var(--business-hours-to)
2797
+ );
2798
+ }
2799
+
2696
2800
  .m_6a0ced0d {
2697
2801
  display: flex;
2698
2802
  border-top: 1px solid var(--resources-day-view-border-color);
@@ -2784,6 +2888,11 @@
2784
2888
  }
2785
2889
 
2786
2890
  @media (hover: hover) {
2891
+
2892
+ .m_90acfcab:hover {
2893
+ background-image: none;
2894
+ }
2895
+
2787
2896
  :where([data-mantine-color-scheme='light']) .m_90acfcab:hover {
2788
2897
  background-color: var(--mantine-color-gray-1);
2789
2898
  }
@@ -2794,6 +2903,11 @@
2794
2903
  }
2795
2904
 
2796
2905
  @media (hover: none) {
2906
+
2907
+ .m_90acfcab:active {
2908
+ background-image: none;
2909
+ }
2910
+
2797
2911
  :where([data-mantine-color-scheme='light']) .m_90acfcab:active {
2798
2912
  background-color: var(--mantine-color-gray-1);
2799
2913
  }
@@ -2819,6 +2933,20 @@
2819
2933
  background-color: var(--resources-day-view-non-business-hours-bg);
2820
2934
  }
2821
2935
 
2936
+ .m_90acfcab:where([data-partial-business-hours]) {
2937
+ background-image: linear-gradient(
2938
+ var(--_business-hours-direction),
2939
+ var(--resources-day-view-non-business-hours-bg) var(--business-hours-from),
2940
+ var(--resources-day-view-business-hours-bg) var(--business-hours-from),
2941
+ var(--resources-day-view-business-hours-bg) var(--business-hours-to),
2942
+ var(--resources-day-view-non-business-hours-bg) var(--business-hours-to)
2943
+ );
2944
+ }
2945
+
2946
+ .m_90acfcab:where([data-drop-target]) {
2947
+ background-image: none;
2948
+ }
2949
+
2822
2950
  :where([data-mantine-color-scheme='light']) .m_90acfcab:where([data-drop-target]) {
2823
2951
  background-color: var(--mantine-color-blue-1);
2824
2952
  }
@@ -2847,6 +2975,7 @@
2847
2975
 
2848
2976
  .m_90acfcab:where([data-drag-selected]),
2849
2977
  .m_90acfcab:where([data-drag-selected]):hover {
2978
+ background-image: none;
2850
2979
  background-color: var(--mantine-primary-color-light);
2851
2980
  }
2852
2981
 
@@ -3117,6 +3246,7 @@
3117
3246
  }
3118
3247
 
3119
3248
  .m_ed4c47cf {
3249
+ --_business-hours-direction: to right;
3120
3250
  --resources-week-view-radius: var(--schedule-radius, var(--mantine-radius-default));
3121
3251
  --resources-week-view-resource-label-width: calc(7.5rem * var(--mantine-scale));
3122
3252
  --resources-week-view-slot-width: calc(3.75rem * var(--mantine-scale));
@@ -3137,6 +3267,10 @@
3137
3267
  --resources-week-view-non-business-hours-bg: var(--mantine-color-dark-6);
3138
3268
  }
3139
3269
 
3270
+ [dir="rtl"] .m_ed4c47cf {
3271
+ --_business-hours-direction: to left;
3272
+ }
3273
+
3140
3274
  .m_5b5cbd51 {
3141
3275
  border: 1px solid var(--resources-week-view-border-color);
3142
3276
  border-radius: var(--resources-week-view-radius);
@@ -3163,7 +3297,7 @@
3163
3297
  display: flex;
3164
3298
  position: sticky;
3165
3299
  top: 0;
3166
- z-index: 5;
3300
+ z-index: 14;
3167
3301
  background-color: var(--mantine-color-body);
3168
3302
  border-bottom: 1px solid var(--resources-week-view-border-color);
3169
3303
  margin-bottom: calc(-0.0625rem * var(--mantine-scale));
@@ -3254,6 +3388,16 @@
3254
3388
  background-color: var(--resources-week-view-non-business-hours-bg);
3255
3389
  }
3256
3390
 
3391
+ .m_a6832518:where([data-partial-business-hours]) {
3392
+ background-image: linear-gradient(
3393
+ var(--_business-hours-direction),
3394
+ var(--resources-week-view-non-business-hours-bg) var(--business-hours-from),
3395
+ var(--resources-week-view-business-hours-bg) var(--business-hours-from),
3396
+ var(--resources-week-view-business-hours-bg) var(--business-hours-to),
3397
+ var(--resources-week-view-non-business-hours-bg) var(--business-hours-to)
3398
+ );
3399
+ }
3400
+
3257
3401
  .m_9fd9b38b {
3258
3402
  display: flex;
3259
3403
  border-top: 1px solid var(--resources-week-view-border-color);
@@ -3349,6 +3493,11 @@
3349
3493
  }
3350
3494
 
3351
3495
  @media (hover: hover) {
3496
+
3497
+ .m_ed965429:hover {
3498
+ background-image: none;
3499
+ }
3500
+
3352
3501
  :where([data-mantine-color-scheme='light']) .m_ed965429:hover {
3353
3502
  background-color: var(--mantine-color-gray-1);
3354
3503
  }
@@ -3359,6 +3508,11 @@
3359
3508
  }
3360
3509
 
3361
3510
  @media (hover: none) {
3511
+
3512
+ .m_ed965429:active {
3513
+ background-image: none;
3514
+ }
3515
+
3362
3516
  :where([data-mantine-color-scheme='light']) .m_ed965429:active {
3363
3517
  background-color: var(--mantine-color-gray-1);
3364
3518
  }
@@ -3380,6 +3534,20 @@
3380
3534
  background-color: var(--resources-week-view-non-business-hours-bg);
3381
3535
  }
3382
3536
 
3537
+ .m_ed965429:where([data-partial-business-hours]) {
3538
+ background-image: linear-gradient(
3539
+ var(--_business-hours-direction),
3540
+ var(--resources-week-view-non-business-hours-bg) var(--business-hours-from),
3541
+ var(--resources-week-view-business-hours-bg) var(--business-hours-from),
3542
+ var(--resources-week-view-business-hours-bg) var(--business-hours-to),
3543
+ var(--resources-week-view-non-business-hours-bg) var(--business-hours-to)
3544
+ );
3545
+ }
3546
+
3547
+ .m_ed965429:where([data-drop-target]) {
3548
+ background-image: none;
3549
+ }
3550
+
3383
3551
  :where([data-mantine-color-scheme='light']) .m_ed965429:where([data-drop-target]) {
3384
3552
  background-color: var(--mantine-color-blue-1);
3385
3553
  }
@@ -3408,6 +3576,7 @@
3408
3576
 
3409
3577
  .m_ed965429:where([data-drag-selected]),
3410
3578
  .m_ed965429:where([data-drag-selected]):hover {
3579
+ background-image: none;
3411
3580
  background-color: var(--mantine-primary-color-light);
3412
3581
  }
3413
3582
 
@@ -3716,7 +3885,7 @@
3716
3885
  display: flex;
3717
3886
  position: sticky;
3718
3887
  top: 0;
3719
- z-index: 5;
3888
+ z-index: 14;
3720
3889
  background-color: var(--mantine-color-body);
3721
3890
  border-bottom: 1px solid var(--resources-month-view-border-color);
3722
3891
  margin-bottom: calc(-0.0625rem * var(--mantine-scale));
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-visible-week-days.cjs","names":[],"sources":["../../../src/components/YearView/get-visible-week-days.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { DateStringValue, DayOfWeek } from '../../types';\n\nconst DAYS_IN_WEEK = 7;\n\ninterface HiddenWeekendColumnsInput {\n weekendDays: DayOfWeek[];\n firstDayOfWeek: DayOfWeek;\n withWeekendDays: boolean | undefined;\n}\n\n/**\n * Returns indices of week columns (0-6, relative to `firstDayOfWeek`) that are\n * hidden because they fall on a weekend day and `withWeekendDays` is `false`.\n */\nexport function getHiddenWeekendColumns({\n weekendDays,\n firstDayOfWeek,\n withWeekendDays,\n}: HiddenWeekendColumnsInput): number[] {\n if (withWeekendDays !== false) {\n return [];\n }\n\n return Array.from({ length: DAYS_IN_WEEK }, (_, index) => index).filter((index) =>\n weekendDays.includes(((firstDayOfWeek + index) % DAYS_IN_WEEK) as DayOfWeek)\n );\n}\n\ninterface VisibleWeekDaysInput {\n week: DateStringValue[];\n weekendDays: DayOfWeek[];\n withWeekendDays: boolean | undefined;\n}\n\n/** Filters out weekend days from a week when `withWeekendDays` is `false` */\nexport function getVisibleWeekDays({\n week,\n weekendDays,\n withWeekendDays,\n}: VisibleWeekDaysInput): DateStringValue[] {\n if (withWeekendDays !== false) {\n return week;\n }\n\n return week.filter((date) => !weekendDays.includes(dayjs(date).day() as DayOfWeek));\n}\n"],"mappings":";;;;;AAGA,MAAM,eAAe;;;;;AAYrB,SAAgB,wBAAwB,EACtC,aACA,gBACA,mBACsC;CACtC,IAAI,oBAAoB,OACtB,OAAO,CAAC;CAGV,OAAO,MAAM,KAAK,EAAE,QAAQ,aAAa,IAAI,GAAG,UAAU,KAAK,CAAC,CAAC,QAAQ,UACvE,YAAY,UAAW,iBAAiB,SAAS,YAA0B,CAC7E;AACF;;AASA,SAAgB,mBAAmB,EACjC,MACA,aACA,mBAC0C;CAC1C,IAAI,oBAAoB,OACtB,OAAO;CAGT,OAAO,KAAK,QAAQ,SAAS,CAAC,YAAY,UAAA,GAAS,MAAA,QAAA,CAAM,IAAI,CAAC,CAAC,IAAI,CAAc,CAAC;AACpF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-visible-week-days.mjs","names":[],"sources":["../../../src/components/YearView/get-visible-week-days.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { DateStringValue, DayOfWeek } from '../../types';\n\nconst DAYS_IN_WEEK = 7;\n\ninterface HiddenWeekendColumnsInput {\n weekendDays: DayOfWeek[];\n firstDayOfWeek: DayOfWeek;\n withWeekendDays: boolean | undefined;\n}\n\n/**\n * Returns indices of week columns (0-6, relative to `firstDayOfWeek`) that are\n * hidden because they fall on a weekend day and `withWeekendDays` is `false`.\n */\nexport function getHiddenWeekendColumns({\n weekendDays,\n firstDayOfWeek,\n withWeekendDays,\n}: HiddenWeekendColumnsInput): number[] {\n if (withWeekendDays !== false) {\n return [];\n }\n\n return Array.from({ length: DAYS_IN_WEEK }, (_, index) => index).filter((index) =>\n weekendDays.includes(((firstDayOfWeek + index) % DAYS_IN_WEEK) as DayOfWeek)\n );\n}\n\ninterface VisibleWeekDaysInput {\n week: DateStringValue[];\n weekendDays: DayOfWeek[];\n withWeekendDays: boolean | undefined;\n}\n\n/** Filters out weekend days from a week when `withWeekendDays` is `false` */\nexport function getVisibleWeekDays({\n week,\n weekendDays,\n withWeekendDays,\n}: VisibleWeekDaysInput): DateStringValue[] {\n if (withWeekendDays !== false) {\n return week;\n }\n\n return week.filter((date) => !weekendDays.includes(dayjs(date).day() as DayOfWeek));\n}\n"],"mappings":";;;AAGA,MAAM,eAAe;;;;;AAYrB,SAAgB,wBAAwB,EACtC,aACA,gBACA,mBACsC;CACtC,IAAI,oBAAoB,OACtB,OAAO,CAAC;CAGV,OAAO,MAAM,KAAK,EAAE,QAAQ,aAAa,IAAI,GAAG,UAAU,KAAK,CAAC,CAAC,QAAQ,UACvE,YAAY,UAAW,iBAAiB,SAAS,YAA0B,CAC7E;AACF;;AASA,SAAgB,mBAAmB,EACjC,MACA,aACA,mBAC0C;CAC1C,IAAI,oBAAoB,OACtB,OAAO;CAGT,OAAO,KAAK,QAAQ,SAAS,CAAC,YAAY,SAAS,MAAM,IAAI,CAAC,CAAC,IAAI,CAAc,CAAC;AACpF"}