@worktile/gantt 12.2.3 → 13.0.0
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/components/bar/bar.component.scss +201 -0
- package/components/calendar/calendar.component.scss +79 -0
- package/components/drag-backdrop/drag-backdrop.component.scss +50 -0
- package/components/icon/icon.component.scss +13 -0
- package/components/links/links.component.scss +29 -0
- package/components/range/range.component.scss +35 -0
- package/components/table/gantt-table.component.scss +153 -0
- package/{esm2015/class/date-point.js → esm2020/class/date-point.mjs} +0 -0
- package/{esm2015/class/event.js → esm2020/class/event.mjs} +0 -0
- package/{esm2015/class/group.js → esm2020/class/group.mjs} +0 -0
- package/{esm2015/class/index.js → esm2020/class/index.mjs} +0 -0
- package/{esm2015/class/item.js → esm2020/class/item.mjs} +0 -0
- package/{esm2015/class/link.js → esm2020/class/link.mjs} +0 -0
- package/{esm2015/class/view-type.js → esm2020/class/view-type.mjs} +0 -0
- package/esm2020/components/bar/bar-drag.mjs +308 -0
- package/{esm2015/components/bar/bar.component.js → esm2020/components/bar/bar.component.mjs} +5 -9
- package/{esm2015/components/calendar/calendar.component.js → esm2020/components/calendar/calendar.component.mjs} +5 -8
- package/{esm2015/components/drag-backdrop/drag-backdrop.component.js → esm2020/components/drag-backdrop/drag-backdrop.component.mjs} +6 -10
- package/{esm2015/components/icon/icon.component.js → esm2020/components/icon/icon.component.mjs} +3 -3
- package/{esm2015/components/icon/icons.js → esm2020/components/icon/icons.mjs} +0 -0
- package/esm2020/components/links/lines/curve.mjs +95 -0
- package/{esm2015/components/links/lines/factory.js → esm2020/components/links/lines/factory.mjs} +0 -0
- package/{esm2015/components/links/lines/line.js → esm2020/components/links/lines/line.mjs} +0 -0
- package/{esm2015/components/links/lines/straight.js → esm2020/components/links/lines/straight.mjs} +0 -0
- package/esm2020/components/links/links.component.mjs +178 -0
- package/{esm2015/components/main/gantt-main.component.js → esm2020/components/main/gantt-main.component.mjs} +5 -8
- package/{esm2015/components/range/range.component.js → esm2020/components/range/range.component.mjs} +5 -8
- package/esm2020/components/table/gantt-table.component.mjs +161 -0
- package/{esm2015/gantt-abstract.js → esm2020/gantt-abstract.mjs} +0 -0
- package/{esm2015/gantt-dom.service.js → esm2020/gantt-dom.service.mjs} +3 -3
- package/{esm2015/gantt-drag-container.js → esm2020/gantt-drag-container.mjs} +5 -6
- package/{esm2015/gantt-item-upper.js → esm2020/gantt-item-upper.mjs} +4 -4
- package/esm2020/gantt-print.service.mjs +94 -0
- package/esm2020/gantt-upper.mjs +339 -0
- package/{esm2015/gantt.component.js → esm2020/gantt.component.mjs} +7 -13
- package/{esm2015/gantt.config.js → esm2020/gantt.config.mjs} +0 -0
- package/{esm2015/gantt.module.js → esm2020/gantt.module.mjs} +4 -4
- package/{esm2015/gantt.pipe.js → esm2020/gantt.pipe.mjs} +9 -9
- package/{esm2015/gantt.styles.js → esm2020/gantt.styles.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/root.component.js → esm2020/root.component.mjs} +6 -11
- package/{esm2015/table/gantt-column.component.js → esm2020/table/gantt-column.component.mjs} +3 -3
- package/{esm2015/table/gantt-table.component.js → esm2020/table/gantt-table.component.mjs} +3 -3
- package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
- package/{esm2015/utils/helpers.js → esm2020/utils/helpers.mjs} +0 -0
- package/{esm2015/utils/passive-listeners.js → esm2020/utils/passive-listeners.mjs} +0 -0
- package/{esm2015/utils/set-style-with-vendor-prefix.js → esm2020/utils/set-style-with-vendor-prefix.mjs} +0 -0
- package/{esm2015/views/day.js → esm2020/views/day.mjs} +0 -0
- package/{esm2015/views/factory.js → esm2020/views/factory.mjs} +0 -0
- package/{esm2015/views/month.js → esm2020/views/month.mjs} +0 -0
- package/{esm2015/views/quarter.js → esm2020/views/quarter.mjs} +0 -0
- package/{esm2015/views/view.js → esm2020/views/view.mjs} +5 -5
- package/{esm2015/views/week.js → esm2020/views/week.mjs} +0 -0
- package/{esm2015/views/year.js → esm2020/views/year.mjs} +0 -0
- package/{esm2015/worktile-gantt.js → esm2020/worktile-gantt.mjs} +0 -0
- package/fesm2015/worktile-gantt.mjs +3078 -0
- package/fesm2015/worktile-gantt.mjs.map +1 -0
- package/{fesm2015/worktile-gantt.js → fesm2020/worktile-gantt.mjs} +159 -191
- package/fesm2020/worktile-gantt.mjs.map +1 -0
- package/gantt-item-upper.d.ts +1 -1
- package/gantt-upper.d.ts +1 -1
- package/gantt.component.scss +83 -0
- package/package.json +35 -9
- package/styles/index.scss +9 -0
- package/styles/variables.scss +46 -0
- package/bundles/worktile-gantt.umd.js +0 -3723
- package/bundles/worktile-gantt.umd.js.map +0 -1
- package/esm2015/components/bar/bar-drag.js +0 -306
- package/esm2015/components/links/lines/curve.js +0 -96
- package/esm2015/components/links/links.component.js +0 -173
- package/esm2015/components/table/gantt-table.component.js +0 -167
- package/esm2015/gantt-print.service.js +0 -97
- package/esm2015/gantt-upper.js +0 -340
- package/fesm2015/worktile-gantt.js.map +0 -1
- package/main.bundle.scss +0 -688
package/main.bundle.scss
DELETED
|
@@ -1,688 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
// basic
|
|
3
|
-
$gantt-color: #333 !default;
|
|
4
|
-
$gantt-header-height: 44px !default;
|
|
5
|
-
$gantt-border-color: #eee !default;
|
|
6
|
-
$gantt-bg-color: #fff !default;
|
|
7
|
-
$gantt-side-shadow: 12px 0 16px -10px rgba(0, 0, 0, 0.15) !default;
|
|
8
|
-
$gantt-container-background-color: #fafafa !default;
|
|
9
|
-
$gantt-item-height: 44px !default;
|
|
10
|
-
$gantt-group-background-color: rgba(
|
|
11
|
-
$color: #f3f3f3,
|
|
12
|
-
$alpha: 0.5
|
|
13
|
-
) !default;
|
|
14
|
-
$gantt-group-height: 44px !default;
|
|
15
|
-
$gantt-table-td-padding: 0 15px !default;
|
|
16
|
-
|
|
17
|
-
// calendar
|
|
18
|
-
$gantt-date-primary-color: #888 !default;
|
|
19
|
-
$gantt-date-primary-font-size: 14px !default;
|
|
20
|
-
$gantt-date-primary-border: #ddd !default;
|
|
21
|
-
$gantt-date-secondary-color: #333 !default;
|
|
22
|
-
$gantt-date-secondary-font-size: 14px !default;
|
|
23
|
-
$gantt-date-secondary-weekend-color: #aaa !default;
|
|
24
|
-
$gantt-date-week-backdrop-bg: rgba(
|
|
25
|
-
$color: #f3f3f3,
|
|
26
|
-
$alpha: 0.5
|
|
27
|
-
) !default;
|
|
28
|
-
$gantt-date-today-color: #ff9f73 !default;
|
|
29
|
-
$gantt-date-today-text-color: #fff !default;
|
|
30
|
-
|
|
31
|
-
// bar
|
|
32
|
-
$gantt-bar-bg: #fff !default;
|
|
33
|
-
$gantt-bar-layer-bg: #fff !default;
|
|
34
|
-
$gantt-bar-handle-color: #cacaca !default;
|
|
35
|
-
$gantt-bar-handle-height: 12px !default;
|
|
36
|
-
$gantt-bar-background-color: #348fe4 !default;
|
|
37
|
-
|
|
38
|
-
// drag
|
|
39
|
-
$gantt-item-drag-mask-color: #348fe4 !default;
|
|
40
|
-
$gantt-link-dragging-line-color: #348fe4 !default;
|
|
41
|
-
|
|
42
|
-
// link
|
|
43
|
-
$gantt-link-line-color: #348fe4 !default;
|
|
44
|
-
|
|
45
|
-
// table
|
|
46
|
-
$gantt-table-header-drag-line-width: 3px !default;
|
|
47
|
-
$gantt-table-header-drag-line-color: #348fe4 !default;
|
|
48
|
-
|
|
49
|
-
.gantt {
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
background-color: $gantt-bg-color;
|
|
53
|
-
position: relative;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
display: flex;
|
|
56
|
-
color: $gantt-color;
|
|
57
|
-
opacity: 0;
|
|
58
|
-
|
|
59
|
-
svg {
|
|
60
|
-
overflow: visible !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.gantt-side {
|
|
64
|
-
border-right: 1px solid $gantt-border-color;
|
|
65
|
-
position: relative;
|
|
66
|
-
z-index: 3;
|
|
67
|
-
// overflow-x: scroll;
|
|
68
|
-
box-shadow: $gantt-side-shadow;
|
|
69
|
-
|
|
70
|
-
.gantt-side-header {
|
|
71
|
-
box-sizing: border-box;
|
|
72
|
-
height: $gantt-header-height;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.gantt-side-container {
|
|
76
|
-
height: 100%;
|
|
77
|
-
background-color: $gantt-bg-color;
|
|
78
|
-
overflow-y: auto;
|
|
79
|
-
|
|
80
|
-
&::-webkit-scrollbar {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.gantt-container {
|
|
87
|
-
flex: 1;
|
|
88
|
-
position: relative;
|
|
89
|
-
display: flex;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
background-color: $gantt-container-background-color;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.gantt-main-container {
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: calc(100% - #{$gantt-header-height});
|
|
97
|
-
flex: 1;
|
|
98
|
-
position: absolute;
|
|
99
|
-
top: $gantt-header-height;
|
|
100
|
-
bottom: 0;
|
|
101
|
-
left: 0;
|
|
102
|
-
right: 0;
|
|
103
|
-
overflow: auto;
|
|
104
|
-
background-color: $gantt-container-background-color;
|
|
105
|
-
|
|
106
|
-
.gantt-main-groups,
|
|
107
|
-
.gantt-main-items {
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
min-height: 100%;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.gantt-group {
|
|
113
|
-
height: $gantt-group-height;
|
|
114
|
-
background: $gantt-group-background-color;
|
|
115
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
116
|
-
box-sizing: border-box;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.gantt-item {
|
|
120
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
121
|
-
box-sizing: border-box;
|
|
122
|
-
position: relative;
|
|
123
|
-
|
|
124
|
-
&.gantt-main-item-active {
|
|
125
|
-
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.gantt-table {
|
|
133
|
-
display: block;
|
|
134
|
-
&-empty {
|
|
135
|
-
height: 100%;
|
|
136
|
-
position: relative;
|
|
137
|
-
.gantt-table-body {
|
|
138
|
-
position: absolute;
|
|
139
|
-
text-align: center;
|
|
140
|
-
top: 50%;
|
|
141
|
-
left: 50%;
|
|
142
|
-
transform: translate(-50%, -50%);
|
|
143
|
-
margin-top: 22px;
|
|
144
|
-
.empty-icon {
|
|
145
|
-
svg {
|
|
146
|
-
height: 78px;
|
|
147
|
-
width: 78px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
.empty-text {
|
|
151
|
-
color: #cacaca;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&-drag-trigger {
|
|
157
|
-
width: $gantt-table-header-drag-line-width;
|
|
158
|
-
position: absolute;
|
|
159
|
-
top: 0;
|
|
160
|
-
right: 0;
|
|
161
|
-
bottom: 0;
|
|
162
|
-
cursor: ew-resize;
|
|
163
|
-
z-index: 1;
|
|
164
|
-
|
|
165
|
-
&:hover {
|
|
166
|
-
background: $gantt-table-header-drag-line-color;
|
|
167
|
-
z-index: 2;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&-drag-auxiliary-line {
|
|
172
|
-
width: $gantt-table-header-drag-line-width;
|
|
173
|
-
background: $gantt-table-header-drag-line-color;
|
|
174
|
-
position: absolute;
|
|
175
|
-
top: 0;
|
|
176
|
-
bottom: 0;
|
|
177
|
-
z-index: 100;
|
|
178
|
-
display: none;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.gantt-table-row {
|
|
182
|
-
display: flex;
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
185
|
-
|
|
186
|
-
.gantt-table-column {
|
|
187
|
-
overflow: hidden;
|
|
188
|
-
border-right: 1px solid $gantt-border-color;
|
|
189
|
-
box-sizing: border-box;
|
|
190
|
-
position: relative;
|
|
191
|
-
|
|
192
|
-
&:last-child {
|
|
193
|
-
border-right: none;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.gantt-table-header {
|
|
199
|
-
text-align: center;
|
|
200
|
-
position: sticky;
|
|
201
|
-
top: 0;
|
|
202
|
-
background: #fff;
|
|
203
|
-
z-index: 2;
|
|
204
|
-
height: $gantt-header-height;
|
|
205
|
-
line-height: $gantt-header-height;
|
|
206
|
-
|
|
207
|
-
.gantt-table-column {
|
|
208
|
-
font-weight: 400;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.gantt-table-body {
|
|
213
|
-
.gantt-table-group {
|
|
214
|
-
display: flex;
|
|
215
|
-
height: $gantt-group-height;
|
|
216
|
-
background: $gantt-group-background-color;
|
|
217
|
-
padding: 0 10px;
|
|
218
|
-
align-items: center;
|
|
219
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
220
|
-
box-sizing: border-box;
|
|
221
|
-
position: relative;
|
|
222
|
-
|
|
223
|
-
.gantt-table-group-title {
|
|
224
|
-
cursor: pointer;
|
|
225
|
-
|
|
226
|
-
.expand-icon {
|
|
227
|
-
color: #aaa;
|
|
228
|
-
margin-right: 6px;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.gantt-table-item {
|
|
234
|
-
cursor: pointer;
|
|
235
|
-
&-first-level-group {
|
|
236
|
-
background: $gantt-group-background-color;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&-with-group {
|
|
240
|
-
.gantt-table-column {
|
|
241
|
-
&:first-child {
|
|
242
|
-
padding: 0 15px 0 32px;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.gantt-table-column {
|
|
248
|
-
display: flex;
|
|
249
|
-
padding: $gantt-table-td-padding;
|
|
250
|
-
|
|
251
|
-
&:last-child {
|
|
252
|
-
border-right: none;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.gantt-table-column-content {
|
|
257
|
-
flex: 1;
|
|
258
|
-
position: relative;
|
|
259
|
-
overflow: hidden;
|
|
260
|
-
text-overflow: ellipsis;
|
|
261
|
-
white-space: nowrap;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
&:hover {
|
|
265
|
-
background-color: $gantt-container-background-color;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
&-active {
|
|
269
|
-
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
270
|
-
&:hover {
|
|
271
|
-
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.gantt-expand-icon {
|
|
277
|
-
display: inline-block;
|
|
278
|
-
width: 20px;
|
|
279
|
-
color: #aaa;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.gantt-calendar-overlay {
|
|
285
|
-
display: block;
|
|
286
|
-
height: 100%;
|
|
287
|
-
overflow: hidden;
|
|
288
|
-
|
|
289
|
-
.gantt-calendar-today-overlay {
|
|
290
|
-
position: relative;
|
|
291
|
-
z-index: 2;
|
|
292
|
-
.today-rect {
|
|
293
|
-
width: 35px;
|
|
294
|
-
height: 24px;
|
|
295
|
-
position: absolute;
|
|
296
|
-
background: $gantt-date-today-color;
|
|
297
|
-
color: $gantt-date-today-text-color;
|
|
298
|
-
text-align: center;
|
|
299
|
-
border-radius: 4px;
|
|
300
|
-
}
|
|
301
|
-
.today-line {
|
|
302
|
-
position: absolute;
|
|
303
|
-
width: 3px;
|
|
304
|
-
background: $gantt-date-today-color;
|
|
305
|
-
transform: scaleX(0.5);
|
|
306
|
-
transform-origin: 100% 0;
|
|
307
|
-
margin-left: -2px;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.gantt-calendar-overlay-main {
|
|
312
|
-
position: relative;
|
|
313
|
-
z-index: 1;
|
|
314
|
-
background-color: $gantt-bg-color;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
svg {
|
|
318
|
-
overflow: visible;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
line {
|
|
322
|
-
shape-rendering: crispEdges;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.primary-text {
|
|
326
|
-
fill: $gantt-date-primary-color;
|
|
327
|
-
font-size: $gantt-date-primary-font-size;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.secondary-text {
|
|
331
|
-
fill: $gantt-date-secondary-color;
|
|
332
|
-
font-size: $gantt-date-secondary-font-size;
|
|
333
|
-
|
|
334
|
-
&-weekend {
|
|
335
|
-
fill: $gantt-date-secondary-weekend-color;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.primary-text,
|
|
340
|
-
.secondary-text {
|
|
341
|
-
text-anchor: middle;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.primary-line {
|
|
345
|
-
stroke: $gantt-date-primary-border;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.secondary-line {
|
|
349
|
-
stroke-dasharray: 2px 5px;
|
|
350
|
-
stroke: #cacaca;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.header-line {
|
|
354
|
-
stroke: $gantt-border-color;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.secondary-backdrop {
|
|
358
|
-
fill: $gantt-date-week-backdrop-bg;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.gantt-drag-backdrop {
|
|
363
|
-
position: absolute;
|
|
364
|
-
top: 0;
|
|
365
|
-
right: 0;
|
|
366
|
-
bottom: 0;
|
|
367
|
-
left: 0;
|
|
368
|
-
z-index: 2;
|
|
369
|
-
display: none;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.gantt-drag-mask {
|
|
373
|
-
position: absolute;
|
|
374
|
-
top: $gantt-header-height;
|
|
375
|
-
z-index: 1;
|
|
376
|
-
height: 100%;
|
|
377
|
-
display: none;
|
|
378
|
-
background: rgba($color: $gantt-item-drag-mask-color, $alpha: 0.05);
|
|
379
|
-
|
|
380
|
-
.date-range {
|
|
381
|
-
width: 100%;
|
|
382
|
-
min-width: 120px;
|
|
383
|
-
top: -23px;
|
|
384
|
-
background: $gantt-item-drag-mask-color;
|
|
385
|
-
line-height: 23px;
|
|
386
|
-
border-radius: 4px;
|
|
387
|
-
color: #fff;
|
|
388
|
-
position: absolute;
|
|
389
|
-
display: flex;
|
|
390
|
-
justify-content: space-between;
|
|
391
|
-
padding: 0 10px;
|
|
392
|
-
box-sizing: border-box
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.gantt-link-drag-container {
|
|
397
|
-
width: 100%;
|
|
398
|
-
height: 1px;
|
|
399
|
-
overflow: visible !important;
|
|
400
|
-
position: absolute;
|
|
401
|
-
top: 0;
|
|
402
|
-
left: 0;
|
|
403
|
-
z-index: 2000;
|
|
404
|
-
|
|
405
|
-
.link-dragging-line {
|
|
406
|
-
stroke: $gantt-link-dragging-line-color;
|
|
407
|
-
stroke-width: 2px;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
$gantt-bar-layer-append-width: 32px;
|
|
412
|
-
$gantt-bar-layer-append-height: 42px;
|
|
413
|
-
$gantt-bar-link-height: 16px;
|
|
414
|
-
$gantt-bar-link-handle-size: 16px;
|
|
415
|
-
$gantt-bar-link-drop-border: 5px;
|
|
416
|
-
|
|
417
|
-
@mixin link-handles {
|
|
418
|
-
.link-handles {
|
|
419
|
-
.handle {
|
|
420
|
-
position: absolute;
|
|
421
|
-
display: inline-block;
|
|
422
|
-
cursor: pointer;
|
|
423
|
-
width: $gantt-bar-link-height;
|
|
424
|
-
height: $gantt-bar-link-height;
|
|
425
|
-
display: flex;
|
|
426
|
-
align-items: center;
|
|
427
|
-
justify-content: center;
|
|
428
|
-
z-index: 1001;
|
|
429
|
-
|
|
430
|
-
&:first-child {
|
|
431
|
-
left: 0;
|
|
432
|
-
top: 0;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
&:last-child {
|
|
436
|
-
right: 0;
|
|
437
|
-
bottom: 0;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.point {
|
|
441
|
-
color: #348fe4;
|
|
442
|
-
width: 10px;
|
|
443
|
-
height: 10px;
|
|
444
|
-
border-radius: 50%;
|
|
445
|
-
background: #348fe4;
|
|
446
|
-
transition: 0.3 ease;
|
|
447
|
-
|
|
448
|
-
&:hover {
|
|
449
|
-
width: 12px;
|
|
450
|
-
height: 12px;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
@mixin drag-handles {
|
|
458
|
-
.drag-handles {
|
|
459
|
-
background: $gantt-bar-layer-bg;
|
|
460
|
-
width: 100%;
|
|
461
|
-
height: calc(100% - #{$gantt-bar-link-height} * 2);
|
|
462
|
-
position: absolute;
|
|
463
|
-
border-radius: 4px;
|
|
464
|
-
top: $gantt-bar-link-height;
|
|
465
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
|
|
466
|
-
|
|
467
|
-
.handle {
|
|
468
|
-
width: 15px;
|
|
469
|
-
height: 100%;
|
|
470
|
-
position: absolute;
|
|
471
|
-
cursor: col-resize;
|
|
472
|
-
display: flex;
|
|
473
|
-
align-items: center;
|
|
474
|
-
justify-content: center;
|
|
475
|
-
|
|
476
|
-
&:before,
|
|
477
|
-
&:after {
|
|
478
|
-
content: '';
|
|
479
|
-
display: inline-block;
|
|
480
|
-
width: 1px;
|
|
481
|
-
height: $gantt-bar-handle-height;
|
|
482
|
-
background: $gantt-bar-handle-color;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
&::before {
|
|
486
|
-
margin-right: 2px;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
&:first-child {
|
|
490
|
-
left: 0;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
&:last-child {
|
|
494
|
-
right: 0;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
@mixin active-bar {
|
|
501
|
-
z-index: 1000;
|
|
502
|
-
|
|
503
|
-
.gantt-bar-layer {
|
|
504
|
-
display: block;
|
|
505
|
-
z-index: 1;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
.gantt-bar-content {
|
|
509
|
-
z-index: 1;
|
|
510
|
-
box-shadow: none;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.cdk-drag {
|
|
514
|
-
transition: none;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.gantt-bar {
|
|
519
|
-
position: absolute;
|
|
520
|
-
border-radius: 4px;
|
|
521
|
-
z-index: 2;
|
|
522
|
-
background: $gantt-bar-bg;
|
|
523
|
-
|
|
524
|
-
.gantt-bar-layer {
|
|
525
|
-
width: calc(100% + #{$gantt-bar-layer-append-width});
|
|
526
|
-
height: calc(100% + #{$gantt-bar-layer-append-height});
|
|
527
|
-
position: absolute;
|
|
528
|
-
border-radius: 4px;
|
|
529
|
-
left: math.div($gantt-bar-layer-append-width, 2) * -1;
|
|
530
|
-
top: math.div($gantt-bar-layer-append-height, 2) * -1;
|
|
531
|
-
display: none;
|
|
532
|
-
@include drag-handles();
|
|
533
|
-
@include link-handles();
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.gantt-bar-border {
|
|
537
|
-
width: calc(100% + #{$gantt-bar-link-drop-border} * 2);
|
|
538
|
-
height: calc(100% + #{$gantt-bar-link-drop-border} * 2);
|
|
539
|
-
position: absolute;
|
|
540
|
-
border-radius: 4px;
|
|
541
|
-
left: $gantt-bar-link-drop-border * -1;
|
|
542
|
-
top: $gantt-bar-link-drop-border * -1;
|
|
543
|
-
display: none;
|
|
544
|
-
background: #fff;
|
|
545
|
-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.gantt-bar-content {
|
|
549
|
-
width: 100%;
|
|
550
|
-
height: 100%;
|
|
551
|
-
position: absolute;
|
|
552
|
-
cursor: pointer;
|
|
553
|
-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
554
|
-
border-radius: 4px;
|
|
555
|
-
background: $gantt-bar-background-color;
|
|
556
|
-
overflow: hidden;
|
|
557
|
-
box-sizing: border-box;
|
|
558
|
-
|
|
559
|
-
.gantt-bar-content-progress {
|
|
560
|
-
position: absolute;
|
|
561
|
-
left: 0;
|
|
562
|
-
top: 0;
|
|
563
|
-
height: 100%;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
&-active {
|
|
569
|
-
@include active-bar();
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
&-single-drop-active {
|
|
573
|
-
.gantt-bar-border {
|
|
574
|
-
display: block;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.gantt-bar-content {
|
|
578
|
-
box-shadow: none;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
&-drop-active {
|
|
583
|
-
@include active-bar();
|
|
584
|
-
|
|
585
|
-
.gantt-bar-layer {
|
|
586
|
-
.link-handles {
|
|
587
|
-
.handle {
|
|
588
|
-
width: $gantt-bar-link-handle-size + 10px;
|
|
589
|
-
height: 100%;
|
|
590
|
-
|
|
591
|
-
&:first-child {
|
|
592
|
-
left: -$gantt-bar-link-handle-size - 5px;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
&:last-child {
|
|
596
|
-
right: -$gantt-bar-link-handle-size - 5px;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
&:hover {
|
|
600
|
-
.point {
|
|
601
|
-
width: 12px;
|
|
602
|
-
height: 12px;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.gantt-range {
|
|
612
|
-
position: absolute;
|
|
613
|
-
z-index: 2;
|
|
614
|
-
.gantt-range-main {
|
|
615
|
-
height: 10px;
|
|
616
|
-
background: #dfdfdf;
|
|
617
|
-
border: 1px solid #888;
|
|
618
|
-
border-radius: 4px 4px 0 0;
|
|
619
|
-
box-sizing: border-box;
|
|
620
|
-
position: relative;
|
|
621
|
-
.gantt-range-main-progress {
|
|
622
|
-
position: absolute;
|
|
623
|
-
left: 0;
|
|
624
|
-
top: 0;
|
|
625
|
-
height: 100%;
|
|
626
|
-
background: #888;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
.gantt-range-triangle {
|
|
630
|
-
width: 0;
|
|
631
|
-
height: 0;
|
|
632
|
-
border-top: 7px solid #888;
|
|
633
|
-
position: absolute;
|
|
634
|
-
top: 10px;
|
|
635
|
-
|
|
636
|
-
&.left {
|
|
637
|
-
border-right: 6px solid transparent;
|
|
638
|
-
left: 0;
|
|
639
|
-
}
|
|
640
|
-
&.right {
|
|
641
|
-
border-left: 6px solid transparent;
|
|
642
|
-
right: 0;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
.gantt-icon {
|
|
648
|
-
font-size: 1rem;
|
|
649
|
-
line-height: 0;
|
|
650
|
-
|
|
651
|
-
svg {
|
|
652
|
-
width: 1em;
|
|
653
|
-
height: 1em;
|
|
654
|
-
fill: currentColor;
|
|
655
|
-
vertical-align: -0.125em;
|
|
656
|
-
background-repeat: no-repeat;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.gantt-links-overlay {
|
|
662
|
-
position: absolute;
|
|
663
|
-
top: 0px;
|
|
664
|
-
left: 0px;
|
|
665
|
-
width: 100%;
|
|
666
|
-
height: 100%;
|
|
667
|
-
svg {
|
|
668
|
-
overflow: visible;
|
|
669
|
-
z-index: 2;
|
|
670
|
-
position: absolute;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
.link-dragging-container {
|
|
675
|
-
width: 100%;
|
|
676
|
-
height: 1px;
|
|
677
|
-
overflow: visible !important;
|
|
678
|
-
position: absolute;
|
|
679
|
-
top: $gantt-header-height;
|
|
680
|
-
left: 0;
|
|
681
|
-
z-index: 2000;
|
|
682
|
-
|
|
683
|
-
.link-dragging-line {
|
|
684
|
-
stroke: $gantt-link-line-color;
|
|
685
|
-
stroke-width: 2px;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|