Skip to content

<alta-plan-card> ​

What a run would do, before anything is written: the title, what gets installed or changed, the cost, the details folded away.

All components

States ​

The closed list data-state takes on the element.

  • idle
  • planning
  • planned
  • stale
  • blocked
  • already
  • missing
  • unavailable
  • error

Other attributes ​

On the element, or on a part (part: attribute). A list of values is closed.

AttributeOnValues
data-goingthe elementpresent or absent
data-donerowpresent or absent
data-chipchipsize, duration, resource

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-plan
  • alta-plan-error
  • alta-details-toggle
  • alta-install-first

Parts ​

Every node you can style, as [data-part="…"].

title · note · skeleton · rows · row · row-mark · row-name · row-what · foot · cost · chip · blocked · stale · already · missing · unavailable · error · install-first · retry · details-toggle · details · body · writes · command · copy · undo

Slots ​

Children with slot="…" replace or add to these places.

before-rows · after-cost · actions

Draws inside itself ​

<alta-agreement>

Style it ​

css
[data-aui="plan-card"][data-state="error"] [data-part="title"] { /* … */ }

Words it reads ​

Keys of the string tables (override them on <alta-provider>).

plan. · ui.details · ui.copy · ui.copied

Files ​

packages/ui/src/elements/plan-card.ts · packages/ui/styles/components/step.css

Alta OS is open source (MIT).