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.
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -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
|
-
|
|
4133
|
-
|
|
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.
|
|
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: "
|
|
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
|
|
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
|
-
}],
|
|
4264
|
+
}], size: [{
|
|
4274
4265
|
type: Input
|
|
4275
4266
|
}], pageSelect: [{
|
|
4276
4267
|
type: Output
|