Repository navigation
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.