time_table 0.1.5 → 0.1.7
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.
- checksums.yaml +4 -4
- data/app/assets/javascript/time_table/controllers/index.js +1 -1
- data/app/assets/javascript/time_table/controllers/time_table_controller_old.js +105 -464
- data/app/assets/javascript/time_table/controllers/{time_table_controller.js → timetable_controller.js} +126 -29
- data/app/assets/javascript/time_table/helpers/drag_event_state.js +12 -2
- data/app/assets/javascript/time_table/helpers/time_table_renderer.js +36 -25
- data/app/assets/stylesheets/time_table/timetable.css +143 -0
- data/app/helpers/time_table/{time_table_helper.rb → time_table_old_helper.rb} +17 -5
- data/app/helpers/time_table/timetable_calendar_helper.rb +206 -0
- data/app/views/time_table/{_time_table.html.erb → _time_table_old.html.erb} +1 -7
- data/app/views/time_table/_timetable.html.erb +49 -0
- data/lib/time_table/version.rb +1 -1
- metadata +8 -7
- data/app/assets/javascript/time_table/controllers/time_table_controller_pre_time_keeper.js +0 -350
- data/app/assets/stylesheets/time_table/time_table.css +0 -136
@@ -1,136 +0,0 @@
|
|
1
|
-
.timetable {
|
2
|
-
width: 100%;
|
3
|
-
position: relative;
|
4
|
-
overflow: scroll;
|
5
|
-
height: 100%;
|
6
|
-
padding-top: 20px;
|
7
|
-
display: flex;
|
8
|
-
|
9
|
-
/* padding-top: 20px; */
|
10
|
-
}
|
11
|
-
|
12
|
-
.timetable-canvas {
|
13
|
-
/* overflow: visible; */
|
14
|
-
/* margin-top: 0.5em; */
|
15
|
-
position: relative;
|
16
|
-
height: calc(100%);
|
17
|
-
flex-grow: 1;
|
18
|
-
/* padding-right: 20px; */
|
19
|
-
}
|
20
|
-
|
21
|
-
.timetable .timestamps {
|
22
|
-
/* width: 40px; */
|
23
|
-
/* overflow: show; */
|
24
|
-
}
|
25
|
-
|
26
|
-
.timetable:hover {
|
27
|
-
/* cursor: crosshair; */
|
28
|
-
}
|
29
|
-
|
30
|
-
.timetable::-webkit-scrollbar {
|
31
|
-
display: none;
|
32
|
-
}
|
33
|
-
|
34
|
-
.timestamps {
|
35
|
-
position: absolute;
|
36
|
-
left: 0;
|
37
|
-
padding-left: 5px;
|
38
|
-
right: 0;
|
39
|
-
display: flex;
|
40
|
-
flex-direction: column;
|
41
|
-
/* height: 2400px; */
|
42
|
-
/* gap: 50px; */
|
43
|
-
/* height: 50px; */
|
44
|
-
justify-content: space-between;
|
45
|
-
/* z-index: 100; */
|
46
|
-
/* overflow: visible; */
|
47
|
-
}
|
48
|
-
|
49
|
-
.timestamps .timestamp {
|
50
|
-
font-size: 0.8em;
|
51
|
-
width: 100%;
|
52
|
-
position: relative;
|
53
|
-
height: calc(var(--hour-scale) * 1px);
|
54
|
-
/* z-index: 100; */
|
55
|
-
overflow: visible;
|
56
|
-
}
|
57
|
-
|
58
|
-
.timestamps .timestamp.out-of-bounds {
|
59
|
-
color: rgb(168, 167, 167);
|
60
|
-
}
|
61
|
-
|
62
|
-
.timestamp .label {
|
63
|
-
margin-top: -0.5em;
|
64
|
-
height: 100%;
|
65
|
-
width: fit-content;
|
66
|
-
z-index: 5;
|
67
|
-
/* z-index: 1000; */
|
68
|
-
}
|
69
|
-
|
70
|
-
.timestamp .label:hover {
|
71
|
-
cursor: ns-resize;
|
72
|
-
}
|
73
|
-
|
74
|
-
.timestamps .timestamp::before {
|
75
|
-
content: "";
|
76
|
-
position: absolute;
|
77
|
-
/* top: 0.5em; */
|
78
|
-
right: 0;
|
79
|
-
left: 45px;
|
80
|
-
height: 1px;
|
81
|
-
background-color: #ccc;
|
82
|
-
opacity: 0.5;
|
83
|
-
}
|
84
|
-
|
85
|
-
.timestamps .quarters {
|
86
|
-
position: absolute;
|
87
|
-
top: 0;
|
88
|
-
right: 10px;
|
89
|
-
left: 55px;
|
90
|
-
bottom: 0;
|
91
|
-
display: flex;
|
92
|
-
flex-direction: column;
|
93
|
-
flex-grow: 1;
|
94
|
-
}
|
95
|
-
|
96
|
-
.timestamps .quarters .quarter {
|
97
|
-
flex-grow: 1;
|
98
|
-
max-height: 25%;
|
99
|
-
/* position: absolute;
|
100
|
-
top: 0;
|
101
|
-
right: 0;
|
102
|
-
left: 0;
|
103
|
-
bottom: 0; */
|
104
|
-
}
|
105
|
-
|
106
|
-
.timestamps .quarters .quarter:not(.selected):hover {
|
107
|
-
/* border: 1px solid black; */
|
108
|
-
/* cursor: pointer; */
|
109
|
-
/* background-color: #e5e5e5; */
|
110
|
-
}
|
111
|
-
|
112
|
-
.timestamps .quarters .quarter.selected {
|
113
|
-
border-left: 1px solid black;
|
114
|
-
border-right: 1px solid black;
|
115
|
-
background-color: #e5e5e5;
|
116
|
-
}
|
117
|
-
|
118
|
-
.timestamps .quarters .quarter.selected.first-selection {
|
119
|
-
border-top: 1px solid black;
|
120
|
-
}
|
121
|
-
|
122
|
-
.timestamps .quarters .quarter.selected.last-selection {
|
123
|
-
border-bottom: 1px solid black;
|
124
|
-
}
|
125
|
-
|
126
|
-
.timestamps .quarters .quarter .hover-content {
|
127
|
-
display: none;
|
128
|
-
padding: 4px;
|
129
|
-
|
130
|
-
/* height: 100%; */
|
131
|
-
}
|
132
|
-
|
133
|
-
.timestamps .quarters .quarter.first-selection .hover-content,
|
134
|
-
.timestamps .quarters .quarter.last-selection .hover-content {
|
135
|
-
display: initial;
|
136
|
-
}
|