aeb-ui-kit 9.1.0-preview.1080 → 9.1.0-preview.1088
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 +43 -20
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/lib/code-input/code-input.component.d.ts +4 -1
- package/lib/modal/modal.component.d.ts +3 -3
- package/package.json +1 -1
- package/styles.css +25 -43
- package/assets/fonts/APACHE_LICENSE.txt +0 -202
- package/assets/fonts/Roboto-Bold.ttf +0 -0
- package/assets/fonts/Roboto-Medium.ttf +0 -0
- package/assets/fonts/Roboto-Regular.ttf +0 -0
- /package/{assets/fonts → fonts}/GeologicaRoman-Light.woff2 +0 -0
- /package/{assets/fonts → fonts}/GeologicaRoman-Medium.woff2 +0 -0
- /package/{assets/fonts → fonts}/GeologicaRoman-Regular.woff2 +0 -0
- /package/{assets/fonts → fonts}/GeologicaRoman-SemiBold.woff2 +0 -0
- /package/{assets/fonts → fonts}/SIL_OFL.txt +0 -0
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -553,9 +553,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
553
553
|
class CodeInputComponent {
|
|
554
554
|
constructor() {
|
|
555
555
|
this.secondsUntilRetry = 60;
|
|
556
|
+
this.errorMessage = 'Неверный код';
|
|
556
557
|
this.codeLength = 6;
|
|
558
|
+
this.disabled = false;
|
|
557
559
|
this.hasError = false;
|
|
558
560
|
this.isAutofocus = true;
|
|
561
|
+
this.isResendable = true;
|
|
559
562
|
this.codeCompleted = new EventEmitter();
|
|
560
563
|
this.timeOut = new EventEmitter();
|
|
561
564
|
this.resendClick = new EventEmitter();
|
|
@@ -637,13 +640,13 @@ class CodeInputComponent {
|
|
|
637
640
|
}
|
|
638
641
|
}
|
|
639
642
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
640
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", 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: [
|
|
643
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: CodeInputComponent, isStandalone: false, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip", errorMessage: "errorMessage", codeLength: "codeLength", disabled: "disabled", hasError: "hasError", isAutofocus: "isAutofocus", isResendable: "isResendable" }, outputs: { codeCompleted: "codeCompleted", timeOut: "timeOut", resendClick: "resendClick" }, providers: [
|
|
641
644
|
{
|
|
642
645
|
provide: NG_VALUE_ACCESSOR,
|
|
643
646
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
644
647
|
multi: true
|
|
645
648
|
}
|
|
646
|
-
], 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 @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input
|
|
649
|
+
], 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 [disabled]=\"disabled\"\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 @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n </div>\n @if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\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\">{{\n seconds$ | async\n }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (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 }\n }\n </div>\n }\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.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:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
647
650
|
}
|
|
648
651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: CodeInputComponent, decorators: [{
|
|
649
652
|
type: Component,
|
|
@@ -653,19 +656,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
653
656
|
useExisting: forwardRef(() => CodeInputComponent),
|
|
654
657
|
multi: true
|
|
655
658
|
}
|
|
656
|
-
], 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 @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input
|
|
659
|
+
], 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 [disabled]=\"disabled\"\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 @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n </div>\n @if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\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\">{{\n seconds$ | async\n }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (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 }\n }\n </div>\n }\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.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:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"] }]
|
|
657
660
|
}], propDecorators: { title: [{
|
|
658
661
|
type: Input
|
|
659
662
|
}], secondsUntilRetry: [{
|
|
660
663
|
type: Input
|
|
661
664
|
}], tip: [{
|
|
662
665
|
type: Input
|
|
666
|
+
}], errorMessage: [{
|
|
667
|
+
type: Input
|
|
663
668
|
}], codeLength: [{
|
|
664
669
|
type: Input
|
|
670
|
+
}], disabled: [{
|
|
671
|
+
type: Input
|
|
665
672
|
}], hasError: [{
|
|
666
673
|
type: Input
|
|
667
674
|
}], isAutofocus: [{
|
|
668
675
|
type: Input
|
|
676
|
+
}], isResendable: [{
|
|
677
|
+
type: Input
|
|
669
678
|
}], codeCompleted: [{
|
|
670
679
|
type: Output
|
|
671
680
|
}], timeOut: [{
|
|
@@ -1979,9 +1988,17 @@ class DatepickerComponent {
|
|
|
1979
1988
|
ngOnChanges(changes) {
|
|
1980
1989
|
if (changes.date) {
|
|
1981
1990
|
this.writeValue(changes.date.currentValue);
|
|
1991
|
+
if (!this.disabled &&
|
|
1992
|
+
this.input !== undefined &&
|
|
1993
|
+
!!changes.date.currentValue) {
|
|
1994
|
+
this.onFormChange(changes.date.currentValue);
|
|
1995
|
+
}
|
|
1982
1996
|
}
|
|
1983
1997
|
if (changes.withoutDays) {
|
|
1984
1998
|
this.writeValue(this.date);
|
|
1999
|
+
if (!this.disabled && this.input !== undefined && !!this.date) {
|
|
2000
|
+
this.onFormChange(changes.date.currentValue);
|
|
2001
|
+
}
|
|
1985
2002
|
}
|
|
1986
2003
|
}
|
|
1987
2004
|
ngOnDestroy() {
|
|
@@ -2097,6 +2114,7 @@ class DatepickerComponent {
|
|
|
2097
2114
|
this.inputValue = targetDate;
|
|
2098
2115
|
this.lastValidInput = this.inputValue;
|
|
2099
2116
|
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2117
|
+
this.onFormChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2100
2118
|
}
|
|
2101
2119
|
if (this.collapseOnChange) {
|
|
2102
2120
|
this.isOpen = false;
|
|
@@ -2126,6 +2144,7 @@ class DatepickerComponent {
|
|
|
2126
2144
|
this.inputValue = targetDate;
|
|
2127
2145
|
this.lastValidInput = this.inputValue;
|
|
2128
2146
|
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2147
|
+
this.onFormChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2129
2148
|
}
|
|
2130
2149
|
if (this.collapseOnChange) {
|
|
2131
2150
|
this.isOpen = false;
|
|
@@ -2151,6 +2170,7 @@ class DatepickerComponent {
|
|
|
2151
2170
|
}
|
|
2152
2171
|
if (!event) {
|
|
2153
2172
|
this.writeValue(null);
|
|
2173
|
+
this.onFormChange(null);
|
|
2154
2174
|
this.core.setMonth(this.utils.getMonth(new Date()), true);
|
|
2155
2175
|
this.core.setYear(this.utils.getYear(new Date()), true);
|
|
2156
2176
|
}
|
|
@@ -2177,6 +2197,7 @@ class DatepickerComponent {
|
|
|
2177
2197
|
this.core.setMonth(this.utils.getMonth(this.date));
|
|
2178
2198
|
this.core.setYear(this.utils.getYear(this.date));
|
|
2179
2199
|
this.writeValue(this.date);
|
|
2200
|
+
this.onFormChange(this.date);
|
|
2180
2201
|
}
|
|
2181
2202
|
handleOpen() {
|
|
2182
2203
|
if (!this.isOpen) {
|
|
@@ -2222,6 +2243,7 @@ class DatepickerComponent {
|
|
|
2222
2243
|
this.lastValidInput = this.inputValue;
|
|
2223
2244
|
this.date = date;
|
|
2224
2245
|
this.writeValue(date);
|
|
2246
|
+
this.onFormChange(date);
|
|
2225
2247
|
if (this.collapseOnChange) {
|
|
2226
2248
|
this.isOpen = false;
|
|
2227
2249
|
}
|
|
@@ -2247,7 +2269,6 @@ class DatepickerComponent {
|
|
|
2247
2269
|
this.inputValue = this.withoutDays ? newInput.slice(3, 10) : newInput;
|
|
2248
2270
|
this.lastValidInput = this.inputValue;
|
|
2249
2271
|
}
|
|
2250
|
-
this.onFormChange(value);
|
|
2251
2272
|
this.onTouch();
|
|
2252
2273
|
if (!this.touched) {
|
|
2253
2274
|
this.touched = true;
|
|
@@ -2792,11 +2813,11 @@ class AttachButtonComponent {
|
|
|
2792
2813
|
return word[num % 100 > 4 && num % 100 < 20 ? 2 : cases[num % 10 < 5 ? num % 10 : 5]];
|
|
2793
2814
|
}
|
|
2794
2815
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AttachButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2795
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: AttachButtonComponent, isStandalone: false, selector: "aeb-attach-button", inputs: { attachButtonText: "attachButtonText", attachButtonIcon: "attachButtonIcon", multi: "multi", filesAmount: "filesAmount", showErrorMessage: "showErrorMessage", showErrorMessageText: "showErrorMessageText", requirement: "requirement" }, outputs: { fileChoosen: "fileChoosen", buttonClick: "buttonClick", fileListCleared: "fileListCleared" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "fileInputRef", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<button aebButton [size]=\"'L'\" [variant]=\"'outline'\" (click)=\"onButtonClick()\">\n {{ attachButtonText }}\n @if (attachButtonIcon) {\n <img class=\"aeb-icon-left\" [src]=\"attachButtonIcon\" alt=\"attach-icon\" />\n } @else {\n <svg\n class=\"aeb-icon-left\"\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n</button>\n<input\n #fileInput\n type=\"file\"\n [multiple]=\"multi\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n/>\n<div class=\"aeb-attach-button__file-message\">\n @if (showErrorMessageText | async; as errorText) {\n <div class=\"aeb-attach-button__file-message__error\">\n @if (showErrorMessage) {\n <div>\n {{ errorText }}\n </div>\n }\n </div>\n }\n @if (filesAmount === 0 && requirement !== undefined) {\n <div class=\"aeb-attach-button__file-message__container\">\n <p [innerHTML]=\"requirement.text\"></p>\n </div>\n }\n @if (filesAmount > 0) {\n <div class=\"aeb-attach-button__file-message__file-amount\">\n <div>\n {{ filesAmount === 1 ? '\u0412\u044B\u0431\u0440\u0430\u043D' : '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' }} {{ filesAmount }}\n {{ getCaseByNumber(['\u0444\u0430\u0439\u043B', '\u0444\u0430\u0439\u043B\u0430', '\u0444\u0430\u0439\u043B\u043E\u0432']) }}\n </div>\n <div class=\"aeb-attach-button__remove-icon\" (click)=\"clearFileList()\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n }\n</div>\n", styles: [".aeb-attach-button{display:flex;align-items:center}.aeb-attach-button__file-message{display:flex;flex-direction:column;margin-left:20px;font-size:var(--font-size-xs);line-height:16px;gap:8px}@media screen and (max-width:
|
|
2816
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: AttachButtonComponent, isStandalone: false, selector: "aeb-attach-button", inputs: { attachButtonText: "attachButtonText", attachButtonIcon: "attachButtonIcon", multi: "multi", filesAmount: "filesAmount", showErrorMessage: "showErrorMessage", showErrorMessageText: "showErrorMessageText", requirement: "requirement" }, outputs: { fileChoosen: "fileChoosen", buttonClick: "buttonClick", fileListCleared: "fileListCleared" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "fileInputRef", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<button aebButton [size]=\"'L'\" [variant]=\"'outline'\" (click)=\"onButtonClick()\">\n {{ attachButtonText }}\n @if (attachButtonIcon) {\n <img class=\"aeb-icon-left\" [src]=\"attachButtonIcon\" alt=\"attach-icon\" />\n } @else {\n <svg\n class=\"aeb-icon-left\"\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n</button>\n<input\n #fileInput\n type=\"file\"\n [multiple]=\"multi\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n/>\n<div class=\"aeb-attach-button__file-message\">\n @if (showErrorMessageText | async; as errorText) {\n <div class=\"aeb-attach-button__file-message__error\">\n @if (showErrorMessage) {\n <div>\n {{ errorText }}\n </div>\n }\n </div>\n }\n @if (filesAmount === 0 && requirement !== undefined) {\n <div class=\"aeb-attach-button__file-message__container\">\n <p [innerHTML]=\"requirement.text\"></p>\n </div>\n }\n @if (filesAmount > 0) {\n <div class=\"aeb-attach-button__file-message__file-amount\">\n <div>\n {{ filesAmount === 1 ? '\u0412\u044B\u0431\u0440\u0430\u043D' : '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' }} {{ filesAmount }}\n {{ getCaseByNumber(['\u0444\u0430\u0439\u043B', '\u0444\u0430\u0439\u043B\u0430', '\u0444\u0430\u0439\u043B\u043E\u0432']) }}\n </div>\n <div class=\"aeb-attach-button__remove-icon\" (click)=\"clearFileList()\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n }\n</div>\n", styles: [".aeb-attach-button{display:flex;align-items:center}.aeb-attach-button__file-message{display:flex;flex-direction:column;margin-left:20px;font-size:var(--font-size-xs);line-height:16px;gap:8px}@media screen and (max-width: 599px){.aeb-attach-button__file-message{margin-top:16px;margin-left:0}}.aeb-attach-button__file-message__container p{margin:0}.aeb-attach-button__file-message__error{color:var(--color-red-500)}.aeb-attach-button__file-message__file-amount{display:flex}.aeb-attach-button__remove-icon{width:16px;height:16px;margin-left:20px;cursor:pointer}.aeb-attach-button__remove-icon:hover svg path{stroke:var(--color-blue-500)}@media screen and (max-width: 599px){.aeb-attach-button{flex-direction:column;align-items:flex-start}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "isWarning", "size", "variant"] }, { kind: "directive", type: ButtonLeftIconDirective, selector: "img.aeb-icon-left, svg.aeb-icon-left" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2796
2817
|
}
|
|
2797
2818
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AttachButtonComponent, decorators: [{
|
|
2798
2819
|
type: Component,
|
|
2799
|
-
args: [{ selector: 'aeb-attach-button', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<button aebButton [size]=\"'L'\" [variant]=\"'outline'\" (click)=\"onButtonClick()\">\n {{ attachButtonText }}\n @if (attachButtonIcon) {\n <img class=\"aeb-icon-left\" [src]=\"attachButtonIcon\" alt=\"attach-icon\" />\n } @else {\n <svg\n class=\"aeb-icon-left\"\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n</button>\n<input\n #fileInput\n type=\"file\"\n [multiple]=\"multi\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n/>\n<div class=\"aeb-attach-button__file-message\">\n @if (showErrorMessageText | async; as errorText) {\n <div class=\"aeb-attach-button__file-message__error\">\n @if (showErrorMessage) {\n <div>\n {{ errorText }}\n </div>\n }\n </div>\n }\n @if (filesAmount === 0 && requirement !== undefined) {\n <div class=\"aeb-attach-button__file-message__container\">\n <p [innerHTML]=\"requirement.text\"></p>\n </div>\n }\n @if (filesAmount > 0) {\n <div class=\"aeb-attach-button__file-message__file-amount\">\n <div>\n {{ filesAmount === 1 ? '\u0412\u044B\u0431\u0440\u0430\u043D' : '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' }} {{ filesAmount }}\n {{ getCaseByNumber(['\u0444\u0430\u0439\u043B', '\u0444\u0430\u0439\u043B\u0430', '\u0444\u0430\u0439\u043B\u043E\u0432']) }}\n </div>\n <div class=\"aeb-attach-button__remove-icon\" (click)=\"clearFileList()\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n }\n</div>\n", styles: [".aeb-attach-button{display:flex;align-items:center}.aeb-attach-button__file-message{display:flex;flex-direction:column;margin-left:20px;font-size:var(--font-size-xs);line-height:16px;gap:8px}@media screen and (max-width:
|
|
2820
|
+
args: [{ selector: 'aeb-attach-button', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<button aebButton [size]=\"'L'\" [variant]=\"'outline'\" (click)=\"onButtonClick()\">\n {{ attachButtonText }}\n @if (attachButtonIcon) {\n <img class=\"aeb-icon-left\" [src]=\"attachButtonIcon\" alt=\"attach-icon\" />\n } @else {\n <svg\n class=\"aeb-icon-left\"\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n</button>\n<input\n #fileInput\n type=\"file\"\n [multiple]=\"multi\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n/>\n<div class=\"aeb-attach-button__file-message\">\n @if (showErrorMessageText | async; as errorText) {\n <div class=\"aeb-attach-button__file-message__error\">\n @if (showErrorMessage) {\n <div>\n {{ errorText }}\n </div>\n }\n </div>\n }\n @if (filesAmount === 0 && requirement !== undefined) {\n <div class=\"aeb-attach-button__file-message__container\">\n <p [innerHTML]=\"requirement.text\"></p>\n </div>\n }\n @if (filesAmount > 0) {\n <div class=\"aeb-attach-button__file-message__file-amount\">\n <div>\n {{ filesAmount === 1 ? '\u0412\u044B\u0431\u0440\u0430\u043D' : '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' }} {{ filesAmount }}\n {{ getCaseByNumber(['\u0444\u0430\u0439\u043B', '\u0444\u0430\u0439\u043B\u0430', '\u0444\u0430\u0439\u043B\u043E\u0432']) }}\n </div>\n <div class=\"aeb-attach-button__remove-icon\" (click)=\"clearFileList()\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n }\n</div>\n", styles: [".aeb-attach-button{display:flex;align-items:center}.aeb-attach-button__file-message{display:flex;flex-direction:column;margin-left:20px;font-size:var(--font-size-xs);line-height:16px;gap:8px}@media screen and (max-width: 599px){.aeb-attach-button__file-message{margin-top:16px;margin-left:0}}.aeb-attach-button__file-message__container p{margin:0}.aeb-attach-button__file-message__error{color:var(--color-red-500)}.aeb-attach-button__file-message__file-amount{display:flex}.aeb-attach-button__remove-icon{width:16px;height:16px;margin-left:20px;cursor:pointer}.aeb-attach-button__remove-icon:hover svg path{stroke:var(--color-blue-500)}@media screen and (max-width: 599px){.aeb-attach-button{flex-direction:column;align-items:flex-start}}\n"] }]
|
|
2800
2821
|
}], propDecorators: { fileInputRef: [{
|
|
2801
2822
|
type: ViewChild,
|
|
2802
2823
|
args: ['fileInput']
|
|
@@ -3548,21 +3569,16 @@ class ModalComponent {
|
|
|
3548
3569
|
this._controlsConfig = DEFAULT_CONFIG;
|
|
3549
3570
|
this.isOpen = true;
|
|
3550
3571
|
this.title = '';
|
|
3551
|
-
this.size = '
|
|
3572
|
+
this.size = 'M';
|
|
3552
3573
|
this.leftBtnClick = new EventEmitter();
|
|
3553
3574
|
this.rightBtnClick = new EventEmitter();
|
|
3554
3575
|
this.closeBtnClick = new EventEmitter();
|
|
3555
3576
|
this.isMobileScreen = true;
|
|
3577
|
+
this.checkScreen();
|
|
3556
3578
|
fromEvent(window, 'resize')
|
|
3557
3579
|
.pipe(debounce(() => timer(50)), takeUntilDestroyed())
|
|
3558
|
-
.subscribe((
|
|
3559
|
-
|
|
3560
|
-
if (window.innerWidth < 600) {
|
|
3561
|
-
this.isMobileScreen = true;
|
|
3562
|
-
}
|
|
3563
|
-
else {
|
|
3564
|
-
this.isMobileScreen = false;
|
|
3565
|
-
}
|
|
3580
|
+
.subscribe(() => {
|
|
3581
|
+
this.checkScreen();
|
|
3566
3582
|
});
|
|
3567
3583
|
}
|
|
3568
3584
|
open() {
|
|
@@ -3580,13 +3596,20 @@ class ModalComponent {
|
|
|
3580
3596
|
onCloseClick() {
|
|
3581
3597
|
this.closeBtnClick.emit();
|
|
3582
3598
|
}
|
|
3583
|
-
|
|
3599
|
+
checkScreen() {
|
|
3600
|
+
if (window.innerWidth <= 599) {
|
|
3601
|
+
this.isMobileScreen = true;
|
|
3602
|
+
}
|
|
3603
|
+
else {
|
|
3604
|
+
this.isMobileScreen = false;
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3584
3607
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3585
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: ModalComponent, isStandalone: false, selector: "aeb-modal", inputs: { isOpen: "isOpen", title: "title", size: "size", controlsConfig: "controlsConfig" }, outputs: { leftBtnClick: "leftBtnClick", rightBtnClick: "rightBtnClick", closeBtnClick: "closeBtnClick" }, ngImport: i0, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? '
|
|
3608
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: ModalComponent, isStandalone: false, selector: "aeb-modal", inputs: { isOpen: "isOpen", title: "title", size: "size", controlsConfig: "controlsConfig" }, outputs: { leftBtnClick: "leftBtnClick", rightBtnClick: "rightBtnClick", closeBtnClick: "closeBtnClick" }, ngImport: i0, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n </div>\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;height:100dvh;pointer-events:none;background-color:var(--c-bg-overlay);opacity:var(--100-total);transition:opacity,.1s}.aeb-modal--open{pointer-events:all;opacity:var(--0-zero)}.aeb-modal__header{display:flex;justify-content:space-between}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px}}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}@media screen and (max-width: 599px){.aeb-modal__window--S{max-width:100%}}.aeb-modal__window--M{max-width:720px}@media screen and (max-width: 599px){.aeb-modal__window--M{max-width:100%}}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window--L{max-width:100%}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "isWarning", "size", "variant"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3586
3609
|
}
|
|
3587
3610
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ModalComponent, decorators: [{
|
|
3588
3611
|
type: Component,
|
|
3589
|
-
args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? '
|
|
3612
|
+
args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n </div>\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;height:100dvh;pointer-events:none;background-color:var(--c-bg-overlay);opacity:var(--100-total);transition:opacity,.1s}.aeb-modal--open{pointer-events:all;opacity:var(--0-zero)}.aeb-modal__header{display:flex;justify-content:space-between}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px}}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}@media screen and (max-width: 599px){.aeb-modal__window--S{max-width:100%}}.aeb-modal__window--M{max-width:720px}@media screen and (max-width: 599px){.aeb-modal__window--M{max-width:100%}}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window--L{max-width:100%}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"] }]
|
|
3590
3613
|
}], ctorParameters: () => [], propDecorators: { isOpen: [{
|
|
3591
3614
|
type: Input
|
|
3592
3615
|
}], title: [{
|
|
@@ -4261,11 +4284,11 @@ class PaginationComponent {
|
|
|
4261
4284
|
}
|
|
4262
4285
|
}
|
|
4263
4286
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4264
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: PaginationComponent, isStandalone: false, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage", usePageSizeSelector: "usePageSizeSelector", pageSize: "pageSize", btnType: "btnType", size: "size" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width:
|
|
4287
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: PaginationComponent, isStandalone: false, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage", usePageSizeSelector: "usePageSizeSelector", pageSize: "pageSize", btnType: "btnType", size: "size" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 599px){.aeb-pagination--select-container{display:none}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}.button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--color-blue-500)}.button--active{color:var(--color-mono-0);background:var(--color-blue-500)}.item--large{width:48px;height:48px;font-size:16px;border-radius:12px}.item--medium{width:24px;height:24px;font-size:12px;border-radius:8px}.item--disabled{opacity:.5;cursor:not-allowed}.item--rounded{transform:rotate(180deg)}\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: "component", type: SelectComponent, selector: "aeb-select", inputs: ["label", "options", "hasError", "disabled", "direction"], outputs: ["optionSelect"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4265
4288
|
}
|
|
4266
4289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
4267
4290
|
type: Component,
|
|
4268
|
-
args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width:
|
|
4291
|
+
args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 599px){.aeb-pagination--select-container{display:none}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}.button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--color-blue-500)}.button--active{color:var(--color-mono-0);background:var(--color-blue-500)}.item--large{width:48px;height:48px;font-size:16px;border-radius:12px}.item--medium{width:24px;height:24px;font-size:12px;border-radius:8px}.item--disabled{opacity:.5;cursor:not-allowed}.item--rounded{transform:rotate(180deg)}\n"] }]
|
|
4269
4292
|
}], ctorParameters: () => [], propDecorators: { totalPages: [{
|
|
4270
4293
|
type: Input
|
|
4271
4294
|
}], currentPage: [{
|