@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,13 +9,14 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
|
9
9
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
10
10
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
11
11
|
*
|
|
12
|
-
* The template context
|
|
12
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
13
13
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
14
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
14
15
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
15
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
16
|
-
* - `dataItem`—The current data item.
|
|
17
|
-
* - `column`—The current column instance.
|
|
18
|
-
* - `isNew`—The state of the current item.
|
|
16
|
+
* - `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.
|
|
17
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
18
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
19
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
19
20
|
*/
|
|
20
21
|
var EditTemplateDirective = /** @class */ (function () {
|
|
21
22
|
function EditTemplateDirective(templateRef) {
|
|
@@ -9,7 +9,7 @@ export var 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
|
};
|
|
@@ -4,16 +4,15 @@
|
|
|
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
|
var PagerDropDownListDirective = /** @class */ (function () {
|
|
13
|
-
function PagerDropDownListDirective(host
|
|
13
|
+
function PagerDropDownListDirective(host) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
this.host = host;
|
|
16
|
-
this.renderer = renderer;
|
|
17
16
|
this.keydownHandler = function (e) {
|
|
18
17
|
if (e.keyCode === Keys.Escape && _this.host.isOpen) {
|
|
19
18
|
e.stopPropagation();
|
|
@@ -23,7 +22,6 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
23
22
|
}
|
|
24
23
|
PagerDropDownListDirective.prototype.ngAfterViewInit = function () {
|
|
25
24
|
var wrapperElement = this.host.wrapper.nativeElement;
|
|
26
|
-
this.renderer.addClass(wrapperElement, 'k-pager-nav');
|
|
27
25
|
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
28
26
|
};
|
|
29
27
|
PagerDropDownListDirective.prototype.ngOnDestroy = function () {
|
|
@@ -31,8 +29,7 @@ var PagerDropDownListDirective = /** @class */ (function () {
|
|
|
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
|
return PagerDropDownListDirective;
|
|
38
35
|
}());
|
|
@@ -133,8 +133,8 @@ var ListComponent = /** @class */ (function () {
|
|
|
133
133
|
this.scrollLeft = 0;
|
|
134
134
|
this.rtl = false;
|
|
135
135
|
this.scroller = scrollerFactory(this.dispatcher);
|
|
136
|
-
this.subscriptions =
|
|
137
|
-
|
|
136
|
+
this.subscriptions = detailsService.changes.subscribe(function (x) { return _this.detailExpand(x); });
|
|
137
|
+
this.subscriptions.add(scrollRequestService.requests.subscribe(function (x) { return _this.scrollTo(x); }));
|
|
138
138
|
}
|
|
139
139
|
Object.defineProperty(ListComponent.prototype, "hostClass", {
|
|
140
140
|
get: function () {
|
|
@@ -8,13 +8,14 @@ import { TemplateRef } from '@angular/core';
|
|
|
8
8
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
9
9
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
10
10
|
*
|
|
11
|
-
* The template context
|
|
11
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
12
12
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
13
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
13
14
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
14
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
15
|
-
* - `dataItem`—The current data item.
|
|
16
|
-
* - `column`—The current column instance.
|
|
17
|
-
* - `isNew`—The state of the current item.
|
|
15
|
+
* - `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.
|
|
16
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
17
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
18
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
18
19
|
*/
|
|
19
20
|
export declare class EditTemplateDirective {
|
|
20
21
|
templateRef: TemplateRef<any>;
|
|
@@ -9,13 +9,14 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
|
9
9
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
10
10
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
11
11
|
*
|
|
12
|
-
* The template context
|
|
12
|
+
* The template context is set to the current form group and the following additional fields are passed:
|
|
13
13
|
* - `formGroup`—The current [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}).
|
|
14
|
+
* Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-formGroup`.
|
|
14
15
|
* If you use the Grid inside [Template-Driven Forms]({{ site.data.urls.angular['forms'] }}), it will be `undefined`.
|
|
15
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex` is `-1`.
|
|
16
|
-
* - `dataItem`—The current data item.
|
|
17
|
-
* - `column`—The current column instance.
|
|
18
|
-
* - `isNew`—The state of the current item.
|
|
16
|
+
* - `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.
|
|
17
|
+
* - `dataItem`—The current data item. Use it as an alias for a template variable by utilizing the `let-dataItem="dataItem"` syntax.
|
|
18
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
19
|
+
* - `isNew`—The state of the current item. Use it as an alias for a template variable by utilizing the `let-isNew="isNew"` syntax.
|
|
19
20
|
*/
|
|
20
21
|
let EditTemplateDirective = class EditTemplateDirective {
|
|
21
22
|
constructor(templateRef) {
|