Repository navigation
v1.6.0
Adds an opt-in idle-escape to NetworkGraph and GanttChart and the core helper taskViewBindings, so applications clear a selection on Escape and link task views without bookkeeping of their own. The production demo is now one linked, saving app, the scheduler is checked by property tests and a brute-force oracle, and a leveling fault they found is fixed.
Added
- NetworkGraph and GanttChart report an opt-in
idle-escape(@idle-escapein templates,.onceincluded; declared as the listener proponIdleEscapeand delivered as a component event) with theKeyboardEventwhen Escape is pressed in them and cancels nothing of their own: no gesture, armed connection or open cell editor (so nogesture-endoredit-cancelfor it; an Escape anywhere in the component, on its zoom buttons or minimap too, cancels those first), not in a text field, not handled by the label editor, a filter dialog or a spreadsheet range, and not part of an input method composition. Applications clear their selection on it as onbackground-click, instead of countinggesture-startandgesture-endor watchingedit-cancelaround a wrapper element. The examples and showcases use it and no longer carry that bookkeeping. - Core:
taskViewBindings({ tasks, assignments?, dependencies?, inactiveTaskIds?, taskKind?, dependencyKind? })returns theViewBinding[]of a plan whose views show tasks and dependencies under their own IDs: each task bound to its graph node, timeline bar and row and, per assignment, the load ranges in which it uses its resource; each dependency to its graph edge and timeline dependency. It takes a schedule's tasks and the assignments ofcalculateResourceLoadand binds load throughassignmentWorkPeriods, so a load segment selects exactly the taskscalculateResourceLoadcounts in it: pauses, calendar breaks and the work outside a partial assignment'sworkOffsetandworkDurationselect nothing. Spread it with bindings of your own intouseLinkedSelection.
Changed
- The production demo (
/demo/and the production showcase) is now one linked, saving app built only on existing public APIs. The planning and lot flow views share oneuseLinkedSelection: an operation selected in the graph, the Gantt chart or the load chart is the matching lot step in the lot flow, and a step selected there is the operation in planning, across tab switches. The approval workflow and the schedule sheet have unrelated data and keep their own selection. Every tab saves through one app-wideuseEditTransactionagainst the mock server, with a save bar that shows saving, rejected, conflicting and unanswered saves, app-wide undo and redo, and a choice of the server's next answer. Adopting a plan proposal closes that proposal when its save is accepted, directly or after an unanswered save is checked with the server, and leaves a proposal opened during the save open; its list of rescheduled operations is derived from the plan it is compared with, so it follows a save that is accepted or refused meanwhile. While a save's result is unknown, nothing else is saved, undone or redone until it is checked, and the save bar of the demos (examples/components/SaveStatus.vue) offers to check it or to load the latest version but no longer to dismiss it, which could leave the app showing an older version than the server's. The mock server validates the other planner's change like any save, and the schedule sheet shows why a loaded sheet does not schedule and stays editable instead of failing. The multi-view guide says how to tie such state to its save, that saves, undo and redo must wait while a result is unknown (useEditTransactionrefuses a new save only while one is in flight), and that documents fromrefreshor the server skip the adapter'svalidate. - The scheduling guide now states how ALAP subtasks treat links from their summary: an FS or FF link limits their finish, and an SS or SF link limits the start of each subtask whose earliest start is the summary's earliest start, as in the backward pass. The behaviour is unchanged.
Fixed
scheduleTasksno longer throwsRangeError: Maximum call stack size exceededfor a summary task with more than about 100,000 links that limit its subtasks, and NetworkGraph withedgeLabelPlacementno longer throws it when a move changes that many nodes: both passed an input-sized list to a singlepush(...list)call, which now is a loop.levelResourcesno longer misses capacity shortages before time 0 for tasks with a partial assignment (workOffsetorworkDuration) when the horizon starts before 0. Such a task could stay overloaded without being listed inunresolvedTaskIds, or keep a start where a resource it needs is closed instead of moving.- GanttChart: in right-to-left charts, Safari (WebKit) drew dependency lag labels far from their dependency, beyond the start of the time axis. Each label was turned back inside the mirrored dependency layer by a CSS
scaleX(-1)about its own centre, which needstransform-box: fill-boxon SVG text, and WebKit flipped it about the layer's origin instead. The label now turns back through its owntransformattribute (a flip about its anchor, with a start anchor written astext-anchor="end"), so it covers the same span in every engine. The stylesheet no longer setstransformon.vw-gantt-lag. - GanttChart spreadsheet: Ctrl+X (Cmd+X) in Safari copied the selected cells but did not clear them. WebKit runs the copy event of
document.execCommand('copy')from a cell without a text selection yet returns false, and the chart cleared only ontrue. It now also clears when its own copy handler wrote the selection during that call. - GanttChart: Ctrl+wheel and Meta+wheel zoom (
wheelZoom) no longer drifts away from the pointer during a trackpad pinch in Safari. WebKit keeps whole-pixel scroll positions, and each of the many small wheel events started from the rounded position. While the scroller still reports the position the last wheel zoom set, at the same zoom, the next event starts from the requested (fractional) position; where scroll positions keep the fraction, nothing changes. - EventCalendar: the server-rendered week title no longer causes a hydration mismatch where the browser's ICU formats the range with another pattern than Node.js (Firefox,
ja: "2026年11月9日~15日" against "2026/11/09~2026/11/15"). The title element carries Vue'sdata-allow-mismatch="text", so hydration takes the browser's text, as it already displayed, without logging a mismatch.