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

@radial-color-picker/angular-color-picker

v0.0.3

Published

Radial Color Picker - Angular

Downloads

17

Readme

Angular Radial Color Picker

This project was generated with Angular CLI version 9.0.1.

Introduction

Great UX starts with two basic principles - ease of use and simplicity. Selecting a color should be as easy as moving a slider, clicking a checkbox or pressing a key just like other basic form elements behave.

This is a flexible and elegant material-ish design color picker. Developed with mobile devices in mind. Key features:

  • Supports touch devices
  • Angular animations

This component doesn't have feature parity with it's predecessor for Angular 1.x

The component is developed so it can be used with template-driven or reactive form, or as a simple component.

Quick Links

Usage

Color Picker on npm

npm install -S @radial-color-picker/angular-color-picker

In your app module or any module that will hold the components that are using the radial color picker:

import { RadialColorPickerModule } from 'radial-color-picker';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    RadialColorPickerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

and in your component template

<rcp-radial-color-picker></rcp-radial-color-picker>

more examples can be found in the app in this repository

Inputs

<rcp-radial-color-picker> component has several inputs, all of which are optional.

| Options | Type | Default/Description | |------------|--------|---------| | selectToChange | Boolean | prevents propagation of on change on FormControl or NgModel on rotation. Defaults to false: false. | | collapsed | Boolean | should the initial render be collapsed/open state of the color picker. Defaults to true: true. | | collapsible | Boolean | Should color select trigger hiding of the color palette. Defaults to true: true. | | enterAnimation | Boolean | flag to turn on/off intro animations. Defaults to true: true. | | exitAnimation | Boolean | flag to turn on/off outro animations. Defaults to true: true. | | size | String | pixel size of diameter. Defaults to 300: 300. | | colorType | String | format of color to be emitted by the component. Defaults to hex: hex. | | color | String | hex, rgb or hsl code of your color. Defaults to red: #FF0000. |

Back To Top

Outputs

<rcp-radial-color-picker> component has several outputs, all of which are optional.

| Options | Type | Default/Description | |------------|--------|---------| | selected | Function | Callback which is triggered when a color is selected. | | colorChange | Function | Callback which is triggered when color is changed (i.e. on rotation). | | lifecycle | Function | Callback which is triggered when component state is changed. |

Back To Top

Lifecycle Events

Emitted by the lifecycle Output

| Name | Description | |------------|-------------| | show | Fires when the color picker is about to show and before any animation is started. | | shown | Fires when the color picker is shown and has finished animating. | | selected | Fires when a color is selected via the middle selector. Event is fired right before hide. | | hide | Fires when the color picker is about to hide and before any animation is started. | | hidden | Fires when the color picker is hidden and has finished animating. |

Back To Top

Instance methods

| Name | Description | |------------|-------------| | open | Programatically opens the color picker if it's not already opened. | | close | Programatically closes the color picker if it's not already closed. |

Back To Top

First Asked Questions

Back To Top

Contribute

If you're interested in the project you can help out with feature requests, bugfixes, documentation improvements or any other helpful contributions. You can use the issue list of this repo for bug reports and feature requests and as well as for questions and support.

We are also particularly interested in projects you did with this plugin. If you have created something colorful and creative with the color picker and want to show it off send us a quick mail.

The project is using an adapted version of Angular's commit convention and commit messages should adhere to it.

Back To Top