aeb-ui-kit 9.1.0-rc.1059 → 9.1.0-rc.1065

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.
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8" stroke="#2F88F0" stroke-width="2" stroke-linecap="round"/>
3
+ </svg>
@@ -4128,18 +4128,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
4128
4128
  }] });
4129
4129
 
4130
4130
  const defaultAmountOptions = [
4131
- {
4132
- value: 10,
4133
- label: 'По 10 на стр.'
4134
- },
4135
- {
4136
- value: 20,
4137
- label: 'По 20 на стр.'
4138
- },
4139
- {
4140
- value: 30,
4141
- label: 'По 30 на стр.'
4142
- }
4131
+ { value: 10, label: 'По 10 на стр.' },
4132
+ { value: 20, label: 'По 20 на стр.' },
4133
+ { value: 30, label: 'По 30 на стр.' }
4143
4134
  ];
4144
4135
  class PaginationComponent {
4145
4136
  constructor() {
@@ -4149,7 +4140,7 @@ class PaginationComponent {
4149
4140
  this.usePageSizeSelector = false;
4150
4141
  this.pageSize = 10;
4151
4142
  this.btnType = 'text';
4152
- this.btnSize = 'L';
4143
+ this.size = 'L';
4153
4144
  this.pageSelect = new EventEmitter();
4154
4145
  this.amountChange = new EventEmitter();
4155
4146
  this.isPagination = true;
@@ -4255,11 +4246,11 @@ class PaginationComponent {
4255
4246
  }
4256
4247
  }
4257
4248
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4258
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: PaginationComponent, isStandalone: false, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage", usePageSizeSelector: "usePageSizeSelector", pageSize: "pageSize", btnType: "btnType", btnSize: "btnSize" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<button\n aebButton\n (click)=\"prevPageHandler()\"\n [variant]=\"'outline'\"\n [disabled]=\"currentPage === 1\"\n [size]=\"btnSize\"\n>\n @if (btnType === 'text') {\n \u041D\u0430\u0437\u0430\u0434\n }\n @if (btnType === 'icons') {\n <svg\n class=\"aeb-icon-left\"\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 }\n</button>\n<div class=\"aeb-pagination__block\">\n @if (head) {\n <button\n aebButton\n (click)=\"headPageHandler(head)\"\n [variant]=\"'outline'\"\n [size]=\"btnSize\"\n >\n {{ head }}\n </button>\n }\n\n @if (head) {\n <div class=\"aeb-pagination__breaker\">...</div>\n }\n\n @for (page of middle; track page) {\n <button\n aebButton\n (click)=\"middlePageHandler(page)\"\n [variant]=\"currentPage === page ? 'primary' : 'outline'\"\n [size]=\"btnSize\"\n >\n {{ page }}\n </button>\n }\n\n @if (tail) {\n <div class=\"aeb-pagination__breaker\">...</div>\n }\n\n @if (tail) {\n <button\n aebButton\n (click)=\"tailPageHandler(tail)\"\n [variant]=\"'outline'\"\n [size]=\"btnSize\"\n >\n {{ tail }}\n </button>\n }\n</div>\n<button\n aebButton\n (click)=\"nextPageHandler()\"\n [variant]=\"'outline'\"\n [disabled]=\"currentPage === totalPages\"\n [size]=\"btnSize\"\n>\n @if (btnType === 'text') {\n \u0414\u0430\u043B\u0435\u0435\n }\n @if (btnType === 'icons') {\n <svg\n class=\"aeb-icon-left\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10 16L13.9293 12.0707C13.9683 12.0317 13.9683 11.9683 13.9293 11.9293L10 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n }\n</button>\n@if (usePageSizeSelector) {\n <div class=\"aeb-pagination--select-container\">\n <aeb-select\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\"\n >\n </aeb-select>\n </div>\n}\n", styles: [".aeb-pagination{position:relative;display:inline-flex;gap:24px;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{color:var(--color-blue-500);-webkit-user-select:none;user-select: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}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500);border-color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}\n"], dependencies: [{ kind: "component", type: SelectComponent, selector: "aeb-select", inputs: ["label", "options", "hasError", "disabled", "direction"], outputs: ["optionSelect"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "isWarning", "size", "variant"] }, { kind: "directive", type: ButtonLeftIconDirective, selector: "img.aeb-icon-left, svg.aeb-icon-left" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
4249
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: PaginationComponent, isStandalone: false, selector: "aeb-pagination", inputs: { totalPages: "totalPages", currentPage: "currentPage", usePageSizeSelector: "usePageSizeSelector", pageSize: "pageSize", btnType: "btnType", size: "size" }, outputs: { pageSelect: "pageSelect", amountChange: "amountChange" }, host: { properties: { "class.aeb-pagination": "this.isPagination" } }, usesOnChanges: true, ngImport: i0, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 600px){.aeb-pagination--select-container{display:none}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}.button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--color-blue-500)}.button--active{color:var(--color-mono-0);background:var(--color-blue-500)}.item--large{width:48px;height:48px;font-size:16px;border-radius:12px}.item--medium{width:24px;height:24px;font-size:12px;border-radius:8px}.item--disabled{opacity:.5;cursor:not-allowed}.item--rounded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SelectComponent, selector: "aeb-select", inputs: ["label", "options", "hasError", "disabled", "direction"], outputs: ["optionSelect"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
4259
4250
  }
4260
4251
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: PaginationComponent, decorators: [{
4261
4252
  type: Component,
4262
- args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button\n aebButton\n (click)=\"prevPageHandler()\"\n [variant]=\"'outline'\"\n [disabled]=\"currentPage === 1\"\n [size]=\"btnSize\"\n>\n @if (btnType === 'text') {\n \u041D\u0430\u0437\u0430\u0434\n }\n @if (btnType === 'icons') {\n <svg\n class=\"aeb-icon-left\"\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 }\n</button>\n<div class=\"aeb-pagination__block\">\n @if (head) {\n <button\n aebButton\n (click)=\"headPageHandler(head)\"\n [variant]=\"'outline'\"\n [size]=\"btnSize\"\n >\n {{ head }}\n </button>\n }\n\n @if (head) {\n <div class=\"aeb-pagination__breaker\">...</div>\n }\n\n @for (page of middle; track page) {\n <button\n aebButton\n (click)=\"middlePageHandler(page)\"\n [variant]=\"currentPage === page ? 'primary' : 'outline'\"\n [size]=\"btnSize\"\n >\n {{ page }}\n </button>\n }\n\n @if (tail) {\n <div class=\"aeb-pagination__breaker\">...</div>\n }\n\n @if (tail) {\n <button\n aebButton\n (click)=\"tailPageHandler(tail)\"\n [variant]=\"'outline'\"\n [size]=\"btnSize\"\n >\n {{ tail }}\n </button>\n }\n</div>\n<button\n aebButton\n (click)=\"nextPageHandler()\"\n [variant]=\"'outline'\"\n [disabled]=\"currentPage === totalPages\"\n [size]=\"btnSize\"\n>\n @if (btnType === 'text') {\n \u0414\u0430\u043B\u0435\u0435\n }\n @if (btnType === 'icons') {\n <svg\n class=\"aeb-icon-left\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10 16L13.9293 12.0707C13.9683 12.0317 13.9683 11.9683 13.9293 11.9293L10 8\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n }\n</button>\n@if (usePageSizeSelector) {\n <div class=\"aeb-pagination--select-container\">\n <aeb-select\n [direction]=\"'top'\"\n (optionSelect)=\"handleChangePageSize($event)\"\n [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\"\n >\n </aeb-select>\n </div>\n}\n", styles: [".aeb-pagination{position:relative;display:inline-flex;gap:24px;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{color:var(--color-blue-500);-webkit-user-select:none;user-select: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}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500);border-color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}\n"] }]
4253
+ args: [{ selector: 'aeb-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<button (click)=\"prevPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div class=\"aeb-pagination__block\">\n <button *ngIf=\"head\" (click)=\"headPageHandler(head)\" [ngClass]=\"{\n 'button': true,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ head }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngFor=\"let page of middle\" (click)=\"middlePageHandler(page)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === page,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ page }}\n </button>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail\" [ngClass]=\"{\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n <p>...</p>\n </div>\n\n <button *ngIf=\"tail\" (click)=\"tailPageHandler(tail)\" [ngClass]=\"{\n 'button': 'true',\n 'button--active': currentPage === tail,\n 'item--large': size === 'L',\n 'item--medium': size === 'M'\n }\">\n {{ tail }}\n </button>\n</div>\n<button (click)=\"nextPageHandler()\" [ngClass]=\"{\n 'button': true,\n 'item--disabled': currentPage === 1,\n 'item--large': size === 'L',\n 'item--medium': size === 'M',\n 'item--rounded': true\n}\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 16L10.0707 12.0707C10.0317 12.0317 10.0317 11.9683 10.0707 11.9293L14 8\" stroke=\"#2F88F0\"\n stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n</button>\n<div *ngIf=\"usePageSizeSelector\" class=\"aeb-pagination--select-container\">\n <aeb-select [direction]=\"'top'\" (optionSelect)=\"handleChangePageSize($event)\" [formControl]=\"pageSizeControl\"\n [options]=\"amountOptions\">\n </aeb-select>\n</div>", styles: [".aeb-pagination{gap:8px;display:flex;position:relative;align-items:center;justify-content:flex-start;color:var(--color-mono-900)}.aeb-pagination__breaker{-webkit-user-select:none;user-select:none;text-align:center;color:var(--color-blue-500)}.aeb-pagination__block{gap:16px;align-items:center;display:inline-flex}.aeb-pagination--select-container{width:192px}@media screen and (max-width: 600px){.aeb-pagination--select-container{display:none}}@media (hover: hover){.aeb-pagination .aeb-button--outline:hover,.aeb-pagination .aeb-button--outline:focus{background-color:var(--color-blue-100);color:var(--color-blue-500)}.aeb-pagination .aeb-button--outline:hover .aeb-button__icon,.aeb-pagination .aeb-button--outline:focus .aeb-button__icon{filter:var(--outline-icon-default)}}.button{padding:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;justify-content:center;background:transparent;color:var(--color-blue-500)}.button--active{color:var(--color-mono-0);background:var(--color-blue-500)}.item--large{width:48px;height:48px;font-size:16px;border-radius:12px}.item--medium{width:24px;height:24px;font-size:12px;border-radius:8px}.item--disabled{opacity:.5;cursor:not-allowed}.item--rounded{transform:rotate(180deg)}\n"] }]
4263
4254
  }], ctorParameters: () => [], propDecorators: { totalPages: [{
4264
4255
  type: Input
4265
4256
  }], currentPage: [{
@@ -4270,7 +4261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
4270
4261
  type: Input
4271
4262
  }], btnType: [{
4272
4263
  type: Input
4273
- }], btnSize: [{
4264
+ }], size: [{
4274
4265
  type: Input
4275
4266
  }], pageSelect: [{
4276
4267
  type: Output