Repository navigation
Releases
v1.7.1
A patch release of bug fixes found by an exploratory review of the core, the components and the test suite. No API changes.
Fixed
parseFieldValuereads adurationin larger units (unitSize) back as the exact valueformatFieldValuewrote; 31 minutes shown in hours no longer reads as 1860000.0000000002 ms. Of the values that read back that way, one insideminandmaxis preferred, so a bound such as0.29 * 100is accepted from its own text.projectTimelineRowsandprojectTimelineViewpass row summaries tocolumn.valuewhen sorting, as the search and filters already did, so summary rows sort by their rolled-up values.formatSheetTextends the text with a line break when several records end with a single empty cell, soparseSheetTextreads the empty last record back. A GanttChart copy of a column ending in an empty cell no longer pastes as one value that fills the whole selection.fromDrawioreads container cells whose parents form a cycle as top-level groups instead of returning groups whoseparentIds form a cycle.toDrawiono longer throws aURIErrorfor a multi-line node label with an unpaired surrogate, and keeps such a label whole on reading back when it holds characters XML does not allow.toMermaidandtoDrawiotreat edge marker names ofObject.prototype(such astoStringorconstructor) like other unknown markers instead of writing function text into the output.filterGraphthrowsRangeError('Unknown search field')for an unknown text-search field, assearchGraphNodesdoes, instead of silently matching nothing.routeGraphEdgeswithparallelSpacingkeeps spread orthogonal routes axis-aligned and on their box sides when the box centres differ only by a rounding error (as radial layouts produce), with and withoutavoidNodes.- Orthogonal edge ends reach circle, stadium and other flowchart outlines when the box centres differ only by a rounding error.
findOrthogonalRoutefinds a route without obstacles when the ends face away from each other or the route has to turn back, instead of returning undefined.layoutGraphIncrementallysizes the layout to include a self-loop on the right-most node.layoutForceGraphno longer draws an edge between the wrong nodes when node IDs contain a NUL character.applyRecurringEdit: an override that theseriesorfollowingscope moves now takes the ID of its new occurrence (when it had the default<seriesId>:<recurrenceId>ID), so expanded events no longer share IDs and later occurrence edits no longer throwDuplicate event ID. When another event already has that ID, or two moved overrides would take the same one (as on both sides of a daylight saving change), the override keeps its old ID (and so, in turn, may another moved override whose new ID that is); when an old ID is taken as well, by an event or by an occurrence a series generates on expansion (times that are not whole milliseconds included), the edit throwsDuplicate event ID, so neither the result nor its expansion has duplicate IDs.expandRecurrenceandexpandRecurringEventskeep the first instance of a series whose UNTIL is before its start, as documented (RFC 5545 3.8.5.3).serializeWeaveSnapshotreports keys named like built-in object properties (constructor,toString, …) indata,metadataandviewas unknown fields instead of silently dropping them.eventCalendarRange,eventCalendarDays,eventCalendarMonthGridandshiftEventCalendarDateno longer read the years 0 to 99 as 1900 to 1999.deleteTreeGridRowsno longer throws "Maximum call stack size exceeded" when a deleted row has more than about 120,000 children.toCsvwrites a number below 1e-6 in plain decimal notation (0.0000005, not5e-7), andtimelineFromCsvTablereads such a number cell in the progress column, so a timeline progress below 1e-6 reads back from its own export.timelineCsvTablecells keep their number type.useLinkedSelection.selectno longer treats a selection that repeated a target as unchanged when the new selection adds a different target of the same count.- NetworkGraph cancels a gesture in flight when the
dirprop changes the direction, not only when an inherited direction changes underdir="auto". - TaskBoard no longer moves the keyboard focus back to a moved card when the parent did not apply the move before the focus left the card, including when the parent applies the move or changes the cards and moves the focus in its
card-movehandler. EventCalendar no longer takes the focus back after a keyboard edit when theedithandler moved it to another element, also from inside a shadow root to an element outside it. - PropertyInspector
focusFieldfocuses the first control of a read-only list field that can take the focus and returns false when a field's control cannot take the focus (a read-only checkbox, select or colour field) instead of claiming success; inside a shadow root it checks the focus of that root. - EventCalendar
scrollToTime(time)scrolls to the time of day oftimewhatever its day; before, a time on another day than the first shown day scrolled whole days further, to the bottom of the grid. - PropertyInspector units and lag boxes accept decimal numbers only, like number fields; literals such as
0x10are refused instead of being read as numbers.
v1.7.0
Brings the later components closer to NetworkGraph and GanttChart: TreeGrid gains column resizing, header sorting and header filtering, EventCalendar an agenda view and working touch editing, and TaskBoard, EventCalendar and TreeGrid export to SVG and PNG. levelResources no longer slows down quadratically on long horizons, and a culled NetworkGraph re-routes only the edges a change can affect. The less-covered components get server-rendering, browser and structural accessibility tests.
Added
- TreeGrid: opt-in column resizing, header sorting and header filtering, as in GanttChart.
columnsResizable(withminColumnWidth,maxColumnWidthandvalidateColumnResize) adds a separator to the tree column header and each column header that proposescolumn-resize(TimelineColumnResize;timelineLabelColumnIdnames the tree column, accepted throughtreeColumnWidth) by pointer drag or arrow keys, orcolumn-resize-rejected.sortableColumnsandfilterableColumnsadd sort buttons (aria-sorton the header of the first rule) and filter dialogs that proposeupdate:sortandupdate:filters(v-model:sort,v-model:filters) from the controlledsortandfilters. With these options a grid without lines keeps its header, as GanttChart does, with the empty text as a row under it, so a filter that matches nothing can still be edited or cleared from its open dialog. New optionalTreeGridLabels:resizeColumn,columnResizeRejected,sortBy,sortedAscending,sortedDescending,filterBy,filtered,filterContains,filterValuesandclearFilter. Without the new props the grid renders and behaves as before. - Core:
projectTreeGridRows(input, { sort, filters })applies those proposals while keeping the hierarchy (siblings sorted within their parent, filtered rows with all their ancestors, the sparse cells of the kept rows), andtreeGridCellText(index, rowId, columnId, options?)gives the text the grid shows in a cell. The "Tree grid" example adds a cost breakdown with these header controls. - EventCalendar has an opt-in agenda view:
view: 'agenda', offered in the built-in view switch when the newviewsprop lists it (default['day', 'week', 'month'], so the toolbar is unchanged). It lists the events of the week that containsdate, or of the newagendaDays(1–366) days from it, by day: all-day entries first, then by start; multi-day events on every day they cover; recurring occurrences as passed. Entries are event buttons with the same names, selection, activation,eventslot and Left/Right day moves as the other views, Up, Down, Home and End move the focus, and the list is named by the new optional labelsagendaandagendaEditHint. The new typeEventCalendarViewName(EventCalendarView | 'agenda') names every view;EventCalendarViewstays'day' | 'week' | 'month', so existing TypeScript code compiles unchanged. Theviewandviewsprops,eventCalendarRange,eventCalendarDays,shiftEventCalendarDateand the export takeEventCalendarViewName, and the component infers fromviewandviewswhether it can show the agenda: only then doupdate:view,range-changeand theeventandtoolbarslots carryEventCalendarViewName, otherwiseEventCalendarViewas before.EventCalendarOptionshasagendaDays, whicheventCalendarRange,eventCalendarDaysandshiftEventCalendarDatefollow foragenda. - Core:
layoutCalendarAgenda(events, days)returns, for each day, the events that overlap it clipped to the day, withallDay,continuesBeforeandcontinuesAfter, in agenda order (CalendarAgendaDay,CalendarAgendaItem). - EventCalendar touch input: on empty space of a
creatablecalendar, a touch held still for half a second drags to create (the page does not scroll during that drag), and a touch within 14 px of a resizable edge of an event resizes it, so the few-pixel handles need no exact hit. Mouse input is unchanged. - TaskBoard, EventCalendar and TreeGrid expose
exportSvg(options?)andexportPng(options?)like NetworkGraph and GanttChart (TaskBoardExportOptions,EventCalendarExportOptions,TreeGridExportOptionsand theirPngvariants), with the theme colours and font in effect on the component. The board exports every column, lane and shown card; the calendar the shown day, week, month or agenda view with the whole time grid, or every day of the agenda (over the week oragendaDays, with the empty text when no day has events); the grid every displayed line and column, not only the rendered window. Core:renderTaskBoardSvg,renderEventCalendarSvg(every view,agendaincluded, with theagendaDaysoption and the optionallabels.empty; an unknown view throws aRangeError) andrenderTreeGridSvg(with optionalsortandfiltersapplied byprojectTreeGridRows,rowRangeandcolumnRange) build the same documents without a DOM. Right-to-left exports keep event times in left-to-right order at the inline start of their line, as the component's isolated time span does (the time a separate left-to-right text run, a title on the same line a right-to-left run beside it, so the order does not depend on the renderer's bidi handling), and draw TaskBoard count badges right to left like the component's count. The component methods write colours that need a stylesheet as the computed colour (an eventcolorsuch asvar(--booking-color)computed on the event's button, else on the calendar;currentColorin the board and grid colour properties), so standalone SVG and PNG files paint them as on screen, and pass the callbacks the event, card and row objects themselves; the core builders write such colours as given, likerenderGraphSvgandrenderTimelineSvg. - Core:
createGraphRouteCache()and the opt-incacheoption ofrouteGraphEdges. A call with a cache routes again only the edges whose inputs changed since the previous call with it (withavoidNodes, also those whose obstacle search a changed box can affect) and returns the same layout as a call without one. On a two-dimensional 3,000-node graph withavoidNodes, routing after one node moved took 66 ms instead of 215 ms in the benchmark. - TaskBoard: the
column-headerslot also receivescollapsed,toggle()andtoggleLabel, so a slot that replaces the header, built-in collapse toggle included, can draw its own toggle;toggle()proposesupdate:collapsedColumnIdslike the built-in one. Existing slots are unchanged. - The "Event calendar" example has an Export SVG button, like the "Task board" and "Tree grid" examples.
- Docs: Running core calculations in a Worker shows a Worker for
graphLayoutWorkerAdapterand a plain module Worker for routing,scheduleTasksandlevelResources, with what can be posted and how to drop stale results.
Changed
levelResourcesis much faster on long horizons: placing a task now reads remaining capacity and free working time only as far as that task's placement needs, instead of from its earliest start to the end of the horizon. In the benchmark ofdocs/performance.md, 3,000 tasks went from about 1 s to under 0.2 s and 10,000 tasks from about 13 s to under 1 s. Results are unchanged: the same dates, leveled tasks, delays, overloads, unresolved tasks, traces and errors.- NetworkGraph with
cullOffscreenkeeps a route cache and the culling bounds across saved layouts, so a saved change such as a drop routes and measures again only the edges it can affect. The routes, labels and markers drawn, exports, the minimap andfitare unchanged; layout and routing still cover every node and edge. WithoutcullOffscreennothing changes. - NetworkGraph no longer routes every styled edge a second time when a drag, resize or waypoint preview starts; the extent of each route now comes from the saved routing. With orthogonal edges and
avoidNodesthis removes a pause of about one full routing from the first move of a drag. The previews are unchanged. npm run bench:rendermeasures a culled graph with orthogonal edges andavoidNodes(graph-culled-avoid), andnpm run bench:corerouting after one node moved, with and without a route cache.
Fixed
- NetworkGraph and
renderGraphSvgcentre the text of plain rectangle nodes on the node height, as they already did for outline shapes. Before, the title and detail lines sat at fixed offsets made for the default height of 58, so a shorter node (for examplenodeHeight: 30) drew its text across or below its bottom edge, and a taller node drew it near the top. Output at height 58 is unchanged. - Documentation site examples: the option bars wrap whole controls onto a new line instead of breaking checkbox and button labels word by word, the Japanese linked-views and scenario graphs widen their nodes to fit the longer detail text, and the construction showcase keeps its milestone table and critical-path dates inside the panel on narrow screens.
- EventCalendar: a touch swipe that scrolls a
creatabletime grid or month no longer reportsedit-cancel(pointer-cancel) for a create it never showed, and no longer flashes a create preview; a tap still proposes an event. The click of a tap that proposes an event no longer selects the new event drawn under the finger. While a touch or pen gesture is in flight, a long press no longer opens the browser's context menu or callout. projectTimelineRowsandprojectTimelineView(GanttChart header sorting) look upsortRulesby own key only. Before, a sort on a column whose ID is anObject.prototypemember, such asconstructor,toString,valueOf,hasOwnPropertyor__proto__, took the inherited member for a registered rule wheneversortRuleswas given: the rows stayed unsorted or the call threw aTypeError.projectTreeGridRowsreads them the same way.
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.
v1.5.0
Adds an opt-in background-click event to NetworkGraph, GanttChart, TaskBoard and EventCalendar, so applications can clear a controlled selection when empty space is clicked, and the examples and showcases now clear their selection on such a click or Escape. Glyph buttons inside the components (zoom, row toggles, add and remove buttons) are drawn as SVG icons and stay centered whatever font an application gives buttons. Every change is backward compatible.
Added
- NetworkGraph, GanttChart, TaskBoard and EventCalendar emit an opt-in
background-clickwhen empty space is clicked without dragging, so applications can clear a controlled selection (the components keep none of their own). NetworkGraph reports the point in graph coordinates; GanttChart aTimelineBackgroundClick{ time, rowId? }for an empty part of the time area (not in rows where the click creates a bar); TaskBoard aTaskBoardBackgroundClick{ columnId?, laneId? }; EventCalendar anEventCalendarBackgroundClick{ time, allDay, resourceId? }when the click proposes nocreate. Nothing else changes for applications that do not listen. - The examples and showcases clear their selection when you click empty space in a graph, chart, board or calendar, or press Escape there (an Escape that cancels a drag keeps the selection).
Fixed
- The zoom-in and zoom-out buttons of NetworkGraph and GanttChart, the GanttChart row toggle and add button, the TreeGrid row actions (add below, add child, delete) and the PropertyInspector remove button draw their symbols as SVG icons, so they stay centered when an application restyles button fonts. Their accessible names are unchanged. The markup of these buttons changes from a text character to an
svgelement (vw-zoom-icon,vw-row-toggle-icon,vw-gantt-create-icon,vw-tree-grid-action-icon,vw-inspector-remove-icon); the icons usecurrentColor. - The construction showcase no longer applies its button style to the chart's own row toggles, which overlapped neighbouring rows.
v1.4.0
Adds TreeGrid, an editable tree grid and matrix, and core helpers for relation-aware graph walks, keyed graph expansion, structure diffs, row-tree projections and time bucket tables, plus entity-initiated linked selection for views of your own. The examples, showcases and API reference move to a new bilingual documentation site (English and Japanese) at https://eightkk.github.io/vue-weave/. Every change is backward compatible.
Added
TreeGrid, an opt-in controlled tree grid and matrix: a row tree against columns, with cells from column accessors (value(row)) or a sparsecellslist. Cells keep a value (including 0), known none, unknown, not applicable and not loaded apart (missingCell, cellstatus). Rows and columns are virtualized together, the focused cell stays rendered and focused outside the window, and the ARIA treegrid keys reach every cell. Children can load on demand (childStatus,expand-request, a status line). Expansion and the active cell are controlled (v-model:expanded-ids,v-model:active-cell).row-activateandcell-activatereport entities, for linking throughuseLinkedSelection().selectEntitiesandmatchTreeGridEntities. Opt-in editing proposescell-editwith typed editors (text, number, select, checkbox, date and time; IME-safe),spreadsheetproposes onesheet-editper paste, fill (Ctrl+D or the fill handle), clear or cut, androwsEditableproposesrow-create,row-deleteandrow-move(keyboard and pointer). Each proposal has a synchronous validator,-rejectedevents andedit-cancel. Core helperscreateTreeGridIndex,flattenTreeGrid,applyTreeGridEdits,insertTreeGridRow,deleteTreeGridRowsand the window and key functions, the--vw-tree-grid-*theme variables, right-to-left, forced-colors and print support, server rendering, and a "Tree grid" demo.useLinkedSelectiongainsselectEntities(entities, { source }?)andselectionSource, so views without aLinkedViewName(an application's own table or list) can start a linked selection through entity references. The selection has no owner, every view only highlights the bound targets,selectedEntitieskeeps the given entities in input order (unbound ones included, listed inunknown), and repeating the same entities from the same source is a no-op that does not callonSelect.ViewTargetandLinkedViewNameare unchanged. The linked planning demo has an external task list.- Core:
diffStructure(before, after, { key, fields?, parentKey?, equals? })compares two versions of a flat or tree-shaped keyed collection, such as two revisions of a bill of materials, a WBS or a product hierarchy. It returnsaddedkeys (in after order),removedkeys andchangeditems with each changed field'sbeforeandaftervalues, and, withparentKey, themoveditems whose parent differs (in before order).keyandparentKeytake a property name or a function. The default fields are the own properties of both items, without the key and parent properties; values compare withObject.isunless you passequals. Keys follow the shared ID rule (Duplicate item ID: a (before)); unknown parents and cycles throw an Error. It uses loops only and never changes its inputs. New types:StructureDiffOptions,StructureKeyAccessor,StructureDiff,StructureChange,StructureFieldChangeandStructureMove. - Core:
projectTimelineRows(input, state)is the row part ofprojectTimelineView, for applications that show rows in their own tree table. It applies the search and column filters (matches keep their ancestors), sorts siblings stably by sort rules or columns, and drops collapsed IDs that name no row. It returnsrows,matchedRowIds,wbs,collapsedIdsand the row diagnostics (unknown-row,unknown-column,unknown-sort-rule).barsare optional: with them, the search reads bar labels and columns receive row summaries.projectTimelineViewnow uses it, and its output is unchanged. New types:TimelineRowsInput,TimelineRowViewStateandTimelineRowsProjection. traverseGraphtakes opt-inedgeFilter(edge, direction)to follow only some relations (it is told the walk direction),maxNodesto cap the result nearest first (starts count and are always kept; with'both'the two walks advance hop by hop together and a node counts once), andpaths. With any of them the result addstruncated({ nodeId, direction, reason: 'max-hops' | 'max-nodes' }[], where a limit stopped a walk); withpaths: trueit addsvia(oneMapper walk from each reached node to its first step{ edgeId, previousId }) andmultiplyReachedIds. Without the new options results are unchanged. New types:GraphWalkDirection,GraphTraversalTruncation,GraphTraversalStep,GraphTraversalVia,GraphTracedPath.graphTracePath(result, nodeId, { direction }?)rebuilds the nodes and edges from a start to a node from atraverseGraphresult made withpaths: true, using the fewest-hops path within one walk.resolveTimeRangeTargetsanduseLinkedSelectiontimeRange.traversalaccept the newedgeFilterandmaxNodes.- Keyed graph expansion:
beginGraphExpansion,cancelGraphExpansion,mergeGraphExpansionPageandgraphExpansionViewtake an optional{ key }(GraphExpansionKeyOptions), for example'forward','backward'or a relation name, kept in the new optional state fieldsexpandedIdsByKeyandpendingIdsByKey.graphExpansionView(state, { key })returns the frontier of that key. An unkeyed merge still marks a node expanded for every key, and calls without a key behave as before. - Time bucket tables in the core:
createTimeBucketColumnsturns sorted, non-overlapping half-open periods (gaps allowed;calendarBandsdays or weeks in an IANA zone work as they are) into column descriptors{ id, label, width, start, end }with deterministic IDs, andaggregateTimeBucketsaggregates time-stamped instants or intervals (placed by start, overlap or prorated share) into one sparse cell{ rowId, columnId, value, status, count }per row and bucket, with the rulessum,count,min,max,first,last,ratio(numerator and denominator, never averaged percentages),precomputed(server values as-is) or a custom reducer, per row. Buckets outside an optionalloadedcoverage (ranges, or a function such aswindowedCoverage) areunloadedwith a null value instead of 0, loaded buckets without items areloaded-empty, andcarryForwardoptslastrows into running balances.timeBucketIndexandtimeBucketIndexRangefind buckets by binary search, so a period table can follow GanttChart'sTimelineVisibleWindow. See Time bucket tables. - Core
treeGridCellsFromTimeBuckets(cells)andtreeGridCellContentFromTimeBucket(cell, extra?)turnaggregateTimeBucketscells into TreeGrid cells: a loaded value stays a value (asumof nothing is 0), a loaded bucket without a value isnone, and buckets that are not loaded keep theirunloaded,loadingorfailedstatus instead of showing 0.
Fixed
- A server-rendered
EventCalendarhydrates without a mismatch: Node.js formats the week title (Intl.DateTimeFormat#formatRange) with thin spaces around the dash where browsers write plain spaces. Formatted dates and times in the library (theEventCalendartitle and event names,intlTimeFormatter,calendarZoomPresetsand locale-awarecalendarBandslabels) now write thin, narrow no-break and no-break spaces (U+2009, U+202F, U+00A0) as plain spaces, so the server and the browser render the same text. The default English output is unchanged apart from those spaces. - Documentation: types and placeholders with angle brackets in
docs/(such asReadonlySet<string>orEdit <column> for <row>) are in code spans, so GitHub and npm show them instead of dropping them as HTML tags.
Demo
- New "Tree grid" demo: about 3,000 products against 30 columns with editing, spreadsheet operations, row structure editing, a lazily loaded group, undo and redo, linked to a NetworkGraph through
selectEntities. - New "Period table" demo: a TreeGrid of sites, items and measures against day or week columns (
calendarBands,createTimeBucketColumns,aggregateTimeBucketswithsum,last+carryForward,minandratio). Days that are not loaded show their load state, never 0, and a mid-week shortage is marked inside a positive week. Columns follow a GanttChart's visible window (timeBucketIndexRange), demand cells are editable with undo, and selecting a cell highlights the orders that feed it. - The example gallery (
gallery.html) is retired: every example and showcase is on the documentation site, andgallery.htmlforwards old links (?demo=<id>,#<id>) to the matching page, or to the example index. The production demo links to the example index. - The Calendar views showcase marks Ascension Day (Berlin) and Corpus Christi (Lisbon) instead of a Labour Day closure, whose header label was drawn over the Golden Week label.
- A new design gallery showcase, BOM editor: a multi-level bill of materials with shared subassemblies, edited in
TreeGridand linked to an item graph, with where-used walks (traverseGraphwithedgeFilter,maxNodesandgraphTracePath), a revision comparison withdiffStructure, search withprojectTimelineRowsand a quantity rollup.
Documentation
- A documentation website built with VitePress, in English with a Japanese version under
/ja/: getting started, an examples index by category with a page per example (live demo, source code tabs, related API), a showcase gallery, and an API reference whose pages are built fromdocs/*.md(overviews in both languages, detail tables in English) plus a type reference generated with TypeDoc for both entry points. Every example and showcase shows its own text and the ...
v1.3.0
Adds recurring events, automatic edge label placement, GanttChart header sorting and filtering, PropertyInspector assignment and dependency fields, TaskBoard collapse, filters and WIP minimums, and an opt-in CSV formula escape. It also fixes the findings of a full review of the components, the core and the interchange (including imports that a small hostile file could stall for seconds), and refactors large parts of GanttChart, NetworkGraph and the core without changing their results. A few changes are not strictly backward compatible: they are listed under "Breaking changes" and marked Behaviour change under "Fixed"; read them before upgrading.
Breaking changes
resourceLoadHistogramnow throws aRangeError, not anError, for load segments that overlap within a resource, like its other checks of times, load and capacity (an unknown resource still throws anError). GanttChart reports overlappingloadSegmentsthroughvalidation-errorwith the sameRangeError. Who is affected: code that tells this failure apart by its class, for exampleerror.constructor === Erroror!(error instanceof RangeError). What to do: check forRangeError; the message is unchanged.
Added
- Recurring events (RFC 5545 RRULE), opt-in: new core functions
parseRecurrenceRule,formatRecurrenceRule,expandRecurrence,expandRecurringEventsandapplyRecurringEditwith the typesRecurrenceFrequency,RecurrenceWeekday,RecurrenceRule,RecurrenceZoneOptions,CalendarRecurrence,RecurrenceSeries,RecurrenceOccurrence,RecurrenceExpandOptions,RecurringEditScope,RecurringEditTarget,RecurringEditChangeandRecurringEditOptions. DAILY, WEEKLY, MONTHLY and YEARLY rules with INTERVAL, COUNT, UNTIL, BYDAY (with ordinals), BYMONTHDAY, BYMONTH, BYSETPOS and WKST, plus EXDATE and RDATE, expand in an IANA time zone or fixed offset and keep their local time across daylight-saving changes; sub-daily frequencies, BYHOUR, BYMINUTE, BYSECOND, BYYEARDAY and BYWEEKNO are rejected.CalendarEventgains the optionalrecurrence,seriesIdandrecurrenceId,EventCalendarEditthe optionaloccurrence, andEventCalendarLabelsthe optionalrecurring; EventCalendar names occurrences "…, Recurring" and marks them withvw-is-recurring, while events without these fields render as before.applyRecurringEditapplies an edit to one occurrence (override or EXDATE), to it and the following ones (split series) or to the whole series.fromICalendartakesrecurrence: 'series'(parsed rule, EXDATEs, RDATEs and RECURRENCE-ID overrides) orrecurrence: { range }(expanded occurrences, new typeICalendarExpandOptions); the default is unchanged.toICalendarwrites RRULE, EXDATE and RDATE for events withrecurrence, with TZID times and a VTIMEZONE for an IANA zone. The "Event calendar" demo has a weekly sync with a choice of edit scope. TaskBoard(opt-in, controlled): collapsible columns and lanes (collapsible,v-model:collapsed-column-ids,v-model:collapsed-lane-ids; collapsed areas render a narrow strip or only a header, are skipped by the keyboard and are not drop targets), afilterprop with "3 of 7" column counts (moves keep indices that count hidden cards, soapplyBoardCardMoveon the full array is right), andTaskBoardColumn.wipMinmarking columns under a minimum (vw-is-under-minimum).groupBoardCardstakes{ filter };TaskBoardCellgainsindicesandtotal,TaskBoardColumnStatusgainstotal,wipMinandunderMinimum(these new fields are required, so code that buildsTaskBoardCellorTaskBoardColumnStatusobjects by hand, for example in test doubles, must add them; values fromgroupBoardCardsalready have them), andTaskBoardLabelsgainswipMin,underMinimum,collapseandexpand. New CSS variables--vw-board-wip-under,--vw-board-collapsed-widthand--vw-board-collapsed-fill. The "Task board" demo shows them. Without the new props nothing changes.- NetworkGraph
edgeLabelPlacementprop (opt-in, default'midpoint', which keeps the current output):'avoid'or an options object moves edge labels along and beside their routes, away from node boxes, other labels and other edges where there is space. It runs after all routing,avoidNodesincluded; drag and resize previews place the labels of the changed edges and those near the changed nodes, and exportSvg and exportPng draw the placed labels. The diagram styles demo has a "Place labels clear" toggle. - Core
placeGraphEdgeLabels(layout, edges, options)withGraphEdgeLabelPlacementOptions(fontSize,glyphWidth,labelSize,labelText,gap,margin,samples,edgeIds,obstacles),GraphEdgeLabelSizeandGraphEdgeLabelPlacement: a deterministic greedy label placement that returns a new layout and keeps theedgeLabelsanchor meaning (centre and baseline of the text). - GanttChart header sorting and filtering, opt-in:
sortableColumns(true or column IDs,timelineLabelColumnIdfor the row label column) adds a sort button to each header ("Sort by Finish") that cycles that column's rule through ascending, descending and none, keeping the other rules, and proposes the sort throughupdate:sort; the button name carries the controlledsort("Sort by Finish (ascending)").filterableColumnsadds a filter button that opens a small dialog with a text filter (and a value list for aselectfield), proposingupdate:filtersfor the controlledfiltersprop; Escape closes it and returns focus. The chart never reorders or filters rows; apply the proposals withuseTimelineView(newsetFilters). NewGanttLabelsentriessortBy,sortedAscending,sortedDescending,filterBy,filtered,filterContains,filterValuesandclearFilter. Without the new props the markup is unchanged. - Timeline views:
TimelineViewState.filters(TimelineViewFilter:columnId, optionaltextandvalues), optional so states saved without filters still parse;projectTimelineViewkeeps the ancestors of filtered rows and sorts or filters by row label fortimelineLabelColumnId. New core helpersfilterTimelineRows(rows, predicate)(matches with their ancestors) andnextTimelineSort(sort, columnId). - PropertyInspector list fields, opt-in:
assignments(resource select, units, add and remove) anddependencies(predecessor, FS/SS/FF/SF type, lag, add and remove) tables infields, with accessible names such as "Units for Crane" and "Remove Crane". Each edit proposes the whole list through the newlist-changeevent, checked by the new corevalidateInspectorListand a synchronousvalidateListChange(list-change-rejected, reason shown inline). New typesInspectorListFieldKind,InspectorOption,InspectorAssignment,InspectorDependency,InspectorAssignmentsField,InspectorDependenciesField,InspectorListField,InspectorListChangeandInspectorListChangeValidator, and optionalPropertyInspectorLabelsentries for the table.changeandInspectorChangeare unchanged. toCsv(table, { escapeFormulas: true })(opt-in, new typeCsvOptions) writes text cells that start with=,+,-,@, a tab or a carriage return with a leading apostrophe, so spreadsheets do not run them as formulas. Number cells are unchanged, and without the option the output is the same as before.GraphEdgeLabelPlacementOptions.edgeWidth(edge), opt-in: the drawn width of wide edges such as flow bands, so a label keeps itsgapfrom the outer side of its band and other labels stay off the band. NetworkGraph passes theedgeBandswidths whenedgeLabelPlacementis on.labelSizeandedgeWidthmay returnnullas well as nothing.
Fixed
fromDrawioandfromDrawioAsyncread deeply nested containers in linear time (20,000 levels took about 36 seconds, now under half a second) and collect the label cells of edges in linear time; label cells now count againstmaxItemslike nodes, edges and groups, so a file with more thanmaxItemsitems including its label cells now throws a RangeError.toDrawiowrites a node label that has a line break also asvwLabelin the style, sofromDrawioreads it back whole instead of splitting it into label and detail. Files withoutvwLabelare read as before.timelineFromCsvTablebuilds WBS ancestors and the row order without quadratic work (a 20,000-level code in about 40 KB took about 10 seconds) and throws a RangeError for a WBS code of more than 1,000 levels.toMsProjectXmlwrites carriage returns in project, task, calendar and resource names as , so they survive a round trip instead of being read as line feeds.- Character references in draw.io HTML labels and Mermaid entity codes are decoded only for characters XML allows, as in the XML reader: references to C0 controls (other than tab and line breaks), U+FFFE and U+FFFF stay as written.
toMermaiddrops those characters and unpaired surrogates from labels, as the XML writers do. - SVG export theme colours must be CSS colour values (hex, colour names and keywords, and the functions
rgb,rgba,hsl,hsla,hwb,lab,lch,oklab,oklch,color,color-mix,light-dark,varandcalc), so a theme cannot put aurl()reference into the exported image. Behaviour change: other values, which were written into the SVG unchecked before, now throw a RangeError naming the key; the colours the components read from the stylesheet are not affected. - Behaviour change: the exposed TaskBoard
cancelMove()now reportscard-move-cancelwith the new reasonapi(added toTaskBoardMoveCancelReason), like EventCalendar'scancelEdit(); it reportedescapebefore. Code that switches on the reason should handleapi. - TaskBoard: with a
filteron, the arrow keys moved the focus to the wrong card, because the index counted hidden cards. Collapsed column and lane IDs are now compared by v...
v1.2.0
Adds a kanban board, an event calendar, diagram editor parts, BPMN and flowchart shapes with pools, earned value management and Mermaid, GraphML and draw.io interchange. All changes are additive; nothing from 1.1.0 changes or is removed.
Added
- Earned value management:
computeEarnedValue(tasks, options)returns PV, EV, AC, SV, CV, SPI, CPI, ETC, EAC, VAC, TCPI and percent complete per task and in total at a status date, with planned value accrued over a work calendar (or linearly), milestones at their start, three EAC methods (cpi,cpi-spi,budget), undefined instead of NaN or Infinity for zero denominators, and an optional cumulative PV/EV/AC series for S-curves (EV and AC from per-taskhistoryrecords).rollupEarnedValuesums any group, such as a summary row. New exports:computeEarnedValue,rollupEarnedValue,maxEarnedValuePointsand theEarnedValue*types. New Earned value demo. See Earned value management. - New opt-in
TaskBoardcomponent (kanban): cards in status columns, optionally split into swimlanes, with card counts and WIP-limit warnings. It is controlled like the other components: pointer, touch and keyboard moves (Space to pick up, arrows, Space or Enter to drop, Escape to cancel, with live announcements) proposecard-move,validateCardMovecan reject it (card-move-rejected), and cancelled moves reportcard-move-cancel;v-model:selected-id,card-activate,labels,dirand thecard,column-headerandemptyslots. New public typesTaskBoardComponentandTaskBoardExposed. New core helpersgroupBoardCards,boardCardPositionandapplyBoardCardMovewith theTaskBoard*types, and the CSS variables--vw-board-column-width,--vw-board-cell-min-height,--vw-board-wip-warningand--vw-board-drop. A new "Task board" demo shares tasks and selection with a GanttChart. Nothing existing changes. - Added two diagram editor parts to the Vue entry, both controlled and opt-in:
GraphPalette, a listbox of node templates (optional sections and filter box, shape previews) that are HTML5-draggable with a JSON payload undergraphPaletteMimeTypeand emitinserton Enter or Space, withreadPaletteDrop(drop)to read a NetworkGraph or GanttChart drop back; andPropertyInspector, a form generated from typed field definitions (InspectorField: theTimelineFieldSpecrules pluslabel,readonlyand acolorkind) that emitschangeproposals checked by a synchronousvalidateChange, shows rejection reasons inline (change-rejected), has afield-<id>slot per field and drops drafts when the item or the edited value changes. New typesGraphPaletteItem,GraphPaletteLabels,GraphPaletteDrop,PaletteDropSource,InspectorItem,InspectorField,InspectorFieldKind,InspectorChange,InspectorChangeValidator,PropertyInspectorLabels,PropertyInspectorFieldSlot,GraphPaletteComponent,GraphPaletteExposed,PropertyInspectorComponentandPropertyInspectorExposed, and CSS variables--vw-palette-preview-widthand--vw-inspector-error. The gallery has a new "Diagram editor" demo. Nothing existing changes. - NetworkGraph and
renderGraphSvg: opt-in flowchart and BPMN node shapes (NetworkFlowchartShape, part ofNetworkNodeShape):circle,stadium,parallelogram,document,cylinderanddata-object, with edge ends on their outlines (also for orthogonal routes) and the same drawing in exportSvg and exportPng. Unknown shapes still draw a box. - NetworkGraph and
renderGraphSvg: opt-in BPMN node decorations:NetworkNode.event(start,intermediatewith a double border,endwith a thick border),NetworkNode.marker(NetworkNodeMarker: the gateway symbolsexclusive,parallel,inclusiveandevent-based, the event symbolsmessageandtimer, and the task typesuser,serviceandmanual; decorative andaria-hidden) andNetworkNode.labelPosition: 'below'(NetworkNodeLabelPosition) for labels under small shapes. Accessible names stay the label and detail. GraphEdge.dasheddraws an edge with a static dash pattern (classvw-is-dashed), and the new edge marker'hollow-arrow'is a triangle filled with the graph background, for BPMN message flows ({ dashed: true, markerStart: 'circle', markerEnd: 'hollow-arrow' }).collapseGraphGroupskeepsdashedon merged edges when they agree.layoutSwimlaneGraph: opt-inpools(GraphSwimlanePoolSpec),poolHeaderSizeandpoolGapoptions and apoolsresult (GraphSwimlanePool) for BPMN participants around consecutive lanes; NetworkGraph has apoolsprop (GraphSwimlanePoolBand) that draws each pool as a named group with a rotated title around its lanes, andrenderGraphSvgapoolsoption. New CSS variables--vw-pool-fill,--vw-pool-header-filland--vw-pool-border. Without pools the layout result and markup are unchanged.EventCalendar: a new controlled component for appointment-style scheduling, with day, week and month views, an all-day row, an optional per-resource day view (resources), a now line, a built-in toolbar andevent/toolbarslots. Pointer and keyboard moves and resizes emitedit(EventCalendarEdit, withresourcefor a column change), drags over empty time emitcreatewhencreatableis set, both checked by synchronousvalidateEditandvalidateCreate(edit-rejected,create-rejected);v-model:view,v-model:dateandv-model:selected-id,event-activate,range-changeandedit-cancelcomplete it. New core helperseventCalendarRange,eventCalendarDays,eventCalendarMonthGrid,shiftEventCalendarDate,eventCalendarTimeOfDay,eventCalendarTimeAt,layoutCalendarDayEvents,packCalendarEventLanesandvalidateCalendarEvents, theEventCalendarComponentandEventCalendarExposedtypes,vw-calendar-*classes and the--vw-calendar-gutter,--vw-calendar-todayand--vw-calendar-event-accenttheme variables. Additive; nothing existing changes.- Graph interchange (core):
toMermaidandfromMermaid(Mermaid flowcharts with shapes, subgraphs as nested groups, chains,&lists, every link form and edge labels; IDs Mermaid cannot hold are encoded and decoded),toGraphMlandfromGraphMl(own keys for labels, details, shapes, tones, positions, sizes, markers and waypoints, nested graphs as groups, yEd labels, geometry, shapes and arrows), andtoDrawio,fromDrawioandfromDrawioAsync(uncompressedmxfileexport with container groups; import of uncompressed and, asynchronously, compressed pages, chosen by index or name). The readers return the NetworkGraph props withwarnings(GraphInterchangeImport), never expand XML entities and bound their work withmaxItemsandmaxInflatedLength. Shapes and markers are mapped through one table per format; unknown shapes become boxes with a warning. See Graph interchange. The demo gallery has a "Diagram import/export" example.
Demo
- The demo homepage now opens in English regardless of the browser language; add
?lang=jato the URL to open it in Japanese. The language buttons work as before. - Widened the approval workflow demo so the branch amount labels no longer run into the step boxes.
- A BPMN process example (a purchase order between a Customer pool and a Supplier pool with Sales and Warehouse lanes) and a small flowchart.
Development
VW_PORTsets the port of the demo server and the Playwright browser tests (default 4173), so two checkouts can run browser tests at once.- The public API baseline (
api/public-api.md) also records the props, events, slots and exposed members of the new components.
v1.1.0
Adds spreadsheet editing to GanttChart. All changes are additive; nothing from 1.0.0 changes or is removed.
- Added opt-in spreadsheet editing on GanttChart (
spreadsheet): rectangular selection, copy, cut and paste as tab-separated text, Delete to clear, fill down with Ctrl/Cmd+D or a pointer and touch fill handle, typing to edit and spreadsheet navigation keys. Each operation is onesheet-editproposal (TimelineSheetEdit, actionspaste,fillandclear), checked as a whole by the newvalidateSheetEditprop and reported bysheet-edit-rejected(reason, change?). New optionalGanttLabelsfieldssheetHint,sheetReadOnly,sheetRagged,sheetOutsideandsheetRejectedlocalize the texts. - Added core helpers
parseSheetText,formatSheetTextandapplyTimelineSheetEdit(with the typesTimelineSheetChangesandTimelineSheetAppliers). - Added an auto-scheduled project plan sheet and an approval workflow editor to the bilingual demo homepage.
v1.0.0
This is the first stable release. From here on the package follows SemVer as defined in Compatibility and versioning, and it is published on npm as @eightkk/vue-weave (npm install @eightkk/vue-weave). The changes below fix data-correctness and compatibility problems found in the pre-release review; the ones that change results or types are listed under "Breaking changes", each with who is affected and what to do.
Breaking changes
- The package name is now
@eightkk/vue-weave(wasvue-weave), because npm does not accept the unscoped name. The entries are@eightkk/vue-weave,@eightkk/vue-weave/core,@eightkk/vue-weave/style.cssand@eightkk/vue-weave/package.json, and the release tarball iseightkk-vue-weave-<version>.tgz. Who is affected: everyone who installed an earlier tarball. What to do: install@eightkk/vue-weave, removevue-weave, and replace'vue-weave'with'@eightkk/vue-weave'in imports (also/coreand/style.css). The exports, types and behaviour of each entry are otherwise as described below. fromICalendarnow resolves aTZIDlocal time that a daylight-saving change skips as RFC 5545 section 3.3.5 requires: with the UTC offset in effect before the change.DTSTART;TZID=America/New_York:20070311T023000is now 07:30 UTC (local 03:30) instead of 07:00 UTC. This applies to DTSTART, DTEND and the end of a day or weekDURATION. A repeated local time still takes its first occurrence. Who is affected: anyone who imports.icsfiles withTZIDtimes that fall in a skipped hour; re-importing such a file gives a start or end up to one gap length (usually one hour) later than 0.6.0 did, so events imported with 0.6 and re-imported with 1.0 can differ. What to do: re-import those files if you stored 0.6.0 results and need the RFC times.buildWorkPeriods, calendar bands and editing keep moving a skipped time to the change itself.toICalendarwrites UTC and is unaffected.comparePlansnow throws when a given successfulresultdoes not match the task set of itsinput: an active task is missing or listed twice, orinactiveTaskIdsdoes not list exactly the inactive tasks (subtasks of an inactive summary included). A result calculated before a task was added, removed or (de)activated used to be compared as a complete plan, with the new taskunscheduledand a stale finish. Who is affected: callers who pass a precomputedresultthat does not exactly match the input (stored, cached or hand-built results). What to do: recalculate the result whenever its input changes, or omitresultand letcomparePlanscalculate it. Only task sets are checked; a result for an earlier version of the same tasks (a changed duration, say) is still not detected, so keep a shared revision if you store results separately from their input.parseFieldValuewith aselectspec that hasmultiple: truenow always returns an array, also for a single entry ('a'→['a'], was'a'). GanttChart's built-in field input therefore proposes arrays for such columns. Who is affected: code readingfield-editafterorparseFieldValueresults for multiple selects. What to do: expect an array.formatFieldValuefor atimefield withtimeZonenow appends the offset to a wall time that occurs twice (for example2026-11-01 01:30 -05:00inAmerica/New_York), so the text parses back to the same instant. Who is affected: code that displays, compares or parses this text itself. What to do: accept the±HH:MMsuffix.- GanttChart row heading text (
vw-row-content) is now a focusablerole="button", named by its content, with one Tab stop for the heading column (see "Added"). Who is affected: tests that look up buttons with loose or regular-expression names (for examplegetByRole('button', { name: /^Task/ })), which can now also match a heading. What to do: use exact names, or exclude the heading. setWindowedView,retryWindowedDataandwindowedCoveragenow throwRangeErrorfor a window whose chunk indices are not safe integers (finite times too far fromoriginforchunkSize), instead of looping without end.setWindowedViewalso throwsRangeErrorwhen the chunk boundariesorigin + k·chunkSizeof the view are not distinct finite numbers, andwindowedCoveragethrows when the window's cell count exceedsNumber.MAX_SAFE_INTEGER.useWindowedDatareports these views througherror. Who is affected: only views with extreme ranges or origins, which previously hung. What to do: use a largerchunkSizeor anorigincloser to the window.- Types only:
ScheduleGraph(returned byscheduleToGraph) now typesnodesasNetworkNode<ScheduleGraphNodeData>[]andedgesasGraphEdge<ScheduleGraphEdgeData>[], so node and edgedata(critical flag, early dates, lag) can be read without casts. The arrays still assign toNetworkNode[]andGraphEdge[]. Who is affected: code that pushes items with other data intograph.nodesorgraph.edges. What to do: copy the arrays into your ownNetworkNode[]/GraphEdge[]first.
Added
- GanttChart rows can be activated from the keyboard. Enter or Space on a row heading emits
target-activatewith sourcekeyboard. ArrowUp, ArrowDown, Home and End move between headings, through a single roving tab stop. Controls inside arowslot keep their own keys.
Fixed
- The type declarations of
useTimelineView(state) anduseEditTransaction(historyReset) no longer use the two-argumentShallowRef<T, T>, which Vue 3.5.0 does not declare, so strict TypeScript projects on the minimum supported Vue (^3.5.0) no longer fail with TS2707. - GanttChart cell inputs (plain and typed) and the Escape handling around
cell-editorleave Enter and Escape of an input method composition (isComposingor keyCode 229) to the input method. Confirming a Japanese conversion no longer commits the half-typed text or resets the input; a later Enter commits. The built-in inputs also keep the typed text, composed or not, as a draft across re-renders (new bars, row height and other prop changes used to reset it to the source value); a commit, Escape or new source text for that cell ends the draft. - Committing unedited text in a typed field cell, or
commit(value)with the current value, ends the edit with nofield-editand no validation. Values whose text did not parse back no longer produce changes. parseFieldValuereadsselectlabels as well as values, so the textformatFieldValueshows can be committed again. Duplicate labels are rejected as ambiguous with achoiceerror and formatted as values. In multiple selects, an entry that contains a comma or a double quote, or starts or ends with whitespace, is written in double quotes with inner quotes doubled (as in CSV), and the parser splits only at unquoted commas, so every valid selection parses back to the same array (Cut, weldis two entries,"Cut, weld"one). A choice with an empty label is written by its value in a single select. A choice set in which some choice has no text that names it (its label and its value both read as other choices, or values such as1and'1'with the same text) makesformatFieldValueandparseFieldValuethrow anError, instead of reading a valid value back as another one; give that choice a label of its own.- Time fields with
timeZoneround-trip repeated wall times: format then parse gives back the same instant. Typed text without an offset still resolves to the earlier occurrence. useAsyncGraphLayoutnow holds the results and failures of the frame being computed apart from its reuse cache. WithcacheSize: 0or1a frame no longer re-requests the same layouts forever without being shown. A failed request is no longer silently repeated when its other scope succeeds, sodisplay.source === 'layout'no longer appears next to a staleerror. A failed frame is requested again when the input changes.cacheSizenow only sets how many layouts are kept for reuse by later inputs.graphLayoutWorkerAdapterrejects a response whoserequestIdandinputKeymatch but whosescopediffers. It removes itsmessageand abort listeners however a request ends, including when posting the request to the Worker throws (the request then rejects with that error) and when the cancel message cannot be posted.setWindowedViewno longer walks every chunk of the time range for a view with an emptyrowIds; such a view requests nothing.windowedCoverageno longer counts unloaded cells one at a time. It computestotalfrom the chunk and row counts and counts only the recorded cells, so checking a whole plan over a wide range stays cheap.useWindowedDatano longer throws when the first read ofconditionfails (a getter that throws, or a value that is not a string), including during server rendering. That failure, and avieworconditiongetter that throws later, which the watcher used to swallow, is reported througherror, and the view is requested again once the value is valid.parseWeaveSnapshotandrestoreWeaveSnapshotof timeline snapshots, andprojectTimelineViewwithoutlaneCount, no longer throwRangeError: Maximum call stack size exceededfor timelines with very many bars (for example 200,000). GanttChart'sfitToBars, NetworkGraph's collapsed-group moves, group frames and actuals diagnostics append large lists with loops for the same reason.
Documentation
docs/api.mdadds "Compatibility and versioning", which defines what 1.x SemVer covers (exported names and types, component props, events, slots and exposed methods, documented--vw-*custom properties, the snapshot format) and what it does not (exact error message texts, emittedvw-classes, DOM structure and server-rendered markup). Error message formats are documented as current behaviou...
v0.6.0
This is a minor release because of the changes under "Breaking changes": error messages of input checks are unified, an ID must be a non-empty string everywhere, layoutGridGraph has a new default columnGap, and graphRectsIntersect no longer counts touching rectangles. Each entry below says who is affected and what to change.
Breaking changes
- Graph layouts: every built-in layout (layered, tree, radial, circular, grid, concentric, swimlane, force, flow and incremental) now reports an invalid numeric option in one format that names the option, the rule and the value:
RangeError('<option> must be <rule> (got <value>)'), with the rulesa finite number > 0,a finite number ≥ 0,a finite number,an integer ≥ 1,a finite number in [0, 1]anda safe integer. Before, the texts varied, for examplecolumnGap must be finite and positive (spacing may be zero),rowGap must be finite and nonnegative (node sizes positive),nodeWidth and nodeHeight must be finite and positiveorcrossingSweeps must be a positive integer; nowcolumnGap must be a finite number ≥ 0 (got -1)andcrossingSweeps must be an integer ≥ 1 (got 0). The error class (RangeError) and the accepted values are unchanged. What to do: update code or tests that match these messages. layoutGridGraph: the defaultcolumnGapis 50 (was 40), the default of every other layout, so a grid without an explicitcolumnGapis 10 units wider per column gap. What to do: passcolumnGap: 40to keep the earlier geometry.layoutLayeredGraph: same-rank edges (inside a cycle) and self-loops turnmin(24, max(6, columnGap / 2))units past the box, as in the tree and swimlane layouts (wasmin(24, columnGap / 2)). Only acolumnGapbelow 12 changes the drawing: the turn stays 6 units out instead of shrinking towards the box, and the layout can grow by up to 6 units along the flow when such an edge leaves the last rank. What to do: nothing, unless you compare paths of such layouts exactly.graphRectsIntersect(a, b): rectangles that only touch, along an edge or at a corner, no longer intersect; the test now uses open intervals (a.x < b.x + b.width && b.x < a.x + a.width, and the same for y), compared exactly. A zero-size rectangle intersects a rectangle whose interior it passes through, not one whose border it lies on.cullGraphElements(and socullOffscreen) still keeps elements whose bounds touch the view, because their strokes can still draw into it. What to do: if you need touching rectangles to count, testa.x <= b.x + b.width && b.x <= a.x + a.width(and y) yourself.GraphTreeLayoutOptions,GraphSwimlaneLayoutOptionsandGraphIncrementalLayoutOptionsnow extendGraphLayoutOptionsinstead of declaringdirection,nodeWidth,nodeHeight,columnGap,rowGapandpaddingthemselves. Names, types and optionality are unchanged, so every existing object literal still type-checks; code that augments one of these interfaces with a conflicting declaration of a shared field must now matchGraphLayoutOptions.- One ID rule and one set of error texts for the planning, timeline and data core (see Validation and errors). An ID must be a non-empty string, unique within its collection; any other value is invalid and throws an
Error. Values that the looser check!idlet through now throwInvalid <kind> ID: <value>: numbers other than 0 (such as5),trueand objects as task, dependency and calendar IDs inscheduleTasks,propagateEdit,rescheduleFromStatusDate,levelResources(also resource IDs) and the snapshot functions that run the scheduler; task and resource IDs incalculateResourceLoad; row, bar and dependency IDs invalidateTimelineData(and so GanttChart'svalidation-error,renderTimelineSvgand snapshots); marker and load row IDs inrenderTimelineSvg.scheduleToGraph, which only checked dependency IDs for duplicates, now rejects every invalid one,''andundefinedincluded.createTimelineRowTree, and with ittimelineWbsCodes,moveTimelineRow,indentTimelineRow,outdentTimelineRow,timelineRowPosition,timelineCsvTableandrenderTimelineSvg, now also rejects the row IDs0,nullandundefinedand numbers.buildPlacementInputrejects an assignment whoseresourceIdis not a non-empty string (Unknown resource in assignment: <value>). Anullentry in the tasks, dependencies or calendars ofscheduleTasks, or in the tasks or resources ofcalculateResourceLoadand the resources oflevelResources, throwsInvalid <kind> ID: undefinedinstead of aTypeError. The interchange, windowed data and snapshot checks already used the strict rule; only their texts change. - Invalid and duplicate IDs have separate messages everywhere,
Invalid <kind> ID: <value>andDuplicate <kind> ID: <id>, where several functions saidInvalid or duplicate …. For exampleInvalid or duplicate task ID: a→Duplicate task ID: a;Invalid or duplicate schedule dependency: d1→Duplicate dependency ID: d1,Invalid dependency ID: 5or, for an unknownfromorto,Unknown dependency endpoint: d1(asbuildPlacementInput,projectResourceTimeline,validateTimelineDataandscheduleToGraphalready said);Invalid or duplicate resource: r→Duplicate resource ID: r;Invalid or duplicate workload task: a→Duplicate task ID: a;Invalid or duplicate row IDs→Duplicate row ID: r1;Invalid baseline set ID on bar: x→Invalid baseline set ID: "" (bar x);Duplicate baseline set p on bar x→Duplicate baseline set ID: p (bar x);Duplicate baseline set ID in baselineIds: p→Duplicate baseline set ID: p (baselineIds);Invalid or repeated baseline set ID for baseline 1: b→Invalid baseline set ID: b (baseline 1)orDuplicate baseline set ID: b (baseline 1);Windowed data items need a non-empty string ID→Invalid windowed data item ID: undefined;Duplicate item ID in one response: i→Duplicate windowed data item ID: i (in one response). Snapshot diagnostics for an invalid ID sayInvalid <kind> ID: <value>instead ofMust be a nonempty string. An empty ID now shows as""in messages. - Assignments are checked by one shared checker in
calculateResourceLoad,levelResources,buildPlacementInput,projectResourceTimeline,toMsProjectXml,resourceLoadFromMsProjectandcomparePlans(andproposeResourceAssignmentfor duplicates in its state), with the same texts:Unknown resource in assignment: <id>,Unknown task in assignment: <id>(with theoptions.inactiveTaskIdshint only fromcalculateResourceLoad) andDuplicate assignment of task <task> to resource <resource>, which replacesDuplicate resource assignment for task: <task>(and…: <task>, <resource>) andUnknown task or resource in assignment: <task>, <resource>. The duplicate check keys pairs by nested maps, so IDs that contain separator characters never collide. renderTimelineSvgthrows anError(not aRangeError) for an invalid or duplicate marker ID:Invalid marker ID: <value>orDuplicate marker ID: <id>; a marker time that is not finite is stillRangeError: Invalid timeline marker: <id>. GanttChart's marker prop check now says the same (see the component bullets below).- If you match on error messages: replace
/Invalid or duplicate/and/duplicate …/patterns with the separateInvalid <kind> ID:andDuplicate <kind> ID:texts (note the capital D),Invalid or duplicate schedule dependencywithInvalid dependency ID,Duplicate dependency IDorUnknown dependency endpoint, andDuplicate resource assignment for taskandUnknown task or resourcewith the assignment texts above. Better, match on the error class and the ID rather than the full text. - GanttChart and NetworkGraph prop checks follow the same rule as the core: a RangeError for invalid numbers and geometry and for an unknown value of a string option, an Error for bad references, invalid or duplicate IDs and cycles; GanttChart's own ID checks use the strict ID rule and the
Invalid <kind> IDandDuplicate <kind> IDtexts (see Validation and errors). How each error is surfaced (GanttChart'svalidation-errorplus the rethrow, NetworkGraph's throw while rendering), the order of the checks and the rendering of valid props are unchanged. - GanttChart, error class: overlapping, empty or non-finite
headerBands(also those of a zoom preset) are a RangeError (was Error), with the same textTimeline bands must be finite, ordered and nonoverlapping; a marker whosetimeis not finite isRangeError: Invalid timeline marker: <id>(was Error, same text); a column whosewidthis not finite and positive isRangeError: Invalid timeline column width: <id>(wasError: Invalid timeline column: <id>). These are the class and textrenderTimelineSvguses. - GanttChart, ID texts: invalid and duplicate IDs have separate messages.
Invalid or duplicate load row ID: l→Duplicate load row ID: l;Invalid or duplicate zoom preset: p→Duplicate zoom preset ID: p;Invalid timeline column: c(for an ID) →Duplicate column ID: c;Invalid timeline marker: m(for an ID) →Duplicate marker ID: m; an empty ID givesInvalid load row ID: "",Invalid zoom preset ID: "",Invalid column ID: ""orInvalid marker ID: "". All stay Error. - GanttChart, inputs that are now rejected: a marker, column, zoom preset or load row ID that is not a string (such as
3ortrue), which the looser!idcheck accepted and rendered, is now reported throughvalidation-error(Invalid marker ID: 3); anullentry inloadRowsgivesInvalid load row ID: undefinedinstead of a TypeError. What to do: pass string IDs, for exampleString(id). - NetworkGraph, error cla...