@progress/kendo-angular-pager 21.1.1-develop.1 → 21.2.0-develop.1
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/pager-input.component.mjs +36 -33
- package/esm2022/pager/pager-numeric-buttons.component.mjs +88 -77
- package/esm2022/pager/pager-page-sizes.component.mjs +32 -27
- package/esm2022/pager/pager.component.mjs +145 -119
- package/fesm2022/progress-kendo-angular-pager.mjs +303 -255
- package/package.json +8 -8
- package/schematics/ngAdd/index.js +10 -6
|
@@ -11,9 +11,9 @@ import { caretAltLeftIcon, caretAltToLeftIcon, caretAltRightIcon, caretAltToRigh
|
|
|
11
11
|
import { isVisible, isDocumentAvailable, isFocusable, Keys, EventsOutsideAngularDirective, anyChanged, isChanged, replaceMessagePlaceholder, normalizeNumpadKeys, ResizeSensorComponent, isPresent, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
12
12
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
13
13
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
14
|
-
import { NgIf, NgFor, NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
15
14
|
import { NumericTextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
16
15
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
16
|
+
import { NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
17
17
|
import { take } from 'rxjs/operators';
|
|
18
18
|
import { IconsService } from '@progress/kendo-angular-icons';
|
|
19
19
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
@@ -839,20 +839,23 @@ class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: PagerContextService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
842
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
842
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", 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: `
|
|
843
843
|
<kendo-dropdownlist kendoPagerFocusable
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
844
|
+
#dropdownlist
|
|
845
|
+
[size]="size"
|
|
846
|
+
[data]="_pageSizes"
|
|
847
|
+
textField="text"
|
|
848
|
+
valueField="value"
|
|
849
|
+
[valuePrimitive]="true"
|
|
850
|
+
[value]="pageSize"
|
|
851
|
+
(valueChange)="pageSizeChange($event, dropdownlist)"
|
|
852
|
+
[adaptiveMode]="adaptiveMode"
|
|
853
|
+
[attr.aria-label]="textFor('itemsPerPage')">
|
|
854
|
+
</kendo-dropdownlist>
|
|
855
|
+
@if (showItemsText) {
|
|
856
|
+
{{ textFor('itemsPerPage') }}
|
|
857
|
+
}
|
|
858
|
+
`, 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 });
|
|
856
859
|
}
|
|
857
860
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
858
861
|
type: Component,
|
|
@@ -861,20 +864,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
861
864
|
selector: 'kendo-datapager-page-sizes, kendo-pager-page-sizes',
|
|
862
865
|
template: `
|
|
863
866
|
<kendo-dropdownlist kendoPagerFocusable
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
867
|
+
#dropdownlist
|
|
868
|
+
[size]="size"
|
|
869
|
+
[data]="_pageSizes"
|
|
870
|
+
textField="text"
|
|
871
|
+
valueField="value"
|
|
872
|
+
[valuePrimitive]="true"
|
|
873
|
+
[value]="pageSize"
|
|
874
|
+
(valueChange)="pageSizeChange($event, dropdownlist)"
|
|
875
|
+
[adaptiveMode]="adaptiveMode"
|
|
876
|
+
[attr.aria-label]="textFor('itemsPerPage')">
|
|
877
|
+
</kendo-dropdownlist>
|
|
878
|
+
@if (showItemsText) {
|
|
879
|
+
{{ textFor('itemsPerPage') }}
|
|
880
|
+
}
|
|
881
|
+
`,
|
|
876
882
|
standalone: true,
|
|
877
|
-
imports: [DropDownListComponent, PagerFocusableDirective
|
|
883
|
+
imports: [DropDownListComponent, PagerFocusableDirective]
|
|
878
884
|
}]
|
|
879
885
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: PagerContextService }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { dropDownList: [{
|
|
880
886
|
type: ViewChild,
|
|
@@ -1061,47 +1067,53 @@ class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
|
1061
1067
|
}
|
|
1062
1068
|
}
|
|
1063
1069
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: PagerContextService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1064
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1070
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", 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: `
|
|
1065
1071
|
<div class="k-pager-numbers" #numbers>
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1072
|
+
@if (start > 1) {
|
|
1073
|
+
<button
|
|
1074
|
+
type="button"
|
|
1075
|
+
kendoPagerFocusable
|
|
1076
|
+
kendoButton
|
|
1077
|
+
[size]="size"
|
|
1078
|
+
fillMode="flat"
|
|
1079
|
+
themeColor="primary"
|
|
1080
|
+
rounded="none"
|
|
1081
|
+
[attr.aria-label]="pageLabel(start - 1)"
|
|
1082
|
+
[attr.title]="pageLabel(start - 1)"
|
|
1083
|
+
(click)="changePage(start - 2)">...</button>
|
|
1084
|
+
}
|
|
1085
|
+
@for (num of buttons; track num) {
|
|
1086
|
+
<button
|
|
1087
|
+
type="button"
|
|
1088
|
+
kendoPagerFocusable
|
|
1089
|
+
kendoButton
|
|
1090
|
+
[size]="size"
|
|
1091
|
+
fillMode="flat"
|
|
1092
|
+
themeColor="primary"
|
|
1093
|
+
rounded="none"
|
|
1094
|
+
[attr.aria-label]="pageLabel(num)"
|
|
1095
|
+
[attr.title]="pageLabel(num)"
|
|
1096
|
+
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
|
1097
|
+
[selected]="currentPage === num"
|
|
1098
|
+
(click)="currentPage === num ? false : changePage(num - 1)">
|
|
1099
|
+
{{num}}
|
|
1091
1100
|
</button>
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1101
|
+
}
|
|
1102
|
+
@if (end < totalPages) {
|
|
1103
|
+
<button
|
|
1104
|
+
type="button"
|
|
1105
|
+
kendoPagerFocusable
|
|
1106
|
+
kendoButton
|
|
1107
|
+
[size]="size"
|
|
1108
|
+
fillMode="flat"
|
|
1109
|
+
themeColor="primary"
|
|
1110
|
+
rounded="none"
|
|
1111
|
+
[attr.aria-label]="pageLabel(end + 1)"
|
|
1112
|
+
[attr.title]="pageLabel(end + 1)"
|
|
1113
|
+
(click)="changePage(end)">...</button>
|
|
1114
|
+
}
|
|
1103
1115
|
</div>
|
|
1104
|
-
|
|
1116
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: PagerFocusableDirective, selector: "[kendoPagerFocusable]", exportAs: ["kendoPagerFocusable"] }, { 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 });
|
|
1105
1117
|
}
|
|
1106
1118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerNumericButtonsComponent, decorators: [{
|
|
1107
1119
|
type: Component,
|
|
@@ -1110,47 +1122,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1110
1122
|
selector: 'kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons',
|
|
1111
1123
|
template: `
|
|
1112
1124
|
<div class="k-pager-numbers" #numbers>
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1125
|
+
@if (start > 1) {
|
|
1126
|
+
<button
|
|
1127
|
+
type="button"
|
|
1128
|
+
kendoPagerFocusable
|
|
1129
|
+
kendoButton
|
|
1130
|
+
[size]="size"
|
|
1131
|
+
fillMode="flat"
|
|
1132
|
+
themeColor="primary"
|
|
1133
|
+
rounded="none"
|
|
1134
|
+
[attr.aria-label]="pageLabel(start - 1)"
|
|
1135
|
+
[attr.title]="pageLabel(start - 1)"
|
|
1136
|
+
(click)="changePage(start - 2)">...</button>
|
|
1137
|
+
}
|
|
1138
|
+
@for (num of buttons; track num) {
|
|
1139
|
+
<button
|
|
1140
|
+
type="button"
|
|
1141
|
+
kendoPagerFocusable
|
|
1142
|
+
kendoButton
|
|
1143
|
+
[size]="size"
|
|
1144
|
+
fillMode="flat"
|
|
1145
|
+
themeColor="primary"
|
|
1146
|
+
rounded="none"
|
|
1147
|
+
[attr.aria-label]="pageLabel(num)"
|
|
1148
|
+
[attr.title]="pageLabel(num)"
|
|
1149
|
+
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
|
1150
|
+
[selected]="currentPage === num"
|
|
1151
|
+
(click)="currentPage === num ? false : changePage(num - 1)">
|
|
1152
|
+
{{num}}
|
|
1138
1153
|
</button>
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1154
|
+
}
|
|
1155
|
+
@if (end < totalPages) {
|
|
1156
|
+
<button
|
|
1157
|
+
type="button"
|
|
1158
|
+
kendoPagerFocusable
|
|
1159
|
+
kendoButton
|
|
1160
|
+
[size]="size"
|
|
1161
|
+
fillMode="flat"
|
|
1162
|
+
themeColor="primary"
|
|
1163
|
+
rounded="none"
|
|
1164
|
+
[attr.aria-label]="pageLabel(end + 1)"
|
|
1165
|
+
[attr.title]="pageLabel(end + 1)"
|
|
1166
|
+
(click)="changePage(end)">...</button>
|
|
1167
|
+
}
|
|
1150
1168
|
</div>
|
|
1151
|
-
|
|
1169
|
+
`,
|
|
1152
1170
|
standalone: true,
|
|
1153
|
-
imports: [PagerFocusableDirective,
|
|
1171
|
+
imports: [PagerFocusableDirective, ButtonComponent]
|
|
1154
1172
|
}]
|
|
1155
1173
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: PagerContextService }, { type: i0.Renderer2 }], propDecorators: { selectElement: [{
|
|
1156
1174
|
type: ViewChild,
|
|
@@ -1378,31 +1396,33 @@ class PagerInputComponent extends PagerElementComponent {
|
|
|
1378
1396
|
return this.totalPages !== 0;
|
|
1379
1397
|
}
|
|
1380
1398
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerInputComponent, deps: [{ token: i1.LocalizationService }, { token: PagerContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1381
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1399
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", 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: `
|
|
1382
1400
|
<span class="k-pager-input">
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1401
|
+
@if (showPageText) {
|
|
1402
|
+
{{textFor('page')}}
|
|
1403
|
+
}
|
|
1404
|
+
<kendo-numerictextbox kendoPagerFocusable
|
|
1405
|
+
[spinners]="false"
|
|
1406
|
+
[decimals]="0"
|
|
1407
|
+
format="n0"
|
|
1408
|
+
[size]="size"
|
|
1409
|
+
[disabled]="!hasPages"
|
|
1410
|
+
[value]="current"
|
|
1411
|
+
[min]="hasPages ? 1 : 0"
|
|
1412
|
+
[max]="totalPages"
|
|
1413
|
+
[autoCorrect]="true"
|
|
1394
1414
|
[inputAttributes]="{
|
|
1395
1415
|
'aria-label': textFor('inputLabel')
|
|
1396
1416
|
}"
|
|
1397
|
-
|
|
1417
|
+
[title]="textFor('pageNumberInputTitle')"
|
|
1398
1418
|
[kendoEventsOutsideAngular]="{
|
|
1399
1419
|
keydown: handleKeyDown,
|
|
1400
1420
|
focusout: handleBlur
|
|
1401
1421
|
}">
|
|
1402
|
-
|
|
1403
|
-
|
|
1422
|
+
</kendo-numerictextbox>
|
|
1423
|
+
{{textFor('of')}} {{totalPages}}
|
|
1404
1424
|
</span>
|
|
1405
|
-
|
|
1425
|
+
`, 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"] }] });
|
|
1406
1426
|
}
|
|
1407
1427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerInputComponent, decorators: [{
|
|
1408
1428
|
type: Component,
|
|
@@ -1410,31 +1430,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1410
1430
|
selector: 'kendo-datapager-input, kendo-pager-input',
|
|
1411
1431
|
template: `
|
|
1412
1432
|
<span class="k-pager-input">
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1433
|
+
@if (showPageText) {
|
|
1434
|
+
{{textFor('page')}}
|
|
1435
|
+
}
|
|
1436
|
+
<kendo-numerictextbox kendoPagerFocusable
|
|
1437
|
+
[spinners]="false"
|
|
1438
|
+
[decimals]="0"
|
|
1439
|
+
format="n0"
|
|
1440
|
+
[size]="size"
|
|
1441
|
+
[disabled]="!hasPages"
|
|
1442
|
+
[value]="current"
|
|
1443
|
+
[min]="hasPages ? 1 : 0"
|
|
1444
|
+
[max]="totalPages"
|
|
1445
|
+
[autoCorrect]="true"
|
|
1424
1446
|
[inputAttributes]="{
|
|
1425
1447
|
'aria-label': textFor('inputLabel')
|
|
1426
1448
|
}"
|
|
1427
|
-
|
|
1449
|
+
[title]="textFor('pageNumberInputTitle')"
|
|
1428
1450
|
[kendoEventsOutsideAngular]="{
|
|
1429
1451
|
keydown: handleKeyDown,
|
|
1430
1452
|
focusout: handleBlur
|
|
1431
1453
|
}">
|
|
1432
|
-
|
|
1433
|
-
|
|
1454
|
+
</kendo-numerictextbox>
|
|
1455
|
+
{{textFor('of')}} {{totalPages}}
|
|
1434
1456
|
</span>
|
|
1435
|
-
|
|
1457
|
+
`,
|
|
1436
1458
|
standalone: true,
|
|
1437
|
-
imports: [
|
|
1459
|
+
imports: [NumericTextBoxComponent, PagerFocusableDirective, EventsOutsideAngularDirective]
|
|
1438
1460
|
}]
|
|
1439
1461
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: PagerContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { numericInput: [{
|
|
1440
1462
|
type: ViewChild,
|
|
@@ -1522,8 +1544,8 @@ const packageMetadata = {
|
|
|
1522
1544
|
productName: 'Kendo UI for Angular',
|
|
1523
1545
|
productCode: 'KENDOUIANGULAR',
|
|
1524
1546
|
productCodes: ['KENDOUIANGULAR'],
|
|
1525
|
-
publishDate:
|
|
1526
|
-
version: '21.
|
|
1547
|
+
publishDate: 1763998244,
|
|
1548
|
+
version: '21.2.0-develop.1',
|
|
1527
1549
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
1528
1550
|
};
|
|
1529
1551
|
|
|
@@ -2333,7 +2355,7 @@ class PagerComponent {
|
|
|
2333
2355
|
!this.pagerDimensions.gapPageText && (this.pagerDimensions.gapPageText = calculateGap(innerStyledElement));
|
|
2334
2356
|
}
|
|
2335
2357
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerComponent, deps: [{ token: PagerContextService, optional: true, skipSelf: true }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: PagerNavigationService, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2336
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2358
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PagerComponent, isStandalone: true, selector: "kendo-datapager, kendo-pager", inputs: { externalTemplate: "externalTemplate", total: "total", skip: "skip", pageSize: "pageSize", buttonCount: "buttonCount", info: "info", type: "type", pageSizeValues: "pageSizeValues", previousNext: "previousNext", navigable: "navigable", size: "size", responsive: "responsive", adaptiveMode: "adaptiveMode" }, outputs: { pageChange: "pageChange", pageSizeChange: "pageSizeChange", pagerInputVisibilityChange: "pagerInputVisibilityChange", pageTextVisibilityChange: "pageTextVisibilityChange", itemsTextVisibilityChange: "itemsTextVisibilityChange" }, host: { listeners: { "focusin": "focusHandler($event)" }, properties: { "class.k-pager": "this.pagerClass", "class.k-pager-responsive": "this.responsiveClass", "attr.role": "this.widgetRole", "attr.aria-roledescription": "this.roleDescription", "attr.aria-keyshortcuts": "this.keyShortcuts", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.dir" } }, providers: [
|
|
2337
2359
|
LocalizationService,
|
|
2338
2360
|
PagerContextService,
|
|
2339
2361
|
PagerNavigationService,
|
|
@@ -2343,70 +2365,83 @@ class PagerComponent {
|
|
|
2343
2365
|
}
|
|
2344
2366
|
], queries: [{ propertyName: "template", predicate: PagerTemplateDirective }], viewQueries: [{ propertyName: "numericButtons", first: true, predicate: PagerNumericButtonsComponent, descendants: true, read: ElementRef }, { propertyName: "pagerInput", first: true, predicate: PagerInputComponent, descendants: true, read: ElementRef }, { propertyName: "pagerInputComponent", first: true, predicate: PagerInputComponent, descendants: true }, { propertyName: "pageSizes", first: true, predicate: PagerPageSizesComponent, descendants: true, read: ElementRef }, { propertyName: "pageSizesComponent", first: true, predicate: PagerPageSizesComponent, descendants: true }], exportAs: ["kendoDataPager", "kendoPager"], usesOnChanges: true, ngImport: i0, template: `
|
|
2345
2367
|
<ng-container kendoPagerLocalizedMessages
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2368
|
+
i18n-ariaLabel="kendo.pager.ariaLabel|The value of the aria-label attribute of the Pager"
|
|
2369
|
+
ariaLabel="{{ 'Page navigation, page {currentPage} of {totalPages}' }}"
|
|
2370
|
+
|
|
2371
|
+
i18n-firstPage="kendo.pager.firstPage|The label for the first page button in the Pager"
|
|
2372
|
+
firstPage="Go to the first page"
|
|
2373
|
+
|
|
2374
|
+
i18n-previousPage="kendo.pager.previousPage|The label for the previous page button in the Pager"
|
|
2375
|
+
previousPage="Go to the previous page"
|
|
2376
|
+
|
|
2377
|
+
i18n-nextPage="kendo.pager.nextPage|The label for the next page button in the Pager"
|
|
2378
|
+
nextPage="Go to the next page"
|
|
2379
|
+
|
|
2380
|
+
i18n-lastPage="kendo.pager.lastPage|The label for the last page button in the Pager"
|
|
2381
|
+
lastPage="Go to the last page"
|
|
2382
|
+
|
|
2383
|
+
i18n-page="kendo.pager.page|The label before the current page number in the Pager"
|
|
2384
|
+
page="Page"
|
|
2385
|
+
|
|
2386
|
+
i18n-of="kendo.pager.of|The label before the total pages number in the Pager"
|
|
2387
|
+
of="of"
|
|
2388
|
+
|
|
2389
|
+
i18n-pageNumberInputTitle="kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager"
|
|
2390
|
+
pageNumberInputTitle="Page Number"
|
|
2391
|
+
|
|
2392
|
+
i18n-items="kendo.pager.items|The label after the total pages number in the Pager"
|
|
2393
|
+
items="items"
|
|
2394
|
+
|
|
2395
|
+
i18n-itemsPerPage="kendo.pager.itemsPerPage|The label for the page size chooser in the Pager"
|
|
2396
|
+
itemsPerPage="items per page"
|
|
2397
|
+
|
|
2398
|
+
i18n-selectPage="kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager"
|
|
2399
|
+
selectPage="Select page"
|
|
2400
|
+
|
|
2401
|
+
i18n-inputLabel="kendo.pager.inputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
2402
|
+
inputLabel="Type a page number"
|
|
2403
|
+
>
|
|
2382
2404
|
</ng-container>
|
|
2383
|
-
|
|
2384
|
-
|
|
2405
|
+
@if (template.first?.templateRef) {
|
|
2406
|
+
<ng-container
|
|
2385
2407
|
[ngTemplateOutlet]="template.first?.templateRef"
|
|
2386
2408
|
[ngTemplateOutletContext]="templateContext">
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
</kendo-pager-numeric-buttons>
|
|
2396
|
-
<kendo-pager-input [size]="size" *ngIf="showInput"></kendo-pager-input>
|
|
2397
|
-
<kendo-pager-next-buttons [size]="size" *ngIf="previousNext"></kendo-pager-next-buttons>
|
|
2398
|
-
</div>
|
|
2399
|
-
<kendo-pager-page-sizes *ngIf="_pageSizeValues.length"
|
|
2400
|
-
[ngStyle]="{opacity: initialized ? null : '0'}"
|
|
2409
|
+
</ng-container>
|
|
2410
|
+
} @else {
|
|
2411
|
+
<div class="k-pager-numbers-wrap" [ngStyle]="{opacity: initialized ? null : '0'}">
|
|
2412
|
+
@if (previousNext) {
|
|
2413
|
+
<kendo-pager-prev-buttons [size]="size"></kendo-pager-prev-buttons>
|
|
2414
|
+
}
|
|
2415
|
+
@if (type === 'numeric' && buttonCount > 0) {
|
|
2416
|
+
<kendo-pager-numeric-buttons
|
|
2401
2417
|
[size]="size"
|
|
2402
|
-
[
|
|
2403
|
-
|
|
2418
|
+
[buttonCount]="buttonCount">
|
|
2419
|
+
</kendo-pager-numeric-buttons>
|
|
2420
|
+
}
|
|
2421
|
+
@if (showInput) {
|
|
2422
|
+
<kendo-pager-input [size]="size"></kendo-pager-input>
|
|
2423
|
+
}
|
|
2424
|
+
@if (previousNext) {
|
|
2425
|
+
<kendo-pager-next-buttons [size]="size"></kendo-pager-next-buttons>
|
|
2426
|
+
}
|
|
2427
|
+
</div>
|
|
2428
|
+
@if (_pageSizeValues.length) {
|
|
2429
|
+
<kendo-pager-page-sizes
|
|
2430
|
+
[ngStyle]="{opacity: initialized ? null : '0'}"
|
|
2431
|
+
[size]="size"
|
|
2432
|
+
[pageSizes]="_pageSizeValues"
|
|
2433
|
+
[adaptiveMode]="adaptiveMode">
|
|
2404
2434
|
</kendo-pager-page-sizes>
|
|
2405
|
-
|
|
2435
|
+
}
|
|
2436
|
+
@if (info) {
|
|
2437
|
+
<kendo-pager-info [ngStyle]="{opacity: initialized ? null : '0'}">
|
|
2406
2438
|
</kendo-pager-info>
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
@if (responsive) {
|
|
2442
|
+
<kendo-resize-sensor (resize)="resizeHandler()"></kendo-resize-sensor>
|
|
2443
|
+
}
|
|
2444
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoPagerLocalizedMessages]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PagerPrevButtonsComponent, selector: "kendo-datapager-prev-buttons, kendo-pager-prev-buttons", inputs: ["size"] }, { kind: "component", type: PagerNumericButtonsComponent, selector: "kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons", inputs: ["buttonCount", "size"] }, { kind: "component", type: PagerInputComponent, selector: "kendo-datapager-input, kendo-pager-input", inputs: ["showPageText", "size"] }, { kind: "component", type: PagerNextButtonsComponent, selector: "kendo-datapager-next-buttons, kendo-pager-next-buttons", inputs: ["size"] }, { kind: "component", type: PagerPageSizesComponent, selector: "kendo-datapager-page-sizes, kendo-pager-page-sizes", inputs: ["showItemsText", "pageSizes", "size", "adaptiveMode"] }, { kind: "component", type: PagerInfoComponent, selector: "kendo-datapager-info, kendo-pager-info" }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2410
2445
|
}
|
|
2411
2446
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerComponent, decorators: [{
|
|
2412
2447
|
type: Component,
|
|
@@ -2424,72 +2459,85 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2424
2459
|
],
|
|
2425
2460
|
template: `
|
|
2426
2461
|
<ng-container kendoPagerLocalizedMessages
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2462
|
+
i18n-ariaLabel="kendo.pager.ariaLabel|The value of the aria-label attribute of the Pager"
|
|
2463
|
+
ariaLabel="{{ 'Page navigation, page {currentPage} of {totalPages}' }}"
|
|
2464
|
+
|
|
2465
|
+
i18n-firstPage="kendo.pager.firstPage|The label for the first page button in the Pager"
|
|
2466
|
+
firstPage="Go to the first page"
|
|
2467
|
+
|
|
2468
|
+
i18n-previousPage="kendo.pager.previousPage|The label for the previous page button in the Pager"
|
|
2469
|
+
previousPage="Go to the previous page"
|
|
2470
|
+
|
|
2471
|
+
i18n-nextPage="kendo.pager.nextPage|The label for the next page button in the Pager"
|
|
2472
|
+
nextPage="Go to the next page"
|
|
2473
|
+
|
|
2474
|
+
i18n-lastPage="kendo.pager.lastPage|The label for the last page button in the Pager"
|
|
2475
|
+
lastPage="Go to the last page"
|
|
2476
|
+
|
|
2477
|
+
i18n-page="kendo.pager.page|The label before the current page number in the Pager"
|
|
2478
|
+
page="Page"
|
|
2479
|
+
|
|
2480
|
+
i18n-of="kendo.pager.of|The label before the total pages number in the Pager"
|
|
2481
|
+
of="of"
|
|
2482
|
+
|
|
2483
|
+
i18n-pageNumberInputTitle="kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager"
|
|
2484
|
+
pageNumberInputTitle="Page Number"
|
|
2485
|
+
|
|
2486
|
+
i18n-items="kendo.pager.items|The label after the total pages number in the Pager"
|
|
2487
|
+
items="items"
|
|
2488
|
+
|
|
2489
|
+
i18n-itemsPerPage="kendo.pager.itemsPerPage|The label for the page size chooser in the Pager"
|
|
2490
|
+
itemsPerPage="items per page"
|
|
2491
|
+
|
|
2492
|
+
i18n-selectPage="kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager"
|
|
2493
|
+
selectPage="Select page"
|
|
2494
|
+
|
|
2495
|
+
i18n-inputLabel="kendo.pager.inputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
2496
|
+
inputLabel="Type a page number"
|
|
2497
|
+
>
|
|
2463
2498
|
</ng-container>
|
|
2464
|
-
|
|
2465
|
-
|
|
2499
|
+
@if (template.first?.templateRef) {
|
|
2500
|
+
<ng-container
|
|
2466
2501
|
[ngTemplateOutlet]="template.first?.templateRef"
|
|
2467
2502
|
[ngTemplateOutletContext]="templateContext">
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
</kendo-pager-numeric-buttons>
|
|
2477
|
-
<kendo-pager-input [size]="size" *ngIf="showInput"></kendo-pager-input>
|
|
2478
|
-
<kendo-pager-next-buttons [size]="size" *ngIf="previousNext"></kendo-pager-next-buttons>
|
|
2479
|
-
</div>
|
|
2480
|
-
<kendo-pager-page-sizes *ngIf="_pageSizeValues.length"
|
|
2481
|
-
[ngStyle]="{opacity: initialized ? null : '0'}"
|
|
2503
|
+
</ng-container>
|
|
2504
|
+
} @else {
|
|
2505
|
+
<div class="k-pager-numbers-wrap" [ngStyle]="{opacity: initialized ? null : '0'}">
|
|
2506
|
+
@if (previousNext) {
|
|
2507
|
+
<kendo-pager-prev-buttons [size]="size"></kendo-pager-prev-buttons>
|
|
2508
|
+
}
|
|
2509
|
+
@if (type === 'numeric' && buttonCount > 0) {
|
|
2510
|
+
<kendo-pager-numeric-buttons
|
|
2482
2511
|
[size]="size"
|
|
2483
|
-
[
|
|
2484
|
-
|
|
2512
|
+
[buttonCount]="buttonCount">
|
|
2513
|
+
</kendo-pager-numeric-buttons>
|
|
2514
|
+
}
|
|
2515
|
+
@if (showInput) {
|
|
2516
|
+
<kendo-pager-input [size]="size"></kendo-pager-input>
|
|
2517
|
+
}
|
|
2518
|
+
@if (previousNext) {
|
|
2519
|
+
<kendo-pager-next-buttons [size]="size"></kendo-pager-next-buttons>
|
|
2520
|
+
}
|
|
2521
|
+
</div>
|
|
2522
|
+
@if (_pageSizeValues.length) {
|
|
2523
|
+
<kendo-pager-page-sizes
|
|
2524
|
+
[ngStyle]="{opacity: initialized ? null : '0'}"
|
|
2525
|
+
[size]="size"
|
|
2526
|
+
[pageSizes]="_pageSizeValues"
|
|
2527
|
+
[adaptiveMode]="adaptiveMode">
|
|
2485
2528
|
</kendo-pager-page-sizes>
|
|
2486
|
-
|
|
2529
|
+
}
|
|
2530
|
+
@if (info) {
|
|
2531
|
+
<kendo-pager-info [ngStyle]="{opacity: initialized ? null : '0'}">
|
|
2487
2532
|
</kendo-pager-info>
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
@if (responsive) {
|
|
2536
|
+
<kendo-resize-sensor (resize)="resizeHandler()"></kendo-resize-sensor>
|
|
2537
|
+
}
|
|
2538
|
+
`,
|
|
2491
2539
|
standalone: true,
|
|
2492
|
-
imports: [LocalizedMessagesDirective,
|
|
2540
|
+
imports: [LocalizedMessagesDirective, NgTemplateOutlet, PagerPrevButtonsComponent, PagerNumericButtonsComponent, PagerInputComponent, PagerNextButtonsComponent, PagerPageSizesComponent, PagerInfoComponent, ResizeSensorComponent, NgStyle]
|
|
2493
2541
|
}]
|
|
2494
2542
|
}], ctorParameters: () => [{ type: PagerContextService, decorators: [{
|
|
2495
2543
|
type: Optional
|