@umriss-ui/schedule 0.49.0 → 0.51.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/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/schedule 0.49.0
1
+ # @umriss-ui/schedule 0.51.0
2
2
 
3
3
  > React Gantt-style schedule for data-dense applications - work on lanes over time, with dependencies, blocked time, findings and controlled editing.
4
4
 
@@ -1433,7 +1433,7 @@ Under forced colours the plot paints itself in the system colours: the work in t
1433
1433
  | Prop | Type | Default | Description |
1434
1434
  |---|---|---|---|
1435
1435
  | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the root element. |
1436
- | `height` | `number` | fills the frame, at least 400 px | Height in CSS pixels, both bands included, fixed. Left out, the schedule fills its frame - a stretched grid cell, a card the grid stretches, a container of definite height - and never goes below 400 px, which is also its height in a frame without one. A different floor goes through `style`'s `minHeight` ([ADR-0050](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0050-a-chart-fills-its-frame-never-below-its-floor.md)). The width is the host's.<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 85 more |
1436
+ | `height` | `number` | fills the frame, at least 400 px | Height in CSS pixels, both bands included, fixed. Left out, the schedule fills its frame - a stretched grid cell, a card the grid stretches, a container of definite height - and never goes below 400 px, which is also its height in a frame without one. A different floor goes through `style`'s `minHeight` ([ADR-0050](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0050-a-chart-fills-its-frame-never-below-its-floor.md)). The width is the host's.<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 86 more |
1437
1437
  | `laneHeight` | `number` | `44` | Height of one lane in pixels at the default font size of 16 px; the schedule multiplies it by the root font size over 16 px when that ratio is above 1, so lane names keep their room in a reader's larger font.<br>Shown in: [Highlight a lane (Lanes)](#lanes), [Scroll more lanes than fit (Lanes)](#lanes), [Measure a plan (Benchmark)](#benchmark) |
1438
1438
  | `headerWidth` | `number` | `160` | Width of the lane headers in pixels - at most 40 % of the schedule, so that on a phone the plot keeps the larger part.<br>Shown in: [What a lane header says (Lanes)](#lanes), [Highlight a lane (Lanes)](#lanes), [Scroll more lanes than fit (Lanes)](#lanes) and 2 more |
1439
1439
  | `calendar` | `CalendarInput` | `[]` | A working calendar: the intervals in which time counts. Nights and weekends outside them are cut out of the axis. Without intervals every hour counts, as on the wall clock.<br>Shown in: [Cut the nights out of the axis (Time axis and calendar)](#time-axis-and-calendar), [Plan in office hours only (Time axis and calendar)](#time-axis-and-calendar), [Plan the sprint around leave (Scenarios)](#plan-the-sprint-around-leave) |
@@ -1451,7 +1451,7 @@ Under forced colours the plot paints itself in the system colours: the work in t
1451
1451
  | `tooltip` | `false \| ((target: `[`ScheduleTooltipTarget`](#tooltip)`) => ReactNode)` | — | The tooltip on a hovered subtask or dependency: its order, its times, its parts and its findings. `false` switches it off; a function receives what the pointer rests on and returns content of the application's own.<br>Shown in: [Say what a milestone is in your own tooltip (Milestones)](#milestones), [Write your own tooltip content (Tooltip)](#tooltip), [Show a detail panel instead (Tooltip)](#tooltip) and 1 more |
1452
1452
  | `now` | `boolean \| number` | `false` | A line marking the present across the lanes: `true` follows the clock by the minute, an instant fixes it there.<br>Shown in: [Plan a day in the machine shop](#first-schedule), [Mark the present (Now line)](#now-line), [Follow the clock (Now line)](#now-line) and 2 more |
1453
1453
  | `loading` | `boolean` | `false` | The plan is on its way, as the chart's `loading` says ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)). A plan already drawn stays: it dims after a moment and takes no pointer - no new drag, no tooltip, no intent by key - until the answer is in; a drag begun before finishes and reports. The keys still walk it. With no lanes, placeholder lines stand in the lane column. The plot is `aria-busy` meanwhile.<br>Shown in: [Show that a plan is on its way](#first-schedule) |
1454
- | `children` | `ReactNode` | — | `Lane`, `Dependencies` and `Subtasks`, in the order they are to stand and be drawn.<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 87 more |
1454
+ | `children` | `ReactNode` | — | `Lane`, `Dependencies` and `Subtasks`, in the order they are to stand and be drawn.<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 88 more |
1455
1455
 
1456
1456
  ###### Events
1457
1457
 
@@ -1464,7 +1464,7 @@ Under forced colours the plot paints itself in the system colours: the work in t
1464
1464
 
1465
1465
  | Prop | Type | Default | Description |
1466
1466
  |---|---|---|---|
1467
- | `aria-label` *required* | `string` | — | What the schedule shows, for a screen reader: "Plan of week 38".<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 87 more |
1467
+ | `aria-label` *required* | `string` | — | What the schedule shows, for a screen reader: "Plan of week 38".<br>Shown in: [A day of tours](#first-schedule), [Start from an empty plan](#first-schedule), [Plan a day in the machine shop](#first-schedule) and 88 more |
1468
1468
 
1469
1469
  Also takes every attribute of `<div>` – without `aria-label`, `children`.
1470
1470
 
@@ -1666,11 +1666,11 @@ no subtask yet; the caller creates one, with its own identity, from
1666
1666
 
1667
1667
  #### Known limits
1668
1668
 
1669
- - No dependency types, critical path or auto-scheduling: the application decides where work goes, the schedule shows the result and its findings ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
1669
+ - No dependency types, critical path or auto-scheduling: the application decides where work goes, the schedule shows the result and its findings ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
1670
1670
  - No milestones yet: a point in time on a lane has no mark of its own.
1671
1671
  - A dependency joins two subtasks of one task; dependencies across tasks are not yet possible.
1672
1672
 
1673
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
1673
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
1674
1674
 
1675
1675
  ## Plan
1676
1676
 
@@ -1876,8 +1876,8 @@ The keys of [First schedule](#first-schedule) apply here.
1876
1876
 
1877
1877
  | Prop | Type | Default | Description |
1878
1878
  |---|---|---|---|
1879
- | `id` *required* | `string` | — | The identity subtasks name in their `lane`.<br>Shown in: [What a lane header says](#lanes), [Highlight a lane](#lanes), [Scroll more lanes than fit](#lanes) and 87 more |
1880
- | `label` | `ReactNode` | `id` | What the lane header says - the person, vehicle or room. Real text, read by a screen reader.<br>Shown in: [What a lane header says](#lanes), [Highlight a lane](#lanes), [Scroll more lanes than fit](#lanes) and 86 more |
1879
+ | `id` *required* | `string` | — | The identity subtasks name in their `lane`.<br>Shown in: [What a lane header says](#lanes), [Highlight a lane](#lanes), [Scroll more lanes than fit](#lanes) and 88 more |
1880
+ | `label` | `ReactNode` | `id` | What the lane header says - the person, vehicle or room. Real text, read by a screen reader.<br>Shown in: [What a lane header says](#lanes), [Highlight a lane](#lanes), [Scroll more lanes than fit](#lanes) and 87 more |
1881
1881
 
1882
1882
  ### Lane groups
1883
1883
 
@@ -2185,7 +2185,7 @@ The keys of [First schedule](#first-schedule) apply here.
2185
2185
 
2186
2186
  - A folded group shows no summary - no utilisation band, no bar spanning its work: a computed claim would look like a drawn fact ([ADR-0025](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0025-a-lane-group-is-structure-over-lanes-never-a-lane.md)).
2187
2187
 
2188
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
2188
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
2189
2189
 
2190
2190
  ### Subtasks
2191
2191
 
@@ -2385,18 +2385,18 @@ The keys of [First schedule](#first-schedule) apply here.
2385
2385
 
2386
2386
  | Prop | Type | Default | Description |
2387
2387
  |---|---|---|---|
2388
- | `data` *required* | `readonly ``Subtask``[]` | — | The subtasks, as the caller holds them. The schedule never changes one.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 87 more |
2389
- | `tasks` *required* | `readonly ``Task``[]` | — | The tasks the subtasks belong to - their identity and their colour. A subtask whose task is not among them is drawn in a muted colour.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 87 more |
2388
+ | `data` *required* | `readonly ``Subtask``[]` | — | The subtasks, as the caller holds them. The schedule never changes one.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 88 more |
2389
+ | `tasks` *required* | `readonly ``Task``[]` | — | The tasks the subtasks belong to - their identity and their colour. A subtask whose task is not among them is drawn in a muted colour.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 88 more |
2390
2390
 
2391
2391
  ##### `Subtask`
2392
2392
 
2393
2393
  | Prop | Type | Default | Description |
2394
2394
  |---|---|---|---|
2395
- | `id` *required* | `string` | — | The caller's identity of the subtask.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 84 more |
2396
- | `task` *required* | `string` | — | The id of the task it belongs to.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2397
- | `lane` *required* | `string` | — | The id of the lane it sits on.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2398
- | `from` *required* | `number` | — | Start of the main time.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2399
- | `to` *required* | `number` | — | End of the main time.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2395
+ | `id` *required* | `string` | — | The caller's identity of the subtask.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [Plan a sprint for a team](#subtasks) and 85 more |
2396
+ | `task` *required* | `string` | — | The id of the task it belongs to.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 81 more |
2397
+ | `lane` *required* | `string` | — | The id of the lane it sits on.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 81 more |
2398
+ | `from` *required* | `number` | — | Start of the main time.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 81 more |
2399
+ | `to` *required* | `number` | — | End of the main time.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 81 more |
2400
2400
  | `leadIn` | `number` | — | Duration of the lead-in before the main time; none is zero.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 27 more |
2401
2401
  | `leadOut` | `number` | — | Duration of the lead-out after the main time; none is zero.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 23 more |
2402
2402
  | `name` | `string` | — | What the subtask is called, where the schedule names it.<br>Shown in: [Plan a sprint for a team](#subtasks), [Write into the bars (Bar labels)](#bar-labels), [Join the stops of a tour (Dependencies)](#dependencies) and 31 more |
@@ -2407,9 +2407,9 @@ The keys of [First schedule](#first-schedule) apply here.
2407
2407
 
2408
2408
  | Prop | Type | Default | Description |
2409
2409
  |---|---|---|---|
2410
- | `id` *required* | `string` | — | The caller's identity of the task.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 79 more |
2411
- | `color` *required* | `string` | — | Any CSS colour - a literal, a token, `light-dark(…)`. The colour means what the caller's domain needs it to mean.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 79 more |
2412
- | `name` | `string` | — | What the task is called, where the schedule names it.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 79 more |
2410
+ | `id` *required* | `string` | — | The caller's identity of the task.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2411
+ | `color` *required* | `string` | — | Any CSS colour - a literal, a token, `light-dark(…)`. The colour means what the caller's domain needs it to mean.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2412
+ | `name` | `string` | — | What the task is called, where the schedule names it.<br>Shown in: [Main time, lead-in and lead-out](#subtasks), [Colour by what the task means](#subtasks), [The smallest schedule (Installation)](#installation) and 80 more |
2413
2413
 
2414
2414
  ##### Types on this page
2415
2415
 
@@ -3049,7 +3049,7 @@ From `ScheduleView` — the full table stands on [View](#view).
3049
3049
 
3050
3050
  - No stacked layout on request yet: an overlap is always drawn offset, as the finding it is.
3051
3051
 
3052
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
3052
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
3053
3053
 
3054
3054
  ### Dependencies
3055
3055
 
@@ -3349,7 +3349,7 @@ export default function OneHandoverDrawnItsOwnWay() {
3349
3349
 
3350
3350
  ##### Mark the critical path
3351
3351
 
3352
- The planning system works out the critical path and hands over its subtask ids; `muted` takes the rest back so the path reads first. The schedule computes nothing ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)), so the switch only changes what the application marks.
3352
+ The planning system works out the critical path and hands over its subtask ids; `muted` takes the rest back so the path reads first. The schedule computes nothing ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)), so the switch only changes what the application marks.
3353
3353
 
3354
3354
  ```tsx
3355
3355
  import { useState } from "react";
@@ -3475,9 +3475,9 @@ type DependencyEnds = "dot" | "none";
3475
3475
 
3476
3476
  #### Known limits
3477
3477
 
3478
- - Only finish-to-start within one task; no dependency types and no critical path ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
3478
+ - Only finish-to-start within one task; no dependency types and no critical path ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
3479
3479
 
3480
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
3480
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
3481
3481
 
3482
3482
  ### Routes
3483
3483
 
@@ -3979,6 +3979,44 @@ export default function OfficeHours() {
3979
3979
  }
3980
3980
  ```
3981
3981
 
3982
+ ##### Open each week on Sunday
3983
+
3984
+ The week's first day comes from the language's formats: under `en-US` the dates of a zoomed-out axis stand on Sundays.
3985
+
3986
+ ```tsx
3987
+ import { LanguageProvider, formatsFor } from "@umriss-ui/core";
3988
+ import { useSchedule } from "@umriss-ui/schedule";
3989
+ import type { Subtask, Task } from "@umriss-ui/schedule";
3990
+
3991
+ const at = (day: number, hours = 9) => new Date(2026, 2, day, hours).getTime();
3992
+
3993
+ const TASKS: Task[] = [{ id: "release", name: "Release", color: "light-dark(#2563eb, #6b9bff)" }];
3994
+
3995
+ const TRAINS: Subtask[] = [
3996
+ { id: "r1", task: "release", lane: "web", from: at(2), to: at(30) },
3997
+ { id: "r2", task: "release", lane: "web", from: at(37), to: at(72) },
3998
+ { id: "r3", task: "release", lane: "mobile", from: at(9), to: at(51) },
3999
+ { id: "r4", task: "release", lane: "mobile", from: at(58), to: at(93) },
4000
+ { id: "r5", task: "release", lane: "desktop", from: at(23), to: at(79) },
4001
+ ];
4002
+
4003
+ const SIXTEEN_WEEKS: readonly [number, number] = [at(2, 0), at(114, 0)];
4004
+
4005
+ export default function WeekFromSunday() {
4006
+ const { Schedule, Lane, Subtasks } = useSchedule({ initialView: { domain: SIXTEEN_WEEKS } });
4007
+ return (
4008
+ <LanguageProvider formats={formatsFor("en-US")}>
4009
+ <Schedule aria-label="Release trains, March to June" height={220}>
4010
+ <Lane id="web" label="Web" />
4011
+ <Lane id="mobile" label="Mobile" />
4012
+ <Lane id="desktop" label="Desktop" />
4013
+ <Subtasks data={TRAINS} tasks={TASKS} />
4014
+ </Schedule>
4015
+ </LanguageProvider>
4016
+ );
4017
+ }
4018
+ ```
4019
+
3982
4020
  #### When to use something else
3983
4021
 
3984
4022
  - Time a single lane is not available → Blocked time
@@ -5233,7 +5271,7 @@ From `ScheduleView` — the full table stands on [View](#view).
5233
5271
 
5234
5272
  - One task at a time: there is no multiple selection.
5235
5273
 
5236
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
5274
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
5237
5275
 
5238
5276
  ### Interactions
5239
5277
 
@@ -6012,7 +6050,7 @@ The keys of [First schedule](#first-schedule) apply here.
6012
6050
 
6013
6051
  | Prop | Type | Default | Description |
6014
6052
  |---|---|---|---|
6015
- | `initialView` | `ScheduleView` | — | The view to start from, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`. To go to a view later, call `setView`. The schedule remembers none: where a view is kept is the application's decision.<br>Shown in: [Keep and restore a view](#view), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 87 more |
6053
+ | `initialView` | `ScheduleView` | — | The view to start from, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`. To go to a view later, call `setView`. The schedule remembers none: where a view is kept is the application's decision.<br>Shown in: [Keep and restore a view](#view), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 88 more |
6016
6054
 
6017
6055
  ###### Events
6018
6056
 
@@ -6024,7 +6062,7 @@ The keys of [First schedule](#first-schedule) apply here.
6024
6062
 
6025
6063
  | Prop | Type | Default | Description |
6026
6064
  |---|---|---|---|
6027
- | `domain` | `readonly [number, number]` | — | The span in view, as two wall-clock instants. Absent, the schedule shows the extent of its subtasks, within `zoomLimits`.<br>Shown in: [Keep and restore a view](#view), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 86 more |
6065
+ | `domain` | `readonly [number, number]` | — | The span in view, as two wall-clock instants. Absent, the schedule shows the extent of its subtasks, within `zoomLimits`.<br>Shown in: [Keep and restore a view](#view), [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule) and 87 more |
6028
6066
  | `folded` | `readonly string[]` | — | The **Lane group**s that are folded, by id. An id no group carries falls out. A folded outer group hides the inner ones without their ids leaving the list, so unfolding it gives back the view that was there.<br>Shown in: [Fold groups from outside (Lane groups)](#lane-groups), [Read a folded group (Lane groups)](#lane-groups), [Start with groups folded (Lane groups)](#lane-groups) |
6029
6067
 
6030
6068
  ### Linked schedules
@@ -6352,7 +6390,7 @@ From `ScheduleView` — the full table stands on [View](#view).
6352
6390
 
6353
6391
  - Only the view is shared - the span and the folded groups, not the selection, the hover or the vertical scroll.
6354
6392
 
6355
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
6393
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
6356
6394
 
6357
6395
  ### Functions on the hook
6358
6396
 
@@ -6810,7 +6848,7 @@ The keys of [First schedule](#first-schedule) apply here.
6810
6848
 
6811
6849
  - Overlapping work is marked, not packed into sub-lanes; stacked overlap is not built yet.
6812
6850
 
6813
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
6851
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
6814
6852
 
6815
6853
  ## Editing
6816
6854
 
@@ -7185,10 +7223,10 @@ From `Overlap` — the full table stands on [Findings as data](#findings-as-data
7185
7223
 
7186
7224
  #### Known limits
7187
7225
 
7188
- - No undo: your application owns the data, and with it the history - see [Undo](#undo) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
7226
+ - No undo: your application owns the data, and with it the history - see [Undo](#undo) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
7189
7227
  - The keys move work in time only; a lane change needs the pointer.
7190
7228
 
7191
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
7229
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
7192
7230
 
7193
7231
  ### Undo
7194
7232
 
@@ -7198,13 +7236,13 @@ Taking back the last applied change: the application keeps the plan before each
7198
7236
  import { useSchedule, applyIntent } from "@umriss-ui/schedule";
7199
7237
  ```
7200
7238
 
7201
- The schedule keeps no history: it reports each intent and the application applies it ([ADR-0023](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0023-editing-is-controlled-the-schedule-reports-intents.md)), so the stack of plans is the application's to keep ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)). The key is the page's, not the plot's - the plot leaves Ctrl and ⌘ to it.
7239
+ The schedule keeps no history: it reports each intent and the application applies it ([ADR-0023](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0023-editing-is-controlled-the-schedule-reports-intents.md)), so the stack of plans is the application's to keep ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)). The key is the page's, not the plot's - the plot leaves Ctrl and ⌘ to it.
7202
7240
 
7203
7241
  #### Examples
7204
7242
 
7205
7243
  ##### Undo the applied intents
7206
7244
 
7207
- The history is the application's, not the schedule's ([ADR-0023](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0023-editing-is-controlled-the-schedule-reports-intents.md), [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)): it keeps the plan before each intent it applies, and Ctrl+Z, ⌘Z on a Mac, or the Undo button pops the last one. The schedule only knows end-to-start, so a start-to-start is one dependency with a negative lag: the lag is the delay less the spec's three hours, and the line is drawn apart.
7245
+ The history is the application's, not the schedule's ([ADR-0023](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0023-editing-is-controlled-the-schedule-reports-intents.md), [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)): it keeps the plan before each intent it applies, and Ctrl+Z, ⌘Z on a Mac, or the Undo button pops the last one. The schedule only knows end-to-start, so a start-to-start is one dependency with a negative lag: the lag is the delay less the spec's three hours, and the line is drawn apart.
7208
7246
 
7209
7247
  ```tsx
7210
7248
  import { useState, type KeyboardEvent } from "react";
@@ -7539,7 +7577,7 @@ From `ScheduleView` — the full table stands on [View](#view).
7539
7577
 
7540
7578
  - A main time never becomes shorter than one raster step, or a minute without a raster.
7541
7579
 
7542
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
7580
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
7543
7581
 
7544
7582
  ### Snapping
7545
7583
 
@@ -8398,7 +8436,7 @@ From `ScheduleView` — the full table stands on [View](#view).
8398
8436
 
8399
8437
  - A rule that changes while a drag runs is noticed at the drop, not before.
8400
8438
 
8401
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
8439
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
8402
8440
 
8403
8441
  ### Ripple
8404
8442
 
@@ -8683,10 +8721,10 @@ From `ScheduleView` — the full table stands on [View](#view).
8683
8721
 
8684
8722
  #### Known limits
8685
8723
 
8686
- - No dependency types, slack or critical path: the schedule is no project-planning engine ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
8724
+ - No dependency types, slack or critical path: the schedule is no project-planning engine ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
8687
8725
  - A dependency joins subtasks of one task, so work of other tasks is never pushed.
8688
8726
 
8689
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
8727
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/schedule-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
8690
8728
 
8691
8729
  ## Measuring
8692
8730
 
@@ -9517,10 +9555,10 @@ it, its view and the setters that change it.
9517
9555
 
9518
9556
  | Prop | Type | Default | Description |
9519
9557
  |---|---|---|---|
9520
- | `Schedule` *required* | `(props: `[`ScheduleProps`](#first-schedule)`) => ReactNode` | — | The schedule. One per `useSchedule`: a second schedule is a second call.<br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 87 more |
9521
- | `Lane` *required* | `typeof Lane` | — | <br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 87 more |
9558
+ | `Schedule` *required* | `(props: `[`ScheduleProps`](#first-schedule)`) => ReactNode` | — | The schedule. One per `useSchedule`: a second schedule is a second call.<br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 88 more |
9559
+ | `Lane` *required* | `typeof Lane` | — | <br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 88 more |
9522
9560
  | `LaneGroup` *required* | `typeof LaneGroup` | — | <br>Shown in: [Group lanes under a head (Lane groups)](#lane-groups), [Nest groups to any depth (Lane groups)](#lane-groups), [Fold groups from outside (Lane groups)](#lane-groups) and 5 more |
9523
- | `Subtasks` *required* | `typeof Subtasks` | — | <br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 87 more |
9561
+ | `Subtasks` *required* | `typeof Subtasks` | — | <br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Start from an empty plan (First schedule)](#first-schedule) and 88 more |
9524
9562
  | `Dependencies` *required* | `typeof Dependencies` | — | <br>Shown in: [The smallest schedule (Installation)](#installation), [A day of tours (First schedule)](#first-schedule), [Plan a day in the machine shop (First schedule)](#first-schedule) and 30 more |
9525
9563
  | `BlockedTimes` *required* | `typeof BlockedTimes` | — | <br>Shown in: [Block out leave and maintenance (Blocked time)](#blocked-time), [Plan work around someone's leave (Blocked time)](#blocked-time), [Check a sprint against the leave calendar (Blocked time)](#blocked-time) and 5 more |
9526
9564
  | `Milestones` *required* | `typeof Milestones` | — | <br>Shown in: [Mark a handover and a release (Milestones)](#milestones), [Say what a milestone is in your own tooltip (Milestones)](#milestones) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/schedule",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "React Gantt-style schedule for data-dense applications - work on lanes over time, with dependencies, blocked time, findings and controlled editing.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -59,16 +59,16 @@
59
59
  }
60
60
  },
61
61
  "peerDependencies": {
62
- "@umriss-ui/charts": "^0.49.0",
63
- "@umriss-ui/core": "^0.49.0",
62
+ "@umriss-ui/charts": "^0.51.0",
63
+ "@umriss-ui/core": "^0.51.0",
64
64
  "react": ">=19",
65
65
  "react-dom": ">=19"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@fontsource/geist-mono": "^5.3.0",
69
69
  "@fontsource/geist-sans": "^5.3.0",
70
- "@umriss-ui/charts": "0.49.0",
71
- "@umriss-ui/core": "0.49.0",
70
+ "@umriss-ui/charts": "0.51.0",
71
+ "@umriss-ui/core": "0.51.0",
72
72
  "@umriss-ui/demo": "0.0.0",
73
73
  "@types/node": "^22.20.2",
74
74
  "@types/react": "^19.0.0",
@@ -90,7 +90,7 @@
90
90
  "typecheck": "tsc --noEmit",
91
91
  "typecheck:demo": "pnpm run props && tsc --noEmit -p tsconfig.demo.json",
92
92
  "check:site": "pnpm run props -- --check && node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/checkReadmeLinks.ts",
93
- "preview:demo": "vite preview --config vite.demo.config.ts --port 4176 --strictPort",
93
+ "preview:demo": "node ../../scripts/preview.mjs schedule",
94
94
  "test:unit": "vitest run",
95
95
  "check:dist": "node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/check-dist.ts schedule.js schedule.css"
96
96
  }