npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@libs-ui/components-process-bar-standard

v0.2.356-25

Published

> Component hiển thị tiến trình dạng thanh (stack hoặc separate) với hỗ trợ Steps linh hoạt.

Readme

@libs-ui/components-process-bar-standard

Component hiển thị tiến trình dạng thanh (stack hoặc separate) với hỗ trợ Steps linh hoạt.

Giới thiệu

LibsUiComponentsProcessBarStandardComponent là một standalone Angular component được thiết kế để hiển thị các thanh tiến trình (progress bar). Component hỗ trợ 2 chế độ chính: Stack (các bước nối liền nhau) và Separate (các bước tách rời). Đặc biệt component tích hợp sâu với Angular Signals để tối ưu hóa hiệu năng render.

Tính năng

  • ✅ 2 Chế độ hiển thị: Stack & Separate
  • ✅ Hỗ trợ Nested Signals cho các bước (Steps)
  • ✅ Auto Calculate Percentage
  • ✅ Custom Label & Styling cho từng bước
  • ✅ OnPush Change Detection
  • ✅ Standalone Component
  • ✅ Angular Signals Native

Khi nào sử dụng

  • Hiển thị tiến trình download/upload.
  • Hiển thị trạng thái của quy trình đa bước (Stack).
  • Hiển thị so sánh các chỉ số (Separate).
  • Hiển thị dashboard widget với dữ liệu realtime.

Cài đặt

# npm
npm install @libs-ui/components-process-bar-standard

# yarn
yarn add @libs-ui/components-process-bar-standard

Import

import { LibsUiComponentsProcessBarStandardComponent } from '@libs-ui/components-process-bar-standard';

@Component({
  standalone: true,
  imports: [LibsUiComponentsProcessBarStandardComponent],
  // ...
})
export class YourComponent {}

Ví dụ

Basic Stack

<libs_ui-components-process_bar-standard [config]="config" />
// Define Steps
const step1 = signal<IProcessBarStandardStepInterface>({ value: 30, color: '#EF4444' });
const step2 = signal<IProcessBarStandardStepInterface>({ value: 50, color: '#3B82F6' });

// Config
readonly config = signal<IProcessBarStandardInterface>({
  width: '100%',
  totalValue: 100,
  mode: 'stack',
  steps: signal([step1, step2])
});

API

libs_ui-components-process_bar-standard

Inputs

| Property | Type | Default | Description | | ---------- | ------------------------------------------- | ---------- | ------------------------------------------- | | [config] | InputSignal<IProcessBarStandardInterface> | Required | Object configuration chứa toàn bộ settings. |

IProcessBarStandardInterface

| Property | Type | Description | | ----------------- | ---------------------------------------- | ------------------------------------------------ | | width | string | Chiều rộng component (vd: '100%'). | | height | string | Chiều cao component. | | backgroundColor | string | Màu nền của container (unused in separate mode). | | radius | number | Độ bo góc (px). | | totalValue | number | Giá trị tổng để tính phần trăm. | | mode | 'stack' \| 'separate' | Chế độ hiển thị. | | steps | WritableSignal<WritableSignal<Step>[]> | Array các steps (Signals). | | classInclude | string | Custom class cho container. | | showPercent | boolean | Hiển thị phần trăm (Separate mode). |

IProcessBarStandardStepInterface

| Property | Type | Description | | -------------- | --------- | ----------------------------------------- | | value | number | Giá trị của bước. | | color | string | Màu sắc của bước. | | label | string | Label hiển thị. | | classInclude | string | Custom class cho step bar. | | classLabel | string | Custom class cho label. | | showPercent | boolean | Override hiển thị phần trăm cho step này. |

Types & Interfaces

import { IProcessBarStandardInterface, IProcessBarStandardStepInterface } from '@libs-ui/components-process-bar-standard';

Styling

Component sử dụng inline styles cho các thuộc tính dynamic (width, height, color) và TailwindCSS cho layout cơ bản.

Công nghệ

| Technology | Version | Purpose | | --------------- | ------- | ---------------- | | Angular | 18+ | Framework | | Angular Signals | - | State management | | OnPush | - | Change Detection |

Demo

npx nx serve core-ui

Truy cập path: /components/process-bar/standard (tùy thuộc vào config routing của bạn).