@progress/kendo-angular-pager 19.0.0-develop.9 → 19.0.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/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pager/navigation.service.mjs +1 -1
- package/esm2022/pager/pager-input.component.mjs +13 -6
- package/esm2022/pager/pager-numeric-buttons.component.mjs +3 -51
- package/esm2022/pager/pager-page-sizes.component.mjs +30 -5
- package/esm2022/pager/pager.component.mjs +410 -57
- package/esm2022/util.mjs +52 -0
- package/fesm2022/progress-kendo-angular-pager.mjs +505 -126
- package/index.d.ts +1 -0
- package/package.json +8 -8
- package/pager/pager-input.component.d.ts +6 -1
- package/pager/pager-page-sizes.component.d.ts +15 -1
- package/pager/pager.component.d.ts +74 -9
- package/schematics/ngAdd/index.js +6 -6
- package/util.d.ts +30 -0
- package/esm2022/pager/common/constants.mjs +0 -12
- package/pager/common/constants.d.ts +0 -12
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.0.0
|
|
13
|
+
publishDate: 1748362420,
|
|
14
|
+
version: '19.0.0',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -9,7 +9,7 @@ import { isFocusable } from "@progress/kendo-angular-common";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class PagerNavigationService {
|
|
12
|
-
isNavigable =
|
|
12
|
+
isNavigable = true;
|
|
13
13
|
innerNavigationChange = new Subject();
|
|
14
14
|
toggleInnerNavigation(value) {
|
|
15
15
|
this.innerNavigationChange.next(value);
|
|
@@ -11,7 +11,7 @@ import { PagerContextService } from "./pager-context.service";
|
|
|
11
11
|
import { Keys, EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
12
12
|
import { DEFAULT_SIZE } from '../util';
|
|
13
13
|
import { PagerFocusableDirective } from './focusable.directive';
|
|
14
|
-
import { NgClass } from '@angular/common';
|
|
14
|
+
import { NgClass, NgIf } from '@angular/common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
17
17
|
import * as i2 from "./pager-context.service";
|
|
@@ -23,6 +23,11 @@ export class PagerInputComponent extends PagerElementComponent {
|
|
|
23
23
|
zone;
|
|
24
24
|
renderer;
|
|
25
25
|
numericInput;
|
|
26
|
+
/**
|
|
27
|
+
* Controls the visibility of the page text label.
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
showPageText = true;
|
|
26
31
|
/**
|
|
27
32
|
* Specifies the padding of the internal numeric input element.
|
|
28
33
|
*
|
|
@@ -96,9 +101,9 @@ export class PagerInputComponent extends PagerElementComponent {
|
|
|
96
101
|
return this.totalPages !== 0;
|
|
97
102
|
}
|
|
98
103
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerInputComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PagerContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
99
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerInputComponent, isStandalone: true, selector: "kendo-datapager-input, kendo-pager-input", inputs: { size: "size" }, viewQueries: [{ propertyName: "numericInput", first: true, predicate: NumericTextBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerInputComponent, isStandalone: true, selector: "kendo-datapager-input, kendo-pager-input", inputs: { showPageText: "showPageText", size: "size" }, viewQueries: [{ propertyName: "numericInput", first: true, predicate: NumericTextBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
100
105
|
<span class="k-pager-input">
|
|
101
|
-
{{textFor('page')}}
|
|
106
|
+
<ng-container *ngIf="showPageText">{{textFor('page')}}</ng-container>
|
|
102
107
|
<kendo-numerictextbox kendoPagerFocusable
|
|
103
108
|
[spinners]="false"
|
|
104
109
|
[decimals]="0"
|
|
@@ -120,7 +125,7 @@ export class PagerInputComponent extends PagerElementComponent {
|
|
|
120
125
|
</kendo-numerictextbox>
|
|
121
126
|
{{textFor('of')}} {{totalPages}}
|
|
122
127
|
</span>
|
|
123
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
128
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
124
129
|
}
|
|
125
130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerInputComponent, decorators: [{
|
|
126
131
|
type: Component,
|
|
@@ -128,7 +133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
128
133
|
selector: 'kendo-datapager-input, kendo-pager-input',
|
|
129
134
|
template: `
|
|
130
135
|
<span class="k-pager-input">
|
|
131
|
-
{{textFor('page')}}
|
|
136
|
+
<ng-container *ngIf="showPageText">{{textFor('page')}}</ng-container>
|
|
132
137
|
<kendo-numerictextbox kendoPagerFocusable
|
|
133
138
|
[spinners]="false"
|
|
134
139
|
[decimals]="0"
|
|
@@ -152,11 +157,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
152
157
|
</span>
|
|
153
158
|
`,
|
|
154
159
|
standalone: true,
|
|
155
|
-
imports: [NgClass, NumericTextBoxComponent, PagerFocusableDirective, EventsOutsideAngularDirective]
|
|
160
|
+
imports: [NgClass, NgIf, NumericTextBoxComponent, PagerFocusableDirective, EventsOutsideAngularDirective]
|
|
156
161
|
}]
|
|
157
162
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PagerContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { numericInput: [{
|
|
158
163
|
type: ViewChild,
|
|
159
164
|
args: [NumericTextBoxComponent, { static: true }]
|
|
165
|
+
}], showPageText: [{
|
|
166
|
+
type: Input
|
|
160
167
|
}], size: [{
|
|
161
168
|
type: Input
|
|
162
169
|
}] } });
|
|
@@ -8,7 +8,7 @@ import { PagerContextService } from './pager-context.service';
|
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
9
|
import { DEFAULT_SIZE, getStylingClasses } from '../util';
|
|
10
10
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
11
|
-
import { NgIf, NgFor
|
|
11
|
+
import { NgIf, NgFor } from '@angular/common';
|
|
12
12
|
import { PagerFocusableDirective } from './focusable.directive';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -138,30 +138,6 @@ export class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
|
138
138
|
}
|
|
139
139
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
140
140
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerNumericButtonsComponent, isStandalone: true, selector: "kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons", inputs: { buttonCount: "buttonCount", size: "size" }, viewQueries: [{ propertyName: "selectElement", first: true, predicate: ["select"], descendants: true, read: ElementRef }, { propertyName: "numbersElement", first: true, predicate: ["numbers"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
141
|
-
<select kendoPagerFocusable #select
|
|
142
|
-
class="k-hidden k-dropdown-list k-dropdown k-picker k-picker-solid k-rounded-md"
|
|
143
|
-
[attr.title]="pageChooserLabel"
|
|
144
|
-
[attr.aria-label]="pageChooserLabel"
|
|
145
|
-
(change)="onSelectChange($event)">
|
|
146
|
-
<option *ngIf="start > 1"
|
|
147
|
-
value="previousButtons"
|
|
148
|
-
[selected]="false"
|
|
149
|
-
[attr.aria-label]="pageLabel(start - 1)">...
|
|
150
|
-
</option>
|
|
151
|
-
<option *ngFor="let num of buttons"
|
|
152
|
-
[value]="num.toString()"
|
|
153
|
-
[selected]="num === currentPage"
|
|
154
|
-
[attr.aria-label]="pageLabel(num)"
|
|
155
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
|
156
|
-
[ngClass]="{'k-selected':currentPage === num}">
|
|
157
|
-
{{num}}
|
|
158
|
-
</option>
|
|
159
|
-
<option *ngIf="end < totalPages"
|
|
160
|
-
value="nextButtons"
|
|
161
|
-
[selected]="false"
|
|
162
|
-
[attr.aria-label]="pageLabel(end + 1)">...
|
|
163
|
-
</option>
|
|
164
|
-
</select>
|
|
165
141
|
<div class="k-pager-numbers" #numbers>
|
|
166
142
|
<button *ngIf="start > 1"
|
|
167
143
|
type="button"
|
|
@@ -201,7 +177,7 @@ export class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
|
201
177
|
[attr.title]="pageLabel(end + 1)"
|
|
202
178
|
(click)="changePage(end)">...</button>
|
|
203
179
|
</div>
|
|
204
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "
|
|
180
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
205
181
|
}
|
|
206
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerNumericButtonsComponent, decorators: [{
|
|
207
183
|
type: Component,
|
|
@@ -209,30 +185,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
209
185
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
210
186
|
selector: 'kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons',
|
|
211
187
|
template: `
|
|
212
|
-
<select kendoPagerFocusable #select
|
|
213
|
-
class="k-hidden k-dropdown-list k-dropdown k-picker k-picker-solid k-rounded-md"
|
|
214
|
-
[attr.title]="pageChooserLabel"
|
|
215
|
-
[attr.aria-label]="pageChooserLabel"
|
|
216
|
-
(change)="onSelectChange($event)">
|
|
217
|
-
<option *ngIf="start > 1"
|
|
218
|
-
value="previousButtons"
|
|
219
|
-
[selected]="false"
|
|
220
|
-
[attr.aria-label]="pageLabel(start - 1)">...
|
|
221
|
-
</option>
|
|
222
|
-
<option *ngFor="let num of buttons"
|
|
223
|
-
[value]="num.toString()"
|
|
224
|
-
[selected]="num === currentPage"
|
|
225
|
-
[attr.aria-label]="pageLabel(num)"
|
|
226
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
|
227
|
-
[ngClass]="{'k-selected':currentPage === num}">
|
|
228
|
-
{{num}}
|
|
229
|
-
</option>
|
|
230
|
-
<option *ngIf="end < totalPages"
|
|
231
|
-
value="nextButtons"
|
|
232
|
-
[selected]="false"
|
|
233
|
-
[attr.aria-label]="pageLabel(end + 1)">...
|
|
234
|
-
</option>
|
|
235
|
-
</select>
|
|
236
188
|
<div class="k-pager-numbers" #numbers>
|
|
237
189
|
<button *ngIf="start > 1"
|
|
238
190
|
type="button"
|
|
@@ -274,7 +226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
274
226
|
</div>
|
|
275
227
|
`,
|
|
276
228
|
standalone: true,
|
|
277
|
-
imports: [PagerFocusableDirective, NgIf, NgFor,
|
|
229
|
+
imports: [PagerFocusableDirective, NgIf, NgFor, ButtonComponent]
|
|
278
230
|
}]
|
|
279
231
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }, { type: i0.Renderer2 }]; }, propDecorators: { selectElement: [{
|
|
280
232
|
type: ViewChild,
|
|
@@ -11,6 +11,7 @@ import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
|
11
11
|
import { Keys } from '@progress/kendo-angular-common';
|
|
12
12
|
import { DEFAULT_PAGE_SIZE_VALUES, DEFAULT_SIZE } from '../util';
|
|
13
13
|
import { PagerFocusableDirective } from './focusable.directive';
|
|
14
|
+
import { NgIf } from '@angular/common';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
16
17
|
import * as i2 from "./pager-context.service";
|
|
@@ -22,6 +23,18 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
22
23
|
element;
|
|
23
24
|
ngZone;
|
|
24
25
|
dropDownList;
|
|
26
|
+
_showItemsText = true;
|
|
27
|
+
/**
|
|
28
|
+
* Controls the visibility of the page text label.
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
get showItemsText() {
|
|
32
|
+
return this._showItemsText;
|
|
33
|
+
}
|
|
34
|
+
set showItemsText(value) {
|
|
35
|
+
this._showItemsText = value;
|
|
36
|
+
this.cd.markForCheck();
|
|
37
|
+
}
|
|
25
38
|
/**
|
|
26
39
|
* The page sizes collection. Can contain numbers and [PageSizeItem]({% slug api_pager_pagesizeitem %}) objects.
|
|
27
40
|
*
|
|
@@ -173,6 +186,12 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
173
186
|
* * `none`
|
|
174
187
|
*/
|
|
175
188
|
size = DEFAULT_SIZE;
|
|
189
|
+
/**
|
|
190
|
+
* Toggles the adaptiveness of the internal DropDownList.
|
|
191
|
+
*
|
|
192
|
+
* @default 'auto'
|
|
193
|
+
*/
|
|
194
|
+
adaptiveMode = 'auto';
|
|
176
195
|
/**
|
|
177
196
|
* @hidden
|
|
178
197
|
*
|
|
@@ -219,7 +238,7 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
219
238
|
}
|
|
220
239
|
}
|
|
221
240
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerPageSizesComponent, isStandalone: true, selector: "kendo-datapager-page-sizes, kendo-pager-page-sizes", inputs: { pageSizes: "pageSizes", size: "size" }, host: { properties: { "class.k-pager-sizes": "this.classes" } }, viewQueries: [{ propertyName: "dropDownList", first: true, predicate: ["dropdownlist"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerPageSizesComponent, isStandalone: true, selector: "kendo-datapager-page-sizes, kendo-pager-page-sizes", inputs: { showItemsText: "showItemsText", pageSizes: "pageSizes", size: "size", adaptiveMode: "adaptiveMode" }, host: { properties: { "class.k-pager-sizes": "this.classes" } }, viewQueries: [{ propertyName: "dropDownList", first: true, predicate: ["dropdownlist"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
223
242
|
<kendo-dropdownlist kendoPagerFocusable
|
|
224
243
|
#dropdownlist
|
|
225
244
|
[size]="size"
|
|
@@ -229,9 +248,10 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
229
248
|
[valuePrimitive]="true"
|
|
230
249
|
[value]="pageSize"
|
|
231
250
|
(valueChange)="pageSizeChange($event, dropdownlist)"
|
|
251
|
+
[adaptiveMode]="adaptiveMode"
|
|
232
252
|
[attr.aria-label]="textFor('itemsPerPage')"></kendo-dropdownlist>
|
|
233
|
-
{{ textFor('itemsPerPage') }}
|
|
234
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
253
|
+
<ng-container *ngIf="showItemsText">{{ textFor('itemsPerPage') }}</ng-container>
|
|
254
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
235
255
|
}
|
|
236
256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
237
257
|
type: Component,
|
|
@@ -248,19 +268,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
248
268
|
[valuePrimitive]="true"
|
|
249
269
|
[value]="pageSize"
|
|
250
270
|
(valueChange)="pageSizeChange($event, dropdownlist)"
|
|
271
|
+
[adaptiveMode]="adaptiveMode"
|
|
251
272
|
[attr.aria-label]="textFor('itemsPerPage')"></kendo-dropdownlist>
|
|
252
|
-
{{ textFor('itemsPerPage') }}
|
|
273
|
+
<ng-container *ngIf="showItemsText">{{ textFor('itemsPerPage') }}</ng-container>
|
|
253
274
|
`,
|
|
254
275
|
standalone: true,
|
|
255
|
-
imports: [DropDownListComponent, PagerFocusableDirective]
|
|
276
|
+
imports: [DropDownListComponent, PagerFocusableDirective, NgIf]
|
|
256
277
|
}]
|
|
257
278
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { dropDownList: [{
|
|
258
279
|
type: ViewChild,
|
|
259
280
|
args: ['dropdownlist', { static: true }]
|
|
281
|
+
}], showItemsText: [{
|
|
282
|
+
type: Input
|
|
260
283
|
}], pageSizes: [{
|
|
261
284
|
type: Input
|
|
262
285
|
}], size: [{
|
|
263
286
|
type: Input
|
|
287
|
+
}], adaptiveMode: [{
|
|
288
|
+
type: Input
|
|
264
289
|
}], classes: [{
|
|
265
290
|
type: HostBinding,
|
|
266
291
|
args: ["class.k-pager-sizes"]
|