@progress/kendo-angular-grid 25.3.0-develop.3 → 25.3.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/fesm2022/progress-kendo-angular-grid.mjs +67 -11
- package/index.d.ts +3 -0
- package/package-metadata.mjs +2 -2
- package/package.json +24 -24
- package/schematics/ngAdd/index.js +7 -7
|
@@ -3490,12 +3490,15 @@ class ColumnResizingService {
|
|
|
3490
3490
|
zip$1(...observables)
|
|
3491
3491
|
.pipe(take(1))
|
|
3492
3492
|
.subscribe(widths => {
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3493
|
+
const allZero = widths.every((tableWidths) => tableWidths.every(w => w === 0));
|
|
3494
|
+
if (!allZero) {
|
|
3495
|
+
this.changes.emit({
|
|
3496
|
+
columns: info.map(i => i.column),
|
|
3497
|
+
type: 'autoFitComplete',
|
|
3498
|
+
widths,
|
|
3499
|
+
locked
|
|
3500
|
+
});
|
|
3501
|
+
}
|
|
3499
3502
|
if (onComplete) {
|
|
3500
3503
|
onComplete();
|
|
3501
3504
|
}
|
|
@@ -8911,6 +8914,12 @@ class ScrollSyncService {
|
|
|
8911
8914
|
this.subscriptions.add(this.changes.subscribe(args => this.scrollLeft(args)));
|
|
8912
8915
|
}
|
|
8913
8916
|
registerEmitter(el, sourceType) {
|
|
8917
|
+
if (sourceType === "body" || sourceType === "header") {
|
|
8918
|
+
this.unregisterSourceType(sourceType);
|
|
8919
|
+
if (this.source === sourceType) {
|
|
8920
|
+
this.source = undefined;
|
|
8921
|
+
}
|
|
8922
|
+
}
|
|
8914
8923
|
this.unregister(el);
|
|
8915
8924
|
this.elements.push({ element: el, sourceType });
|
|
8916
8925
|
if (sourceType === "body" || sourceType === "header") {
|
|
@@ -8953,6 +8962,12 @@ class ScrollSyncService {
|
|
|
8953
8962
|
this.elements.splice(index, 1);
|
|
8954
8963
|
}
|
|
8955
8964
|
}
|
|
8965
|
+
unregisterSourceType(sourceType) {
|
|
8966
|
+
this.elements
|
|
8967
|
+
.filter(x => x.sourceType === sourceType)
|
|
8968
|
+
.map(x => x.element)
|
|
8969
|
+
.forEach(element => this.unregister(element));
|
|
8970
|
+
}
|
|
8956
8971
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.32", ngImport: i0, type: ScrollSyncService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8957
8972
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.32", ngImport: i0, type: ScrollSyncService });
|
|
8958
8973
|
}
|
|
@@ -25185,8 +25200,8 @@ const packageMetadata = {
|
|
|
25185
25200
|
productName: 'Kendo UI for Angular',
|
|
25186
25201
|
productCode: 'KENDOUIANGULAR',
|
|
25187
25202
|
productCodes: ['KENDOUIANGULAR'],
|
|
25188
|
-
publishDate:
|
|
25189
|
-
version: '25.3.0-develop.
|
|
25203
|
+
publishDate: 1790942299,
|
|
25204
|
+
version: '25.3.0-develop.5',
|
|
25190
25205
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25191
25206
|
};
|
|
25192
25207
|
|
|
@@ -37231,6 +37246,7 @@ class GridComponent {
|
|
|
37231
37246
|
selectionSubscription;
|
|
37232
37247
|
stateChangeSubscription;
|
|
37233
37248
|
groupExpandCollapseSubscription;
|
|
37249
|
+
autoSizeVisibilityObserver;
|
|
37234
37250
|
editServiceSubscription;
|
|
37235
37251
|
detailsServiceSubscription;
|
|
37236
37252
|
filterSubscription;
|
|
@@ -37498,7 +37514,7 @@ class GridComponent {
|
|
|
37498
37514
|
sort: Boolean(this.sortable)
|
|
37499
37515
|
}, this.columnMenu);
|
|
37500
37516
|
}
|
|
37501
|
-
if (isChanged$1("scrollable", changes) && this.isScrollable) {
|
|
37517
|
+
if ((isChanged$1("scrollable", changes) || (isChanged$1("hideHeader", changes) && !this.hideHeader)) && this.isScrollable) {
|
|
37502
37518
|
this.ngZone.onStable.pipe(take(1)).subscribe(() => this.attachScrollSync());
|
|
37503
37519
|
}
|
|
37504
37520
|
if (isChanged$1("pinnable", changes) || isChanged$1("pinnedTopRows", changes) || isChanged$1("pinnedBottomRows", changes)) {
|
|
@@ -37586,6 +37602,10 @@ class GridComponent {
|
|
|
37586
37602
|
if (this.selectionSubscription) {
|
|
37587
37603
|
this.selectionSubscription.unsubscribe();
|
|
37588
37604
|
}
|
|
37605
|
+
if (this.autoSizeVisibilityObserver) {
|
|
37606
|
+
this.autoSizeVisibilityObserver.disconnect();
|
|
37607
|
+
this.autoSizeVisibilityObserver = null;
|
|
37608
|
+
}
|
|
37589
37609
|
if (this.rowReorderSubscription) {
|
|
37590
37610
|
this.rowReorderSubscription.unsubscribe();
|
|
37591
37611
|
}
|
|
@@ -37691,6 +37711,7 @@ class GridComponent {
|
|
|
37691
37711
|
}
|
|
37692
37712
|
if (this.header) {
|
|
37693
37713
|
this.scrollSyncService.registerEmitter(this.header.nativeElement, "header");
|
|
37714
|
+
this.header.nativeElement.scrollLeft = this.wrapper.nativeElement.querySelector('.k-grid-content')?.scrollLeft;
|
|
37694
37715
|
}
|
|
37695
37716
|
if (this.pinnedContainers) {
|
|
37696
37717
|
if (this.pinnedContainersChangeSubscription) {
|
|
@@ -38698,9 +38719,44 @@ class GridComponent {
|
|
|
38698
38719
|
}
|
|
38699
38720
|
applyAutoSize() {
|
|
38700
38721
|
const cols = this.columns.filter((c) => this.autoSize ? c.autoSize !== false : c.autoSize);
|
|
38701
|
-
if (cols.length
|
|
38702
|
-
|
|
38722
|
+
if (cols.length === 0) {
|
|
38723
|
+
return;
|
|
38724
|
+
}
|
|
38725
|
+
const element = this.wrapper.nativeElement;
|
|
38726
|
+
const tryAutoFit = () => {
|
|
38727
|
+
if (element.offsetWidth === 0 || !this.hasRenderedDataRows()) {
|
|
38728
|
+
return false;
|
|
38729
|
+
}
|
|
38730
|
+
this.autoFitColumns(cols);
|
|
38731
|
+
return true;
|
|
38732
|
+
};
|
|
38733
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
38734
|
+
if (tryAutoFit()) {
|
|
38735
|
+
return;
|
|
38736
|
+
}
|
|
38737
|
+
if (!(isDocumentAvailable() && typeof ResizeObserver !== 'undefined')) {
|
|
38738
|
+
return;
|
|
38739
|
+
}
|
|
38740
|
+
this.ngZone.runOutsideAngular(() => {
|
|
38741
|
+
this.autoSizeVisibilityObserver = new ResizeObserver(() => {
|
|
38742
|
+
this.ngZone.run(() => {
|
|
38743
|
+
if (tryAutoFit()) {
|
|
38744
|
+
this.autoSizeVisibilityObserver?.disconnect();
|
|
38745
|
+
this.autoSizeVisibilityObserver = null;
|
|
38746
|
+
}
|
|
38747
|
+
});
|
|
38748
|
+
});
|
|
38749
|
+
this.autoSizeVisibilityObserver.observe(element);
|
|
38750
|
+
});
|
|
38751
|
+
});
|
|
38752
|
+
}
|
|
38753
|
+
hasRenderedDataRows() {
|
|
38754
|
+
const element = this.wrapper?.nativeElement;
|
|
38755
|
+
if (!element) {
|
|
38756
|
+
return false;
|
|
38703
38757
|
}
|
|
38758
|
+
const dataRowSelector = 'tbody > tr:not(.k-grouping-row):not(.k-group-footer):not(.k-detail-row):not(.k-grid-norecords)';
|
|
38759
|
+
return !!element.querySelector(dataRowSelector);
|
|
38704
38760
|
}
|
|
38705
38761
|
onColumnRangeChange(range) {
|
|
38706
38762
|
const viewportColumns = this.viewportColumns = [];
|
package/index.d.ts
CHANGED
|
@@ -3090,6 +3090,7 @@ declare class ScrollSyncService {
|
|
|
3090
3090
|
destroy(): void;
|
|
3091
3091
|
private scrollLeft;
|
|
3092
3092
|
private unregister;
|
|
3093
|
+
private unregisterSourceType;
|
|
3093
3094
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollSyncService, never>;
|
|
3094
3095
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollSyncService>;
|
|
3095
3096
|
}
|
|
@@ -6030,6 +6031,7 @@ declare class GridComponent implements AfterContentInit, AfterViewInit, OnDestro
|
|
|
6030
6031
|
private selectionSubscription;
|
|
6031
6032
|
private stateChangeSubscription;
|
|
6032
6033
|
private groupExpandCollapseSubscription;
|
|
6034
|
+
private autoSizeVisibilityObserver;
|
|
6033
6035
|
private editServiceSubscription;
|
|
6034
6036
|
private detailsServiceSubscription;
|
|
6035
6037
|
private filterSubscription;
|
|
@@ -6391,6 +6393,7 @@ declare class GridComponent implements AfterContentInit, AfterViewInit, OnDestro
|
|
|
6391
6393
|
private _rowClass;
|
|
6392
6394
|
private navigationMetadata;
|
|
6393
6395
|
private applyAutoSize;
|
|
6396
|
+
private hasRenderedDataRows;
|
|
6394
6397
|
private onColumnRangeChange;
|
|
6395
6398
|
private toggleDetailRowLegacy;
|
|
6396
6399
|
private toggleGroupRowLegacy;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.3.0-develop.
|
|
10
|
+
"publishDate": 1790942299,
|
|
11
|
+
"version": "25.3.0-develop.5",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "25.3.0-develop.
|
|
3
|
+
"version": "25.3.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",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"package": {
|
|
102
102
|
"productName": "Kendo UI for Angular",
|
|
103
103
|
"productCode": "KENDOUIANGULAR",
|
|
104
|
-
"publishDate":
|
|
104
|
+
"publishDate": 1790942299,
|
|
105
105
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
@@ -114,32 +114,32 @@
|
|
|
114
114
|
"@progress/kendo-data-query": "^1.7.3",
|
|
115
115
|
"@progress/kendo-drawing": "^1.25.0",
|
|
116
116
|
"@progress/kendo-licensing": "^1.11.0",
|
|
117
|
-
"@progress/kendo-angular-buttons": "25.3.0-develop.
|
|
118
|
-
"@progress/kendo-angular-common": "25.3.0-develop.
|
|
119
|
-
"@progress/kendo-angular-dateinputs": "25.3.0-develop.
|
|
120
|
-
"@progress/kendo-angular-layout": "25.3.0-develop.
|
|
121
|
-
"@progress/kendo-angular-navigation": "25.3.0-develop.
|
|
122
|
-
"@progress/kendo-angular-dropdowns": "25.3.0-develop.
|
|
123
|
-
"@progress/kendo-angular-excel-export": "25.3.0-develop.
|
|
124
|
-
"@progress/kendo-angular-icons": "25.3.0-develop.
|
|
125
|
-
"@progress/kendo-angular-indicators": "25.3.0-develop.
|
|
126
|
-
"@progress/kendo-angular-inputs": "25.3.0-develop.
|
|
127
|
-
"@progress/kendo-angular-conversational-ui": "25.3.0-develop.
|
|
128
|
-
"@progress/kendo-angular-intl": "25.3.0-develop.
|
|
129
|
-
"@progress/kendo-angular-l10n": "25.3.0-develop.
|
|
130
|
-
"@progress/kendo-angular-label": "25.3.0-develop.
|
|
131
|
-
"@progress/kendo-angular-menu": "25.3.0-develop.
|
|
132
|
-
"@progress/kendo-angular-pager": "25.3.0-develop.
|
|
133
|
-
"@progress/kendo-angular-pdf-export": "25.3.0-develop.
|
|
134
|
-
"@progress/kendo-angular-popup": "25.3.0-develop.
|
|
135
|
-
"@progress/kendo-angular-toolbar": "25.3.0-develop.
|
|
136
|
-
"@progress/kendo-angular-upload": "25.3.0-develop.
|
|
137
|
-
"@progress/kendo-angular-utils": "25.3.0-develop.
|
|
117
|
+
"@progress/kendo-angular-buttons": "25.3.0-develop.5",
|
|
118
|
+
"@progress/kendo-angular-common": "25.3.0-develop.5",
|
|
119
|
+
"@progress/kendo-angular-dateinputs": "25.3.0-develop.5",
|
|
120
|
+
"@progress/kendo-angular-layout": "25.3.0-develop.5",
|
|
121
|
+
"@progress/kendo-angular-navigation": "25.3.0-develop.5",
|
|
122
|
+
"@progress/kendo-angular-dropdowns": "25.3.0-develop.5",
|
|
123
|
+
"@progress/kendo-angular-excel-export": "25.3.0-develop.5",
|
|
124
|
+
"@progress/kendo-angular-icons": "25.3.0-develop.5",
|
|
125
|
+
"@progress/kendo-angular-indicators": "25.3.0-develop.5",
|
|
126
|
+
"@progress/kendo-angular-inputs": "25.3.0-develop.5",
|
|
127
|
+
"@progress/kendo-angular-conversational-ui": "25.3.0-develop.5",
|
|
128
|
+
"@progress/kendo-angular-intl": "25.3.0-develop.5",
|
|
129
|
+
"@progress/kendo-angular-l10n": "25.3.0-develop.5",
|
|
130
|
+
"@progress/kendo-angular-label": "25.3.0-develop.5",
|
|
131
|
+
"@progress/kendo-angular-menu": "25.3.0-develop.5",
|
|
132
|
+
"@progress/kendo-angular-pager": "25.3.0-develop.5",
|
|
133
|
+
"@progress/kendo-angular-pdf-export": "25.3.0-develop.5",
|
|
134
|
+
"@progress/kendo-angular-popup": "25.3.0-develop.5",
|
|
135
|
+
"@progress/kendo-angular-toolbar": "25.3.0-develop.5",
|
|
136
|
+
"@progress/kendo-angular-upload": "25.3.0-develop.5",
|
|
137
|
+
"@progress/kendo-angular-utils": "25.3.0-develop.5",
|
|
138
138
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
139
139
|
},
|
|
140
140
|
"dependencies": {
|
|
141
141
|
"tslib": "^2.3.1",
|
|
142
|
-
"@progress/kendo-angular-schematics": "25.3.0-develop.
|
|
142
|
+
"@progress/kendo-angular-schematics": "25.3.0-develop.5",
|
|
143
143
|
"@progress/kendo-common": "^1.0.1",
|
|
144
144
|
"@progress/kendo-file-saver": "^1.0.0",
|
|
145
145
|
"@progress/kendo-csv": "^1.0.0"
|
|
@@ -9,19 +9,19 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
11
11
|
// peer deps of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-treeview': '25.3.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '25.3.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '25.3.0-develop.5',
|
|
13
|
+
'@progress/kendo-angular-navigation': '25.3.0-develop.5',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '25.3.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '25.3.0-develop.5',
|
|
16
16
|
// peer dependency of kendo-angular-icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
18
18
|
// peer dependency of kendo-angular-layout
|
|
19
|
-
'@progress/kendo-angular-progressbar': '25.3.0-develop.
|
|
19
|
+
'@progress/kendo-angular-progressbar': '25.3.0-develop.5',
|
|
20
20
|
// transitive peer dependencies from toolbar
|
|
21
|
-
'@progress/kendo-angular-indicators': '25.3.0-develop.
|
|
21
|
+
'@progress/kendo-angular-indicators': '25.3.0-develop.5',
|
|
22
22
|
// transitive peer dependencies from conversational-ui
|
|
23
|
-
'@progress/kendo-angular-menu': '25.3.0-develop.
|
|
24
|
-
'@progress/kendo-angular-upload': '25.3.0-develop.
|
|
23
|
+
'@progress/kendo-angular-menu': '25.3.0-develop.5',
|
|
24
|
+
'@progress/kendo-angular-upload': '25.3.0-develop.5'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|