@progress/kendo-angular-grid 12.0.0-develop.1 → 12.0.0-develop.10
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/filtering/cell/autocomplete-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +1 -1
- 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-page-sizes.component.mjs +1 -1
- 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 +838 -690
- package/fesm2020/progress-kendo-angular-grid.mjs +834 -690
- 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
|
@@ -6,66 +6,19 @@ import { TemplateRef } from '@angular/core';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the no-records template of the Grid. Provides an option to customize the
|
|
9
|
-
* appearance of the item that is displayed when no data is present.
|
|
10
|
-
* nest an `<ng-template>` tag with the `kendoGridNoRecordsTemplate`
|
|
11
|
-
*
|
|
12
|
-
* > When the locked columns of the Grid are in use, the template is displayed in the non-locked part of the content.
|
|
9
|
+
* appearance of the item that is displayed when no data is present.
|
|
10
|
+
* To define the no-records template, nest an `<ng-template>` tag with the `kendoGridNoRecordsTemplate`
|
|
11
|
+
* directive inside `<kendo-grid>` [see example](slug:norecordtemplate_grid).
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* template
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* <kendo-grid-column field="UnitPrice"></kendo-grid-column>
|
|
24
|
-
* <ng-template kendoGridNoRecordsTemplate>
|
|
25
|
-
* There are not products. <a href="#" (click)="refresh()">Click here to refresh</a>.
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-grid>
|
|
28
|
-
* `
|
|
29
|
-
* })
|
|
30
|
-
*
|
|
31
|
-
* class AppComponent {
|
|
32
|
-
* public data = [];
|
|
33
|
-
* public refresh() {
|
|
34
|
-
* this.data = [{
|
|
35
|
-
* "ProductID": 1,
|
|
36
|
-
* "ProductName": "Chai",
|
|
37
|
-
* "UnitPrice": 18.0000,
|
|
38
|
-
* "Discontinued": false,
|
|
39
|
-
* "Category": {
|
|
40
|
-
* "CategoryID": 1,
|
|
41
|
-
* "CategoryName": "Beverages",
|
|
42
|
-
* "Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
43
|
-
* }
|
|
44
|
-
* }, {
|
|
45
|
-
* "ProductID": 2,
|
|
46
|
-
* "ProductName": "Chang",
|
|
47
|
-
* "UnitPrice": 19.0000,
|
|
48
|
-
* "Discontinued": false,
|
|
49
|
-
* "Category": {
|
|
50
|
-
* "CategoryID": 1,
|
|
51
|
-
* "CategoryName": "Beverages",
|
|
52
|
-
* "Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
53
|
-
* }
|
|
54
|
-
* }, {
|
|
55
|
-
* "ProductID": 3,
|
|
56
|
-
* "ProductName": "Aniseed Syrup",
|
|
57
|
-
* "UnitPrice": 10.0000,
|
|
58
|
-
* "Discontinued": false,
|
|
59
|
-
* "Category": {
|
|
60
|
-
* "CategoryID": 2,
|
|
61
|
-
* "CategoryName": "Condiments",
|
|
62
|
-
* "Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
63
|
-
* }
|
|
64
|
-
* }];
|
|
65
|
-
*
|
|
66
|
-
* }
|
|
67
|
-
* }
|
|
68
|
-
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid [data]="data">
|
|
16
|
+
* <ng-template kendoGridNoRecordsTemplate>
|
|
17
|
+
* There are not products. <a href="#" (click)="refresh()">Click here to refresh</a>.
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
20
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
21
|
+
* </kendo-grid>
|
|
69
22
|
* ```
|
|
70
23
|
*/
|
|
71
24
|
export declare class NoRecordsTemplateDirective {
|
|
@@ -11,69 +11,23 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* - `position`—The position at which the toolbar template is rendered. The possible values are "top" and "bottom".
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <input type="radio" id="bottom" name="position" value="bottom" (click)="positionChange($event)"/>
|
|
23
|
-
* <label class="k-radio-label" for="bottom">Bottom</label><br/>
|
|
24
|
-
* <input type="radio" id="both" name="position" value="both" (click)="positionChange($event)"/>
|
|
25
|
-
* <label class="k-radio-label" for="both">Both</label><br/>
|
|
26
|
-
* </div>
|
|
27
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
28
|
-
* <ng-template kendoGridToolbarTemplate [position]="position" let-position="position">
|
|
29
|
-
* <button (click)="onClick()">Custom action</button>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* <kendo-grid-column field="ProductName">
|
|
32
|
-
* </kendo-grid-column>
|
|
33
|
-
* <kendo-grid-column field="UnitPrice">
|
|
34
|
-
* </kendo-grid-column>
|
|
35
|
-
* </kendo-grid>
|
|
36
|
-
* `
|
|
37
|
-
* })
|
|
38
|
-
*
|
|
39
|
-
* class AppComponent {
|
|
40
|
-
* public position: 'top' | 'bottom' | 'both' = 'top';
|
|
41
|
-
*
|
|
42
|
-
* public gridData = [{
|
|
43
|
-
* "ProductID": 1,
|
|
44
|
-
* "ProductName": "Chai",
|
|
45
|
-
* "UnitPrice": 18.0000,
|
|
46
|
-
* "Discontinued": false
|
|
47
|
-
* }, {
|
|
48
|
-
* "ProductID": 2,
|
|
49
|
-
* "ProductName": "Chang",
|
|
50
|
-
* "UnitPrice": 19.0000,
|
|
51
|
-
* "Discontinued": true
|
|
52
|
-
* }
|
|
53
|
-
* ];
|
|
54
|
-
*
|
|
55
|
-
* public onClick(): void {
|
|
56
|
-
* console.log("button was clicked");
|
|
57
|
-
* }
|
|
58
|
-
*
|
|
59
|
-
* public positionChange({ target }): void {
|
|
60
|
-
* this.position = target.value;
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
16
|
+
* <ng-template kendoGridToolbarTemplate [position]="position" let-position="position">
|
|
17
|
+
* <button (click)="onClick()">Custom action</button>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* <kendo-grid-column field="ProductName">
|
|
20
|
+
* </kendo-grid-column>
|
|
21
|
+
* </kendo-grid>
|
|
64
22
|
* ```
|
|
65
23
|
*/
|
|
66
24
|
export declare class ToolbarTemplateDirective {
|
|
67
25
|
templateRef: TemplateRef<any>;
|
|
68
26
|
_position: 'top' | 'bottom' | 'both';
|
|
69
27
|
/**
|
|
70
|
-
* The position of the toolbar ([see example]({% slug toolbartemplate_grid %})).
|
|
28
|
+
* The position of the toolbar ([see example]({% slug toolbartemplate_grid %}#toc-setting-the-toolbar-position)).
|
|
71
29
|
*
|
|
72
|
-
*
|
|
73
|
-
* - `top`—Positions the toolbar above the group panel or header.
|
|
74
|
-
* - `bottom`—Positions the toolbar below the pager.
|
|
75
|
-
* - `both`—Displays two toolbar instances. Positions the first one above
|
|
76
|
-
* the group panel or header and the second one below the pager.
|
|
30
|
+
* @default 'top'
|
|
77
31
|
*/
|
|
78
32
|
set position(position: 'top' | 'bottom' | 'both');
|
|
79
33
|
get position(): 'top' | 'bottom' | 'both';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DragTargetPressEvent, DragTargetDragEvent, DropTargetEvent } from '@progress/kendo-angular-utils';
|
|
6
|
+
import { EventEmitter, Renderer2 } from '@angular/core';
|
|
7
|
+
import { RowReorderEvent } from './types';
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { ColumnList } from '../columns/column-list';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class RowReorderService {
|
|
15
|
+
private renderer;
|
|
16
|
+
hintElement: HTMLElement;
|
|
17
|
+
defaultSelectors: {
|
|
18
|
+
handle: string;
|
|
19
|
+
dragTarget: string;
|
|
20
|
+
dropTarget: string;
|
|
21
|
+
};
|
|
22
|
+
hintText: string;
|
|
23
|
+
skip: number;
|
|
24
|
+
private dropIndicator;
|
|
25
|
+
private lastDropPosition;
|
|
26
|
+
private dragTarget;
|
|
27
|
+
private dropTarget;
|
|
28
|
+
rowReorder: EventEmitter<RowReorderEvent>;
|
|
29
|
+
constructor(renderer: Renderer2);
|
|
30
|
+
press(ev: DragTargetPressEvent): void;
|
|
31
|
+
dragStart(): void;
|
|
32
|
+
drag(ev: DragTargetDragEvent): void;
|
|
33
|
+
dragEnter(ev: DropTargetEvent): void;
|
|
34
|
+
dragLeave(): void;
|
|
35
|
+
dragEnd(): void;
|
|
36
|
+
drop(ev: DropTargetEvent): void;
|
|
37
|
+
reorderRows(ev: RowReorderEvent, collection: Array<any>): void;
|
|
38
|
+
get hintIcon(): string;
|
|
39
|
+
get hintSVGIcon(): SVGIcon;
|
|
40
|
+
getDefaultHintText(columns: ColumnList, data: any[]): string;
|
|
41
|
+
private rowReorderArgs;
|
|
42
|
+
private getDragRowPerElement;
|
|
43
|
+
private createDropIndicator;
|
|
44
|
+
private destroyDropIndicator;
|
|
45
|
+
private decorateHint;
|
|
46
|
+
private positionDropIndicator;
|
|
47
|
+
private calculateIndexToAdd;
|
|
48
|
+
private decorateDropIndicator;
|
|
49
|
+
private getDropPosition;
|
|
50
|
+
private updateDropIndicatorPosition;
|
|
51
|
+
private shouldHideDropIndicator;
|
|
52
|
+
private hide;
|
|
53
|
+
private show;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowReorderService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RowReorderService>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* The returned type of the `rowReorder` event
|
|
7
|
+
* ([see example](ToDo).
|
|
8
|
+
*/
|
|
9
|
+
export interface RowReorderEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The rows that are currently dragged and the data associated with them.
|
|
12
|
+
*/
|
|
13
|
+
draggedRows: DragRow[];
|
|
14
|
+
/**
|
|
15
|
+
* The row over which the dragged rows are dropped.
|
|
16
|
+
*/
|
|
17
|
+
dropTargetRow?: DragRow;
|
|
18
|
+
/**
|
|
19
|
+
* The drop position of the dragged row.
|
|
20
|
+
*/
|
|
21
|
+
dropPosition: DropPosition;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents a reorderable data row with an associated data item.
|
|
25
|
+
*/
|
|
26
|
+
export interface DragRow {
|
|
27
|
+
/**
|
|
28
|
+
* The row data item.
|
|
29
|
+
*/
|
|
30
|
+
dataItem: any;
|
|
31
|
+
/**
|
|
32
|
+
* The data row index.
|
|
33
|
+
*/
|
|
34
|
+
rowIndex: number;
|
|
35
|
+
/**
|
|
36
|
+
* The row HTML element.
|
|
37
|
+
*/
|
|
38
|
+
element: HTMLElement;
|
|
39
|
+
}
|
|
40
|
+
export declare type DropPosition = 'before' | 'after' | 'forbidden';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const isNextSibling: (dropTarget: HTMLElement, dragTarget: HTMLElement) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPreviousSibling: (dropTarget: HTMLElement, dragTarget: HTMLElement) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const isDifferentParent: (dropTarget: HTMLElement, dragTarget: HTMLElement) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function getOffset(element: any): {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const hintIcons: {
|
|
28
|
+
forbidden: string;
|
|
29
|
+
before: string;
|
|
30
|
+
after: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const hintSVGIcons: {
|
|
36
|
+
forbidden: import("@progress/kendo-svg-icons").SVGIcon;
|
|
37
|
+
before: import("@progress/kendo-svg-icons").SVGIcon;
|
|
38
|
+
after: import("@progress/kendo-svg-icons").SVGIcon;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const dropPosition: {
|
|
44
|
+
forbidden: string;
|
|
45
|
+
before: string;
|
|
46
|
+
after: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare const hintStyles: {
|
|
52
|
+
zIndex: string;
|
|
53
|
+
display: string;
|
|
54
|
+
position: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const hintClasses: string[];
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const dropIndicatorStyles: {
|
|
64
|
+
zIndex: string;
|
|
65
|
+
position: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
export declare const dropIndicatorClasses: string[];
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
export declare const defaultSelectors: {
|
|
75
|
+
handle: string;
|
|
76
|
+
dragTarget: string;
|
|
77
|
+
dropTarget: string;
|
|
78
|
+
};
|
|
@@ -4,9 +4,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '12.0.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '12.0.0-develop.10',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '12.0.0-develop.
|
|
9
|
+
'@progress/kendo-angular-dialog': '12.0.0-develop.10',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^1.0.0'
|
|
12
12
|
} });
|
|
@@ -7,7 +7,18 @@ import { SelectionService } from './selection.service';
|
|
|
7
7
|
import { SelectAllCheckboxState } from './types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* Represents the select-all checkbox feature of the Grid ([see example](
|
|
10
|
+
* Represents the select-all checkbox feature of the Grid ([see example](slug:grid_selection_persistence#toc-selecting-all-items)).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <input
|
|
15
|
+
* type="checkbox"
|
|
16
|
+
* kendoCheckBox
|
|
17
|
+
* kendoGridSelectAllCheckbox
|
|
18
|
+
* [state]="selectAllState"
|
|
19
|
+
* (selectAllChange)="onSelectAllChange($event)"
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
11
22
|
*/
|
|
12
23
|
export declare class SelectAllCheckboxDirective implements AfterContentChecked, OnDestroy, OnChanges {
|
|
13
24
|
private selectionService;
|
|
@@ -7,53 +7,20 @@ import { SelectionService } from './selection.service';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the row-selection checkbox of the Grid. The directive expects the
|
|
10
|
-
* index of the current row as an input parameter. Inside the
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* with the directive, a [selectionChange]({% slug api_grid_gridcomponent %}#toc-selectionChange)
|
|
10
|
+
* index of the current row as an input parameter. Inside the [`CellTemplateDirective`](slug:api_grid_celltemplatedirective), apply the
|
|
11
|
+
* `kendoGridSelectionCheckbox` to an `<input type="checkbox"/>` element. When the user clicks the checkbox that is associated
|
|
12
|
+
* with the directive, a [selectionChange](slug:api_grid_gridcomponent#toc-selectionChange)
|
|
14
13
|
* event is triggered.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* Select row <input [kendoGridSelectionCheckbox]="idx" />
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-grid-checkbox-column>
|
|
28
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* </kendo-grid>
|
|
33
|
-
* `
|
|
34
|
-
* })
|
|
35
|
-
*
|
|
36
|
-
* class AppComponent {
|
|
37
|
-
* public gridData: any[];
|
|
38
|
-
*
|
|
39
|
-
* constructor() {
|
|
40
|
-
* this.gridData = products;
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* const products = [{
|
|
45
|
-
* "ProductID": 1,
|
|
46
|
-
* "ProductName": "Chai",
|
|
47
|
-
* "UnitPrice": 18.0000,
|
|
48
|
-
* "Discontinued": true
|
|
49
|
-
* }, {
|
|
50
|
-
* "ProductID": 2,
|
|
51
|
-
* "ProductName": "Chang",
|
|
52
|
-
* "UnitPrice": 19.0000,
|
|
53
|
-
* "Discontinued": false
|
|
54
|
-
* }
|
|
55
|
-
* ];
|
|
56
|
-
*
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-grid ... >
|
|
18
|
+
* <kendo-grid-column>
|
|
19
|
+
* <ng-template kendoGridCellTemplate let-rowIndex="rowIndex">
|
|
20
|
+
* <input ... [kendoGridSelectionCheckbox]="rowIndex"/>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-grid-column>
|
|
23
|
+
* </kendo-grid>
|
|
57
24
|
* ```
|
|
58
25
|
*/
|
|
59
26
|
export declare class SelectionCheckboxDirective implements AfterContentChecked, OnDestroy {
|
|
@@ -8,7 +8,7 @@ import { Selection } from "./selection-default";
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* A directive which stores the row selection state of the Grid in memory
|
|
11
|
-
* ([see example]({% slug selection_grid %}#toc-
|
|
11
|
+
* ([see example]({% slug selection_grid %}#toc-toggling-the-selection-functionality)).
|
|
12
12
|
*/
|
|
13
13
|
export declare class SelectionDirective extends Selection implements OnInit, OnDestroy {
|
|
14
14
|
protected ctx: ContextService;
|