@nocobase/plugin-calendar 2.1.0-alpha.4 → 2.1.0-alpha.40

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 (47) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -10
  3. package/client-v2.d.ts +2 -0
  4. package/client-v2.js +3 -0
  5. package/dist/client/82.d5fa7ed1a8d872b0.js +10 -0
  6. package/dist/client/{9a7f2eedc5c80833.js → 953.dc0ed940b4cf0214.js} +1 -1
  7. package/dist/client/calendar/utils.d.ts +1 -3
  8. package/dist/client/index.js +1 -1
  9. package/dist/client-v2/110.a300efc255ce18b8.js +10 -0
  10. package/dist/client-v2/701.ab4233a614cd3e0a.js +10 -0
  11. package/dist/client-v2/82.7b76afd4bcb77bb9.js +10 -0
  12. package/dist/client-v2/944.f4b4f1ca02f36c49.js +10 -0
  13. package/dist/client-v2/952.8117af037dabbb79.js +10 -0
  14. package/dist/client-v2/953.6fd23a3f18022252.js +10 -0
  15. package/dist/client-v2/index.d.ts +10 -0
  16. package/dist/client-v2/index.js +10 -0
  17. package/dist/client-v2/locale.d.ts +10 -0
  18. package/dist/client-v2/models/CalendarBlockModel.d.ts +85 -0
  19. package/dist/client-v2/models/actions/CalendarActionModels.d.ts +43 -0
  20. package/dist/client-v2/models/actions/CalendarPopupModels.d.ts +47 -0
  21. package/dist/client-v2/models/components/CalendarBlock.d.ts +53 -0
  22. package/dist/client-v2/models/components/CalendarHeader.d.ts +21 -0
  23. package/dist/client-v2/models/components/CalendarToolbar.d.ts +20 -0
  24. package/dist/client-v2/models/components/CalendarViewContext.d.ts +22 -0
  25. package/dist/client-v2/models/components/dateTimeUtils.d.ts +9 -0
  26. package/dist/client-v2/models/components/getLabelFormatValue.d.ts +11 -0
  27. package/dist/client-v2/models/components/global.style.d.ts +11 -0
  28. package/dist/client-v2/models/components/index.d.ts +12 -0
  29. package/dist/client-v2/models/components/lazy.d.ts +11 -0
  30. package/dist/client-v2/models/components/style.d.ts +471 -0
  31. package/dist/client-v2/models/components/useCalendarHeight.d.ts +15 -0
  32. package/dist/client-v2/models/index.d.ts +11 -0
  33. package/dist/client-v2/models/utils.d.ts +44 -0
  34. package/dist/client-v2/plugin.d.ts +53 -0
  35. package/dist/externalVersion.js +9 -7
  36. package/dist/locale/en-US.json +4 -0
  37. package/dist/locale/zh-CN.json +4 -0
  38. package/dist/node_modules/solarlunar-es/LICENSE +21 -0
  39. package/dist/node_modules/solarlunar-es/dist/solarlunar.cjs.js +1 -0
  40. package/dist/node_modules/solarlunar-es/dist/solarlunar.d.ts +145 -0
  41. package/dist/node_modules/solarlunar-es/dist/solarlunar.esm.js +1 -0
  42. package/dist/node_modules/solarlunar-es/package.json +1 -0
  43. package/dist/shared/calendar.d.ts +17 -0
  44. package/dist/shared/calendar.js +70 -0
  45. package/package.json +4 -3
  46. package/dist/client/8eb21f8e302e69f4.js +0 -10
  47. package/dist/client/dfc51bc039d8fa26.js +0 -10
@@ -0,0 +1,53 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { Dayjs } from 'dayjs';
10
+ import React from 'react';
11
+ import { View } from 'react-big-calendar';
12
+ interface Event {
13
+ id: string;
14
+ colorFieldValue: string;
15
+ title: string;
16
+ rawTitle?: string;
17
+ start: Date;
18
+ end: Date;
19
+ allDay?: boolean;
20
+ }
21
+ export declare const getCalendarEventDisplayRange: (eventStart: Dayjs, intervalTime: number, hasEndField: boolean) => {
22
+ start: Dayjs;
23
+ end: Dayjs;
24
+ allDay: boolean;
25
+ };
26
+ type CalendarBlockProps = {
27
+ actionBar?: React.ReactNode;
28
+ collection: any;
29
+ dataSource: any[];
30
+ defaultView?: View;
31
+ fieldNames: {
32
+ colorFieldName: string;
33
+ start: string;
34
+ end: string;
35
+ id: string;
36
+ title: string;
37
+ };
38
+ getBackgroundColor?: (value: string) => string | null;
39
+ getFontColor?: (value: string) => string | null;
40
+ height?: number;
41
+ heightMode?: string;
42
+ onSelectEvent?: (payload: {
43
+ event: Event;
44
+ record: any;
45
+ }) => void;
46
+ onSelectSlot?: (payload: any) => void;
47
+ rangeLoadEnabled?: boolean;
48
+ resource?: any;
49
+ showLunar?: boolean;
50
+ weekStart?: number;
51
+ };
52
+ export declare const CalendarBlock: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<CalendarBlockProps>>;
53
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ type CalendarHeaderProps = {
11
+ date: Date;
12
+ label: string;
13
+ drilldownView?: string;
14
+ onDrillDown?: () => void;
15
+ showLunar?: boolean;
16
+ type?: 'week' | 'month';
17
+ localizer?: any;
18
+ locale?: string;
19
+ };
20
+ export declare const CalendarHeader: ({ date, label, drilldownView, onDrillDown, showLunar, type, localizer, locale, }: CalendarHeaderProps) => React.JSX.Element;
21
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ type CalendarToolbarProps = {
11
+ date: Date;
12
+ label: string;
13
+ onNavigate: (action: string) => void;
14
+ onView: (view: string) => void;
15
+ view: string;
16
+ views: string[];
17
+ showLunar?: boolean;
18
+ };
19
+ export declare const CalendarToolbar: ({ date, label, onNavigate, onView, view, views, showLunar }: CalendarToolbarProps) => React.JSX.Element;
20
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import type { View } from 'react-big-calendar';
11
+ export type CalendarNavigationAction = 'TODAY' | 'PREV' | 'NEXT';
12
+ export type CalendarViewContextValue = {
13
+ date: Date;
14
+ label: string;
15
+ navigate: (action: CalendarNavigationAction) => void;
16
+ showLunar?: boolean;
17
+ view: View;
18
+ views: View[];
19
+ setView: (view: View) => void;
20
+ };
21
+ export declare const CalendarViewProvider: React.Provider<CalendarViewContextValue>;
22
+ export declare const useCalendarViewContext: () => CalendarViewContextValue;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const handleDateChangeOnForm: (value: any, dateOnly: any, utc: any, picker: any, showTime: any, gmt: any) => any;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ISchema } from '@formily/react';
10
+ export declare const getDatePickerLabels: (props: any) => string;
11
+ export declare const getLabelFormatValue: (labelUiSchema: ISchema, value: any, isTag?: boolean, targetTitleCollectionField?: any, TitleRenderer?: any) => any;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ /// <reference types="react" />
10
+ declare const GlobalStyle: import("react").NamedExoticComponent<object>;
11
+ export default GlobalStyle;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './CalendarBlock';
10
+ export * from './CalendarHeader';
11
+ export * from './CalendarToolbar';
12
+ export * from './CalendarViewContext';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ type ModuleImportor<TModule extends Record<string, any> = Record<string, any>> = () => Promise<TModule>;
10
+ export declare function useLazy<T = () => any>(importor: ModuleImportor, picker: string | ((module: any) => T)): T;
11
+ export {};
@@ -0,0 +1,471 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const _default: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ calendar: {
11
+ height: string;
12
+ display: "flex";
13
+ flexDirection: "column";
14
+ overflow: "hidden";
15
+ marginBottom: number;
16
+ '.nb-calendar-body': {
17
+ flex: string;
18
+ minHeight: number;
19
+ overflow: "hidden";
20
+ };
21
+ '.rbc-calendar': {
22
+ boxSizing: "border-box";
23
+ display: "flex";
24
+ flexDirection: "column";
25
+ alignItems: "stretch";
26
+ height: string;
27
+ };
28
+ '.rbc-calendar *, .rbc-calendar *:before, .rbc-calendar *:after': {
29
+ boxSizing: "inherit";
30
+ };
31
+ '.rbc-rtl': {
32
+ direction: "rtl";
33
+ };
34
+ '.rbc-abs-full, .rbc-row-bg': {
35
+ overflow: "hidden";
36
+ position: "absolute";
37
+ top: number;
38
+ left: number;
39
+ right: number;
40
+ bottom: number;
41
+ };
42
+ '.rbc-ellipsis, .rbc-event-label, .rbc-row-segment .rbc-event-content, .rbc-show-more': {
43
+ display: "block";
44
+ overflow: "hidden";
45
+ textOverflow: "ellipsis";
46
+ whiteSpace: "nowrap";
47
+ };
48
+ '.rbc-header': {
49
+ overflow: "hidden";
50
+ flex: string;
51
+ textOverflow: "ellipsis";
52
+ whiteSpace: "nowrap";
53
+ padding: string;
54
+ verticalAlign: string;
55
+ minHeight: number;
56
+ color: string;
57
+ margin: string;
58
+ borderBottom: string;
59
+ };
60
+ '.rbc-header > a, .rbc-header > a:active, .rbc-header > a:visited': {
61
+ color: "inherit";
62
+ textDecoration: string;
63
+ };
64
+ '.rbc-rtl .rbc-header + .rbc-header': {
65
+ borderLeftWidth: number;
66
+ borderRight: string;
67
+ };
68
+ '.rbc-button-link': {
69
+ color: "inherit";
70
+ backgroundColor: "transparent";
71
+ border: string;
72
+ padding: number;
73
+ cursor: "pointer";
74
+ font: "inherit";
75
+ };
76
+ '.rbc-row': {
77
+ display: "flex";
78
+ flexDirection: "row";
79
+ };
80
+ '.rbc-row-content': {
81
+ position: "relative";
82
+ userSelect: "none";
83
+ WebkitUserSelect: "none";
84
+ zIndex: number;
85
+ };
86
+ '.rbc-row-content-scrollable': {
87
+ display: "flex";
88
+ flexDirection: "column";
89
+ height: string;
90
+ };
91
+ '.rbc-row-content-scrollable .rbc-row-content-scroll-container': {
92
+ height: string;
93
+ overflowY: "scroll";
94
+ msOverflowStyle: "none";
95
+ scrollbarWidth: "none";
96
+ };
97
+ '.rbc-row-content-scrollable .rbc-row-content-scroll-container::-webkit-scrollbar': {
98
+ display: "none";
99
+ };
100
+ '.rbc-row-segment': {
101
+ padding: string;
102
+ };
103
+ '.rbc-month-view': {
104
+ position: "relative";
105
+ display: "flex";
106
+ flexDirection: "column";
107
+ flex: string;
108
+ width: string;
109
+ userSelect: "none";
110
+ WebkitUserSelect: "none";
111
+ height: string;
112
+ minHeight: number;
113
+ overflow: "hidden";
114
+ '.rbc-day-bg': {
115
+ borderTop: string;
116
+ };
117
+ '.rbc-today': {
118
+ borderColor: string;
119
+ backgroundColor: string;
120
+ };
121
+ '.rbc-header': {
122
+ borderBottom: number;
123
+ };
124
+ };
125
+ '.rbc-month-header': {
126
+ display: "flex";
127
+ flexDirection: "row";
128
+ };
129
+ '.rbc-month-row': {
130
+ display: "flex";
131
+ position: "relative";
132
+ flexDirection: "column";
133
+ flex: string;
134
+ flexBasis: number;
135
+ overflow: "hidden";
136
+ height: string;
137
+ };
138
+ '.rbc-row-bg': {
139
+ display: "flex";
140
+ flexDirection: "row";
141
+ flex: string;
142
+ overflow: "hidden";
143
+ };
144
+ '.rbc-day-bg': {
145
+ flex: string;
146
+ margin: string;
147
+ '&:hover': {
148
+ background: string;
149
+ };
150
+ };
151
+ '.rbc-date-cell': {
152
+ flex: string;
153
+ minWidth: number;
154
+ paddingLeft: number;
155
+ paddingTop: number;
156
+ };
157
+ '.rbc-date-cell.rbc-now span, .rbc-date-cell a:hover': {
158
+ color: string;
159
+ };
160
+ '.rbc-date-cell a, .rbc-date-cell a:active, .rbc-date-cell a:visited': {
161
+ color: "inherit";
162
+ textDecoration: string;
163
+ };
164
+ '.rbc-date-cell .rbc-date-solar': {
165
+ fontWeight: number;
166
+ };
167
+ '.rbc-date-solar-week': {
168
+ fontSize: number;
169
+ };
170
+ '.rbc-date-cell .rbc-date-lunar': {
171
+ paddingLeft: number;
172
+ };
173
+ '.rbc-date-cell:not(.rbc-off-range) .rbc-date-lunar, .rbc-time-header-cell .rbc-header:not(.rbc-today) .rbc-date-lunar': {
174
+ color: string;
175
+ };
176
+ '.rbc-off-range': {
177
+ color: string;
178
+ };
179
+ '.rbc-event': {
180
+ border: string;
181
+ boxSizing: "border-box";
182
+ boxShadow: "none";
183
+ margin: number;
184
+ padding: string;
185
+ backgroundColor: string;
186
+ borderRadius: number;
187
+ color: string;
188
+ cursor: "pointer";
189
+ fontSize: number;
190
+ width: string;
191
+ textAlign: "left";
192
+ '&:hover': {
193
+ backgroundColor: string;
194
+ color: string;
195
+ };
196
+ };
197
+ '.rbc-event.rbc-selected': {
198
+ backgroundColor: string;
199
+ color: string;
200
+ };
201
+ '.rbc-slot-selecting .rbc-event': {
202
+ cursor: "inherit";
203
+ pointerEvents: "none";
204
+ };
205
+ '.rbc-event-label': {
206
+ fontSize: string;
207
+ };
208
+ '.rbc-event-overlaps': {
209
+ boxShadow: "-1px 1px 5px 0px rgba(51, 51, 51, 0.5)";
210
+ };
211
+ '.rbc-event-continues-prior': {
212
+ borderTopLeftRadius: number;
213
+ borderBottomLeftRadius: number;
214
+ };
215
+ '.rbc-event-continues-after': {
216
+ borderTopRightRadius: number;
217
+ borderBottomRightRadius: number;
218
+ };
219
+ '.rbc-event-continues-earlier': {
220
+ borderTopLeftRadius: number;
221
+ borderTopRightRadius: number;
222
+ };
223
+ '.rbc-event-continues-later': {
224
+ borderBottomLeftRadius: number;
225
+ borderBottomRightRadius: number;
226
+ };
227
+ '.rbc-selected-cell': {
228
+ backgroundColor: "rgba(0, 0, 0, 0.1)";
229
+ };
230
+ '.rbc-show-more': {
231
+ zIndex: number;
232
+ fontWeight: "bold";
233
+ fontSize: string;
234
+ height: string;
235
+ lineHeight: string;
236
+ color: "inherit";
237
+ padding: string;
238
+ };
239
+ '.rbc-time-view': {
240
+ display: "flex";
241
+ flexDirection: "column";
242
+ flex: number;
243
+ width: string;
244
+ borderTop: string;
245
+ minHeight: number;
246
+ };
247
+ '.rbc-time-view .rbc-time-gutter': {
248
+ whiteSpace: "nowrap";
249
+ };
250
+ '.rbc-time-view .rbc-allday-cell': {
251
+ boxSizing: "content-box";
252
+ width: string;
253
+ height: string;
254
+ position: "relative";
255
+ };
256
+ '.rbc-time-view .rbc-allday-cell + .rbc-allday-cell': {
257
+ borderLeft: string;
258
+ };
259
+ '.rbc-time-view .rbc-allday-events': {
260
+ position: "relative";
261
+ zIndex: number;
262
+ };
263
+ '.rbc-time-view .rbc-row': {
264
+ boxSizing: "border-box";
265
+ minHeight: string;
266
+ };
267
+ '.rbc-time-header': {
268
+ display: "flex";
269
+ flex: string;
270
+ flexDirection: "row";
271
+ };
272
+ '.rbc-time-header.rbc-overflowing': {
273
+ borderRight: string;
274
+ };
275
+ '.rbc-rtl .rbc-time-header.rbc-overflowing': {
276
+ borderRightWidth: number;
277
+ borderLeft: string;
278
+ };
279
+ '.rbc-time-header > .rbc-row:first-child, .rbc-time-header > .rbc-row.rbc-row-resource': {
280
+ borderBottom: string;
281
+ };
282
+ '.rbc-time-header-content': {
283
+ flex: number;
284
+ minWidth: number;
285
+ flexDirection: "column";
286
+ };
287
+ '.rbc-rtl .rbc-time-header-content': {
288
+ borderLeftWidth: number;
289
+ borderRight: string;
290
+ };
291
+ '.rbc-time-header-content + .rbc-time-header-content': {
292
+ marginLeft: string;
293
+ };
294
+ '.rbc-time-header-content > .rbc-row.rbc-row-resource': {
295
+ borderBottom: string;
296
+ flexShrink: number;
297
+ };
298
+ '.rbc-time-header-gutter, .rbc-header-gutter': {
299
+ flex: string;
300
+ };
301
+ '.rbc-time-header-gutter': {
302
+ lineHeight: string;
303
+ };
304
+ '.rbc-time-header-cell': {
305
+ minHeight: string;
306
+ };
307
+ '.rbc-time-header-cell-single-day': {
308
+ display: "none";
309
+ };
310
+ '.rbc-time-header-cell .rbc-header': {
311
+ display: "flex";
312
+ };
313
+ '.rbc-time-header-cell .rbc-header.rbc-today': {
314
+ borderColor: string;
315
+ backgroundColor: string;
316
+ color: string;
317
+ };
318
+ '.rbc-time-header-cell .rbc-header a': {
319
+ display: "flex";
320
+ flexDirection: "column";
321
+ };
322
+ '.rbc-time-header-cell .rbc-date-wrap': {
323
+ display: "flex";
324
+ alignItems: "center";
325
+ };
326
+ '.rbc-time-header-cell .rbc-date-solar': {
327
+ fontSize: string;
328
+ };
329
+ '.rbc-time-header-cell .rbc-date-solar-week': {
330
+ fontSize: string;
331
+ };
332
+ '.rbc-time-header-cell .rbc-date-lunar, .rbc-toolbar-lunar': {
333
+ marginLeft: string;
334
+ };
335
+ '.rbc-calendar.view-week': {
336
+ '.rbc-time-header-cell': {
337
+ marginTop: string;
338
+ marginBottom: string;
339
+ };
340
+ '.rbc-time-view': {
341
+ paddingTop: string;
342
+ borderTop: number;
343
+ };
344
+ '.rbc-header': {
345
+ padding: string;
346
+ };
347
+ '.rbc-time-header-content': {
348
+ padding: string;
349
+ };
350
+ '.rbc-time-header-gutter': {
351
+ padding: number;
352
+ paddingTop: string;
353
+ '> div': {
354
+ borderTop: string;
355
+ padding: string;
356
+ };
357
+ };
358
+ };
359
+ '.rbc-time-content': {
360
+ display: "flex";
361
+ flex: string;
362
+ alignItems: "flex-start";
363
+ width: string;
364
+ borderTop: string;
365
+ overflowY: "auto";
366
+ position: "relative";
367
+ };
368
+ '.rbc-time-content > .rbc-time-gutter': {
369
+ flex: string;
370
+ };
371
+ '.rbc-rtl .rbc-time-content > * + * > *': {
372
+ borderLeftWidth: number;
373
+ borderRight: string;
374
+ };
375
+ '.rbc-time-content > .rbc-day-slot': {
376
+ width: string;
377
+ userSelect: "none";
378
+ WebkitUserSelect: "none";
379
+ };
380
+ '.rbc-time-slot': {
381
+ flex: string;
382
+ };
383
+ '.rbc-time-slot.rbc-now': {
384
+ fontWeight: number;
385
+ };
386
+ '.rbc-time-column': {
387
+ display: "flex";
388
+ flexDirection: "column";
389
+ minHeight: string;
390
+ };
391
+ '.rbc-time-column .rbc-timeslot-group': {
392
+ flex: number;
393
+ };
394
+ '.rbc-timeslot-group': {
395
+ borderBottom: string;
396
+ minHeight: string;
397
+ lineHeight: string;
398
+ display: "flex";
399
+ flexFlow: "column nowrap";
400
+ '&:hover': {
401
+ background: string;
402
+ };
403
+ };
404
+ '.rbc-day-slot': {
405
+ position: "relative";
406
+ };
407
+ '.rbc-day-header': {
408
+ textAlign: "center";
409
+ };
410
+ '.rbc-day-slot .rbc-events-container': {
411
+ bottom: number;
412
+ left: number;
413
+ position: "absolute";
414
+ right: number;
415
+ marginRight: string;
416
+ top: number;
417
+ };
418
+ '.rbc-day-slot .rbc-events-container.rbc-rtl': {
419
+ left: string;
420
+ right: number;
421
+ };
422
+ '.rbc-day-slot .rbc-event': {
423
+ border: string;
424
+ display: "flex";
425
+ maxHeight: string;
426
+ minHeight: string;
427
+ flexFlow: "column wrap";
428
+ alignItems: "flex-start";
429
+ overflow: "hidden";
430
+ position: "absolute";
431
+ };
432
+ '.rbc-day-slot .rbc-event-label': {
433
+ flex: string;
434
+ paddingRight: string;
435
+ width: string;
436
+ };
437
+ '.rbc-day-slot .rbc-event-content': {
438
+ width: string;
439
+ flex: string;
440
+ wordWrap: "break-word";
441
+ lineHeight: number;
442
+ height: string;
443
+ minHeight: string;
444
+ };
445
+ '.rbc-label': {
446
+ padding: string;
447
+ };
448
+ '.rbc-slot-selection': {
449
+ zIndex: number;
450
+ position: "absolute";
451
+ backgroundColor: "rgba(0, 0, 0, 0.5)";
452
+ color: "white";
453
+ fontSize: string;
454
+ width: string;
455
+ padding: string;
456
+ };
457
+ '.rbc-slot-selecting': {
458
+ cursor: "move";
459
+ };
460
+ '.rbc-current-time-indicator': {
461
+ position: "absolute";
462
+ zIndex: number;
463
+ left: number;
464
+ right: number;
465
+ height: string;
466
+ backgroundColor: "#74ad31";
467
+ pointerEvents: "none";
468
+ };
469
+ };
470
+ }>;
471
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const useCalendarHeight: ({ height, heightMode, containerRef, actionBarRef, }: {
11
+ height?: number;
12
+ heightMode?: string;
13
+ containerRef: React.RefObject<HTMLDivElement>;
14
+ actionBarRef: React.RefObject<HTMLDivElement>;
15
+ }) => number;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './CalendarBlockModel';
10
+ export * from './actions/CalendarActionModels';
11
+ export * from './actions/CalendarPopupModels';