Skip to content

Releases

v1.7.1

Choose a tag to compare

@EightKK EightKK released this 26 Nov 13:54
186f8f3

A patch release of bug fixes found by an exploratory review of the core, the components and the test suite. No API changes.

Fixed

  • parseFieldValue reads a duration in larger units (unitSize) back as the exact value formatFieldValue wrote; 31 minutes shown in hours no longer reads as 1860000.0000000002 ms. Of the values that read back that way, one inside min and max is preferred, so a bound such as 0.29 * 100 is accepted from its own text.
  • projectTimelineRows and projectTimelineView pass row summaries to column.value when sorting, as the search and filters already did, so summary rows sort by their rolled-up values.
  • formatSheetText ends the text with a line break when several records end with a single empty cell, so parseSheetText reads 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.
  • fromDrawio reads container cells whose parents form a cycle as top-level groups instead of returning groups whose parentIds form a cycle.
  • toDrawio no longer throws a URIError for 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.
  • toMermaid and toDrawio treat edge marker names of Object.prototype (such as toString or constructor) like other unknown markers instead of writing function text into the output.
  • filterGraph throws RangeError('Unknown search field') for an unknown text-search field, as searchGraphNodes does, instead of silently matching nothing.
  • routeGraphEdges with parallelSpacing keeps 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 without avoidNodes.
  • Orthogonal edge ends reach circle, stadium and other flowchart outlines when the box centres differ only by a rounding error.
  • findOrthogonalRoute finds a route without obstacles when the ends face away from each other or the route has to turn back, instead of returning undefined.
  • layoutGraphIncrementally sizes the layout to include a self-loop on the right-most node.
  • layoutForceGraph no longer draws an edge between the wrong nodes when node IDs contain a NUL character.
  • applyRecurringEdit: an override that the series or following scope 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 throw Duplicate 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 throws Duplicate event ID, so neither the result nor its expansion has duplicate IDs.
  • expandRecurrence and expandRecurringEvents keep the first instance of a series whose UNTIL is before its start, as documented (RFC 5545 3.8.5.3).
  • serializeWeaveSnapshot reports keys named like built-in object properties (constructor, toString, …) in data, metadata and view as unknown fields instead of silently dropping them.
  • eventCalendarRange, eventCalendarDays, eventCalendarMonthGrid and shiftEventCalendarDate no longer read the years 0 to 99 as 1900 to 1999.
  • deleteTreeGridRows no longer throws "Maximum call stack size exceeded" when a deleted row has more than about 120,000 children.
  • toCsv writes a number below 1e-6 in plain decimal notation (0.0000005, not 5e-7), and timelineFromCsvTable reads such a number cell in the progress column, so a timeline progress below 1e-6 reads back from its own export. timelineCsvTable cells keep their number type.
  • useLinkedSelection.select no 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 dir prop changes the direction, not only when an inherited direction changes under dir="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-move handler. EventCalendar no longer takes the focus back after a keyboard edit when the edit handler moved it to another element, also from inside a shadow root to an element outside it.
  • PropertyInspector focusField focuses 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 of time whatever 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 0x10 are refused instead of being read as numbers.

v1.7.0

Choose a tag to compare

@EightKK EightKK released this 25 Nov 13:21
4b4a487

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 (with minColumnWidth, maxColumnWidth and validateColumnResize) adds a separator to the tree column header and each column header that proposes column-resize (TimelineColumnResize; timelineLabelColumnId names the tree column, accepted through treeColumnWidth) by pointer drag or arrow keys, or column-resize-rejected. sortableColumns and filterableColumns add sort buttons (aria-sort on the header of the first rule) and filter dialogs that propose update:sort and update:filters (v-model:sort, v-model:filters) from the controlled sort and filters. 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 optional TreeGridLabels: resizeColumn, columnResizeRejected, sortBy, sortedAscending, sortedDescending, filterBy, filtered, filterContains, filterValues and clearFilter. 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), and treeGridCellText(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 new views prop lists it (default ['day', 'week', 'month'], so the toolbar is unchanged). It lists the events of the week that contains date, or of the new agendaDays (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, event slot 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 labels agenda and agendaEditHint. The new type EventCalendarViewName (EventCalendarView | 'agenda') names every view; EventCalendarView stays 'day' | 'week' | 'month', so existing TypeScript code compiles unchanged. The view and views props, eventCalendarRange, eventCalendarDays, shiftEventCalendarDate and the export take EventCalendarViewName, and the component infers from view and views whether it can show the agenda: only then do update:view, range-change and the event and toolbar slots carry EventCalendarViewName, otherwise EventCalendarView as before. EventCalendarOptions has agendaDays, which eventCalendarRange, eventCalendarDays and shiftEventCalendarDate follow for agenda.
  • Core: layoutCalendarAgenda(events, days) returns, for each day, the events that overlap it clipped to the day, with allDay, continuesBefore and continuesAfter, in agenda order (CalendarAgendaDay, CalendarAgendaItem).
  • EventCalendar touch input: on empty space of a creatable calendar, 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?) and exportPng(options?) like NetworkGraph and GanttChart (TaskBoardExportOptions, EventCalendarExportOptions, TreeGridExportOptions and their Png variants), 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 or agendaDays, 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, agenda included, with the agendaDays option and the optional labels.empty; an unknown view throws a RangeError) and renderTreeGridSvg (with optional sort and filters applied by projectTreeGridRows, rowRange and columnRange) 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 event color such as var(--booking-color) computed on the event's button, else on the calendar; currentColor in 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, like renderGraphSvg and renderTimelineSvg.
  • Core: createGraphRouteCache() and the opt-in cache option of routeGraphEdges. A call with a cache routes again only the edges whose inputs changed since the previous call with it (with avoidNodes, 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 with avoidNodes, routing after one node moved took 66 ms instead of 215 ms in the benchmark.
  • TaskBoard: the column-header slot also receives collapsed, toggle() and toggleLabel, so a slot that replaces the header, built-in collapse toggle included, can draw its own toggle; toggle() proposes update:collapsedColumnIds like 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 graphLayoutWorkerAdapter and a plain module Worker for routing, scheduleTasks and levelResources, with what can be posted and how to drop stale results.

Changed

  • levelResources is 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 of docs/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 cullOffscreen keeps 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 and fit are unchanged; layout and routing still cover every node and edge. Without cullOffscreen nothing 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 avoidNodes this removes a pause of about one full routing from the first move of a drag. The previews are unchanged.
  • npm run bench:render measures a culled graph with orthogonal edges and avoidNodes (graph-culled-avoid), and npm run bench:core routing after one node moved, with and without a route cache.

Fixed

  • NetworkGraph and renderGraphSvg centre 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 example nodeHeight: 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 creatable time grid or month no longer reports edit-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.
  • projectTimelineRows and projectTimelineView (GanttChart header sorting) look up sortRules by own key only. Before, a sort on a column whose ID is an Object.prototype member, such as constructor, toString, valueOf, hasOwnProperty or __proto__, took the inherited member for a registered rule whenever sortRules was given: the rows stayed unsorted or the call threw a TypeError. projectTreeGridRows reads them the same way.

v1.6.0

Choose a tag to compare

@EightKK EightKK released this 24 Nov 12:16
dc36c49

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-escape in templates, .once included; declared as the listener prop onIdleEscape and delivered as a component event) with the KeyboardEvent when Escape is pressed in them and cancels nothing of their own: no gesture, armed connection or open cell editor (so no gesture-end or edit-cancel for 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 on background-click, instead of counting gesture-start and gesture-end or watching edit-cancel around a wrapper element. The examples and showcases use it and no longer carry that bookkeeping.
  • Core: taskViewBindings({ tasks, assignments?, dependencies?, inactiveTaskIds?, taskKind?, dependencyKind? }) returns the ViewBinding[] 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 of calculateResourceLoad and binds load through assignmentWorkPeriods, so a load segment selects exactly the tasks calculateResourceLoad counts in it: pauses, calendar breaks and the work outside a partial assignment's workOffset and workDuration select nothing. Spread it with bindings of your own into useLinkedSelection.

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 one useLinkedSelection: 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-wide useEditTransaction against 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 (useEditTransaction refuses a new save only while one is in flight), and that documents from refresh or the server skip the adapter's validate.
  • 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

  • scheduleTasks no longer throws RangeError: Maximum call stack size exceeded for a summary task with more than about 100,000 links that limit its subtasks, and NetworkGraph with edgeLabelPlacement no longer throws it when a move changes that many nodes: both passed an input-sized list to a single push(...list) call, which now is a loop.
  • levelResources no longer misses capacity shortages before time 0 for tasks with a partial assignment (workOffset or workDuration) when the horizon starts before 0. Such a task could stay overloaded without being listed in unresolvedTaskIds, 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 needs transform-box: fill-box on SVG text, and WebKit flipped it about the layer's origin instead. The label now turns back through its own transform attribute (a flip about its anchor, with a start anchor written as text-anchor="end"), so it covers the same span in every engine. The stylesheet no longer sets transform on .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 on true. 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's data-allow-mismatch="text", so hydration takes the browser's text, as it already displayed, without logging a mismatch.

v1.5.0

Choose a tag to compare

@EightKK EightKK released this 23 Nov 03:30
04ed1bd

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-click when 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 a TimelineBackgroundClick { time, rowId? } for an empty part of the time area (not in rows where the click creates a bar); TaskBoard a TaskBoardBackgroundClick { columnId?, laneId? }; EventCalendar an EventCalendarBackgroundClick { time, allDay, resourceId? } when the click proposes no create. 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 svg element (vw-zoom-icon, vw-row-toggle-icon, vw-gantt-create-icon, vw-tree-grid-action-icon, vw-inspector-remove-icon); the icons use currentColor.
  • The construction showcase no longer applies its button style to the chart's own row toggles, which overlapped neighbouring rows.

v1.4.0

Choose a tag to compare

@EightKK EightKK released this 23 Nov 01:04
a37a9fb

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 sparse cells list. Cells keep a value (including 0), known none, unknown, not applicable and not loaded apart (missingCell, cell status). 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-activate and cell-activate report entities, for linking through useLinkedSelection().selectEntities and matchTreeGridEntities. Opt-in editing proposes cell-edit with typed editors (text, number, select, checkbox, date and time; IME-safe), spreadsheet proposes one sheet-edit per paste, fill (Ctrl+D or the fill handle), clear or cut, and rowsEditable proposes row-create, row-delete and row-move (keyboard and pointer). Each proposal has a synchronous validator, -rejected events and edit-cancel. Core helpers createTreeGridIndex, flattenTreeGrid, applyTreeGridEdits, insertTreeGridRow, deleteTreeGridRows and 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.
  • useLinkedSelection gains selectEntities(entities, { source }?) and selectionSource, so views without a LinkedViewName (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, selectedEntities keeps the given entities in input order (unbound ones included, listed in unknown), and repeating the same entities from the same source is a no-op that does not call onSelect. ViewTarget and LinkedViewName are 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 returns added keys (in after order), removed keys and changed items with each changed field's before and after values, and, with parentKey, the moved items whose parent differs (in before order). key and parentKey take a property name or a function. The default fields are the own properties of both items, without the key and parent properties; values compare with Object.is unless you pass equals. 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, StructureFieldChange and StructureMove.
  • Core: projectTimelineRows(input, state) is the row part of projectTimelineView, 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 returns rows, matchedRowIds, wbs, collapsedIds and the row diagnostics (unknown-row, unknown-column, unknown-sort-rule). bars are optional: with them, the search reads bar labels and columns receive row summaries. projectTimelineView now uses it, and its output is unchanged. New types: TimelineRowsInput, TimelineRowViewState and TimelineRowsProjection.
  • traverseGraph takes opt-in edgeFilter(edge, direction) to follow only some relations (it is told the walk direction), maxNodes to 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), and paths. With any of them the result adds truncated ({ nodeId, direction, reason: 'max-hops' | 'max-nodes' }[], where a limit stopped a walk); with paths: true it adds via (one Map per walk from each reached node to its first step { edgeId, previousId }) and multiplyReachedIds. 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 a traverseGraph result made with paths: true, using the fewest-hops path within one walk.
  • resolveTimeRangeTargets and useLinkedSelection timeRange.traversal accept the new edgeFilter and maxNodes.
  • Keyed graph expansion: beginGraphExpansion, cancelGraphExpansion, mergeGraphExpansionPage and graphExpansionView take an optional { key } (GraphExpansionKeyOptions), for example 'forward', 'backward' or a relation name, kept in the new optional state fields expandedIdsByKey and pendingIdsByKey. 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: createTimeBucketColumns turns sorted, non-overlapping half-open periods (gaps allowed; calendarBands days or weeks in an IANA zone work as they are) into column descriptors { id, label, width, start, end } with deterministic IDs, and aggregateTimeBuckets aggregates 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 rules sum, 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 optional loaded coverage (ranges, or a function such as windowedCoverage) are unloaded with a null value instead of 0, loaded buckets without items are loaded-empty, and carryForward opts last rows into running balances. timeBucketIndex and timeBucketIndexRange find buckets by binary search, so a period table can follow GanttChart's TimelineVisibleWindow. See Time bucket tables.
  • Core treeGridCellsFromTimeBuckets(cells) and treeGridCellContentFromTimeBucket(cell, extra?) turn aggregateTimeBuckets cells into TreeGrid cells: a loaded value stays a value (a sum of nothing is 0), a loaded bucket without a value is none, and buckets that are not loaded keep their unloaded, loading or failed status instead of showing 0.

Fixed

  • A server-rendered EventCalendar hydrates 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 (the EventCalendar title and event names, intlTimeFormatter, calendarZoomPresets and locale-aware calendarBands labels) 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 as ReadonlySet<string> or Edit <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, aggregateTimeBuckets with sum, last + carryForward, min and ratio). 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, and gallery.html forwards 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 TreeGrid and linked to an item graph, with where-used walks (traverseGraph with edgeFilter, maxNodes and graphTracePath), a revision comparison with diffStructure, search with projectTimelineRows and 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 from docs/*.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 ...
Read more

v1.3.0

Choose a tag to compare

@EightKK EightKK released this 22 Nov 09:00
86fb8e0

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

  • resourceLoadHistogram now throws a RangeError, not an Error, for load segments that overlap within a resource, like its other checks of times, load and capacity (an unknown resource still throws an Error). GanttChart reports overlapping loadSegments through validation-error with the same RangeError. Who is affected: code that tells this failure apart by its class, for example error.constructor === Error or !(error instanceof RangeError). What to do: check for RangeError; the message is unchanged.

Added

  • Recurring events (RFC 5545 RRULE), opt-in: new core functions parseRecurrenceRule, formatRecurrenceRule, expandRecurrence, expandRecurringEvents and applyRecurringEdit with the types RecurrenceFrequency, RecurrenceWeekday, RecurrenceRule, RecurrenceZoneOptions, CalendarRecurrence, RecurrenceSeries, RecurrenceOccurrence, RecurrenceExpandOptions, RecurringEditScope, RecurringEditTarget, RecurringEditChange and RecurringEditOptions. 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. CalendarEvent gains the optional recurrence, seriesId and recurrenceId, EventCalendarEdit the optional occurrence, and EventCalendarLabels the optional recurring; EventCalendar names occurrences "…, Recurring" and marks them with vw-is-recurring, while events without these fields render as before. applyRecurringEdit applies an edit to one occurrence (override or EXDATE), to it and the following ones (split series) or to the whole series. fromICalendar takes recurrence: 'series' (parsed rule, EXDATEs, RDATEs and RECURRENCE-ID overrides) or recurrence: { range } (expanded occurrences, new type ICalendarExpandOptions); the default is unchanged. toICalendar writes RRULE, EXDATE and RDATE for events with recurrence, 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), a filter prop with "3 of 7" column counts (moves keep indices that count hidden cards, so applyBoardCardMove on the full array is right), and TaskBoardColumn.wipMin marking columns under a minimum (vw-is-under-minimum). groupBoardCards takes { filter }; TaskBoardCell gains indices and total, TaskBoardColumnStatus gains total, wipMin and underMinimum (these new fields are required, so code that builds TaskBoardCell or TaskBoardColumnStatus objects by hand, for example in test doubles, must add them; values from groupBoardCards already have them), and TaskBoardLabels gains wipMin, underMinimum, collapse and expand. New CSS variables --vw-board-wip-under, --vw-board-collapsed-width and --vw-board-collapsed-fill. The "Task board" demo shows them. Without the new props nothing changes.
  • NetworkGraph edgeLabelPlacement prop (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, avoidNodes included; 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) with GraphEdgeLabelPlacementOptions (fontSize, glyphWidth, labelSize, labelText, gap, margin, samples, edgeIds, obstacles), GraphEdgeLabelSize and GraphEdgeLabelPlacement: a deterministic greedy label placement that returns a new layout and keeps the edgeLabels anchor meaning (centre and baseline of the text).
  • GanttChart header sorting and filtering, opt-in: sortableColumns (true or column IDs, timelineLabelColumnId for 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 through update:sort; the button name carries the controlled sort ("Sort by Finish (ascending)"). filterableColumns adds a filter button that opens a small dialog with a text filter (and a value list for a select field), proposing update:filters for the controlled filters prop; Escape closes it and returns focus. The chart never reorders or filters rows; apply the proposals with useTimelineView (new setFilters). New GanttLabels entries sortBy, sortedAscending, sortedDescending, filterBy, filtered, filterContains, filterValues and clearFilter. Without the new props the markup is unchanged.
  • Timeline views: TimelineViewState.filters (TimelineViewFilter: columnId, optional text and values), optional so states saved without filters still parse; projectTimelineView keeps the ancestors of filtered rows and sorts or filters by row label for timelineLabelColumnId. New core helpers filterTimelineRows(rows, predicate) (matches with their ancestors) and nextTimelineSort(sort, columnId).
  • PropertyInspector list fields, opt-in: assignments (resource select, units, add and remove) and dependencies (predecessor, FS/SS/FF/SF type, lag, add and remove) tables in fields, with accessible names such as "Units for Crane" and "Remove Crane". Each edit proposes the whole list through the new list-change event, checked by the new core validateInspectorList and a synchronous validateListChange (list-change-rejected, reason shown inline). New types InspectorListFieldKind, InspectorOption, InspectorAssignment, InspectorDependency, InspectorAssignmentsField, InspectorDependenciesField, InspectorListField, InspectorListChange and InspectorListChangeValidator, and optional PropertyInspectorLabels entries for the table. change and InspectorChange are unchanged.
  • toCsv(table, { escapeFormulas: true }) (opt-in, new type CsvOptions) 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 its gap from the outer side of its band and other labels stay off the band. NetworkGraph passes the edgeBands widths when edgeLabelPlacement is on. labelSize and edgeWidth may return null as well as nothing.

Fixed

  • fromDrawio and fromDrawioAsync read 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 against maxItems like nodes, edges and groups, so a file with more than maxItems items including its label cells now throws a RangeError.
  • toDrawio writes a node label that has a line break also as vwLabel in the style, so fromDrawio reads it back whole instead of splitting it into label and detail. Files without vwLabel are read as before.
  • timelineFromCsvTable builds 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.
  • toMsProjectXml writes carriage returns in project, task, calendar and resource names as &#13;, 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. toMermaid drops 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, var and calc), so a theme cannot put a url() 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 reports card-move-cancel with the new reason api (added to TaskBoardMoveCancelReason), like EventCalendar's cancelEdit(); it reported escape before. Code that switches on the reason should handle api.
  • TaskBoard: with a filter on, 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...
Read more

v1.2.0

Choose a tag to compare

@EightKK EightKK released this 22 Nov 01:53
0cd3d8d

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-task history records). rollupEarnedValue sums any group, such as a summary row. New exports: computeEarnedValue, rollupEarnedValue, maxEarnedValuePoints and the EarnedValue* types. New Earned value demo. See Earned value management.
  • New opt-in TaskBoard component (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) propose card-move, validateCardMove can reject it (card-move-rejected), and cancelled moves report card-move-cancel; v-model:selected-id, card-activate, labels, dir and the card, column-header and empty slots. New public types TaskBoardComponent and TaskBoardExposed. New core helpers groupBoardCards, boardCardPosition and applyBoardCardMove with the TaskBoard* types, and the CSS variables --vw-board-column-width, --vw-board-cell-min-height, --vw-board-wip-warning and --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 under graphPaletteMimeType and emit insert on Enter or Space, with readPaletteDrop(drop) to read a NetworkGraph or GanttChart drop back; and PropertyInspector, a form generated from typed field definitions (InspectorField: the TimelineFieldSpec rules plus label, readonly and a color kind) that emits change proposals checked by a synchronous validateChange, shows rejection reasons inline (change-rejected), has a field-<id> slot per field and drops drafts when the item or the edited value changes. New types GraphPaletteItem, GraphPaletteLabels, GraphPaletteDrop, PaletteDropSource, InspectorItem, InspectorField, InspectorFieldKind, InspectorChange, InspectorChangeValidator, PropertyInspectorLabels, PropertyInspectorFieldSlot, GraphPaletteComponent, GraphPaletteExposed, PropertyInspectorComponent and PropertyInspectorExposed, and CSS variables --vw-palette-preview-width and --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 of NetworkNodeShape): circle, stadium, parallelogram, document, cylinder and data-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, intermediate with a double border, end with a thick border), NetworkNode.marker (NetworkNodeMarker: the gateway symbols exclusive, parallel, inclusive and event-based, the event symbols message and timer, and the task types user, service and manual; decorative and aria-hidden) and NetworkNode.labelPosition: 'below' (NetworkNodeLabelPosition) for labels under small shapes. Accessible names stay the label and detail.
  • GraphEdge.dashed draws an edge with a static dash pattern (class vw-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' }). collapseGraphGroups keeps dashed on merged edges when they agree.
  • layoutSwimlaneGraph: opt-in pools (GraphSwimlanePoolSpec), poolHeaderSize and poolGap options and a pools result (GraphSwimlanePool) for BPMN participants around consecutive lanes; NetworkGraph has a pools prop (GraphSwimlanePoolBand) that draws each pool as a named group with a rotated title around its lanes, and renderGraphSvg a pools option. New CSS variables --vw-pool-fill, --vw-pool-header-fill and --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 and event/toolbar slots. Pointer and keyboard moves and resizes emit edit (EventCalendarEdit, with resource for a column change), drags over empty time emit create when creatable is set, both checked by synchronous validateEdit and validateCreate (edit-rejected, create-rejected); v-model:view, v-model:date and v-model:selected-id, event-activate, range-change and edit-cancel complete it. New core helpers eventCalendarRange, eventCalendarDays, eventCalendarMonthGrid, shiftEventCalendarDate, eventCalendarTimeOfDay, eventCalendarTimeAt, layoutCalendarDayEvents, packCalendarEventLanes and validateCalendarEvents, the EventCalendarComponent and EventCalendarExposed types, vw-calendar-* classes and the --vw-calendar-gutter, --vw-calendar-today and --vw-calendar-event-accent theme variables. Additive; nothing existing changes.
  • Graph interchange (core): toMermaid and fromMermaid (Mermaid flowcharts with shapes, subgraphs as nested groups, chains, & lists, every link form and edge labels; IDs Mermaid cannot hold are encoded and decoded), toGraphMl and fromGraphMl (own keys for labels, details, shapes, tones, positions, sizes, markers and waypoints, nested graphs as groups, yEd labels, geometry, shapes and arrows), and toDrawio, fromDrawio and fromDrawioAsync (uncompressed mxfile export with container groups; import of uncompressed and, asynchronously, compressed pages, chosen by index or name). The readers return the NetworkGraph props with warnings (GraphInterchangeImport), never expand XML entities and bound their work with maxItems and maxInflatedLength. 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=ja to 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_PORT sets 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

Choose a tag to compare

@EightKK EightKK released this 21 Nov 14:30
c7a4a16

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 one sheet-edit proposal (TimelineSheetEdit, actions paste, fill and clear), checked as a whole by the new validateSheetEdit prop and reported by sheet-edit-rejected(reason, change?). New optional GanttLabels fields sheetHint, sheetReadOnly, sheetRagged, sheetOutside and sheetRejected localize the texts.
  • Added core helpers parseSheetText, formatSheetText and applyTimelineSheetEdit (with the types TimelineSheetChanges and TimelineSheetAppliers).
  • Added an auto-scheduled project plan sheet and an approval workflow editor to the bilingual demo homepage.

v1.0.0

Choose a tag to compare

@EightKK EightKK released this 21 Nov 02:06
7e8bfd4

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 (was vue-weave), because npm does not accept the unscoped name. The entries are @eightkk/vue-weave, @eightkk/vue-weave/core, @eightkk/vue-weave/style.css and @eightkk/vue-weave/package.json, and the release tarball is eightkk-vue-weave-<version>.tgz. Who is affected: everyone who installed an earlier tarball. What to do: install @eightkk/vue-weave, remove vue-weave, and replace 'vue-weave' with '@eightkk/vue-weave' in imports (also /core and /style.css). The exports, types and behaviour of each entry are otherwise as described below.
  • fromICalendar now resolves a TZID local 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:20070311T023000 is now 07:30 UTC (local 03:30) instead of 07:00 UTC. This applies to DTSTART, DTEND and the end of a day or week DURATION. A repeated local time still takes its first occurrence. Who is affected: anyone who imports .ics files with TZID times 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. toICalendar writes UTC and is unaffected.
  • comparePlans now throws when a given successful result does not match the task set of its input: an active task is missing or listed twice, or inactiveTaskIds does 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 task unscheduled and a stale finish. Who is affected: callers who pass a precomputed result that does not exactly match the input (stored, cached or hand-built results). What to do: recalculate the result whenever its input changes, or omit result and let comparePlans calculate 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.
  • parseFieldValue with a select spec that has multiple: true now 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 reading field-edit after or parseFieldValue results for multiple selects. What to do: expect an array.
  • formatFieldValue for a time field with timeZone now appends the offset to a wall time that occurs twice (for example 2026-11-01 01:30 -05:00 in America/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:MM suffix.
  • GanttChart row heading text (vw-row-content) is now a focusable role="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 example getByRole('button', { name: /^Task/ })), which can now also match a heading. What to do: use exact names, or exclude the heading.
  • setWindowedView, retryWindowedData and windowedCoverage now throw RangeError for a window whose chunk indices are not safe integers (finite times too far from origin for chunkSize), instead of looping without end. setWindowedView also throws RangeError when the chunk boundaries origin + k·chunkSize of the view are not distinct finite numbers, and windowedCoverage throws when the window's cell count exceeds Number.MAX_SAFE_INTEGER. useWindowedData reports these views through error. Who is affected: only views with extreme ranges or origins, which previously hung. What to do: use a larger chunkSize or an origin closer to the window.
  • Types only: ScheduleGraph (returned by scheduleToGraph) now types nodes as NetworkNode<ScheduleGraphNodeData>[] and edges as GraphEdge<ScheduleGraphEdgeData>[], so node and edge data (critical flag, early dates, lag) can be read without casts. The arrays still assign to NetworkNode[] and GraphEdge[]. Who is affected: code that pushes items with other data into graph.nodes or graph.edges. What to do: copy the arrays into your own NetworkNode[]/GraphEdge[] first.

Added

  • GanttChart rows can be activated from the keyboard. Enter or Space on a row heading emits target-activate with source keyboard. ArrowUp, ArrowDown, Home and End move between headings, through a single roving tab stop. Controls inside a row slot keep their own keys.

Fixed

  • The type declarations of useTimelineView (state) and useEditTransaction (historyReset) no longer use the two-argument ShallowRef<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-editor leave Enter and Escape of an input method composition (isComposing or 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 no field-edit and no validation. Values whose text did not parse back no longer produce changes.
  • parseFieldValue reads select labels as well as values, so the text formatFieldValue shows can be committed again. Duplicate labels are rejected as ambiguous with a choice error 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, weld is 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 as 1 and '1' with the same text) makes formatFieldValue and parseFieldValue throw an Error, instead of reading a valid value back as another one; give that choice a label of its own.
  • Time fields with timeZone round-trip repeated wall times: format then parse gives back the same instant. Typed text without an offset still resolves to the earlier occurrence.
  • useAsyncGraphLayout now holds the results and failures of the frame being computed apart from its reuse cache. With cacheSize: 0 or 1 a 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, so display.source === 'layout' no longer appears next to a stale error. A failed frame is requested again when the input changes. cacheSize now only sets how many layouts are kept for reuse by later inputs.
  • graphLayoutWorkerAdapter rejects a response whose requestId and inputKey match but whose scope differs. It removes its message and 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.
  • setWindowedView no longer walks every chunk of the time range for a view with an empty rowIds; such a view requests nothing.
  • windowedCoverage no longer counts unloaded cells one at a time. It computes total from the chunk and row counts and counts only the recorded cells, so checking a whole plan over a wide range stays cheap.
  • useWindowedData no longer throws when the first read of condition fails (a getter that throws, or a value that is not a string), including during server rendering. That failure, and a view or condition getter that throws later, which the watcher used to swallow, is reported through error, and the view is requested again once the value is valid.
  • parseWeaveSnapshot and restoreWeaveSnapshot of timeline snapshots, and projectTimelineView without laneCount, no longer throw RangeError: Maximum call stack size exceeded for timelines with very many bars (for example 200,000). GanttChart's fitToBars, NetworkGraph's collapsed-group moves, group frames and actuals diagnostics append large lists with loops for the same reason.

Documentation

  • docs/api.md adds "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, emitted vw- classes, DOM structure and server-rendered markup). Error message formats are documented as current behaviou...
Read more

v0.6.0

Choose a tag to compare

@EightKK EightKK released this 20 Nov 06:46
dfa116e

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 rules a finite number > 0, a finite number ≥ 0, a finite number, an integer ≥ 1, a finite number in [0, 1] and a safe integer. Before, the texts varied, for example columnGap 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 positive or crossingSweeps must be a positive integer; now columnGap must be a finite number ≥ 0 (got -1) and crossingSweeps 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 default columnGap is 50 (was 40), the default of every other layout, so a grid without an explicit columnGap is 10 units wider per column gap. What to do: pass columnGap: 40 to keep the earlier geometry.
  • layoutLayeredGraph: same-rank edges (inside a cycle) and self-loops turn min(24, max(6, columnGap / 2)) units past the box, as in the tree and swimlane layouts (was min(24, columnGap / 2)). Only a columnGap below 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 so cullOffscreen) 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, test a.x <= b.x + b.width && b.x <= a.x + a.width (and y) yourself.
  • GraphTreeLayoutOptions, GraphSwimlaneLayoutOptions and GraphIncrementalLayoutOptions now extend GraphLayoutOptions instead of declaring direction, nodeWidth, nodeHeight, columnGap, rowGap and padding themselves. 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 match GraphLayoutOptions.
  • 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 !id let through now throw Invalid <kind> ID: <value>: numbers other than 0 (such as 5), true and objects as task, dependency and calendar IDs in scheduleTasks, propagateEdit, rescheduleFromStatusDate, levelResources (also resource IDs) and the snapshot functions that run the scheduler; task and resource IDs in calculateResourceLoad; row, bar and dependency IDs in validateTimelineData (and so GanttChart's validation-error, renderTimelineSvg and snapshots); marker and load row IDs in renderTimelineSvg. scheduleToGraph, which only checked dependency IDs for duplicates, now rejects every invalid one, '' and undefined included. createTimelineRowTree, and with it timelineWbsCodes, moveTimelineRow, indentTimelineRow, outdentTimelineRow, timelineRowPosition, timelineCsvTable and renderTimelineSvg, now also rejects the row IDs 0, null and undefined and numbers. buildPlacementInput rejects an assignment whose resourceId is not a non-empty string (Unknown resource in assignment: <value>). A null entry in the tasks, dependencies or calendars of scheduleTasks, or in the tasks or resources of calculateResourceLoad and the resources of levelResources, throws Invalid <kind> ID: undefined instead of a TypeError. 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> and Duplicate <kind> ID: <id>, where several functions said Invalid or duplicate …. For example Invalid or duplicate task ID: a → Duplicate task ID: a; Invalid or duplicate schedule dependency: d1 → Duplicate dependency ID: d1, Invalid dependency ID: 5 or, for an unknown from or to, Unknown dependency endpoint: d1 (as buildPlacementInput, projectResourceTimeline, validateTimelineData and scheduleToGraph already 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) or Duplicate 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 say Invalid <kind> ID: <value> instead of Must 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, resourceLoadFromMsProject and comparePlans (and proposeResourceAssignment for duplicates in its state), with the same texts: Unknown resource in assignment: <id>, Unknown task in assignment: <id> (with the options.inactiveTaskIds hint only from calculateResourceLoad) and Duplicate assignment of task <task> to resource <resource>, which replaces Duplicate resource assignment for task: <task> (and …: <task>, <resource>) and Unknown task or resource in assignment: <task>, <resource>. The duplicate check keys pairs by nested maps, so IDs that contain separator characters never collide.
  • renderTimelineSvg throws an Error (not a RangeError) for an invalid or duplicate marker ID: Invalid marker ID: <value> or Duplicate marker ID: <id>; a marker time that is not finite is still RangeError: 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 separate Invalid <kind> ID: and Duplicate <kind> ID: texts (note the capital D), Invalid or duplicate schedule dependency with Invalid dependency ID, Duplicate dependency ID or Unknown dependency endpoint, and Duplicate resource assignment for task and Unknown task or resource with 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> ID and Duplicate <kind> ID texts (see Validation and errors). How each error is surfaced (GanttChart's validation-error plus 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 text Timeline bands must be finite, ordered and nonoverlapping; a marker whose time is not finite is RangeError: Invalid timeline marker: <id> (was Error, same text); a column whose width is not finite and positive is RangeError: Invalid timeline column width: <id> (was Error: Invalid timeline column: <id>). These are the class and text renderTimelineSvg uses.
  • 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 gives Invalid load row ID: "", Invalid zoom preset ID: "", Invalid column ID: "" or Invalid 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 3 or true), which the looser !id check accepted and rendered, is now reported through validation-error (Invalid marker ID: 3); a null entry in loadRows gives Invalid load row ID: undefined instead of a TypeError. What to do: pass string IDs, for example String(id).
  • NetworkGraph, error cla...
Read more