# applabcontrols

> Try three controls with no external dependencies.

Latest version **0.1.2** (published 2022-10-11) · 0 weekly downloads

## Install

```sh
npm install applabcontrols
pnpm add applabcontrols
yarn add applabcontrols
bun add applabcontrols
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-10-11 |
| First published | 2022-08-10 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 348.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | applab_desarrollo |

## Links

- npm: https://www.npmjs.com/package/applabcontrols
- npm.io page: https://npm.io/package/applabcontrols

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Recent versions

- 0.1.2 (latest) — 2022-10-11
- 0.1.1 — 2022-10-07
- 0.1.0 — 2022-09-18
- 0.0.9 — 2022-09-18
- 0.0.8 — 2022-09-04
- 0.0.7 — 2022-09-03
- 0.0.6 — 2022-08-13
- 0.0.5 — 2022-08-10
- 0.0.4 — 2022-08-10
- 0.0.3 — 2022-08-10
- 0.0.2 — 2022-08-10
- 0.0.1 — 2022-08-10

## README

# AppLap Controls

Try three controls with no external dependencies.

You can use this to create your own calendar, time selection and number selection controls

# 🗜️ Installation

| npm i moment --save |
| ------------ |
|  npm i applabcontrols --save |

`Note: moment is an necessary dependency`

#Usage

***In app.module.ts***
```javascript
import { CalendarModule, 
			ApplabcontrolsModule, 
			TimeSelectModule, 
			NumberSelectModule } from 'applabcontrols';

@NgModule({
  ...,
  imports: [
    ..,
    CalendarModule,
    ApplabcontrolsModule, 
    TimeSelectModule,
    NumberSelectModule
  ],
})
```

***In TS template***

```javascript
import { CalendarConfig, 
			configNumberSelecter, 
			configTime, 
			Time } from 'applabcontrols';
import * as moment from 'moment';
//config numer selector 
config:configNumberSelecter = {
    max:10,
    min:1,
    steps:1
  }
seletNumer: number = 0;
//config time selector for hour and minut
  configTime: configTime = {
    minH:0,
    minM: 0,
    maxH: 12,
    maxM: 55,
    stepsH: 1,
    stepsM: 5,
    time: "AM"
  };

selectTimer: string = ""; // the formar is h:mm AM
//Config of calendar "nameWeek" is array of string with names of days o week
//and "blokDays" is array of string with dates to blok in calendar with format yyyy-mm-dd
  configCalendar: CalendarConfig = {
        nameWeek:['Lunes','Martes','Miercoles','Jueves','Viernes','Sabado','Domingo'],
        blockDays:['yyyy-mm-dd'],//only use this
        enabledDays:["yyy-mm-dd",]//or this
        moment: moment
        };
dateSelect: any = "2022/08/15";//Formato YYYY/MM/DD
//ouput of calendar
  selectDate(event:any){
    console.log(event);
  }
//ouput of time selecter
  time(event: Time){
    console.log(event);
  }
//ouput of numer selecter
  selectSets(events: number){
    console.log(events);
  }

  //ouput of change month
  monthChange($event: any){
    console.log($event);
  }
```

***In HTML template***

```html
<!--calendar control-->
<applab-calendar [config]="configCalendar" (daySelect)="selectDate($event)"></applab-calendar>

<!--time selecter control-->
<applab-time-select [Config]="configTime" [(ngModel)]="selectTimer" (timeSelect)="time($event)" (monthChange)="monthChange($event)">
</applab-time-select>

<!--numer selecter control-->
<applab-number-select [config]="config" [(ngModel)]="seletNumer"></applab-number-select>
```

# Create by

`Luis Arturo Chavez Mendoza arturo.applab@gmail.com`

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