# pip-webui2-controls

> ![](https://img.shields.io/badge/license-MIT-blue.svg)

Latest version **2.0.0-rc.1** (published 2020-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install pip-webui2-controls
pnpm add pip-webui2-controls
yarn add pip-webui2-controls
bun add pip-webui2-controls
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-rc.1 |
| Published | 2020-10-01 |
| First published | 2018-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 570.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pipdevs |

## Links

- npm: https://www.npmjs.com/package/pip-webui2-controls
- Repository: https://github.com/pip-webui2/pip-webui2-controls
- Homepage: https://github.com/pip-webui2/pip-webui2-controls#readme
- Issues: https://github.com/pip-webui2/pip-webui2-controls/issues
- npm.io page: https://npm.io/package/pip-webui2-controls

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0
- [pip-webui2-themes](https://npm.io/package/pip-webui2-themes.md) ^2.0.0-rc.3
- [@ngx-translate/core](https://npm.io/package/@ngx-translate/core.md) ^13.0.0
- [pip-webui2-pictures](https://npm.io/package/pip-webui2-pictures.md) ^2.0.0-rc.1

## Recent versions

- 2.0.0-rc.1 (latest) — 2020-10-01
- 1.1.13 — 2019-12-20
- 1.1.12 — 2019-12-10
- 1.1.11 — 2019-11-13
- 1.1.10 — 2019-09-26
- 1.1.9 — 2019-08-08
- 1.1.8 — 2019-02-15
- 1.1.7 — 2019-01-22
- 1.1.6 — 2019-01-08
- 1.1.5 — 2019-01-08
- 1.1.4 — 2019-01-08
- 1.1.3 — 2018-12-24
- 1.1.2 — 2018-12-17
- 1.1.1 — 2018-12-05
- 1.1.0 — 2018-11-22
- … 4 more at https://npm.io/package/pip-webui2-controls/versions

## README

# <img src="https://github.com/pip-webui/pip-webui/raw/master/doc/Logo.png" alt="Pip.WebUI Logo" style="max-width:30%"> <br/> Basic controls

![](https://img.shields.io/badge/license-MIT-blue.svg)

Pip.WebUI.Controls modules provides controls mix

### Color picker

**Control allows to select a color from predefined pallette**

**Using**

```html
<pip-color-picker [colors]="colors" [selected]="color" (changeColor)="colorChanged($event)"></pip-color-picker>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/color-picker.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/color-picker.png"/>
</a>

### Empty state
**Components show a placeholder for pages without data. It gives an explanation and provides one or few actions to get started**

**Using**

Template:

```html
<pip-empty-state>
    <pip-empty-state-title text="No tasks for today!" imageUrl="./assets/empty.svg"></pip-empty-state-title>
    <pip-empty-state-actions [actions]="emptyStateActions"></pip-empty-state-actions>
</pip-empty-state>
```

Initialized data:

```typescript
emptyStateActions: any[] = [
	{ title: 'Add task', action: () => { console.log('on add task clicked'); } },
	{ title: 'Import tasks', action: () => { console.log('on export tasks clicked'); } }
];
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/empty-state.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/empty-state.png"/>
</a>

### Check item

**Styled list item with checkboxes and multiple text headers**

**Using**

```html
<pip-check-item *ngFor="let shoe of typesOfShoes; let i = index" 
    [id]="i"
    [title]="shoe.title" 
    [subtitle]="shoe.subtitle"
    [subtitleIcon]="shoe.subtitleIcon" 
    [textBold] = "shoe.textBold"
    [text] = "shoe.text"
    (select) = "select($event)"
    [checked] = "shoe.checked"
    (check) = "check($event)">
</pip-check-item>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/check-item.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/check-item.png"/>
</a>


### Jumbotron

**Styled information container. Usually used to show statistics and other historical information**

**Using**

```html
<pip-jumbotron>
    <pip-jumbotron-picture src="assets/empty.svg" width="220px" height="240px"></pip-jumbotron-picture>
    <pip-jumbotron-content title="Failed workflows" icon="chevron_right">
        <pip-jumbotron-item *ngFor="let item of items" [item]="item"></pip-jumbotron-item>
    </pip-jumbotron-content>
    <pip-jumbotron-content title="Failed workflows" icon="chevron_right">
        <pip-jumbotron-item *ngFor="let item of items" [item]="item"></pip-jumbotron-item>
    </pip-jumbotron-content>
</pip-jumbotron>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/jumbotron.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/jumbotron.png"/>
</a>

### Slider

**Component toggles animated slides that contain any template: text, images, etc.**

**Using**

```html
<pip-slider #slider>
    <pip-slide *ngFor="let slide of slides; let i = index" fxLayout="column" fxLayoutAlign="center center">
        <img height="100%" [src]="slide">
    </pip-slide>
    <pip-slider-button direction="backward" [disabled]="slider.isFirst"></pip-slider-button>
    <pip-slider-button [disabled]="slider.isLast"></pip-slider-button>
</pip-slider>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/slider.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-controls/raw/master/doc/images/slider.png"/>
</a>

## Installation

To install this module using npm:

```bash
npm install pip-webui2-controls --save
```

## <a name="license"></a>License

This module is released under [MIT license](License) and totally free for commercial and non-commercial use.

---
_Source: https://npm.io/package/pip-webui2-controls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
