Timeline и шаги прогресса для Angular | ng-hub-ui-milestones

Компонент timeline и шагов прогресса для Angular: вертикальный или горизонтальный, полностью настраиваемые узлы, контент внутри и рядом с каждым шагом, тематизация через CSS-переменные.

Стили

Миксины и стили

Override the `--hub-milestone-*` design tokens in a single include. Every parameter is OPTIONAL and defaults to `null`: only the parameters you pass are emitted, so the rest keep their defaults. Token-based and self-contained.

Theming with hub-milestones-theme

Kickoff

Project scoped and approved.

Build

The current step, in progress.

Launch

Not started yet.

МиксинПараметрыОписание
Theming
hub-milestones-theme()
$node-color--hub-milestone-node-color
$node-text--hub-milestone-node-text
$node-size--hub-milestone-node-size
$node-font-size--hub-milestone-node-font-size
$connector-bg--hub-milestone-connector-bg
$connector-pending-bg--hub-milestone-connector-pending-bg
$connector-thickness--hub-milestone-connector-thickness
$pending-bg--hub-milestone-pending-bg
$pending-border--hub-milestone-pending-border
$pending-color--hub-milestone-pending-color
$error-bg--hub-milestone-error-bg
$body-color--hub-milestone-body-color
$body-muted--hub-milestone-body-muted
$gap--hub-milestone-gap
$spacing--hub-milestone-spacing
One-call token theming for `<hub-milestones>`

CSS-переменные

Тематизируйте каждый пиксель с помощью 20 CSS-переменных. Переопределите их в :root или ограничьте их областью обёртки.

Milestones

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

ПеременнаяПо умолчаниюТипОписание
--hub-milestone-body-colorvar(--hub-sys-text-primary, #212529)color Основной цвет текста тела.
--hub-milestone-body-mutedvar(--hub-sys-text-muted, #6c757d)string Приглушённый / вторичный цвет текста тела.
--hub-milestone-connector-bgvar(--hub-milestone-node-color)color Заливка соединителя между завершёнными / активными узлами.
--hub-milestone-connector-pending-bgvar(--hub-sys-border-color-default, #dee2e6)color Заливка соединителя, ведущего к ожидающему узлу.
--hub-milestone-connector-thickness3pxlength Толщина соединительной линии.
--hub-milestone-error-bgvar(--hub-sys-color-danger, #dc3545)color Фон узла с ошибкой.
--hub-milestone-gap1remlength Промежуток между линией узлов и содержимым тела.
--hub-milestone-node-colorvar(--hub-sys-color-primary, #0d6efd)color Фон узла для завершённых / активных состояний. `color` отдельного узла переопределяет это.
--hub-milestone-node-font-size1.05remlength Размер шрифта содержимого узла (число / метка).
--hub-milestone-node-size2.75remlength Диаметр круга узла.
--hub-milestone-node-textvar(--hub-ref-color-white, #ffffff)color Цвет содержимого узла на цветных узлах.
--hub-milestone-pending-bgvar(--hub-sys-surface-elevated, #f8f9fa)color Фон ожидающего узла.
--hub-milestone-pending-bordervar(--hub-sys-border-color-default, #dee2e6)border Цвет границы ожидающего узла.
--hub-milestone-pending-colorvar(--hub-sys-text-muted, #6c757d)color Цвет содержимого ожидающего узла.
--hub-milestone-spacing1.75remlength Расстояние между последовательными шагами.
--hub-milestone-pulse-colorvar(--hub-milestone-node-color)color Цвет волны пульсации активного узла. По умолчанию — акцент узла, поэтому учитывает переопределение `color` для узла.
--hub-milestone-pulse-duration1.6stransition Длительность одного цикла пульсации.
--hub-milestone-pulse-spread0.75remlength Насколько далеко волна пульсации расходится от узла.
--hub-milestone-reveal-duration0.5stransition Длительность заполнения каждого коннектора во время раскрытия.
--hub-milestone-reveal-stagger0.14sstring Задержка между заполнением соседних коннекторов, создающая каскадное раскрытие.