aeb-ui-kit 2.3.0-preview.546 → 2.4.0-preview.548

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output, HostBinding, ViewChildren, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, inject, ChangeDetectorRef, ContentChildren } from '@angular/core';
2
+ import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output, HostBinding, ViewChildren, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, inject, ChangeDetectorRef, ContentChildren, ChangeDetectionStrategy } from '@angular/core';
3
3
  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';
@@ -3736,12 +3736,169 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3736
3736
  }]
3737
3737
  }] });
3738
3738
 
3739
+ class OptionComponent {
3740
+ constructor() {
3741
+ this.setValue = new EventEmitter();
3742
+ }
3743
+ ngOnInit() { }
3744
+ ngAfterViewInit() {
3745
+ this.label = this.textElement.nativeElement.textContent;
3746
+ }
3747
+ }
3748
+ OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3749
+ OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: OptionComponent, selector: "aeb-option", inputs: { value: "value", label: "label" }, outputs: { setValue: "setValue" }, viewQueries: [{ propertyName: "textElement", first: true, predicate: ["text"], descendants: true }], ngImport: i0, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n", encapsulation: i0.ViewEncapsulation.None });
3750
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, decorators: [{
3751
+ type: Component,
3752
+ args: [{ selector: 'aeb-option', encapsulation: ViewEncapsulation.None, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n" }]
3753
+ }], propDecorators: { textElement: [{
3754
+ type: ViewChild,
3755
+ args: ['text']
3756
+ }], value: [{
3757
+ type: Input
3758
+ }], label: [{
3759
+ type: Input
3760
+ }], setValue: [{
3761
+ type: Output
3762
+ }] } });
3763
+
3764
+ class SelectComponent {
3765
+ constructor(cdr) {
3766
+ this.cdr = cdr;
3767
+ this.class = 'aeb-dropdown';
3768
+ this.optionSelect = new EventEmitter();
3769
+ this.disabled = false;
3770
+ this.direction = 'bottom';
3771
+ this.isOpen = false;
3772
+ this.placeholder = '';
3773
+ this.options = [];
3774
+ }
3775
+ get selectedOption() {
3776
+ if (this.options) {
3777
+ return this.options.find((option) => option.value === this._value);
3778
+ }
3779
+ return null;
3780
+ }
3781
+ get value() {
3782
+ return this._value;
3783
+ }
3784
+ set value(value) {
3785
+ if (value === this._value) {
3786
+ return;
3787
+ }
3788
+ this._value = value;
3789
+ if (typeof this.onChange === 'function') {
3790
+ this.onChange(this._value);
3791
+ }
3792
+ this.optionSelect.emit(value);
3793
+ }
3794
+ /**
3795
+ * Вызывается при задании исходного (new FormControl('I am default value'))
3796
+ * или нового значения сверху control.setValue('I am setted value').
3797
+ * Не нужно вызывать этот метод, чтобы задать значение во вьюшке. Вместо него надо использовать `setValue`.
3798
+ */
3799
+ writeValue(value) {
3800
+ this._value = value;
3801
+ }
3802
+ /**
3803
+ * Метод определяющий обработчик, который должен быть вызван при изменении значения
3804
+ * (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
3805
+ */
3806
+ registerOnChange(fn) {
3807
+ this.onChange = fn;
3808
+ }
3809
+ /**
3810
+ * Определяет callback, который вызывается на blur событие (control помечается флагом touched)
3811
+ */
3812
+ registerOnTouched() { }
3813
+ setValue(option) {
3814
+ this.value = option;
3815
+ this.closeDropdown();
3816
+ }
3817
+ openDropdown() {
3818
+ if (this.disabled) {
3819
+ return;
3820
+ }
3821
+ if (this.isOpen === true) {
3822
+ this.closeDropdown();
3823
+ }
3824
+ else {
3825
+ this.isOpen = true;
3826
+ }
3827
+ }
3828
+ closeDropdown() {
3829
+ this.isOpen = false;
3830
+ }
3831
+ // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
3832
+ handleClickOutside($event) {
3833
+ if (this.isOpen) {
3834
+ this.closeDropdown();
3835
+ }
3836
+ }
3837
+ ngAfterViewInit() {
3838
+ this.options = [...this.optionsQuery];
3839
+ this.optionsQuery.changes.subscribe(() => {
3840
+ this.options = [...this.optionsQuery];
3841
+ });
3842
+ this.cdr.detectChanges();
3843
+ }
3844
+ }
3845
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3846
+ SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SelectComponent, selector: "aeb-select", inputs: { hasError: "hasError", disabled: "disabled", direction: "direction" }, outputs: { optionSelect: "optionSelect" }, host: { properties: { "class": "this.class" } }, providers: [
3847
+ {
3848
+ provide: NG_VALUE_ACCESSOR,
3849
+ useExisting: forwardRef(() => SelectComponent),
3850
+ multi: true
3851
+ }
3852
+ ], queries: [{ propertyName: "optionsQuery", predicate: OptionComponent }], ngImport: i0, template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n open: isOpen && selectedOption\n }\"\n (click)=\"openDropdown()\"\n >\n <ng-content select=\"label\"></ng-content>\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ open: isOpen, error: hasError, top: direction === 'top' }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-dropdown-selected-item-text\">\n {{ selectedOption ? selectedOption.label : placeholder }}\n </div>\n </div>\n\n <div\n class=\"aeb-dropdown-icon\"\n [ngClass]=\"{ active: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.05037 9.36385C5.4204 8.73388 5.86657 7.65674 6.75748 7.65674H13.2428C14.1337 7.65674 14.5798 8.73388 13.9499 9.36385L10.7072 12.6065C10.3167 12.997 9.68353 12.997 9.29301 12.6065L6.05037 9.36385Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"20\"\n height=\"20\"\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=\"#A3AAAE\"\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=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <div\n class=\"aeb-dropdown-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;display:flex;width:100%;font-size:18px;color:var(--darkblue);cursor:pointer}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:18px;right:16px;width:20px;height:20px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;color:var(--black);background:var(--white);border:2px solid var(--gray-primary);border-radius:10px}.aeb-dropdown .aeb-dropdown-selected-item .aeb-dropdown-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-dropdown .aeb-dropdown-selected-item.open{border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-selected-item.open.top{border-top:0;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);background:var(--white);border-color:var(--red)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;top:-5px;left:10px;padding:0 5px;font-size:12px;color:var(--gray);background:var(--white)}.aeb-dropdown .aeb-dropdown-float-label.open{color:var(--blue)}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label.placeholder{top:18px;padding-right:26px;font-size:18px;font-weight:400;line-height:19px;background:var(--white);border-radius:10px}.aeb-dropdown .aeb-dropdown-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--white);border:2px solid var(--gray-primary)}.aeb-dropdown .aeb-dropdown-menu ul{padding:0;margin:10px 0 0;list-style:none}.aeb-dropdown .aeb-dropdown-menu.bottom{top:100%;margin-top:-10px;border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:10px 10px 0 0;transform:translateY(-100%)}.aeb-dropdown .aeb-dropdown-menu.top ul{margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block;border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px;border-top:1px solid var(--lightgray)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: 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 });
3853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, decorators: [{
3854
+ type: Component,
3855
+ args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, providers: [
3856
+ {
3857
+ provide: NG_VALUE_ACCESSOR,
3858
+ useExisting: forwardRef(() => SelectComponent),
3859
+ multi: true
3860
+ }
3861
+ ], template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n open: isOpen && selectedOption\n }\"\n (click)=\"openDropdown()\"\n >\n <ng-content select=\"label\"></ng-content>\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ open: isOpen, error: hasError, top: direction === 'top' }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-dropdown-selected-item-text\">\n {{ selectedOption ? selectedOption.label : placeholder }}\n </div>\n </div>\n\n <div\n class=\"aeb-dropdown-icon\"\n [ngClass]=\"{ active: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.05037 9.36385C5.4204 8.73388 5.86657 7.65674 6.75748 7.65674H13.2428C14.1337 7.65674 14.5798 8.73388 13.9499 9.36385L10.7072 12.6065C10.3167 12.997 9.68353 12.997 9.29301 12.6065L6.05037 9.36385Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"20\"\n height=\"20\"\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=\"#A3AAAE\"\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=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <div\n class=\"aeb-dropdown-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;display:flex;width:100%;font-size:18px;color:var(--darkblue);cursor:pointer}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:18px;right:16px;width:20px;height:20px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;color:var(--black);background:var(--white);border:2px solid var(--gray-primary);border-radius:10px}.aeb-dropdown .aeb-dropdown-selected-item .aeb-dropdown-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-dropdown .aeb-dropdown-selected-item.open{border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-selected-item.open.top{border-top:0;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);background:var(--white);border-color:var(--red)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;top:-5px;left:10px;padding:0 5px;font-size:12px;color:var(--gray);background:var(--white)}.aeb-dropdown .aeb-dropdown-float-label.open{color:var(--blue)}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label.placeholder{top:18px;padding-right:26px;font-size:18px;font-weight:400;line-height:19px;background:var(--white);border-radius:10px}.aeb-dropdown .aeb-dropdown-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--white);border:2px solid var(--gray-primary)}.aeb-dropdown .aeb-dropdown-menu ul{padding:0;margin:10px 0 0;list-style:none}.aeb-dropdown .aeb-dropdown-menu.bottom{top:100%;margin-top:-10px;border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:10px 10px 0 0;transform:translateY(-100%)}.aeb-dropdown .aeb-dropdown-menu.top ul{margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block;border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px;border-top:1px solid var(--lightgray)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}\n"] }]
3862
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
3863
+ type: HostBinding,
3864
+ args: ['class']
3865
+ }], optionsQuery: [{
3866
+ type: ContentChildren,
3867
+ args: [OptionComponent]
3868
+ }], optionSelect: [{
3869
+ type: Output
3870
+ }], hasError: [{
3871
+ type: Input
3872
+ }], disabled: [{
3873
+ type: Input
3874
+ }], direction: [{
3875
+ type: Input
3876
+ }] } });
3877
+
3878
+ class SelectModule {
3879
+ }
3880
+ SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3881
+ SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, declarations: [SelectComponent, OptionComponent], imports: [CommonModule, ClickOutsideModule], exports: [SelectComponent, OptionComponent] });
3882
+ SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, imports: [CommonModule, ClickOutsideModule] });
3883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, decorators: [{
3884
+ type: NgModule,
3885
+ args: [{
3886
+ declarations: [SelectComponent, OptionComponent],
3887
+ imports: [CommonModule, ClickOutsideModule],
3888
+ exports: [SelectComponent, OptionComponent]
3889
+ }]
3890
+ }] });
3891
+
3739
3892
  class PaginationComponent {
3740
3893
  constructor() {
3741
- this.pageSelect = new EventEmitter();
3742
3894
  this.totalPages = 1500;
3743
3895
  this.currentPage = 1;
3896
+ this.usePageSizeSelector = false;
3897
+ this.pageSize = '10';
3898
+ this.pageSelect = new EventEmitter();
3899
+ this.amountChange = new EventEmitter();
3744
3900
  this.isPagination = true;
3901
+ this.pageSizeControl = new FormControl('10');
3745
3902
  this.head = null;
3746
3903
  this.tail = null;
3747
3904
  this.baseSize = 7;
@@ -3766,9 +3923,13 @@ class PaginationComponent {
3766
3923
  }
3767
3924
  }
3768
3925
  ngOnInit() {
3926
+ this.pageSizeControl.setValue(this.pageSize);
3769
3927
  this.renderPages(this.currentPage);
3770
3928
  }
3771
3929
  ngOnDestroy() { }
3930
+ handleChangePageSize(pageSize) {
3931
+ this.amountChange.emit(parseInt(pageSize));
3932
+ }
3772
3933
  middlePageHandler(page) {
3773
3934
  this.currentPage = page;
3774
3935
  this.renderPages(this.currentPage);
@@ -3840,16 +4001,22 @@ class PaginationComponent {
3840
4001
  }
3841
4002
  }
3842
4003
  PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3843
- PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PaginationComponent, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage" }, outputs: { pageSelect: "pageSelect" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-pagination__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === 1\n }\"\n>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"head\"\n (click)=\"headPageHandler(head)\"\n >\n {{ head }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"tail\"\n (click)=\"tailPageHandler(tail)\"\n >\n {{ tail }}\n </div>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__button aeb-pagination__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-pagination{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;color:var(--darkblue);gap:24px}.aeb-pagination__button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:101px;height:56px;padding:8px 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--white);border:2px solid var(--blue);border-radius:10px}.aeb-pagination__button--disable{color:var(--gray-primary);cursor:unset;border:2px solid var(--gray-primary)}.aeb-pagination__button--disable .aeb-pagination__arrow-icon svg path{stroke:var(--gray-primary)}.aeb-pagination__button:not(.aeb-pagination__button--disable):hover{background-color:var(--lightblue)}@media screen and (max-width: 600px){.aeb-pagination__button{justify-content:center;width:50px;padding:2px 0}}.aeb-pagination__page{display:flex;align-items:center;justify-content:center;height:56px;padding:0 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;border:2px solid var(--blue);border-radius:10px;box-sizing:border-box}.aeb-pagination__page--active{color:var(--white);background-color:var(--blue)}.aeb-pagination__page:not(.aeb-pagination__page--active):hover{background-color:var(--lightblue)}.aeb-pagination__arrow-icon{position:relative;display:none}.aeb-pagination__arrow-icon path{stroke:var(--blue)}.aeb-pagination__arrow-icon:last-child{transform:scaleX(-1)}@media screen and (max-width: 600px){.aeb-pagination__arrow-icon{display:flex}}.aeb-pagination__breaker{color:var(--blue);-webkit-user-select:none;user-select:none}@media screen and (max-width: 600px){.aeb-pagination__button-label{display:none}}.aeb-pagination__block{display:inline-flex;gap:16px;align-items:center}\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"] }], encapsulation: i0.ViewEncapsulation.None });
4004
+ PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PaginationComponent, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage", usePageSizeSelector: "usePageSizeSelector", pageSize: "pageSize" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-pagination__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === 1\n }\"\n>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"head\"\n (click)=\"headPageHandler(head)\"\n >\n {{ head }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"tail\"\n (click)=\"tailPageHandler(tail)\"\n >\n {{ tail }}\n </div>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__button aeb-pagination__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n >\n <aeb-option value=\"10\">10 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n <aeb-option value=\"20\">20 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n <aeb-option value=\"30\">30 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n </aeb-select>\n</div>\n", styles: [".aeb-pagination{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;color:var(--darkblue);gap:24px}.aeb-pagination__button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:101px;height:56px;padding:8px 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--white);border:2px solid var(--blue);border-radius:10px}.aeb-pagination__button--disable{color:var(--gray-primary);cursor:unset;border:2px solid var(--gray-primary)}.aeb-pagination__button--disable .aeb-pagination__arrow-icon svg path{stroke:var(--gray-primary)}.aeb-pagination__button:not(.aeb-pagination__button--disable):hover{background-color:var(--lightblue)}@media screen and (max-width: 600px){.aeb-pagination__button{justify-content:center;width:50px;padding:2px 0}}.aeb-pagination__page{display:flex;align-items:center;justify-content:center;height:56px;padding:0 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;border:2px solid var(--blue);border-radius:10px;box-sizing:border-box}.aeb-pagination__page--active{color:var(--white);background-color:var(--blue)}.aeb-pagination__page:not(.aeb-pagination__page--active):hover{background-color:var(--lightblue)}.aeb-pagination__arrow-icon{position:relative;display:none}.aeb-pagination__arrow-icon path{stroke:var(--blue)}.aeb-pagination__arrow-icon:last-child{transform:scaleX(-1)}@media screen and (max-width: 600px){.aeb-pagination__arrow-icon{display:flex}}.aeb-pagination__breaker{color:var(--blue);-webkit-user-select:none;user-select:none}@media screen and (max-width: 600px){.aeb-pagination__button-label{display:none}}.aeb-pagination__block{display:inline-flex;gap:16px;align-items:center}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 600px){.aeb-pagination--select-container{display:none}}\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: ["hasError", "disabled", "direction"], outputs: ["optionSelect"] }, { kind: "component", type: OptionComponent, selector: "aeb-option", inputs: ["value", "label"], outputs: ["setValue"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3844
4005
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationComponent, decorators: [{
3845
4006
  type: Component,
3846
- args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-pagination__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === 1\n }\"\n>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"head\"\n (click)=\"headPageHandler(head)\"\n >\n {{ head }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"tail\"\n (click)=\"tailPageHandler(tail)\"\n >\n {{ tail }}\n </div>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__button aeb-pagination__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-pagination{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;color:var(--darkblue);gap:24px}.aeb-pagination__button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:101px;height:56px;padding:8px 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--white);border:2px solid var(--blue);border-radius:10px}.aeb-pagination__button--disable{color:var(--gray-primary);cursor:unset;border:2px solid var(--gray-primary)}.aeb-pagination__button--disable .aeb-pagination__arrow-icon svg path{stroke:var(--gray-primary)}.aeb-pagination__button:not(.aeb-pagination__button--disable):hover{background-color:var(--lightblue)}@media screen and (max-width: 600px){.aeb-pagination__button{justify-content:center;width:50px;padding:2px 0}}.aeb-pagination__page{display:flex;align-items:center;justify-content:center;height:56px;padding:0 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;border:2px solid var(--blue);border-radius:10px;box-sizing:border-box}.aeb-pagination__page--active{color:var(--white);background-color:var(--blue)}.aeb-pagination__page:not(.aeb-pagination__page--active):hover{background-color:var(--lightblue)}.aeb-pagination__arrow-icon{position:relative;display:none}.aeb-pagination__arrow-icon path{stroke:var(--blue)}.aeb-pagination__arrow-icon:last-child{transform:scaleX(-1)}@media screen and (max-width: 600px){.aeb-pagination__arrow-icon{display:flex}}.aeb-pagination__breaker{color:var(--blue);-webkit-user-select:none;user-select:none}@media screen and (max-width: 600px){.aeb-pagination__button-label{display:none}}.aeb-pagination__block{display:inline-flex;gap:16px;align-items:center}\n"] }]
3847
- }], ctorParameters: function () { return []; }, propDecorators: { pageSelect: [{
3848
- type: Output
3849
- }], totalPages: [{
4007
+ args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"aeb-pagination__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === 1\n }\"\n>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination__button-label\"> \u041D\u0430\u0437\u0430\u0434 </span>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"head\"\n (click)=\"headPageHandler(head)\"\n >\n {{ head }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\">...</div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngIf=\"tail\"\n (click)=\"tailPageHandler(tail)\"\n >\n {{ tail }}\n </div>\n</div>\n<div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__button aeb-pagination__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === totalPages\n }\"\n >\n <span class=\"aeb-pagination__button-label\"> \u0414\u0430\u043B\u0435\u0435 </span>\n <div class=\"aeb-pagination__arrow-icon\">\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=\"#A3AAAE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n >\n <aeb-option value=\"10\">10 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n <aeb-option value=\"20\">20 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n <aeb-option value=\"30\">30 \u0437\u0430\u043F\u0438\u0441\u0435\u0439</aeb-option>\n </aeb-select>\n</div>\n", styles: [".aeb-pagination{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;color:var(--darkblue);gap:24px}.aeb-pagination__button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:101px;height:56px;padding:8px 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--white);border:2px solid var(--blue);border-radius:10px}.aeb-pagination__button--disable{color:var(--gray-primary);cursor:unset;border:2px solid var(--gray-primary)}.aeb-pagination__button--disable .aeb-pagination__arrow-icon svg path{stroke:var(--gray-primary)}.aeb-pagination__button:not(.aeb-pagination__button--disable):hover{background-color:var(--lightblue)}@media screen and (max-width: 600px){.aeb-pagination__button{justify-content:center;width:50px;padding:2px 0}}.aeb-pagination__page{display:flex;align-items:center;justify-content:center;height:56px;padding:0 24px;color:var(--blue);cursor:pointer;-webkit-user-select:none;user-select:none;border:2px solid var(--blue);border-radius:10px;box-sizing:border-box}.aeb-pagination__page--active{color:var(--white);background-color:var(--blue)}.aeb-pagination__page:not(.aeb-pagination__page--active):hover{background-color:var(--lightblue)}.aeb-pagination__arrow-icon{position:relative;display:none}.aeb-pagination__arrow-icon path{stroke:var(--blue)}.aeb-pagination__arrow-icon:last-child{transform:scaleX(-1)}@media screen and (max-width: 600px){.aeb-pagination__arrow-icon{display:flex}}.aeb-pagination__breaker{color:var(--blue);-webkit-user-select:none;user-select:none}@media screen and (max-width: 600px){.aeb-pagination__button-label{display:none}}.aeb-pagination__block{display:inline-flex;gap:16px;align-items:center}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 600px){.aeb-pagination--select-container{display:none}}\n"] }]
4008
+ }], ctorParameters: function () { return []; }, propDecorators: { totalPages: [{
3850
4009
  type: Input
3851
4010
  }], currentPage: [{
3852
4011
  type: Input
4012
+ }], usePageSizeSelector: [{
4013
+ type: Input
4014
+ }], pageSize: [{
4015
+ type: Input
4016
+ }], pageSelect: [{
4017
+ type: Output
4018
+ }], amountChange: [{
4019
+ type: Output
3853
4020
  }], isPagination: [{
3854
4021
  type: HostBinding,
3855
4022
  args: ['class.aeb-pagination']
@@ -3858,13 +4025,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3858
4025
  class PaginationModule {
3859
4026
  }
3860
4027
  PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3861
- PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule, NewButtonModule], exports: [PaginationComponent] });
3862
- PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule, NewButtonModule] });
4028
+ PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule, NewButtonModule, SelectModule, ReactiveFormsModule], exports: [PaginationComponent] });
4029
+ PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule, NewButtonModule, SelectModule, ReactiveFormsModule] });
3863
4030
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, decorators: [{
3864
4031
  type: NgModule,
3865
4032
  args: [{
3866
4033
  declarations: [PaginationComponent],
3867
- imports: [CommonModule, NewButtonModule],
4034
+ imports: [CommonModule, NewButtonModule, SelectModule, ReactiveFormsModule],
3868
4035
  exports: [PaginationComponent]
3869
4036
  }]
3870
4037
  }] });
@@ -4170,159 +4337,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4170
4337
  }]
4171
4338
  }] });
4172
4339
 
4173
- class OptionComponent {
4174
- constructor() {
4175
- this.setValue = new EventEmitter();
4176
- }
4177
- ngOnInit() { }
4178
- ngAfterViewInit() {
4179
- this.label = this.textElement.nativeElement.textContent;
4180
- }
4181
- }
4182
- OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4183
- OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: OptionComponent, selector: "aeb-option", inputs: { value: "value", label: "label" }, outputs: { setValue: "setValue" }, viewQueries: [{ propertyName: "textElement", first: true, predicate: ["text"], descendants: true }], ngImport: i0, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n", encapsulation: i0.ViewEncapsulation.None });
4184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, decorators: [{
4185
- type: Component,
4186
- args: [{ selector: 'aeb-option', encapsulation: ViewEncapsulation.None, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n" }]
4187
- }], propDecorators: { textElement: [{
4188
- type: ViewChild,
4189
- args: ['text']
4190
- }], value: [{
4191
- type: Input
4192
- }], label: [{
4193
- type: Input
4194
- }], setValue: [{
4195
- type: Output
4196
- }] } });
4197
-
4198
- class SelectComponent {
4199
- constructor(cdr) {
4200
- this.cdr = cdr;
4201
- this.class = 'aeb-dropdown';
4202
- this.optionSelect = new EventEmitter();
4203
- this.disabled = false;
4204
- this.direction = 'bottom';
4205
- this.isOpen = false;
4206
- this.placeholder = '';
4207
- this.options = [];
4208
- }
4209
- get selectedOption() {
4210
- if (this.options) {
4211
- return this.options.find((option) => option.value === this._value);
4212
- }
4213
- return null;
4214
- }
4215
- get value() {
4216
- return this._value;
4217
- }
4218
- set value(value) {
4219
- if (value === this._value) {
4220
- return;
4221
- }
4222
- this._value = value;
4223
- if (typeof this.onChange === 'function') {
4224
- this.onChange(this._value);
4225
- }
4226
- this.optionSelect.emit(value);
4227
- }
4228
- /**
4229
- * Вызывается при задании исходного (new FormControl('I am default value'))
4230
- * или нового значения сверху control.setValue('I am setted value').
4231
- * Не нужно вызывать этот метод, чтобы задать значение во вьюшке. Вместо него надо использовать `setValue`.
4232
- */
4233
- writeValue(value) {
4234
- this._value = value;
4235
- }
4236
- /**
4237
- * Метод определяющий обработчик, который должен быть вызван при изменении значения
4238
- * (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
4239
- */
4240
- registerOnChange(fn) {
4241
- this.onChange = fn;
4242
- }
4243
- /**
4244
- * Определяет callback, который вызывается на blur событие (control помечается флагом touched)
4245
- */
4246
- registerOnTouched() { }
4247
- setValue(option) {
4248
- this.value = option;
4249
- this.closeDropdown();
4250
- }
4251
- openDropdown() {
4252
- if (this.disabled) {
4253
- return;
4254
- }
4255
- if (this.isOpen === true) {
4256
- this.closeDropdown();
4257
- }
4258
- else {
4259
- this.isOpen = true;
4260
- }
4261
- }
4262
- closeDropdown() {
4263
- this.isOpen = false;
4264
- }
4265
- // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
4266
- handleClickOutside($event) {
4267
- if (this.isOpen) {
4268
- this.closeDropdown();
4269
- }
4270
- }
4271
- ngAfterViewInit() {
4272
- this.options = [...this.optionsQuery];
4273
- this.optionsQuery.changes.subscribe(() => {
4274
- this.options = [...this.optionsQuery];
4275
- });
4276
- this.cdr.detectChanges();
4277
- }
4278
- }
4279
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4280
- SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SelectComponent, selector: "aeb-select", inputs: { hasError: "hasError", disabled: "disabled", direction: "direction" }, outputs: { optionSelect: "optionSelect" }, host: { properties: { "class": "this.class" } }, providers: [
4281
- {
4282
- provide: NG_VALUE_ACCESSOR,
4283
- useExisting: forwardRef(() => SelectComponent),
4284
- multi: true
4285
- }
4286
- ], queries: [{ propertyName: "optionsQuery", predicate: OptionComponent }], ngImport: i0, template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n open: isOpen && selectedOption\n }\"\n (click)=\"openDropdown()\"\n >\n <ng-content select=\"label\"></ng-content>\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ open: isOpen, error: hasError, top: direction === 'top' }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-dropdown-selected-item-text\">\n {{ selectedOption ? selectedOption.label : placeholder }}\n </div>\n </div>\n\n <div\n class=\"aeb-dropdown-icon\"\n [ngClass]=\"{ active: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.05037 9.36385C5.4204 8.73388 5.86657 7.65674 6.75748 7.65674H13.2428C14.1337 7.65674 14.5798 8.73388 13.9499 9.36385L10.7072 12.6065C10.3167 12.997 9.68353 12.997 9.29301 12.6065L6.05037 9.36385Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"20\"\n height=\"20\"\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=\"#A3AAAE\"\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=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <div\n class=\"aeb-dropdown-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;display:flex;width:100%;font-size:18px;color:var(--darkblue);cursor:pointer}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:18px;right:16px;width:20px;height:20px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;color:var(--black);background:var(--white);border:2px solid var(--gray-primary);border-radius:10px}.aeb-dropdown .aeb-dropdown-selected-item .aeb-dropdown-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-dropdown .aeb-dropdown-selected-item.open{border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-selected-item.open.top{border-top:0;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);background:var(--white);border-color:var(--red)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;top:-5px;left:10px;padding:0 5px;font-size:12px;color:var(--gray);background:var(--white)}.aeb-dropdown .aeb-dropdown-float-label.open{color:var(--blue)}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label.placeholder{top:18px;padding-right:26px;font-size:18px;font-weight:400;line-height:19px;background:var(--white);border-radius:10px}.aeb-dropdown .aeb-dropdown-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--white);border:2px solid var(--gray-primary)}.aeb-dropdown .aeb-dropdown-menu ul{padding:0;margin:10px 0 0;list-style:none}.aeb-dropdown .aeb-dropdown-menu.bottom{top:100%;margin-top:-10px;border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:10px 10px 0 0;transform:translateY(-100%)}.aeb-dropdown .aeb-dropdown-menu.top ul{margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block;border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px;border-top:1px solid var(--lightgray)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: 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 });
4287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, decorators: [{
4288
- type: Component,
4289
- args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, providers: [
4290
- {
4291
- provide: NG_VALUE_ACCESSOR,
4292
- useExisting: forwardRef(() => SelectComponent),
4293
- multi: true
4294
- }
4295
- ], template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n open: isOpen && selectedOption\n }\"\n (click)=\"openDropdown()\"\n >\n <ng-content select=\"label\"></ng-content>\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ open: isOpen, error: hasError, top: direction === 'top' }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-dropdown-selected-item-text\">\n {{ selectedOption ? selectedOption.label : placeholder }}\n </div>\n </div>\n\n <div\n class=\"aeb-dropdown-icon\"\n [ngClass]=\"{ active: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.05037 9.36385C5.4204 8.73388 5.86657 7.65674 6.75748 7.65674H13.2428C14.1337 7.65674 14.5798 8.73388 13.9499 9.36385L10.7072 12.6065C10.3167 12.997 9.68353 12.997 9.29301 12.6065L6.05037 9.36385Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"20\"\n height=\"20\"\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=\"#A3AAAE\"\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=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <div\n class=\"aeb-dropdown-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;display:flex;width:100%;font-size:18px;color:var(--darkblue);cursor:pointer}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:18px;right:16px;width:20px;height:20px;pointer-events:none;transition:all cubic-bezier(.4,0,.2,1) .2s}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:56px;padding-right:26px;padding-left:16px;color:var(--black);background:var(--white);border:2px solid var(--gray-primary);border-radius:10px}.aeb-dropdown .aeb-dropdown-selected-item .aeb-dropdown-selected-item-text{width:100%;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeb-dropdown .aeb-dropdown-selected-item.open{border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-selected-item.open.top{border-top:0;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);background:var(--white);border-color:var(--red)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;top:-5px;left:10px;padding:0 5px;font-size:12px;color:var(--gray);background:var(--white)}.aeb-dropdown .aeb-dropdown-float-label.open{color:var(--blue)}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label.placeholder{top:18px;padding-right:26px;font-size:18px;font-weight:400;line-height:19px;background:var(--white);border-radius:10px}.aeb-dropdown .aeb-dropdown-menu{position:absolute;z-index:2;box-sizing:border-box;display:none;width:100%;background:var(--white);border:2px solid var(--gray-primary)}.aeb-dropdown .aeb-dropdown-menu ul{padding:0;margin:10px 0 0;list-style:none}.aeb-dropdown .aeb-dropdown-menu.bottom{top:100%;margin-top:-10px;border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-menu.top{top:0;overflow:hidden;border-bottom:none;border-radius:10px 10px 0 0;transform:translateY(-100%)}.aeb-dropdown .aeb-dropdown-menu.top ul{margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block;border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px;border-top:1px solid var(--lightgray)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}\n"] }]
4296
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
4297
- type: HostBinding,
4298
- args: ['class']
4299
- }], optionsQuery: [{
4300
- type: ContentChildren,
4301
- args: [OptionComponent]
4302
- }], optionSelect: [{
4303
- type: Output
4304
- }], hasError: [{
4305
- type: Input
4306
- }], disabled: [{
4307
- type: Input
4308
- }], direction: [{
4309
- type: Input
4310
- }] } });
4311
-
4312
- class SelectModule {
4313
- }
4314
- SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4315
- SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, declarations: [SelectComponent, OptionComponent], imports: [CommonModule, ClickOutsideModule], exports: [SelectComponent, OptionComponent] });
4316
- SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, imports: [CommonModule, ClickOutsideModule] });
4317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, decorators: [{
4318
- type: NgModule,
4319
- args: [{
4320
- declarations: [SelectComponent, OptionComponent],
4321
- imports: [CommonModule, ClickOutsideModule],
4322
- exports: [SelectComponent, OptionComponent]
4323
- }]
4324
- }] });
4325
-
4326
4340
  class SidebarComponent {
4327
4341
  constructor() {
4328
4342
  this.class = 'aeb-sidebar';