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