@progress/kendo-angular-scrollview 19.3.0-develop.4 → 19.3.0-develop.40
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: 1754990993,
|
|
14
|
+
version: '19.3.0-develop.40',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -7,6 +7,7 @@ import { Component, Input, Output } from '@angular/core';
|
|
|
7
7
|
import { EventEmitter } from '@angular/core';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { NgFor, NgClass } from '@angular/common';
|
|
10
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
13
|
/**
|
|
@@ -30,10 +31,7 @@ export class ScrollViewPagerComponent {
|
|
|
30
31
|
}
|
|
31
32
|
pagerButtonLabel(itemIndex) {
|
|
32
33
|
const localizationMsg = this.localization.get('pagerButtonLabel') || '';
|
|
33
|
-
return
|
|
34
|
-
}
|
|
35
|
-
replaceMessagePlaceholder(message, name, value) {
|
|
36
|
-
return message.replace(new RegExp(`{\\s*${name}\\s*}`, 'g'), value);
|
|
34
|
+
return replaceMessagePlaceholder(localizationMsg, 'itemIndex', itemIndex.toString());
|
|
37
35
|
}
|
|
38
36
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewPagerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
37
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ScrollViewPagerComponent, isStandalone: true, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, Output, TemplateRef, NgZone, ViewChild, Renderer2 } from '@angular/core';
|
|
9
9
|
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
10
10
|
import { Dir } from './enums';
|
|
11
|
-
import { DraggableDirective, Keys } from '@progress/kendo-angular-common';
|
|
11
|
+
import { DraggableDirective, Keys, normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
12
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
13
|
import { packageMetadata } from './package-metadata';
|
|
14
14
|
import { DataCollection, DataResultIterator } from './data.collection';
|
|
@@ -341,7 +341,7 @@ export class ScrollViewComponent {
|
|
|
341
341
|
return !this.endless && isEndReached;
|
|
342
342
|
}
|
|
343
343
|
keyDown(e) {
|
|
344
|
-
const keyCode = e
|
|
344
|
+
const keyCode = normalizeNumpadKeys(e);
|
|
345
345
|
if (keyCode === Keys.ArrowLeft) {
|
|
346
346
|
if (this.isRTL) {
|
|
347
347
|
this.next();
|
|
@@ -356,7 +356,7 @@ export class ScrollViewComponent {
|
|
|
356
356
|
}
|
|
357
357
|
this.next();
|
|
358
358
|
}
|
|
359
|
-
if (this.arrows && keyCode === Keys.Space || keyCode === Keys.Enter) {
|
|
359
|
+
if (this.arrows && (keyCode === Keys.Space || keyCode === Keys.Enter)) {
|
|
360
360
|
const prevButton = this.prevButton?.nativeElement;
|
|
361
361
|
const nextButton = this.nextButton?.nativeElement;
|
|
362
362
|
const activeElement = document.activeElement;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Component, Input, Output, Directive, forwardRef, TemplateRef, ContentChild, ViewChild, HostBinding, NgModule } from '@angular/core';
|
|
7
7
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
8
|
-
import { Keys, DraggableDirective } from '@progress/kendo-angular-common';
|
|
8
|
+
import { replaceMessagePlaceholder, normalizeNumpadKeys, Keys, DraggableDirective } from '@progress/kendo-angular-common';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
@@ -31,8 +31,8 @@ const packageMetadata = {
|
|
|
31
31
|
productName: 'Kendo UI for Angular',
|
|
32
32
|
productCode: 'KENDOUIANGULAR',
|
|
33
33
|
productCodes: ['KENDOUIANGULAR'],
|
|
34
|
-
publishDate:
|
|
35
|
-
version: '19.3.0-develop.
|
|
34
|
+
publishDate: 1754990993,
|
|
35
|
+
version: '19.3.0-develop.40',
|
|
36
36
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -148,10 +148,7 @@ class ScrollViewPagerComponent {
|
|
|
148
148
|
}
|
|
149
149
|
pagerButtonLabel(itemIndex) {
|
|
150
150
|
const localizationMsg = this.localization.get('pagerButtonLabel') || '';
|
|
151
|
-
return
|
|
152
|
-
}
|
|
153
|
-
replaceMessagePlaceholder(message, name, value) {
|
|
154
|
-
return message.replace(new RegExp(`{\\s*${name}\\s*}`, 'g'), value);
|
|
151
|
+
return replaceMessagePlaceholder(localizationMsg, 'itemIndex', itemIndex.toString());
|
|
155
152
|
}
|
|
156
153
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewPagerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
157
154
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ScrollViewPagerComponent, isStandalone: true, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
@@ -562,7 +559,7 @@ class ScrollViewComponent {
|
|
|
562
559
|
return !this.endless && isEndReached;
|
|
563
560
|
}
|
|
564
561
|
keyDown(e) {
|
|
565
|
-
const keyCode = e
|
|
562
|
+
const keyCode = normalizeNumpadKeys(e);
|
|
566
563
|
if (keyCode === Keys.ArrowLeft) {
|
|
567
564
|
if (this.isRTL) {
|
|
568
565
|
this.next();
|
|
@@ -577,7 +574,7 @@ class ScrollViewComponent {
|
|
|
577
574
|
}
|
|
578
575
|
this.next();
|
|
579
576
|
}
|
|
580
|
-
if (this.arrows && keyCode === Keys.Space || keyCode === Keys.Enter) {
|
|
577
|
+
if (this.arrows && (keyCode === Keys.Space || keyCode === Keys.Enter)) {
|
|
581
578
|
const prevButton = this.prevButton?.nativeElement;
|
|
582
579
|
const nextButton = this.nextButton?.nativeElement;
|
|
583
580
|
const activeElement = document.activeElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scrollview",
|
|
3
|
-
"version": "19.3.0-develop.
|
|
3
|
+
"version": "19.3.0-develop.40",
|
|
4
4
|
"description": "A ScrollView Component for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1754990993,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"@angular/common": "16 - 20",
|
|
29
29
|
"@angular/core": "16 - 20",
|
|
30
30
|
"@angular/platform-browser": "16 - 20",
|
|
31
|
-
"@progress/kendo-licensing": "^1.
|
|
32
|
-
"@progress/kendo-angular-common": "19.3.0-develop.
|
|
33
|
-
"@progress/kendo-angular-l10n": "19.3.0-develop.
|
|
34
|
-
"@progress/kendo-angular-icons": "19.3.0-develop.
|
|
31
|
+
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
+
"@progress/kendo-angular-common": "19.3.0-develop.40",
|
|
33
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.40",
|
|
34
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.40",
|
|
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.40"
|
|
40
40
|
},
|
|
41
41
|
"schematics": "./schematics/collection.json",
|
|
42
42
|
"module": "fesm2022/progress-kendo-angular-scrollview.mjs",
|
|
@@ -17,7 +17,6 @@ export declare class ScrollViewPagerComponent {
|
|
|
17
17
|
itemClass(idx: number): any;
|
|
18
18
|
indexChange(selectedIndex: number): void;
|
|
19
19
|
pagerButtonLabel(itemIndex: number): string;
|
|
20
|
-
private replaceMessagePlaceholder;
|
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewPagerComponent, never>;
|
|
22
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewPagerComponent, "kendo-scrollview-pager", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "pagerIndexChange": "pagerIndexChange"; }, never, never, true, never>;
|
|
23
22
|
}
|