@progress/kendo-angular-grid 5.4.2-dev.202110011036 → 5.4.4-dev.202111191600
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/editing/edit-template.directive.js +6 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/pager/pager-dropdown.directive.js +3 -6
- package/dist/es/rendering/list.component.js +2 -2
- package/dist/es2015/editing/edit-template.directive.d.ts +6 -5
- package/dist/es2015/editing/edit-template.directive.js +6 -5
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/pager/pager-dropdown.directive.d.ts +1 -3
- package/dist/es2015/pager/pager-dropdown.directive.js +3 -6
- package/dist/es2015/rendering/list.component.js +2 -2
- package/dist/fesm2015/index.js +11 -13
- package/dist/fesm5/index.js +11 -13
- package/dist/npm/editing/edit-template.directive.js +6 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/pager/pager-dropdown.directive.js +2 -5
- package/dist/npm/rendering/list.component.js +2 -2
- package/dist/systemjs/kendo-angular-grid.js +1 -1
- package/package.json +7 -7
|
@@ -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: 1637337121,
|
|
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
|
};
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
6
|
-
import { Renderer2 } from '@angular/core';
|
|
7
6
|
/**
|
|
8
7
|
* @hidden
|
|
9
8
|
*/
|
|
10
9
|
export declare class PagerDropDownListDirective {
|
|
11
10
|
private host;
|
|
12
|
-
|
|
13
|
-
constructor(host: DropDownListComponent, renderer: Renderer2);
|
|
11
|
+
constructor(host: DropDownListComponent);
|
|
14
12
|
ngAfterViewInit(): void;
|
|
15
13
|
ngOnDestroy(): void;
|
|
16
14
|
private keydownHandler;
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as tslib_1 from "tslib";
|
|
6
6
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { Directive
|
|
7
|
+
import { Directive } from '@angular/core';
|
|
8
8
|
import { Keys } from '@progress/kendo-angular-common';
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
13
|
-
constructor(host
|
|
13
|
+
constructor(host) {
|
|
14
14
|
this.host = host;
|
|
15
|
-
this.renderer = renderer;
|
|
16
15
|
this.keydownHandler = (e) => {
|
|
17
16
|
if (e.keyCode === Keys.Escape && this.host.isOpen) {
|
|
18
17
|
e.stopPropagation();
|
|
@@ -22,7 +21,6 @@ let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
|
22
21
|
}
|
|
23
22
|
ngAfterViewInit() {
|
|
24
23
|
const wrapperElement = this.host.wrapper.nativeElement;
|
|
25
|
-
this.renderer.addClass(wrapperElement, 'k-pager-nav');
|
|
26
24
|
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
27
25
|
}
|
|
28
26
|
ngOnDestroy() {
|
|
@@ -31,7 +29,6 @@ let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
|
31
29
|
};
|
|
32
30
|
PagerDropDownListDirective = tslib_1.__decorate([
|
|
33
31
|
Directive({ selector: '[kendoGridPagerDropDown]' }),
|
|
34
|
-
tslib_1.__metadata("design:paramtypes", [DropDownListComponent
|
|
35
|
-
Renderer2])
|
|
32
|
+
tslib_1.__metadata("design:paramtypes", [DropDownListComponent])
|
|
36
33
|
], PagerDropDownListDirective);
|
|
37
34
|
export { PagerDropDownListDirective };
|
|
@@ -125,8 +125,8 @@ let ListComponent = class ListComponent {
|
|
|
125
125
|
this.scrollLeft = 0;
|
|
126
126
|
this.rtl = false;
|
|
127
127
|
this.scroller = scrollerFactory(this.dispatcher);
|
|
128
|
-
this.subscriptions =
|
|
129
|
-
|
|
128
|
+
this.subscriptions = detailsService.changes.subscribe(x => this.detailExpand(x));
|
|
129
|
+
this.subscriptions.add(scrollRequestService.requests.subscribe(x => this.scrollTo(x)));
|
|
130
130
|
}
|
|
131
131
|
get hostClass() {
|
|
132
132
|
return true;
|
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: 1637337121,
|
|
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
|
};
|
|
@@ -3000,13 +3000,14 @@ GroupHeaderColumnTemplateDirective = __decorate([
|
|
|
3000
3000
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
3001
3001
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
3002
3002
|
*
|
|
3003
|
-
* The template context
|
|
3003
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
3004
3004
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
3005
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
3005
3006
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
3006
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
3007
|
-
* - `dataItem`—The current data item.
|
|
3008
|
-
* - `column`—The current column instance.
|
|
3009
|
-
* - `isNew`—The state of the current item.
|
|
3007
|
+
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
3008
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
3009
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
3010
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
3010
3011
|
*/
|
|
3011
3012
|
let EditTemplateDirective = class EditTemplateDirective {
|
|
3012
3013
|
constructor(templateRef) {
|
|
@@ -9448,8 +9449,8 @@ let ListComponent = class ListComponent {
|
|
|
9448
9449
|
this.scrollLeft = 0;
|
|
9449
9450
|
this.rtl = false;
|
|
9450
9451
|
this.scroller = scrollerFactory(this.dispatcher);
|
|
9451
|
-
this.subscriptions =
|
|
9452
|
-
|
|
9452
|
+
this.subscriptions = detailsService.changes.subscribe(x => this.detailExpand(x));
|
|
9453
|
+
this.subscriptions.add(scrollRequestService.requests.subscribe(x => this.scrollTo(x)));
|
|
9453
9454
|
}
|
|
9454
9455
|
get hostClass() {
|
|
9455
9456
|
return true;
|
|
@@ -13957,9 +13958,8 @@ PagerInputDirective = __decorate([
|
|
|
13957
13958
|
* @hidden
|
|
13958
13959
|
*/
|
|
13959
13960
|
let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
13960
|
-
constructor(host
|
|
13961
|
+
constructor(host) {
|
|
13961
13962
|
this.host = host;
|
|
13962
|
-
this.renderer = renderer;
|
|
13963
13963
|
this.keydownHandler = (e) => {
|
|
13964
13964
|
if (e.keyCode === Keys.Escape && this.host.isOpen) {
|
|
13965
13965
|
e.stopPropagation();
|
|
@@ -13969,7 +13969,6 @@ let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
|
13969
13969
|
}
|
|
13970
13970
|
ngAfterViewInit() {
|
|
13971
13971
|
const wrapperElement = this.host.wrapper.nativeElement;
|
|
13972
|
-
this.renderer.addClass(wrapperElement, 'k-pager-nav');
|
|
13973
13972
|
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
13974
13973
|
}
|
|
13975
13974
|
ngOnDestroy() {
|
|
@@ -13978,8 +13977,7 @@ let PagerDropDownListDirective = class PagerDropDownListDirective {
|
|
|
13978
13977
|
};
|
|
13979
13978
|
PagerDropDownListDirective = __decorate([
|
|
13980
13979
|
Directive({ selector: '[kendoGridPagerDropDown]' }),
|
|
13981
|
-
__metadata("design:paramtypes", [DropDownListComponent
|
|
13982
|
-
Renderer2])
|
|
13980
|
+
__metadata("design:paramtypes", [DropDownListComponent])
|
|
13983
13981
|
], PagerDropDownListDirective);
|
|
13984
13982
|
|
|
13985
13983
|
/**
|
package/dist/fesm5/index.js
CHANGED
|
@@ -3046,7 +3046,7 @@ var packageMetadata = {
|
|
|
3046
3046
|
name: '@progress/kendo-angular-grid',
|
|
3047
3047
|
productName: 'Kendo UI for Angular',
|
|
3048
3048
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
3049
|
-
publishDate:
|
|
3049
|
+
publishDate: 1637337121,
|
|
3050
3050
|
version: '',
|
|
3051
3051
|
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'
|
|
3052
3052
|
};
|
|
@@ -3218,13 +3218,14 @@ var GroupHeaderColumnTemplateDirective = /** @class */ (function () {
|
|
|
3218
3218
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
3219
3219
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
3220
3220
|
*
|
|
3221
|
-
* The template context
|
|
3221
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
3222
3222
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
3223
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
3223
3224
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
3224
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
3225
|
-
* - `dataItem`—The current data item.
|
|
3226
|
-
* - `column`—The current column instance.
|
|
3227
|
-
* - `isNew`—The state of the current item.
|
|
3225
|
+
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
3226
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
3227
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
3228
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
3228
3229
|
*/
|
|
3229
3230
|
var EditTemplateDirective = /** @class */ (function () {
|
|
3230
3231
|
function EditTemplateDirective(templateRef) {
|
|
@@ -9825,8 +9826,8 @@ var ListComponent = /** @class */ (function () {
|
|
|
9825
9826
|
this.scrollLeft = 0;
|
|
9826
9827
|
this.rtl = false;
|
|
9827
9828
|
this.scroller = scrollerFactory(this.dispatcher);
|
|
9828
|
-
this.subscriptions =
|
|
9829
|
-
|
|
9829
|
+
this.subscriptions = detailsService.changes.subscribe(function (x) { return _this.detailExpand(x); });
|
|
9830
|
+
this.subscriptions.add(scrollRequestService.requests.subscribe(function (x) { return _this.scrollTo(x); }));
|
|
9830
9831
|
}
|
|
9831
9832
|
Object.defineProperty(ListComponent.prototype, "hostClass", {
|
|
9832
9833
|
get: function () {
|
|
@@ -14569,10 +14570,9 @@ var PagerInputDirective = /** @class */ (function () {
|
|
|
14569
14570
|
* @hidden
|
|
14570
14571
|
*/
|
|
14571
14572
|
var PagerDropDownListDirective = /** @class */ (function () {
|
|
14572
|
-
function PagerDropDownListDirective(host
|
|
14573
|
+
function PagerDropDownListDirective(host) {
|
|
14573
14574
|
var _this = this;
|
|
14574
14575
|
this.host = host;
|
|
14575
|
-
this.renderer = renderer;
|
|
14576
14576
|
this.keydownHandler = function (e) {
|
|
14577
14577
|
if (e.keyCode === Keys.Escape && _this.host.isOpen) {
|
|
14578
14578
|
e.stopPropagation();
|
|
@@ -14582,7 +14582,6 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
14582
14582
|
}
|
|
14583
14583
|
PagerDropDownListDirective.prototype.ngAfterViewInit = function () {
|
|
14584
14584
|
var wrapperElement = this.host.wrapper.nativeElement;
|
|
14585
|
-
this.renderer.addClass(wrapperElement, 'k-pager-nav');
|
|
14586
14585
|
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
14587
14586
|
};
|
|
14588
14587
|
PagerDropDownListDirective.prototype.ngOnDestroy = function () {
|
|
@@ -14590,8 +14589,7 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
14590
14589
|
};
|
|
14591
14590
|
PagerDropDownListDirective = __decorate([
|
|
14592
14591
|
Directive({ selector: '[kendoGridPagerDropDown]' }),
|
|
14593
|
-
__metadata("design:paramtypes", [DropDownListComponent
|
|
14594
|
-
Renderer2])
|
|
14592
|
+
__metadata("design:paramtypes", [DropDownListComponent])
|
|
14595
14593
|
], PagerDropDownListDirective);
|
|
14596
14594
|
return PagerDropDownListDirective;
|
|
14597
14595
|
}());
|
|
@@ -11,13 +11,14 @@ var core_1 = require("@angular/core");
|
|
|
11
11
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
12
12
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
13
13
|
*
|
|
14
|
-
* The template context
|
|
14
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
15
15
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
16
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
16
17
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
17
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
18
|
-
* - `dataItem`—The current data item.
|
|
19
|
-
* - `column`—The current column instance.
|
|
20
|
-
* - `isNew`—The state of the current item.
|
|
18
|
+
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
19
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
20
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
21
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
21
22
|
*/
|
|
22
23
|
var EditTemplateDirective = /** @class */ (function () {
|
|
23
24
|
function EditTemplateDirective(templateRef) {
|
|
@@ -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: 1637337121,
|
|
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
|
};
|
|
@@ -12,10 +12,9 @@ var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
var PagerDropDownListDirective = /** @class */ (function () {
|
|
15
|
-
function PagerDropDownListDirective(host
|
|
15
|
+
function PagerDropDownListDirective(host) {
|
|
16
16
|
var _this = this;
|
|
17
17
|
this.host = host;
|
|
18
|
-
this.renderer = renderer;
|
|
19
18
|
this.keydownHandler = function (e) {
|
|
20
19
|
if (e.keyCode === kendo_angular_common_1.Keys.Escape && _this.host.isOpen) {
|
|
21
20
|
e.stopPropagation();
|
|
@@ -25,7 +24,6 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
25
24
|
}
|
|
26
25
|
PagerDropDownListDirective.prototype.ngAfterViewInit = function () {
|
|
27
26
|
var wrapperElement = this.host.wrapper.nativeElement;
|
|
28
|
-
this.renderer.addClass(wrapperElement, 'k-pager-nav');
|
|
29
27
|
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
30
28
|
};
|
|
31
29
|
PagerDropDownListDirective.prototype.ngOnDestroy = function () {
|
|
@@ -33,8 +31,7 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
33
31
|
};
|
|
34
32
|
PagerDropDownListDirective = tslib_1.__decorate([
|
|
35
33
|
core_1.Directive({ selector: '[kendoGridPagerDropDown]' }),
|
|
36
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dropdowns_1.DropDownListComponent
|
|
37
|
-
core_1.Renderer2])
|
|
34
|
+
tslib_1.__metadata("design:paramtypes", [kendo_angular_dropdowns_1.DropDownListComponent])
|
|
38
35
|
], PagerDropDownListDirective);
|
|
39
36
|
return PagerDropDownListDirective;
|
|
40
37
|
}());
|
|
@@ -145,8 +145,8 @@ var ListComponent = /** @class */ (function () {
|
|
|
145
145
|
this.scrollLeft = 0;
|
|
146
146
|
this.rtl = false;
|
|
147
147
|
this.scroller = scrollerFactory(this.dispatcher);
|
|
148
|
-
this.subscriptions =
|
|
149
|
-
|
|
148
|
+
this.subscriptions = detailsService.changes.subscribe(function (x) { return _this.detailExpand(x); });
|
|
149
|
+
this.subscriptions.add(scrollRequestService.requests.subscribe(function (x) { return _this.scrollTo(x); }));
|
|
150
150
|
}
|
|
151
151
|
Object.defineProperty(ListComponent.prototype, "hostClass", {
|
|
152
152
|
get: function () {
|