awesome-timeline-react 0.1.14 → 0.1.15
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/README.md +1 -1
- package/dist/_tsup-dts-rollup.d.mts +1 -1
- package/dist/_tsup-dts-rollup.d.ts +1 -1
- package/dist/index.css +210 -210
- package/dist/index.js +1923 -1923
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1910 -1910
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ The following properties for Timeline component are available:
|
|
|
45
45
|
- `classNames`: `string[]` (array of additional class names for customizing the event)
|
|
46
46
|
- `isResizable`: `boolean` (defines if event is resizable, overrides the default property `eventsResize`)
|
|
47
47
|
- `showPrompt`: `boolean` (defines if prompt will be shown after hover. Works only if `showEventPrompt` is set as true)
|
|
48
|
-
- `metadata`: `any` (some data that can be
|
|
48
|
+
- `metadata`: `any` (some data that can be used by event prompt template)
|
|
49
49
|
|
|
50
50
|
- `staticEvents` – an array of objects that define static events for particular rows, meaning the events are not interactable by the user.
|
|
51
51
|
|
package/dist/index.css
CHANGED
|
@@ -1,211 +1,211 @@
|
|
|
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
|
-
justify-content: space-between;
|
|
87
|
-
border-radius: 5px;
|
|
88
|
-
box-shadow: inset 0px 0px 5px gray;
|
|
89
|
-
}
|
|
90
|
-
.event-content {
|
|
91
|
-
position: absolute;
|
|
92
|
-
margin-inline: 13px;
|
|
93
|
-
width: calc(100% - 26px);
|
|
94
|
-
height: 100%;
|
|
95
|
-
display: flex;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
}
|
|
98
|
-
.event:hover .event-resize {
|
|
99
|
-
opacity: 100%;
|
|
100
|
-
}
|
|
101
|
-
.event-prompt {
|
|
102
|
-
position: absolute;
|
|
103
|
-
display: none;
|
|
104
|
-
}
|
|
105
|
-
.resize-bar {
|
|
106
|
-
height: 10px;
|
|
107
|
-
border: 1px solid black;
|
|
108
|
-
width: 1px;
|
|
109
|
-
box-sizing: border-box;
|
|
110
|
-
border-radius: 3px;
|
|
111
|
-
}
|
|
112
|
-
.event-resize {
|
|
113
|
-
opacity: 0%;
|
|
114
|
-
margin: 4px;
|
|
115
|
-
cursor: e-resize;
|
|
116
|
-
transition: opacity 0.3s ease-in-out;
|
|
117
|
-
flex-shrink: 1;
|
|
118
|
-
}
|
|
119
|
-
.static-event {
|
|
120
|
-
position: absolute;
|
|
121
|
-
background-color: #e0e0e0;
|
|
122
|
-
z-index: 0;
|
|
123
|
-
border: 1px solid transparent;
|
|
124
|
-
box-sizing: border-box;
|
|
125
|
-
border-radius: 5px;
|
|
126
|
-
}
|
|
127
|
-
.time-bar {
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-direction: row;
|
|
130
|
-
width: 100%;
|
|
131
|
-
height: 50px;
|
|
132
|
-
min-height: 50px;
|
|
133
|
-
border: 1px solid yellow;
|
|
134
|
-
background-color: rgb(39, 36, 36);
|
|
135
|
-
color: white;
|
|
136
|
-
box-sizing: border-box;
|
|
137
|
-
}
|
|
138
|
-
.empty-block {
|
|
139
|
-
width: 100px;
|
|
140
|
-
min-width: 100px;
|
|
141
|
-
border-right: 1px solid yellow;
|
|
142
|
-
box-sizing: border-box;
|
|
143
|
-
}
|
|
144
|
-
.time-content {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
height: 100%;
|
|
148
|
-
}
|
|
149
|
-
.day-row {
|
|
150
|
-
display: grid;
|
|
151
|
-
height: 50%;
|
|
152
|
-
width: auto;
|
|
153
|
-
border-bottom: 1px solid yellow;
|
|
154
|
-
div:not(:last-child) {
|
|
155
|
-
border-right: 1px solid yellow;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
.hour-row {
|
|
159
|
-
display: grid;
|
|
160
|
-
height: 50%;
|
|
161
|
-
div:not(:last-child) {
|
|
162
|
-
border-right: 1px solid yellow;
|
|
163
|
-
box-sizing: border-box;
|
|
164
|
-
}
|
|
165
|
-
box-shadow: 0px 4px 20px black;
|
|
166
|
-
}
|
|
167
|
-
.not-clickable {
|
|
168
|
-
div {
|
|
169
|
-
pointer-events: none;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
.line {
|
|
173
|
-
height: 100%;
|
|
174
|
-
width: 100%;
|
|
175
|
-
border-right: 1px solid #e4dcdc;
|
|
176
|
-
box-sizing: border-box;
|
|
177
|
-
}
|
|
178
|
-
.lines-canvas {
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 0;
|
|
181
|
-
display: grid;
|
|
182
|
-
height: 100%;
|
|
183
|
-
width: 100%;
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
}
|
|
186
|
-
.hide-last-line {
|
|
187
|
-
div:last-child {
|
|
188
|
-
border-right: none;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
.row-hidden {
|
|
192
|
-
visibility: hidden;
|
|
193
|
-
}
|
|
194
|
-
.rt-line {
|
|
195
|
-
position: absolute;
|
|
196
|
-
height: calc(100% - 24px);
|
|
197
|
-
top: 24px;
|
|
198
|
-
width: 2px;
|
|
199
|
-
box-sizing: border-box;
|
|
200
|
-
border-right: dotted 2px red;
|
|
201
|
-
}
|
|
202
|
-
.rt-arrow {
|
|
203
|
-
position: absolute;
|
|
204
|
-
top: 0px;
|
|
205
|
-
width: 0;
|
|
206
|
-
height: 0;
|
|
207
|
-
border-left: 15px solid transparent;
|
|
208
|
-
border-right: 15px solid transparent;
|
|
209
|
-
border-top: 26px solid red;
|
|
210
|
-
}
|
|
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
|
+
justify-content: space-between;
|
|
87
|
+
border-radius: 5px;
|
|
88
|
+
box-shadow: inset 0px 0px 5px gray;
|
|
89
|
+
}
|
|
90
|
+
.event-content {
|
|
91
|
+
position: absolute;
|
|
92
|
+
margin-inline: 13px;
|
|
93
|
+
width: calc(100% - 26px);
|
|
94
|
+
height: 100%;
|
|
95
|
+
display: flex;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
}
|
|
98
|
+
.event:hover .event-resize {
|
|
99
|
+
opacity: 100%;
|
|
100
|
+
}
|
|
101
|
+
.event-prompt {
|
|
102
|
+
position: absolute;
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
.resize-bar {
|
|
106
|
+
height: 10px;
|
|
107
|
+
border: 1px solid black;
|
|
108
|
+
width: 1px;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
border-radius: 3px;
|
|
111
|
+
}
|
|
112
|
+
.event-resize {
|
|
113
|
+
opacity: 0%;
|
|
114
|
+
margin: 4px;
|
|
115
|
+
cursor: e-resize;
|
|
116
|
+
transition: opacity 0.3s ease-in-out;
|
|
117
|
+
flex-shrink: 1;
|
|
118
|
+
}
|
|
119
|
+
.static-event {
|
|
120
|
+
position: absolute;
|
|
121
|
+
background-color: #e0e0e0;
|
|
122
|
+
z-index: 0;
|
|
123
|
+
border: 1px solid transparent;
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
border-radius: 5px;
|
|
126
|
+
}
|
|
127
|
+
.time-bar {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: row;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 50px;
|
|
132
|
+
min-height: 50px;
|
|
133
|
+
border: 1px solid yellow;
|
|
134
|
+
background-color: rgb(39, 36, 36);
|
|
135
|
+
color: white;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
}
|
|
138
|
+
.empty-block {
|
|
139
|
+
width: 100px;
|
|
140
|
+
min-width: 100px;
|
|
141
|
+
border-right: 1px solid yellow;
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
}
|
|
144
|
+
.time-content {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
height: 100%;
|
|
148
|
+
}
|
|
149
|
+
.day-row {
|
|
150
|
+
display: grid;
|
|
151
|
+
height: 50%;
|
|
152
|
+
width: auto;
|
|
153
|
+
border-bottom: 1px solid yellow;
|
|
154
|
+
div:not(:last-child) {
|
|
155
|
+
border-right: 1px solid yellow;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
.hour-row {
|
|
159
|
+
display: grid;
|
|
160
|
+
height: 50%;
|
|
161
|
+
div:not(:last-child) {
|
|
162
|
+
border-right: 1px solid yellow;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
}
|
|
165
|
+
box-shadow: 0px 4px 20px black;
|
|
166
|
+
}
|
|
167
|
+
.not-clickable {
|
|
168
|
+
div {
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
.line {
|
|
173
|
+
height: 100%;
|
|
174
|
+
width: 100%;
|
|
175
|
+
border-right: 1px solid #e4dcdc;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
}
|
|
178
|
+
.lines-canvas {
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: 0;
|
|
181
|
+
display: grid;
|
|
182
|
+
height: 100%;
|
|
183
|
+
width: 100%;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
}
|
|
186
|
+
.hide-last-line {
|
|
187
|
+
div:last-child {
|
|
188
|
+
border-right: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.row-hidden {
|
|
192
|
+
visibility: hidden;
|
|
193
|
+
}
|
|
194
|
+
.rt-line {
|
|
195
|
+
position: absolute;
|
|
196
|
+
height: calc(100% - 24px);
|
|
197
|
+
top: 24px;
|
|
198
|
+
width: 2px;
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
border-right: dotted 2px red;
|
|
201
|
+
}
|
|
202
|
+
.rt-arrow {
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: 0px;
|
|
205
|
+
width: 0;
|
|
206
|
+
height: 0;
|
|
207
|
+
border-left: 15px solid transparent;
|
|
208
|
+
border-right: 15px solid transparent;
|
|
209
|
+
border-top: 26px solid red;
|
|
210
|
+
}
|
|
211
211
|
/*# sourceMappingURL=index.css.map */
|