@progress/kendo-angular-grid 15.4.0-develop.4 → 15.4.0-develop.5
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/esm2020/navigation/navigation.service.mjs +11 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/rendering/list.component.mjs +1 -1
- package/fesm2015/progress-kendo-angular-grid.mjs +14 -3
- package/fesm2020/progress-kendo-angular-grid.mjs +14 -3
- package/package.json +17 -17
- package/schematics/ngAdd/index.js +3 -3
|
@@ -290,6 +290,17 @@ export class NavigationService {
|
|
|
290
290
|
}
|
|
291
291
|
setColumnViewport(firstItemIndex, lastItemIndex) {
|
|
292
292
|
this.columnViewport = new NavigationViewport(firstItemIndex, lastItemIndex);
|
|
293
|
+
if (this.meta && this.meta.isVirtual && this.activeDataRow > -1) {
|
|
294
|
+
const activeColumnIndex = this.cursor.cell ? this.cursor.cell.colIndex : 0;
|
|
295
|
+
const ahead = firstItemIndex - activeColumnIndex;
|
|
296
|
+
const behind = activeColumnIndex - lastItemIndex;
|
|
297
|
+
if (ahead > 0) {
|
|
298
|
+
this.cursor.reset(undefined, firstItemIndex, false);
|
|
299
|
+
}
|
|
300
|
+
else if (behind > 0) {
|
|
301
|
+
this.cursor.reset(undefined, lastItemIndex, false);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
293
304
|
}
|
|
294
305
|
focusCell(rowIndex = undefined, colIndex = undefined) {
|
|
295
306
|
this.mode = 1 /* Cursor */;
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-grid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '15.4.0-develop.
|
|
12
|
+
publishDate: 1711962732,
|
|
13
|
+
version: '15.4.0-develop.5',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -300,7 +300,7 @@ export class ListComponent {
|
|
|
300
300
|
this.subscriptions.add(fromEvent(this.container.nativeElement, 'scroll').pipe(map((event) => event.target), filter(() => !this.suspendService.scroll), tap((target) => {
|
|
301
301
|
this.onContainerScroll(target);
|
|
302
302
|
this.resetNavigationViewport();
|
|
303
|
-
if (this.virtualColumns) {
|
|
303
|
+
if (this.virtualColumns || this.isVirtual) {
|
|
304
304
|
this.handleColumnScroll();
|
|
305
305
|
}
|
|
306
306
|
const rowViewport = this.navigationService.viewport || EMPTY_OBJECT;
|
|
@@ -3384,6 +3384,17 @@ class NavigationService {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
setColumnViewport(firstItemIndex, lastItemIndex) {
|
|
3386
3386
|
this.columnViewport = new NavigationViewport(firstItemIndex, lastItemIndex);
|
|
3387
|
+
if (this.meta && this.meta.isVirtual && this.activeDataRow > -1) {
|
|
3388
|
+
const activeColumnIndex = this.cursor.cell ? this.cursor.cell.colIndex : 0;
|
|
3389
|
+
const ahead = firstItemIndex - activeColumnIndex;
|
|
3390
|
+
const behind = activeColumnIndex - lastItemIndex;
|
|
3391
|
+
if (ahead > 0) {
|
|
3392
|
+
this.cursor.reset(undefined, firstItemIndex, false);
|
|
3393
|
+
}
|
|
3394
|
+
else if (behind > 0) {
|
|
3395
|
+
this.cursor.reset(undefined, lastItemIndex, false);
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3387
3398
|
}
|
|
3388
3399
|
focusCell(rowIndex = undefined, colIndex = undefined) {
|
|
3389
3400
|
this.mode = 1 /* Cursor */;
|
|
@@ -4571,8 +4582,8 @@ const packageMetadata = {
|
|
|
4571
4582
|
name: '@progress/kendo-angular-grid',
|
|
4572
4583
|
productName: 'Kendo UI for Angular',
|
|
4573
4584
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
4574
|
-
publishDate:
|
|
4575
|
-
version: '15.4.0-develop.
|
|
4585
|
+
publishDate: 1711962732,
|
|
4586
|
+
version: '15.4.0-develop.5',
|
|
4576
4587
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
4577
4588
|
};
|
|
4578
4589
|
|
|
@@ -19052,7 +19063,7 @@ class ListComponent {
|
|
|
19052
19063
|
this.subscriptions.add(fromEvent(this.container.nativeElement, 'scroll').pipe(map((event) => event.target), filter(() => !this.suspendService.scroll), tap((target) => {
|
|
19053
19064
|
this.onContainerScroll(target);
|
|
19054
19065
|
this.resetNavigationViewport();
|
|
19055
|
-
if (this.virtualColumns) {
|
|
19066
|
+
if (this.virtualColumns || this.isVirtual) {
|
|
19056
19067
|
this.handleColumnScroll();
|
|
19057
19068
|
}
|
|
19058
19069
|
const rowViewport = this.navigationService.viewport || EMPTY_OBJECT;
|
|
@@ -1794,6 +1794,17 @@ class NavigationService {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
setColumnViewport(firstItemIndex, lastItemIndex) {
|
|
1796
1796
|
this.columnViewport = new NavigationViewport(firstItemIndex, lastItemIndex);
|
|
1797
|
+
if (this.meta && this.meta.isVirtual && this.activeDataRow > -1) {
|
|
1798
|
+
const activeColumnIndex = this.cursor.cell ? this.cursor.cell.colIndex : 0;
|
|
1799
|
+
const ahead = firstItemIndex - activeColumnIndex;
|
|
1800
|
+
const behind = activeColumnIndex - lastItemIndex;
|
|
1801
|
+
if (ahead > 0) {
|
|
1802
|
+
this.cursor.reset(undefined, firstItemIndex, false);
|
|
1803
|
+
}
|
|
1804
|
+
else if (behind > 0) {
|
|
1805
|
+
this.cursor.reset(undefined, lastItemIndex, false);
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1797
1808
|
}
|
|
1798
1809
|
focusCell(rowIndex = undefined, colIndex = undefined) {
|
|
1799
1810
|
this.mode = 1 /* Cursor */;
|
|
@@ -4539,8 +4550,8 @@ const packageMetadata = {
|
|
|
4539
4550
|
name: '@progress/kendo-angular-grid',
|
|
4540
4551
|
productName: 'Kendo UI for Angular',
|
|
4541
4552
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
4542
|
-
publishDate:
|
|
4543
|
-
version: '15.4.0-develop.
|
|
4553
|
+
publishDate: 1711962732,
|
|
4554
|
+
version: '15.4.0-develop.5',
|
|
4544
4555
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
4545
4556
|
};
|
|
4546
4557
|
|
|
@@ -18968,7 +18979,7 @@ class ListComponent {
|
|
|
18968
18979
|
this.subscriptions.add(fromEvent(this.container.nativeElement, 'scroll').pipe(map((event) => event.target), filter(() => !this.suspendService.scroll), tap((target) => {
|
|
18969
18980
|
this.onContainerScroll(target);
|
|
18970
18981
|
this.resetNavigationViewport();
|
|
18971
|
-
if (this.virtualColumns) {
|
|
18982
|
+
if (this.virtualColumns || this.isVirtual) {
|
|
18972
18983
|
this.handleColumnScroll();
|
|
18973
18984
|
}
|
|
18974
18985
|
const rowViewport = this.navigationService.viewport || EMPTY_OBJECT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "15.4.0-develop.
|
|
3
|
+
"version": "15.4.0-develop.5",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
"@progress/kendo-data-query": "^1.0.0",
|
|
34
34
|
"@progress/kendo-drawing": "^1.19.0",
|
|
35
35
|
"@progress/kendo-licensing": "^1.0.2",
|
|
36
|
-
"@progress/kendo-angular-buttons": "15.4.0-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "15.4.0-develop.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "15.4.0-develop.
|
|
39
|
-
"@progress/kendo-angular-layout": "15.4.0-develop.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "15.4.0-develop.
|
|
41
|
-
"@progress/kendo-angular-excel-export": "15.4.0-develop.
|
|
42
|
-
"@progress/kendo-angular-icons": "15.4.0-develop.
|
|
43
|
-
"@progress/kendo-angular-inputs": "15.4.0-develop.
|
|
44
|
-
"@progress/kendo-angular-intl": "15.4.0-develop.
|
|
45
|
-
"@progress/kendo-angular-l10n": "15.4.0-develop.
|
|
46
|
-
"@progress/kendo-angular-label": "15.4.0-develop.
|
|
47
|
-
"@progress/kendo-angular-pdf-export": "15.4.0-develop.
|
|
48
|
-
"@progress/kendo-angular-popup": "15.4.0-develop.
|
|
49
|
-
"@progress/kendo-angular-utils": "15.4.0-develop.
|
|
36
|
+
"@progress/kendo-angular-buttons": "15.4.0-develop.5",
|
|
37
|
+
"@progress/kendo-angular-common": "15.4.0-develop.5",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "15.4.0-develop.5",
|
|
39
|
+
"@progress/kendo-angular-layout": "15.4.0-develop.5",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "15.4.0-develop.5",
|
|
41
|
+
"@progress/kendo-angular-excel-export": "15.4.0-develop.5",
|
|
42
|
+
"@progress/kendo-angular-icons": "15.4.0-develop.5",
|
|
43
|
+
"@progress/kendo-angular-inputs": "15.4.0-develop.5",
|
|
44
|
+
"@progress/kendo-angular-intl": "15.4.0-develop.5",
|
|
45
|
+
"@progress/kendo-angular-l10n": "15.4.0-develop.5",
|
|
46
|
+
"@progress/kendo-angular-label": "15.4.0-develop.5",
|
|
47
|
+
"@progress/kendo-angular-pdf-export": "15.4.0-develop.5",
|
|
48
|
+
"@progress/kendo-angular-popup": "15.4.0-develop.5",
|
|
49
|
+
"@progress/kendo-angular-utils": "15.4.0-develop.5",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.0.0",
|
|
51
|
-
"@progress/kendo-angular-spreadsheet": "15.4.0-develop.
|
|
51
|
+
"@progress/kendo-angular-spreadsheet": "15.4.0-develop.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1",
|
|
55
|
-
"@progress/kendo-angular-schematics": "15.4.0-develop.
|
|
55
|
+
"@progress/kendo-angular-schematics": "15.4.0-develop.5",
|
|
56
56
|
"@progress/kendo-common": "^0.2.0",
|
|
57
57
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
58
58
|
},
|
|
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '15.4.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '15.4.0-develop.5',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '15.4.0-develop.
|
|
9
|
+
'@progress/kendo-angular-dialog': '15.4.0-develop.5',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^2.0.0',
|
|
12
12
|
// peer dependency of kendo-angular-layout
|
|
13
|
-
'@progress/kendo-angular-progressbar': '15.4.0-develop.
|
|
13
|
+
'@progress/kendo-angular-progressbar': '15.4.0-develop.5'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|