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';
@@ -3739,12 +3739,169 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3739
3739
  }]
3740
3740
  }] });
3741
3741
 
3742
+ class OptionComponent {
3743
+ constructor() {
3744
+ this.setValue = new EventEmitter();
3745
+ }
3746
+ ngOnInit() { }
3747
+ ngAfterViewInit() {
3748
+ this.label = this.textElement.nativeElement.textContent;
3749
+ }
3750
+ }
3751
+ OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3752
+ 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 });
3753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, decorators: [{
3754
+ type: Component,
3755
+ args: [{ selector: 'aeb-option', encapsulation: ViewEncapsulation.None, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n" }]
3756
+ }], propDecorators: { textElement: [{
3757
+ type: ViewChild,
3758
+ args: ['text']
3759
+ }], value: [{
3760
+ type: Input
3761
+ }], label: [{
3762
+ type: Input
3763
+ }], setValue: [{
3764
+ type: Output
3765
+ }] } });
3766
+
3767
+ class SelectComponent {
3768
+ constructor(cdr) {
3769
+ this.cdr = cdr;
3770
+ this.class = 'aeb-dropdown';
3771
+ this.optionSelect = new EventEmitter();
3772
+ this.disabled = false;
3773
+ this.direction = 'bottom';
3774
+ this.isOpen = false;
3775
+ this.placeholder = '';
3776
+ this.options = [];
3777
+ }
3778
+ get selectedOption() {
3779
+ if (this.options) {
3780
+ return this.options.find((option) => option.value === this._value);
3781
+ }
3782
+ return null;
3783
+ }
3784
+ get value() {
3785
+ return this._value;
3786
+ }
3787
+ set value(value) {
3788
+ if (value === this._value) {
3789
+ return;
3790
+ }
3791
+ this._value = value;
3792
+ if (typeof this.onChange === 'function') {
3793
+ this.onChange(this._value);
3794
+ }
3795
+ this.optionSelect.emit(value);
3796
+ }
3797
+ /**
3798
+ * Вызывается при задании исходного (new FormControl('I am default value'))
3799
+ * или нового значения сверху control.setValue('I am setted value').
3800
+ * Не нужно вызывать этот метод, чтобы задать значение во вьюшке. Вместо него надо использовать `setValue`.
3801
+ */
3802
+ writeValue(value) {
3803
+ this._value = value;
3804
+ }
3805
+ /**
3806
+ * Метод определяющий обработчик, который должен быть вызван при изменении значения
3807
+ * (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
3808
+ */
3809
+ registerOnChange(fn) {
3810
+ this.onChange = fn;
3811
+ }
3812
+ /**
3813
+ * Определяет callback, который вызывается на blur событие (control помечается флагом touched)
3814
+ */
3815
+ registerOnTouched() { }
3816
+ setValue(option) {
3817
+ this.value = option;
3818
+ this.closeDropdown();
3819
+ }
3820
+ openDropdown() {
3821
+ if (this.disabled) {
3822
+ return;
3823
+ }
3824
+ if (this.isOpen === true) {
3825
+ this.closeDropdown();
3826
+ }
3827
+ else {
3828
+ this.isOpen = true;
3829
+ }
3830
+ }
3831
+ closeDropdown() {
3832
+ this.isOpen = false;
3833
+ }
3834
+ // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
3835
+ handleClickOutside($event) {
3836
+ if (this.isOpen) {
3837
+ this.closeDropdown();
3838
+ }
3839
+ }
3840
+ ngAfterViewInit() {
3841
+ this.options = [...this.optionsQuery];
3842
+ this.optionsQuery.changes.subscribe(() => {
3843
+ this.options = [...this.optionsQuery];
3844
+ });
3845
+ this.cdr.detectChanges();
3846
+ }
3847
+ }
3848
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3849
+ 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: [
3850
+ {
3851
+ provide: NG_VALUE_ACCESSOR,
3852
+ useExisting: forwardRef(() => SelectComponent),
3853
+ multi: true
3854
+ }
3855
+ ], 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 });
3856
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, decorators: [{
3857
+ type: Component,
3858
+ args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, providers: [
3859
+ {
3860
+ provide: NG_VALUE_ACCESSOR,
3861
+ useExisting: forwardRef(() => SelectComponent),
3862
+ multi: true
3863
+ }
3864
+ ], 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"] }]
3865
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
3866
+ type: HostBinding,
3867
+ args: ['class']
3868
+ }], optionsQuery: [{
3869
+ type: ContentChildren,
3870
+ args: [OptionComponent]
3871
+ }], optionSelect: [{
3872
+ type: Output
3873
+ }], hasError: [{
3874
+ type: Input
3875
+ }], disabled: [{
3876
+ type: Input
3877
+ }], direction: [{
3878
+ type: Input
3879
+ }] } });
3880
+
3881
+ class SelectModule {
3882
+ }
3883
+ SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3884
+ 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] });
3885
+ SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, imports: [CommonModule, ClickOutsideModule] });
3886
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, decorators: [{
3887
+ type: NgModule,
3888
+ args: [{
3889
+ declarations: [SelectComponent, OptionComponent],
3890
+ imports: [CommonModule, ClickOutsideModule],
3891
+ exports: [SelectComponent, OptionComponent]
3892
+ }]
3893
+ }] });
3894
+
3742
3895
  class PaginationComponent {
3743
3896
  constructor() {
3744
- this.pageSelect = new EventEmitter();
3745
3897
  this.totalPages = 1500;
3746
3898
  this.currentPage = 1;
3899
+ this.usePageSizeSelector = false;
3900
+ this.pageSize = '10';
3901
+ this.pageSelect = new EventEmitter();
3902
+ this.amountChange = new EventEmitter();
3747
3903
  this.isPagination = true;
3904
+ this.pageSizeControl = new FormControl('10');
3748
3905
  this.head = null;
3749
3906
  this.tail = null;
3750
3907
  this.baseSize = 7;
@@ -3769,9 +3926,13 @@ class PaginationComponent {
3769
3926
  }
3770
3927
  }
3771
3928
  ngOnInit() {
3929
+ this.pageSizeControl.setValue(this.pageSize);
3772
3930
  this.renderPages(this.currentPage);
3773
3931
  }
3774
3932
  ngOnDestroy() { }
3933
+ handleChangePageSize(pageSize) {
3934
+ this.amountChange.emit(parseInt(pageSize));
3935
+ }
3775
3936
  middlePageHandler(page) {
3776
3937
  this.currentPage = page;
3777
3938
  this.renderPages(this.currentPage);
@@ -3843,16 +4004,22 @@ class PaginationComponent {
3843
4004
  }
3844
4005
  }
3845
4006
  PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3846
- 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 });
4007
+ 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 });
3847
4008
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationComponent, decorators: [{
3848
4009
  type: Component,
3849
- 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"] }]
3850
- }], ctorParameters: function () { return []; }, propDecorators: { pageSelect: [{
3851
- type: Output
3852
- }], totalPages: [{
4010
+ 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"] }]
4011
+ }], ctorParameters: function () { return []; }, propDecorators: { totalPages: [{
3853
4012
  type: Input
3854
4013
  }], currentPage: [{
3855
4014
  type: Input
4015
+ }], usePageSizeSelector: [{
4016
+ type: Input
4017
+ }], pageSize: [{
4018
+ type: Input
4019
+ }], pageSelect: [{
4020
+ type: Output
4021
+ }], amountChange: [{
4022
+ type: Output
3856
4023
  }], isPagination: [{
3857
4024
  type: HostBinding,
3858
4025
  args: ['class.aeb-pagination']
@@ -3861,13 +4028,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3861
4028
  class PaginationModule {
3862
4029
  }
3863
4030
  PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3864
- PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule, NewButtonModule], exports: [PaginationComponent] });
3865
- PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule, NewButtonModule] });
4031
+ 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] });
4032
+ PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule, NewButtonModule, SelectModule, ReactiveFormsModule] });
3866
4033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, decorators: [{
3867
4034
  type: NgModule,
3868
4035
  args: [{
3869
4036
  declarations: [PaginationComponent],
3870
- imports: [CommonModule, NewButtonModule],
4037
+ imports: [CommonModule, NewButtonModule, SelectModule, ReactiveFormsModule],
3871
4038
  exports: [PaginationComponent]
3872
4039
  }]
3873
4040
  }] });
@@ -4173,159 +4340,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4173
4340
  }]
4174
4341
  }] });
4175
4342
 
4176
- class OptionComponent {
4177
- constructor() {
4178
- this.setValue = new EventEmitter();
4179
- }
4180
- ngOnInit() { }
4181
- ngAfterViewInit() {
4182
- this.label = this.textElement.nativeElement.textContent;
4183
- }
4184
- }
4185
- OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4186
- 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 });
4187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OptionComponent, decorators: [{
4188
- type: Component,
4189
- args: [{ selector: 'aeb-option', encapsulation: ViewEncapsulation.None, template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n" }]
4190
- }], propDecorators: { textElement: [{
4191
- type: ViewChild,
4192
- args: ['text']
4193
- }], value: [{
4194
- type: Input
4195
- }], label: [{
4196
- type: Input
4197
- }], setValue: [{
4198
- type: Output
4199
- }] } });
4200
-
4201
- class SelectComponent {
4202
- constructor(cdr) {
4203
- this.cdr = cdr;
4204
- this.class = 'aeb-dropdown';
4205
- this.optionSelect = new EventEmitter();
4206
- this.disabled = false;
4207
- this.direction = 'bottom';
4208
- this.isOpen = false;
4209
- this.placeholder = '';
4210
- this.options = [];
4211
- }
4212
- get selectedOption() {
4213
- if (this.options) {
4214
- return this.options.find((option) => option.value === this._value);
4215
- }
4216
- return null;
4217
- }
4218
- get value() {
4219
- return this._value;
4220
- }
4221
- set value(value) {
4222
- if (value === this._value) {
4223
- return;
4224
- }
4225
- this._value = value;
4226
- if (typeof this.onChange === 'function') {
4227
- this.onChange(this._value);
4228
- }
4229
- this.optionSelect.emit(value);
4230
- }
4231
- /**
4232
- * Вызывается при задании исходного (new FormControl('I am default value'))
4233
- * или нового значения сверху control.setValue('I am setted value').
4234
- * Не нужно вызывать этот метод, чтобы задать значение во вьюшке. Вместо него надо использовать `setValue`.
4235
- */
4236
- writeValue(value) {
4237
- this._value = value;
4238
- }
4239
- /**
4240
- * Метод определяющий обработчик, который должен быть вызван при изменении значения
4241
- * (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
4242
- */
4243
- registerOnChange(fn) {
4244
- this.onChange = fn;
4245
- }
4246
- /**
4247
- * Определяет callback, который вызывается на blur событие (control помечается флагом touched)
4248
- */
4249
- registerOnTouched() { }
4250
- setValue(option) {
4251
- this.value = option;
4252
- this.closeDropdown();
4253
- }
4254
- openDropdown() {
4255
- if (this.disabled) {
4256
- return;
4257
- }
4258
- if (this.isOpen === true) {
4259
- this.closeDropdown();
4260
- }
4261
- else {
4262
- this.isOpen = true;
4263
- }
4264
- }
4265
- closeDropdown() {
4266
- this.isOpen = false;
4267
- }
4268
- // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
4269
- handleClickOutside($event) {
4270
- if (this.isOpen) {
4271
- this.closeDropdown();
4272
- }
4273
- }
4274
- ngAfterViewInit() {
4275
- this.options = [...this.optionsQuery];
4276
- this.optionsQuery.changes.subscribe(() => {
4277
- this.options = [...this.optionsQuery];
4278
- });
4279
- this.cdr.detectChanges();
4280
- }
4281
- }
4282
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4283
- 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: [
4284
- {
4285
- provide: NG_VALUE_ACCESSOR,
4286
- useExisting: forwardRef(() => SelectComponent),
4287
- multi: true
4288
- }
4289
- ], 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 });
4290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectComponent, decorators: [{
4291
- type: Component,
4292
- args: [{ selector: 'aeb-select', encapsulation: ViewEncapsulation.None, providers: [
4293
- {
4294
- provide: NG_VALUE_ACCESSOR,
4295
- useExisting: forwardRef(() => SelectComponent),
4296
- multi: true
4297
- }
4298
- ], 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"] }]
4299
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
4300
- type: HostBinding,
4301
- args: ['class']
4302
- }], optionsQuery: [{
4303
- type: ContentChildren,
4304
- args: [OptionComponent]
4305
- }], optionSelect: [{
4306
- type: Output
4307
- }], hasError: [{
4308
- type: Input
4309
- }], disabled: [{
4310
- type: Input
4311
- }], direction: [{
4312
- type: Input
4313
- }] } });
4314
-
4315
- class SelectModule {
4316
- }
4317
- SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4318
- 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] });
4319
- SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, imports: [CommonModule, ClickOutsideModule] });
4320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectModule, decorators: [{
4321
- type: NgModule,
4322
- args: [{
4323
- declarations: [SelectComponent, OptionComponent],
4324
- imports: [CommonModule, ClickOutsideModule],
4325
- exports: [SelectComponent, OptionComponent]
4326
- }]
4327
- }] });
4328
-
4329
4343
  class SidebarComponent {
4330
4344
  constructor() {
4331
4345
  this.class = 'aeb-sidebar';