Skip to content

<alta-run-progress> ​

A run going, then how it ended: a progress line, the last activity in words, stop, the log folded, the failure lines.

All components

States ​

The closed list data-state takes on the element.

  • idle
  • starting
  • running
  • waiting
  • stopping
  • proving
  • done
  • failed
  • cancelled
  • lost
  • undoing
  • undone

Other attributes ​

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

AttributeOnValues
data-progressthe elementknown, unknown
data-jobthe elementpresent or absent
data-marklog-lineok, warn, fail, todo, note

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-run-state
  • alta-run-done
  • alta-run-failed
  • alta-cancel
  • alta-undo
  • alta-retry
  • alta-show-dialog

Parts ​

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

head · mark · line · percent · bar · bar-fill · live · device · code · copy · link · waiting · show · fail · fail-title · fail-line · needs · note · bottom · foot · stop · undo · retry · log-toggle · log · log-line

Style it ​

css
[data-aui="run-progress"][data-state="undone"] [data-part="head"] { /* … */ }

Words it reads ​

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

run.

Files ​

packages/ui/src/elements/run-progress.ts · packages/ui/styles/components/step.css

Alta OS is open source (MIT).