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-ttitan-color-picker

v2.0.6

Published

[![npm version](https://badge.fury.io/js/ngx-ttitan-color-picker.svg)](https://badge.fury.io/js/ngx-ttitan-color-picker) # ngx-ttitan-color-picker A simple color picker for angular versions 4 - 6. ### Features - Simple and intuitive interface. - High

Downloads

19

Readme

npm version

ngx-ttitan-color-picker

A simple color picker for angular versions 4 - 6.

Features

  • Simple and intuitive interface.
  • High performance.
  • Minimum of dependencies.
  • Color palettes.

##Demo Demo playground

##Installing and usage You can get it on npm. ####NPM $ npm install --save ngx-ttitan-color-picker

Add NgxTTitanColorPickerModule to your application module.

import {NgxTTitanColorPickerModule} from "ngx-ttitan-color-picker";
@NgModule({
  imports: [
    ...,
   NgxTTitanColorPickerModule
  ],
})
export class AppModule { }

Use it in your HTML template:

<lib-ngx-ttitan-color-picker
        [options]="{
          outFormat: 'hex8',
          inputFormat: 'hex8'
        }"
        [color]="color"
        (change)="colorChange($event)"
      ></lib-ngx-ttitan-color-picker>

Component inputs

|Param | Type | Default |Description | | ------------- | ------------------------------ | ------------------------------ |------------------------------ | | color | string | '#ffffff' | Input color. Two-way binding param | | title | string | '' | Picker input label | | options | PickerOptions | '{}' | Picker configuration |

Component options object

|Param | Type | Default |Description | | ------------- | ------------------------------ | ------------------------------ |------------------------------ | | pickerShow | boolean | false | Display color picker on start | | noHide | boolean | false | Do not hide the picker | | debug | boolean | false | Debug output | | outFormat | string | 'hex6' | Output color format | | inputFormat | string | 'hex6' | Expected color format in input field | | availPallets | string[] | ['polaris', 'material'] | List of color palettes. Set empty array for hide color pallets | | customPallets | Palette[] | '[]' | Custom pallets list |

Options palette object

|Param | Type | Default |Description | | ------------- | ------------------------------ | ------------------------------ |------------------------------ | | name | string | false | Display palette name | | id | string | false | Palette id. Must be unique. | | colors | string[] | false | List of colors |

Component outputs

|Param | Type | Description | | ------------- | ------------------------------|------------------------------ | | colorChange | EventEmmiter<string> | Output color |

P.S.:

This is my first public module for Angular. So do not judge strictly ;)

Version changes

v2.0.4

  • Fixed rgba && hsla alpha bug

v2.0.5

  • Added style for color pallets

v2.0.6

  • Fixed hex8 alpha