@progress/kendo-angular-grid 12.0.0-develop.8 → 12.0.0

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.
Files changed (111) hide show
  1. package/column-menu/column-menu-item-content-template.directive.d.ts +13 -24
  2. package/column-menu/column-menu-template.directive.d.ts +14 -28
  3. package/column-menu/column-menu.service.d.ts +9 -21
  4. package/columns/column-base.d.ts +18 -369
  5. package/columns/reorder-column.component.d.ts +31 -0
  6. package/columns/sort-settings.d.ts +20 -4
  7. package/common/fetch-data-callback.d.ts +1 -1
  8. package/common/preventable-event.d.ts +1 -1
  9. package/common/single-popup.service.d.ts +1 -1
  10. package/common/size-options.d.ts +1 -2
  11. package/data/grid-item.interface.d.ts +6 -3
  12. package/databinding.directive.d.ts +15 -1
  13. package/editing/add-command.directive.d.ts +1 -1
  14. package/editing/cancel-command.directive.d.ts +4 -16
  15. package/editing/edit-template.directive.d.ts +2 -3
  16. package/editing/remove-command.directive.d.ts +6 -6
  17. package/editing/save-command.directive.d.ts +3 -15
  18. package/editing-directives/in-cell-editing.directive.d.ts +1 -1
  19. package/editing-directives/template-editing.directive.d.ts +1 -1
  20. package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +13 -24
  21. package/esm2020/column-menu/column-menu-template.directive.mjs +14 -28
  22. package/esm2020/column-menu/column-menu.service.mjs +9 -21
  23. package/esm2020/columns/column-base.mjs +10 -40
  24. package/esm2020/columns/reorder-column.component.mjs +55 -0
  25. package/esm2020/common/preventable-event.mjs +1 -1
  26. package/esm2020/common/single-popup.service.mjs +1 -1
  27. package/esm2020/databinding.directive.mjs +30 -3
  28. package/esm2020/editing/add-command.directive.mjs +1 -1
  29. package/esm2020/editing/cancel-command.directive.mjs +4 -16
  30. package/esm2020/editing/edit-template.directive.mjs +2 -3
  31. package/esm2020/editing/remove-command.directive.mjs +6 -6
  32. package/esm2020/editing/save-command.directive.mjs +3 -15
  33. package/esm2020/editing-directives/in-cell-editing.directive.mjs +1 -1
  34. package/esm2020/editing-directives/template-editing.directive.mjs +1 -1
  35. package/esm2020/excel/excel-command.directive.mjs +2 -2
  36. package/esm2020/excel/excel.module.mjs +5 -15
  37. package/esm2020/grid.component.mjs +195 -38
  38. package/esm2020/grid.module.mjs +76 -81
  39. package/esm2020/grouping/group-footer-template.directive.mjs +9 -35
  40. package/esm2020/grouping/group-header-column-template.directive.mjs +2 -2
  41. package/esm2020/grouping/group-header-template.directive.mjs +9 -37
  42. package/esm2020/index.mjs +1 -0
  43. package/esm2020/layout/sizing-options.service.mjs +3 -0
  44. package/esm2020/localization/messages.mjs +3 -1
  45. package/esm2020/navigation/focusable.directive.mjs +10 -41
  46. package/esm2020/package-metadata.mjs +2 -2
  47. package/esm2020/pager/pager-template.directive.mjs +13 -46
  48. package/esm2020/pdf/pdf-template.directive.mjs +10 -38
  49. package/esm2020/pdf/pdf.module.mjs +7 -16
  50. package/esm2020/rendering/body.module.mjs +9 -4
  51. package/esm2020/rendering/cell-loading.template.directive.mjs +11 -8
  52. package/esm2020/rendering/cell-template.directive.mjs +11 -35
  53. package/esm2020/rendering/cell.component.mjs +43 -10
  54. package/esm2020/rendering/details/detail-template.directive.mjs +10 -58
  55. package/esm2020/rendering/details-expand.directive.mjs +1 -1
  56. package/esm2020/rendering/footer/footer-template.directive.mjs +8 -35
  57. package/esm2020/rendering/header/header-template.directive.mjs +9 -36
  58. package/esm2020/rendering/loading-template.directive.mjs +1 -1
  59. package/esm2020/rendering/no-records-template.directive.mjs +11 -58
  60. package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
  61. package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +10 -56
  62. package/esm2020/row-reordering/row-reorder.service.mjs +233 -0
  63. package/esm2020/row-reordering/types.mjs +5 -0
  64. package/esm2020/row-reordering/utils.mjs +87 -0
  65. package/esm2020/selection/selectall-checkbox.directive.mjs +12 -1
  66. package/esm2020/selection/selection-checkbox.directive.mjs +11 -44
  67. package/esm2020/selection/selection-default.mjs +1 -0
  68. package/esm2020/selection/selection.directive.mjs +1 -1
  69. package/excel/excel-command.directive.d.ts +2 -2
  70. package/excel/excel.module.d.ts +5 -15
  71. package/fesm2015/progress-kendo-angular-grid.mjs +869 -792
  72. package/fesm2020/progress-kendo-angular-grid.mjs +869 -796
  73. package/filtering/filterable.d.ts +10 -0
  74. package/grid.component.d.ts +46 -4
  75. package/grid.module.d.ts +93 -101
  76. package/grouping/group-footer-template.directive.d.ts +9 -35
  77. package/grouping/group-header-column-template.directive.d.ts +2 -2
  78. package/grouping/group-header-template.directive.d.ts +9 -37
  79. package/index.d.ts +2 -0
  80. package/layout/sizing-options.service.d.ts +3 -0
  81. package/localization/messages.d.ts +5 -1
  82. package/navigation/focusable.directive.d.ts +10 -41
  83. package/navigation/navigable-settings.d.ts +15 -1
  84. package/package.json +15 -14
  85. package/pager/pager-settings.d.ts +8 -12
  86. package/pager/pager-template.directive.d.ts +13 -46
  87. package/pdf/pdf-template.directive.d.ts +10 -38
  88. package/pdf/pdf.module.d.ts +7 -16
  89. package/rendering/body.module.d.ts +9 -8
  90. package/rendering/cell-loading.template.directive.d.ts +11 -8
  91. package/rendering/cell-template.directive.d.ts +11 -35
  92. package/rendering/cell.component.d.ts +5 -0
  93. package/rendering/common/row-class.d.ts +4 -4
  94. package/rendering/details/detail-template.directive.d.ts +10 -58
  95. package/rendering/details-expand.directive.d.ts +1 -1
  96. package/rendering/footer/footer-template.directive.d.ts +8 -35
  97. package/rendering/header/header-template.directive.d.ts +9 -36
  98. package/rendering/loading-template.directive.d.ts +1 -1
  99. package/rendering/no-records-template.directive.d.ts +11 -58
  100. package/rendering/toolbar/toolbar-position.d.ts +18 -1
  101. package/rendering/toolbar/toolbar-template.directive.d.ts +10 -56
  102. package/row-reordering/row-reorder.service.d.ts +57 -0
  103. package/row-reordering/types.d.ts +40 -0
  104. package/row-reordering/utils.d.ts +78 -0
  105. package/schematics/ngAdd/index.js +2 -2
  106. package/scrolling/scrollmode.d.ts +4 -4
  107. package/selection/selectall-checkbox.directive.d.ts +12 -1
  108. package/selection/selection-checkbox.directive.d.ts +11 -44
  109. package/selection/selection-default.d.ts +1 -0
  110. package/selection/selection.directive.d.ts +1 -1
  111. package/selection/types.d.ts +24 -2
@@ -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
- * ```ts-preview
23
- *
24
- * _@Component({
25
- * selector: 'my-app',
26
- * template: `
27
- * <kendo-grid [data]="gridData" scrollable="none">
28
- * <kendo-grid-column field="ProductName">
29
- * <ng-template kendoGridFooterTemplate let-column let-columnIndex="columnIndex">
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
- * [kendoGridHeaderTemplate]({% slug api_grid_headertemplatedirective %}) directive inside the `<kendo-grid-column>` tag.
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`&mdash;Defines an instance of the [ColumnComponent]({% slug api_grid_columncomponent %}) option.
16
16
  * * `columnIndex`&mdash;Defines the current column index.
17
17
  *
18
18
  * @example
19
- * ```ts-preview
20
- *
21
- * _@Component({
22
- * selector: 'my-app',
23
- * template: `
24
- * <kendo-grid [data]="gridData">
25
- * <kendo-grid-column field="ProductName">
26
- * <ng-template kendoGridHeaderTemplate let-column let-columnIndex="columnIndex">
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]({% slug binding_grid %}#toc-loading-template).
10
+ * ([see example](slug:loadingtemplate_grid)).
11
11
  */
12
12
  export declare class LoadingTemplateDirective {
13
13
  templateRef: TemplateRef<any>;
@@ -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. To define the no-records template,
10
- * nest an `<ng-template>` tag with the `kendoGridNoRecordsTemplate` directive inside `<kendo-grid>`.
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
- * ```ts-preview
16
- *
17
- * _@Component({
18
- * selector: 'my-app',
19
- * template: `
20
- * <kendo-grid [data]="data">
21
- * <kendo-grid-column field="ProductID"></kendo-grid-column>
22
- * <kendo-grid-column field="ProductName"></kendo-grid-column>
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 {
@@ -2,4 +2,21 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- export declare type ToolbarPosition = 'top' | 'bottom';
5
+ /**
6
+ * Defines the settings for `position` property of the the Grid Toolbar Template. [See example](slug:toolbartemplate_grid#toc-setting-the-toolbar-position)
7
+ *
8
+ * The possible values are:
9
+ * * `top`&mdash;Displays the Toolbar a the top of the Grid.
10
+ * * `bottom`&mdash;Displays the Toolbar at the bottom of the Grid.
11
+ * * `both`&mdash;Displays the Toolbar at the top and bottom of the Grid.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-grid >
16
+ * <ng-template kendoGridToolbarTemplate position="bottom" let-position="position">
17
+ * <button (click)="onClick()">Custom action</button>
18
+ * </ng-template>
19
+ * </kendo-grid>
20
+ * ```
21
+ */
22
+ export declare type ToolbarPosition = 'top' | 'bottom' | 'both';
@@ -11,69 +11,23 @@ import * as i0 from "@angular/core";
11
11
  * - `position`&mdash;The position at which the toolbar template is rendered. The possible values are "top" and "bottom".
12
12
  *
13
13
  * @example
14
- * ```ts-preview
15
- *
16
- * _@Component({
17
- * selector: 'my-app',
18
- * template: `
19
- * <div class="example-config">
20
- * <input type="radio" id="top" name="position" value="top" checked (click)="positionChange($event)"/>
21
- * <label class="k-radio-label" for="top">Top</label><br/>
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
- * The possible values are:
73
- * - `top`&mdash;Positions the toolbar above the group panel or header.
74
- * - `bottom`&mdash;Positions the toolbar below the pager.
75
- * - `both`&mdash;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,57 @@
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
+ private offsetY;
29
+ rowReorder: EventEmitter<RowReorderEvent>;
30
+ constructor(renderer: Renderer2);
31
+ press(ev: DragTargetPressEvent): void;
32
+ dragStart(): void;
33
+ drag(ev: DragTargetDragEvent): void;
34
+ dragEnter(ev: DropTargetEvent): void;
35
+ dragLeave(): void;
36
+ dragEnd(): void;
37
+ drop(ev: DropTargetEvent): void;
38
+ reorderRows(ev: RowReorderEvent, collection: Array<any>): void;
39
+ get hintIcon(): string;
40
+ get hintSVGIcon(): SVGIcon;
41
+ getDefaultHintText(columns: ColumnList, data: any[]): string;
42
+ private rowReorderArgs;
43
+ private getDragRowPerElement;
44
+ private createDropIndicator;
45
+ private destroyDropIndicator;
46
+ private decorateHint;
47
+ private positionDropIndicator;
48
+ private calculateIndexToAdd;
49
+ private decorateDropIndicator;
50
+ private getDropPosition;
51
+ private updateDropIndicatorPosition;
52
+ private shouldHideDropIndicator;
53
+ private hide;
54
+ private show;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowReorderService, never>;
56
+ static ɵprov: i0.ɵɵInjectableDeclaration<RowReorderService>;
57
+ }
@@ -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.8',
7
+ '@progress/kendo-angular-treeview': '12.0.0',
8
8
  // peer dependency of kendo-angular-inputs
9
- '@progress/kendo-angular-dialog': '12.0.0-develop.8',
9
+ '@progress/kendo-angular-dialog': '12.0.0',
10
10
  // peer dependency of kendo-angular-icons
11
11
  '@progress/kendo-svg-icons': '^1.0.0'
12
12
  } });
@@ -6,12 +6,12 @@
6
6
  * The scroll mode of the Grid.
7
7
  *
8
8
  * The available values are:
9
- * - `none`
10
- * - `scrollable`
11
- * - `virtual`
9
+ * * `none`&mdash;Scrollbars are hidden. The Grid cannot be scrolled.
10
+ * * `scrollable`&mdash;Displays scrollbars in Grid.
11
+ * * `virtual`&mdash;Enables the [virtual scroll mode](slug:virtualscrolling_grid) of the Grid.
12
12
  *
13
13
  * @example
14
- * ```html-no-run
14
+ * ```html
15
15
  * <kendo-grid scrollable="scrollable"></kendo-grid>
16
16
  * ```
17
17
  */
@@ -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]({% slug selection_grid %}#toc-select-all-feature)).
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
- * [CheckboxColumnComponent]({% slug api_grid_checkboxcolumncomponent %}), apply the
12
- * directive to an `input` element. When the user clicks the checkbox that is associated
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
- * ```ts-preview
18
- *
19
- * _@Component({
20
- * selector: 'my-app',
21
- * template: `
22
- * <kendo-grid [data]="gridData" [selectable]="{enabled: true, checkboxOnly: true}">
23
- * <kendo-grid-checkbox-column title="Custom checkbox">
24
- * <ng-template kendoGridCellTemplate let-idx="rowIndex">
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 {
@@ -18,6 +18,7 @@ export declare class Selection {
18
18
  protected cd: ChangeDetectorRef;
19
19
  /**
20
20
  * Defines the collection that will store the selected item keys.
21
+ * @default []
21
22
  */
22
23
  selectedKeys: any[];
23
24
  /**
@@ -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-during-data-operations)).
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;
@@ -6,7 +6,7 @@ import { ColumnComponent } from './../columns/column.component';
6
6
  import { RowArgs } from './../rendering/common/row-args';
7
7
  /**
8
8
  * Represents the callback that is used by the
9
- * [cellSelected]({% slug api_grid_gridcomponent %}#toc-cellselected) property.
9
+ * [cellSelected]({% slug api_grid_gridcomponent %}#toc-cellselected) property ([see example](slug:grid_selection_custom#toc-setting-the-selected-cells)).
10
10
  */
11
11
  export declare type CellSelectedFn = (row: RowArgs, column: ColumnComponent, colIndex: number) => {
12
12
  selected: boolean;
@@ -120,11 +120,33 @@ export interface SelectableSettings {
120
120
  drag?: boolean;
121
121
  }
122
122
  /**
123
- * Represents the available selection modes.
123
+ * Represents the available selection modes. [See example](slug:grid_row_selection).
124
+ *
125
+ * The available values are:
126
+ * * `single`&mdash;Enables single selection. If you click the selected row, it will not be deselected. [See example](slug:grid_row_selection#toc-single-row-selection).
127
+ * * `multiple`&mdash;Enables multiple selection. [See example](slug:grid_row_selection#toc-multiple-rows-selection).
128
+ *
129
+ * @example
130
+ * ```html
131
+ * <kendo-grid [selectable]="{mode: 'multiple'}"></kendo-grid>
132
+ * ```
124
133
  */
125
134
  export declare type SelectableMode = "single" | "multiple";
126
135
  /**
127
136
  * Represents the possible states of the select-all checkbox.
137
+ *
138
+ * @example
139
+ * ```html
140
+ * <kendo-grid-column>
141
+ * <ng-template kendoGridHeaderTemplate>
142
+ * <input
143
+ * kendoGridSelectAllCheckbox
144
+ * state="indeterminate"
145
+ * ...
146
+ * />
147
+ * </ng-template>
148
+ * <kendo-grid-column>
149
+ * ```
128
150
  */
129
151
  export declare type SelectAllCheckboxState = "checked" | "unchecked" | "indeterminate";
130
152
  /**