@progress/kendo-angular-pager 2.0.1 → 2.1.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.
Files changed (103) hide show
  1. package/dist/cdn/js/kendo-angular-pager.js +15 -15
  2. package/dist/cdn/main.js +2 -2
  3. package/dist/es/index.js +1 -1
  4. package/dist/es/main.js +1 -1
  5. package/dist/es/package-metadata.js +2 -2
  6. package/dist/es/pager/change-event-args.interface.js +1 -1
  7. package/dist/es/pager/common/constants.js +1 -1
  8. package/dist/es/pager/common/pager-type.js +1 -1
  9. package/dist/es/pager/localization/custom-messages.component.js +1 -1
  10. package/dist/es/pager/localization/localized-messages.directive.js +1 -1
  11. package/dist/es/pager/localization/messages.js +5 -1
  12. package/dist/es/pager/pager-context.service.js +1 -1
  13. package/dist/es/pager/pager-element.component.js +1 -1
  14. package/dist/es/pager/pager-info.component.js +1 -1
  15. package/dist/es/pager/pager-input.component.js +1 -1
  16. package/dist/es/pager/pager-next-buttons.component.js +1 -1
  17. package/dist/es/pager/pager-numeric-buttons.component.js +9 -2
  18. package/dist/es/pager/pager-page-sizes.component.js +1 -1
  19. package/dist/es/pager/pager-prev-buttons.component.js +1 -1
  20. package/dist/es/pager/pager-template.directive.js +1 -1
  21. package/dist/es/pager/pager.component.js +2 -2
  22. package/dist/es/pager/pager.module.js +1 -1
  23. package/dist/es/pager/pagesize-item.interface.js +1 -1
  24. package/dist/es/pager/pagesizechange-event.js +1 -1
  25. package/dist/es/pager/preventable-event.js +1 -1
  26. package/dist/es/util.js +1 -1
  27. package/dist/es2015/index.d.ts +1 -1
  28. package/dist/es2015/index.js +1 -1
  29. package/dist/es2015/index.metadata.json +1 -1
  30. package/dist/es2015/main.d.ts +1 -1
  31. package/dist/es2015/main.js +1 -1
  32. package/dist/es2015/package-metadata.d.ts +1 -1
  33. package/dist/es2015/package-metadata.js +2 -2
  34. package/dist/es2015/pager/change-event-args.interface.d.ts +1 -1
  35. package/dist/es2015/pager/change-event-args.interface.js +1 -1
  36. package/dist/es2015/pager/common/constants.d.ts +1 -1
  37. package/dist/es2015/pager/common/constants.js +1 -1
  38. package/dist/es2015/pager/common/pager-type.d.ts +1 -1
  39. package/dist/es2015/pager/common/pager-type.js +1 -1
  40. package/dist/es2015/pager/localization/custom-messages.component.d.ts +1 -1
  41. package/dist/es2015/pager/localization/custom-messages.component.js +1 -1
  42. package/dist/es2015/pager/localization/localized-messages.directive.d.ts +1 -1
  43. package/dist/es2015/pager/localization/localized-messages.directive.js +1 -1
  44. package/dist/es2015/pager/localization/messages.d.ts +5 -1
  45. package/dist/es2015/pager/localization/messages.js +5 -1
  46. package/dist/es2015/pager/pager-context.service.d.ts +1 -1
  47. package/dist/es2015/pager/pager-context.service.js +1 -1
  48. package/dist/es2015/pager/pager-element.component.d.ts +1 -1
  49. package/dist/es2015/pager/pager-element.component.js +1 -1
  50. package/dist/es2015/pager/pager-info.component.d.ts +1 -1
  51. package/dist/es2015/pager/pager-info.component.js +1 -1
  52. package/dist/es2015/pager/pager-input.component.d.ts +1 -1
  53. package/dist/es2015/pager/pager-input.component.js +1 -1
  54. package/dist/es2015/pager/pager-next-buttons.component.d.ts +1 -1
  55. package/dist/es2015/pager/pager-next-buttons.component.js +1 -1
  56. package/dist/es2015/pager/pager-numeric-buttons.component.d.ts +2 -1
  57. package/dist/es2015/pager/pager-numeric-buttons.component.js +6 -1
  58. package/dist/es2015/pager/pager-page-sizes.component.d.ts +1 -1
  59. package/dist/es2015/pager/pager-page-sizes.component.js +1 -1
  60. package/dist/es2015/pager/pager-prev-buttons.component.d.ts +1 -1
  61. package/dist/es2015/pager/pager-prev-buttons.component.js +1 -1
  62. package/dist/es2015/pager/pager-template.directive.d.ts +1 -1
  63. package/dist/es2015/pager/pager-template.directive.js +1 -1
  64. package/dist/es2015/pager/pager.component.d.ts +1 -1
  65. package/dist/es2015/pager/pager.component.js +4 -1
  66. package/dist/es2015/pager/pager.module.d.ts +1 -1
  67. package/dist/es2015/pager/pager.module.js +1 -1
  68. package/dist/es2015/pager/pagesize-item.interface.d.ts +1 -1
  69. package/dist/es2015/pager/pagesize-item.interface.js +1 -1
  70. package/dist/es2015/pager/pagesizechange-event.d.ts +1 -1
  71. package/dist/es2015/pager/pagesizechange-event.js +1 -1
  72. package/dist/es2015/pager/preventable-event.d.ts +1 -1
  73. package/dist/es2015/pager/preventable-event.js +1 -1
  74. package/dist/es2015/util.d.ts +1 -1
  75. package/dist/es2015/util.js +1 -1
  76. package/dist/fesm2015/index.js +14 -2
  77. package/dist/fesm5/index.js +15 -4
  78. package/dist/npm/index.js +1 -1
  79. package/dist/npm/main.js +1 -1
  80. package/dist/npm/package-metadata.js +2 -2
  81. package/dist/npm/pager/change-event-args.interface.js +1 -1
  82. package/dist/npm/pager/common/constants.js +1 -1
  83. package/dist/npm/pager/common/pager-type.js +1 -1
  84. package/dist/npm/pager/localization/custom-messages.component.js +1 -1
  85. package/dist/npm/pager/localization/localized-messages.directive.js +1 -1
  86. package/dist/npm/pager/localization/messages.js +5 -1
  87. package/dist/npm/pager/pager-context.service.js +1 -1
  88. package/dist/npm/pager/pager-element.component.js +1 -1
  89. package/dist/npm/pager/pager-info.component.js +1 -1
  90. package/dist/npm/pager/pager-input.component.js +1 -1
  91. package/dist/npm/pager/pager-next-buttons.component.js +1 -1
  92. package/dist/npm/pager/pager-numeric-buttons.component.js +9 -2
  93. package/dist/npm/pager/pager-page-sizes.component.js +1 -1
  94. package/dist/npm/pager/pager-prev-buttons.component.js +1 -1
  95. package/dist/npm/pager/pager-template.directive.js +1 -1
  96. package/dist/npm/pager/pager.component.js +2 -2
  97. package/dist/npm/pager/pager.module.js +1 -1
  98. package/dist/npm/pager/pagesize-item.interface.js +1 -1
  99. package/dist/npm/pager/pagesizechange-event.js +1 -1
  100. package/dist/npm/pager/preventable-event.js +1 -1
  101. package/dist/npm/util.js +1 -1
  102. package/dist/systemjs/kendo-angular-pager.js +2 -2
  103. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata, __param } from 'tslib';
@@ -93,6 +93,10 @@ __decorate([
93
93
  Input(),
94
94
  __metadata("design:type", String)
95
95
  ], Messages.prototype, "items", void 0);
96
+ __decorate([
97
+ Input(),
98
+ __metadata("design:type", String)
99
+ ], Messages.prototype, "selectPage", void 0);
96
100
 
97
101
  var CustomMessagesComponent_1;
98
102
  /**
@@ -628,6 +632,9 @@ let PagerNumericButtonsComponent = class PagerNumericButtonsComponent extends Pa
628
632
  this.pageSize = pageSize;
629
633
  this.cd.markForCheck();
630
634
  }
635
+ get pageChooserLabel() {
636
+ return this.textFor('selectPage');
637
+ }
631
638
  };
632
639
  __decorate([
633
640
  HostBinding('class.k-pager-numbers-wrap'),
@@ -644,6 +651,8 @@ PagerNumericButtonsComponent = __decorate([
644
651
  template: `
645
652
  <select
646
653
  class="k-dropdown"
654
+ [attr.title]="pageChooserLabel"
655
+ [attr.aria-label]="pageChooserLabel"
647
656
  [value]="(currentPage).toString()"
648
657
  (change)="onSelectChange($event)">
649
658
  <option *ngIf="start > 1"
@@ -939,7 +948,7 @@ const packageMetadata = {
939
948
  name: '@progress/kendo-angular-pager',
940
949
  productName: 'Kendo UI for Angular',
941
950
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
942
- publishDate: 1620216405,
951
+ publishDate: 1637670632,
943
952
  version: '',
944
953
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
945
954
  };
@@ -1202,6 +1211,9 @@ PagerComponent = __decorate([
1202
1211
 
1203
1212
  i18n-itemsPerPage="kendo.pager.itemsPerPage|The label for the page size chooser in the Pager"
1204
1213
  itemsPerPage="items per page"
1214
+
1215
+ i18n-selectPage="kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager"
1216
+ selectPage="Select page"
1205
1217
  >
1206
1218
  </ng-container>
1207
1219
  <ng-container
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __extends, __decorate, __metadata, __param } from 'tslib';
@@ -100,6 +100,10 @@ var Messages = /** @class */ (function (_super) {
100
100
  Input(),
101
101
  __metadata("design:type", String)
102
102
  ], Messages.prototype, "items", void 0);
103
+ __decorate([
104
+ Input(),
105
+ __metadata("design:type", String)
106
+ ], Messages.prototype, "selectPage", void 0);
103
107
  return Messages;
104
108
  }(ComponentMessages));
105
109
 
@@ -665,6 +669,13 @@ var PagerNumericButtonsComponent = /** @class */ (function (_super) {
665
669
  this.pageSize = pageSize;
666
670
  this.cd.markForCheck();
667
671
  };
672
+ Object.defineProperty(PagerNumericButtonsComponent.prototype, "pageChooserLabel", {
673
+ get: function () {
674
+ return this.textFor('selectPage');
675
+ },
676
+ enumerable: true,
677
+ configurable: true
678
+ });
668
679
  __decorate([
669
680
  HostBinding('class.k-pager-numbers-wrap'),
670
681
  __metadata("design:type", Boolean)
@@ -677,7 +688,7 @@ var PagerNumericButtonsComponent = /** @class */ (function (_super) {
677
688
  Component({
678
689
  changeDetection: ChangeDetectionStrategy.OnPush,
679
690
  selector: 'kendo-datapager-numeric-buttons',
680
- template: "\n <select\n class=\"k-dropdown\"\n [value]=\"(currentPage).toString()\"\n (change)=\"onSelectChange($event)\">\n <option *ngIf=\"start > 1\"\n class=\"k-link\"\n value=\"previousButtons\"\n [attr.aria-label]=\"pageLabel(start - 1)\">...\n </option>\n <option *ngFor=\"let num of buttons\"\n [value]=\"num.toString()\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\">\n {{num}}\n </option>\n <option *ngIf=\"end < totalPages\"\n value=\"nextButtons\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\">...\n </option>\n </select>\n <ul [ngClass]=\"{'k-pager-numbers': true, 'k-reset': true}\">\n <li *ngIf=\"start > 1\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(start - 1)\"\n (click)=\"changePage(start - 2)\">...</button>\n </li>\n <li *ngFor=\"let num of buttons\">\n <button\n type=\"button\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\"\n (click)=\"changePage(num - 1)\">\n {{num}}\n </button>\n </li>\n <li *ngIf=\"end < totalPages\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\"\n (click)=\"changePage(end)\">...</button>\n </li>\n </ul>\n "
691
+ template: "\n <select\n class=\"k-dropdown\"\n [attr.title]=\"pageChooserLabel\"\n [attr.aria-label]=\"pageChooserLabel\"\n [value]=\"(currentPage).toString()\"\n (change)=\"onSelectChange($event)\">\n <option *ngIf=\"start > 1\"\n class=\"k-link\"\n value=\"previousButtons\"\n [attr.aria-label]=\"pageLabel(start - 1)\">...\n </option>\n <option *ngFor=\"let num of buttons\"\n [value]=\"num.toString()\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\">\n {{num}}\n </option>\n <option *ngIf=\"end < totalPages\"\n value=\"nextButtons\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\">...\n </option>\n </select>\n <ul [ngClass]=\"{'k-pager-numbers': true, 'k-reset': true}\">\n <li *ngIf=\"start > 1\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(start - 1)\"\n (click)=\"changePage(start - 2)\">...</button>\n </li>\n <li *ngFor=\"let num of buttons\">\n <button\n type=\"button\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\"\n (click)=\"changePage(num - 1)\">\n {{num}}\n </button>\n </li>\n <li *ngIf=\"end < totalPages\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\"\n (click)=\"changePage(end)\">...</button>\n </li>\n </ul>\n "
681
692
  }),
682
693
  __metadata("design:paramtypes", [LocalizationService,
683
694
  ChangeDetectorRef,
@@ -922,7 +933,7 @@ var packageMetadata = {
922
933
  name: '@progress/kendo-angular-pager',
923
934
  productName: 'Kendo UI for Angular',
924
935
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
925
- publishDate: 1620216405,
936
+ publishDate: 1637670632,
926
937
  version: '',
927
938
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
928
939
  };
@@ -1179,7 +1190,7 @@ var PagerComponent = /** @class */ (function () {
1179
1190
  LocalizationService,
1180
1191
  PagerContextService
1181
1192
  ],
1182
- template: "\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage=\"kendo.pager.firstPage|The label for the first page button in the Pager\"\n firstPage=\"Go to the first page\"\n\n i18n-previousPage=\"kendo.pager.previousPage|The label for the previous page button in the Pager\"\n previousPage=\"Go to the previous page\"\n\n i18n-nextPage=\"kendo.pager.nextPage|The label for the next page button in the Pager\"\n nextPage=\"Go to the next page\"\n\n i18n-lastPage=\"kendo.pager.lastPage|The label for the last page button in the Pager\"\n lastPage=\"Go to the last page\"\n\n i18n-page=\"kendo.pager.page|The label before the current page number in the Pager\"\n page=\"Page\"\n\n i18n-of=\"kendo.pager.of|The label before the total pages number in the Pager\"\n of=\"of\"\n\n i18n-pageNumberInputTitle=\"kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager\"\n pageNumberInputTitle=\"Page Number\"\n\n i18n-items=\"kendo.pager.items|The label after the total pages number in the Pager\"\n items=\"items\"\n\n i18n-itemsPerPage=\"kendo.pager.itemsPerPage|The label for the page size chooser in the Pager\"\n itemsPerPage=\"items per page\"\n >\n </ng-container>\n <ng-container\n *ngIf=\"template?.templateRef\"\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"templateContext\">\n </ng-container>\n <ng-container *ngIf=\"!template?.templateRef\">\n <kendo-datapager-prev-buttons *ngIf=\"previousNext\"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf=\"type === 'numeric' && buttonCount > 0\"\n [buttonCount]=\"buttonCount\">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf=\"type === 'input'\"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf=\"previousNext\"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf='info'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf=\"pageSizeValues\" [pageSizes]=\"pageSizeValues\"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n "
1193
+ template: "\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage=\"kendo.pager.firstPage|The label for the first page button in the Pager\"\n firstPage=\"Go to the first page\"\n\n i18n-previousPage=\"kendo.pager.previousPage|The label for the previous page button in the Pager\"\n previousPage=\"Go to the previous page\"\n\n i18n-nextPage=\"kendo.pager.nextPage|The label for the next page button in the Pager\"\n nextPage=\"Go to the next page\"\n\n i18n-lastPage=\"kendo.pager.lastPage|The label for the last page button in the Pager\"\n lastPage=\"Go to the last page\"\n\n i18n-page=\"kendo.pager.page|The label before the current page number in the Pager\"\n page=\"Page\"\n\n i18n-of=\"kendo.pager.of|The label before the total pages number in the Pager\"\n of=\"of\"\n\n i18n-pageNumberInputTitle=\"kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager\"\n pageNumberInputTitle=\"Page Number\"\n\n i18n-items=\"kendo.pager.items|The label after the total pages number in the Pager\"\n items=\"items\"\n\n i18n-itemsPerPage=\"kendo.pager.itemsPerPage|The label for the page size chooser in the Pager\"\n itemsPerPage=\"items per page\"\n\n i18n-selectPage=\"kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager\"\n selectPage=\"Select page\"\n >\n </ng-container>\n <ng-container\n *ngIf=\"template?.templateRef\"\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"templateContext\">\n </ng-container>\n <ng-container *ngIf=\"!template?.templateRef\">\n <kendo-datapager-prev-buttons *ngIf=\"previousNext\"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf=\"type === 'numeric' && buttonCount > 0\"\n [buttonCount]=\"buttonCount\">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf=\"type === 'input'\"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf=\"previousNext\"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf='info'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf=\"pageSizeValues\" [pageSizes]=\"pageSizeValues\"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n "
1183
1194
  }),
1184
1195
  __metadata("design:paramtypes", [PagerContextService,
1185
1196
  ElementRef,
package/dist/npm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
package/dist/npm/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-pager',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1620216405,
14
+ publishDate: 1637670632,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -51,6 +51,10 @@ var Messages = /** @class */ (function (_super) {
51
51
  core_1.Input(),
52
52
  tslib_1.__metadata("design:type", String)
53
53
  ], Messages.prototype, "items", void 0);
54
+ tslib_1.__decorate([
55
+ core_1.Input(),
56
+ tslib_1.__metadata("design:type", String)
57
+ ], Messages.prototype, "selectPage", void 0);
54
58
  return Messages;
55
59
  }(kendo_angular_l10n_1.ComponentMessages));
56
60
  exports.Messages = Messages;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -99,6 +99,13 @@ var PagerNumericButtonsComponent = /** @class */ (function (_super) {
99
99
  this.pageSize = pageSize;
100
100
  this.cd.markForCheck();
101
101
  };
102
+ Object.defineProperty(PagerNumericButtonsComponent.prototype, "pageChooserLabel", {
103
+ get: function () {
104
+ return this.textFor('selectPage');
105
+ },
106
+ enumerable: true,
107
+ configurable: true
108
+ });
102
109
  tslib_1.__decorate([
103
110
  core_1.HostBinding('class.k-pager-numbers-wrap'),
104
111
  tslib_1.__metadata("design:type", Boolean)
@@ -111,7 +118,7 @@ var PagerNumericButtonsComponent = /** @class */ (function (_super) {
111
118
  core_1.Component({
112
119
  changeDetection: core_1.ChangeDetectionStrategy.OnPush,
113
120
  selector: 'kendo-datapager-numeric-buttons',
114
- template: "\n <select\n class=\"k-dropdown\"\n [value]=\"(currentPage).toString()\"\n (change)=\"onSelectChange($event)\">\n <option *ngIf=\"start > 1\"\n class=\"k-link\"\n value=\"previousButtons\"\n [attr.aria-label]=\"pageLabel(start - 1)\">...\n </option>\n <option *ngFor=\"let num of buttons\"\n [value]=\"num.toString()\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\">\n {{num}}\n </option>\n <option *ngIf=\"end < totalPages\"\n value=\"nextButtons\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\">...\n </option>\n </select>\n <ul [ngClass]=\"{'k-pager-numbers': true, 'k-reset': true}\">\n <li *ngIf=\"start > 1\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(start - 1)\"\n (click)=\"changePage(start - 2)\">...</button>\n </li>\n <li *ngFor=\"let num of buttons\">\n <button\n type=\"button\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\"\n (click)=\"changePage(num - 1)\">\n {{num}}\n </button>\n </li>\n <li *ngIf=\"end < totalPages\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\"\n (click)=\"changePage(end)\">...</button>\n </li>\n </ul>\n "
121
+ template: "\n <select\n class=\"k-dropdown\"\n [attr.title]=\"pageChooserLabel\"\n [attr.aria-label]=\"pageChooserLabel\"\n [value]=\"(currentPage).toString()\"\n (change)=\"onSelectChange($event)\">\n <option *ngIf=\"start > 1\"\n class=\"k-link\"\n value=\"previousButtons\"\n [attr.aria-label]=\"pageLabel(start - 1)\">...\n </option>\n <option *ngFor=\"let num of buttons\"\n [value]=\"num.toString()\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\">\n {{num}}\n </option>\n <option *ngIf=\"end < totalPages\"\n value=\"nextButtons\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\">...\n </option>\n </select>\n <ul [ngClass]=\"{'k-pager-numbers': true, 'k-reset': true}\">\n <li *ngIf=\"start > 1\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(start - 1)\"\n (click)=\"changePage(start - 2)\">...</button>\n </li>\n <li *ngFor=\"let num of buttons\">\n <button\n type=\"button\"\n [attr.aria-label]=\"pageLabel(num)\"\n [attr.aria-current]=\"currentPage == num ? 'page' : undefined\"\n [ngClass]=\"{'k-link': true, 'k-state-selected':currentPage == num}\"\n (click)=\"changePage(num - 1)\">\n {{num}}\n </button>\n </li>\n <li *ngIf=\"end < totalPages\">\n <button\n type=\"button\"\n class=\"k-link\"\n [attr.aria-label]=\"pageLabel(end + 1)\"\n (click)=\"changePage(end)\">...</button>\n </li>\n </ul>\n "
115
122
  }),
116
123
  tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
117
124
  core_1.ChangeDetectorRef,
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -267,7 +267,7 @@ var PagerComponent = /** @class */ (function () {
267
267
  kendo_angular_l10n_1.LocalizationService,
268
268
  pager_context_service_1.PagerContextService
269
269
  ],
270
- template: "\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage=\"kendo.pager.firstPage|The label for the first page button in the Pager\"\n firstPage=\"Go to the first page\"\n\n i18n-previousPage=\"kendo.pager.previousPage|The label for the previous page button in the Pager\"\n previousPage=\"Go to the previous page\"\n\n i18n-nextPage=\"kendo.pager.nextPage|The label for the next page button in the Pager\"\n nextPage=\"Go to the next page\"\n\n i18n-lastPage=\"kendo.pager.lastPage|The label for the last page button in the Pager\"\n lastPage=\"Go to the last page\"\n\n i18n-page=\"kendo.pager.page|The label before the current page number in the Pager\"\n page=\"Page\"\n\n i18n-of=\"kendo.pager.of|The label before the total pages number in the Pager\"\n of=\"of\"\n\n i18n-pageNumberInputTitle=\"kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager\"\n pageNumberInputTitle=\"Page Number\"\n\n i18n-items=\"kendo.pager.items|The label after the total pages number in the Pager\"\n items=\"items\"\n\n i18n-itemsPerPage=\"kendo.pager.itemsPerPage|The label for the page size chooser in the Pager\"\n itemsPerPage=\"items per page\"\n >\n </ng-container>\n <ng-container\n *ngIf=\"template?.templateRef\"\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"templateContext\">\n </ng-container>\n <ng-container *ngIf=\"!template?.templateRef\">\n <kendo-datapager-prev-buttons *ngIf=\"previousNext\"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf=\"type === 'numeric' && buttonCount > 0\"\n [buttonCount]=\"buttonCount\">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf=\"type === 'input'\"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf=\"previousNext\"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf='info'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf=\"pageSizeValues\" [pageSizes]=\"pageSizeValues\"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n "
270
+ template: "\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage=\"kendo.pager.firstPage|The label for the first page button in the Pager\"\n firstPage=\"Go to the first page\"\n\n i18n-previousPage=\"kendo.pager.previousPage|The label for the previous page button in the Pager\"\n previousPage=\"Go to the previous page\"\n\n i18n-nextPage=\"kendo.pager.nextPage|The label for the next page button in the Pager\"\n nextPage=\"Go to the next page\"\n\n i18n-lastPage=\"kendo.pager.lastPage|The label for the last page button in the Pager\"\n lastPage=\"Go to the last page\"\n\n i18n-page=\"kendo.pager.page|The label before the current page number in the Pager\"\n page=\"Page\"\n\n i18n-of=\"kendo.pager.of|The label before the total pages number in the Pager\"\n of=\"of\"\n\n i18n-pageNumberInputTitle=\"kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager\"\n pageNumberInputTitle=\"Page Number\"\n\n i18n-items=\"kendo.pager.items|The label after the total pages number in the Pager\"\n items=\"items\"\n\n i18n-itemsPerPage=\"kendo.pager.itemsPerPage|The label for the page size chooser in the Pager\"\n itemsPerPage=\"items per page\"\n\n i18n-selectPage=\"kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager\"\n selectPage=\"Select page\"\n >\n </ng-container>\n <ng-container\n *ngIf=\"template?.templateRef\"\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"templateContext\">\n </ng-container>\n <ng-container *ngIf=\"!template?.templateRef\">\n <kendo-datapager-prev-buttons *ngIf=\"previousNext\"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf=\"type === 'numeric' && buttonCount > 0\"\n [buttonCount]=\"buttonCount\">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf=\"type === 'input'\"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf=\"previousNext\"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf='info'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf=\"pageSizeValues\" [pageSizes]=\"pageSizeValues\"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n "
271
271
  }),
272
272
  tslib_1.__metadata("design:paramtypes", [pager_context_service_1.PagerContextService,
273
273
  core_1.ElementRef,
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
package/dist/npm/util.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";