awesome-timeline-react 0.1.8 → 0.1.9
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.
- package/dist/_tsup-dts-rollup.d.mts +307 -0
- package/dist/index.css +196 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1846 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1829 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/index.d.mts +1 -0
- package/package.json +3 -1
- package/dist/grip-lines-vertical-solid-ZAJSSXEQ.svg +0 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { Context } from "react";
|
|
4
|
+
import { CSSProperties } from "react";
|
|
5
|
+
import { default as React_2 } from "react";
|
|
6
|
+
|
|
7
|
+
declare type ContentType = {
|
|
8
|
+
rows: RowType[];
|
|
9
|
+
events: EventType[];
|
|
10
|
+
staticEvents?: EventType[];
|
|
11
|
+
setEvents: React_2.Dispatch<React_2.SetStateAction<EventType[]>>;
|
|
12
|
+
tick: number | null;
|
|
13
|
+
windowTime: number[];
|
|
14
|
+
cellWidth: number;
|
|
15
|
+
setWindowTime: React_2.Dispatch<React_2.SetStateAction<number[]>>;
|
|
16
|
+
contentWidth: number | null;
|
|
17
|
+
setCellWidth: React_2.Dispatch<React_2.SetStateAction<number>>;
|
|
18
|
+
bodyRef: React_2.MutableRefObject<HTMLDivElement | null>;
|
|
19
|
+
lineClassName?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare const default_alias: {
|
|
23
|
+
title: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export declare const default_alias_1: React_2.ForwardRefExoticComponent<
|
|
27
|
+
ContentType & React_2.RefAttributes<HTMLDivElement>
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export declare const default_alias_10: (monthIndex: number) => string;
|
|
31
|
+
|
|
32
|
+
export declare const default_alias_11: (dayIndex: number) => string;
|
|
33
|
+
|
|
34
|
+
export declare const default_alias_12: (
|
|
35
|
+
eventA: EventType,
|
|
36
|
+
eventB: EventType
|
|
37
|
+
) => 1 | -1;
|
|
38
|
+
|
|
39
|
+
export declare const default_alias_13: ({
|
|
40
|
+
windowTime,
|
|
41
|
+
tick,
|
|
42
|
+
contentWidth,
|
|
43
|
+
blockWidth,
|
|
44
|
+
}: {
|
|
45
|
+
windowTime: number[];
|
|
46
|
+
tick: number | null;
|
|
47
|
+
contentWidth: number | null;
|
|
48
|
+
blockWidth: number;
|
|
49
|
+
}) => {
|
|
50
|
+
dayBlocks: JSX.Element[];
|
|
51
|
+
hourBlocks: JSX.Element[];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export declare const default_alias_14: ({
|
|
55
|
+
windowTime,
|
|
56
|
+
contentWidth,
|
|
57
|
+
}: {
|
|
58
|
+
windowTime: number[];
|
|
59
|
+
contentWidth: number | null;
|
|
60
|
+
}) => {
|
|
61
|
+
numberOfHourBlocks: number;
|
|
62
|
+
blockWidth: number;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare const default_alias_15: ({
|
|
66
|
+
bodyRef,
|
|
67
|
+
rowsContentRef,
|
|
68
|
+
}: {
|
|
69
|
+
bodyRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
70
|
+
rowsContentRef: React.MutableRefObject<HTMLDivElement[] | null>;
|
|
71
|
+
}) => void;
|
|
72
|
+
|
|
73
|
+
export declare const default_alias_16: ({
|
|
74
|
+
rows,
|
|
75
|
+
windowTime,
|
|
76
|
+
tick,
|
|
77
|
+
events,
|
|
78
|
+
staticEvents,
|
|
79
|
+
cellWidth,
|
|
80
|
+
setEvents,
|
|
81
|
+
bodyRef,
|
|
82
|
+
}: ProduceContentType) => React_2.JSX.Element[];
|
|
83
|
+
|
|
84
|
+
export declare const default_alias_17: ({
|
|
85
|
+
windowTime,
|
|
86
|
+
setTick,
|
|
87
|
+
setCellWidth,
|
|
88
|
+
contentRef,
|
|
89
|
+
}: {
|
|
90
|
+
windowTime: number[];
|
|
91
|
+
setTick: React.Dispatch<React.SetStateAction<number | null>>;
|
|
92
|
+
setCellWidth: React.Dispatch<React.SetStateAction<number>>;
|
|
93
|
+
contentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
94
|
+
}) => void;
|
|
95
|
+
|
|
96
|
+
export declare const default_alias_2: ({
|
|
97
|
+
id,
|
|
98
|
+
startPosition,
|
|
99
|
+
width,
|
|
100
|
+
top,
|
|
101
|
+
props,
|
|
102
|
+
setEvents,
|
|
103
|
+
tick,
|
|
104
|
+
}: {
|
|
105
|
+
id: string;
|
|
106
|
+
startPosition: number;
|
|
107
|
+
width: number;
|
|
108
|
+
top: CSSProperties["top"];
|
|
109
|
+
props?: EventPropsType;
|
|
110
|
+
setEvents: React_2.Dispatch<React_2.SetStateAction<EventType[]>>;
|
|
111
|
+
tick: number | null;
|
|
112
|
+
}) => React_2.JSX.Element;
|
|
113
|
+
|
|
114
|
+
export declare const default_alias_3: ({
|
|
115
|
+
contentWidth,
|
|
116
|
+
cellWidth,
|
|
117
|
+
lineClassName,
|
|
118
|
+
}: {
|
|
119
|
+
contentWidth: number | null;
|
|
120
|
+
cellWidth: number;
|
|
121
|
+
lineClassName?: string;
|
|
122
|
+
}) => React_2.JSX.Element;
|
|
123
|
+
|
|
124
|
+
export declare const default_alias_4: React_2.ForwardRefExoticComponent<
|
|
125
|
+
RowContentProps & {
|
|
126
|
+
children?: React_2.ReactNode;
|
|
127
|
+
} & React_2.RefAttributes<HTMLDivElement>
|
|
128
|
+
>;
|
|
129
|
+
|
|
130
|
+
export declare const default_alias_5: ({
|
|
131
|
+
name,
|
|
132
|
+
id,
|
|
133
|
+
}: {
|
|
134
|
+
name: string;
|
|
135
|
+
id: string;
|
|
136
|
+
}) => React_2.JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare const default_alias_6: ({
|
|
139
|
+
rows,
|
|
140
|
+
className,
|
|
141
|
+
}: {
|
|
142
|
+
rows: RowType[];
|
|
143
|
+
className?: string;
|
|
144
|
+
}) => React_2.JSX.Element;
|
|
145
|
+
|
|
146
|
+
export declare const default_alias_7: ({
|
|
147
|
+
tick,
|
|
148
|
+
windowTime,
|
|
149
|
+
}: {
|
|
150
|
+
tick: number | null;
|
|
151
|
+
windowTime: number[];
|
|
152
|
+
}) => React_2.JSX.Element;
|
|
153
|
+
|
|
154
|
+
export declare const default_alias_8: ({
|
|
155
|
+
id,
|
|
156
|
+
startPosition,
|
|
157
|
+
width,
|
|
158
|
+
top,
|
|
159
|
+
height,
|
|
160
|
+
}: {
|
|
161
|
+
id: string;
|
|
162
|
+
startPosition: CSSProperties["left"];
|
|
163
|
+
width: CSSProperties["width"];
|
|
164
|
+
top: CSSProperties["top"];
|
|
165
|
+
height: CSSProperties["height"];
|
|
166
|
+
}) => React_2.JSX.Element;
|
|
167
|
+
|
|
168
|
+
export declare const default_alias_9: ({
|
|
169
|
+
windowTime,
|
|
170
|
+
tick,
|
|
171
|
+
contentWidth,
|
|
172
|
+
scrollWidth,
|
|
173
|
+
additionalClassNames,
|
|
174
|
+
}: {
|
|
175
|
+
windowTime: number[];
|
|
176
|
+
tick: number | null;
|
|
177
|
+
contentWidth: number | null;
|
|
178
|
+
scrollWidth: number;
|
|
179
|
+
additionalClassNames?: PartialRecord<keyof ModifableElements, string>;
|
|
180
|
+
}) => React_2.JSX.Element;
|
|
181
|
+
|
|
182
|
+
export declare const DragStartedContext: Context<DragStartedContext_2>;
|
|
183
|
+
|
|
184
|
+
declare type DragStartedContext_2 = {
|
|
185
|
+
dragStarted: boolean;
|
|
186
|
+
setDragStarted: React.Dispatch<React.SetStateAction<boolean>>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export declare type EventPropsType = {
|
|
190
|
+
isLocked?: boolean;
|
|
191
|
+
content?: JSX.Element | string;
|
|
192
|
+
classNames?: string[];
|
|
193
|
+
isResizable?: boolean;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export declare type EventType = {
|
|
197
|
+
id: string;
|
|
198
|
+
rowId: string;
|
|
199
|
+
startTime: number;
|
|
200
|
+
endTime: number;
|
|
201
|
+
props?: EventPropsType;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export declare const ExternalPropertiesContext: Context<ExternalPropertiesType>;
|
|
205
|
+
|
|
206
|
+
declare type ExternalPropertiesType = {
|
|
207
|
+
onDrop?: (props: OnDropProps) => void;
|
|
208
|
+
onResize?: (props: OnResizeProps) => void;
|
|
209
|
+
eventsResize?: boolean;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export declare type ModifableElements = {
|
|
213
|
+
timeBar: string;
|
|
214
|
+
dayRow: string;
|
|
215
|
+
hourRow: string;
|
|
216
|
+
gridLine: string;
|
|
217
|
+
rowsHeader: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export declare type OnDropProps = {
|
|
221
|
+
eventId: string;
|
|
222
|
+
oldRowId: string;
|
|
223
|
+
newRowId: string;
|
|
224
|
+
startTime: number;
|
|
225
|
+
endTime: number;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
export declare type OnResizeProps = {
|
|
229
|
+
eventId: string;
|
|
230
|
+
startTime: number;
|
|
231
|
+
endTime: number;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export declare type PartialRecord<K extends keyof any, T> = Partial<
|
|
235
|
+
Record<K, T>
|
|
236
|
+
>;
|
|
237
|
+
|
|
238
|
+
declare type ProduceContentType = {
|
|
239
|
+
rows: RowType[];
|
|
240
|
+
events: EventType[];
|
|
241
|
+
staticEvents?: EventType[];
|
|
242
|
+
setEvents: React_2.Dispatch<React_2.SetStateAction<EventType[]>>;
|
|
243
|
+
tick: number | null;
|
|
244
|
+
windowTime: number[];
|
|
245
|
+
cellWidth: number;
|
|
246
|
+
bodyRef: React_2.MutableRefObject<HTMLDivElement | null>;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare type RowContentProps = {
|
|
250
|
+
id: string;
|
|
251
|
+
setEvents: React_2.Dispatch<React_2.SetStateAction<EventType[]>>;
|
|
252
|
+
tick: number | null;
|
|
253
|
+
windowTime: number[];
|
|
254
|
+
cellWidth: number;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export declare const RowsHeightContext: Context<RowsHeightContextType | null>;
|
|
258
|
+
|
|
259
|
+
declare type RowsHeightContextType = {
|
|
260
|
+
rowsHeight: Record<string, RowsHeightType> | null;
|
|
261
|
+
setRowsHeight: React.Dispatch<
|
|
262
|
+
React.SetStateAction<Record<string, RowsHeightType> | null>
|
|
263
|
+
>;
|
|
264
|
+
allRowsHeight: number;
|
|
265
|
+
setAllRowsHeight: React.Dispatch<React.SetStateAction<number>>;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export declare type RowsHeightType = {
|
|
269
|
+
minHeight: number;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export declare type RowType = {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
declare const Timeline: ({
|
|
278
|
+
rows,
|
|
279
|
+
events,
|
|
280
|
+
staticEvents,
|
|
281
|
+
onDrop,
|
|
282
|
+
onResize,
|
|
283
|
+
startDate,
|
|
284
|
+
endDate,
|
|
285
|
+
additionalClassNames,
|
|
286
|
+
showRTIndicator,
|
|
287
|
+
eventsResize,
|
|
288
|
+
}: TimelineType) => React_2.JSX.Element;
|
|
289
|
+
export { Timeline };
|
|
290
|
+
export { Timeline as Timeline_alias_1 };
|
|
291
|
+
|
|
292
|
+
export declare const TimelinePrimary: () => React_2.JSX.Element;
|
|
293
|
+
|
|
294
|
+
export declare type TimelineType = {
|
|
295
|
+
rows: RowType[];
|
|
296
|
+
events: EventType[];
|
|
297
|
+
staticEvents?: EventType[];
|
|
298
|
+
onDrop?: (props: OnDropProps) => void;
|
|
299
|
+
onResize?: (props: OnResizeProps) => void;
|
|
300
|
+
startDate: Date;
|
|
301
|
+
endDate: Date;
|
|
302
|
+
additionalClassNames?: PartialRecord<keyof ModifableElements, string>;
|
|
303
|
+
showRTIndicator?: boolean;
|
|
304
|
+
eventsResize?: boolean;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export {};
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,197 @@
|
|
|
1
|
-
|
|
1
|
+
/* src/style.css */
|
|
2
|
+
.rows-header-wrapper {
|
|
3
|
+
width: 100px;
|
|
4
|
+
height: fit-content;
|
|
5
|
+
border-right: 1px solid yellow;
|
|
6
|
+
background-color: rgb(39, 36, 36);
|
|
7
|
+
color: white;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
.row-header:not(:last-child) {
|
|
10
|
+
border-bottom: 1px solid yellow;
|
|
11
|
+
}
|
|
12
|
+
box-shadow: 4px 0px 20px black;
|
|
13
|
+
}
|
|
14
|
+
.main-wrapper {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
.body-wrapper {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
border-left: 1px solid black;
|
|
25
|
+
border-bottom: 1px solid black;
|
|
26
|
+
border-right: 1px solid black;
|
|
27
|
+
width: 100%;
|
|
28
|
+
overflow: auto;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
.day-block {
|
|
32
|
+
height: 100%;
|
|
33
|
+
text-align: center;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
padding: 4px;
|
|
39
|
+
}
|
|
40
|
+
.hour-block {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
text-align: center;
|
|
44
|
+
padding: 4px;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* src/components/style.css */
|
|
51
|
+
.content-wrapper {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
width: 100%;
|
|
56
|
+
.row-content:not(:last-child) {
|
|
57
|
+
border-bottom: 1px solid #e4dcdc;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.row-header {
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
width: 100px;
|
|
65
|
+
transition: min-height 0.5s ease-in-out;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
}
|
|
68
|
+
.row-content {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 100%;
|
|
71
|
+
padding-top: 10px;
|
|
72
|
+
padding-bottom: 10px;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
z-index: 0;
|
|
75
|
+
transition: min-height 0.5s ease-in-out;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
}
|
|
78
|
+
.event {
|
|
79
|
+
position: absolute;
|
|
80
|
+
height: 20px;
|
|
81
|
+
border: 1px solid black;
|
|
82
|
+
z-index: 1;
|
|
83
|
+
transition: top 0.5s ease-in-out;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
display: flex;
|
|
86
|
+
border-radius: 5px;
|
|
87
|
+
box-shadow: inset 0px 0px 5px gray;
|
|
88
|
+
}
|
|
89
|
+
.event-content {
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
}
|
|
95
|
+
.event-content:hover .event-resize {
|
|
96
|
+
opacity: 100%;
|
|
97
|
+
}
|
|
98
|
+
.event-resize {
|
|
99
|
+
opacity: 0%;
|
|
100
|
+
height: 10px;
|
|
101
|
+
margin: 5px;
|
|
102
|
+
cursor: e-resize;
|
|
103
|
+
transition: opacity 0.3s ease-in-out;
|
|
104
|
+
}
|
|
105
|
+
.static-event {
|
|
106
|
+
position: absolute;
|
|
107
|
+
background-color: #e0e0e0;
|
|
108
|
+
z-index: 0;
|
|
109
|
+
border: 1px solid transparent;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
border-radius: 5px;
|
|
112
|
+
}
|
|
113
|
+
.time-bar {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: row;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 50px;
|
|
118
|
+
min-height: 50px;
|
|
119
|
+
border: 1px solid yellow;
|
|
120
|
+
background-color: rgb(39, 36, 36);
|
|
121
|
+
color: white;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
}
|
|
124
|
+
.empty-block {
|
|
125
|
+
width: 100px;
|
|
126
|
+
min-width: 100px;
|
|
127
|
+
border-right: 1px solid yellow;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
}
|
|
130
|
+
.time-content {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
.day-row {
|
|
136
|
+
display: grid;
|
|
137
|
+
height: 50%;
|
|
138
|
+
width: auto;
|
|
139
|
+
border-bottom: 1px solid yellow;
|
|
140
|
+
div:not(:last-child) {
|
|
141
|
+
border-right: 1px solid yellow;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
.hour-row {
|
|
145
|
+
display: grid;
|
|
146
|
+
height: 50%;
|
|
147
|
+
div:not(:last-child) {
|
|
148
|
+
border-right: 1px solid yellow;
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
}
|
|
151
|
+
box-shadow: 0px 4px 20px black;
|
|
152
|
+
}
|
|
153
|
+
.not-clickable {
|
|
154
|
+
div {
|
|
155
|
+
pointer-events: none;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
.line {
|
|
159
|
+
height: 100%;
|
|
160
|
+
width: 100%;
|
|
161
|
+
border-right: 1px solid #e4dcdc;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
}
|
|
164
|
+
.lines-canvas {
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 0;
|
|
167
|
+
display: grid;
|
|
168
|
+
height: 100%;
|
|
169
|
+
width: 100%;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
}
|
|
172
|
+
.hide-last-line {
|
|
173
|
+
div:last-child {
|
|
174
|
+
border-right: none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.row-hidden {
|
|
178
|
+
visibility: hidden;
|
|
179
|
+
}
|
|
180
|
+
.rt-line {
|
|
181
|
+
position: absolute;
|
|
182
|
+
height: calc(100% - 24px);
|
|
183
|
+
top: 24px;
|
|
184
|
+
width: 2px;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
border-right: dotted 2px red;
|
|
187
|
+
}
|
|
188
|
+
.rt-arrow {
|
|
189
|
+
position: absolute;
|
|
190
|
+
top: 0px;
|
|
191
|
+
width: 0;
|
|
192
|
+
height: 0;
|
|
193
|
+
border-left: 15px solid transparent;
|
|
194
|
+
border-right: 15px solid transparent;
|
|
195
|
+
border-top: 26px solid red;
|
|
196
|
+
}
|
|
2
197
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\r\n width: 100px;\r\n height: fit-content;\r\n border-right: 1px solid yellow;\r\n background-color: rgb(39, 36, 36);\r\n color: white;\r\n box-sizing: border-box;\r\n .row-header:not(:last-child) {\r\n border-bottom: 1px solid yellow;\r\n }\r\n box-shadow: 4px 0px 20px black;\r\n}\r\n\r\n.main-wrapper {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n\r\n.body-wrapper {\r\n display: flex;\r\n flex-direction: row;\r\n border-left: 1px solid black;\r\n border-bottom: 1px solid black;\r\n border-right: 1px solid black;\r\n width: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n}\r\n\r\n.day-block {\r\n height: 100%;\r\n text-align: center;\r\n box-sizing: border-box;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n padding: 4px;\r\n}\r\n\r\n.hour-block {\r\n display: block;\r\n width: 100%;\r\n text-align: center;\r\n padding: 4px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n",".content-wrapper {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n .row-content:not(:last-child) {\r\n border-bottom: 1px solid #e4dcdc;\r\n }\r\n}\r\n\r\n.row-header {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100px;\r\n transition: min-height 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n}\r\n\r\n.row-content {\r\n position: relative;\r\n width: 100%;\r\n padding-top: 10px;\r\n padding-bottom: 10px;\r\n overflow: hidden;\r\n z-index: 0;\r\n transition: min-height 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n}\r\n\r\n.event {\r\n position: absolute;\r\n height: 20px;\r\n border: 1px solid black;\r\n z-index: 1;\r\n transition: top 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n display: flex;\r\n border-radius: 5px;\r\n box-shadow: inset 0px 0px 5px gray;\r\n}\r\n\r\n.event-content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.event-content:hover .event-resize {\r\n opacity: 100%;\r\n}\r\n\r\n.event-resize {\r\n opacity: 0%;\r\n height: 10px;\r\n margin: 5px;\r\n cursor: e-resize;\r\n transition: opacity 0.3s ease-in-out;\r\n}\r\n\r\n.static-event {\r\n position: absolute;\r\n background-color: #e0e0e0;\r\n z-index: 0;\r\n border: 1px solid transparent;\r\n box-sizing: border-box;\r\n border-radius: 5px;\r\n}\r\n\r\n.time-bar {\r\n display: flex;\r\n flex-direction: row;\r\n width: 100%;\r\n height: 50px;\r\n min-height: 50px;\r\n border: 1px solid yellow;\r\n background-color: rgb(39, 36, 36);\r\n color: white;\r\n box-sizing: border-box;\r\n}\r\n\r\n.empty-block {\r\n width: 100px;\r\n min-width: 100px;\r\n border-right: 1px solid yellow;\r\n box-sizing: border-box;\r\n}\r\n\r\n.time-content {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n}\r\n\r\n.day-row {\r\n display: grid;\r\n height: 50%;\r\n width: auto;\r\n border-bottom: 1px solid yellow;\r\n div:not(:last-child) {\r\n border-right: 1px solid yellow;\r\n }\r\n}\r\n\r\n.hour-row {\r\n display: grid;\r\n height: 50%;\r\n div:not(:last-child) {\r\n border-right: 1px solid yellow;\r\n box-sizing: border-box;\r\n }\r\n box-shadow: 0px 4px 20px black;\r\n}\r\n\r\n.not-clickable {\r\n div {\r\n pointer-events: none;\r\n }\r\n}\r\n\r\n.line {\r\n height: 100%;\r\n width: 100%;\r\n border-right: 1px solid #e4dcdc;\r\n box-sizing: border-box;\r\n}\r\n\r\n.lines-canvas {\r\n position: absolute;\r\n top: 0;\r\n display: grid;\r\n height: 100%;\r\n width: 100%;\r\n overflow: hidden;\r\n}\r\n\r\n.hide-last-line {\r\n div:last-child {\r\n border-right: none;\r\n }\r\n}\r\n\r\n.row-hidden {\r\n visibility: hidden;\r\n}\r\n\r\n.rt-line {\r\n position: absolute;\r\n height: calc(100% - 24px);\r\n top: 24px;\r\n width: 2px;\r\n box-sizing: border-box;\r\n border-right: dotted 2px red;\r\n}\r\n\r\n.rt-arrow {\r\n position: absolute;\r\n top: 0px;\r\n width: 0;\r\n height: 0;\r\n border-left: 15px solid transparent;\r\n border-right: 15px solid transparent;\r\n\r\n border-top: 26px solid red;\r\n}\r\n"],"mappings":"AAAA,CAAC,
|
|
1
|
+
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\r\n width: 100px;\r\n height: fit-content;\r\n border-right: 1px solid yellow;\r\n background-color: rgb(39, 36, 36);\r\n color: white;\r\n box-sizing: border-box;\r\n .row-header:not(:last-child) {\r\n border-bottom: 1px solid yellow;\r\n }\r\n box-shadow: 4px 0px 20px black;\r\n}\r\n\r\n.main-wrapper {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n\r\n.body-wrapper {\r\n display: flex;\r\n flex-direction: row;\r\n border-left: 1px solid black;\r\n border-bottom: 1px solid black;\r\n border-right: 1px solid black;\r\n width: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n}\r\n\r\n.day-block {\r\n height: 100%;\r\n text-align: center;\r\n box-sizing: border-box;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n padding: 4px;\r\n}\r\n\r\n.hour-block {\r\n display: block;\r\n width: 100%;\r\n text-align: center;\r\n padding: 4px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n",".content-wrapper {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n .row-content:not(:last-child) {\r\n border-bottom: 1px solid #e4dcdc;\r\n }\r\n}\r\n\r\n.row-header {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100px;\r\n transition: min-height 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n}\r\n\r\n.row-content {\r\n position: relative;\r\n width: 100%;\r\n padding-top: 10px;\r\n padding-bottom: 10px;\r\n overflow: hidden;\r\n z-index: 0;\r\n transition: min-height 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n}\r\n\r\n.event {\r\n position: absolute;\r\n height: 20px;\r\n border: 1px solid black;\r\n z-index: 1;\r\n transition: top 0.5s ease-in-out;\r\n box-sizing: border-box;\r\n display: flex;\r\n border-radius: 5px;\r\n box-shadow: inset 0px 0px 5px gray;\r\n}\r\n\r\n.event-content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.event-content:hover .event-resize {\r\n opacity: 100%;\r\n}\r\n\r\n.event-resize {\r\n opacity: 0%;\r\n height: 10px;\r\n margin: 5px;\r\n cursor: e-resize;\r\n transition: opacity 0.3s ease-in-out;\r\n}\r\n\r\n.static-event {\r\n position: absolute;\r\n background-color: #e0e0e0;\r\n z-index: 0;\r\n border: 1px solid transparent;\r\n box-sizing: border-box;\r\n border-radius: 5px;\r\n}\r\n\r\n.time-bar {\r\n display: flex;\r\n flex-direction: row;\r\n width: 100%;\r\n height: 50px;\r\n min-height: 50px;\r\n border: 1px solid yellow;\r\n background-color: rgb(39, 36, 36);\r\n color: white;\r\n box-sizing: border-box;\r\n}\r\n\r\n.empty-block {\r\n width: 100px;\r\n min-width: 100px;\r\n border-right: 1px solid yellow;\r\n box-sizing: border-box;\r\n}\r\n\r\n.time-content {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n}\r\n\r\n.day-row {\r\n display: grid;\r\n height: 50%;\r\n width: auto;\r\n border-bottom: 1px solid yellow;\r\n div:not(:last-child) {\r\n border-right: 1px solid yellow;\r\n }\r\n}\r\n\r\n.hour-row {\r\n display: grid;\r\n height: 50%;\r\n div:not(:last-child) {\r\n border-right: 1px solid yellow;\r\n box-sizing: border-box;\r\n }\r\n box-shadow: 0px 4px 20px black;\r\n}\r\n\r\n.not-clickable {\r\n div {\r\n pointer-events: none;\r\n }\r\n}\r\n\r\n.line {\r\n height: 100%;\r\n width: 100%;\r\n border-right: 1px solid #e4dcdc;\r\n box-sizing: border-box;\r\n}\r\n\r\n.lines-canvas {\r\n position: absolute;\r\n top: 0;\r\n display: grid;\r\n height: 100%;\r\n width: 100%;\r\n overflow: hidden;\r\n}\r\n\r\n.hide-last-line {\r\n div:last-child {\r\n border-right: none;\r\n }\r\n}\r\n\r\n.row-hidden {\r\n visibility: hidden;\r\n}\r\n\r\n.rt-line {\r\n position: absolute;\r\n height: calc(100% - 24px);\r\n top: 24px;\r\n width: 2px;\r\n box-sizing: border-box;\r\n border-right: dotted 2px red;\r\n}\r\n\r\n.rt-arrow {\r\n position: absolute;\r\n top: 0px;\r\n width: 0;\r\n height: 0;\r\n border-left: 15px solid transparent;\r\n border-right: 15px solid transparent;\r\n\r\n border-top: 26px solid red;\r\n}\r\n"],"mappings":"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","names":[]}
|