aeb-ui-kit 9.0.0-preview.990 → 9.0.0-rc.1002
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 +47 -9
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/lib/autofocus/autofocus.directive.d.ts +10 -0
- package/lib/code-input/code-input.component.d.ts +5 -2
- package/lib/code-input/code-input.module.d.ts +2 -1
- package/lib/select/select.namespace.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -280,7 +280,7 @@ class CheckboxComponent {
|
|
|
280
280
|
this.isChecked = !this.isChecked;
|
|
281
281
|
this._onTouched();
|
|
282
282
|
this._onChangeFn(this.isChecked);
|
|
283
|
-
this.change.emit(
|
|
283
|
+
this.change.emit(this.isChecked);
|
|
284
284
|
}
|
|
285
285
|
writeValue(value) {
|
|
286
286
|
if (value === null || value === '') {
|
|
@@ -531,10 +531,35 @@ 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() {
|
|
559
|
+
this.secondsUntilRetry = 60;
|
|
536
560
|
this.codeLength = 6;
|
|
537
561
|
this.hasError = false;
|
|
562
|
+
this.isAutofocus = true;
|
|
538
563
|
this.codeCompleted = new EventEmitter();
|
|
539
564
|
this.timeOut = new EventEmitter();
|
|
540
565
|
this.resendClick = new EventEmitter();
|
|
@@ -548,6 +573,7 @@ class CodeInputComponent {
|
|
|
548
573
|
}
|
|
549
574
|
ngOnInit() {
|
|
550
575
|
this.startTimer();
|
|
576
|
+
this.handleFocus();
|
|
551
577
|
}
|
|
552
578
|
inputChangeHandler(event) {
|
|
553
579
|
const target = event.target;
|
|
@@ -603,18 +629,25 @@ class CodeInputComponent {
|
|
|
603
629
|
this.clear();
|
|
604
630
|
this.startTimer();
|
|
605
631
|
this.resendClick.emit();
|
|
632
|
+
this.input.nativeElement.focus();
|
|
633
|
+
this.isFocus = true;
|
|
606
634
|
}
|
|
607
635
|
handleBlur() {
|
|
608
636
|
this.isFocus = false;
|
|
609
637
|
}
|
|
638
|
+
handleFocus() {
|
|
639
|
+
if (this.isAutofocus) {
|
|
640
|
+
this.isFocus = true;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
610
643
|
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: "
|
|
644
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.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
645
|
{
|
|
613
646
|
provide: NG_VALUE_ACCESSOR,
|
|
614
647
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
615
648
|
multi: true
|
|
616
649
|
}
|
|
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);
|
|
650
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\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);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
651
|
}
|
|
619
652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputComponent, decorators: [{
|
|
620
653
|
type: Component,
|
|
@@ -624,7 +657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
624
657
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
625
658
|
multi: true
|
|
626
659
|
}
|
|
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);
|
|
660
|
+
], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\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);cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"] }]
|
|
628
661
|
}], propDecorators: { title: [{
|
|
629
662
|
type: Input
|
|
630
663
|
}], secondsUntilRetry: [{
|
|
@@ -635,24 +668,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
635
668
|
type: Input
|
|
636
669
|
}], hasError: [{
|
|
637
670
|
type: Input
|
|
671
|
+
}], isAutofocus: [{
|
|
672
|
+
type: Input
|
|
638
673
|
}], codeCompleted: [{
|
|
639
674
|
type: Output
|
|
640
675
|
}], timeOut: [{
|
|
641
676
|
type: Output
|
|
642
677
|
}], resendClick: [{
|
|
643
678
|
type: Output
|
|
679
|
+
}], input: [{
|
|
680
|
+
type: ViewChild,
|
|
681
|
+
args: ['input']
|
|
644
682
|
}] } });
|
|
645
683
|
|
|
646
684
|
class CodeInputModule {
|
|
647
685
|
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] }); }
|
|
686
|
+
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
687
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] }); }
|
|
650
688
|
}
|
|
651
689
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputModule, decorators: [{
|
|
652
690
|
type: NgModule,
|
|
653
691
|
args: [{
|
|
654
692
|
declarations: [CodeInputComponent],
|
|
655
|
-
imports: [CommonModule, FormsModule, ReactiveFormsModule],
|
|
693
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, AutofocusDirective],
|
|
656
694
|
exports: [CodeInputComponent]
|
|
657
695
|
}]
|
|
658
696
|
}] });
|
|
@@ -4044,7 +4082,7 @@ class SelectComponent {
|
|
|
4044
4082
|
useExisting: forwardRef(() => SelectComponent),
|
|
4045
4083
|
multi: true
|
|
4046
4084
|
}
|
|
4047
|
-
], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:
|
|
4085
|
+
], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n <small *ngIf=\"option.additional\" [title]=\"option.additional\">{{\n option.additional\n }}</small>\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden}.aeb-select__menu-item.active,.aeb-select__menu-item:hover{background-color:var(--color-blue-50)}.aeb-select__menu-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item:has(small){padding:10px 14px}.aeb-select__menu-item:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\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: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4048
4086
|
}
|
|
4049
4087
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SelectComponent, decorators: [{
|
|
4050
4088
|
type: Component,
|
|
@@ -4059,7 +4097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
4059
4097
|
useExisting: forwardRef(() => SelectComponent),
|
|
4060
4098
|
multi: true
|
|
4061
4099
|
}
|
|
4062
|
-
], standalone: false, template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:
|
|
4100
|
+
], standalone: false, template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n <small *ngIf=\"option.additional\" [title]=\"option.additional\">{{\n option.additional\n }}</small>\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden}.aeb-select__menu-item.active,.aeb-select__menu-item:hover{background-color:var(--color-blue-50)}.aeb-select__menu-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item:has(small){padding:10px 14px}.aeb-select__menu-item:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
4063
4101
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { label: [{
|
|
4064
4102
|
type: Input
|
|
4065
4103
|
}], options: [{
|
|
@@ -5698,5 +5736,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
5698
5736
|
* Generated bundle index. Do not edit.
|
|
5699
5737
|
*/
|
|
5700
5738
|
|
|
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 };
|
|
5739
|
+
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
5740
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|