aeb-ui-kit 9.0.0-preview.996 → 9.0.0-rc.1011
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 +46 -19
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/lib/code-input/code-input.component.d.ts +2 -2
- package/lib/select/select.namespace.d.ts +1 -0
- package/lib/stepper/pipes/line-width.pipe.d.ts +7 -0
- package/lib/stepper/stepper.component.d.ts +2 -0
- package/lib/stepper/stepper.module.d.ts +2 -1
- package/package.json +2 -2
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import { timer, map, takeUntil, Observable, BehaviorSubject, Subject, Subscription, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap } from 'rxjs';
|
|
7
|
+
import { timer, map, takeUntil, Observable, BehaviorSubject, Subject, Subscription, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap, fromEvent, debounceTime } from 'rxjs';
|
|
8
8
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
9
9
|
import * as i2 from '@angular/platform-browser';
|
|
10
10
|
import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
|
|
11
11
|
import { ru } from 'date-fns/locale';
|
|
12
12
|
import '@angular/common/locales/global/ru';
|
|
13
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
14
|
|
|
14
15
|
class AccordionComponent {
|
|
15
16
|
constructor() {
|
|
@@ -280,7 +281,7 @@ class CheckboxComponent {
|
|
|
280
281
|
this.isChecked = !this.isChecked;
|
|
281
282
|
this._onTouched();
|
|
282
283
|
this._onChangeFn(this.isChecked);
|
|
283
|
-
this.change.emit(
|
|
284
|
+
this.change.emit(this.isChecked);
|
|
284
285
|
}
|
|
285
286
|
writeValue(value) {
|
|
286
287
|
if (value === null || value === '') {
|
|
@@ -556,6 +557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
556
557
|
|
|
557
558
|
class CodeInputComponent {
|
|
558
559
|
constructor() {
|
|
560
|
+
this.secondsUntilRetry = 60;
|
|
559
561
|
this.codeLength = 6;
|
|
560
562
|
this.hasError = false;
|
|
561
563
|
this.isAutofocus = true;
|
|
@@ -628,6 +630,8 @@ class CodeInputComponent {
|
|
|
628
630
|
this.clear();
|
|
629
631
|
this.startTimer();
|
|
630
632
|
this.resendClick.emit();
|
|
633
|
+
this.input.nativeElement.focus();
|
|
634
|
+
this.isFocus = true;
|
|
631
635
|
}
|
|
632
636
|
handleBlur() {
|
|
633
637
|
this.isFocus = false;
|
|
@@ -638,13 +642,13 @@ class CodeInputComponent {
|
|
|
638
642
|
}
|
|
639
643
|
}
|
|
640
644
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
641
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
645
|
+
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: [
|
|
642
646
|
{
|
|
643
647
|
provide: NG_VALUE_ACCESSOR,
|
|
644
648
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
645
649
|
multi: true
|
|
646
650
|
}
|
|
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);
|
|
651
|
+
], 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 }); }
|
|
648
652
|
}
|
|
649
653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CodeInputComponent, decorators: [{
|
|
650
654
|
type: Component,
|
|
@@ -654,7 +658,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
654
658
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
655
659
|
multi: true
|
|
656
660
|
}
|
|
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);
|
|
661
|
+
], 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"] }]
|
|
658
662
|
}], propDecorators: { title: [{
|
|
659
663
|
type: Input
|
|
660
664
|
}], secondsUntilRetry: [{
|
|
@@ -3289,11 +3293,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
3289
3293
|
|
|
3290
3294
|
class FooterMenuComponent extends BaseContentProjectableFooterComponent {
|
|
3291
3295
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: FooterMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3292
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: FooterMenuComponent, isStandalone: false, selector: "aeb-footer-menu", inputs: { items: "items" }, usesInheritance: true, ngImport: i0, template: "<div #content *ngIf=\"hasContent; else defaultContent\">\n <ng-content></ng-content>\n</div>\n<ng-template #defaultContent>\n <div class=\"aeb-footer-menu\">\n <ul class=\"aeb-footer-menu__wrapper\">\n <li *ngFor=\"let item of items\" class=\"aeb-footer-menu__item\">\n <a [href]=\"item.link\">\n {{ item.name }}\n </a>\n </li>\n <div class=\"aeb-footer-menu__item--feedback\" style=\"cursor: pointer\">\n <a href=\"/ru/feedback\">\u0421\u0432\u044F\u0437\u044C \u0441 \u0411\u0430\u043D\u043A\u043E\u043C</a>\n </div>\n </ul>\n </div>\n</ng-template>\n", styles: [".aeb-footer-menu{position:relative;box-sizing:border-box;display:flex;width:100%;padding:24px 0;border-bottom:1px solid rgba(var(--color-mono-clear),10%)}@media screen and (max-width: 992px){.aeb-footer-menu{flex-direction:column;align-items:flex-start}}.aeb-footer-menu a{color:var(--color-mono-0);text-decoration:none}.aeb-footer-menu__wrapper{box-sizing:border-box;display:flex;flex:0 0 100%;padding-left:0;margin:0;font-size:var(--font-size-m);line-height:26px}@media screen and (max-width: 992px){.aeb-footer-menu__wrapper{display:flex;flex-direction:column;align-items:flex-start;width:271px}}.aeb-footer-menu__item{font-size:var(--font-size-m);color:var(--color-mono-0);text-decoration:none;list-style:none}.aeb-footer-menu__item:not(:last-child){margin-right:36px}.aeb-footer-menu__item--feedback{box-sizing:border-box;margin-left:auto}@media screen and (max-width: 992px){.aeb-footer-menu__item--feedback{margin-left:0}}@media screen and (max-width: 992px){.aeb-footer-menu__item{margin-right:0}.aeb-footer-menu__item:not(:last-child){margin-bottom:24px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3296
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: FooterMenuComponent, isStandalone: false, selector: "aeb-footer-menu", inputs: { items: "items" }, usesInheritance: true, ngImport: i0, template: "<div #content *ngIf=\"hasContent; else defaultContent\">\n <ng-content></ng-content>\n</div>\n<ng-template #defaultContent>\n <div class=\"aeb-footer-menu\">\n <ul class=\"aeb-footer-menu__wrapper\">\n <li *ngFor=\"let item of items\" class=\"aeb-footer-menu__item\">\n <a [href]=\"item.link\">\n {{ item.name }}\n </a>\n </li>\n <div class=\"aeb-footer-menu__item--feedback\" style=\"cursor: pointer\">\n <a href=\"https://www.albank.ru/ru/feedback\">\u0421\u0432\u044F\u0437\u044C \u0441 \u0411\u0430\u043D\u043A\u043E\u043C</a>\n </div>\n </ul>\n </div>\n</ng-template>\n", styles: [".aeb-footer-menu{position:relative;box-sizing:border-box;display:flex;width:100%;padding:24px 0;border-bottom:1px solid rgba(var(--color-mono-clear),10%)}@media screen and (max-width: 992px){.aeb-footer-menu{flex-direction:column;align-items:flex-start}}.aeb-footer-menu a{color:var(--color-mono-0);text-decoration:none}.aeb-footer-menu__wrapper{box-sizing:border-box;display:flex;flex:0 0 100%;padding-left:0;margin:0;font-size:var(--font-size-m);line-height:26px}@media screen and (max-width: 992px){.aeb-footer-menu__wrapper{display:flex;flex-direction:column;align-items:flex-start;width:271px}}.aeb-footer-menu__item{font-size:var(--font-size-m);color:var(--color-mono-0);text-decoration:none;list-style:none}.aeb-footer-menu__item:not(:last-child){margin-right:36px}.aeb-footer-menu__item--feedback{box-sizing:border-box;margin-left:auto}@media screen and (max-width: 992px){.aeb-footer-menu__item--feedback{margin-left:0}}@media screen and (max-width: 992px){.aeb-footer-menu__item{margin-right:0}.aeb-footer-menu__item:not(:last-child){margin-bottom:24px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3293
3297
|
}
|
|
3294
3298
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: FooterMenuComponent, decorators: [{
|
|
3295
3299
|
type: Component,
|
|
3296
|
-
args: [{ selector: 'aeb-footer-menu', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div #content *ngIf=\"hasContent; else defaultContent\">\n <ng-content></ng-content>\n</div>\n<ng-template #defaultContent>\n <div class=\"aeb-footer-menu\">\n <ul class=\"aeb-footer-menu__wrapper\">\n <li *ngFor=\"let item of items\" class=\"aeb-footer-menu__item\">\n <a [href]=\"item.link\">\n {{ item.name }}\n </a>\n </li>\n <div class=\"aeb-footer-menu__item--feedback\" style=\"cursor: pointer\">\n <a href=\"/ru/feedback\">\u0421\u0432\u044F\u0437\u044C \u0441 \u0411\u0430\u043D\u043A\u043E\u043C</a>\n </div>\n </ul>\n </div>\n</ng-template>\n", styles: [".aeb-footer-menu{position:relative;box-sizing:border-box;display:flex;width:100%;padding:24px 0;border-bottom:1px solid rgba(var(--color-mono-clear),10%)}@media screen and (max-width: 992px){.aeb-footer-menu{flex-direction:column;align-items:flex-start}}.aeb-footer-menu a{color:var(--color-mono-0);text-decoration:none}.aeb-footer-menu__wrapper{box-sizing:border-box;display:flex;flex:0 0 100%;padding-left:0;margin:0;font-size:var(--font-size-m);line-height:26px}@media screen and (max-width: 992px){.aeb-footer-menu__wrapper{display:flex;flex-direction:column;align-items:flex-start;width:271px}}.aeb-footer-menu__item{font-size:var(--font-size-m);color:var(--color-mono-0);text-decoration:none;list-style:none}.aeb-footer-menu__item:not(:last-child){margin-right:36px}.aeb-footer-menu__item--feedback{box-sizing:border-box;margin-left:auto}@media screen and (max-width: 992px){.aeb-footer-menu__item--feedback{margin-left:0}}@media screen and (max-width: 992px){.aeb-footer-menu__item{margin-right:0}.aeb-footer-menu__item:not(:last-child){margin-bottom:24px}}\n"] }]
|
|
3300
|
+
args: [{ selector: 'aeb-footer-menu', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div #content *ngIf=\"hasContent; else defaultContent\">\n <ng-content></ng-content>\n</div>\n<ng-template #defaultContent>\n <div class=\"aeb-footer-menu\">\n <ul class=\"aeb-footer-menu__wrapper\">\n <li *ngFor=\"let item of items\" class=\"aeb-footer-menu__item\">\n <a [href]=\"item.link\">\n {{ item.name }}\n </a>\n </li>\n <div class=\"aeb-footer-menu__item--feedback\" style=\"cursor: pointer\">\n <a href=\"https://www.albank.ru/ru/feedback\">\u0421\u0432\u044F\u0437\u044C \u0441 \u0411\u0430\u043D\u043A\u043E\u043C</a>\n </div>\n </ul>\n </div>\n</ng-template>\n", styles: [".aeb-footer-menu{position:relative;box-sizing:border-box;display:flex;width:100%;padding:24px 0;border-bottom:1px solid rgba(var(--color-mono-clear),10%)}@media screen and (max-width: 992px){.aeb-footer-menu{flex-direction:column;align-items:flex-start}}.aeb-footer-menu a{color:var(--color-mono-0);text-decoration:none}.aeb-footer-menu__wrapper{box-sizing:border-box;display:flex;flex:0 0 100%;padding-left:0;margin:0;font-size:var(--font-size-m);line-height:26px}@media screen and (max-width: 992px){.aeb-footer-menu__wrapper{display:flex;flex-direction:column;align-items:flex-start;width:271px}}.aeb-footer-menu__item{font-size:var(--font-size-m);color:var(--color-mono-0);text-decoration:none;list-style:none}.aeb-footer-menu__item:not(:last-child){margin-right:36px}.aeb-footer-menu__item--feedback{box-sizing:border-box;margin-left:auto}@media screen and (max-width: 992px){.aeb-footer-menu__item--feedback{margin-left:0}}@media screen and (max-width: 992px){.aeb-footer-menu__item{margin-right:0}.aeb-footer-menu__item:not(:last-child){margin-bottom:24px}}\n"] }]
|
|
3297
3301
|
}], propDecorators: { items: [{
|
|
3298
3302
|
type: Input
|
|
3299
3303
|
}] } });
|
|
@@ -4079,7 +4083,7 @@ class SelectComponent {
|
|
|
4079
4083
|
useExisting: forwardRef(() => SelectComponent),
|
|
4080
4084
|
multi: true
|
|
4081
4085
|
}
|
|
4082
|
-
], 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:
|
|
4086
|
+
], 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 }); }
|
|
4083
4087
|
}
|
|
4084
4088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SelectComponent, decorators: [{
|
|
4085
4089
|
type: Component,
|
|
@@ -4094,7 +4098,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
4094
4098
|
useExisting: forwardRef(() => SelectComponent),
|
|
4095
4099
|
multi: true
|
|
4096
4100
|
}
|
|
4097
|
-
], 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:
|
|
4101
|
+
], 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"] }]
|
|
4098
4102
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { label: [{
|
|
4099
4103
|
type: Input
|
|
4100
4104
|
}], options: [{
|
|
@@ -5082,6 +5086,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
5082
5086
|
}]
|
|
5083
5087
|
}] });
|
|
5084
5088
|
|
|
5089
|
+
class LineWidthPipe {
|
|
5090
|
+
transform(value, stepsLength, completedStepsLength) {
|
|
5091
|
+
return value >= 768
|
|
5092
|
+
? (100 / (stepsLength - 1)) * completedStepsLength + '%'
|
|
5093
|
+
: (100 / stepsLength) * (completedStepsLength + 1) + '%';
|
|
5094
|
+
}
|
|
5095
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: LineWidthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5096
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: LineWidthPipe, isStandalone: true, name: "lineWidth" }); }
|
|
5097
|
+
}
|
|
5098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: LineWidthPipe, decorators: [{
|
|
5099
|
+
type: Pipe,
|
|
5100
|
+
args: [{
|
|
5101
|
+
name: 'lineWidth',
|
|
5102
|
+
standalone: true
|
|
5103
|
+
}]
|
|
5104
|
+
}] });
|
|
5105
|
+
|
|
5085
5106
|
class StepperStepComponent {
|
|
5086
5107
|
constructor() {
|
|
5087
5108
|
this.isValid = false;
|
|
@@ -5120,11 +5141,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
5120
5141
|
}] } });
|
|
5121
5142
|
|
|
5122
5143
|
class StepperComponent {
|
|
5123
|
-
constructor() {
|
|
5124
|
-
this.stepChanged = new EventEmitter();
|
|
5125
|
-
this.isDisabled = false;
|
|
5126
|
-
this.steps = [];
|
|
5127
|
-
}
|
|
5128
5144
|
get activeStepIndex() {
|
|
5129
5145
|
return this.steps.indexOf(this.activeStep);
|
|
5130
5146
|
}
|
|
@@ -5147,6 +5163,17 @@ class StepperComponent {
|
|
|
5147
5163
|
this.stepChanged.emit(step);
|
|
5148
5164
|
}
|
|
5149
5165
|
}
|
|
5166
|
+
constructor() {
|
|
5167
|
+
this.stepChanged = new EventEmitter();
|
|
5168
|
+
this.isDisabled = false;
|
|
5169
|
+
this.screenWidth = window.innerWidth;
|
|
5170
|
+
this.steps = [];
|
|
5171
|
+
fromEvent(window, 'resize')
|
|
5172
|
+
.pipe(debounceTime(50), takeUntilDestroyed())
|
|
5173
|
+
.subscribe((event) => {
|
|
5174
|
+
this.screenWidth = event.currentTarget.innerWidth;
|
|
5175
|
+
});
|
|
5176
|
+
}
|
|
5150
5177
|
ngAfterContentInit() {
|
|
5151
5178
|
this.steps = [...this.stepperSteps];
|
|
5152
5179
|
}
|
|
@@ -5184,12 +5211,12 @@ class StepperComponent {
|
|
|
5184
5211
|
this.goToNextStep();
|
|
5185
5212
|
}
|
|
5186
5213
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: StepperComponent, isStandalone: false, selector: "aeb-stepper", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "stepperSteps", predicate: StepperStepComponent }], ngImport: i0, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width:
|
|
5214
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: StepperComponent, isStandalone: false, selector: "aeb-stepper", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "stepperSteps", predicate: StepperStepComponent }], ngImport: i0, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--gray);text-align:center}.stepper-step-title.disabled{color:var(--lightgray)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--lightgray)}.stepper-step.disabled .stepper-step-title{color:var(--lightgray)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: LineWidthPipe, name: "lineWidth" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
5188
5215
|
}
|
|
5189
5216
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: StepperComponent, decorators: [{
|
|
5190
5217
|
type: Component,
|
|
5191
|
-
args: [{ selector: 'aeb-stepper', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width:
|
|
5192
|
-
}], propDecorators: { stepperSteps: [{
|
|
5218
|
+
args: [{ selector: 'aeb-stepper', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--gray);text-align:center}.stepper-step-title.disabled{color:var(--lightgray)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--lightgray)}.stepper-step.disabled .stepper-step-title{color:var(--lightgray)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\n"] }]
|
|
5219
|
+
}], ctorParameters: () => [], propDecorators: { stepperSteps: [{
|
|
5193
5220
|
type: ContentChildren,
|
|
5194
5221
|
args: [StepperStepComponent]
|
|
5195
5222
|
}], stepChanged: [{
|
|
@@ -5200,14 +5227,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
5200
5227
|
|
|
5201
5228
|
class StepperModule {
|
|
5202
5229
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: StepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5203
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: StepperModule, declarations: [StepperComponent, StepperStepComponent], imports: [CommonModule], exports: [StepperComponent, StepperStepComponent] }); }
|
|
5230
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: StepperModule, declarations: [StepperComponent, StepperStepComponent], imports: [CommonModule, LineWidthPipe], exports: [StepperComponent, StepperStepComponent] }); }
|
|
5204
5231
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: StepperModule, imports: [CommonModule] }); }
|
|
5205
5232
|
}
|
|
5206
5233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: StepperModule, decorators: [{
|
|
5207
5234
|
type: NgModule,
|
|
5208
5235
|
args: [{
|
|
5209
5236
|
declarations: [StepperComponent, StepperStepComponent],
|
|
5210
|
-
imports: [CommonModule],
|
|
5237
|
+
imports: [CommonModule, LineWidthPipe],
|
|
5211
5238
|
exports: [StepperComponent, StepperStepComponent]
|
|
5212
5239
|
}]
|
|
5213
5240
|
}] });
|