Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fd65101
Updated environment to Angular 14.0.+
Jul 12, 2022
549aea9
Added CSS var '--item-font-weight' to README
AlexMiniApps Aug 9, 2022
8896f75
Merge pull request #81 from ISTAnsver/master
AlexMiniApps Aug 9, 2022
b6958e1
Moved package-lock.json to v1 for the backward compatibility
AlexMiniApps Aug 9, 2022
b7733b7
Updated environment to Angular 14.1.+
AlexMiniApps Aug 9, 2022
1807b14
Added 'compilationMode' to the tsconfig for the backward compatibility
AlexMiniApps Aug 9, 2022
0239a35
Bump loader-utils from 2.0.2 to 2.0.3
dependabot[bot] Nov 9, 2022
891df11
Merge pull request #86 from AlexMiniApps/dependabot/npm_and_yarn/load…
AlexMiniApps Nov 15, 2022
143e4cb
Bump loader-utils from 2.0.3 to 2.0.4
dependabot[bot] Nov 16, 2022
86fae7c
Bump engine.io from 6.2.0 to 6.2.1
dependabot[bot] Nov 22, 2022
34e33ab
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 5, 2022
8dbb5f8
Bump json5 from 2.2.1 to 2.2.3
dependabot[bot] Jan 9, 2023
cf395e4
Merge pull request #93 from AlexMiniApps/dependabot/npm_and_yarn/json…
AlexMiniApps Jan 23, 2023
f9cb6af
Merge pull request #91 from AlexMiniApps/dependabot/npm_and_yarn/deco…
AlexMiniApps Jan 23, 2023
97c5a4a
Merge pull request #87 from AlexMiniApps/dependabot/npm_and_yarn/load…
AlexMiniApps Jan 23, 2023
10c7776
Merge pull request #88 from AlexMiniApps/dependabot/npm_and_yarn/engi…
AlexMiniApps Jan 23, 2023
f249e41
Bump ua-parser-js from 0.7.31 to 0.7.33
dependabot[bot] Jan 27, 2023
53f60f1
Bump http-cache-semantics from 4.1.0 to 4.1.1
dependabot[bot] Feb 3, 2023
1ab5d4f
Merge pull request #95 from AlexMiniApps/dependabot/npm_and_yarn/ua-p…
AlexMiniApps Apr 27, 2023
37b6ba5
Merge pull request #96 from AlexMiniApps/dependabot/npm_and_yarn/http…
AlexMiniApps Apr 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
.angular

# System Files
.DS_Store
Expand Down
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
![](https://badgen.net/badge/icon/typescript?icon=typescript&label&color=99aabb)
![](https://img.shields.io/github/license/AlexMiniApps/angular-code-input?color=00ccbb)

Robust and <b>tested</b> code (number/chars) input component for Angular 7 - 12+ projects.<br />
Robust and <b>tested</b> code (number/chars) input component for Angular 7 - 12, 14+ projects.<br />
Ionic 4, 5 + is supported, can be used in iOS and Android.<br />
<b>Clipboard</b> events are supported.

Expand All @@ -19,7 +19,7 @@ Preview

## Supported platforms

<b>Angular</b> 7, 8, 9, 10, 11, 12 +<br />
<b>Angular</b> 7, 8, 9, 10, 11, 12, 14 +<br />
<b>Ionic</b> 4, 5 +<br />
Mobile browsers and WebViews on: <b>Android</b> and <b>iOS</b><br />
Desktop browsers: <b>Chrome, Firefox, Safari, Edge v.79 +</b><br />
Expand Down Expand Up @@ -67,7 +67,7 @@ Include the component on page template HTML:
[codeLength]="5"
(codeChanged)="onCodeChanged($event)"
(codeCompleted)="onCodeCompleted($event)">
</code-input>
</code-input>
```

Inside a page script:
Expand All @@ -92,21 +92,22 @@ It is possible to configure the component via CSS vars

CSS vars:

| CSS Var | Description |
|----------|--------------------|
| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled |
| `--item-spacing: 4px;` | Horizontal space between input items |
| `--item-height: 4.375em;` | Height of input items |
| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value |
| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value |
| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value |
| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value |
| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused |
| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused |
| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused |
| `--item-border-radius: 5px;` | Border radius of input item |
| `--item-background: transparent;` | Input item background |
| `--color: #171516;` | Text color of input items |
| CSS Var | Description |
|--------------------------------------------------------------|--------------------------------------------------------|
| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled |
| `--item-spacing: 4px;` | Horizontal space between input items |
| `--item-height: 4.375em;` | Height of input items |
| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value |
| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value |
| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value |
| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value |
| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused |
| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused |
| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused |
| `--item-border-radius: 5px;` | Border radius of input item |
| `--item-background: transparent;` | Input item background |
| `--item-font-weight: 300;` | Font weight of input item |
| `--color: #171516;` | Text color of input items |

Example with only bottom borders:

Expand Down Expand Up @@ -158,10 +159,10 @@ It can be reached as follows.
Inside the page template HTML add a template ref:

```html
<code-input
...
#codeInput
...
<code-input
...
#codeInput
...
>
</code-input>
```
Expand Down
47 changes: 24 additions & 23 deletions angular-code-input/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code/pincode input component for angular
# Code/pincode input component for angular

![](https://img.shields.io/npm/dm/angular-code-input?color=55aa33)
![](https://img.shields.io/github/stars/AlexMiniApps/angular-code-input)
Expand Down Expand Up @@ -86,27 +86,28 @@ Inside a page script:

#### View

It is possible to configure the component via CSS vars
It is possible to configure the component via CSS vars
<br />or using `::ng-deep` (deprecated) angular CSS selector
[::ng-deep](https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep)

CSS vars:

| CSS Var | Description |
|----------|--------------------|
| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled |
| `--item-spacing: 4px;` | Horizontal space between input items |
| `--item-height: 4.375em;` | Height of input items |
| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value |
| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value |
| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value |
| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value |
| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused |
| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused |
| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused |
| `--item-border-radius: 5px;` | Border radius of input item |
| `--item-background: transparent;` | Input item background |
| `--color: #171516;` | Text color of input items |
| CSS Var | Description |
|--------------------------------------------------------------|--------------------------------------------------------|
| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled |
| `--item-spacing: 4px;` | Horizontal space between input items |
| `--item-height: 4.375em;` | Height of input items |
| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value |
| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value |
| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value |
| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value |
| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused |
| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused |
| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused |
| `--item-border-radius: 5px;` | Border radius of input item |
| `--item-background: transparent;` | Input item background |
| `--item-font-weight: 300;` | Font weight of input item |
| `--color: #171516;` | Text color of input items |

Example with only bottom borders:

Expand Down Expand Up @@ -158,12 +159,12 @@ It can be reached as follows.
Inside the page template HTML add a template ref:

```html
<code-input
...
#codeInput
...
>
</code-input>
<code-input
...
#codeInput
...
>
</code-input>
```

Inside a page script attach the component:
Expand Down
2 changes: 1 addition & 1 deletion angular-code-input/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-code-input",
"version": "1.6.0",
"description": "Code or pin code input for Angular 7 - 12 + / Ionic 4, 5 + projects",
"description": "Code or pin code input for Angular 7 - 12, 14 + / Ionic 4, 5 + projects",
"keywords": ["angular", "pincode", "angular-pincode", "otp", "code-input", "angular-otp", "ionic-otp", "ionic-code-input", "ionic-pincode"],
"author": "Alexander Dmitrenko",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion angular-code-input/src/lib/code-input.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
(input)="onInput($event, i)"
(keydown)="onKeydown($event, i)"
[type]="inputType"
[inputmode]="inputMode"
[disabled]="disabled"
[attr.inputmode]="inputMode"
[attr.autocapitalize]="autocapitalize"
autocomplete="one-time-code"/>
</span>
Loading