react-big-schedule 4.2.1 → 4.2.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.
@@ -1,252 +1,252 @@
1
- *,
2
- *::before,
3
- *::after {
4
- box-sizing: border-box;
5
- }
6
-
7
- .header1-text {
8
- font-size: 25px;
9
- color: #90cdf9;
10
- font-weight: 500;
11
- }
12
-
13
- .header2-text {
14
- font-size: 14px;
15
- font-weight: 500;
16
- }
17
-
18
- .header3-text {
19
- font-size: 12px;
20
- font-weight: 500;
21
- }
22
-
23
- .base-text {
24
- font-size: 12px;
25
- }
26
-
27
- .help-text {
28
- font-size: 12px;
29
- color: #999;
30
- }
31
-
32
- .disabled-text {
33
- font-size: 12px;
34
- color: #ccc;
35
- }
36
-
37
- .scheduler {
38
- margin: 20px auto;
39
- border-spacing: 0;
40
- }
41
-
42
- .scheduler td {
43
- padding: 0px;
44
- }
45
-
46
- .expander-space {
47
- overflow: hidden;
48
- display: inline-block;
49
- width: 1em;
50
- height: 1em;
51
- line-height: 1em;
52
- font-size: 0.9em;
53
- vertical-align: middle;
54
- margin-top: -1%;
55
- }
56
-
57
- .resource-view {
58
- border: 1px solid #e9e9e9;
59
- overflow: hidden;
60
- }
61
-
62
- .scheduler-view {
63
- border: 1px solid #e9e9e9;
64
- margin: 0 0 0 -1px;
65
- padding: 0;
66
- }
67
-
68
- .scheduler-content {
69
- position: relative;
70
- z-index: 2;
71
- }
72
-
73
- .scheduler-bg {
74
- position: absolute;
75
- top: 0;
76
- left: 0;
77
- right: 0;
78
- bottom: 0;
79
- z-index: 1;
80
- }
81
-
82
- table.resource-table,
83
- table.scheduler-bg-table,
84
- table.scheduler-table {
85
- width: 100%;
86
- margin: 0;
87
- padding: 0;
88
- border-spacing: 0;
89
- text-align: center;
90
- }
91
-
92
- table.scheduler-table {
93
- border: 1px solid #e9e9e9;
94
- }
95
-
96
- table.scheduler-content-table {
97
- margin: 0;
98
- padding: 0;
99
- border: 0 solid #e9e9e9;
100
- border-spacing: 0;
101
- }
102
-
103
- table.resource-table tr,
104
- table.scheduler-bg-table tr,
105
- table.scheduler-table tr {
106
- border-bottom: 1px solid #e9e9e9;
107
- }
108
-
109
- table.resource-table th,
110
- table.scheduler-table th,
111
- table.resource-table td,
112
- table.scheduler-bg-table td,
113
- table.scheduler-table td {
114
- border-right: 1px solid #e9e9e9;
115
- border-bottom: 1px solid #e9e9e9;
116
- }
117
-
118
- table.scheduler-bg-table th {
119
- border-right: 1px solid #e9e9e9;
120
- }
121
-
122
- table.resource-table tr th:last-child,
123
- table.scheduler-table tr th:last-child,
124
- table.resource-table tr td:last-child,
125
- table.scheduler-table tr td:last-child {
126
- border-right: 0;
127
- }
128
-
129
- table.scheduler-table tr:last-child td {
130
- border-bottom: 0;
131
- }
132
-
133
- .timeline-event {
134
- position: absolute;
135
- cursor: pointer;
136
- }
137
-
138
- .day-event {
139
- position: relative;
140
- display: inline-block;
141
- margin: 0px 5px;
142
- }
143
-
144
- .day-event-container {
145
- text-align: left;
146
- padding: 5px 5px 0 5px;
147
- }
148
-
149
- .round-all {
150
- border-radius: 14px;
151
- }
152
-
153
- .round-head {
154
- border-radius: 14px 0px 0px 14px;
155
- }
156
-
157
- .round-tail {
158
- border-radius: 0px 14px 14px 0px;
159
- }
160
-
161
- .round-none {
162
- border-radius: 0px;
163
- }
164
-
165
- .event-container {
166
- position: relative;
167
- }
168
-
169
- .event-item {
170
- margin: 1px 0;
171
- width: 100%;
172
- overflow: hidden;
173
- text-overflow: ellipsis;
174
- white-space: nowrap;
175
- color: #fff;
176
- padding-right: 20px !important;
177
- }
178
-
179
- .overflow-text {
180
- overflow: hidden;
181
- text-overflow: ellipsis;
182
- white-space: nowrap;
183
- padding-right: 5px !important;
184
- }
185
-
186
- .status-dot {
187
- width: 14px;
188
- height: 14px;
189
- border-radius: 7px;
190
- }
191
-
192
- .ant-radio-button-wrapper-checked {
193
- background-color: #108ee9;
194
- color: #ffffff;
195
- }
196
-
197
- .icon-nav:hover {
198
- color: #1e90ff !important;
199
- box-shadow: 0 0 0px !important;
200
- cursor: pointer;
201
- }
202
-
203
- .add-more-popover-overlay {
204
- position: absolute;
205
- z-index: 5;
206
- border: 1px solid #e5e5e5;
207
- background-color: #fff;
208
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
209
- padding: 10px;
210
- }
211
-
212
- .popover-calendar {
213
- width: 300px;
214
- }
215
-
216
- .popover-calendar .ant-calendar {
217
- box-shadow: 0 1px 6px rgba(0, 0, 0, 0) !important;
218
- }
219
-
220
- .event-resizer {
221
- position: absolute;
222
- z-index: 4;
223
- display: block;
224
- width: 7px;
225
- top: -1px;
226
- bottom: -1px;
227
- }
228
-
229
- .event-start-resizer {
230
- cursor: w-resize;
231
- left: -1px;
232
- }
233
-
234
- .event-end-resizer {
235
- cursor: e-resize;
236
- right: -1px;
237
- }
238
-
239
- .selected-area {
240
- position: absolute;
241
- }
242
-
243
- .slot-cell {
244
- padding-left: 4px;
245
- padding-right: 4px;
246
- }
247
-
248
- .slot-text {
249
- display: inline-block;
250
- padding-left: 4px;
251
- padding-right: 4px;
252
- }
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .header1-text {
8
+ font-size: 25px;
9
+ color: #90cdf9;
10
+ font-weight: 500;
11
+ }
12
+
13
+ .header2-text {
14
+ font-size: 14px;
15
+ font-weight: 500;
16
+ }
17
+
18
+ .header3-text {
19
+ font-size: 12px;
20
+ font-weight: 500;
21
+ }
22
+
23
+ .base-text {
24
+ font-size: 12px;
25
+ }
26
+
27
+ .help-text {
28
+ font-size: 12px;
29
+ color: #999;
30
+ }
31
+
32
+ .disabled-text {
33
+ font-size: 12px;
34
+ color: #ccc;
35
+ }
36
+
37
+ .scheduler {
38
+ margin: 20px auto;
39
+ border-spacing: 0;
40
+ }
41
+
42
+ .scheduler td {
43
+ padding: 0px;
44
+ }
45
+
46
+ .expander-space {
47
+ overflow: hidden;
48
+ display: inline-block;
49
+ width: 1em;
50
+ height: 1em;
51
+ line-height: 1em;
52
+ font-size: 0.9em;
53
+ vertical-align: middle;
54
+ margin-top: -1%;
55
+ }
56
+
57
+ .resource-view {
58
+ border: 1px solid #e9e9e9;
59
+ overflow: hidden;
60
+ }
61
+
62
+ .scheduler-view {
63
+ border: 1px solid #e9e9e9;
64
+ margin: 0 0 0 -1px;
65
+ padding: 0;
66
+ }
67
+
68
+ .scheduler-content {
69
+ position: relative;
70
+ z-index: 2;
71
+ }
72
+
73
+ .scheduler-bg {
74
+ position: absolute;
75
+ top: 0;
76
+ left: 0;
77
+ right: 0;
78
+ bottom: 0;
79
+ z-index: 1;
80
+ }
81
+
82
+ table.resource-table,
83
+ table.scheduler-bg-table,
84
+ table.scheduler-table {
85
+ width: 100%;
86
+ margin: 0;
87
+ padding: 0;
88
+ border-spacing: 0;
89
+ text-align: center;
90
+ }
91
+
92
+ table.scheduler-table {
93
+ border: 1px solid #e9e9e9;
94
+ }
95
+
96
+ table.scheduler-content-table {
97
+ margin: 0;
98
+ padding: 0;
99
+ border: 0 solid #e9e9e9;
100
+ border-spacing: 0;
101
+ }
102
+
103
+ table.resource-table tr,
104
+ table.scheduler-bg-table tr,
105
+ table.scheduler-table tr {
106
+ border-bottom: 1px solid #e9e9e9;
107
+ }
108
+
109
+ table.resource-table th,
110
+ table.scheduler-table th,
111
+ table.resource-table td,
112
+ table.scheduler-bg-table td,
113
+ table.scheduler-table td {
114
+ border-right: 1px solid #e9e9e9;
115
+ border-bottom: 1px solid #e9e9e9;
116
+ }
117
+
118
+ table.scheduler-bg-table th {
119
+ border-right: 1px solid #e9e9e9;
120
+ }
121
+
122
+ table.resource-table tr th:last-child,
123
+ table.scheduler-table tr th:last-child,
124
+ table.resource-table tr td:last-child,
125
+ table.scheduler-table tr td:last-child {
126
+ border-right: 0;
127
+ }
128
+
129
+ table.scheduler-table tr:last-child td {
130
+ border-bottom: 0;
131
+ }
132
+
133
+ .timeline-event {
134
+ position: absolute;
135
+ cursor: pointer;
136
+ }
137
+
138
+ .day-event {
139
+ position: relative;
140
+ display: inline-block;
141
+ margin: 0px 5px;
142
+ }
143
+
144
+ .day-event-container {
145
+ text-align: left;
146
+ padding: 5px 5px 0 5px;
147
+ }
148
+
149
+ .round-all {
150
+ border-radius: 14px;
151
+ }
152
+
153
+ .round-head {
154
+ border-radius: 14px 0px 0px 14px;
155
+ }
156
+
157
+ .round-tail {
158
+ border-radius: 0px 14px 14px 0px;
159
+ }
160
+
161
+ .round-none {
162
+ border-radius: 0px;
163
+ }
164
+
165
+ .event-container {
166
+ position: relative;
167
+ }
168
+
169
+ .event-item {
170
+ margin: 1px 0;
171
+ width: 100%;
172
+ overflow: hidden;
173
+ text-overflow: ellipsis;
174
+ white-space: nowrap;
175
+ color: #fff;
176
+ padding-right: 20px !important;
177
+ }
178
+
179
+ .overflow-text {
180
+ overflow: hidden;
181
+ text-overflow: ellipsis;
182
+ white-space: nowrap;
183
+ padding-right: 5px !important;
184
+ }
185
+
186
+ .status-dot {
187
+ width: 14px;
188
+ height: 14px;
189
+ border-radius: 7px;
190
+ }
191
+
192
+ .ant-radio-button-wrapper-checked {
193
+ background-color: #108ee9;
194
+ color: #ffffff;
195
+ }
196
+
197
+ .icon-nav:hover {
198
+ color: #1e90ff !important;
199
+ box-shadow: 0 0 0px !important;
200
+ cursor: pointer;
201
+ }
202
+
203
+ .add-more-popover-overlay {
204
+ position: absolute;
205
+ z-index: 5;
206
+ border: 1px solid #e5e5e5;
207
+ background-color: #fff;
208
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
209
+ padding: 10px;
210
+ }
211
+
212
+ .popover-calendar {
213
+ width: 300px;
214
+ }
215
+
216
+ .popover-calendar .ant-calendar {
217
+ box-shadow: 0 1px 6px rgba(0, 0, 0, 0) !important;
218
+ }
219
+
220
+ .event-resizer {
221
+ position: absolute;
222
+ z-index: 4;
223
+ display: block;
224
+ width: 7px;
225
+ top: -1px;
226
+ bottom: -1px;
227
+ }
228
+
229
+ .event-start-resizer {
230
+ cursor: w-resize;
231
+ left: -1px;
232
+ }
233
+
234
+ .event-end-resizer {
235
+ cursor: e-resize;
236
+ right: -1px;
237
+ }
238
+
239
+ .selected-area {
240
+ position: absolute;
241
+ }
242
+
243
+ .slot-cell {
244
+ padding-left: 4px;
245
+ padding-right: 4px;
246
+ }
247
+
248
+ .slot-text {
249
+ display: inline-block;
250
+ padding-left: 4px;
251
+ padding-right: 4px;
252
+ }
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.isNonWorkingTime = exports.getSummary = exports.getScrollSpecialDayjs = exports.getNonAgendaViewBodyCellBgColor = exports.getEventText = exports.getDateLabel = exports.getCustomDate = exports["default"] = void 0;
7
7
  var _components = require("../components");
8
- //getSummary func example
9
- var getSummary = function getSummary(schedulerData, headerEvents, slotId, slotName, headerStart, headerEnd) {
8
+ // getSummary func example
9
+ // export const getSummary = (schedulerData, headerEvents, slotId, slotName, headerStart, headerEnd) => ({ text: 'Summary', color: 'red', fontSize: '1.2rem' });
10
+ var getSummary = function getSummary() {
10
11
  return {
11
12
  text: 'Summary',
12
13
  color: 'red',
@@ -14,13 +15,15 @@ var getSummary = function getSummary(schedulerData, headerEvents, slotId, slotNa
14
15
  };
15
16
  };
16
17
 
17
- //getCustomDate example
18
+ // getCustomDate example
18
19
  exports.getSummary = getSummary;
19
20
  var getCustomDate = function getCustomDate(schedulerData, num) {
20
21
  var date = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : schedulerData.startDate;
21
22
  var viewType = schedulerData.viewType,
22
23
  localeDayjs = schedulerData.localeDayjs;
23
- var startDate, endDate, cellUnit;
24
+ var startDate;
25
+ var endDate;
26
+ var cellUnit;
24
27
  if (viewType === _components.ViewType.Custom1) {
25
28
  var monday = localeDayjs(new Date(date)).startOf('week');
26
29
  startDate = num === 0 ? monday : localeDayjs(new Date(monday)).add(2 * num, 'weeks');
@@ -43,13 +46,13 @@ var getCustomDate = function getCustomDate(schedulerData, num) {
43
46
  };
44
47
  };
45
48
 
46
- //getNonAgendaViewBodyCellBgColor example
49
+ // getNonAgendaViewBodyCellBgColor example
47
50
  exports.getCustomDate = getCustomDate;
48
51
  var getNonAgendaViewBodyCellBgColor = function getNonAgendaViewBodyCellBgColor(schedulerData, slotId, header) {
49
52
  return header.nonWorkingTime ? undefined : '#87e8de';
50
53
  };
51
54
 
52
- //getDateLabel func example
55
+ // getDateLabel func example
53
56
  exports.getNonAgendaViewBodyCellBgColor = getNonAgendaViewBodyCellBgColor;
54
57
  var getDateLabel = function getDateLabel(schedulerData, viewType, startDate, endDate) {
55
58
  var localeDayjs = schedulerData.localeDayjs;
@@ -90,10 +93,9 @@ var isNonWorkingTime = function isNonWorkingTime(schedulerData, time) {
90
93
  if (cellUnit === _components.CellUnit.Hour) {
91
94
  var hour = localeDayjs(new Date(time)).hour();
92
95
  return hour < 9 || hour > 18;
93
- } else {
94
- var dayOfWeek = localeDayjs(new Date(time)).weekday();
95
- return dayOfWeek === 0 || dayOfWeek === 6;
96
96
  }
97
+ var dayOfWeek = localeDayjs(new Date(time)).weekday();
98
+ return dayOfWeek === 0 || dayOfWeek === 6;
97
99
  };
98
100
  exports.isNonWorkingTime = isNonWorkingTime;
99
101
  var _default = {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports["default"] = void 0;
6
7
  exports.getPos = getPos;
7
8
  function getPos(element) {
8
9
  var x = 0;
@@ -17,4 +18,6 @@ function getPos(element) {
17
18
  x: x,
18
19
  y: y
19
20
  };
20
- }
21
+ }
22
+ var _default = getPos;
23
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-big-schedule",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React. Seamlessly integrate this modern browser-compatible component into your applications to effectively manage time, appointments, and resources. With drag-and-drop functionality, interactive UI, and granular views, react-big-schedule empowers users to effortlessly schedule and allocate resources with precision. Enhance productivity and streamline your workflow with this React-based solution, designed to optimize time management and simplify calendar-based operations. Perfect for applications requiring advanced scheduling capabilities, react-big-schedule offers a seamless and intuitive experience for managing appointments, resource allocation, and time slots. Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning. It is the updated version of react-big-scheduler",
5
5
  "keywords": [
6
6
  "react big schedule",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@ant-design/icons": "^5.1.4",
60
- "antd": "^5.6.2",
60
+ "antd": "^5.6.3",
61
61
  "dayjs": "^1.11.8",
62
62
  "prop-types": "^15.8.1",
63
63
  "react": "^18.2.0",
64
64
  "react-dnd": "^14.0.5",
65
65
  "react-dnd-html5-backend": "^14.1.0",
66
66
  "react-dom": "^18.2.0",
67
- "rrule": "^2.7.2"
67
+ "rrule": "^2.7.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@babel/cli": "^7.22.5",
@@ -77,7 +77,7 @@
77
77
  "fs-extra": "^11.1.1",
78
78
  "html-webpack-plugin": "^5.5.3",
79
79
  "style-loader": "^3.3.3",
80
- "webpack": "^5.86.0",
80
+ "webpack": "^5.88.0",
81
81
  "webpack-cli": "^5.1.4",
82
82
  "webpack-dev-server": "^4.15.1"
83
83
  }