Skip to content

Commit f76f3c4

Browse files
committed
Release v 1.5.0:
- Have implemented the feature #28 - Have fixed the issue #36
1 parent ebf2f51 commit f76f3c4

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

README.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Code/pincode input component for angular
1+
# Code/pincode input component for angular
22

33
![](https://img.shields.io/npm/dm/angular-code-input?color=55aa33)
44
![](https://img.shields.io/github/stars/AlexMiniApps/angular-code-input)
55
![](https://badgen.net/badge/icon/typescript?icon=typescript&label&color=99aabb)
66
![](https://img.shields.io/github/license/AlexMiniApps/angular-code-input?color=00ccbb)
77

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

12-
<img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/> Star it to inspire us to build the best component!
12+
<img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/> Star it to inspire us to build the best component! <img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/>
1313

1414
Preview
1515

@@ -19,7 +19,7 @@ Preview
1919

2020
## Supported platforms
2121

22-
<b>Angular</b> 7, 8, 9, 10, 11 +<br />
22+
<b>Angular</b> 7, 8, 9, 10, 11, 12 +<br />
2323
<b>Ionic</b> 4, 5 +<br />
2424
Mobile browsers and WebViews on: <b>Android</b> and <b>iOS</b><br />
2525
Desktop browsers: <b>Chrome, Firefox, Safari, Edge v.79 +</b><br />
@@ -86,7 +86,7 @@ Inside a page script:
8686

8787
#### View
8888

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

@@ -140,6 +140,7 @@ Example with only bottom borders:
140140
| <b>`isFocusingOnLastByClickIfFilled`</b> | boolean | false | When `true` and the code is filled then the focus will be moved to the last input element when clicked |
141141
| <b>`initialFocusField`</b> | number | - | The index of the input box for initial focusing. When the component will appear the focus will be placed on the input with this index. <br/> Note: If you need to dynamically hide the component it is needed to use <b>*ngIf</b> directive instead of the `[hidden]` attribute |
142142
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isCharsCode` is `false` the value will be <b>ignored</b> |
143+
| <b>`disabled`</b> | boolean | false | When `true` then the component will not handle user actions, like in regular html input element with the `disabled` attribute |
143144

144145
#### Events
145146

@@ -156,12 +157,12 @@ It can be reached as follows.
156157
Inside the page template HTML add a template ref:
157158

158159
```html
159-
<code-input
160-
...
161-
#codeInput
162-
...
163-
>
164-
</code-input>
160+
<code-input
161+
...
162+
#codeInput
163+
...
164+
>
165+
</code-input>
165166
```
166167

167168
Inside a page script attach the component:

angular-code-input/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.5.0 (09.02.2021)
2+
**Note:** The following changes have been made:
3+
- Have implemented the feature 'Disabled state' [#28](https://github.com/AlexMiniApps/angular-code-input/issues/28)
4+
- Have fixed the issue 'Insert code "from messages" doesn't appear on iOS' [#36](https://github.com/AlexMiniApps/angular-code-input/issues/36)
5+
16
# 1.4.0 (09.02.2021)
27
**Note:** The following changes have been made:
38
- Have fixed the issue 'initialFocusField not working for 0 as index bug' [#26](https://github.com/AlexMiniApps/angular-code-input/issues/26)

angular-code-input/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
![](https://badgen.net/badge/icon/typescript?icon=typescript&label&color=99aabb)
66
![](https://img.shields.io/github/license/AlexMiniApps/angular-code-input?color=00ccbb)
77

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

12-
<img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/> Star it to inspire us to build the best component!
12+
<img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/> Star it to inspire us to build the best component! <img src="https://github.com/AlexMiniApps/angular-code-input/blob/master/star.jpg" alt="Star"/>
1313

1414
Preview
1515

@@ -19,7 +19,7 @@ Preview
1919

2020
## Supported platforms
2121

22-
<b>Angular</b> 7, 8, 9, 10, 11 +<br />
22+
<b>Angular</b> 7, 8, 9, 10, 11, 12 +<br />
2323
<b>Ionic</b> 4, 5 +<br />
2424
Mobile browsers and WebViews on: <b>Android</b> and <b>iOS</b><br />
2525
Desktop browsers: <b>Chrome, Firefox, Safari, Edge v.79 +</b><br />
@@ -140,6 +140,7 @@ Example with only bottom borders:
140140
| <b>`isFocusingOnLastByClickIfFilled`</b> | boolean | false | When `true` and the code is filled then the focus will be moved to the last input element when clicked |
141141
| <b>`initialFocusField`</b> | number | - | The index of the input box for initial focusing. When the component will appear the focus will be placed on the input with this index. <br/> Note: If you need to dynamically hide the component it is needed to use <b>*ngIf</b> directive instead of the `[hidden]` attribute |
142142
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isCharsCode` is `false` the value will be <b>ignored</b> |
143+
| <b>`disabled`</b> | boolean | false | When `true` then the component will not handle user actions, like in regular html input element with the `disabled` attribute |
143144

144145
#### Events
145146

angular-code-input/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-code-input",
3-
"version": "1.4.0",
4-
"description": "Code or pin code input for Angular 7 - 11+ / Ionic 4, 5 + projects",
3+
"version": "1.5.0",
4+
"description": "Code or pin code input for Angular 7 - 12 + / Ionic 4, 5 + projects",
55
"keywords": ["angular", "pincode", "angular-pincode", "otp", "code-input", "angular-otp", "ionic-otp", "ionic-code-input", "ionic-pincode"],
66
"author": "Alexander Dmitrenko",
77
"license": "MIT",

0 commit comments

Comments
 (0)