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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-progress-loader

v0.0.5

Published

How was Ngx-Progress Loader born?

Downloads

7

Readme

Angular Ngx-ProgressLoader

How was Ngx-Progress Loader born?

While developing my website, I was looking for a component to use to represent my confidence level with various technologies.

As you can imagine, I certainly found a ready-made component that was right for me, but what's the point of life without some difficulty? :joy:

So I decided to provide my personal interpretation of the component which until then was just an idea in my head :muscle: :smile:

Feel free to sift through the code :mag_right:, take inspiration, use the component, report bugs :bug: and if you like, even leave a star :star:


Warning

The component is still under active development, and at the moment a stable version is not yet available.

As a result, both the methods of use and the API may undergo significant changes.


Table of contents

Version

| NgxProgressLoader | Angular | |:-----------------:|:----------------:| | v1.x | - | | v0.x | >=17.0.0 <18.0.0 |

Browser Support

| Chrome | Firefox | IE / Edge | Safari | Opera | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Latest ✔ | Latest ✔ | IE11, Edge ✔ | Latest ✔ | Latest ✔ |

Features

  • [x] Circle Loader
  • [ ] Multi Circle Loader
  • [x] Square Loader
  • [x] Content projection
  • [x] Infinite loop animation
  • [ ] Customization

Installation

ngx-progress-loader is available via npm

Using npm:

$ npm install ngx-progress-loader --save

Configuration

To use the component, you need to import the package. No further configuration is required.


import { NgxProgressLoaderComponent } from 'ngx-progress-loader';


@Component({
  selector: 'app-root',
  standalone: true,
  imports: [
    NgxProgressLoaderComponent //Import the component into your project
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})

Customization

At the moment it's only possible to offer a slight customization of the component.

More configuration options will be available in future versions of the component.

Color

ngx-progress-loader is presented with default colors that can be used.

| Color | Hex Code | | Default | |:------------:|:--------:|:--------------------------------------------------------------------:|:------------------:| | black | #1a1a1a | black! | | | light-grey | #d1d1d1 | light-grey! | | | dark-grey | #424242 | dark-grey! | | | white | #ededed | white! | | | blue | #3498DB | blue! | :heavy_check_mark: | | orange | #F39C12 | orange! | | | green | #27AE60 | green! | | | purple | #7D3C98 | purple! | |

The desired color can be indicated via the color input. If omitted, the default coloring is used.

  <ngx-progress-loader
    type="circle"
    color="purple">
  </ngx-progress-loader>

:bangbang: It isn't currently possible to use color input to indicate custom colors. However, you can customize the coloring by using custom CSS rules. For more information see the section Css Customization

CSS Customization

:warning: The library is still under active development! Many properties may have been implemented only partially and therefore not available for all components

You can customize the appearance of your components by editing the CSS custom properties.

| CSS Custom Propriety | Description | Support | |:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------:| | --track-color | Allows customization of the loader track color!Track customization can only be done through the use of custom CSS. | :heavy_check_mark: | | --progress-color | Allows you to change the color of the Loader. You can indicate coloring in any format allowed by CSS (hex, rgb/rgba,...) :bangbang: The color input takes precedence over the CSS property | :heavy_check_mark: | | --progress-stroke | Determines the width of the track.Available only for circle type progress | :heavy_minus_sign: |

Example

  //The change will apply to all components of that type unless there is a more specific rule
  ngx-progress-loader {
    --track-color: #3d3737;
    --progress-color: '#0b667b';
  }

  //The change will be applied to all components with the custom-color class
  .custom-color {
    --track-color: #3d3737;
    --progress-color: '#0b667b';
  }

Demo

Example

  <ngx-progress-loader
    type="circle"
    [value]='progressValue'
    color="orange">
  </ngx-progress-loader>