aeb-ui-kit 9.0.0-preview.990 → 9.0.0-preview.996
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/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -531,10 +531,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
531
531
|
}]
|
|
532
532
|
}] });
|
|
533
533
|
|
|
534
|
+
class AutofocusDirective {
|
|
535
|
+
constructor(elementRef) {
|
|
536
|
+
this.elementRef = elementRef;
|
|
537
|
+
this.autofocus = true;
|
|
538
|
+
}
|
|
539
|
+
ngAfterViewInit() {
|
|
540
|
+
if (this.autofocus) {
|
|
541
|
+
this.elementRef.nativeElement.focus();
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
545
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0", type: AutofocusDirective, isStandalone: true, selector: "[autofocus]", inputs: { autofocus: "autofocus" }, ngImport: i0 }); }
|
|
546
|
+
}
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
548
|
+
type: Directive,
|
|
549
|
+
args: [{
|
|
550
|
+
selector: '[autofocus]',
|
|
551
|
+
standalone: true
|
|
552
|
+
}]
|
|
553
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { autofocus: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}] } });
|
|
556
|
+
|
|
534
557
|
class CodeInputComponent {
|
|
535
558
|
constructor() {
|
|
536
559
|
this.codeLength = 6;
|
|
537
560
|
this.hasError = false;
|
|
561
|
+
this.isAutofocus = true;
|
|
538
562
|
this.codeCompleted = new EventEmitter();
|
|
539
563
|
this.timeOut = new EventEmitter();
|
|
540
564
|
this.resendClick = new EventEmitter();
|
|
@@ -548,6 +572,7 @@ class CodeInputComponent {
|
|
|
548
572
|
}
|
|
549
573
|
ngOnInit() {
|
|
550
574
|
this.startTimer();
|
|
575
|
+
this.handleFocus();
|
|
551
576
|
}
|
|
552
577
|
inputChangeHandler(event) {
|
|
553
578
|
const target = event.target;
|
|
@@ -607,14 +632,19 @@ class CodeInputComponent {
|
|
|
607
632
|
handleBlur() {
|
|
608
633
|
this.isFocus = false;
|
|
609
634
|
}
|
|
635
|
+
handleFocus() {
|
|
636
|
+
if (this.isAutofocus) {
|
|
637
|
+
this.isFocus = true;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
610
640
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
611
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: CodeInputComponent, isStandalone: false, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip", codeLength: "codeLength", hasError: "hasError" }, outputs: { codeCompleted: "codeCompleted", timeOut: "timeOut", resendClick: "resendClick" }, providers: [
|
|
641
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: CodeInputComponent, isStandalone: false, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip", codeLength: "codeLength", hasError: "hasError", isAutofocus: "isAutofocus" }, outputs: { codeCompleted: "codeCompleted", timeOut: "timeOut", resendClick: "resendClick" }, providers: [
|
|
612
642
|
{
|
|
613
643
|
provide: NG_VALUE_ACCESSOR,
|
|
614
644
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
615
645
|
multi: true
|
|
616
646
|
}
|
|
617
|
-
], ngImport: i0, template: "<div class=\"aeb-code-input\">\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n <span\n class=\"aeb-code-input__field-input\"\n *ngFor=\"let value of [].constructor(codeLength); let i = index\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n </div>\n <div class=\"aeb-code-input__text\">\n <span class=\"aeb-code-input__text-wrong\" *ngIf=\"hasError\"\n >\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span\n >\n <div class=\"aeb-code-input__text-wrapper\" *ngIf=\"showTimer\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n <span\n *ngIf=\"showCodeText\"\n class=\"aeb-code-input__text-again\"\n (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);text-decoration:underline;cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
647
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-code-input\">\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n <span\n class=\"aeb-code-input__field-input\"\n *ngFor=\"let value of [].constructor(codeLength); let i = index\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n </div>\n <div class=\"aeb-code-input__text\">\n <span class=\"aeb-code-input__text-wrong\" *ngIf=\"hasError\"\n >\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span\n >\n <div class=\"aeb-code-input__text-wrapper\" *ngIf=\"showTimer\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n <span\n *ngIf=\"showCodeText\"\n class=\"aeb-code-input__text-again\"\n (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);text-decoration:underline;cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
618
648
|
}
|
|
619
649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputComponent, decorators: [{
|
|
620
650
|
type: Component,
|
|
@@ -624,7 +654,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
624
654
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
625
655
|
multi: true
|
|
626
656
|
}
|
|
627
|
-
], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-code-input\">\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n <span\n class=\"aeb-code-input__field-input\"\n *ngFor=\"let value of [].constructor(codeLength); let i = index\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n </div>\n <div class=\"aeb-code-input__text\">\n <span class=\"aeb-code-input__text-wrong\" *ngIf=\"hasError\"\n >\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span\n >\n <div class=\"aeb-code-input__text-wrapper\" *ngIf=\"showTimer\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n <span\n *ngIf=\"showCodeText\"\n class=\"aeb-code-input__text-again\"\n (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);text-decoration:underline;cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"] }]
|
|
657
|
+
], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-code-input\">\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n <span\n class=\"aeb-code-input__field-input\"\n *ngFor=\"let value of [].constructor(codeLength); let i = index\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n </div>\n <div class=\"aeb-code-input__text\">\n <span class=\"aeb-code-input__text-wrong\" *ngIf=\"hasError\"\n >\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span\n >\n <div class=\"aeb-code-input__text-wrapper\" *ngIf=\"showTimer\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n <span\n *ngIf=\"showCodeText\"\n class=\"aeb-code-input__text-again\"\n (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);text-decoration:underline;cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"] }]
|
|
628
658
|
}], propDecorators: { title: [{
|
|
629
659
|
type: Input
|
|
630
660
|
}], secondsUntilRetry: [{
|
|
@@ -635,24 +665,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
635
665
|
type: Input
|
|
636
666
|
}], hasError: [{
|
|
637
667
|
type: Input
|
|
668
|
+
}], isAutofocus: [{
|
|
669
|
+
type: Input
|
|
638
670
|
}], codeCompleted: [{
|
|
639
671
|
type: Output
|
|
640
672
|
}], timeOut: [{
|
|
641
673
|
type: Output
|
|
642
674
|
}], resendClick: [{
|
|
643
675
|
type: Output
|
|
676
|
+
}], input: [{
|
|
677
|
+
type: ViewChild,
|
|
678
|
+
args: ['input']
|
|
644
679
|
}] } });
|
|
645
680
|
|
|
646
681
|
class CodeInputModule {
|
|
647
682
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
648
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CodeInputComponent] }); }
|
|
683
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule, AutofocusDirective], exports: [CodeInputComponent] }); }
|
|
649
684
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] }); }
|
|
650
685
|
}
|
|
651
686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, decorators: [{
|
|
652
687
|
type: NgModule,
|
|
653
688
|
args: [{
|
|
654
689
|
declarations: [CodeInputComponent],
|
|
655
|
-
imports: [CommonModule, FormsModule, ReactiveFormsModule],
|
|
690
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, AutofocusDirective],
|
|
656
691
|
exports: [CodeInputComponent]
|
|
657
692
|
}]
|
|
658
693
|
}] });
|
|
@@ -5698,5 +5733,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
5698
5733
|
* Generated bundle index. Do not edit.
|
|
5699
5734
|
*/
|
|
5700
5735
|
|
|
5701
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5736
|
+
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5702
5737
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|