aeb-ui-kit 2.2.0-preview.539 → 2.2.0-preview.542
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/code-input/code-input.component.mjs +60 -19
- package/esm2020/lib/code-input/code-input.module.mjs +5 -5
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/aeb-ui-kit.mjs +65 -22
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +62 -22
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/code-input/code-input.component.d.ts +13 -9
- package/lib/code-input/code-input.module.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormArray, FormGroup } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CodeInputComponent {
|
|
4
|
+
export declare class CodeInputComponent implements OnInit, ControlValueAccessor {
|
|
4
5
|
title: string;
|
|
5
6
|
secondsUntilRetry: number;
|
|
6
7
|
tip: string;
|
|
8
|
+
wrongCode: boolean;
|
|
7
9
|
codeSet: EventEmitter<Event>;
|
|
8
10
|
timeOut: EventEmitter<Event>;
|
|
9
11
|
resendClick: EventEmitter<Event>;
|
|
10
12
|
time: number;
|
|
11
|
-
inputs: string[];
|
|
12
|
-
isPaste: boolean;
|
|
13
13
|
sendAgain: boolean;
|
|
14
|
-
showLoader: boolean;
|
|
15
|
-
wrongCode: boolean;
|
|
16
14
|
showTimer: boolean;
|
|
17
|
-
|
|
15
|
+
form: FormGroup;
|
|
16
|
+
onChange: (_: string[]) => void;
|
|
17
|
+
onTouch: (_: string[]) => void;
|
|
18
18
|
private interval;
|
|
19
19
|
get classes(): string;
|
|
20
|
+
get inputs(): FormArray;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
writeValue(value: string[]): void;
|
|
23
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
24
|
+
registerOnTouched(fn: (_: any) => void): void;
|
|
20
25
|
startTimer(): void;
|
|
21
|
-
trackByInput(index: number): any;
|
|
22
26
|
onMove(e: KeyboardEvent, i: number): void;
|
|
23
27
|
onPaste(e: ClipboardEvent): boolean;
|
|
24
28
|
onSubmit(): void;
|
|
@@ -26,5 +30,5 @@ export declare class CodeInputComponent {
|
|
|
26
30
|
resend(): void;
|
|
27
31
|
numberOnly(e: KeyboardEvent): boolean;
|
|
28
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CodeInputComponent, "aeb-code-input", never, { "title": "title"; "secondsUntilRetry": "secondsUntilRetry"; "tip": "tip"; }, { "codeSet": "codeSet"; "timeOut": "timeOut"; "resendClick": "resendClick"; }, never, never, false>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeInputComponent, "aeb-code-input", never, { "title": "title"; "secondsUntilRetry": "secondsUntilRetry"; "tip": "tip"; "wrongCode": "wrongCode"; }, { "codeSet": "codeSet"; "timeOut": "timeOut"; "resendClick": "resendClick"; }, never, never, false>;
|
|
30
34
|
}
|
|
@@ -4,6 +4,6 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
export declare class CodeInputModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CodeInputModule, [typeof i1.CodeInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CodeInputComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CodeInputModule, [typeof i1.CodeInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule], [typeof i1.CodeInputComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<CodeInputModule>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "aeb-ui-kit", "version": "2.2.0-preview.
|
|
1
|
+
{ "name": "aeb-ui-kit", "version": "2.2.0-preview.542", "peerDependencies": { "@angular/animations": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/common": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/compiler": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/core": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/forms": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser-dynamic": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/router": "^14.1.0 || ^15.0.0 || ^16.0.0", "date-fns": "2.28.0", "ngx-mask": "^14.2.4", "rxjs": "^7.0.0", "sass": "^1.53.0", "zone.js": "^0.11.0 || ^0.12.0 || ^0.13.0" }, "module": "fesm2015/aeb-ui-kit.mjs", "es2020": "fesm2020/aeb-ui-kit.mjs", "esm2020": "esm2020/aeb-ui-kit.mjs", "fesm2020": "fesm2020/aeb-ui-kit.mjs", "fesm2015": "fesm2015/aeb-ui-kit.mjs", "typings": "index.d.ts", "exports": { "./package.json": { "default": "./package.json" }, ".": { "types": "./index.d.ts", "esm2020": "./esm2020/aeb-ui-kit.mjs", "es2020": "./fesm2020/aeb-ui-kit.mjs", "es2015": "./fesm2015/aeb-ui-kit.mjs", "node": "./fesm2015/aeb-ui-kit.mjs", "default": "./fesm2020/aeb-ui-kit.mjs" } }, "sideEffects": false, "dependencies": { "tslib": "^2.4.0" } }
|
package/public-api.d.ts
CHANGED
|
@@ -98,3 +98,5 @@ export * from './lib/pagination/pagination.module';
|
|
|
98
98
|
export * from './lib/pagination/pagination.component';
|
|
99
99
|
export * from './lib/response/response.component';
|
|
100
100
|
export * from './lib/response/response.module';
|
|
101
|
+
export * from './lib/code-input/code-input.module';
|
|
102
|
+
export * from './lib/code-input/code-input.component';
|