Skip to content

v1.2.0

Choose a tag to compare

@EightKK EightKK released this 22 Nov 01:53
· 273 commits to main since this release
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.