@progress/kendo-angular-grid 5.4.1 → 5.4.3
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/grid.component.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- 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/grid.component.js +1 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/pager/pager-settings.d.ts +1 -1
- package/dist/es2015/rendering/list.component.js +2 -2
- package/dist/fesm2015/index.js +10 -9
- package/dist/fesm5/index.js +10 -9
- package/dist/npm/editing/edit-template.directive.js +6 -5
- package/dist/npm/grid.component.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/list.component.js +2 -2
- package/dist/systemjs/kendo-angular-grid.js +1 -1
- package/package.json +10 -10
|
@@ -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) {
|
|
@@ -886,7 +886,7 @@ var GridComponent = /** @class */ (function () {
|
|
|
886
886
|
if (isUniversal()) {
|
|
887
887
|
return "";
|
|
888
888
|
}
|
|
889
|
-
var padding = Math.max(0, this.scrollbarWidth
|
|
889
|
+
var padding = Math.max(0, this.scrollbarWidth) + 'px';
|
|
890
890
|
var right = this.rtl ? 0 : padding;
|
|
891
891
|
var left = this.rtl ? padding : 0;
|
|
892
892
|
return "0 " + right + " 0 " + left;
|
|
@@ -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: 1635941151,
|
|
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
|
};
|
|
@@ -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) {
|
|
@@ -748,7 +748,7 @@ let GridComponent = class GridComponent {
|
|
|
748
748
|
if (isUniversal()) {
|
|
749
749
|
return "";
|
|
750
750
|
}
|
|
751
|
-
const padding = Math.max(0, this.scrollbarWidth
|
|
751
|
+
const padding = Math.max(0, this.scrollbarWidth) + 'px';
|
|
752
752
|
const right = this.rtl ? 0 : padding;
|
|
753
753
|
const left = this.rtl ? padding : 0;
|
|
754
754
|
return `0 ${right} 0 ${left}`;
|