@clr/angular 13.7.0 → 13.8.0
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/clarity.api.md +3 -1
- package/data/datagrid/datagrid-page-size.d.ts +2 -1
- package/esm2020/data/datagrid/datagrid-page-size.mjs +9 -4
- package/fesm2015/clr-angular.mjs +7 -3
- package/fesm2015/clr-angular.mjs.map +1 -1
- package/fesm2020/clr-angular.mjs +7 -3
- package/fesm2020/clr-angular.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/clr-angular.mjs
CHANGED
|
@@ -17199,6 +17199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
17199
17199
|
class ClrDatagridPageSize {
|
|
17200
17200
|
constructor(page) {
|
|
17201
17201
|
this.page = page;
|
|
17202
|
+
this.pageSizeOptionsId = uniqueIdFactory();
|
|
17202
17203
|
}
|
|
17203
17204
|
ngOnInit() {
|
|
17204
17205
|
if (!this.pageSizeOptions || this.pageSizeOptions.length === 0) {
|
|
@@ -17207,10 +17208,10 @@ class ClrDatagridPageSize {
|
|
|
17207
17208
|
}
|
|
17208
17209
|
}
|
|
17209
17210
|
ClrDatagridPageSize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ClrDatagridPageSize, deps: [{ token: Page }], target: i0.ɵɵFactoryTarget.Component });
|
|
17210
|
-
ClrDatagridPageSize.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ClrDatagridPageSize, selector: "clr-dg-page-size", inputs: { pageSizeOptions: ["clrPageSizeOptions", "pageSizeOptions"] }, ngImport: i0, template: `
|
|
17211
|
+
ClrDatagridPageSize.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ClrDatagridPageSize, selector: "clr-dg-page-size", inputs: { pageSizeOptions: ["clrPageSizeOptions", "pageSizeOptions"], pageSizeOptionsId: ["clrPageSizeOptionsId", "pageSizeOptionsId"] }, ngImport: i0, template: `
|
|
17211
17212
|
<ng-content></ng-content>
|
|
17212
17213
|
<div class="clr-select-wrapper">
|
|
17213
|
-
<select [class.clr-page-size-select]="true" [(ngModel)]="page.size">
|
|
17214
|
+
<select [id]="pageSizeOptionsId" [class.clr-page-size-select]="true" [(ngModel)]="page.size">
|
|
17214
17215
|
<option *ngFor="let option of pageSizeOptions" [ngValue]="option">{{ option }}</option>
|
|
17215
17216
|
</select>
|
|
17216
17217
|
</div>
|
|
@@ -17222,7 +17223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
17222
17223
|
template: `
|
|
17223
17224
|
<ng-content></ng-content>
|
|
17224
17225
|
<div class="clr-select-wrapper">
|
|
17225
|
-
<select [class.clr-page-size-select]="true" [(ngModel)]="page.size">
|
|
17226
|
+
<select [id]="pageSizeOptionsId" [class.clr-page-size-select]="true" [(ngModel)]="page.size">
|
|
17226
17227
|
<option *ngFor="let option of pageSizeOptions" [ngValue]="option">{{ option }}</option>
|
|
17227
17228
|
</select>
|
|
17228
17229
|
</div>
|
|
@@ -17231,6 +17232,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
17231
17232
|
}], ctorParameters: function () { return [{ type: Page }]; }, propDecorators: { pageSizeOptions: [{
|
|
17232
17233
|
type: Input,
|
|
17233
17234
|
args: ['clrPageSizeOptions']
|
|
17235
|
+
}], pageSizeOptionsId: [{
|
|
17236
|
+
type: Input,
|
|
17237
|
+
args: ['clrPageSizeOptionsId']
|
|
17234
17238
|
}] } });
|
|
17235
17239
|
|
|
17236
17240
|
/*
|