aeb-ui-kit 8.0.0-preview.911 → 8.0.0-preview.913

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.
@@ -4,14 +4,13 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
5
5
  import * as i1$1 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
7
- import { timer, map, takeUntil, Observable, BehaviorSubject, Subject, Subscription, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap, fromEvent } from 'rxjs';
7
+ import { timer, map, takeUntil, Observable, BehaviorSubject, Subject, Subscription, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap } from 'rxjs';
8
8
  import { trigger, state, style, transition, animate } from '@angular/animations';
9
9
  import * as i2 from '@angular/platform-browser';
10
10
  import { provideNgxMask } from 'ngx-mask';
11
11
  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';
12
12
  import { ru } from 'date-fns/locale';
13
13
  import '@angular/common/locales/global/ru';
14
- import { debounceTime } from 'rxjs/operators';
15
14
 
16
15
  class AccordionComponent {
17
16
  constructor() {
@@ -3940,8 +3939,12 @@ class SelectComponent {
3940
3939
  this.disabled = false;
3941
3940
  this.direction = 'bottom';
3942
3941
  this.optionSelect = new EventEmitter();
3942
+ this.isSelect = true;
3943
3943
  this.isOpen = false;
3944
3944
  }
3945
+ clickOutside() {
3946
+ this.handleClickOutside();
3947
+ }
3945
3948
  get selectedOption() {
3946
3949
  if (this.options) {
3947
3950
  return this.options.find((option) => option.value === this._value);
@@ -4008,23 +4011,28 @@ class SelectComponent {
4008
4011
  this.cdr.detectChanges();
4009
4012
  }
4010
4013
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: SelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
4011
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.1", type: SelectComponent, selector: "aeb-select", inputs: { label: "label", options: "options", hasError: "hasError", disabled: "disabled", direction: "direction" }, outputs: { optionSelect: "optionSelect" }, providers: [
4014
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.1", type: SelectComponent, selector: "aeb-select", inputs: { label: "label", options: "options", hasError: "hasError", disabled: "disabled", direction: "direction" }, outputs: { optionSelect: "optionSelect" }, host: { listeners: { "clickOutside": "clickOutside()" }, properties: { "class.disabled": "this.disabled", "class.aeb-select": "this.isSelect" } }, providers: [
4012
4015
  {
4013
4016
  provide: NG_VALUE_ACCESSOR,
4014
4017
  useExisting: forwardRef(() => SelectComponent),
4015
4018
  multi: true
4016
4019
  }
4017
- ], ngImport: i0, template: "<div\n class=\"aeb-select\"\n [ngClass]=\"{ disabled }\"\n (clickOutside)=\"handleClickOutside()\"\n>\n <label\n class=\"aeb-select-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div\n class=\"aeb-select-selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-select-selected-item-text\">\n {{ selectedOption.label }}\n </div>\n </div>\n\n <div\n class=\"aeb-select-icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <ul\n class=\"aeb-select-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <li\n class=\"aeb-select-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select .aeb-select-icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select .aeb-select-icon.open{transform:rotate(180deg)}.aeb-select .aeb-select-icon.open path{stroke:var(--color-blue-500)}.aeb-select .aeb-select-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select .aeb-select-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select .aeb-select-selected-item.open{border-color:var(--color-blue-500)}.aeb-select .aeb-select-selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select .aeb-select-selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select .aeb-select-selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select .aeb-select-float-label{position:absolute;left:16px;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0)}.aeb-select .aeb-select-float-label.open{color:var(--color-blue-500)}.aeb-select .aeb-select-float-label.open.top{visibility:hidden}.aeb-select .aeb-select-float-label.error{color:var(--color-red-500)}.aeb-select .aeb-select-float-label.float{top:-6px;padding:0 5px}.aeb-select .aeb-select-float-label.placeholder{color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded)}.aeb-select .aeb-select-float-label.placeholder.error{color:var(--color-red-500)}.aeb-select .aeb-select-float-label.placeholder.disabled{cursor:default}.aeb-select .aeb-select-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none}.aeb-select .aeb-select-menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select .aeb-select-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select .aeb-select-menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select .aeb-select-menu.error{border-color:var(--color-red-500)}.aeb-select .aeb-select-menu .aeb-select-item{padding:18px 14px;height:20px;line-height:20px}.aeb-select .aeb-select-menu .aeb-select-item.active,.aeb-select .aeb-select-menu .aeb-select-item:hover{background-color:var(--color-blue-50)}.aeb-select .aeb-select-menu .aeb-select-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }], encapsulation: i0.ViewEncapsulation.None }); }
4020
+ ], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:20px;line-height:20px;text-overflow:ellipsis;overflow:hidden}.aeb-select__menu-item.active,.aeb-select__menu-item:hover{background-color:var(--color-blue-50)}.aeb-select__menu-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], encapsulation: i0.ViewEncapsulation.None }); }
4018
4021
  }
4019
4022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: SelectComponent, decorators: [{
4020
4023
  type: Component,
4021
- args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, providers: [
4024
+ args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, hostDirectives: [
4025
+ {
4026
+ directive: ClickOutsideDirective,
4027
+ outputs: ['clickOutside']
4028
+ }
4029
+ ], providers: [
4022
4030
  {
4023
4031
  provide: NG_VALUE_ACCESSOR,
4024
4032
  useExisting: forwardRef(() => SelectComponent),
4025
4033
  multi: true
4026
4034
  }
4027
- ], template: "<div\n class=\"aeb-select\"\n [ngClass]=\"{ disabled }\"\n (clickOutside)=\"handleClickOutside()\"\n>\n <label\n class=\"aeb-select-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div\n class=\"aeb-select-selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-select-selected-item-text\">\n {{ selectedOption.label }}\n </div>\n </div>\n\n <div\n class=\"aeb-select-icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <ul\n class=\"aeb-select-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <li\n class=\"aeb-select-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select .aeb-select-icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select .aeb-select-icon.open{transform:rotate(180deg)}.aeb-select .aeb-select-icon.open path{stroke:var(--color-blue-500)}.aeb-select .aeb-select-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select .aeb-select-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select .aeb-select-selected-item.open{border-color:var(--color-blue-500)}.aeb-select .aeb-select-selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select .aeb-select-selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select .aeb-select-selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select .aeb-select-float-label{position:absolute;left:16px;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0)}.aeb-select .aeb-select-float-label.open{color:var(--color-blue-500)}.aeb-select .aeb-select-float-label.open.top{visibility:hidden}.aeb-select .aeb-select-float-label.error{color:var(--color-red-500)}.aeb-select .aeb-select-float-label.float{top:-6px;padding:0 5px}.aeb-select .aeb-select-float-label.placeholder{color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded)}.aeb-select .aeb-select-float-label.placeholder.error{color:var(--color-red-500)}.aeb-select .aeb-select-float-label.placeholder.disabled{cursor:default}.aeb-select .aeb-select-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none}.aeb-select .aeb-select-menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select .aeb-select-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select .aeb-select-menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select .aeb-select-menu.error{border-color:var(--color-red-500)}.aeb-select .aeb-select-menu .aeb-select-item{padding:18px 14px;height:20px;line-height:20px}.aeb-select .aeb-select-menu .aeb-select-item.active,.aeb-select .aeb-select-menu .aeb-select-item:hover{background-color:var(--color-blue-50)}.aeb-select .aeb-select-menu .aeb-select-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}\n"] }]
4035
+ ], template: "<div\n class=\"aeb-select__selected-item\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"openDropdown()\"\n>\n <label\n class=\"aeb-select__label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n float: selectedOption,\n open: isOpen && selectedOption,\n top: direction === 'top',\n disabled\n }\"\n (click)=\"openDropdown()\"\n >\n {{ label }}\n </label>\n <div *ngIf=\"selectedOption\" class=\"aeb-select__selected-item-text\">\n {{ selectedOption.label }}\n </div>\n</div>\n\n<div\n class=\"aeb-select__icon\"\n [ngClass]=\"{ open: isOpen }\"\n [ngSwitch]=\"disabled\"\n>\n <svg\n *ngSwitchCase=\"false\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A9B0B9\"\n stroke-width=\"2\"\n />\n </svg>\n</div>\n\n<ul\n class=\"aeb-select__menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n>\n <li\n class=\"aeb-select__menu-item\"\n [ngClass]=\"{\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:var(--font-size-m);color:var(--color-mono-900);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default}.aeb-select__selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:52px;padding-left:14px;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);border-radius:var(--border-medium-rounded)}.aeb-select__selected-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-select__selected-item.open{border-color:var(--color-blue-500)}.aeb-select__selected-item.open.top{border-top:0;padding-top:2px;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__selected-item.open.bottom{border-bottom:0;padding-bottom:2px;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0}.aeb-select__selected-item.error{color:var(--color-red-500);background:var(--color-mono-0);border-color:var(--color-red-500)}.aeb-select__label{width:fit-content;text-overflow:ellipsis;font-size:var(--font-size-xxs);color:var(--color-mono-300);background:var(--color-mono-0);white-space:nowrap;overflow:hidden}.aeb-select__label.open{color:var(--color-blue-500)}.aeb-select__label.open.top{visibility:hidden}.aeb-select__label.error{color:var(--color-red-500)}.aeb-select__label.float{position:absolute;width:fit-content;left:16px;top:-6px;padding:0 5px}.aeb-select__label.placeholder{width:100%;color:var(--color-mono-300);cursor:pointer;top:18px;font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:20px;background:var(--color-mono-0);border-radius:var(--border-medium-rounded);text-overflow:ellipsis;pointer-events:none}.aeb-select__label.placeholder.error{color:var(--color-red-500)}.aeb-select__label.placeholder.disabled{cursor:default}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__icon.open path{stroke:var(--color-blue-500)}.aeb-select__menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-300);padding:0;margin:0;list-style:none;white-space:nowrap}.aeb-select__menu.bottom{top:100%;border-top:none;border-radius:0 0 var(--border-medium-rounded) var(--border-medium-rounded)}.aeb-select__menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:var(--border-medium-rounded) var(--border-medium-rounded) 0 0;transform:translateY(-100%)}.aeb-select__menu.open{display:block;border-color:var(--color-blue-500)}.aeb-select__menu.error{border-color:var(--color-red-500)}.aeb-select__menu-item{padding:18px 14px;height:20px;line-height:20px;text-overflow:ellipsis;overflow:hidden}.aeb-select__menu-item.active,.aeb-select__menu-item:hover{background-color:var(--color-blue-50)}.aeb-select__menu-item.bottom:last-child{border-radius:0 0 calc(var(--border-medium-rounded) - var(--border-skinny)) calc(var(--border-medium-rounded) - var(--border-skinny))}\n"] }]
4028
4036
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { label: [{
4029
4037
  type: Input
4030
4038
  }], options: [{
@@ -4033,10 +4041,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
4033
4041
  type: Input
4034
4042
  }], disabled: [{
4035
4043
  type: Input
4044
+ }, {
4045
+ type: HostBinding,
4046
+ args: ['class.disabled']
4036
4047
  }], direction: [{
4037
4048
  type: Input
4038
4049
  }], optionSelect: [{
4039
4050
  type: Output
4051
+ }], isSelect: [{
4052
+ type: HostBinding,
4053
+ args: ['class.aeb-select']
4054
+ }], clickOutside: [{
4055
+ type: HostListener,
4056
+ args: ['clickOutside']
4040
4057
  }] } });
4041
4058
 
4042
4059
  class SelectModule {
@@ -4053,7 +4070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
4053
4070
  }]
4054
4071
  }] });
4055
4072
 
4056
- const defaultAmountOptions$1 = [
4073
+ const defaultAmountOptions = [
4057
4074
  {
4058
4075
  value: 10,
4059
4076
  label: 'По 10 на стр.'
@@ -4079,7 +4096,7 @@ class PaginationComponent {
4079
4096
  this.pageSizeControl = new FormControl(10);
4080
4097
  this.head = null;
4081
4098
  this.tail = null;
4082
- this.amountOptions = defaultAmountOptions$1;
4099
+ this.amountOptions = defaultAmountOptions;
4083
4100
  this.baseSize = 7;
4084
4101
  }
4085
4102
  headPageHandler(page) {
@@ -5630,240 +5647,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
5630
5647
  }]
5631
5648
  }] });
5632
5649
 
5633
- const defaultAmountOptions = [
5634
- {
5635
- value: 10,
5636
- label: 'По 10 на стр.'
5637
- },
5638
- {
5639
- value: 20,
5640
- label: 'По 20 на стр.'
5641
- },
5642
- {
5643
- value: 30,
5644
- label: 'По 30 на стр.'
5645
- }
5646
- ];
5647
- class PaginationOldComponent {
5648
- constructor(cdr, element) {
5649
- this.cdr = cdr;
5650
- this.element = element;
5651
- this.pageSelect = new EventEmitter();
5652
- this.amountChange = new EventEmitter();
5653
- this.totalPages = 1500;
5654
- this.currentPage = 1;
5655
- this.amountOptions = defaultAmountOptions;
5656
- this.adaptiveBase = 13;
5657
- }
5658
- get amount() {
5659
- return this._amount;
5660
- }
5661
- set amount(value) {
5662
- const correct = this.amountOptions.some((amount) => amount.value === value);
5663
- if (!correct) {
5664
- return;
5665
- }
5666
- this._amount = value;
5667
- if (this.amountSelect) {
5668
- // до того как компонент проинициализирован amountSelect равен null
5669
- this.amountSelect.setValue(value);
5670
- this.cdr.detectChanges();
5671
- }
5672
- }
5673
- headPageHandler(page) {
5674
- this.currentPage = page;
5675
- this.renderPages(1);
5676
- this.pageSelect.emit(this.currentPage);
5677
- }
5678
- amountChangeHandler(value) {
5679
- this._amount = parseInt(value);
5680
- this.amountChange.emit(this._amount);
5681
- }
5682
- ngOnChanges(changes) {
5683
- if (this.currentPage &&
5684
- changes.currentPage &&
5685
- !changes.currentPage.firstChange) {
5686
- if (changes.currentPage.currentValue !== changes.currentPage.previousValue) {
5687
- this.renderPages(changes.currentPage.currentValue);
5688
- }
5689
- }
5690
- if (changes.totalPages && this.middle) {
5691
- this.currentPage = 1;
5692
- this.renderPages(1);
5693
- this.pageSelect.emit(1);
5694
- }
5695
- if (changes.adaptive && this.currentPage) {
5696
- const adaptiveNumber = parseInt(changes.adaptive.currentValue);
5697
- this.adaptive = adaptiveNumber;
5698
- this.adaptiveBase = adaptiveNumber;
5699
- this.renderPages(this.currentPage);
5700
- }
5701
- }
5702
- ngOnInit() {
5703
- const parentNode = this.element.nativeElement
5704
- .parentElement;
5705
- this.windowResizedCallback = () => {
5706
- const adaptive = parentNode.clientWidth
5707
- ? this.getAdaptiveByBreakPoint(parentNode.clientWidth)
5708
- : this.getAdaptiveByBreakPoint(window.innerWidth);
5709
- if (this.adaptive && adaptive >= this.adaptive) {
5710
- this.adaptiveBase = this.adaptive;
5711
- }
5712
- else if (this.adaptive && adaptive < this.adaptive) {
5713
- this.adaptiveBase = adaptive;
5714
- }
5715
- else if (!this.adaptive) {
5716
- this.adaptiveBase = adaptive;
5717
- }
5718
- this.renderPages(this.currentPage);
5719
- };
5720
- this.resizeSub$ = fromEvent(window, 'resize')
5721
- .pipe(debounceTime(40))
5722
- .subscribe(this.windowResizedCallback);
5723
- this.windowResizedCallback();
5724
- }
5725
- ngOnDestroy() {
5726
- this.resizeSub$.unsubscribe();
5727
- // window.removeEventListener('resize', this.windowResizedCallback);
5728
- }
5729
- ngAfterViewInit() {
5730
- if (!this.amount) {
5731
- // после присваивания не вызываем `amountSelect.setValue`, т.к. в сеттере amount
5732
- // итак произойдет этот вызов
5733
- this.amount = this.amountOptions[0].value;
5734
- }
5735
- else {
5736
- this.amountSelect.setValue(this.amount);
5737
- this.cdr.detectChanges();
5738
- }
5739
- }
5740
- middlePageHandler(page) {
5741
- this.currentPage = page;
5742
- this.pageSelect.emit(this.currentPage);
5743
- }
5744
- nextPageHandler() {
5745
- if (this.currentPage === this.totalPages) {
5746
- return;
5747
- }
5748
- const nextPage = this.currentPage + 1;
5749
- this.currentPage = nextPage;
5750
- if (!this.middle.includes(nextPage)) {
5751
- this.renderPages(nextPage);
5752
- }
5753
- this.pageSelect.emit(this.currentPage);
5754
- }
5755
- prevPageHandler() {
5756
- if (this.currentPage === 1) {
5757
- return;
5758
- }
5759
- const prevPage = this.currentPage - 1;
5760
- this.currentPage = prevPage;
5761
- if (!this.middle.includes(prevPage)) {
5762
- this.renderPages(prevPage - (this.adaptiveBase - 1));
5763
- }
5764
- this.pageSelect.emit(this.currentPage);
5765
- }
5766
- tailPageHandler(page) {
5767
- this.currentPage = page;
5768
- this.renderPages([...new Array(this.adaptiveBase)]
5769
- .map((_, i) => this.totalPages - i)
5770
- .reverse()
5771
- .filter((item) => !this.middle.includes(item))[0]);
5772
- this.pageSelect.emit(this.currentPage);
5773
- }
5774
- getAdaptiveByBreakPoint(breakPoint) {
5775
- if (breakPoint < 600) {
5776
- return 2;
5777
- }
5778
- else if (breakPoint >= 600 && breakPoint < 700) {
5779
- return 3;
5780
- }
5781
- else if (breakPoint >= 700 && breakPoint < 1150) {
5782
- return 5;
5783
- }
5784
- else if (breakPoint >= 1150 && breakPoint < 1420) {
5785
- return 8;
5786
- }
5787
- else {
5788
- return 13;
5789
- }
5790
- }
5791
- /**
5792
- * Результатом работы являются заполненные массивы головной, средней и конечной частей пагинации
5793
- *
5794
- * @param currentPage текущая страница
5795
- */
5796
- renderPages(currentPage) {
5797
- this.middle = [...new Array(this.adaptiveBase)]
5798
- .map((_, page) => {
5799
- /**
5800
- * если текущая страница больше adaptiveBase, то добавляем к page значение adaptiveBase + 1,
5801
- * тогда значения в middle будут лежать в диапазоне [adaptiveBase + 1: adaptiveBase * 2],
5802
- * затем добавляем смещение (offset), для случая когда значение текущей страницы лежит за пределами диапазона
5803
- */
5804
- if (currentPage > this.adaptiveBase) {
5805
- const offset = this.adaptiveBase *
5806
- Math.floor((currentPage - (this.adaptiveBase + 1)) / this.adaptiveBase);
5807
- page += this.adaptiveBase + 1 + offset;
5808
- }
5809
- else {
5810
- page += 1;
5811
- }
5812
- return page <= this.totalPages ? page : null;
5813
- })
5814
- .filter((item) => !!item);
5815
- if (this.totalPages === 1) {
5816
- this.head = [];
5817
- }
5818
- else {
5819
- this.head = [1, 2].filter((page) => !this.middle.includes(page));
5820
- }
5821
- this.tail = [...new Array(2)]
5822
- .map((_, i) => this.totalPages - i)
5823
- .filter((item) => !this.middle.includes(item) && item > this.currentPage)
5824
- .reverse();
5825
- }
5826
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
5827
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.1", type: PaginationOldComponent, selector: "aeb-pagination-old", inputs: { totalPages: "totalPages", currentPage: "currentPage", amountOptions: "amountOptions", adaptive: "adaptive", amount: "amount" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, viewQueries: [{ propertyName: "amountSelect", first: true, predicate: ["amountSelect"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"aeb-pagination-old\">\n <div\n class=\"aeb-pagination-old__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination-old__button--disable': currentPage === 1\n }\"\n >\n <div\n class=\"aeb-pagination-old__arrow-icon aeb-pagination-old__arrow-icon--left\"\n >\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination-old__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n </div>\n <div class=\"aeb-pagination-old__block\">\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of head\"\n (click)=\"headPageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination-old__breaker\" *ngIf=\"head.length\">...</div>\n\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination-old__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination-old__breaker\" *ngIf=\"tail.length\">...</div>\n\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of tail\"\n (click)=\"tailPageHandler(page)\"\n >\n {{ page }}\n </div>\n </div>\n <div class=\"aeb-pagination-old__block\">\n <div class=\"aeb-pagination-old__amount\">\n <aeb-select\n (optionSelect)=\"amountChangeHandler($event)\"\n #amountSelect\n [direction]=\"'bottom'\"\n [options]=\"amountOptions\"\n >\n </aeb-select>\n </div>\n\n <div class=\"aeb-pagination-old__block\">\n <div\n class=\"aeb-pagination-old__button aeb-pagination-old__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination-old__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination-old__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div\n class=\"aeb-pagination-old__arrow-icon aeb-pagination-old__arrow-icon--right\"\n >\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".aeb-pagination-old{position:relative;display:inline-flex;align-items:center;justify-content:space-between;width:100%;color:var(--color-mono-900)}.aeb-pagination-old__button{box-sizing:border-box;display:flex;align-items:center;width:133px;padding:8px 24px;color:var(--color-blue-500);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-radius:var(--border-medium-rounded)}.aeb-pagination-old__button--right{padding-left:24px;margin-left:27px}.aeb-pagination-old__button--disable{color:var(--gray-primary);cursor:unset;border:var(--border-skinny) solid var(--gray-primary)}.aeb-pagination-old__button--disable .aeb-pagination-old__arrow-icon svg path{stroke:var(--gray-primary)}@media screen and (max-width: 1150px){.aeb-pagination-old__button{width:100px;padding:6px 12px;font-size:var(--font-size-xs)}.aeb-pagination-old__button--right{margin-left:13px}}@media screen and (max-width: 600px){.aeb-pagination-old__button{justify-content:center;width:unset;padding:2px 8px}.aeb-pagination-old__button--right{margin-left:10px}}.aeb-pagination-old__arrow-icon{position:relative;bottom:1px;margin-right:18px}.aeb-pagination-old__arrow-icon--left{transform:scaleX(-1)}.aeb-pagination-old__arrow-icon--right{margin-right:0;margin-left:18px}@media screen and (max-width: 1150px){.aeb-pagination-old__arrow-icon{bottom:0}}@media screen and (max-width: 600px){.aeb-pagination-old__arrow-icon,.aeb-pagination-old__arrow-icon--right{top:1px;margin:0}}.aeb-pagination-old__page{margin-left:27px;color:var(--color-blue-500);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-pagination-old__page--active{color:var(--color-mono-900)}@media screen and (max-width: 1150px){.aeb-pagination-old__page{margin-left:13px;font-size:var(--font-size-xs)}}@media screen and (max-width: 600px){.aeb-pagination-old__page{margin-left:10px;font-size:var(--font-size-xxs)}}.aeb-pagination-old__breaker{margin-left:27px;color:var(--color-blue-500);-webkit-user-select:none;user-select:none}@media screen and (max-width: 1150px){.aeb-pagination-old__breaker{margin-left:13px}}@media screen and (max-width: 600px){.aeb-pagination-old__breaker{margin-left:10px}}@media screen and (max-width: 600px){.aeb-pagination-old__button-label{display:none}}.aeb-pagination-old__block{display:inline-flex;align-items:center}.aeb-pagination-old__amount{position:relative;top:3px;width:168px;height:44px;margin-left:27px}.aeb-pagination-old__amount .aeb-dropdown-selected-item{height:39px!important;color:var(--color-mono-900);background:transparent!important}.aeb-pagination-old__amount .aeb-dropdown-selected-item.open{background:var(--white)!important}.aeb-pagination-old__amount .aeb-dropdown-icon{top:10px!important}.aeb-pagination-old__amount .aeb-dropdown-item{padding:8px 16px!important}@media screen and (max-width: 1150px){.aeb-pagination-old__amount{position:absolute;top:calc(100% + 18px);left:0;margin:0}}\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"] }], encapsulation: i0.ViewEncapsulation.None }); }
5828
- }
5829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldComponent, decorators: [{
5830
- type: Component,
5831
- args: [{ selector: 'aeb-pagination-old', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-pagination-old\">\n <div\n class=\"aeb-pagination-old__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination-old__button--disable': currentPage === 1\n }\"\n >\n <div\n class=\"aeb-pagination-old__arrow-icon aeb-pagination-old__arrow-icon--left\"\n >\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination-old__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n </div>\n <div class=\"aeb-pagination-old__block\">\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of head\"\n (click)=\"headPageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination-old__breaker\" *ngIf=\"head.length\">...</div>\n\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination-old__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination-old__breaker\" *ngIf=\"tail.length\">...</div>\n\n <div\n class=\"aeb-pagination-old__page\"\n *ngFor=\"let page of tail\"\n (click)=\"tailPageHandler(page)\"\n >\n {{ page }}\n </div>\n </div>\n <div class=\"aeb-pagination-old__block\">\n <div class=\"aeb-pagination-old__amount\">\n <aeb-select\n (optionSelect)=\"amountChangeHandler($event)\"\n #amountSelect\n [direction]=\"'bottom'\"\n [options]=\"amountOptions\"\n >\n </aeb-select>\n </div>\n\n <div class=\"aeb-pagination-old__block\">\n <div\n class=\"aeb-pagination-old__button aeb-pagination-old__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination-old__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination-old__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div\n class=\"aeb-pagination-old__arrow-icon aeb-pagination-old__arrow-icon--right\"\n >\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".aeb-pagination-old{position:relative;display:inline-flex;align-items:center;justify-content:space-between;width:100%;color:var(--color-mono-900)}.aeb-pagination-old__button{box-sizing:border-box;display:flex;align-items:center;width:133px;padding:8px 24px;color:var(--color-blue-500);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-radius:var(--border-medium-rounded)}.aeb-pagination-old__button--right{padding-left:24px;margin-left:27px}.aeb-pagination-old__button--disable{color:var(--gray-primary);cursor:unset;border:var(--border-skinny) solid var(--gray-primary)}.aeb-pagination-old__button--disable .aeb-pagination-old__arrow-icon svg path{stroke:var(--gray-primary)}@media screen and (max-width: 1150px){.aeb-pagination-old__button{width:100px;padding:6px 12px;font-size:var(--font-size-xs)}.aeb-pagination-old__button--right{margin-left:13px}}@media screen and (max-width: 600px){.aeb-pagination-old__button{justify-content:center;width:unset;padding:2px 8px}.aeb-pagination-old__button--right{margin-left:10px}}.aeb-pagination-old__arrow-icon{position:relative;bottom:1px;margin-right:18px}.aeb-pagination-old__arrow-icon--left{transform:scaleX(-1)}.aeb-pagination-old__arrow-icon--right{margin-right:0;margin-left:18px}@media screen and (max-width: 1150px){.aeb-pagination-old__arrow-icon{bottom:0}}@media screen and (max-width: 600px){.aeb-pagination-old__arrow-icon,.aeb-pagination-old__arrow-icon--right{top:1px;margin:0}}.aeb-pagination-old__page{margin-left:27px;color:var(--color-blue-500);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-pagination-old__page--active{color:var(--color-mono-900)}@media screen and (max-width: 1150px){.aeb-pagination-old__page{margin-left:13px;font-size:var(--font-size-xs)}}@media screen and (max-width: 600px){.aeb-pagination-old__page{margin-left:10px;font-size:var(--font-size-xxs)}}.aeb-pagination-old__breaker{margin-left:27px;color:var(--color-blue-500);-webkit-user-select:none;user-select:none}@media screen and (max-width: 1150px){.aeb-pagination-old__breaker{margin-left:13px}}@media screen and (max-width: 600px){.aeb-pagination-old__breaker{margin-left:10px}}@media screen and (max-width: 600px){.aeb-pagination-old__button-label{display:none}}.aeb-pagination-old__block{display:inline-flex;align-items:center}.aeb-pagination-old__amount{position:relative;top:3px;width:168px;height:44px;margin-left:27px}.aeb-pagination-old__amount .aeb-dropdown-selected-item{height:39px!important;color:var(--color-mono-900);background:transparent!important}.aeb-pagination-old__amount .aeb-dropdown-selected-item.open{background:var(--white)!important}.aeb-pagination-old__amount .aeb-dropdown-icon{top:10px!important}.aeb-pagination-old__amount .aeb-dropdown-item{padding:8px 16px!important}@media screen and (max-width: 1150px){.aeb-pagination-old__amount{position:absolute;top:calc(100% + 18px);left:0;margin:0}}\n"] }]
5832
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { pageSelect: [{
5833
- type: Output
5834
- }], amountChange: [{
5835
- type: Output
5836
- }], totalPages: [{
5837
- type: Input,
5838
- args: ['totalPages']
5839
- }], currentPage: [{
5840
- type: Input,
5841
- args: ['currentPage']
5842
- }], amountOptions: [{
5843
- type: Input
5844
- }], adaptive: [{
5845
- type: Input
5846
- }], amountSelect: [{
5847
- type: ViewChild,
5848
- args: ['amountSelect']
5849
- }], amount: [{
5850
- type: Input
5851
- }] } });
5852
-
5853
- class PaginationOldModule {
5854
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5855
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldModule, declarations: [PaginationOldComponent], imports: [CommonModule, SelectModule], exports: [PaginationOldComponent] }); }
5856
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldModule, imports: [CommonModule, SelectModule] }); }
5857
- }
5858
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: PaginationOldModule, decorators: [{
5859
- type: NgModule,
5860
- args: [{
5861
- declarations: [PaginationOldComponent],
5862
- imports: [CommonModule, SelectModule],
5863
- exports: [PaginationOldComponent]
5864
- }]
5865
- }] });
5866
-
5867
5650
  /*
5868
5651
  * Public API Surface of aeb-ui-kit
5869
5652
  */
@@ -5872,5 +5655,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
5872
5655
  * Generated bundle index. Do not edit.
5873
5656
  */
5874
5657
 
5875
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5658
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5876
5659
  //# sourceMappingURL=aeb-ui-kit.mjs.map