@progress/kendo-angular-pager 19.3.0-develop.3 → 19.3.0-develop.30
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.
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.3.0-develop.
|
|
13
|
+
publishDate: 1754574117,
|
|
14
|
+
version: '19.3.0-develop.30',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, EventEmitter, Output, HostBinding, ElementRef, Renderer2, NgZone, HostListener, ContentChildren, QueryList, Optional, SkipSelf, inject, ViewChild, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { PagerTemplateDirective } from "./pager-template.directive";
|
|
7
|
-
import { anyChanged, isChanged, isDocumentAvailable, Keys, ResizeSensorComponent } from "@progress/kendo-angular-common";
|
|
7
|
+
import { anyChanged, isChanged, isDocumentAvailable, Keys, replaceMessagePlaceholder, ResizeSensorComponent } from "@progress/kendo-angular-common";
|
|
8
8
|
import { PagerContextService } from "./pager-context.service";
|
|
9
9
|
import { Subscription } from "rxjs";
|
|
10
|
-
import { DEFAULT_PAGE_SIZE_VALUES, getStylingClasses, DEFAULT_SIZE,
|
|
10
|
+
import { DEFAULT_PAGE_SIZE_VALUES, getStylingClasses, DEFAULT_SIZE, calculatePadding, createMeasurementSpan, copyComputedStyles, positionOffScreen, getAllFocusableChildren } from '../util';
|
|
11
11
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
13
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -548,7 +548,14 @@ export class PagerComponent {
|
|
|
548
548
|
}
|
|
549
549
|
else if (isEnter) {
|
|
550
550
|
e.preventDefault();
|
|
551
|
-
|
|
551
|
+
let [firstFocusable] = this.navigationService.getFirstAndLastFocusable(wrapper);
|
|
552
|
+
if (firstFocusable.getAttribute('aria-disabled') === 'true') {
|
|
553
|
+
firstFocusable = Array.from(getAllFocusableChildren(wrapper)).find((el) => !el.getAttribute('aria-disabled'));
|
|
554
|
+
const input = firstFocusable.querySelector('input');
|
|
555
|
+
if (input) {
|
|
556
|
+
firstFocusable = input;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
552
559
|
this.navigationService.toggleInnerNavigation(true);
|
|
553
560
|
firstFocusable?.focus();
|
|
554
561
|
}
|
package/esm2022/util.mjs
CHANGED
|
@@ -61,10 +61,6 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`{\\s*${name}\\s*}`, 'g'), value);
|
|
68
64
|
/**
|
|
69
65
|
* @hidden
|
|
70
66
|
*/
|
|
@@ -8,7 +8,7 @@ import * as i1 from '@progress/kendo-angular-l10n';
|
|
|
8
8
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { Subject, Subscription } from 'rxjs';
|
|
10
10
|
import { caretAltLeftIcon, caretAltToLeftIcon, caretAltRightIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import { isDocumentAvailable, isFocusable, Keys, EventsOutsideAngularDirective, anyChanged, isChanged, ResizeSensorComponent, isPresent, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
11
|
+
import { isDocumentAvailable, isFocusable, Keys, EventsOutsideAngularDirective, anyChanged, isChanged, replaceMessagePlaceholder, 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
14
|
import { NgIf, NgFor, NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
@@ -433,10 +433,6 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
|
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
/**
|
|
437
|
-
* @hidden
|
|
438
|
-
*/
|
|
439
|
-
const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`{\\s*${name}\\s*}`, 'g'), value);
|
|
440
436
|
/**
|
|
441
437
|
* @hidden
|
|
442
438
|
*/
|
|
@@ -1513,8 +1509,8 @@ const packageMetadata = {
|
|
|
1513
1509
|
productName: 'Kendo UI for Angular',
|
|
1514
1510
|
productCode: 'KENDOUIANGULAR',
|
|
1515
1511
|
productCodes: ['KENDOUIANGULAR'],
|
|
1516
|
-
publishDate:
|
|
1517
|
-
version: '19.3.0-develop.
|
|
1512
|
+
publishDate: 1754574117,
|
|
1513
|
+
version: '19.3.0-develop.30',
|
|
1518
1514
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
1519
1515
|
};
|
|
1520
1516
|
|
|
@@ -2041,7 +2037,14 @@ class PagerComponent {
|
|
|
2041
2037
|
}
|
|
2042
2038
|
else if (isEnter) {
|
|
2043
2039
|
e.preventDefault();
|
|
2044
|
-
|
|
2040
|
+
let [firstFocusable] = this.navigationService.getFirstAndLastFocusable(wrapper);
|
|
2041
|
+
if (firstFocusable.getAttribute('aria-disabled') === 'true') {
|
|
2042
|
+
firstFocusable = Array.from(getAllFocusableChildren(wrapper)).find((el) => !el.getAttribute('aria-disabled'));
|
|
2043
|
+
const input = firstFocusable.querySelector('input');
|
|
2044
|
+
if (input) {
|
|
2045
|
+
firstFocusable = input;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2045
2048
|
this.navigationService.toggleInnerNavigation(true);
|
|
2046
2049
|
firstFocusable?.focus();
|
|
2047
2050
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-pager",
|
|
3
|
-
"version": "19.3.0-develop.
|
|
3
|
+
"version": "19.3.0-develop.30",
|
|
4
4
|
"description": "Kendo UI Angular Pager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"package": {
|
|
18
18
|
"productName": "Kendo UI for Angular",
|
|
19
19
|
"productCode": "KENDOUIANGULAR",
|
|
20
|
-
"publishDate":
|
|
20
|
+
"publishDate": 1754574117,
|
|
21
21
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"@angular/common": "16 - 20",
|
|
27
27
|
"@angular/core": "16 - 20",
|
|
28
28
|
"@angular/platform-browser": "16 - 20",
|
|
29
|
-
"@progress/kendo-licensing": "^1.
|
|
30
|
-
"@progress/kendo-angular-common": "19.3.0-develop.
|
|
31
|
-
"@progress/kendo-angular-dropdowns": "19.3.0-develop.
|
|
32
|
-
"@progress/kendo-angular-inputs": "19.3.0-develop.
|
|
33
|
-
"@progress/kendo-angular-icons": "19.3.0-develop.
|
|
34
|
-
"@progress/kendo-angular-l10n": "19.3.0-develop.
|
|
29
|
+
"@progress/kendo-licensing": "^1.7.0",
|
|
30
|
+
"@progress/kendo-angular-common": "19.3.0-develop.30",
|
|
31
|
+
"@progress/kendo-angular-dropdowns": "19.3.0-develop.30",
|
|
32
|
+
"@progress/kendo-angular-inputs": "19.3.0-develop.30",
|
|
33
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.30",
|
|
34
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.30",
|
|
35
35
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"tslib": "^2.3.1",
|
|
39
|
-
"@progress/kendo-angular-schematics": "19.3.0-develop.
|
|
39
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.30"
|
|
40
40
|
},
|
|
41
41
|
"schematics": "./schematics/collection.json",
|
|
42
42
|
"module": "fesm2022/progress-kendo-angular-pager.mjs",
|
|
@@ -4,14 +4,14 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PagerModule', package: 'pager', peerDependencies: {
|
|
6
6
|
// Peers of inputs and dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '19.3.0-develop.
|
|
8
|
-
'@progress/kendo-angular-intl': '19.3.0-develop.
|
|
9
|
-
'@progress/kendo-angular-navigation': '19.3.0-develop.
|
|
10
|
-
'@progress/kendo-angular-popup': '19.3.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '19.3.0-develop.30',
|
|
8
|
+
'@progress/kendo-angular-intl': '19.3.0-develop.30',
|
|
9
|
+
'@progress/kendo-angular-navigation': '19.3.0-develop.30',
|
|
10
|
+
'@progress/kendo-angular-popup': '19.3.0-develop.30',
|
|
11
11
|
'@progress/kendo-drawing': '^1.5.12',
|
|
12
12
|
// peer dependency of kendo-angular-inputs
|
|
13
|
-
'@progress/kendo-angular-buttons': '19.3.0-develop.
|
|
14
|
-
'@progress/kendo-angular-dialog': '19.3.0-develop.
|
|
13
|
+
'@progress/kendo-angular-buttons': '19.3.0-develop.30',
|
|
14
|
+
'@progress/kendo-angular-dialog': '19.3.0-develop.30',
|
|
15
15
|
// Peer dependency of icons
|
|
16
16
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
17
17
|
} });
|
package/util.d.ts
CHANGED
|
@@ -28,10 +28,6 @@ export declare const DEFAULT_SIZE: PagerSize;
|
|
|
28
28
|
* Returns the styling classes to be added and removed
|
|
29
29
|
*/
|
|
30
30
|
export declare const getStylingClasses: (componentType: any, stylingOption: string, previousValue: any, newValue: any) => PagerStylingClasses;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare const replaceMessagePlaceholder: (message: string, name: string, value: string) => string;
|
|
35
31
|
/**
|
|
36
32
|
* Specifies the adaptive rendering of the component.
|
|
37
33
|
*
|