| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/gantt-chart", |
| 5 |
"title": "Gantt Chart", |
| 6 |
"description": "Project timeline Gantt chart with tasks, phases, milestones, and a today indicator. Rendered in pure CSS — no library required.", |
| 7 |
"category": "bkbg-charts", |
| 8 |
"icon": "calendar-alt", |
| 9 |
"keywords": [ |
| 10 |
"gantt", |
| 11 |
"project", |
| 12 |
"timeline", |
| 13 |
"schedule", |
| 14 |
"tasks", |
| 15 |
"plan", |
| 16 |
"roadmap", |
| 17 |
"chart" |
| 18 |
], |
| 19 |
"editorScript": "bkbg-gantt-chart-editor", |
| 20 |
"editorStyle": "bkbg-gantt-chart-style", |
| 21 |
"style": "bkbg-gantt-chart-style", |
| 22 |
"viewScript": "bkbg-gantt-chart-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"tasks": { |
| 34 |
"type": "array", |
| 35 |
"default": [ |
| 36 |
{ |
| 37 |
"id": "t1", |
| 38 |
"name": "Project Kickoff", |
| 39 |
"phase": "Discovery", |
| 40 |
"startDate": "2025-01-06", |
| 41 |
"endDate": "2025-01-10", |
| 42 |
"color": "#6366f1", |
| 43 |
"milestone": false, |
| 44 |
"completed": 100, |
| 45 |
"assignee": "Alex" |
| 46 |
}, |
| 47 |
{ |
| 48 |
"id": "t2", |
| 49 |
"name": "Requirements Gathering", |
| 50 |
"phase": "Discovery", |
| 51 |
"startDate": "2025-01-08", |
| 52 |
"endDate": "2025-01-17", |
| 53 |
"color": "#6366f1", |
| 54 |
"milestone": false, |
| 55 |
"completed": 80, |
| 56 |
"assignee": "Sam" |
| 57 |
}, |
| 58 |
{ |
| 59 |
"id": "t3", |
| 60 |
"name": "Design System Setup", |
| 61 |
"phase": "Design", |
| 62 |
"startDate": "2025-01-20", |
| 63 |
"endDate": "2025-02-07", |
| 64 |
"color": "#0ea5e9", |
| 65 |
"milestone": false, |
| 66 |
"completed": 60, |
| 67 |
"assignee": "Jordan" |
| 68 |
}, |
| 69 |
{ |
| 70 |
"id": "t4", |
| 71 |
"name": "Wireframes", |
| 72 |
"phase": "Design", |
| 73 |
"startDate": "2025-01-27", |
| 74 |
"endDate": "2025-02-14", |
| 75 |
"color": "#0ea5e9", |
| 76 |
"milestone": false, |
| 77 |
"completed": 40, |
| 78 |
"assignee": "Jordan" |
| 79 |
}, |
| 80 |
{ |
| 81 |
"id": "t5", |
| 82 |
"name": "Design Review ✓", |
| 83 |
"phase": "Design", |
| 84 |
"startDate": "2025-02-14", |
| 85 |
"endDate": "2025-02-14", |
| 86 |
"color": "#f59e0b", |
| 87 |
"milestone": true, |
| 88 |
"completed": 0, |
| 89 |
"assignee": "" |
| 90 |
}, |
| 91 |
{ |
| 92 |
"id": "t6", |
| 93 |
"name": "Frontend Development", |
| 94 |
"phase": "Development", |
| 95 |
"startDate": "2025-02-17", |
| 96 |
"endDate": "2025-03-14", |
| 97 |
"color": "#10b981", |
| 98 |
"milestone": false, |
| 99 |
"completed": 20, |
| 100 |
"assignee": "Alex" |
| 101 |
}, |
| 102 |
{ |
| 103 |
"id": "t7", |
| 104 |
"name": "Backend API", |
| 105 |
"phase": "Development", |
| 106 |
"startDate": "2025-02-17", |
| 107 |
"endDate": "2025-03-07", |
| 108 |
"color": "#10b981", |
| 109 |
"milestone": false, |
| 110 |
"completed": 30, |
| 111 |
"assignee": "Sam" |
| 112 |
}, |
| 113 |
{ |
| 114 |
"id": "t8", |
| 115 |
"name": "QA & Testing", |
| 116 |
"phase": "Launch", |
| 117 |
"startDate": "2025-03-10", |
| 118 |
"endDate": "2025-03-21", |
| 119 |
"color": "#ef4444", |
| 120 |
"milestone": false, |
| 121 |
"completed": 0, |
| 122 |
"assignee": "Pat" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"id": "t9", |
| 126 |
"name": "Launch 🚀", |
| 127 |
"phase": "Launch", |
| 128 |
"startDate": "2025-03-24", |
| 129 |
"endDate": "2025-03-24", |
| 130 |
"color": "#f59e0b", |
| 131 |
"milestone": true, |
| 132 |
"completed": 0, |
| 133 |
"assignee": "" |
| 134 |
} |
| 135 |
] |
| 136 |
}, |
| 137 |
"view": { |
| 138 |
"type": "string", |
| 139 |
"default": "month" |
| 140 |
}, |
| 141 |
"showPhases": { |
| 142 |
"type": "boolean", |
| 143 |
"default": true |
| 144 |
}, |
| 145 |
"showMilestones": { |
| 146 |
"type": "boolean", |
| 147 |
"default": true |
| 148 |
}, |
| 149 |
"showAssignee": { |
| 150 |
"type": "boolean", |
| 151 |
"default": false |
| 152 |
}, |
| 153 |
"showProgress": { |
| 154 |
"type": "boolean", |
| 155 |
"default": true |
| 156 |
}, |
| 157 |
"highlightToday": { |
| 158 |
"type": "boolean", |
| 159 |
"default": true |
| 160 |
}, |
| 161 |
"showLegend": { |
| 162 |
"type": "boolean", |
| 163 |
"default": true |
| 164 |
}, |
| 165 |
"showWeekends": { |
| 166 |
"type": "boolean", |
| 167 |
"default": true |
| 168 |
}, |
| 169 |
"rowHeight": { |
| 170 |
"type": "number", |
| 171 |
"default": 40 |
| 172 |
}, |
| 173 |
"taskRadius": { |
| 174 |
"type": "number", |
| 175 |
"default": 4 |
| 176 |
}, |
| 177 |
"labelWidth": { |
| 178 |
"type": "number", |
| 179 |
"default": 200 |
| 180 |
}, |
| 181 |
"maxWidth": { |
| 182 |
"type": "number", |
| 183 |
"default": 0 |
| 184 |
}, |
| 185 |
"paddingTop": { |
| 186 |
"type": "number", |
| 187 |
"default": 0 |
| 188 |
}, |
| 189 |
"paddingBottom": { |
| 190 |
"type": "number", |
| 191 |
"default": 0 |
| 192 |
}, |
| 193 |
"bgColor": { |
| 194 |
"type": "string", |
| 195 |
"default": "" |
| 196 |
}, |
| 197 |
"headerBg": { |
| 198 |
"type": "string", |
| 199 |
"default": "#f3f4f6" |
| 200 |
}, |
| 201 |
"rowBg": { |
| 202 |
"type": "string", |
| 203 |
"default": "#ffffff" |
| 204 |
}, |
| 205 |
"rowAltBg": { |
| 206 |
"type": "string", |
| 207 |
"default": "#f9fafb" |
| 208 |
}, |
| 209 |
"weekendBg": { |
| 210 |
"type": "string", |
| 211 |
"default": "#f0f0f5" |
| 212 |
}, |
| 213 |
"todayLine": { |
| 214 |
"type": "string", |
| 215 |
"default": "#ef4444" |
| 216 |
}, |
| 217 |
"gridColor": { |
| 218 |
"type": "string", |
| 219 |
"default": "#e5e7eb" |
| 220 |
}, |
| 221 |
"headerColor": { |
| 222 |
"type": "string", |
| 223 |
"default": "#374151" |
| 224 |
}, |
| 225 |
"labelColor": { |
| 226 |
"type": "string", |
| 227 |
"default": "#111827" |
| 228 |
}, |
| 229 |
"phaseColor": { |
| 230 |
"type": "string", |
| 231 |
"default": "#6b7280" |
| 232 |
}, |
| 233 |
"milestoneColor": { |
| 234 |
"type": "string", |
| 235 |
"default": "#f59e0b" |
| 236 |
}, |
| 237 |
"labelFontSize": { |
| 238 |
"type": "number", |
| 239 |
"default": 12 |
| 240 |
}, |
| 241 |
"labelFontWeight": { |
| 242 |
"type": "string", |
| 243 |
"default": "400" |
| 244 |
}, |
| 245 |
"labelLineHeight": { |
| 246 |
"type": "number", |
| 247 |
"default": 1.4 |
| 248 |
}, |
| 249 |
"headerFontSize": { |
| 250 |
"type": "number", |
| 251 |
"default": 11 |
| 252 |
}, |
| 253 |
"headerFontWeight": { |
| 254 |
"type": "string", |
| 255 |
"default": "700" |
| 256 |
}, |
| 257 |
"headerLineHeight": { |
| 258 |
"type": "number", |
| 259 |
"default": 1.3 |
| 260 |
}, |
| 261 |
"typoLabel": { |
| 262 |
"type": "object", |
| 263 |
"default": {} |
| 264 |
}, |
| 265 |
"typoHeader": { |
| 266 |
"type": "object", |
| 267 |
"default": {} |
| 268 |
} |
| 269 |
} |
| 270 |
} |
| 271 |
|