@progress/kendo-angular-grid 12.0.0-develop.8 → 12.0.0-develop.9
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/column-menu/column-menu-item-content-template.directive.d.ts +13 -24
- package/column-menu/column-menu-template.directive.d.ts +14 -28
- package/columns/column-base.d.ts +4 -0
- package/columns/reorder-column.component.d.ts +31 -0
- package/databinding.directive.d.ts +15 -1
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +4 -16
- package/editing/edit-template.directive.d.ts +2 -3
- package/editing/remove-command.directive.d.ts +6 -6
- package/editing/save-command.directive.d.ts +3 -15
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/template-editing.directive.d.ts +1 -1
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +13 -24
- package/esm2020/column-menu/column-menu-template.directive.mjs +14 -28
- package/esm2020/columns/column-base.mjs +4 -0
- package/esm2020/columns/reorder-column.component.mjs +55 -0
- package/esm2020/databinding.directive.mjs +30 -3
- package/esm2020/editing/add-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +4 -16
- package/esm2020/editing/edit-template.directive.mjs +2 -3
- package/esm2020/editing/remove-command.directive.mjs +6 -6
- package/esm2020/editing/save-command.directive.mjs +3 -15
- package/esm2020/editing-directives/in-cell-editing.directive.mjs +1 -1
- package/esm2020/editing-directives/template-editing.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +2 -2
- package/esm2020/grid.component.mjs +195 -38
- package/esm2020/grid.module.mjs +70 -65
- package/esm2020/grouping/group-footer-template.directive.mjs +9 -35
- package/esm2020/grouping/group-header-column-template.directive.mjs +2 -2
- package/esm2020/grouping/group-header-template.directive.mjs +9 -37
- package/esm2020/index.mjs +1 -0
- package/esm2020/localization/messages.mjs +3 -1
- package/esm2020/navigation/focusable.directive.mjs +10 -41
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-template.directive.mjs +13 -46
- package/esm2020/pdf/pdf-template.directive.mjs +10 -38
- package/esm2020/rendering/body.module.mjs +9 -4
- package/esm2020/rendering/cell-loading.template.directive.mjs +11 -8
- package/esm2020/rendering/cell-template.directive.mjs +11 -35
- package/esm2020/rendering/cell.component.mjs +43 -10
- package/esm2020/rendering/details/detail-template.directive.mjs +10 -58
- package/esm2020/rendering/details-expand.directive.mjs +1 -1
- package/esm2020/rendering/footer/footer-template.directive.mjs +8 -35
- package/esm2020/rendering/header/header-template.directive.mjs +9 -36
- package/esm2020/rendering/loading-template.directive.mjs +1 -1
- package/esm2020/rendering/no-records-template.directive.mjs +11 -58
- package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +10 -56
- package/esm2020/row-reordering/row-reorder.service.mjs +232 -0
- package/esm2020/row-reordering/types.mjs +5 -0
- package/esm2020/row-reordering/utils.mjs +87 -0
- package/esm2020/selection/selectall-checkbox.directive.mjs +12 -1
- package/esm2020/selection/selection-checkbox.directive.mjs +11 -44
- package/esm2020/selection/selection-default.mjs +1 -0
- package/esm2020/selection/selection.directive.mjs +1 -1
- package/excel/excel-command.directive.d.ts +2 -2
- package/fesm2015/progress-kendo-angular-grid.mjs +830 -682
- package/fesm2020/progress-kendo-angular-grid.mjs +826 -682
- package/grid.component.d.ts +46 -4
- package/grid.module.d.ts +87 -85
- package/grouping/group-footer-template.directive.d.ts +9 -35
- package/grouping/group-header-column-template.directive.d.ts +2 -2
- package/grouping/group-header-template.directive.d.ts +9 -37
- package/index.d.ts +2 -0
- package/localization/messages.d.ts +5 -1
- package/navigation/focusable.directive.d.ts +10 -41
- package/package.json +15 -14
- package/pager/pager-template.directive.d.ts +13 -46
- package/pdf/pdf-template.directive.d.ts +10 -38
- package/rendering/body.module.d.ts +9 -8
- package/rendering/cell-loading.template.directive.d.ts +11 -8
- package/rendering/cell-template.directive.d.ts +11 -35
- package/rendering/cell.component.d.ts +5 -0
- package/rendering/details/detail-template.directive.d.ts +10 -58
- package/rendering/details-expand.directive.d.ts +1 -1
- package/rendering/footer/footer-template.directive.d.ts +8 -35
- package/rendering/header/header-template.directive.d.ts +9 -36
- package/rendering/loading-template.directive.d.ts +1 -1
- package/rendering/no-records-template.directive.d.ts +11 -58
- package/rendering/toolbar/toolbar-template.directive.d.ts +10 -56
- package/row-reordering/row-reorder.service.d.ts +56 -0
- package/row-reordering/types.d.ts +40 -0
- package/row-reordering/utils.d.ts +78 -0
- package/schematics/ngAdd/index.js +2 -2
- package/selection/selectall-checkbox.directive.d.ts +12 -1
- package/selection/selection-checkbox.directive.d.ts +11 -44
- package/selection/selection-default.d.ts +1 -0
- package/selection/selection.directive.d.ts +1 -1
|
@@ -11,47 +11,16 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* [focus in a navigable Grid]({% slug keyboard_navigation_grid %}).
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* <
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* <kendo-grid-column>
|
|
25
|
-
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
26
|
-
* <!-- The first focusable element will be focused when pressing Enter on the cell -->
|
|
27
|
-
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
28
|
-
* <button kendoGridFocusable>Update</button>
|
|
29
|
-
* </ng-template>
|
|
30
|
-
* </kendo-grid-column>
|
|
31
|
-
* <kendo-grid-column [width]="100">
|
|
32
|
-
* <ng-template kendoGridCellTemplate>
|
|
33
|
-
* <!-- A single focusable element will be focused during navigation -->
|
|
34
|
-
* <button kendoGridFocusable>Delete</button>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-grid-column>
|
|
37
|
-
* </kendo-grid>
|
|
38
|
-
* <input type="text" placeholder="Tab stop #2" style="margin-top: 8px;" />
|
|
39
|
-
* `
|
|
40
|
-
* })
|
|
41
|
-
*
|
|
42
|
-
* class AppComponent {
|
|
43
|
-
* public readonly data: any = [{
|
|
44
|
-
* "ProductID": 1,
|
|
45
|
-
* "ProductName": "Chai",
|
|
46
|
-
* "UnitPrice": 18.0000,
|
|
47
|
-
* "Discontinued": true
|
|
48
|
-
* }, {
|
|
49
|
-
* "ProductID": 2,
|
|
50
|
-
* "ProductName": "Chang",
|
|
51
|
-
* "UnitPrice": 19.0000,
|
|
52
|
-
* "Discontinued": false
|
|
53
|
-
* }];
|
|
54
|
-
* }
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid [data]="data" [navigable]="true">
|
|
16
|
+
* <kendo-grid-column>
|
|
17
|
+
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
18
|
+
* <!-- The first focusable element will be focused when pressing Enter on the cell -->
|
|
19
|
+
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
20
|
+
* <button kendoGridFocusable>Update</button>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-grid-column>
|
|
23
|
+
* </kendo-grid>
|
|
55
24
|
* ```
|
|
56
25
|
*/
|
|
57
26
|
export declare class FocusableDirective implements FocusableElement, AfterViewInit, OnDestroy {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "12.0.0-develop.
|
|
3
|
+
"version": "12.0.0-develop.9",
|
|
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",
|
|
@@ -32,23 +32,24 @@
|
|
|
32
32
|
"@progress/kendo-data-query": "^1.0.0",
|
|
33
33
|
"@progress/kendo-drawing": "^1.17.2",
|
|
34
34
|
"@progress/kendo-licensing": "^1.0.2",
|
|
35
|
-
"@progress/kendo-angular-buttons": "12.0.0-develop.
|
|
36
|
-
"@progress/kendo-angular-common": "12.0.0-develop.
|
|
37
|
-
"@progress/kendo-angular-dateinputs": "12.0.0-develop.
|
|
38
|
-
"@progress/kendo-angular-dropdowns": "12.0.0-develop.
|
|
39
|
-
"@progress/kendo-angular-excel-export": "12.0.0-develop.
|
|
40
|
-
"@progress/kendo-angular-icons": "12.0.0-develop.
|
|
41
|
-
"@progress/kendo-angular-inputs": "12.0.0-develop.
|
|
42
|
-
"@progress/kendo-angular-intl": "12.0.0-develop.
|
|
43
|
-
"@progress/kendo-angular-l10n": "12.0.0-develop.
|
|
44
|
-
"@progress/kendo-angular-label": "12.0.0-develop.
|
|
45
|
-
"@progress/kendo-angular-pdf-export": "12.0.0-develop.
|
|
46
|
-
"@progress/kendo-angular-popup": "12.0.0-develop.
|
|
35
|
+
"@progress/kendo-angular-buttons": "12.0.0-develop.9",
|
|
36
|
+
"@progress/kendo-angular-common": "12.0.0-develop.9",
|
|
37
|
+
"@progress/kendo-angular-dateinputs": "12.0.0-develop.9",
|
|
38
|
+
"@progress/kendo-angular-dropdowns": "12.0.0-develop.9",
|
|
39
|
+
"@progress/kendo-angular-excel-export": "12.0.0-develop.9",
|
|
40
|
+
"@progress/kendo-angular-icons": "12.0.0-develop.9",
|
|
41
|
+
"@progress/kendo-angular-inputs": "12.0.0-develop.9",
|
|
42
|
+
"@progress/kendo-angular-intl": "12.0.0-develop.9",
|
|
43
|
+
"@progress/kendo-angular-l10n": "12.0.0-develop.9",
|
|
44
|
+
"@progress/kendo-angular-label": "12.0.0-develop.9",
|
|
45
|
+
"@progress/kendo-angular-pdf-export": "12.0.0-develop.9",
|
|
46
|
+
"@progress/kendo-angular-popup": "12.0.0-develop.9",
|
|
47
|
+
"@progress/kendo-angular-utils": "12.0.0-develop.9",
|
|
47
48
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"tslib": "^2.3.1",
|
|
51
|
-
"@progress/kendo-angular-schematics": "12.0.0-develop.
|
|
52
|
+
"@progress/kendo-angular-schematics": "12.0.0-develop.9",
|
|
52
53
|
"@progress/kendo-common": "^0.2.0",
|
|
53
54
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
54
55
|
},
|
|
@@ -6,7 +6,8 @@ import { TemplateRef } from '@angular/core';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the pager template which helps to customize the pager appearance in the Grid. To define a pager
|
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoPagerTemplate` directive inside `<kendo-grid
|
|
9
|
+
* template, nest an `<ng-template>` tag with the `kendoPagerTemplate` directive inside `<kendo-grid>` tag
|
|
10
|
+
* [see example](slug:pager_template_grid).
|
|
10
11
|
*
|
|
11
12
|
* The template context provides the following fields:
|
|
12
13
|
* * `currentPage`—The index of the displayed page.
|
|
@@ -14,53 +15,19 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
* * `skip`—The current skip value.
|
|
15
16
|
* * `total`—The total number of records.
|
|
16
17
|
* * `totalPages`—The total number of available pages.
|
|
17
|
-
* * Needs to be provided as an input to inner pager components used within the template when the Grid is navigable.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* <kendo-grid-column field="ProductName" title="Name" [width]="250">
|
|
33
|
-
* </kendo-grid-column>
|
|
34
|
-
* <kendo-grid-column field="UnitPrice" title="Price" [width]="80" format="{0:c}">
|
|
35
|
-
* </kendo-grid-column>
|
|
36
|
-
*
|
|
37
|
-
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
38
|
-
* <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
|
|
39
|
-
* <kendo-pager-numeric-buttons [buttonCount]="10"></kendo-pager-numeric-buttons>
|
|
40
|
-
* <kendo-pager-next-buttons></kendo-pager-next-buttons>
|
|
41
|
-
* <kendo-pager-info></kendo-pager-info>
|
|
42
|
-
* Current page: {{currentPage}}
|
|
43
|
-
* </ng-template>
|
|
44
|
-
*
|
|
45
|
-
* </kendo-grid>
|
|
46
|
-
* `
|
|
47
|
-
* })
|
|
48
|
-
*
|
|
49
|
-
* class AppComponent {
|
|
50
|
-
* public gridData = [{
|
|
51
|
-
* "ProductID": 1,
|
|
52
|
-
* "ProductName": "Chai",
|
|
53
|
-
* "UnitPrice": 18.0000,
|
|
54
|
-
* "Discontinued": false
|
|
55
|
-
* }, {
|
|
56
|
-
* "ProductID": 2,
|
|
57
|
-
* "ProductName": "Chang",
|
|
58
|
-
* "UnitPrice": 19.0000,
|
|
59
|
-
* "Discontinued": true
|
|
60
|
-
* }
|
|
61
|
-
* ];
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-grid ... [pageable]="true">
|
|
22
|
+
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
23
|
+
* <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
|
|
24
|
+
* <kendo-pager-next-buttons></kendo-pager-next-buttons>
|
|
25
|
+
* <kendo-pager-info></kendo-pager-info>
|
|
26
|
+
* Current page: {{currentPage}}
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
29
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
30
|
+
* </kendo-grid>
|
|
64
31
|
* ```
|
|
65
32
|
*/
|
|
66
33
|
export declare class PagerTemplateDirective {
|
|
@@ -7,50 +7,22 @@ import { PDFExportTemplateDirective } from '@progress/kendo-angular-pdf-export';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the PDF page template of the Grid that helps to customize the PDF pages. To define a page template,
|
|
10
|
-
* nest an `<ng-template>` tag with the `kendoGridPDFTemplate` directive inside `<kendo-grid-pdf
|
|
10
|
+
* nest an `<ng-template>` tag with the `kendoGridPDFTemplate` directive inside `<kendo-grid-pdf>` tag.
|
|
11
11
|
*
|
|
12
12
|
* The template context provides the following fields:
|
|
13
13
|
* - `pageNumber`—Defines PDF page number.
|
|
14
14
|
* - `totalPages`—Defines the total number of PDF pages.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* template
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* <kendo-grid-column field="ProductName">
|
|
27
|
-
* </kendo-grid-column>
|
|
28
|
-
* <kendo-grid-column field="UnitPrice">
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* <kendo-grid-pdf fileName="Products.pdf" paperSize="A4" [margin]="{ top: '1cm', left: '1cm', right: '1cm', bottom: '1cm' }">
|
|
31
|
-
* <ng-template kendoGridPDFTemplate let-pageNum="pageNum" let-totalPages="totalPages">
|
|
32
|
-
* <div style="position: absolute;top: 5px; left: 5px;">
|
|
33
|
-
* Page {{ pageNum }} of {{ totalPages }}
|
|
34
|
-
* </div>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-grid-pdf>
|
|
37
|
-
* </kendo-grid>
|
|
38
|
-
* `
|
|
39
|
-
* })
|
|
40
|
-
*
|
|
41
|
-
* class AppComponent {
|
|
42
|
-
* public gridData = [{
|
|
43
|
-
* "ProductID": 1,
|
|
44
|
-
* "ProductName": "Chai",
|
|
45
|
-
* "UnitPrice": 18.0000
|
|
46
|
-
* }, {
|
|
47
|
-
* "ProductID": 2,
|
|
48
|
-
* "ProductName": "Chang",
|
|
49
|
-
* "UnitPrice": 19.0000
|
|
50
|
-
* }
|
|
51
|
-
* ];
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-grid [data]="gridData">
|
|
19
|
+
* ...
|
|
20
|
+
* <kendo-grid-pdf fileName="Products.pdf" paperSize="A4">
|
|
21
|
+
* <ng-template kendoGridPDFTemplate let-pageNumber="pageNumber" let-totalPages="totalPages">
|
|
22
|
+
* Page {{ pageNumber }} of {{ totalPages }}
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* </kendo-grid-pdf>
|
|
25
|
+
* </kendo-grid>
|
|
54
26
|
* ```
|
|
55
27
|
*/
|
|
56
28
|
export declare class PDFTemplateDirective extends PDFExportTemplateDirective {
|
|
@@ -18,19 +18,20 @@ import * as i12 from "../editing/remove-command.directive";
|
|
|
18
18
|
import * as i13 from "../editing/add-command.directive";
|
|
19
19
|
import * as i14 from "./cell-loading.template.directive";
|
|
20
20
|
import * as i15 from "./loading-template.directive";
|
|
21
|
-
import * as i16 from "
|
|
22
|
-
import * as i17 from "@angular/
|
|
23
|
-
import * as i18 from "
|
|
24
|
-
import * as i19 from "../
|
|
25
|
-
import * as i20 from "
|
|
26
|
-
import * as i21 from "@progress/kendo-angular-
|
|
27
|
-
import * as i22 from "@progress/kendo-angular-
|
|
21
|
+
import * as i16 from "../columns/reorder-column.component";
|
|
22
|
+
import * as i17 from "@angular/common";
|
|
23
|
+
import * as i18 from "@angular/forms";
|
|
24
|
+
import * as i19 from "../shared.module";
|
|
25
|
+
import * as i20 from "../grouping/group.module";
|
|
26
|
+
import * as i21 from "@progress/kendo-angular-inputs";
|
|
27
|
+
import * as i22 from "@progress/kendo-angular-dateinputs";
|
|
28
|
+
import * as i23 from "@progress/kendo-angular-common";
|
|
28
29
|
/**
|
|
29
30
|
* @hidden
|
|
30
31
|
*/
|
|
31
32
|
export declare class BodyModule {
|
|
32
33
|
static exports(): any[];
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<BodyModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BodyModule, [typeof i1.CommandColumnComponent, typeof i2.CheckboxColumnComponent, typeof i3.SelectionCheckboxDirective, typeof i4.CellTemplateDirective, typeof i5.EditTemplateDirective, typeof i6.TableBodyComponent, typeof i7.NoRecordsTemplateDirective, typeof i8.CellComponent, typeof i9.EditCommandDirective, typeof i10.CancelCommandDirective, typeof i11.SaveCommandDirective, typeof i12.RemoveCommandDirective, typeof i13.AddCommandDirective, typeof i14.CellLoadingTemplateDirective, typeof i15.LoadingTemplateDirective], [typeof
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BodyModule, [typeof i1.CommandColumnComponent, typeof i2.CheckboxColumnComponent, typeof i3.SelectionCheckboxDirective, typeof i4.CellTemplateDirective, typeof i5.EditTemplateDirective, typeof i6.TableBodyComponent, typeof i7.NoRecordsTemplateDirective, typeof i8.CellComponent, typeof i9.EditCommandDirective, typeof i10.CancelCommandDirective, typeof i11.SaveCommandDirective, typeof i12.RemoveCommandDirective, typeof i13.AddCommandDirective, typeof i14.CellLoadingTemplateDirective, typeof i15.LoadingTemplateDirective, typeof i16.RowReorderColumnComponent], [typeof i17.CommonModule, typeof i18.ReactiveFormsModule, typeof i18.FormsModule, typeof i19.SharedModule, typeof i20.GroupModule, typeof i21.NumericTextBoxModule, typeof i22.DatePickerModule, typeof i23.ResizeSensorModule], [typeof i1.CommandColumnComponent, typeof i2.CheckboxColumnComponent, typeof i3.SelectionCheckboxDirective, typeof i4.CellTemplateDirective, typeof i5.EditTemplateDirective, typeof i6.TableBodyComponent, typeof i7.NoRecordsTemplateDirective, typeof i8.CellComponent, typeof i9.EditCommandDirective, typeof i10.CancelCommandDirective, typeof i11.SaveCommandDirective, typeof i12.RemoveCommandDirective, typeof i13.AddCommandDirective, typeof i14.CellLoadingTemplateDirective, typeof i15.LoadingTemplateDirective, typeof i16.RowReorderColumnComponent]>;
|
|
35
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<BodyModule>;
|
|
36
37
|
}
|
|
@@ -7,17 +7,20 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the virtual scrolling cell template of the Grid while loading new data. Provides an option to customize the
|
|
9
9
|
* appearance of the indicator that is displayed while new data is loading. To define the loading cell template,
|
|
10
|
-
* nest an `<ng-template>` tag with the `kendoGridCellLoadingTemplate` directive inside `<kendo-grid>`
|
|
10
|
+
* nest an `<ng-template>` tag with the `kendoGridCellLoadingTemplate` directive inside `<kendo-grid>` tag [see example]({% slug virtualscrolling_grid %}#toc-custom-loading-skeleton).
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
|
+
* The template context is set to the current column and the following additional field is passed:
|
|
14
|
+
*
|
|
15
|
+
* - `column`—The current column instance. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax (for example `let-column`).
|
|
13
16
|
*
|
|
14
17
|
* @example
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-grid ... scrollable="virtual" [rowHeight]="36" [height]="450">
|
|
20
|
+
* <ng-template kendoGridCellLoadingTemplate let-column>
|
|
21
|
+
* ...
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-grid>
|
|
21
24
|
* ```
|
|
22
25
|
*/
|
|
23
26
|
export declare class CellLoadingTemplateDirective {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents the column cell template of the Grid
|
|
9
|
-
* Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag
|
|
10
|
-
*
|
|
8
|
+
* Represents the column cell template of the Grid.
|
|
9
|
+
* Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag with the
|
|
10
|
+
* `kendoGridCellTemplate` directive inside a `<kendo-grid-column>` tag [see example](slug:templates_columns_grid#toc-cell-template).
|
|
11
11
|
*
|
|
12
12
|
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
13
|
* - `columnIndex`—The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
|
|
@@ -16,38 +16,14 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Data Row #: {{rowIndex}} /
|
|
28
|
-
* <strong>{{dataItem.ProductName}}</strong>
|
|
29
|
-
* ({{dataItem.Discontinued ? "discontinued" : "active"}})
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* </kendo-grid>
|
|
33
|
-
* `
|
|
34
|
-
* })
|
|
35
|
-
*
|
|
36
|
-
* class AppComponent {
|
|
37
|
-
* public gridData = [{
|
|
38
|
-
* "ProductID": 1,
|
|
39
|
-
* "ProductName": "Chai",
|
|
40
|
-
* "UnitPrice": 18.0000,
|
|
41
|
-
* "Discontinued": false
|
|
42
|
-
* }, {
|
|
43
|
-
* "ProductID": 2,
|
|
44
|
-
* "ProductName": "Chang",
|
|
45
|
-
* "UnitPrice": 19.0000,
|
|
46
|
-
* "Discontinued": true
|
|
47
|
-
* }
|
|
48
|
-
* ];
|
|
49
|
-
* }
|
|
50
|
-
*
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-grid [data]="gridData" ...>
|
|
21
|
+
* <kendo-grid-column field="ProductName">
|
|
22
|
+
* <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex" let-column="column">
|
|
23
|
+
* Data Row: {{rowIndex}}
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-grid-column>
|
|
26
|
+
* </kendo-grid>
|
|
51
27
|
* ```
|
|
52
28
|
*/
|
|
53
29
|
export declare class CellTemplateDirective {
|
|
@@ -9,6 +9,7 @@ import { FormGroup } from '@angular/forms';
|
|
|
9
9
|
import { CellContext } from './common/cell-context';
|
|
10
10
|
import { IdService } from '../common/id.service';
|
|
11
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -19,6 +20,8 @@ export declare class CellComponent implements DoCheck {
|
|
|
19
20
|
private localizationService;
|
|
20
21
|
private cellContext;
|
|
21
22
|
get commandCellClass(): boolean;
|
|
23
|
+
get dragHandleCellClass(): boolean;
|
|
24
|
+
get dragRowHandleLabel(): string;
|
|
22
25
|
column: any;
|
|
23
26
|
columnIndex: number;
|
|
24
27
|
isNew: boolean;
|
|
@@ -28,6 +31,7 @@ export declare class CellComponent implements DoCheck {
|
|
|
28
31
|
set rowIndex(index: number);
|
|
29
32
|
get rowIndex(): number;
|
|
30
33
|
dataItem: any;
|
|
34
|
+
reorderIcon: SVGIcon;
|
|
31
35
|
get isEdited(): boolean;
|
|
32
36
|
get showLoading(): boolean;
|
|
33
37
|
get formGroup(): FormGroup;
|
|
@@ -40,6 +44,7 @@ export declare class CellComponent implements DoCheck {
|
|
|
40
44
|
get selectionCheckboxLabel(): string;
|
|
41
45
|
get isSpanColumn(): boolean;
|
|
42
46
|
get childColumns(): ColumnComponent[];
|
|
47
|
+
get isRowReorderColumn(): boolean;
|
|
43
48
|
private _rowIndex;
|
|
44
49
|
private get isColumnEditable();
|
|
45
50
|
private _templateContext;
|
|
@@ -19,64 +19,16 @@ export declare type DetailTemplateShowIfFn = (dataItem: any, index: number) => b
|
|
|
19
19
|
* To define the detail template, nest an `<ng-template>` tag with the `kendoGridDetailTemplate` directive inside a `<kendo-grid>` tag.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
33
|
-
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
34
|
-
* <kendo-grid-column field="UnitPrice"></kendo-grid-column>
|
|
35
|
-
* <ng-template kendoGridDetailTemplate let-dataItem>
|
|
36
|
-
* <div *ngIf="dataItem.Category">
|
|
37
|
-
* <header>{{dataItem.Category?.CategoryName}}</header>
|
|
38
|
-
* <span>{{dataItem.Category?.Description}}</span>
|
|
39
|
-
* </div>
|
|
40
|
-
* </ng-template>
|
|
41
|
-
* </kendo-grid>
|
|
42
|
-
* `
|
|
43
|
-
* })
|
|
44
|
-
*
|
|
45
|
-
* class AppComponent {
|
|
46
|
-
* public data = [{
|
|
47
|
-
* "ProductID": 1,
|
|
48
|
-
* "ProductName": "Chai",
|
|
49
|
-
* "UnitPrice": 18.0000,
|
|
50
|
-
* "Discontinued": false,
|
|
51
|
-
* "Category": {
|
|
52
|
-
* "CategoryID": 1,
|
|
53
|
-
* "CategoryName": "Beverages",
|
|
54
|
-
* "Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
55
|
-
* }
|
|
56
|
-
* }, {
|
|
57
|
-
* "ProductID": 2,
|
|
58
|
-
* "ProductName": "Chang",
|
|
59
|
-
* "UnitPrice": 19.0000,
|
|
60
|
-
* "Discontinued": false,
|
|
61
|
-
* "Category": {
|
|
62
|
-
* "CategoryID": 1,
|
|
63
|
-
* "CategoryName": "Beverages",
|
|
64
|
-
* "Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
65
|
-
* }
|
|
66
|
-
* }, {
|
|
67
|
-
* "ProductID": 3,
|
|
68
|
-
* "ProductName": "Aniseed Syrup",
|
|
69
|
-
* "UnitPrice": 10.0000,
|
|
70
|
-
* "Discontinued": false,
|
|
71
|
-
* "Category": {
|
|
72
|
-
* "CategoryID": 2,
|
|
73
|
-
* "CategoryName": "Condiments",
|
|
74
|
-
* "Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
75
|
-
* }
|
|
76
|
-
* }];
|
|
77
|
-
*
|
|
78
|
-
* }
|
|
79
|
-
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-grid [data]="data" selectable="true" style="height: 160px">
|
|
24
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
25
|
+
* <ng-template kendoGridDetailTemplate let-dataItem>
|
|
26
|
+
* <div *ngIf="dataItem.Category">
|
|
27
|
+
* <header>{{dataItem.Category?.CategoryName}}</header>
|
|
28
|
+
* span>{{dataItem.Category?.Description}}</span>
|
|
29
|
+
* </div>
|
|
30
|
+
* </ng-template>
|
|
31
|
+
* </kendo-grid>
|
|
80
32
|
* ```
|
|
81
33
|
*
|
|
82
34
|
*/
|
|
@@ -8,7 +8,7 @@ import { Subscription } from 'rxjs';
|
|
|
8
8
|
import { RowArgs } from './common/row-args';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* A directive which controls the expanded state of the master detail rows.
|
|
11
|
+
* A directive which controls the expanded state of the master detail rows. ([see example](slug:master_detail_expanded_state_grid#toc-built-in-directive))
|
|
12
12
|
*/
|
|
13
13
|
export declare class ExpandDetailsDirective implements OnChanges, OnDestroy {
|
|
14
14
|
protected grid: GridComponent;
|
|
@@ -19,41 +19,14 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
* refer to the article on [aggregates]({% slug groupable_grid_with_aggregates %}).
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* {{column.field}}({{columnIndex}})
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* </kendo-grid-column>
|
|
33
|
-
* <kendo-grid-column field="UnitPrice">
|
|
34
|
-
* <ng-template kendoGridFooterTemplate let-column let-columnIndex="columnIndex">
|
|
35
|
-
* {{column.field}}({{columnIndex}})
|
|
36
|
-
* </ng-template>
|
|
37
|
-
* </kendo-grid-column>
|
|
38
|
-
* </kendo-grid>
|
|
39
|
-
* `
|
|
40
|
-
* })
|
|
41
|
-
*
|
|
42
|
-
* class AppComponent {
|
|
43
|
-
* public gridData = [{
|
|
44
|
-
* "ProductID": 1,
|
|
45
|
-
* "ProductName": "Chai",
|
|
46
|
-
* "UnitPrice": 18.0000,
|
|
47
|
-
* "Discontinued": false
|
|
48
|
-
* }, {
|
|
49
|
-
* "ProductID": 2,
|
|
50
|
-
* "ProductName": "Chang",
|
|
51
|
-
* "UnitPrice": 19.0000,
|
|
52
|
-
* "Discontinued": true
|
|
53
|
-
* }
|
|
54
|
-
* ];
|
|
55
|
-
* }
|
|
56
|
-
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-grid [data]="gridData" scrollable="none">
|
|
24
|
+
* <kendo-grid-column field="ProductName">
|
|
25
|
+
* <ng-template kendoGridFooterTemplate let-column let-columnIndex="columnIndex">
|
|
26
|
+
* {{column.field}}({{columnIndex}})
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-grid-column>
|
|
29
|
+
* </kendo-grid>
|
|
57
30
|
* ```
|
|
58
31
|
*/
|
|
59
32
|
export declare class FooterTemplateDirective {
|
|
@@ -9,48 +9,21 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* ([more information and example]({% slug templates_columns_grid %}#toc-header-template)).
|
|
10
10
|
* Helps to customize the table header cell for the column.
|
|
11
11
|
* To define a header template, nest an `<ng-template>` tag with the
|
|
12
|
-
*
|
|
12
|
+
* `kendoGridHeaderTemplate` directive inside the `<kendo-grid-column>` tag.
|
|
13
13
|
*
|
|
14
14
|
* The template context is set to the current column and then the following additional fields are passed:
|
|
15
15
|
* * `column`—Defines an instance of the [ColumnComponent]({% slug api_grid_columncomponent %}) option.
|
|
16
16
|
* * `columnIndex`—Defines the current column index.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* {{column.field}}({{columnIndex}})
|
|
28
|
-
* </ng-template>
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* <kendo-grid-column field="UnitPrice">
|
|
31
|
-
* <ng-template kendoGridHeaderTemplate let-column let-columnIndex="columnIndex">
|
|
32
|
-
* {{column.field}}({{columnIndex}})
|
|
33
|
-
* </ng-template>
|
|
34
|
-
* </kendo-grid-column>
|
|
35
|
-
* </kendo-grid>
|
|
36
|
-
* `
|
|
37
|
-
* })
|
|
38
|
-
*
|
|
39
|
-
* class AppComponent {
|
|
40
|
-
* public gridData = [{
|
|
41
|
-
* "ProductID": 1,
|
|
42
|
-
* "ProductName": "Chai",
|
|
43
|
-
* "UnitPrice": 18.0000,
|
|
44
|
-
* "Discontinued": false
|
|
45
|
-
* }, {
|
|
46
|
-
* "ProductID": 2,
|
|
47
|
-
* "ProductName": "Chang",
|
|
48
|
-
* "UnitPrice": 19.0000,
|
|
49
|
-
* "Discontinued": true
|
|
50
|
-
* }
|
|
51
|
-
* ];
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-grid [data]="gridData">
|
|
21
|
+
* <kendo-grid-column field="ProductName">
|
|
22
|
+
* <ng-template kendoGridHeaderTemplate let-column let-columnIndex="columnIndex">
|
|
23
|
+
* {{column.field}}({{columnIndex}})
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-grid-column>
|
|
26
|
+
* </kendo-grid>
|
|
54
27
|
* ```
|
|
55
28
|
*/
|
|
56
29
|
export declare class HeaderTemplateDirective {
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a loading template that overrides the default loading indicator of the Grid Component.
|
|
9
9
|
* To define a loading template, nest an `<ng-template>` tag with the `kendoGridLoadingTemplate` directive inside the `<kendo-grid>` tag
|
|
10
|
-
* [see example](
|
|
10
|
+
* ([see example](slug:loadingtemplate_grid)).
|
|
11
11
|
*/
|
|
12
12
|
export declare class LoadingTemplateDirective {
|
|
13
13
|
templateRef: TemplateRef<any>;
|