@quartzio/gantt 0.0.0-stage → 0.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/API.md +533 -0
- package/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/index.d.ts +1341 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6556 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +1299 -0
- package/package.json +51 -3
- package/src/calendar/duration.ts +42 -0
- package/src/calendar/project.ts +29 -0
- package/src/calendar/workingCalendar.ts +218 -0
- package/src/data/draft.ts +78 -0
- package/src/data/graph.ts +215 -0
- package/src/data/normalize.ts +661 -0
- package/src/data/operations.ts +112 -0
- package/src/data/project.ts +194 -0
- package/src/data/serialize.ts +26 -0
- package/src/data/transaction.ts +460 -0
- package/src/data/tree.ts +156 -0
- package/src/data/types.ts +229 -0
- package/src/index.ts +139 -0
- package/src/scheduling/schedule.ts +310 -0
- package/src/styles.css +1299 -0
- package/src/timeaxis/align.ts +120 -0
- package/src/timeaxis/format.ts +72 -0
- package/src/timeaxis/presets.ts +219 -0
- package/src/timeaxis/timeAxis.ts +205 -0
- package/src/util/civil.ts +38 -0
- package/src/util/emitter.ts +53 -0
- package/src/util/equal.ts +23 -0
- package/src/util/errors.ts +4 -0
- package/src/util/parse.ts +70 -0
- package/src/util/time.ts +18 -0
- package/src/util/zone.ts +303 -0
- package/src/view/bars.ts +63 -0
- package/src/view/binding.ts +162 -0
- package/src/view/cellEditor.ts +239 -0
- package/src/view/cells.ts +89 -0
- package/src/view/columns.ts +197 -0
- package/src/view/createGantt.ts +1164 -0
- package/src/view/dates.ts +14 -0
- package/src/view/dependencies.ts +147 -0
- package/src/view/editing.ts +303 -0
- package/src/view/history.ts +72 -0
- package/src/view/interaction.ts +671 -0
- package/src/view/keyboard.ts +149 -0
- package/src/view/listWidth.ts +201 -0
- package/src/view/menu.ts +265 -0
- package/src/view/nonWorking.ts +113 -0
- package/src/view/range.ts +41 -0
- package/src/view/rows.ts +235 -0
- package/src/view/selection.ts +156 -0
- package/src/view/taskActions.ts +71 -0
- package/src/view/taskEditor.ts +553 -0
- package/src/view/timeline.ts +155 -0
- package/src/view/tooltip.ts +117 -0
- package/src/view/types.ts +328 -0
package/src/styles.css
ADDED
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Theming, in two levels:
|
|
3
|
+
*
|
|
4
|
+
* 1. Design tokens (--qz-bg, --qz-text, --qz-line, --qz-accent, --qz-primary, --qz-hue-*, …): the Quartzio design system.
|
|
5
|
+
* Declared on :root (and :host, for shadow roots) with zero specificity, so they can be overridden on any element, and inherited from
|
|
6
|
+
* there. Add the class `qz-dark` to the chart or any ancestor for the dark variant.
|
|
7
|
+
* 2. Component variables (--qz-bar-color, --qz-today-color, --qz-row-selected-color, …): not declared, only
|
|
8
|
+
* read with a token as the fallback, so they follow the tokens until they are set themselves (on the chart
|
|
9
|
+
* or any ancestor). Declaring them here would resolve them once, on the chart, and a token overridden on an
|
|
10
|
+
* ancestor would no longer reach them.
|
|
11
|
+
*
|
|
12
|
+
* Fonts: the stacks start with Outfit and JetBrains Mono, which the app loads itself (the package loads
|
|
13
|
+
* nothing); without them the system fonts are used.
|
|
14
|
+
*/
|
|
15
|
+
:where(:root, :host) {
|
|
16
|
+
--qz-font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
17
|
+
--qz-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
18
|
+
|
|
19
|
+
/* Surfaces */
|
|
20
|
+
--qz-bg: #f7f9fb;
|
|
21
|
+
--qz-sunken: #eef2f6;
|
|
22
|
+
--qz-raised: #ffffff;
|
|
23
|
+
--qz-field: #ffffff;
|
|
24
|
+
--qz-chip: #e8edf2;
|
|
25
|
+
|
|
26
|
+
/* Text */
|
|
27
|
+
--qz-text: #131a21;
|
|
28
|
+
--qz-text-2: #2e3a47;
|
|
29
|
+
--qz-text-muted: #52606f;
|
|
30
|
+
--qz-text-faint: #7d8a99;
|
|
31
|
+
|
|
32
|
+
/* Lines */
|
|
33
|
+
--qz-line: #dfe5eb;
|
|
34
|
+
--qz-line-subtle: #edf1f5;
|
|
35
|
+
--qz-line-strong: #cbd4de;
|
|
36
|
+
/* The chart's grid. Not --qz-line-subtle in the dark variant: that is too close to the raised surface. */
|
|
37
|
+
--qz-line-grid: #edf1f5;
|
|
38
|
+
|
|
39
|
+
/* Brand: the slate blue from the logo, for wayfinding (links, the today line). */
|
|
40
|
+
--qz-accent: #48658a;
|
|
41
|
+
--qz-on-accent: #ffffff;
|
|
42
|
+
|
|
43
|
+
/* Controls: primary buttons, checkboxes, focus, selection and linking. */
|
|
44
|
+
--qz-primary: #3e6ae1;
|
|
45
|
+
--qz-on-primary: #ffffff;
|
|
46
|
+
|
|
47
|
+
/* Inverse */
|
|
48
|
+
--qz-inverse: #131a21;
|
|
49
|
+
--qz-inverse-text: #f2f4f7;
|
|
50
|
+
--qz-inverse-muted: #a9b4c1;
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* Task hues: the same lightness and chroma for every hue. Solid for progress, markers and icons; soft for
|
|
54
|
+
* bar tracks and tag backgrounds. Text on a solid hue uses --qz-on-hue.
|
|
55
|
+
*/
|
|
56
|
+
--qz-hue-sky: oklch(0.6 0.13 225);
|
|
57
|
+
--qz-hue-sky-soft: oklch(0.93 0.035 225);
|
|
58
|
+
--qz-hue-indigo: oklch(0.6 0.13 265);
|
|
59
|
+
--qz-hue-indigo-soft: oklch(0.93 0.035 265);
|
|
60
|
+
--qz-hue-violet: oklch(0.6 0.13 300);
|
|
61
|
+
--qz-hue-violet-soft: oklch(0.93 0.035 300);
|
|
62
|
+
--qz-hue-rose: oklch(0.6 0.13 15);
|
|
63
|
+
--qz-hue-rose-soft: oklch(0.93 0.035 15);
|
|
64
|
+
--qz-hue-coral: oklch(0.6 0.13 40);
|
|
65
|
+
--qz-hue-coral-soft: oklch(0.93 0.035 40);
|
|
66
|
+
--qz-hue-amber: oklch(0.6 0.13 75);
|
|
67
|
+
--qz-hue-amber-soft: oklch(0.93 0.035 75);
|
|
68
|
+
--qz-hue-green: oklch(0.6 0.13 150);
|
|
69
|
+
--qz-hue-green-soft: oklch(0.93 0.035 150);
|
|
70
|
+
--qz-hue-teal: oklch(0.6 0.13 185);
|
|
71
|
+
--qz-hue-teal-soft: oklch(0.93 0.035 185);
|
|
72
|
+
--qz-on-hue: #131a21;
|
|
73
|
+
|
|
74
|
+
/* Shape */
|
|
75
|
+
--qz-radius-xs: 4px;
|
|
76
|
+
--qz-radius-sm: 6px;
|
|
77
|
+
--qz-radius-md: 10px;
|
|
78
|
+
--qz-radius-lg: 12px;
|
|
79
|
+
--qz-radius-xl: 14px;
|
|
80
|
+
--qz-radius-2xl: 24px;
|
|
81
|
+
--qz-radius-pill: 999px;
|
|
82
|
+
--qz-elevation-0: none;
|
|
83
|
+
--qz-elevation-1: 0 30px 60px -30px rgb(19 26 33 / 14%);
|
|
84
|
+
--qz-elevation-2: 0 12px 30px -12px rgb(19 26 33 / 30%);
|
|
85
|
+
/* For native controls (inputs, date pickers, scrollbars) in the chart. */
|
|
86
|
+
--qz-color-scheme: light;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.qz-dark) {
|
|
90
|
+
--qz-bg: #131a21;
|
|
91
|
+
--qz-sunken: #18212b;
|
|
92
|
+
--qz-raised: #1c2631;
|
|
93
|
+
--qz-field: #0f151b;
|
|
94
|
+
--qz-chip: #26323f;
|
|
95
|
+
|
|
96
|
+
--qz-text: #f2f4f7;
|
|
97
|
+
--qz-text-2: #d5dce4;
|
|
98
|
+
--qz-text-muted: #a9b4c1;
|
|
99
|
+
--qz-text-faint: #7d8a99;
|
|
100
|
+
|
|
101
|
+
--qz-line: #26303b;
|
|
102
|
+
--qz-line-subtle: #1e2731;
|
|
103
|
+
--qz-line-strong: #334050;
|
|
104
|
+
--qz-line-grid: #26303b;
|
|
105
|
+
|
|
106
|
+
--qz-accent: #88a9ce;
|
|
107
|
+
--qz-on-accent: #131a21;
|
|
108
|
+
|
|
109
|
+
--qz-primary: #7c9cf0;
|
|
110
|
+
--qz-on-primary: #131a21;
|
|
111
|
+
|
|
112
|
+
--qz-inverse: #1c2631;
|
|
113
|
+
--qz-inverse-text: #f2f4f7;
|
|
114
|
+
--qz-inverse-muted: #a9b4c1;
|
|
115
|
+
|
|
116
|
+
--qz-hue-sky: oklch(0.72 0.12 225);
|
|
117
|
+
--qz-hue-sky-soft: oklch(0.34 0.05 225);
|
|
118
|
+
--qz-hue-indigo: oklch(0.72 0.12 265);
|
|
119
|
+
--qz-hue-indigo-soft: oklch(0.34 0.05 265);
|
|
120
|
+
--qz-hue-violet: oklch(0.72 0.12 300);
|
|
121
|
+
--qz-hue-violet-soft: oklch(0.34 0.05 300);
|
|
122
|
+
--qz-hue-rose: oklch(0.72 0.12 15);
|
|
123
|
+
--qz-hue-rose-soft: oklch(0.34 0.05 15);
|
|
124
|
+
--qz-hue-coral: oklch(0.72 0.12 40);
|
|
125
|
+
--qz-hue-coral-soft: oklch(0.34 0.05 40);
|
|
126
|
+
--qz-hue-amber: oklch(0.72 0.12 75);
|
|
127
|
+
--qz-hue-amber-soft: oklch(0.34 0.05 75);
|
|
128
|
+
--qz-hue-green: oklch(0.72 0.12 150);
|
|
129
|
+
--qz-hue-green-soft: oklch(0.34 0.05 150);
|
|
130
|
+
--qz-hue-teal: oklch(0.72 0.12 185);
|
|
131
|
+
--qz-hue-teal-soft: oklch(0.34 0.05 185);
|
|
132
|
+
--qz-on-hue: #131a21;
|
|
133
|
+
|
|
134
|
+
--qz-elevation-1: 0 30px 60px -30px rgb(0 0 0 / 60%);
|
|
135
|
+
--qz-elevation-2: 0 12px 30px -12px rgb(0 0 0 / 70%);
|
|
136
|
+
--qz-color-scheme: dark;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.qz-gantt {
|
|
140
|
+
position: relative;
|
|
141
|
+
/* The scroll area, the vertical scrollbar to its right and the horizontal scrollbars below it. */
|
|
142
|
+
display: grid;
|
|
143
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
144
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
font-family: var(--qz-font-family, var(--qz-font-sans));
|
|
147
|
+
font-size: var(--qz-font-size, 13px);
|
|
148
|
+
color: var(--qz-text);
|
|
149
|
+
color-scheme: var(--qz-color-scheme);
|
|
150
|
+
/* The header's background continues above the vertical scrollbar. */
|
|
151
|
+
background: linear-gradient(
|
|
152
|
+
var(--qz-header-background, var(--qz-raised)) calc(var(--qz-header-height) - 1px),
|
|
153
|
+
var(--qz-line) 0 var(--qz-header-height),
|
|
154
|
+
var(--qz-background, var(--qz-raised)) 0
|
|
155
|
+
);
|
|
156
|
+
border: 1px solid var(--qz-line);
|
|
157
|
+
border-radius: var(--qz-chart-radius, var(--qz-radius-xl));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/*
|
|
161
|
+
* Set on every element, not inherited: a few containers use content-box for their own padding (the bottom
|
|
162
|
+
* spacers), and inheriting would pass that on to rows and cells, making padding add to column widths.
|
|
163
|
+
*/
|
|
164
|
+
.qz-gantt,
|
|
165
|
+
.qz-gantt *,
|
|
166
|
+
.qz-gantt *::before,
|
|
167
|
+
.qz-gantt *::after {
|
|
168
|
+
box-sizing: border-box;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
* Layout: one scroll area for everything, so the browser scrolls the headers, the task list and the timeline
|
|
173
|
+
* together, without any frame of lag. Inside it, a grid: the headers are sticky at the top and the task list at
|
|
174
|
+
* the left, with the timeline scrolling underneath. Its own scrollbars are hidden (they'd span the headers and
|
|
175
|
+
* the task list); separate scrollbars, to the right of the rows and below each side, follow it. Sizes come from
|
|
176
|
+
* the engine and from measuring, through custom properties on .qz-gantt.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* The task list's width: as wide as its columns plus its 1px right border (so the columns fit exactly and
|
|
181
|
+
* there is no scrollbar), but never more than the max, or the width set with the divider (--qz-list-set-width,
|
|
182
|
+
* from the engine), and always leaving the timeline some room; narrower lists scroll horizontally. Measured
|
|
183
|
+
* here, as a percentage of the whole chart, and copied into --qz-list-pane.
|
|
184
|
+
*/
|
|
185
|
+
.qz-gantt__sizer {
|
|
186
|
+
position: absolute;
|
|
187
|
+
top: 0;
|
|
188
|
+
left: 0;
|
|
189
|
+
width: max(
|
|
190
|
+
min(80px, 100%),
|
|
191
|
+
min(
|
|
192
|
+
calc(var(--qz-list-width) + 1px),
|
|
193
|
+
var(--qz-list-set-width, var(--qz-list-max-width, 60%)),
|
|
194
|
+
max(80px, 100% - 120px)
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
height: 0;
|
|
198
|
+
visibility: hidden;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.qz-gantt__scroller {
|
|
202
|
+
grid-area: 1 / 1;
|
|
203
|
+
overflow: auto;
|
|
204
|
+
scrollbar-width: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.qz-gantt__scroller::-webkit-scrollbar {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.qz-gantt__content {
|
|
212
|
+
position: relative;
|
|
213
|
+
display: grid;
|
|
214
|
+
grid-template-rows: var(--qz-header-height) 1fr;
|
|
215
|
+
grid-template-columns: var(--qz-list-pane, calc(var(--qz-list-width) + 1px)) var(--qz-axis-width);
|
|
216
|
+
width: max-content;
|
|
217
|
+
min-height: 100%;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.qz-list__header {
|
|
221
|
+
position: sticky;
|
|
222
|
+
top: 0;
|
|
223
|
+
left: 0;
|
|
224
|
+
z-index: 3;
|
|
225
|
+
overflow: hidden;
|
|
226
|
+
background: var(--qz-header-background, var(--qz-raised));
|
|
227
|
+
border-right: 1px solid var(--qz-line);
|
|
228
|
+
border-bottom: 1px solid var(--qz-line);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.qz-timeline__header {
|
|
232
|
+
position: sticky;
|
|
233
|
+
top: 0;
|
|
234
|
+
z-index: 2;
|
|
235
|
+
/* clip, not hidden: hidden would make the header a scroll area, and its sticky labels would stop sticking. */
|
|
236
|
+
overflow: clip;
|
|
237
|
+
background: var(--qz-header-background, var(--qz-raised));
|
|
238
|
+
border-bottom: 1px solid var(--qz-line);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.qz-timeline__header-canvas {
|
|
242
|
+
position: relative;
|
|
243
|
+
height: 100%;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.qz-list__body {
|
|
247
|
+
position: sticky;
|
|
248
|
+
left: 0;
|
|
249
|
+
z-index: 1;
|
|
250
|
+
/* Horizontal only: vertical wheel and trackpad scrolling passes through to the scroll area. */
|
|
251
|
+
overflow: auto hidden;
|
|
252
|
+
scrollbar-width: none;
|
|
253
|
+
background: var(--qz-background, var(--qz-raised));
|
|
254
|
+
border-right: 1px solid var(--qz-line);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.qz-list__body::-webkit-scrollbar {
|
|
258
|
+
display: none;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.qz-list__canvas {
|
|
262
|
+
position: relative;
|
|
263
|
+
width: var(--qz-list-width);
|
|
264
|
+
min-width: 100%;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.qz-timeline__body {
|
|
268
|
+
position: relative;
|
|
269
|
+
/* Bars beyond the axis must not widen the scroll area. */
|
|
270
|
+
overflow: clip;
|
|
271
|
+
/* One vertical line per tick and one horizontal line per row. */
|
|
272
|
+
background-image:
|
|
273
|
+
linear-gradient(to right, var(--qz-grid-line-color, var(--qz-line-grid)) 1px, transparent 1px),
|
|
274
|
+
linear-gradient(
|
|
275
|
+
to bottom,
|
|
276
|
+
transparent calc(var(--qz-row-height) - 1px),
|
|
277
|
+
var(--qz-grid-line-color, var(--qz-line-grid)) 1px
|
|
278
|
+
);
|
|
279
|
+
/* Small tiles (one tick by one row): a single huge tile (e.g. 10 000 rows tall) isn't painted by Chrome. */
|
|
280
|
+
background-size:
|
|
281
|
+
var(--qz-tick-width) var(--qz-row-height),
|
|
282
|
+
var(--qz-tick-width) var(--qz-row-height);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* --- Scrollbars (shown only while there is something to scroll) --- */
|
|
286
|
+
|
|
287
|
+
.qz-gantt__scrollbar-y {
|
|
288
|
+
display: none;
|
|
289
|
+
grid-area: 1 / 2;
|
|
290
|
+
width: var(--qz-scrollbar-size);
|
|
291
|
+
margin-top: var(--qz-header-height);
|
|
292
|
+
overflow: hidden auto;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.qz-gantt__footer {
|
|
296
|
+
display: none;
|
|
297
|
+
grid-area: 2 / 1;
|
|
298
|
+
height: var(--qz-scrollbar-size);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.qz-gantt--scroll-y .qz-gantt__scrollbar-y {
|
|
302
|
+
display: block;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.qz-gantt--scroll-x .qz-gantt__footer {
|
|
306
|
+
display: flex;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.qz-list__scrollbar {
|
|
310
|
+
flex: none;
|
|
311
|
+
width: var(--qz-list-pane, calc(var(--qz-list-width) + 1px));
|
|
312
|
+
overflow: auto hidden;
|
|
313
|
+
border-right: 1px solid var(--qz-line);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.qz-timeline__scrollbar {
|
|
317
|
+
flex: 1;
|
|
318
|
+
min-width: 0;
|
|
319
|
+
overflow: auto hidden;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.qz-list__scrollbar > div,
|
|
323
|
+
.qz-timeline__scrollbar > div {
|
|
324
|
+
height: 1px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.qz-gantt__scrollbar-y > div {
|
|
328
|
+
width: 1px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* Overlay scrollbars (e.g. macOS with a trackpad) take no room: they float over the edges of the rows. */
|
|
332
|
+
.qz-gantt--overlay-scrollbars .qz-gantt__scrollbar-y {
|
|
333
|
+
position: absolute;
|
|
334
|
+
top: var(--qz-header-height);
|
|
335
|
+
right: 0;
|
|
336
|
+
bottom: 0;
|
|
337
|
+
z-index: 4;
|
|
338
|
+
width: var(--qz-overlay-scrollbar-size, 12px);
|
|
339
|
+
margin: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.qz-gantt--overlay-scrollbars .qz-gantt__footer {
|
|
343
|
+
position: absolute;
|
|
344
|
+
right: 0;
|
|
345
|
+
bottom: 0;
|
|
346
|
+
left: 0;
|
|
347
|
+
z-index: 4;
|
|
348
|
+
height: var(--qz-overlay-scrollbar-size, 12px);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.qz-gantt--overlay-scrollbars .qz-list__scrollbar {
|
|
352
|
+
border-right-color: transparent;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* The divider between the task list and the timeline: a wide grip with a thin line that shows on hover. */
|
|
356
|
+
.qz-divider {
|
|
357
|
+
position: absolute;
|
|
358
|
+
top: 0;
|
|
359
|
+
bottom: 0;
|
|
360
|
+
left: calc(var(--qz-list-pane, calc(var(--qz-list-width) + 1px)) - 5px);
|
|
361
|
+
z-index: 5;
|
|
362
|
+
width: 9px;
|
|
363
|
+
cursor: col-resize;
|
|
364
|
+
outline: none;
|
|
365
|
+
touch-action: none;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.qz-divider::after {
|
|
369
|
+
content: '';
|
|
370
|
+
position: absolute;
|
|
371
|
+
top: 0;
|
|
372
|
+
bottom: 0;
|
|
373
|
+
left: 3px;
|
|
374
|
+
width: 3px;
|
|
375
|
+
border-radius: 2px;
|
|
376
|
+
transition: background 0.1s;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.qz-divider:hover::after,
|
|
380
|
+
.qz-divider:focus-visible::after,
|
|
381
|
+
.qz-divider--resizing::after {
|
|
382
|
+
background: var(--qz-divider-color, var(--qz-primary));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* No text selection or other cursors while the divider is dragged. */
|
|
386
|
+
.qz-gantt:has(.qz-divider--resizing) {
|
|
387
|
+
cursor: col-resize;
|
|
388
|
+
user-select: none;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* --- Task list --- */
|
|
392
|
+
|
|
393
|
+
.qz-grid__header {
|
|
394
|
+
display: flex;
|
|
395
|
+
width: var(--qz-list-width);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.qz-grid__header-cell {
|
|
399
|
+
display: flex;
|
|
400
|
+
/* Exactly the column width from the engine: never shrink or grow with the list's width. */
|
|
401
|
+
flex: none;
|
|
402
|
+
align-items: flex-end;
|
|
403
|
+
padding: 0 var(--qz-cell-padding, 10px) 7px;
|
|
404
|
+
overflow: hidden;
|
|
405
|
+
font-size: var(--qz-header-font-size, 12px);
|
|
406
|
+
font-weight: 500;
|
|
407
|
+
color: var(--qz-text-muted);
|
|
408
|
+
white-space: nowrap;
|
|
409
|
+
text-overflow: ellipsis;
|
|
410
|
+
border-left: 1px solid var(--qz-grid-line-color, var(--qz-line-grid));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.qz-grid__header-cell:first-child {
|
|
414
|
+
border-left: 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.qz-grid__body {
|
|
418
|
+
position: relative;
|
|
419
|
+
color: var(--qz-text-2);
|
|
420
|
+
/* Dates, durations and percentages line up. */
|
|
421
|
+
font-variant-numeric: tabular-nums;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.qz-grid__row {
|
|
425
|
+
position: absolute;
|
|
426
|
+
top: 0;
|
|
427
|
+
left: 0;
|
|
428
|
+
display: flex;
|
|
429
|
+
width: var(--qz-list-width);
|
|
430
|
+
border-bottom: 1px solid var(--qz-grid-line-color, var(--qz-line-grid));
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.qz-grid__row:hover {
|
|
434
|
+
background: var(--qz-row-hover-color, color-mix(in srgb, var(--qz-chip) 45%, transparent));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* Selected rows, in both halves. No text selection: Shift-click selects rows. */
|
|
438
|
+
.qz-grid__body {
|
|
439
|
+
user-select: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/* Translucent: in the timeline it lies over the dependency lines. */
|
|
443
|
+
.qz-grid__row[aria-selected='true'],
|
|
444
|
+
.qz-timeline__row--selected {
|
|
445
|
+
background: var(--qz-row-selected-color, color-mix(in srgb, var(--qz-primary) 12%, transparent));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* The keyboard cursor, while the chart has focus (the chart itself when there's no cursor yet). */
|
|
449
|
+
.qz-gantt:focus {
|
|
450
|
+
outline: none;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.qz-gantt:focus-within .qz-grid__row--active {
|
|
454
|
+
box-shadow: inset 0 0 0 2px var(--qz-focus-color, var(--qz-primary));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.qz-gantt:focus-visible:not(:has(.qz-grid__row--active)) {
|
|
458
|
+
outline: 2px solid var(--qz-focus-color, var(--qz-primary));
|
|
459
|
+
outline-offset: -2px;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.qz-grid__cell {
|
|
463
|
+
display: flex;
|
|
464
|
+
/* Exactly the column width from the engine: never shrink or grow with the list's width. */
|
|
465
|
+
flex: none;
|
|
466
|
+
align-items: center;
|
|
467
|
+
padding: 0 var(--qz-cell-padding, 10px);
|
|
468
|
+
border-left: 1px solid var(--qz-grid-line-color, var(--qz-line-grid));
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.qz-grid__cell:first-child {
|
|
472
|
+
border-left: 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.qz-grid__cell--tree {
|
|
476
|
+
padding-left: calc(var(--qz-cell-padding, 10px) + var(--qz-depth) * var(--qz-tree-indent, 18px));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Parents' names stand out a little from their children. */
|
|
480
|
+
.qz-grid__row[aria-expanded] .qz-grid__cell--tree {
|
|
481
|
+
font-weight: 500;
|
|
482
|
+
color: var(--qz-text);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.qz-grid__text {
|
|
486
|
+
/* Lets long text shrink inside its fixed-width cell, so the ellipsis can kick in. */
|
|
487
|
+
min-width: 0;
|
|
488
|
+
overflow: hidden;
|
|
489
|
+
white-space: nowrap;
|
|
490
|
+
text-overflow: ellipsis;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.qz-align-end {
|
|
494
|
+
justify-content: flex-end;
|
|
495
|
+
text-align: right;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.qz-tree__toggle,
|
|
499
|
+
.qz-tree__spacer {
|
|
500
|
+
flex: none;
|
|
501
|
+
width: 18px;
|
|
502
|
+
height: 18px;
|
|
503
|
+
margin-right: 4px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.qz-tree__toggle {
|
|
507
|
+
display: grid;
|
|
508
|
+
place-items: center;
|
|
509
|
+
padding: 0;
|
|
510
|
+
color: var(--qz-text-faint);
|
|
511
|
+
cursor: pointer;
|
|
512
|
+
background: none;
|
|
513
|
+
border: 0;
|
|
514
|
+
border-radius: var(--qz-radius-xs);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.qz-tree__toggle svg {
|
|
518
|
+
width: 14px;
|
|
519
|
+
height: 14px;
|
|
520
|
+
fill: none;
|
|
521
|
+
stroke: currentcolor;
|
|
522
|
+
stroke-width: 2;
|
|
523
|
+
stroke-linecap: round;
|
|
524
|
+
stroke-linejoin: round;
|
|
525
|
+
transform: rotate(-90deg);
|
|
526
|
+
transition: transform 0.12s;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.qz-grid__row[aria-expanded='true'] .qz-tree__toggle svg {
|
|
530
|
+
transform: none;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.qz-tree__toggle:hover {
|
|
534
|
+
color: var(--qz-text);
|
|
535
|
+
background: var(--qz-chip);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.qz-tree__toggle:focus-visible {
|
|
539
|
+
outline: 2px solid var(--qz-focus-color, var(--qz-primary));
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.qz-gantt__empty {
|
|
543
|
+
padding: 16px;
|
|
544
|
+
color: var(--qz-text-muted);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* --- Timeline header: the time scale is data, so it is set in mono --- */
|
|
548
|
+
|
|
549
|
+
.qz-header__row {
|
|
550
|
+
position: relative;
|
|
551
|
+
border-bottom: 1px solid var(--qz-grid-line-color, var(--qz-line-grid));
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.qz-header__row:last-child {
|
|
555
|
+
border-bottom: 0;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.qz-header__cell {
|
|
559
|
+
position: absolute;
|
|
560
|
+
top: 0;
|
|
561
|
+
left: 0;
|
|
562
|
+
display: flex;
|
|
563
|
+
align-items: center;
|
|
564
|
+
height: 100%;
|
|
565
|
+
font-family: var(--qz-font-mono);
|
|
566
|
+
font-size: var(--qz-scale-font-size, 11px);
|
|
567
|
+
color: var(--qz-text-muted);
|
|
568
|
+
border-left: 1px solid var(--qz-grid-line-color, var(--qz-line-grid));
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.qz-header__row:not(:last-child) .qz-header__cell {
|
|
572
|
+
color: var(--qz-text-2);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/*
|
|
576
|
+
* Labels of the larger units (every row but the bottom one: months, weeks, years) are sticky, so the label of a
|
|
577
|
+
* wide cell stays in view while scrolling through it, until the cell's end pushes it out. Like Bryntum's
|
|
578
|
+
* "sticky headers". Bottom-row cells are narrow, so their labels just scroll along.
|
|
579
|
+
*/
|
|
580
|
+
.qz-header__row:not(:last-child) .qz-header__label {
|
|
581
|
+
position: sticky;
|
|
582
|
+
/* The task list covers the left of the scroll area, so labels stick to its right edge. */
|
|
583
|
+
left: var(--qz-list-pane, 0);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.qz-header__label {
|
|
587
|
+
min-width: 0;
|
|
588
|
+
padding: 0 8px;
|
|
589
|
+
overflow: hidden;
|
|
590
|
+
white-space: nowrap;
|
|
591
|
+
text-overflow: ellipsis;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* --- Timeline body: layers, rows and bars --- */
|
|
595
|
+
|
|
596
|
+
/* Dragging: the cursor says what a press would do; the original bar fades while its preview moves. */
|
|
597
|
+
.qz-timeline__body[data-hit='bar'] {
|
|
598
|
+
cursor: grab;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.qz-timeline__body[data-hit='resize-end'],
|
|
602
|
+
.qz-timeline__body[data-hit='progress'],
|
|
603
|
+
.qz-timeline__body[data-dragging='resize'],
|
|
604
|
+
.qz-timeline__body[data-dragging='progress'] {
|
|
605
|
+
cursor: ew-resize;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.qz-timeline__body[data-hit='create'],
|
|
609
|
+
.qz-timeline__body[data-hit='link-start'],
|
|
610
|
+
.qz-timeline__body[data-hit='link-end'],
|
|
611
|
+
.qz-timeline__body[data-dragging='create'],
|
|
612
|
+
.qz-timeline__body[data-dragging='link'] {
|
|
613
|
+
cursor: crosshair;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.qz-timeline__body[data-dragging='move'] {
|
|
617
|
+
cursor: grabbing;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/* No text selection in the timeline: a press there starts a drag. */
|
|
621
|
+
.qz-timeline__body {
|
|
622
|
+
user-select: none;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/*
|
|
626
|
+
* A touch on a bar (or in a row to draw a bar in) drags instead of scrolling the chart, while dragging is on.
|
|
627
|
+
* Link handles sit outside bars and only show on hover, so linking is for mouse and pen for now.
|
|
628
|
+
*/
|
|
629
|
+
.qz-timeline__body[data-interactive] .qz-bar,
|
|
630
|
+
.qz-timeline__row--drawable {
|
|
631
|
+
touch-action: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.qz-timeline__row--dragging .qz-bar {
|
|
635
|
+
opacity: 0.35;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.qz-timeline__draft {
|
|
639
|
+
z-index: 2;
|
|
640
|
+
pointer-events: none;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/* The bar being dragged is lifted. */
|
|
644
|
+
.qz-timeline__draft .qz-bar--task,
|
|
645
|
+
.qz-timeline__draft .qz-bar--summary {
|
|
646
|
+
box-shadow: var(--qz-elevation-2);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.qz-drag-tooltip {
|
|
650
|
+
position: absolute;
|
|
651
|
+
bottom: calc(100% + 2px);
|
|
652
|
+
padding: 3px 8px;
|
|
653
|
+
font-family: var(--qz-font-mono);
|
|
654
|
+
font-size: 11px;
|
|
655
|
+
color: var(--qz-tooltip-color, var(--qz-inverse-text));
|
|
656
|
+
white-space: nowrap;
|
|
657
|
+
background: var(--qz-tooltip-background, var(--qz-inverse));
|
|
658
|
+
border-radius: var(--qz-radius-xs);
|
|
659
|
+
outline: 1px solid color-mix(in srgb, var(--qz-inverse-text) 10%, transparent);
|
|
660
|
+
box-shadow: var(--qz-elevation-2);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* A refused drop: the preview says so (the tooltip then shows why). */
|
|
664
|
+
.qz-draft--invalid .qz-bar {
|
|
665
|
+
background: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.qz-draft--invalid .qz-bar {
|
|
669
|
+
/* The whole label is on the solid color now. */
|
|
670
|
+
--qz-progress: 100%;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.qz-draft--invalid .qz-bar__progress {
|
|
674
|
+
display: none;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.qz-link-draft {
|
|
678
|
+
position: absolute;
|
|
679
|
+
top: 0;
|
|
680
|
+
left: 0;
|
|
681
|
+
z-index: 2;
|
|
682
|
+
overflow: visible;
|
|
683
|
+
pointer-events: none;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.qz-link-draft .qz-dependency {
|
|
687
|
+
stroke: var(--qz-primary);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.qz-link-draft .qz-dependency__arrow {
|
|
691
|
+
fill: var(--qz-primary);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.qz-link-draft.qz-draft--invalid .qz-dependency {
|
|
695
|
+
stroke: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
696
|
+
stroke-dasharray: 4 3;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.qz-link-draft.qz-draft--invalid .qz-dependency__arrow {
|
|
700
|
+
fill: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* Next to the pointer while drawing a dependency. */
|
|
704
|
+
.qz-drag-tooltip--pointer {
|
|
705
|
+
z-index: 3;
|
|
706
|
+
bottom: auto;
|
|
707
|
+
transform: translate(12px, -140%);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/* Handles, shown while hovering a row (and link handles while drawing one): where to press is up to the engine. */
|
|
711
|
+
.qz-link-handle,
|
|
712
|
+
.qz-progress-handle {
|
|
713
|
+
position: absolute;
|
|
714
|
+
pointer-events: none;
|
|
715
|
+
opacity: 0;
|
|
716
|
+
transition: opacity 0.1s;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.qz-link-handle {
|
|
720
|
+
top: 50%;
|
|
721
|
+
width: 9px;
|
|
722
|
+
height: 9px;
|
|
723
|
+
margin: -4.5px 0 0 -4.5px;
|
|
724
|
+
background: var(--qz-raised);
|
|
725
|
+
border: 1.5px solid var(--qz-primary);
|
|
726
|
+
border-radius: 50%;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.qz-progress-handle {
|
|
730
|
+
top: calc(78% - 4px);
|
|
731
|
+
width: 0;
|
|
732
|
+
height: 0;
|
|
733
|
+
margin-left: -5px;
|
|
734
|
+
border-right: 5px solid transparent;
|
|
735
|
+
border-bottom: 7px solid var(--qz-text-2);
|
|
736
|
+
border-left: 5px solid transparent;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.qz-timeline__row:hover .qz-link-handle,
|
|
740
|
+
.qz-timeline__row:hover .qz-progress-handle,
|
|
741
|
+
.qz-timeline__body[data-dragging='link'] .qz-link-handle {
|
|
742
|
+
opacity: 1;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.qz-drag-tooltip--below {
|
|
746
|
+
top: calc(100% + 2px);
|
|
747
|
+
bottom: auto;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.qz-dependencies {
|
|
751
|
+
position: absolute;
|
|
752
|
+
top: 0;
|
|
753
|
+
left: 0;
|
|
754
|
+
overflow: visible;
|
|
755
|
+
pointer-events: none;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.qz-dependency {
|
|
759
|
+
fill: none;
|
|
760
|
+
stroke: var(--qz-dependency-color, var(--qz-text-faint));
|
|
761
|
+
stroke-width: var(--qz-dependency-width, 1.25px);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.qz-dependency__arrow {
|
|
765
|
+
fill: var(--qz-dependency-color, var(--qz-text-faint));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.qz-timeline__layer {
|
|
769
|
+
position: absolute;
|
|
770
|
+
inset: 0;
|
|
771
|
+
pointer-events: none;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.qz-nonworking {
|
|
775
|
+
position: absolute;
|
|
776
|
+
top: 0;
|
|
777
|
+
bottom: 0;
|
|
778
|
+
background: var(--qz-nonworking-color, color-mix(in srgb, var(--qz-text) 3.5%, transparent));
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.qz-timeline__row {
|
|
782
|
+
position: absolute;
|
|
783
|
+
top: 0;
|
|
784
|
+
left: 0;
|
|
785
|
+
width: 100%;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/* Task bars: a soft track with the progress in the solid hue. */
|
|
789
|
+
.qz-bar {
|
|
790
|
+
position: absolute;
|
|
791
|
+
top: 22%;
|
|
792
|
+
display: flex;
|
|
793
|
+
align-items: center;
|
|
794
|
+
height: 56%;
|
|
795
|
+
overflow: hidden;
|
|
796
|
+
color: var(--qz-bar-text-color, var(--qz-text));
|
|
797
|
+
background: var(--qz-bar-color, var(--qz-hue-sky-soft));
|
|
798
|
+
border-radius: var(--qz-bar-radius, var(--qz-radius-sm));
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.qz-bar__progress {
|
|
802
|
+
position: absolute;
|
|
803
|
+
top: 0;
|
|
804
|
+
bottom: 0;
|
|
805
|
+
left: 0;
|
|
806
|
+
background: var(--qz-bar-progress-color, var(--qz-hue-sky));
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.qz-bar__label {
|
|
810
|
+
position: relative;
|
|
811
|
+
min-width: 0;
|
|
812
|
+
padding: 0 8px;
|
|
813
|
+
overflow: hidden;
|
|
814
|
+
font-size: 12px;
|
|
815
|
+
font-weight: 500;
|
|
816
|
+
white-space: nowrap;
|
|
817
|
+
text-overflow: ellipsis;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/*
|
|
821
|
+
* The label spans the whole bar and is painted in two colors, split where the progress ends: one on the soft
|
|
822
|
+
* track and one on the solid progress. In the dark variant those need opposite text colors.
|
|
823
|
+
*/
|
|
824
|
+
.qz-bar--task .qz-bar__label {
|
|
825
|
+
flex: 1;
|
|
826
|
+
color: transparent;
|
|
827
|
+
background: linear-gradient(
|
|
828
|
+
to right,
|
|
829
|
+
var(--qz-bar-progress-text-color, var(--qz-on-hue)) var(--qz-progress, 0%),
|
|
830
|
+
var(--qz-bar-text-color, var(--qz-text)) 0
|
|
831
|
+
);
|
|
832
|
+
-webkit-background-clip: text;
|
|
833
|
+
background-clip: text;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* Where backgrounds aren't painted (printing without background graphics, forced colors): plain text. */
|
|
837
|
+
@media print, (forced-colors: active) {
|
|
838
|
+
.qz-bar--task .qz-bar__label {
|
|
839
|
+
color: var(--qz-bar-text-color, var(--qz-text));
|
|
840
|
+
background: none;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* Summary bars: a thin bar with downward points at both ends, spanning the children. */
|
|
845
|
+
/* Centered on the row's middle, where dependency lines meet it; the end caps hang below. */
|
|
846
|
+
.qz-bar--summary {
|
|
847
|
+
top: calc(50% - 3px);
|
|
848
|
+
height: 6px;
|
|
849
|
+
overflow: visible;
|
|
850
|
+
background: var(--qz-summary-color, var(--qz-text-muted));
|
|
851
|
+
border-radius: 0;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.qz-bar--summary::before,
|
|
855
|
+
.qz-bar--summary::after {
|
|
856
|
+
content: '';
|
|
857
|
+
position: absolute;
|
|
858
|
+
top: 100%;
|
|
859
|
+
border-top: 5px solid var(--qz-summary-color, var(--qz-text-muted));
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.qz-bar--summary::before {
|
|
863
|
+
left: 0;
|
|
864
|
+
border-right: 5px solid transparent;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.qz-bar--summary::after {
|
|
868
|
+
right: 0;
|
|
869
|
+
border-left: 5px solid transparent;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* Milestones: a diamond centered on the date, with the name beside it. */
|
|
873
|
+
.qz-bar--milestone {
|
|
874
|
+
top: calc(50% - var(--qz-milestone-size, 14px) / 2);
|
|
875
|
+
width: var(--qz-milestone-size, 14px);
|
|
876
|
+
height: var(--qz-milestone-size, 14px);
|
|
877
|
+
margin-left: calc(var(--qz-milestone-size, 14px) / -2);
|
|
878
|
+
overflow: visible;
|
|
879
|
+
color: var(--qz-text-2);
|
|
880
|
+
background: none;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.qz-bar--milestone::before {
|
|
884
|
+
content: '';
|
|
885
|
+
position: absolute;
|
|
886
|
+
inset: 2px;
|
|
887
|
+
background: var(--qz-milestone-color, var(--qz-hue-amber));
|
|
888
|
+
border-radius: 2px;
|
|
889
|
+
transform: rotate(45deg);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.qz-bar--milestone .qz-bar__label {
|
|
893
|
+
position: absolute;
|
|
894
|
+
left: calc(var(--qz-milestone-size, 14px) + 4px);
|
|
895
|
+
padding: 0;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.qz-today {
|
|
899
|
+
position: absolute;
|
|
900
|
+
top: 0;
|
|
901
|
+
bottom: 0;
|
|
902
|
+
width: 2px;
|
|
903
|
+
margin-left: -1px;
|
|
904
|
+
pointer-events: none;
|
|
905
|
+
background: var(--qz-today-color, var(--qz-accent));
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/* --- Task tooltip (placed by the engine; shown after a short delay) --- */
|
|
909
|
+
.qz-tooltip {
|
|
910
|
+
position: absolute;
|
|
911
|
+
z-index: 3;
|
|
912
|
+
/* Its content's width (capped): positioned from the left, it would otherwise shrink to the room on the right. */
|
|
913
|
+
width: max-content;
|
|
914
|
+
max-width: var(--qz-tooltip-max-width, 320px);
|
|
915
|
+
padding: 8px 12px;
|
|
916
|
+
font-size: 12px;
|
|
917
|
+
color: var(--qz-tooltip-color, var(--qz-inverse-text));
|
|
918
|
+
pointer-events: none;
|
|
919
|
+
background: var(--qz-tooltip-background, var(--qz-inverse));
|
|
920
|
+
border-radius: var(--qz-radius-sm);
|
|
921
|
+
/* Sets it off from the chart in the dark variant, where the inverse surface is the raised one. */
|
|
922
|
+
outline: 1px solid color-mix(in srgb, var(--qz-inverse-text) 10%, transparent);
|
|
923
|
+
box-shadow: var(--qz-elevation-2);
|
|
924
|
+
transform: translateY(calc(-100% - 4px));
|
|
925
|
+
animation: qz-tooltip-in 0.15s ease-out var(--qz-tooltip-delay, 0.4s) backwards;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.qz-tooltip--below {
|
|
929
|
+
transform: translateY(4px);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.qz-tooltip--end {
|
|
933
|
+
translate: -100% 0;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
@keyframes qz-tooltip-in {
|
|
937
|
+
from {
|
|
938
|
+
opacity: 0;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.qz-tooltip__title {
|
|
943
|
+
margin-bottom: 6px;
|
|
944
|
+
overflow: hidden;
|
|
945
|
+
font-size: 13px;
|
|
946
|
+
font-weight: 500;
|
|
947
|
+
white-space: nowrap;
|
|
948
|
+
text-overflow: ellipsis;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.qz-tooltip__fields {
|
|
952
|
+
display: grid;
|
|
953
|
+
grid-template-columns: auto auto;
|
|
954
|
+
gap: 3px 14px;
|
|
955
|
+
margin: 0;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.qz-tooltip__fields dt {
|
|
959
|
+
color: var(--qz-tooltip-muted-color, var(--qz-inverse-muted));
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.qz-tooltip__fields dd {
|
|
963
|
+
margin: 0;
|
|
964
|
+
font-family: var(--qz-font-mono);
|
|
965
|
+
font-size: 11px;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/* --- Editing a cell --- */
|
|
969
|
+
.qz-grid__row--editing {
|
|
970
|
+
z-index: 1;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.qz-grid__cell--editing {
|
|
974
|
+
position: relative;
|
|
975
|
+
padding-right: 2px;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.qz-cell-editor {
|
|
979
|
+
flex: 1;
|
|
980
|
+
min-width: 0;
|
|
981
|
+
height: calc(100% - 8px);
|
|
982
|
+
padding: 0 6px;
|
|
983
|
+
font: inherit;
|
|
984
|
+
color: var(--qz-text);
|
|
985
|
+
background: var(--qz-field);
|
|
986
|
+
border: 1px solid var(--qz-focus-color, var(--qz-primary));
|
|
987
|
+
border-radius: var(--qz-radius-xs);
|
|
988
|
+
outline: none;
|
|
989
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--qz-focus-color, var(--qz-primary)) 18%, transparent);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.qz-cell-editor--invalid {
|
|
993
|
+
border-color: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
994
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--qz-invalid-color, var(--qz-hue-rose)) 18%, transparent);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.qz-cell-editor__error {
|
|
998
|
+
position: absolute;
|
|
999
|
+
top: calc(100% - 2px);
|
|
1000
|
+
/* As wide as the cell, wrapping: the list clips anything wider. */
|
|
1001
|
+
right: 2px;
|
|
1002
|
+
left: 2px;
|
|
1003
|
+
z-index: 3;
|
|
1004
|
+
padding: 4px 8px;
|
|
1005
|
+
font-size: 12px;
|
|
1006
|
+
color: var(--qz-on-hue);
|
|
1007
|
+
text-align: start;
|
|
1008
|
+
background: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
1009
|
+
border-radius: var(--qz-radius-xs);
|
|
1010
|
+
box-shadow: var(--qz-elevation-2);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* --- Context menu (a popover: fixed, in the top layer) --- */
|
|
1014
|
+
.qz-menu {
|
|
1015
|
+
position: fixed;
|
|
1016
|
+
inset: auto;
|
|
1017
|
+
z-index: 10;
|
|
1018
|
+
min-width: 190px;
|
|
1019
|
+
padding: 4px;
|
|
1020
|
+
margin: 0;
|
|
1021
|
+
overflow: visible;
|
|
1022
|
+
font-family: var(--qz-font-family, var(--qz-font-sans));
|
|
1023
|
+
font-size: var(--qz-font-size, 13px);
|
|
1024
|
+
color: var(--qz-text);
|
|
1025
|
+
background: var(--qz-raised);
|
|
1026
|
+
border: 1px solid var(--qz-line);
|
|
1027
|
+
border-radius: var(--qz-radius-md);
|
|
1028
|
+
outline: none;
|
|
1029
|
+
box-shadow: var(--qz-elevation-2);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.qz-menu--sub {
|
|
1033
|
+
position: absolute;
|
|
1034
|
+
top: -5px;
|
|
1035
|
+
left: calc(100% - 2px);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.qz-menu--sub.qz-menu--left {
|
|
1039
|
+
right: calc(100% - 2px);
|
|
1040
|
+
left: auto;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.qz-menu__sub {
|
|
1044
|
+
display: contents;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.qz-menu__item {
|
|
1048
|
+
position: relative;
|
|
1049
|
+
display: flex;
|
|
1050
|
+
gap: 6px;
|
|
1051
|
+
align-items: center;
|
|
1052
|
+
padding: 6px 12px 6px 6px;
|
|
1053
|
+
white-space: nowrap;
|
|
1054
|
+
cursor: default;
|
|
1055
|
+
user-select: none;
|
|
1056
|
+
border-radius: var(--qz-radius-sm);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.qz-menu__item--active {
|
|
1060
|
+
background: var(--qz-chip);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.qz-menu__item[aria-disabled='true'] {
|
|
1064
|
+
color: var(--qz-text-faint);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.qz-menu__check {
|
|
1068
|
+
width: 14px;
|
|
1069
|
+
color: var(--qz-primary);
|
|
1070
|
+
text-align: center;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.qz-menu__label {
|
|
1074
|
+
flex: 1;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.qz-menu__arrow {
|
|
1078
|
+
color: var(--qz-text-faint);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.qz-menu__separator {
|
|
1082
|
+
height: 1px;
|
|
1083
|
+
margin: 4px 6px;
|
|
1084
|
+
background: var(--qz-line);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/* The submenu hangs off its item. */
|
|
1088
|
+
[role='none']:has(> .qz-menu__sub) {
|
|
1089
|
+
position: relative;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/* --- Task editor (a modal dialog) --- */
|
|
1093
|
+
.qz-task-editor {
|
|
1094
|
+
width: min(540px, calc(100vw - 32px));
|
|
1095
|
+
padding: 0;
|
|
1096
|
+
font-family: var(--qz-font-family, var(--qz-font-sans));
|
|
1097
|
+
font-size: var(--qz-font-size, 13px);
|
|
1098
|
+
color: var(--qz-text);
|
|
1099
|
+
background: var(--qz-raised);
|
|
1100
|
+
border: 1px solid var(--qz-line);
|
|
1101
|
+
border-radius: var(--qz-radius-xl);
|
|
1102
|
+
box-shadow: var(--qz-dialog-shadow, var(--qz-elevation-2));
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.qz-task-editor::backdrop {
|
|
1106
|
+
background: var(--qz-backdrop-color, rgb(19 26 33 / 35%));
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
.qz-task-editor__form {
|
|
1110
|
+
display: flex;
|
|
1111
|
+
flex-direction: column;
|
|
1112
|
+
gap: 16px;
|
|
1113
|
+
padding: 24px;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.qz-task-editor__title {
|
|
1117
|
+
margin: 0;
|
|
1118
|
+
overflow: hidden;
|
|
1119
|
+
font-size: 20px;
|
|
1120
|
+
font-weight: 500;
|
|
1121
|
+
line-height: 1.3;
|
|
1122
|
+
letter-spacing: -0.01em;
|
|
1123
|
+
white-space: nowrap;
|
|
1124
|
+
text-overflow: ellipsis;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/* Tabs as a segmented control: the active one on a chip. */
|
|
1128
|
+
.qz-task-editor__tabs {
|
|
1129
|
+
display: flex;
|
|
1130
|
+
gap: 4px;
|
|
1131
|
+
align-self: flex-start;
|
|
1132
|
+
max-width: 100%;
|
|
1133
|
+
padding: 3px;
|
|
1134
|
+
overflow-x: auto;
|
|
1135
|
+
border: 1px solid var(--qz-line-subtle);
|
|
1136
|
+
border-radius: 8px;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.qz-task-editor__panel {
|
|
1140
|
+
display: flex;
|
|
1141
|
+
flex-direction: column;
|
|
1142
|
+
gap: 12px;
|
|
1143
|
+
min-height: 220px;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.qz-task-editor__row {
|
|
1147
|
+
display: flex;
|
|
1148
|
+
gap: 12px;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.qz-task-editor__row > * {
|
|
1152
|
+
flex: 1;
|
|
1153
|
+
min-width: 0;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.qz-task-editor__field {
|
|
1157
|
+
display: flex;
|
|
1158
|
+
flex-direction: column;
|
|
1159
|
+
gap: 6px;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.qz-task-editor__field > label,
|
|
1163
|
+
.qz-task-editor__field > span:first-child {
|
|
1164
|
+
font-size: 12px;
|
|
1165
|
+
color: var(--qz-text-muted);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.qz-task-editor input,
|
|
1169
|
+
.qz-task-editor select {
|
|
1170
|
+
min-width: 0;
|
|
1171
|
+
height: 34px;
|
|
1172
|
+
padding: 0 10px;
|
|
1173
|
+
font: inherit;
|
|
1174
|
+
color: var(--qz-text);
|
|
1175
|
+
background: var(--qz-field);
|
|
1176
|
+
border: 1px solid var(--qz-line-strong);
|
|
1177
|
+
border-radius: var(--qz-radius-sm);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.qz-task-editor input:focus-visible,
|
|
1181
|
+
.qz-task-editor select:focus-visible {
|
|
1182
|
+
border-color: var(--qz-focus-color, var(--qz-primary));
|
|
1183
|
+
outline: none;
|
|
1184
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--qz-focus-color, var(--qz-primary)) 18%, transparent);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.qz-task-editor input[type='checkbox'] {
|
|
1188
|
+
width: 16px;
|
|
1189
|
+
height: 16px;
|
|
1190
|
+
padding: 0;
|
|
1191
|
+
accent-color: var(--qz-primary);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.qz-task-editor input[aria-invalid='true'] {
|
|
1195
|
+
border-color: var(--qz-invalid-color, var(--qz-hue-rose));
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.qz-task-editor input:disabled {
|
|
1199
|
+
color: var(--qz-text-faint);
|
|
1200
|
+
background: var(--qz-sunken);
|
|
1201
|
+
border-color: var(--qz-line);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
.qz-task-editor__check {
|
|
1205
|
+
display: flex;
|
|
1206
|
+
gap: 8px;
|
|
1207
|
+
align-items: center;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.qz-task-editor__row > .qz-task-editor__lag {
|
|
1211
|
+
flex: 0 0 76px;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.qz-task-editor__row > button {
|
|
1215
|
+
flex: 0 0 auto;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.qz-task-editor__dependencies {
|
|
1219
|
+
display: flex;
|
|
1220
|
+
flex-direction: column;
|
|
1221
|
+
gap: 8px;
|
|
1222
|
+
align-items: stretch;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.qz-task-editor__dependencies > button {
|
|
1226
|
+
align-self: flex-start;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.qz-task-editor__field-error,
|
|
1230
|
+
.qz-task-editor__error {
|
|
1231
|
+
margin: 0;
|
|
1232
|
+
font-size: 12px;
|
|
1233
|
+
color: var(--qz-invalid-text-color, var(--qz-hue-rose));
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.qz-task-editor__empty {
|
|
1237
|
+
margin: 0;
|
|
1238
|
+
color: var(--qz-text-muted);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.qz-task-editor__buttons {
|
|
1242
|
+
display: flex;
|
|
1243
|
+
gap: 8px;
|
|
1244
|
+
justify-content: flex-end;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* Buttons: secondary (raised with a strong line) by default, pill-shaped. */
|
|
1248
|
+
.qz-task-editor button {
|
|
1249
|
+
height: 34px;
|
|
1250
|
+
padding: 0 16px;
|
|
1251
|
+
font: inherit;
|
|
1252
|
+
font-weight: 500;
|
|
1253
|
+
color: var(--qz-text);
|
|
1254
|
+
cursor: pointer;
|
|
1255
|
+
background: var(--qz-raised);
|
|
1256
|
+
border: 1px solid var(--qz-line-strong);
|
|
1257
|
+
border-radius: var(--qz-radius-pill);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.qz-task-editor button:hover {
|
|
1261
|
+
background: var(--qz-sunken);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.qz-task-editor button:focus-visible {
|
|
1265
|
+
outline: 2px solid var(--qz-focus-color, var(--qz-primary));
|
|
1266
|
+
outline-offset: 2px;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.qz-task-editor .qz-task-editor__tab {
|
|
1270
|
+
height: auto;
|
|
1271
|
+
padding: 6px 12px;
|
|
1272
|
+
font-weight: 400;
|
|
1273
|
+
color: var(--qz-text-muted);
|
|
1274
|
+
white-space: nowrap;
|
|
1275
|
+
background: none;
|
|
1276
|
+
border: 0;
|
|
1277
|
+
border-radius: var(--qz-radius-sm);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.qz-task-editor .qz-task-editor__tab:hover {
|
|
1281
|
+
color: var(--qz-text);
|
|
1282
|
+
background: none;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.qz-task-editor .qz-task-editor__tab[aria-selected='true'] {
|
|
1286
|
+
color: var(--qz-text);
|
|
1287
|
+
background: var(--qz-chip);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/* The primary button. */
|
|
1291
|
+
.qz-task-editor .qz-task-editor__save {
|
|
1292
|
+
color: var(--qz-on-primary);
|
|
1293
|
+
background: var(--qz-primary);
|
|
1294
|
+
border-color: var(--qz-primary);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.qz-task-editor .qz-task-editor__save:hover {
|
|
1298
|
+
background: color-mix(in srgb, var(--qz-primary) 88%, var(--qz-text));
|
|
1299
|
+
}
|