Timeline waterfall — Calendar block

Free

calendar-timeline-waterfall · for app, projects pages

Timeline waterfall

Nested spans with duration bars and error details, using the merchant's own trace values only.

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/calendar-timeline-waterfall

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import CalendarTimelineWaterfall from '@/components/trame/blocks/calendar/calendar-timeline-waterfall.vue'

const props = {
title: "Project timeline",
range: {
start: 0,
end: 100,
label: "Working period — relative markers",
ticks: [
{
value: 10,
label: "Start"
},
{
value: 50,
label: "Middle"
}
]
},
items: [
{
id: "preparer",
label: "Prepare the materials",
start: 5,
end: 35,
dates: "Preparation phase",
baseline: {
start: 5,
end: 25,
dates: "Preparation originally planned for markers 5 to 25"
},
progress: 100,
detail: "The materials are ready. The workshop has approved the samples.",
status: "Approved"
},
{
id: "assembler",
label: "Assemble the notebook",
start: 35,
end: 85,
dates: "Production phase",
baseline: {
start: 30,
end: 75,
dates: "Assembly originally planned for markers 30 to 75"
},
progress: 40,
detail: "The first batch is being assembled; proofreading comes next.",
status: "In progress"
}
],
open: "task"
}
</script>

<template>
<CalendarTimelineWaterfall v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordsthe section’s heading
items*Item[] | nullDatathe items shown, in order
range*Rangethe axis: its start, end, unit and marks
openstringActiona named action of the page
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 12 props
PropTypeDescription
id*stringDatathe item’s id
parentIdstringDatathe id of the item it belongs under, if any
label*stringWordsthe item’s name
startnumberaxis coordinate in the same unit as range, e.g. epoch milliseconds or trace milliseconds
endnumberaxis coordinate where it ends, in the same unit as start
datesstringWordsits dates, as the host writes them
baselineBaselinethe original schedule, to compare with
progressnumberhow far along it is, 0 to 100
ownersOwner[]Datawho is in charge of it
statusstringWordsits status, in the host’s words
tone'neutral' | 'info' | 'success' | 'warning' | 'danger'the status colour
detailstringWordsone more line about it
Baseline items[].baseline · 3 props
PropTypeDescription
start*numberwhere it started, in the same unit as the item’s start
end*numberwhere it ended, in the same unit as the item’s end
datesstringWordsthe original schedule in the host’s words
Owner items[].owners[] · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Range range · 6 props
PropTypeDescription
start*numberwhere the axis starts, in the axis unit
end*numberwhere the axis ends, in the axis unit
label*stringWordsthe range’s name, as shown
unitstringWordsunit of the supplied axis coordinates, e.g. ms
ticksTick[]the marks along the axis, each a value and a label
todaynumberwhere today sits, in the axis unit
Tick range.ticks[] · 2 props
PropTypeDescription
value*numberwhere the mark sits, in the axis unit
label*stringWordswhat the figure is
Options options · 2 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
itemsLabelstringWordswhat the rows are, heading their column and naming the list ("Projects"); "Tasks" without it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • No motion; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: open
  • Reads tasks from your app

A calendar section, for app, projects pages.

More calendar blocks

  • Day: one day on an hour axis with its events wide, and the day’s list beside it on wide screens, for a full day of appointments.
  • Month: a month at a glance with its busy days, the month’s agenda beside or under it.
  • Sidebar month and layers: the side pane beside a calendar view: a mini month to pick the day, then the calendars in folding groups with a checkbox each.
  • Sidebar week strip: a narrow panel or a phone: the selected week as seven raised day tiles, the calendars as toggle chips under it.
  • Slot picker slots: an appointment page: the free slots of a day to pick from, not a full calendar.
  • Team schedule columns: one day of a team or rooms: a column per person on a time axis, to see who is free when.
  • Week appointments strip: A seven-day strip of readable event cards for the team’s own weekly appointments, with no inferred availability.
  • Week: a week on an hour axis, a column per day with events sized by their length, to see when the week is busy; an agenda by day on a phone.

All 14 calendar blocks