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 - 12+ projects.<br />
8+ Robust and <b >tested</b > code (number/chars) input component for Angular 7 - 12, 14 + projects.<br />
99Ionic 4, 5 + is supported, can be used in iOS and Android.<br />
1010<b >Clipboard</b > events are supported.
1111
@@ -19,7 +19,7 @@ Preview
1919
2020## Supported platforms
2121
22- <b >Angular</b > 7, 8, 9, 10, 11, 12 +<br />
22+ <b >Angular</b > 7, 8, 9, 10, 11, 12, 14 +<br />
2323<b >Ionic</b > 4, 5 +<br />
2424Mobile browsers and WebViews on: <b >Android</b > and <b >iOS</b ><br />
2525Desktop browsers: <b >Chrome, Firefox, Safari, Edge v.79 +</b ><br />
@@ -67,7 +67,7 @@ Include the component on page template HTML:
6767 [codeLength] =" 5"
6868 (codeChanged) =" onCodeChanged($event)"
6969 (codeCompleted) =" onCodeCompleted($event)" >
70- </code-input >
70+ </code-input >
7171```
7272
7373Inside a page script:
@@ -92,21 +92,22 @@ It is possible to configure the component via CSS vars
9292
9393CSS vars:
9494
95- | CSS Var | Description |
96- | ----------| --------------------|
97- | ` --text-security-type: disc; ` | Text presentation type when the isCodeHidden is enabled |
98- | ` --item-spacing: 4px; ` | Horizontal space between input items |
99- | ` --item-height: 4.375em; ` | Height of input items |
100- | ` --item-border: 1px solid #dddddd; ` | Border of input item for an empty value |
101- | ` --item-border-bottom: 1px solid #dddddd; ` | Bottom border of input item for an empty value |
102- | ` --item-border-has-value: 1px solid #dddddd; ` | Border of input item with a value |
103- | ` --item-border-bottom-has-value: 1px solid #dddddd; ` | Bottom border of input item with a value |
104- | ` --item-border-focused: 1px solid #dddddd; ` | Border of input item when focused |
105- | ` --item-border-bottom-focused: 1px solid #dddddd; ` | Bottom border of input item when focused |
106- | ` --item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1); ` | Shadow of input item when focused |
107- | ` --item-border-radius: 5px; ` | Border radius of input item |
108- | ` --item-background: transparent; ` | Input item background |
109- | ` --color: #171516; ` | Text color of input items |
95+ | CSS Var | Description |
96+ | --------------------------------------------------------------| --------------------------------------------------------|
97+ | ` --text-security-type: disc; ` | Text presentation type when the isCodeHidden is enabled |
98+ | ` --item-spacing: 4px; ` | Horizontal space between input items |
99+ | ` --item-height: 4.375em; ` | Height of input items |
100+ | ` --item-border: 1px solid #dddddd; ` | Border of input item for an empty value |
101+ | ` --item-border-bottom: 1px solid #dddddd; ` | Bottom border of input item for an empty value |
102+ | ` --item-border-has-value: 1px solid #dddddd; ` | Border of input item with a value |
103+ | ` --item-border-bottom-has-value: 1px solid #dddddd; ` | Bottom border of input item with a value |
104+ | ` --item-border-focused: 1px solid #dddddd; ` | Border of input item when focused |
105+ | ` --item-border-bottom-focused: 1px solid #dddddd; ` | Bottom border of input item when focused |
106+ | ` --item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1); ` | Shadow of input item when focused |
107+ | ` --item-border-radius: 5px; ` | Border radius of input item |
108+ | ` --item-background: transparent; ` | Input item background |
109+ | ` --item-font-weight: 300; ` | Font weight of input item |
110+ | ` --color: #171516; ` | Text color of input items |
110111
111112Example with only bottom borders:
112113
@@ -158,10 +159,10 @@ It can be reached as follows.
158159Inside the page template HTML add a template ref:
159160
160161``` html
161- <code-input
162- ...
163- #codeInput
164- ...
162+ <code-input
163+ ...
164+ #codeInput
165+ ...
165166>
166167</code-input >
167168```
0 commit comments