@progress/kendo-angular-grid 6.1.1 → 6.1.2-dev.202203210932
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/dist/cdn/js/kendo-angular-grid.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/column-resizing/column-handle.directive.js +15 -2
- package/dist/es/common/column-info.service.js +10 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/column-resizing/column-handle.directive.d.ts +3 -1
- package/dist/es2015/column-resizing/column-handle.directive.js +15 -2
- package/dist/es2015/columns/column-base.d.ts +4 -0
- package/dist/es2015/common/column-info.service.d.ts +1 -0
- package/dist/es2015/common/column-info.service.js +6 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +21 -3
- package/dist/fesm5/index.js +25 -3
- package/dist/npm/column-resizing/column-handle.directive.js +15 -2
- package/dist/npm/common/column-info.service.js +10 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-grid.js +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
12
|
+
publishDate: 1647854683,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -2831,7 +2831,7 @@ const packageMetadata = {
|
|
|
2831
2831
|
name: '@progress/kendo-angular-grid',
|
|
2832
2832
|
productName: 'Kendo UI for Angular',
|
|
2833
2833
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
2834
|
-
publishDate:
|
|
2834
|
+
publishDate: 1647854683,
|
|
2835
2835
|
version: '',
|
|
2836
2836
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
2837
2837
|
};
|
|
@@ -6315,6 +6315,12 @@ let ColumnInfoService = class ColumnInfoService {
|
|
|
6315
6315
|
get totalLevels() {
|
|
6316
6316
|
return this.columnsContainer.totalLevels;
|
|
6317
6317
|
}
|
|
6318
|
+
get hiddenColumns() {
|
|
6319
|
+
if (!this.list) {
|
|
6320
|
+
return [];
|
|
6321
|
+
}
|
|
6322
|
+
return this.list().filter(column => !column.isVisible);
|
|
6323
|
+
}
|
|
6318
6324
|
get leafNamedColumns() {
|
|
6319
6325
|
const columns = expandColumns(this.list().filterSort(column => !column.isColumnGroup))
|
|
6320
6326
|
.filter(column => column.matchesMedia && column.displayTitle);
|
|
@@ -17234,13 +17240,14 @@ const indexOf = (target, list) => {
|
|
|
17234
17240
|
* @hidden
|
|
17235
17241
|
*/
|
|
17236
17242
|
let ColumnHandleDirective = class ColumnHandleDirective {
|
|
17237
|
-
constructor(draggable, element, service, zone, cdr, localization) {
|
|
17243
|
+
constructor(draggable, element, service, zone, cdr, localization, columnInfoService) {
|
|
17238
17244
|
this.draggable = draggable;
|
|
17239
17245
|
this.element = element;
|
|
17240
17246
|
this.service = service;
|
|
17241
17247
|
this.zone = zone;
|
|
17242
17248
|
this.cdr = cdr;
|
|
17243
17249
|
this.localization = localization;
|
|
17250
|
+
this.columnInfoService = columnInfoService;
|
|
17244
17251
|
this.columns = [];
|
|
17245
17252
|
this.subscriptions = new Subscription();
|
|
17246
17253
|
this.rtl = false;
|
|
@@ -17274,6 +17281,9 @@ let ColumnHandleDirective = class ColumnHandleDirective {
|
|
|
17274
17281
|
this.service.measureColumns(columnInfo);
|
|
17275
17282
|
}
|
|
17276
17283
|
ngOnInit() {
|
|
17284
|
+
if (isBlank(this.column.width)) {
|
|
17285
|
+
this.column.implicitWidth = headerWidth(this.element);
|
|
17286
|
+
}
|
|
17277
17287
|
const service = this.service.changes.pipe(filter(() => this.column.resizable), filter(e => isPresent(e.columns.find(column => column === this.column))));
|
|
17278
17288
|
this.subscriptions.add(service.pipe(filter(e => e.type === 'start'))
|
|
17279
17289
|
.subscribe(this.initState.bind(this)));
|
|
@@ -17333,6 +17343,13 @@ let ColumnHandleDirective = class ColumnHandleDirective {
|
|
|
17333
17343
|
}
|
|
17334
17344
|
updateWidth(column, width) {
|
|
17335
17345
|
column.width = width;
|
|
17346
|
+
this.columnInfoService.hiddenColumns.forEach((col) => {
|
|
17347
|
+
if (isBlank(col.width) && isPresent(col.implicitWidth)) {
|
|
17348
|
+
// Resize hidden columns to their implicit width so they
|
|
17349
|
+
// can be displayed with the same width if made visible.
|
|
17350
|
+
col.width = col.implicitWidth;
|
|
17351
|
+
}
|
|
17352
|
+
});
|
|
17336
17353
|
this.cdr.markForCheck(); //force CD cycle
|
|
17337
17354
|
}
|
|
17338
17355
|
columnsForLevel(level) {
|
|
@@ -17378,7 +17395,8 @@ ColumnHandleDirective = __decorate([
|
|
|
17378
17395
|
ColumnResizingService,
|
|
17379
17396
|
NgZone,
|
|
17380
17397
|
ChangeDetectorRef,
|
|
17381
|
-
LocalizationService
|
|
17398
|
+
LocalizationService,
|
|
17399
|
+
ColumnInfoService])
|
|
17382
17400
|
], ColumnHandleDirective);
|
|
17383
17401
|
|
|
17384
17402
|
/**
|
package/dist/fesm5/index.js
CHANGED
|
@@ -3044,7 +3044,7 @@ var packageMetadata = {
|
|
|
3044
3044
|
name: '@progress/kendo-angular-grid',
|
|
3045
3045
|
productName: 'Kendo UI for Angular',
|
|
3046
3046
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
3047
|
-
publishDate:
|
|
3047
|
+
publishDate: 1647854683,
|
|
3048
3048
|
version: '',
|
|
3049
3049
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
3050
3050
|
};
|
|
@@ -6852,6 +6852,16 @@ var ColumnInfoService = /** @class */ (function () {
|
|
|
6852
6852
|
enumerable: true,
|
|
6853
6853
|
configurable: true
|
|
6854
6854
|
});
|
|
6855
|
+
Object.defineProperty(ColumnInfoService.prototype, "hiddenColumns", {
|
|
6856
|
+
get: function () {
|
|
6857
|
+
if (!this.list) {
|
|
6858
|
+
return [];
|
|
6859
|
+
}
|
|
6860
|
+
return this.list().filter(function (column) { return !column.isVisible; });
|
|
6861
|
+
},
|
|
6862
|
+
enumerable: true,
|
|
6863
|
+
configurable: true
|
|
6864
|
+
});
|
|
6855
6865
|
Object.defineProperty(ColumnInfoService.prototype, "leafNamedColumns", {
|
|
6856
6866
|
get: function () {
|
|
6857
6867
|
var columns = expandColumns(this.list().filterSort(function (column) { return !column.isColumnGroup; }))
|
|
@@ -17620,13 +17630,14 @@ var indexOf = function (target, list) {
|
|
|
17620
17630
|
* @hidden
|
|
17621
17631
|
*/
|
|
17622
17632
|
var ColumnHandleDirective = /** @class */ (function () {
|
|
17623
|
-
function ColumnHandleDirective(draggable, element, service, zone, cdr, localization) {
|
|
17633
|
+
function ColumnHandleDirective(draggable, element, service, zone, cdr, localization, columnInfoService) {
|
|
17624
17634
|
this.draggable = draggable;
|
|
17625
17635
|
this.element = element;
|
|
17626
17636
|
this.service = service;
|
|
17627
17637
|
this.zone = zone;
|
|
17628
17638
|
this.cdr = cdr;
|
|
17629
17639
|
this.localization = localization;
|
|
17640
|
+
this.columnInfoService = columnInfoService;
|
|
17630
17641
|
this.columns = [];
|
|
17631
17642
|
this.subscriptions = new Subscription();
|
|
17632
17643
|
this.rtl = false;
|
|
@@ -17674,6 +17685,9 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
17674
17685
|
};
|
|
17675
17686
|
ColumnHandleDirective.prototype.ngOnInit = function () {
|
|
17676
17687
|
var _this = this;
|
|
17688
|
+
if (isBlank(this.column.width)) {
|
|
17689
|
+
this.column.implicitWidth = headerWidth(this.element);
|
|
17690
|
+
}
|
|
17677
17691
|
var service = this.service.changes.pipe(filter(function () { return _this.column.resizable; }), filter(function (e) { return isPresent(e.columns.find(function (column) { return column === _this.column; })); }));
|
|
17678
17692
|
this.subscriptions.add(service.pipe(filter(function (e) { return e.type === 'start'; }))
|
|
17679
17693
|
.subscribe(this.initState.bind(this)));
|
|
@@ -17741,6 +17755,13 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
17741
17755
|
};
|
|
17742
17756
|
ColumnHandleDirective.prototype.updateWidth = function (column, width) {
|
|
17743
17757
|
column.width = width;
|
|
17758
|
+
this.columnInfoService.hiddenColumns.forEach(function (col) {
|
|
17759
|
+
if (isBlank(col.width) && isPresent(col.implicitWidth)) {
|
|
17760
|
+
// Resize hidden columns to their implicit width so they
|
|
17761
|
+
// can be displayed with the same width if made visible.
|
|
17762
|
+
col.width = col.implicitWidth;
|
|
17763
|
+
}
|
|
17764
|
+
});
|
|
17744
17765
|
this.cdr.markForCheck(); //force CD cycle
|
|
17745
17766
|
};
|
|
17746
17767
|
ColumnHandleDirective.prototype.columnsForLevel = function (level) {
|
|
@@ -17785,7 +17806,8 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
17785
17806
|
ColumnResizingService,
|
|
17786
17807
|
NgZone,
|
|
17787
17808
|
ChangeDetectorRef,
|
|
17788
|
-
LocalizationService
|
|
17809
|
+
LocalizationService,
|
|
17810
|
+
ColumnInfoService])
|
|
17789
17811
|
], ColumnHandleDirective);
|
|
17790
17812
|
return ColumnHandleDirective;
|
|
17791
17813
|
}());
|
|
@@ -14,6 +14,7 @@ var column_common_1 = require("../columns/column-common");
|
|
|
14
14
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
15
15
|
var column_resizing_service_1 = require("./column-resizing.service");
|
|
16
16
|
var operators_1 = require("rxjs/operators");
|
|
17
|
+
var column_info_service_1 = require("../common/column-info.service");
|
|
17
18
|
// TODO
|
|
18
19
|
// tslint:disable:rxjs-no-unsafe-takeuntil
|
|
19
20
|
/**
|
|
@@ -112,13 +113,14 @@ exports.ɵ8 = ɵ8;
|
|
|
112
113
|
* @hidden
|
|
113
114
|
*/
|
|
114
115
|
var ColumnHandleDirective = /** @class */ (function () {
|
|
115
|
-
function ColumnHandleDirective(draggable, element, service, zone, cdr, localization) {
|
|
116
|
+
function ColumnHandleDirective(draggable, element, service, zone, cdr, localization, columnInfoService) {
|
|
116
117
|
this.draggable = draggable;
|
|
117
118
|
this.element = element;
|
|
118
119
|
this.service = service;
|
|
119
120
|
this.zone = zone;
|
|
120
121
|
this.cdr = cdr;
|
|
121
122
|
this.localization = localization;
|
|
123
|
+
this.columnInfoService = columnInfoService;
|
|
122
124
|
this.columns = [];
|
|
123
125
|
this.subscriptions = new rxjs_1.Subscription();
|
|
124
126
|
this.rtl = false;
|
|
@@ -166,6 +168,9 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
166
168
|
};
|
|
167
169
|
ColumnHandleDirective.prototype.ngOnInit = function () {
|
|
168
170
|
var _this = this;
|
|
171
|
+
if (utils_1.isBlank(this.column.width)) {
|
|
172
|
+
this.column.implicitWidth = headerWidth(this.element);
|
|
173
|
+
}
|
|
169
174
|
var service = this.service.changes.pipe(operators_1.filter(function () { return _this.column.resizable; }), operators_1.filter(function (e) { return utils_1.isPresent(e.columns.find(function (column) { return column === _this.column; })); }));
|
|
170
175
|
this.subscriptions.add(service.pipe(operators_1.filter(function (e) { return e.type === 'start'; }))
|
|
171
176
|
.subscribe(this.initState.bind(this)));
|
|
@@ -233,6 +238,13 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
233
238
|
};
|
|
234
239
|
ColumnHandleDirective.prototype.updateWidth = function (column, width) {
|
|
235
240
|
column.width = width;
|
|
241
|
+
this.columnInfoService.hiddenColumns.forEach(function (col) {
|
|
242
|
+
if (utils_1.isBlank(col.width) && utils_1.isPresent(col.implicitWidth)) {
|
|
243
|
+
// Resize hidden columns to their implicit width so they
|
|
244
|
+
// can be displayed with the same width if made visible.
|
|
245
|
+
col.width = col.implicitWidth;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
236
248
|
this.cdr.markForCheck(); //force CD cycle
|
|
237
249
|
};
|
|
238
250
|
ColumnHandleDirective.prototype.columnsForLevel = function (level) {
|
|
@@ -277,7 +289,8 @@ var ColumnHandleDirective = /** @class */ (function () {
|
|
|
277
289
|
column_resizing_service_1.ColumnResizingService,
|
|
278
290
|
core_1.NgZone,
|
|
279
291
|
core_1.ChangeDetectorRef,
|
|
280
|
-
kendo_angular_l10n_1.LocalizationService
|
|
292
|
+
kendo_angular_l10n_1.LocalizationService,
|
|
293
|
+
column_info_service_1.ColumnInfoService])
|
|
281
294
|
], ColumnHandleDirective);
|
|
282
295
|
return ColumnHandleDirective;
|
|
283
296
|
}());
|
|
@@ -49,6 +49,16 @@ var ColumnInfoService = /** @class */ (function () {
|
|
|
49
49
|
enumerable: true,
|
|
50
50
|
configurable: true
|
|
51
51
|
});
|
|
52
|
+
Object.defineProperty(ColumnInfoService.prototype, "hiddenColumns", {
|
|
53
|
+
get: function () {
|
|
54
|
+
if (!this.list) {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
return this.list().filter(function (column) { return !column.isVisible; });
|
|
58
|
+
},
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
52
62
|
Object.defineProperty(ColumnInfoService.prototype, "leafNamedColumns", {
|
|
53
63
|
get: function () {
|
|
54
64
|
var columns = column_common_1.expandColumns(this.list().filterSort(function (column) { return !column.isColumnGroup; }))
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-grid',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1647854683,
|
|
15
15
|
version: '',
|
|
16
16
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
17
17
|
};
|