aeb-ui-kit 9.1.0-preview.1126 → 9.1.0-preview.1135

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.
@@ -5,7 +5,7 @@ import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/commo
5
5
  import * as i3 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, Validators, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
7
7
  import { Subject, timer, map, takeUntil, Subscription, filter, fromEvent, debounce, debounceTime } from 'rxjs';
8
- import { trigger, state, transition, style, animate } from '@angular/animations';
8
+ import { trigger, state, transition, style, animate, query, stagger } from '@angular/animations';
9
9
  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';
10
10
  import { ru } from 'date-fns/locale';
11
11
  import '@angular/common/locales/global/ru';
@@ -3496,56 +3496,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3496
3496
  }] });
3497
3497
 
3498
3498
  class NotificationComponent {
3499
+ get notificationClass() {
3500
+ return `aeb-notification--${this.type()}`;
3501
+ }
3502
+ get notificationState() {
3503
+ return this.state();
3504
+ }
3499
3505
  constructor() {
3500
- this.message = '';
3501
- this.header = '';
3502
- this.iconPath = '';
3503
- this.clickNotification = new EventEmitter();
3504
- this.closeNotification = new EventEmitter();
3505
3506
  this.notification = true;
3506
- this.state = 'open';
3507
- this.isHovered = false;
3507
+ this.id = input('', ...(ngDevMode ? [{ debugName: "id" }] : []));
3508
+ this.header = input('', ...(ngDevMode ? [{ debugName: "header" }] : []));
3509
+ this.message = input('', ...(ngDevMode ? [{ debugName: "message" }] : []));
3510
+ this.type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : []));
3511
+ this.buttonText = input('', ...(ngDevMode ? [{ debugName: "buttonText" }] : []));
3512
+ /**
3513
+ * Время "жизни" уведомления в секундах.
3514
+ * Если передано falsy значение (0/null/undefined/etc), то уведомление не будет исчезать.
3515
+ */
3516
+ this.lifeTime = input(3, ...(ngDevMode ? [{ debugName: "lifeTime" }] : []));
3517
+ this.buttonClick = output();
3518
+ this.clickNotification = output();
3519
+ this.closeNotification = output();
3520
+ this.state = signal('open', ...(ngDevMode ? [{ debugName: "state" }] : []));
3521
+ this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
3508
3522
  this.timeout = null;
3523
+ effect(() => {
3524
+ const lifeTime = this.lifeTime();
3525
+ if (lifeTime !== undefined) {
3526
+ this.waitUntilClose();
3527
+ }
3528
+ });
3529
+ effect(() => {
3530
+ const lifeTime = this.lifeTime();
3531
+ if (lifeTime !== undefined) {
3532
+ this.state.set('open');
3533
+ clearTimeout(this.timeout);
3534
+ if (!this.isHovered()) {
3535
+ this.waitUntilClose();
3536
+ }
3537
+ }
3538
+ });
3539
+ }
3540
+ onAnimationDone(event) {
3541
+ this.captureDoneEvent(event);
3509
3542
  }
3510
3543
  onOver() {
3511
- this.isHovered = true;
3512
- this.state = 'open';
3544
+ this.isHovered.set(true);
3545
+ this.state.set('open');
3513
3546
  clearTimeout(this.timeout);
3514
3547
  }
3515
3548
  onLeave() {
3516
- this.isHovered = false;
3549
+ this.isHovered.set(false);
3517
3550
  this.waitUntilClose();
3518
3551
  }
3519
3552
  onClick() {
3520
- this.clickNotification.emit(this.id);
3521
- }
3522
- ngOnInit() {
3523
- if (!this.lifeTime) {
3524
- this.lifeTime = 0;
3525
- }
3526
- this.waitUntilClose();
3527
- }
3528
- ngOnChanges(changes) {
3529
- if (changes.lifeTime &&
3530
- changes.lifeTime.currentValue !== changes.lifeTime.previousValue) {
3531
- // когда меняется свойство lifeTime, обнуляем таймер и отменяем анимацию исчезновения
3532
- // затем запускаем таймер заново
3533
- this.state = 'open';
3534
- clearTimeout(this.timeout);
3535
- if (!this.isHovered) {
3536
- this.waitUntilClose();
3537
- }
3538
- }
3553
+ this.clickNotification.emit(this.id());
3539
3554
  }
3540
- ngOnDestroy() {
3541
- clearTimeout(this.timeout);
3555
+ handleButtonClick(event) {
3556
+ event.stopPropagation();
3557
+ this.buttonClick.emit(this.id());
3542
3558
  }
3543
3559
  /**
3544
3560
  * Вызывается при завершении перехода от одного state к другому
3545
3561
  */
3546
3562
  captureDoneEvent(event) {
3547
- if (event.toState === 'closed' && !this.isHovered) {
3548
- this.closeNotification.emit(this.id);
3563
+ if (event.toState === 'closed' && !this.isHovered()) {
3564
+ this.closeNotification.emit(this.id());
3549
3565
  }
3550
3566
  }
3551
3567
  handleClose(event, id) {
@@ -3553,24 +3569,27 @@ class NotificationComponent {
3553
3569
  this.closeNotification.emit(id);
3554
3570
  }
3555
3571
  waitUntilClose() {
3556
- if (this.lifeTime === 0) {
3572
+ const lifeTime = this.lifeTime();
3573
+ if (lifeTime === 0 || lifeTime === undefined) {
3557
3574
  return;
3558
3575
  }
3559
3576
  this.timeout = setTimeout(() => {
3560
- this.state = 'closed';
3561
- }, this.lifeTime * 1000);
3577
+ this.state.set('closed');
3578
+ }, lifeTime * 1000);
3562
3579
  }
3563
3580
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3564
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: NotificationComponent, isStandalone: false, selector: "aeb-notification", inputs: { id: "id", message: "message", header: "header", iconPath: "iconPath", lifeTime: "lifeTime" }, outputs: { clickNotification: "clickNotification", closeNotification: "closeNotification" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()", "click": "onClick()" }, properties: { "class.aeb-notification": "this.notification" } }, usesOnChanges: true, ngImport: i0, template: "<div\n [@notificationState]=\"state\"\n (@notificationState.done)=\"captureDoneEvent($event)\"\n class=\"aeb-notification-container\"\n>\n <div class=\"aeb-notification__icon\">\n <img [src]=\"iconPath\" />\n </div>\n <div class=\"aeb-notification__info\">\n <div class=\"aeb-notification__header\">\n {{ header }}\n </div>\n <div class=\"aeb-notification__msg\" [innerHTML]=\"message\"></div>\n </div>\n <div class=\"aeb-notification__close\" (click)=\"handleClose($event, id)\">\n <svg\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=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-notification{box-sizing:border-box;display:inline-block;width:324px;height:auto;min-height:76px;overflow:hidden;border-radius:8px}.aeb-notification-container{display:flex;justify-content:space-between;height:auto;padding:16px;background-color:var(--color-mono-900)}.aeb-notification:not(:last-child){margin-bottom:12px}.aeb-notification__icon{flex:0;width:36px;height:36px}.aeb-notification__info{width:100%;margin-left:16px;font-size:var(--font-size-xs);color:var(--color-mono-0)}.aeb-notification__header{flex:auto;margin-bottom:8px;font-size:var(--font-size-s);font-weight:var(--font-weight-medium);color:var(--color-mono-0);word-break:break-all}.aeb-notification__close{top:16px;right:16px;flex:0;cursor:pointer}\n"], animations: [
3581
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: NotificationComponent, isStandalone: false, selector: "aeb-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, buttonText: { classPropertyName: "buttonText", publicName: "buttonText", isSignal: true, isRequired: false, transformFunction: null }, lifeTime: { classPropertyName: "lifeTime", publicName: "lifeTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick", clickNotification: "clickNotification", closeNotification: "closeNotification" }, host: { listeners: { "@notificationState.done": "onAnimationDone($event)", "mouseover": "onOver()", "mouseleave": "onLeave()", "click": "onClick()" }, properties: { "class.aeb-notification": "this.notification", "class": "this.notificationClass", "@notificationState": "this.notificationState" } }, ngImport: i0, template: "<div class=\"aeb-notification__icon\">\n @switch (type()) {\n @case ('info') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#0198C8\" />\n <path\n d=\"M12 12V16\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M12 8V8.0001\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('success') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#099A57\" />\n <path\n d=\"M8 12.5L10.4615 14.8076C10.5769 14.9158 10.7565 14.9158 10.8718 14.8076L16 10\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n }\n @case ('error') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#DA2A4A\" />\n <path\n d=\"M15 9.03048L9.03035 15.0001M9 9L14.9697 14.9697\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('warning') {\n <svg\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=\"M10.29 3.85996L1.82002 18C1.64539 18.3024 1.55299 18.6453 1.55201 18.9945C1.55103 19.3437 1.64151 19.6871 1.81445 19.9905C1.98738 20.2939 2.23675 20.5467 2.53773 20.7238C2.83871 20.9009 3.18082 20.9961 3.53002 21H20.47C20.8192 20.9961 21.1613 20.9009 21.4623 20.7238C21.7633 20.5467 22.0127 20.2939 22.1856 19.9905C22.3585 19.6871 22.449 19.3437 22.448 18.9945C22.4471 18.6453 22.3547 18.3024 22.18 18L13.71 3.85996C13.5318 3.56607 13.2807 3.32308 12.9812 3.15444C12.6817 2.98581 12.3438 2.89722 12 2.89722C11.6563 2.89722 11.3184 2.98581 11.0188 3.15444C10.7193 3.32308 10.4683 3.56607 10.29 3.85996Z\"\n fill=\"#CFAC43\"\n />\n <path\n d=\"M12 9V13\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M12 17H12.01\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @default {\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n ></svg>\n }\n }\n</div>\n<div class=\"aeb-notification__info\">\n <div class=\"aeb-notification__header\">\n {{ header() }}\n </div>\n <div class=\"aeb-notification__msg\" [innerHTML]=\"message()\"></div>\n @if (buttonText()) {\n <button\n class=\"aeb-notification__button\"\n (click)=\"handleButtonClick($event)\"\n [class.aeb-notification__button--info]=\"type() === 'info'\"\n [class.aeb-notification__button--error]=\"type() === 'error'\"\n [class.aeb-notification__button--success]=\"type() === 'success'\"\n [class.aeb-notification__button--warning]=\"type() === 'warning'\"\n >\n {{ buttonText() }}\n </button>\n }\n</div>\n<div\n class=\"aeb-notification__close\"\n [class]=\"'aeb-notification__close--' + type()\"\n (click)=\"handleClose($event, id())\"\n>\n <svg\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 8L16 16\"\n stroke=\"#07222D\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M16 8L8 16\"\n stroke=\"#07222D\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</div>\n", styles: [".aeb-notification{box-sizing:border-box;width:320px;min-height:76px;display:flex;justify-content:space-between;gap:16px;height:auto;padding:16px;border-radius:16px;-webkit-user-select:none;user-select:none}.aeb-notification--info{color:var(--c-sem-l-informative);border:1px solid var(--c-sem-btn-informative);background-color:var(--c-sem-bg-informative)}.aeb-notification--error{color:var(--c-sem-l-negative);border:1px solid var(--c-sem-btn-negative);background-color:var(--c-sem-bg-negative)}.aeb-notification--warning{color:var(--c-sem-l-warning);border:1px solid var(--c-sem-btn-warning);background-color:var(--c-sem-bg-warning)}.aeb-notification--success{color:var(--c-sem-l-positive);border:1px solid var(--c-sem-btn-positive);background-color:var(--c-sem-bg-positive)}.aeb-notification__icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.aeb-notification__info{width:100%}.aeb-notification__header{flex:auto;margin-bottom:4px;font-size:var(--font-size-s);font-weight:var(--font-weight-medium);word-break:break-all}.aeb-notification__button{margin-top:12px;background-color:transparent;border:none;cursor:pointer;font-size:14px;font-weight:400;font-family:inherit;line-height:20px;padding:0}.aeb-notification__button--info{color:var(--c-sem-btn-informative)}.aeb-notification__button--error{color:var(--c-sem-btn-negative)}.aeb-notification__button--warning{color:var(--c-sem-btn-warning)}.aeb-notification__button--success{color:var(--c-sem-btn-positive)}.aeb-notification__close{top:16px;right:16px;flex:0;cursor:pointer}.aeb-notification__close--info svg{stroke:var(--c-sem-l-informative)}.aeb-notification__close--success svg{stroke:var(--c-sem-l-positive)}.aeb-notification__close--warning svg{stroke:var(--c-sem-l-warning)}.aeb-notification__close--error svg{stroke:var(--c-sem-l-negative)}\n"], animations: [
3565
3582
  trigger('notificationState', [
3566
3583
  state('open', style({
3567
- opacity: 1
3584
+ opacity: 1,
3585
+ transform: 'translateY(0) scale(1)'
3568
3586
  })),
3569
3587
  state('closed', style({
3570
- opacity: 0
3588
+ opacity: 0,
3589
+ transform: 'translateY(-10px) scale(0.95)'
3571
3590
  })),
3572
- transition('open => closed', [animate('2s')]),
3573
- transition('closed => open', [animate('0s')])
3591
+ transition('open => closed', [animate('2s ease-in')]),
3592
+ transition('closed => open', [animate('0.3s ease-out')])
3574
3593
  ])
3575
3594
  ], encapsulation: i0.ViewEncapsulation.None }); }
3576
3595
  }
@@ -3579,32 +3598,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3579
3598
  args: [{ selector: 'aeb-notification', encapsulation: ViewEncapsulation.None, animations: [
3580
3599
  trigger('notificationState', [
3581
3600
  state('open', style({
3582
- opacity: 1
3601
+ opacity: 1,
3602
+ transform: 'translateY(0) scale(1)'
3583
3603
  })),
3584
3604
  state('closed', style({
3585
- opacity: 0
3605
+ opacity: 0,
3606
+ transform: 'translateY(-10px) scale(0.95)'
3586
3607
  })),
3587
- transition('open => closed', [animate('2s')]),
3588
- transition('closed => open', [animate('0s')])
3608
+ transition('open => closed', [animate('2s ease-in')]),
3609
+ transition('closed => open', [animate('0.3s ease-out')])
3589
3610
  ])
3590
- ], standalone: false, template: "<div\n [@notificationState]=\"state\"\n (@notificationState.done)=\"captureDoneEvent($event)\"\n class=\"aeb-notification-container\"\n>\n <div class=\"aeb-notification__icon\">\n <img [src]=\"iconPath\" />\n </div>\n <div class=\"aeb-notification__info\">\n <div class=\"aeb-notification__header\">\n {{ header }}\n </div>\n <div class=\"aeb-notification__msg\" [innerHTML]=\"message\"></div>\n </div>\n <div class=\"aeb-notification__close\" (click)=\"handleClose($event, id)\">\n <svg\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=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-notification{box-sizing:border-box;display:inline-block;width:324px;height:auto;min-height:76px;overflow:hidden;border-radius:8px}.aeb-notification-container{display:flex;justify-content:space-between;height:auto;padding:16px;background-color:var(--color-mono-900)}.aeb-notification:not(:last-child){margin-bottom:12px}.aeb-notification__icon{flex:0;width:36px;height:36px}.aeb-notification__info{width:100%;margin-left:16px;font-size:var(--font-size-xs);color:var(--color-mono-0)}.aeb-notification__header{flex:auto;margin-bottom:8px;font-size:var(--font-size-s);font-weight:var(--font-weight-medium);color:var(--color-mono-0);word-break:break-all}.aeb-notification__close{top:16px;right:16px;flex:0;cursor:pointer}\n"] }]
3591
- }], propDecorators: { id: [{
3592
- type: Input
3593
- }], message: [{
3594
- type: Input
3595
- }], header: [{
3596
- type: Input
3597
- }], iconPath: [{
3598
- type: Input
3599
- }], lifeTime: [{
3600
- type: Input
3601
- }], clickNotification: [{
3602
- type: Output
3603
- }], closeNotification: [{
3604
- type: Output
3605
- }], notification: [{
3611
+ ], standalone: false, template: "<div class=\"aeb-notification__icon\">\n @switch (type()) {\n @case ('info') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#0198C8\" />\n <path\n d=\"M12 12V16\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M12 8V8.0001\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('success') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#099A57\" />\n <path\n d=\"M8 12.5L10.4615 14.8076C10.5769 14.9158 10.7565 14.9158 10.8718 14.8076L16 10\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n }\n @case ('error') {\n <svg\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 <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#DA2A4A\" />\n <path\n d=\"M15 9.03048L9.03035 15.0001M9 9L14.9697 14.9697\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('warning') {\n <svg\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=\"M10.29 3.85996L1.82002 18C1.64539 18.3024 1.55299 18.6453 1.55201 18.9945C1.55103 19.3437 1.64151 19.6871 1.81445 19.9905C1.98738 20.2939 2.23675 20.5467 2.53773 20.7238C2.83871 20.9009 3.18082 20.9961 3.53002 21H20.47C20.8192 20.9961 21.1613 20.9009 21.4623 20.7238C21.7633 20.5467 22.0127 20.2939 22.1856 19.9905C22.3585 19.6871 22.449 19.3437 22.448 18.9945C22.4471 18.6453 22.3547 18.3024 22.18 18L13.71 3.85996C13.5318 3.56607 13.2807 3.32308 12.9812 3.15444C12.6817 2.98581 12.3438 2.89722 12 2.89722C11.6563 2.89722 11.3184 2.98581 11.0188 3.15444C10.7193 3.32308 10.4683 3.56607 10.29 3.85996Z\"\n fill=\"#CFAC43\"\n />\n <path\n d=\"M12 9V13\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M12 17H12.01\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @default {\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n ></svg>\n }\n }\n</div>\n<div class=\"aeb-notification__info\">\n <div class=\"aeb-notification__header\">\n {{ header() }}\n </div>\n <div class=\"aeb-notification__msg\" [innerHTML]=\"message()\"></div>\n @if (buttonText()) {\n <button\n class=\"aeb-notification__button\"\n (click)=\"handleButtonClick($event)\"\n [class.aeb-notification__button--info]=\"type() === 'info'\"\n [class.aeb-notification__button--error]=\"type() === 'error'\"\n [class.aeb-notification__button--success]=\"type() === 'success'\"\n [class.aeb-notification__button--warning]=\"type() === 'warning'\"\n >\n {{ buttonText() }}\n </button>\n }\n</div>\n<div\n class=\"aeb-notification__close\"\n [class]=\"'aeb-notification__close--' + type()\"\n (click)=\"handleClose($event, id())\"\n>\n <svg\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 8L16 16\"\n stroke=\"#07222D\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M16 8L8 16\"\n stroke=\"#07222D\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</div>\n", styles: [".aeb-notification{box-sizing:border-box;width:320px;min-height:76px;display:flex;justify-content:space-between;gap:16px;height:auto;padding:16px;border-radius:16px;-webkit-user-select:none;user-select:none}.aeb-notification--info{color:var(--c-sem-l-informative);border:1px solid var(--c-sem-btn-informative);background-color:var(--c-sem-bg-informative)}.aeb-notification--error{color:var(--c-sem-l-negative);border:1px solid var(--c-sem-btn-negative);background-color:var(--c-sem-bg-negative)}.aeb-notification--warning{color:var(--c-sem-l-warning);border:1px solid var(--c-sem-btn-warning);background-color:var(--c-sem-bg-warning)}.aeb-notification--success{color:var(--c-sem-l-positive);border:1px solid var(--c-sem-btn-positive);background-color:var(--c-sem-bg-positive)}.aeb-notification__icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.aeb-notification__info{width:100%}.aeb-notification__header{flex:auto;margin-bottom:4px;font-size:var(--font-size-s);font-weight:var(--font-weight-medium);word-break:break-all}.aeb-notification__button{margin-top:12px;background-color:transparent;border:none;cursor:pointer;font-size:14px;font-weight:400;font-family:inherit;line-height:20px;padding:0}.aeb-notification__button--info{color:var(--c-sem-btn-informative)}.aeb-notification__button--error{color:var(--c-sem-btn-negative)}.aeb-notification__button--warning{color:var(--c-sem-btn-warning)}.aeb-notification__button--success{color:var(--c-sem-btn-positive)}.aeb-notification__close{top:16px;right:16px;flex:0;cursor:pointer}.aeb-notification__close--info svg{stroke:var(--c-sem-l-informative)}.aeb-notification__close--success svg{stroke:var(--c-sem-l-positive)}.aeb-notification__close--warning svg{stroke:var(--c-sem-l-warning)}.aeb-notification__close--error svg{stroke:var(--c-sem-l-negative)}\n"] }]
3612
+ }], ctorParameters: () => [], propDecorators: { notification: [{
3606
3613
  type: HostBinding,
3607
3614
  args: ['class.aeb-notification']
3615
+ }], notificationClass: [{
3616
+ type: HostBinding,
3617
+ args: ['class']
3618
+ }], notificationState: [{
3619
+ type: HostBinding,
3620
+ args: ['@notificationState']
3621
+ }], onAnimationDone: [{
3622
+ type: HostListener,
3623
+ args: ['@notificationState.done', ['$event']]
3608
3624
  }], onOver: [{
3609
3625
  type: HostListener,
3610
3626
  args: ['mouseover']
@@ -3618,19 +3634,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3618
3634
 
3619
3635
  class NotificationsComponent {
3620
3636
  constructor() {
3637
+ this.orientationClasses = computed(() => this.orientations[this.notificationsPosition()], ...(ngDevMode ? [{ debugName: "orientationClasses" }] : []));
3621
3638
  this.orientations = {
3622
3639
  topLeft: 'aeb-notifications-left aeb-notifications-top',
3623
3640
  topRight: 'aeb-notifications-right aeb-notifications-top',
3624
3641
  bottomLeft: 'aeb-notifications-left aeb-notifications-bottom',
3625
3642
  bottomRight: 'aeb-notifications-right aeb-notifications-bottom'
3626
3643
  };
3627
- this.notificationsPosition = 'bottomRight';
3628
- this.notificationClick = new EventEmitter();
3629
- this.notificationClose = new EventEmitter();
3630
3644
  this.notificationContainer = true;
3645
+ this.areNotificationsReversed = computed(() => this.notificationsPosition() === 'topLeft' ||
3646
+ this.notificationsPosition() === 'topRight', ...(ngDevMode ? [{ debugName: "areNotificationsReversed" }] : []));
3647
+ this.notifications = input([], ...(ngDevMode ? [{ debugName: "notifications" }] : []));
3648
+ this.notificationsPosition = input('topRight', ...(ngDevMode ? [{ debugName: "notificationsPosition" }] : []));
3649
+ this.notificationClick = output();
3650
+ this.notificationClose = output();
3651
+ }
3652
+ get listAnimation() {
3653
+ return this.notifications().length;
3631
3654
  }
3632
3655
  get orientation() {
3633
- return this.orientations[this.notificationsPosition];
3656
+ return this.orientationClasses();
3634
3657
  }
3635
3658
  handleItemClick(id) {
3636
3659
  this.notificationClick.emit(id);
@@ -3639,22 +3662,54 @@ class NotificationsComponent {
3639
3662
  this.notificationClose.emit(id);
3640
3663
  }
3641
3664
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: NotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3642
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: NotificationsComponent, isStandalone: false, selector: "aeb-notifications", inputs: { notifications: "notifications", notificationsPosition: "notificationsPosition" }, outputs: { notificationClick: "notificationClick", notificationClose: "notificationClose" }, host: { properties: { "class.aeb-notifications-container": "this.notificationContainer", "class": "this.orientation" } }, ngImport: i0, template: "@for (item of notifications; track item) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [iconPath]=\"item.iconPath\"\n [lifeTime]=\"item.lifeTime\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:80px}.aeb-notifications-bottom{bottom:24px}\n"], dependencies: [{ kind: "component", type: NotificationComponent, selector: "aeb-notification", inputs: ["id", "message", "header", "iconPath", "lifeTime"], outputs: ["clickNotification", "closeNotification"] }], encapsulation: i0.ViewEncapsulation.None }); }
3665
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: NotificationsComponent, isStandalone: false, selector: "aeb-notifications", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, notificationsPosition: { classPropertyName: "notificationsPosition", publicName: "notificationsPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { notificationClick: "notificationClick", notificationClose: "notificationClose" }, host: { properties: { "class.aeb-notifications-container": "this.notificationContainer", "class.aeb-notifications-container--reversed": "this.areNotificationsReversed", "@listAnimation": "this.listAnimation", "class": "this.orientation" } }, ngImport: i0, template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"], dependencies: [{ kind: "component", type: NotificationComponent, selector: "aeb-notification", inputs: ["id", "header", "message", "type", "buttonText", "lifeTime"], outputs: ["buttonClick", "clickNotification", "closeNotification"] }], animations: [
3666
+ trigger('listAnimation', [
3667
+ transition('* => *', [
3668
+ query(':enter', [
3669
+ style({
3670
+ opacity: 0,
3671
+ transform: 'translateY(-10px)'
3672
+ }),
3673
+ stagger(50, [
3674
+ animate('200ms ease-out', style({
3675
+ opacity: 1,
3676
+ transform: 'translateY(0)'
3677
+ }))
3678
+ ])
3679
+ ], { optional: true })
3680
+ ])
3681
+ ])
3682
+ ], encapsulation: i0.ViewEncapsulation.None }); }
3643
3683
  }
3644
3684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: NotificationsComponent, decorators: [{
3645
3685
  type: Component,
3646
- args: [{ selector: 'aeb-notifications', encapsulation: ViewEncapsulation.None, standalone: false, template: "@for (item of notifications; track item) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [iconPath]=\"item.iconPath\"\n [lifeTime]=\"item.lifeTime\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:80px}.aeb-notifications-bottom{bottom:24px}\n"] }]
3647
- }], propDecorators: { notifications: [{
3648
- type: Input
3649
- }], notificationsPosition: [{
3650
- type: Input
3651
- }], notificationClick: [{
3652
- type: Output
3653
- }], notificationClose: [{
3654
- type: Output
3655
- }], notificationContainer: [{
3686
+ args: [{ selector: 'aeb-notifications', encapsulation: ViewEncapsulation.None, standalone: false, animations: [
3687
+ trigger('listAnimation', [
3688
+ transition('* => *', [
3689
+ query(':enter', [
3690
+ style({
3691
+ opacity: 0,
3692
+ transform: 'translateY(-10px)'
3693
+ }),
3694
+ stagger(50, [
3695
+ animate('200ms ease-out', style({
3696
+ opacity: 1,
3697
+ transform: 'translateY(0)'
3698
+ }))
3699
+ ])
3700
+ ], { optional: true })
3701
+ ])
3702
+ ])
3703
+ ], template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"] }]
3704
+ }], propDecorators: { notificationContainer: [{
3656
3705
  type: HostBinding,
3657
3706
  args: ['class.aeb-notifications-container']
3707
+ }], areNotificationsReversed: [{
3708
+ type: HostBinding,
3709
+ args: ['class.aeb-notifications-container--reversed']
3710
+ }], listAnimation: [{
3711
+ type: HostBinding,
3712
+ args: ['@listAnimation']
3658
3713
  }], orientation: [{
3659
3714
  type: HostBinding,
3660
3715
  args: ['class']
@@ -3825,146 +3880,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3825
3880
  }] });
3826
3881
 
3827
3882
  const defaultAmountOptions = [
3828
- { value: 10, label: 'По 10 на стр.' },
3829
- { value: 20, label: 'По 20 на стр.' },
3830
- { value: 30, label: 'По 30 на стр.' }
3883
+ { value: 10, label: '10 на странице' },
3884
+ { value: 20, label: '20 на странице' },
3885
+ { value: 30, label: '30 на странице' }
3831
3886
  ];
3832
3887
  class PaginationComponent {
3833
3888
  constructor() {
3834
3889
  this.baseSize = 7;
3835
- this.totalPages = 1500;
3836
- this.currentPage = 1;
3837
- this.usePageSizeSelector = false;
3838
- this.pageSize = 10;
3839
- this.btnType = 'text';
3840
- this.size = 'L';
3841
- this.pageSelect = new EventEmitter();
3842
- this.amountChange = new EventEmitter();
3843
3890
  this.isPagination = true;
3891
+ this.activePage = signal(1, ...(ngDevMode ? [{ debugName: "activePage" }] : []));
3892
+ this.totalPages = input(1500, ...(ngDevMode ? [{ debugName: "totalPages" }] : []));
3893
+ this.currentPage = input(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
3894
+ this.usePageSizeSelector = input(false, ...(ngDevMode ? [{ debugName: "usePageSizeSelector" }] : []));
3895
+ this.pageSize = input(10, ...(ngDevMode ? [{ debugName: "pageSize" }] : []));
3896
+ this.pageSelect = output();
3897
+ this.amountChange = output();
3844
3898
  this.pageSizeControl = new FormControl(10);
3845
- this.head = null;
3846
- this.tail = null;
3899
+ this.head = computed(() => {
3900
+ const total = this.totalPages();
3901
+ const page = this.activePage();
3902
+ if (total <= this.baseSize) {
3903
+ return null;
3904
+ }
3905
+ if (page <= 4) {
3906
+ return null;
3907
+ }
3908
+ return 1;
3909
+ }, ...(ngDevMode ? [{ debugName: "head" }] : []));
3910
+ this.middle = computed(() => {
3911
+ const total = this.totalPages();
3912
+ const page = this.activePage();
3913
+ const result = [];
3914
+ if (total <= this.baseSize) {
3915
+ for (let i = 1; i <= total; i++) {
3916
+ result.push(i);
3917
+ }
3918
+ return result;
3919
+ }
3920
+ if (page <= 4) {
3921
+ for (let i = 1; i <= 5; i++) {
3922
+ result.push(i);
3923
+ }
3924
+ return result;
3925
+ }
3926
+ if (page >= total - 3) {
3927
+ for (let i = total - 4; i <= total; i++) {
3928
+ result.push(i);
3929
+ }
3930
+ return result;
3931
+ }
3932
+ for (let i = page - 1; i <= page + 1; i++) {
3933
+ result.push(i);
3934
+ }
3935
+ return result;
3936
+ }, ...(ngDevMode ? [{ debugName: "middle" }] : []));
3937
+ this.tail = computed(() => {
3938
+ const total = this.totalPages();
3939
+ const page = this.activePage();
3940
+ if (total <= this.baseSize) {
3941
+ return null;
3942
+ }
3943
+ if (page <= 4) {
3944
+ return total;
3945
+ }
3946
+ if (page >= total - 3) {
3947
+ return null;
3948
+ }
3949
+ return total;
3950
+ }, ...(ngDevMode ? [{ debugName: "tail" }] : []));
3847
3951
  this.amountOptions = defaultAmountOptions;
3952
+ this.pageSizeControl.setValue(this.pageSize());
3848
3953
  }
3849
3954
  headPageHandler(page) {
3850
- this.currentPage = page;
3851
- this.renderPages(1);
3852
- this.pageSelect.emit(this.currentPage);
3955
+ this.activePage.set(page);
3956
+ this.pageSelect.emit(this.activePage());
3853
3957
  }
3854
- ngOnChanges(changes) {
3855
- if (this.currentPage &&
3856
- changes.currentPage &&
3857
- !changes.currentPage.firstChange) {
3858
- if (changes.currentPage.currentValue !== changes.currentPage.previousValue) {
3859
- this.renderPages(changes.currentPage.currentValue);
3860
- }
3861
- }
3862
- if (changes.totalPages && this.middle) {
3863
- this.currentPage = 1;
3864
- this.renderPages(this.currentPage);
3865
- this.pageSelect.emit(this.currentPage);
3866
- }
3867
- }
3868
- ngOnInit() {
3869
- this.pageSizeControl.setValue(this.pageSize);
3870
- this.renderPages(this.currentPage);
3871
- }
3872
- ngOnDestroy() { }
3873
3958
  handleChangePageSize(pageSize) {
3874
3959
  this.amountChange.emit(pageSize);
3875
3960
  }
3876
3961
  middlePageHandler(page) {
3877
- this.currentPage = page;
3878
- this.renderPages(this.currentPage);
3879
- this.pageSelect.emit(this.currentPage);
3962
+ this.activePage.set(page);
3963
+ this.pageSelect.emit(this.activePage());
3880
3964
  }
3881
3965
  nextPageHandler() {
3882
- if (this.currentPage === this.totalPages) {
3966
+ const current = this.activePage();
3967
+ const total = this.totalPages();
3968
+ if (current === total) {
3883
3969
  return;
3884
3970
  }
3885
- const nextPage = this.currentPage + 1;
3886
- this.currentPage = nextPage;
3887
- this.renderPages(nextPage);
3888
- this.pageSelect.emit(this.currentPage);
3971
+ const nextPage = current + 1;
3972
+ this.activePage.set(nextPage);
3973
+ this.pageSelect.emit(this.activePage());
3889
3974
  }
3890
3975
  prevPageHandler() {
3891
- if (this.currentPage === 1) {
3976
+ const current = this.activePage();
3977
+ if (current === 1) {
3892
3978
  return;
3893
3979
  }
3894
- const prevPage = this.currentPage - 1;
3895
- this.renderPages(prevPage);
3896
- this.currentPage = prevPage;
3897
- this.pageSelect.emit(this.currentPage);
3980
+ const prevPage = current - 1;
3981
+ this.activePage.set(prevPage);
3982
+ this.pageSelect.emit(this.activePage());
3898
3983
  }
3899
3984
  tailPageHandler(page) {
3900
- this.currentPage = page;
3901
- this.renderPages(this.currentPage);
3902
- this.pageSelect.emit(this.currentPage);
3903
- }
3904
- /**
3905
- * Результатом работы являются заполненные массивы головной, средней и конечной частей пагинации
3906
- *
3907
- * @param currentPage текущая страница
3908
- */
3909
- renderPages(currentPage) {
3910
- this.head = null;
3911
- this.middle = [];
3912
- this.tail = null;
3913
- if (this.totalPages <= this.baseSize) {
3914
- // Если общее количество страниц меньше или равно максимальному количеству отображаемых страниц,
3915
- // все страницы находятся в массиве middle
3916
- for (let i = 1; i <= this.totalPages; i++) {
3917
- this.middle.push(i);
3918
- }
3919
- }
3920
- else {
3921
- if (currentPage <= 4) {
3922
- // Первые 5 страниц: [1 2 3 4 5 ...]
3923
- for (let i = 1; i <= 5; i++) {
3924
- this.middle.push(i);
3925
- }
3926
- this.tail = this.totalPages;
3927
- }
3928
- else if (currentPage >= this.totalPages - 3) {
3929
- // Последние 5 страниц: [1 ... 96 97 98 99 100]
3930
- this.head = 1;
3931
- for (let i = this.totalPages - 4; i <= this.totalPages; i++) {
3932
- this.middle.push(i);
3933
- }
3934
- }
3935
- else {
3936
- // Страницы между head и tail
3937
- this.head = 1;
3938
- for (let i = currentPage - 1; i <= currentPage + 1; i++) {
3939
- this.middle.push(i);
3940
- }
3941
- this.tail = this.totalPages;
3942
- }
3943
- }
3985
+ this.activePage.set(page);
3986
+ this.pageSelect.emit(this.activePage());
3944
3987
  }
3945
3988
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3946
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", 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 }); }
3989
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: PaginationComponent, isStandalone: false, selector: "aeb-pagination", inputs: { totalPages: { classPropertyName: "totalPages", publicName: "totalPages", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, usePageSizeSelector: { classPropertyName: "usePageSizeSelector", publicName: "usePageSizeSelector", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, ngImport: i0, template: "<button\n (click)=\"prevPageHandler()\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--disabled': activePage() === 1\n }\"\n>\n <svg\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=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</button>\n\n@if (head()) {\n <button (click)=\"headPageHandler(head())\" class=\"aeb-pagination__button\">\n {{ head() }}\n </button>\n}\n\n@if (head()) {\n <div class=\"aeb-pagination__breaker\">...</div>\n}\n\n@for (page of middle(); track page) {\n <button\n (click)=\"middlePageHandler(page)\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--active': activePage() === page\n }\"\n >\n {{ page }}\n </button>\n}\n\n@if (tail()) {\n <div class=\"aeb-pagination__breaker\">...</div>\n}\n\n@if (tail()) {\n <button\n (click)=\"tailPageHandler(tail())\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--active': activePage() === tail()\n }\"\n >\n {{ tail() }}\n </button>\n}\n\n<button\n (click)=\"nextPageHandler()\"\n class=\"aeb-pagination__button aeb-pagination__button--reversed\"\n [ngClass]=\"{\n 'aeb-pagination__button--disabled': activePage() === totalPages()\n }\"\n>\n <svg\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=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</button>\n\n@if (usePageSizeSelector()) {\n <div class=\"aeb-pagination__select-container\">\n <aeb-select\n class=\"aeb-pagination__select\"\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\"\n [label]=\"'\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E'\"\n >\n </aeb-select>\n </div>\n}\n", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:center;color:var(--c-t-primary-white)}@media screen and (max-width: 900px){.aeb-pagination{gap:6px}}.aeb-pagination__button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--c-t-links);font-family:inherit;width:48px;height:48px;border-radius:12px;font-weight:400}.aeb-pagination__button:hover,.aeb-pagination__button:focus{background-color:var(--c-bg-surface)}.aeb-pagination__button--active{color:var(--c-t-primary-white);background-color:var(--c-btn-p-default)}.aeb-pagination__button--active:hover,.aeb-pagination__button--active:focus{background-color:var(--c-btn-p-default)}.aeb-pagination__button--disabled{opacity:.5;cursor:not-allowed}.aeb-pagination__button--reversed{transform:rotate(180deg)}@media screen and (max-width: 900px){.aeb-pagination__button{width:24px;height:24px;font-size:12px;border-radius:8px}}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--c-t-links);width:48px;height:48px;font-size:16px;display:flex;align-items:center;justify-content:center}@media screen and (max-width: 900px){.aeb-pagination__breaker{font-size:12px;width:24px;height:24px}}.aeb-pagination__select-container{width:192px}@media screen and (max-width: 900px){.aeb-pagination__select-container{display:none}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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 }); }
3947
3990
  }
3948
3991
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: PaginationComponent, decorators: [{
3949
3992
  type: Component,
3950
- 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"] }]
3951
- }], ctorParameters: () => [], propDecorators: { totalPages: [{
3952
- type: Input
3953
- }], currentPage: [{
3954
- type: Input
3955
- }], usePageSizeSelector: [{
3956
- type: Input
3957
- }], pageSize: [{
3958
- type: Input
3959
- }], btnType: [{
3960
- type: Input
3961
- }], size: [{
3962
- type: Input
3963
- }], pageSelect: [{
3964
- type: Output
3965
- }], amountChange: [{
3966
- type: Output
3967
- }], isPagination: [{
3993
+ args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button\n (click)=\"prevPageHandler()\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--disabled': activePage() === 1\n }\"\n>\n <svg\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=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</button>\n\n@if (head()) {\n <button (click)=\"headPageHandler(head())\" class=\"aeb-pagination__button\">\n {{ head() }}\n </button>\n}\n\n@if (head()) {\n <div class=\"aeb-pagination__breaker\">...</div>\n}\n\n@for (page of middle(); track page) {\n <button\n (click)=\"middlePageHandler(page)\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--active': activePage() === page\n }\"\n >\n {{ page }}\n </button>\n}\n\n@if (tail()) {\n <div class=\"aeb-pagination__breaker\">...</div>\n}\n\n@if (tail()) {\n <button\n (click)=\"tailPageHandler(tail())\"\n class=\"aeb-pagination__button\"\n [ngClass]=\"{\n 'aeb-pagination__button--active': activePage() === tail()\n }\"\n >\n {{ tail() }}\n </button>\n}\n\n<button\n (click)=\"nextPageHandler()\"\n class=\"aeb-pagination__button aeb-pagination__button--reversed\"\n [ngClass]=\"{\n 'aeb-pagination__button--disabled': activePage() === totalPages()\n }\"\n>\n <svg\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=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n</button>\n\n@if (usePageSizeSelector()) {\n <div class=\"aeb-pagination__select-container\">\n <aeb-select\n class=\"aeb-pagination__select\"\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\"\n [label]=\"'\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E'\"\n >\n </aeb-select>\n </div>\n}\n", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:center;color:var(--c-t-primary-white)}@media screen and (max-width: 900px){.aeb-pagination{gap:6px}}.aeb-pagination__button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--c-t-links);font-family:inherit;width:48px;height:48px;border-radius:12px;font-weight:400}.aeb-pagination__button:hover,.aeb-pagination__button:focus{background-color:var(--c-bg-surface)}.aeb-pagination__button--active{color:var(--c-t-primary-white);background-color:var(--c-btn-p-default)}.aeb-pagination__button--active:hover,.aeb-pagination__button--active:focus{background-color:var(--c-btn-p-default)}.aeb-pagination__button--disabled{opacity:.5;cursor:not-allowed}.aeb-pagination__button--reversed{transform:rotate(180deg)}@media screen and (max-width: 900px){.aeb-pagination__button{width:24px;height:24px;font-size:12px;border-radius:8px}}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--c-t-links);width:48px;height:48px;font-size:16px;display:flex;align-items:center;justify-content:center}@media screen and (max-width: 900px){.aeb-pagination__breaker{font-size:12px;width:24px;height:24px}}.aeb-pagination__select-container{width:192px}@media screen and (max-width: 900px){.aeb-pagination__select-container{display:none}}\n"] }]
3994
+ }], ctorParameters: () => [], propDecorators: { isPagination: [{
3968
3995
  type: HostBinding,
3969
3996
  args: ['class.aeb-pagination']
3970
3997
  }] } });
@@ -5401,13 +5428,13 @@ class AebSwitchComponent {
5401
5428
  this.renderer.setAttribute(el, 'aria-checked', String(this.checked));
5402
5429
  }
5403
5430
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AebSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5404
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AebSwitchComponent, isStandalone: false, selector: "aeb-switch", inputs: { id: "id", name: "name", warning: "warning", label: "label" }, outputs: { changed: "changed" }, host: { listeners: { "click": "toggle($event)", "keydown.space": "onSpace($event)", "mousedown": "onPressStart()", "mouseup": "onPressEndMouseUp()", "mouseout": "onPressEndMouseOut()" }, properties: { "class.switch": "this.hostClass", "attr.role": "this.role", "attr.aria-checked": "this.ariaChecked", "class.switch--warning": "this.isWarningOrInvalid" } }, providers: [
5431
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AebSwitchComponent, isStandalone: false, selector: "aeb-switch", inputs: { id: "id", name: "name", warning: "warning", label: "label" }, outputs: { changed: "changed" }, host: { listeners: { "click": "toggle($event)", "keydown.space": "onSpace($event)", "mousedown": "onPressStart()", "mouseup": "onPressEndMouseUp()", "mouseout": "onPressEndMouseOut()" }, properties: { "class.switch": "this.hostClass", "attr.role": "this.role", "attr.aria-checked": "this.ariaChecked", "class.switch--warning": "this.isWarningOrInvalid" } }, providers: [
5405
5432
  {
5406
5433
  provide: NG_VALUE_ACCESSOR,
5407
5434
  useExisting: forwardRef(() => AebSwitchComponent),
5408
5435
  multi: true
5409
5436
  }
5410
- ], viewQueries: [{ propertyName: "switchInput", first: true, predicate: ["switchInput"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"switch-wrapper\">\n <label class=\"switch\" [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\" [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\" tabindex=\"0\">\n <input #switchInput type=\"checkbox\" [id]=\"id\" [name]=\"name\" class=\"visually-hidden\" [disabled]=\"disabled\"\n [checked]=\"checked\" />\n\n <span class=\"switch-slider\"></span>\n </label>\n <span *ngIf=\"label\" class=\"switch-label\">{{ label }}</span>\n</div>", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5437
+ ], viewQueries: [{ propertyName: "switchInput", first: true, predicate: ["switchInput"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"switch-wrapper\">\n <label\n class=\"switch\"\n [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\"\n [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\"\n tabindex=\"0\"\n >\n <input\n #switchInput\n type=\"checkbox\"\n [id]=\"id\"\n [name]=\"name\"\n class=\"visually-hidden\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n />\n\n <span class=\"switch-slider\"></span>\n </label>\n @if (label) {\n <span class=\"switch-label\">{{ label }}</span>\n }\n</div>\n", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5411
5438
  }
5412
5439
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AebSwitchComponent, decorators: [{
5413
5440
  type: Component,
@@ -5417,7 +5444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
5417
5444
  useExisting: forwardRef(() => AebSwitchComponent),
5418
5445
  multi: true
5419
5446
  }
5420
- ], standalone: false, template: "<div class=\"switch-wrapper\">\n <label class=\"switch\" [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\" [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\" tabindex=\"0\">\n <input #switchInput type=\"checkbox\" [id]=\"id\" [name]=\"name\" class=\"visually-hidden\" [disabled]=\"disabled\"\n [checked]=\"checked\" />\n\n <span class=\"switch-slider\"></span>\n </label>\n <span *ngIf=\"label\" class=\"switch-label\">{{ label }}</span>\n</div>", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"] }]
5447
+ ], standalone: false, template: "<div class=\"switch-wrapper\">\n <label\n class=\"switch\"\n [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\"\n [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\"\n tabindex=\"0\"\n >\n <input\n #switchInput\n type=\"checkbox\"\n [id]=\"id\"\n [name]=\"name\"\n class=\"visually-hidden\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n />\n\n <span class=\"switch-slider\"></span>\n </label>\n @if (label) {\n <span class=\"switch-label\">{{ label }}</span>\n }\n</div>\n", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"] }]
5421
5448
  }], ctorParameters: () => [], propDecorators: { switchInput: [{
5422
5449
  type: ViewChild,
5423
5450
  args: ['switchInput', { static: true }]