@progress/kendo-angular-pager 21.4.1-develop.1 → 22.0.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.
Files changed (35) hide show
  1. package/fesm2022/progress-kendo-angular-pager.mjs +49 -49
  2. package/package.json +12 -20
  3. package/pager/localization/messages.d.ts +1 -1
  4. package/pager/pager-element.component.d.ts +1 -1
  5. package/schematics/ngAdd/index.js +6 -6
  6. package/esm2022/directives.mjs +0 -45
  7. package/esm2022/index.mjs +0 -21
  8. package/esm2022/package-metadata.mjs +0 -16
  9. package/esm2022/pager/change-event-args.interface.mjs +0 -5
  10. package/esm2022/pager/common/pager-classes.mjs +0 -5
  11. package/esm2022/pager/common/pager-size.mjs +0 -5
  12. package/esm2022/pager/common/pager-type.mjs +0 -5
  13. package/esm2022/pager/common/responsive-element.mjs +0 -5
  14. package/esm2022/pager/focusable.directive.mjs +0 -68
  15. package/esm2022/pager/localization/custom-messages.component.mjs +0 -55
  16. package/esm2022/pager/localization/localized-messages.directive.mjs +0 -39
  17. package/esm2022/pager/localization/messages.mjs +0 -100
  18. package/esm2022/pager/navigation.service.mjs +0 -39
  19. package/esm2022/pager/pager-context.service.mjs +0 -46
  20. package/esm2022/pager/pager-element.component.mjs +0 -113
  21. package/esm2022/pager/pager-info.component.mjs +0 -79
  22. package/esm2022/pager/pager-input.component.mjs +0 -177
  23. package/esm2022/pager/pager-next-buttons.component.mjs +0 -136
  24. package/esm2022/pager/pager-numeric-buttons.component.mjs +0 -257
  25. package/esm2022/pager/pager-page-sizes.component.mjs +0 -197
  26. package/esm2022/pager/pager-prev-buttons.component.mjs +0 -140
  27. package/esm2022/pager/pager-template.directive.mjs +0 -45
  28. package/esm2022/pager/pager.component.mjs +0 -1104
  29. package/esm2022/pager/pager.module.mjs +0 -65
  30. package/esm2022/pager/pagesize-item.interface.mjs +0 -5
  31. package/esm2022/pager/pagesizechange-event.mjs +0 -24
  32. package/esm2022/pager/preventable-event.mjs +0 -25
  33. package/esm2022/pager/spacer.component.mjs +0 -70
  34. package/esm2022/progress-kendo-angular-pager.mjs +0 -8
  35. package/esm2022/util.mjs +0 -124
@@ -1,65 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from '@angular/core';
6
- import { ResizeBatchService } from '@progress/kendo-angular-common';
7
- import { KENDO_PAGER } from '../directives';
8
- import { IconsService } from '@progress/kendo-angular-icons';
9
- import { PopupService } from '@progress/kendo-angular-popup';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "./localization/custom-messages.component";
12
- import * as i2 from "./focusable.directive";
13
- import * as i3 from "./pager-info.component";
14
- import * as i4 from "./pager-input.component";
15
- import * as i5 from "./pager-next-buttons.component";
16
- import * as i6 from "./pager-numeric-buttons.component";
17
- import * as i7 from "./pager-page-sizes.component";
18
- import * as i8 from "./pager-prev-buttons.component";
19
- import * as i9 from "./pager-template.directive";
20
- import * as i10 from "./pager.component";
21
- import * as i11 from "./spacer.component";
22
- //IMPORTANT: NgModule export kept for backwards compatibility
23
- /**
24
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
25
- * definition for the Pager component. Imports `PagerModule` into the
26
- * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity)
27
- * of your application or into any other sub-module that will use the Pager component.
28
- *
29
- * @example
30
- * ```ts-no-run
31
- * import { NgModule } from '@angular/core';
32
- * import { BrowserModule } from '@angular/platform-browser';
33
- * import { PagerModule } from '@progress/kendo-angular-pager';
34
- * import { AppComponent } from './app.component';
35
- *
36
- * _@NgModule({
37
- * bootstrap: [AppComponent],
38
- * declarations: [AppComponent],
39
- * imports: [BrowserModule, PagerModule]
40
- * })
41
- * export class AppModule {
42
- * }
43
- * ```
44
- */
45
- export class PagerModule {
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: PagerModule, imports: [i1.CustomMessagesComponent, i2.PagerFocusableDirective, i3.PagerInfoComponent, i4.PagerInputComponent, i5.PagerNextButtonsComponent, i6.PagerNumericButtonsComponent, i7.PagerPageSizesComponent, i8.PagerPrevButtonsComponent, i9.PagerTemplateDirective, i10.PagerComponent, i11.PagerSpacerComponent], exports: [i1.CustomMessagesComponent, i2.PagerFocusableDirective, i3.PagerInfoComponent, i4.PagerInputComponent, i5.PagerNextButtonsComponent, i6.PagerNumericButtonsComponent, i7.PagerPageSizesComponent, i8.PagerPrevButtonsComponent, i9.PagerTemplateDirective, i10.PagerComponent, i11.PagerSpacerComponent] });
48
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerModule, providers: [
49
- IconsService,
50
- PopupService,
51
- ResizeBatchService
52
- ], imports: [i4.PagerInputComponent, i5.PagerNextButtonsComponent, i6.PagerNumericButtonsComponent, i7.PagerPageSizesComponent, i8.PagerPrevButtonsComponent, i10.PagerComponent] });
53
- }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerModule, decorators: [{
55
- type: NgModule,
56
- args: [{
57
- exports: [...KENDO_PAGER],
58
- imports: [...KENDO_PAGER],
59
- providers: [
60
- IconsService,
61
- PopupService,
62
- ResizeBatchService
63
- ]
64
- }]
65
- }] });
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from './preventable-event';
6
- /**
7
- * Represents the arguments for the `pageSizeChange` event. The `pageSizeChange` event fires when you change the page size
8
- * from the UI. If you cancel the event, the change does not occur.
9
- */
10
- export class PageSizeChangeEvent extends PreventableEvent {
11
- /**
12
- * Gets the newly selected page size.
13
- */
14
- newPageSize;
15
- /**
16
- * Constructs the event arguments for the `pageSizeChange` event.
17
- * @param newPageSize - The newly selected page size.
18
- * @hidden
19
- */
20
- constructor(newPageSize) {
21
- super();
22
- this.newPageSize = newPageSize;
23
- }
24
- }
@@ -1,25 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export class PreventableEvent {
9
- prevented = false;
10
- /**
11
- * Prevents the default action for a specified event.
12
- * In this way, the source component suppresses the built-in behavior that follows the event.
13
- */
14
- preventDefault() {
15
- this.prevented = true;
16
- }
17
- /**
18
- * If the event is prevented by any of its subscribers, returns `true`.
19
- *
20
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
21
- */
22
- isDefaultPrevented() {
23
- return this.prevented;
24
- }
25
- }
@@ -1,70 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostBinding, Input } from '@angular/core';
6
- import { isPresent } from '@progress/kendo-angular-common';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Represents the Kendo UI Pager Spacer component for Angular.
10
- * Gives you additional white space between the Pager inner elements,
11
- * and provides a way for customizing the spacer width.
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-pager [skip]="skip" [pageSize]="pageSize" [total]="total">
16
- * <ng-template kendoPagerTemplate>
17
- * <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
18
- * <kendo-pager-info></kendo-pager-info>
19
- * <kendo-pager-spacer></kendo-pager-spacer>
20
- * <kendo-pager-next-buttons></kendo-pager-next-buttons>
21
- * </ng-template>
22
- * </kendo-pager>
23
- * ```
24
- */
25
- export class PagerSpacerComponent {
26
- /**
27
- * Gets the CSS class for the spacer.
28
- */
29
- hostClass = true;
30
- /**
31
- * Gets the CSS class for sized spacers.
32
- */
33
- get sizedClass() {
34
- return isPresent(this.width);
35
- }
36
- /**
37
- * Gets the flex-basis style for the spacer width.
38
- */
39
- get flexBasisStyle() {
40
- return this.width;
41
- }
42
- /**
43
- * Specifies the width of the `PagerSpacer` component.
44
- * Accepts the [string values of the CSS `flex-basis` property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis).
45
- *
46
- * If you do not set this property, the `PagerSpacer` takes all the available space.
47
- */
48
- width;
49
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: PagerSpacerComponent, isStandalone: true, selector: "kendo-pager-spacer", inputs: { width: "width" }, host: { properties: { "class.k-spacer": "this.hostClass", "class.k-spacer-sized": "this.sizedClass", "style.flexBasis": "this.flexBasisStyle" } }, ngImport: i0, template: ``, isInline: true });
51
- }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PagerSpacerComponent, decorators: [{
53
- type: Component,
54
- args: [{
55
- selector: 'kendo-pager-spacer',
56
- template: ``,
57
- standalone: true
58
- }]
59
- }], propDecorators: { hostClass: [{
60
- type: HostBinding,
61
- args: ['class.k-spacer']
62
- }], sizedClass: [{
63
- type: HostBinding,
64
- args: ['class.k-spacer-sized']
65
- }], flexBasisStyle: [{
66
- type: HostBinding,
67
- args: ['style.flexBasis']
68
- }], width: [{
69
- type: Input
70
- }] } });
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './index';
package/esm2022/util.mjs DELETED
@@ -1,124 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { isDocumentAvailable, isVisible } from "@progress/kendo-angular-common";
6
- /**
7
- * @hidden
8
- */
9
- export const DEFAULT_PAGE_SIZE_VALUES = [5, 10, 20].map(n => ({
10
- text: String(n),
11
- value: n
12
- }));
13
- /**
14
- * @hidden
15
- */
16
- const focusableDirectiveSelector = '[kendoPagerFocusable]';
17
- /**
18
- * @hidden
19
- */
20
- export const getAllFocusableChildren = (parent) => {
21
- return Array.from(parent.querySelectorAll(focusableDirectiveSelector))?.filter(isVisible);
22
- };
23
- /**
24
- * @hidden
25
- */
26
- export const focusableSelector = [
27
- 'a[href]:not([disabled]):not([aria-hidden="true"])',
28
- 'area[href]:not([disabled]):not([aria-hidden="true"])',
29
- 'input:not([disabled]):not([aria-hidden="true"])',
30
- 'select:not([disabled]):not([aria-hidden="true"])',
31
- 'textarea:not([disabled]):not([aria-hidden="true"])',
32
- 'button:not([aria-hidden="true"])',
33
- 'iframe:not([disabled])',
34
- 'object:not([disabled])',
35
- 'embed:not([disabled])',
36
- '*[tabindex]:not([disabled]):not([aria-hidden="true"])',
37
- '*[contenteditable]:not([disabled]):not([contenteditable="false"])'
38
- ].join(',');
39
- /**
40
- * @hidden
41
- */
42
- export const DEFAULT_SIZE = 'medium';
43
- const SIZES = {
44
- small: 'sm',
45
- medium: 'md',
46
- large: 'lg'
47
- };
48
- /**
49
- * @hidden
50
- *
51
- * Returns the styling classes to be added and removed
52
- */
53
- export const getStylingClasses = (componentType, stylingOption, previousValue, newValue) => {
54
- switch (stylingOption) {
55
- case 'size':
56
- return {
57
- toRemove: `k-${componentType}-${SIZES[previousValue]}`,
58
- toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
59
- };
60
- default:
61
- break;
62
- }
63
- };
64
- /**
65
- * @hidden
66
- */
67
- export const calculatePadding = (element) => {
68
- if (!element || !isDocumentAvailable()) {
69
- return { padding: 0, gapNumbersSizes: 0, gapSizesInfo: 0 };
70
- }
71
- const computedStyle = window.getComputedStyle(element);
72
- const paddingLeft = parseInt(computedStyle.paddingLeft, 10) || 0;
73
- const paddingRight = parseInt(computedStyle.paddingRight, 10) || 0;
74
- const padding = (paddingLeft + paddingRight) * 1.2; // account for rounding errors
75
- const style = getComputedStyle(document.documentElement);
76
- const gapNumbersSizes = 2 * (parseFloat(style.getPropertyValue('--kendo-spacing-3\\.5') || '0.875rem') * (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16)); // convert rem to px
77
- const gapSizesInfo = gapNumbersSizes;
78
- return { padding, gapNumbersSizes, gapSizesInfo };
79
- };
80
- /**
81
- * @hidden
82
- */
83
- export const calculateGap = (element) => {
84
- if (!element || !isDocumentAvailable()) {
85
- return 0;
86
- }
87
- const computedStyle = window.getComputedStyle(element);
88
- return parseFloat(computedStyle.gap) || 0;
89
- };
90
- /**
91
- * @hidden
92
- */
93
- export const createMeasurementSpan = (renderer, container, className) => {
94
- const span = renderer.createElement('span');
95
- renderer.appendChild(container, span);
96
- renderer.addClass(span, className);
97
- return span;
98
- };
99
- /**
100
- * @hidden
101
- */
102
- export const copyComputedStyles = (renderer, source, destination) => {
103
- const computedStyle = getComputedStyle(source);
104
- const importantStyles = [
105
- 'font-family', 'font-size', 'font-weight', 'font-style',
106
- 'letter-spacing', 'text-transform', 'white-space', 'word-spacing',
107
- 'padding-left', 'padding-right', 'margin-left', 'margin-right',
108
- 'border-left-width', 'border-right-width', 'box-sizing'
109
- ];
110
- importantStyles.forEach(style => {
111
- renderer.setStyle(destination, style, computedStyle.getPropertyValue(style));
112
- });
113
- };
114
- /**
115
- *
116
- * @hidden
117
- */
118
- export const positionOffScreen = (renderer, element) => {
119
- renderer.setStyle(element, 'position', 'absolute');
120
- renderer.setStyle(element, 'visibility', 'hidden');
121
- renderer.setStyle(element, 'left', '-9999px');
122
- renderer.setStyle(element, 'top', '-9999px');
123
- renderer.setStyle(element, 'display', 'flex');
124
- };