@progress/kendo-angular-grid 12.0.0-develop.1 → 12.0.0-develop.11

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 (119) 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/filtering/cell/autocomplete-filter-cell.component.mjs +1 -1
  38. package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +1 -1
  39. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
  40. package/esm2020/filtering/menu/date-filter-menu.component.mjs +1 -1
  41. package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
  42. package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +1 -1
  43. package/esm2020/filtering/menu/string-filter-menu.component.mjs +1 -1
  44. package/esm2020/grid.component.mjs +195 -38
  45. package/esm2020/grid.module.mjs +76 -81
  46. package/esm2020/grouping/group-footer-template.directive.mjs +9 -35
  47. package/esm2020/grouping/group-header-column-template.directive.mjs +2 -2
  48. package/esm2020/grouping/group-header-template.directive.mjs +9 -37
  49. package/esm2020/index.mjs +1 -0
  50. package/esm2020/layout/sizing-options.service.mjs +3 -0
  51. package/esm2020/localization/messages.mjs +3 -1
  52. package/esm2020/navigation/focusable.directive.mjs +10 -41
  53. package/esm2020/package-metadata.mjs +2 -2
  54. package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
  55. package/esm2020/pager/pager-template.directive.mjs +13 -46
  56. package/esm2020/pdf/pdf-template.directive.mjs +10 -38
  57. package/esm2020/pdf/pdf.module.mjs +7 -16
  58. package/esm2020/rendering/body.module.mjs +9 -4
  59. package/esm2020/rendering/cell-loading.template.directive.mjs +11 -8
  60. package/esm2020/rendering/cell-template.directive.mjs +11 -35
  61. package/esm2020/rendering/cell.component.mjs +43 -10
  62. package/esm2020/rendering/details/detail-template.directive.mjs +10 -58
  63. package/esm2020/rendering/details-expand.directive.mjs +1 -1
  64. package/esm2020/rendering/footer/footer-template.directive.mjs +8 -35
  65. package/esm2020/rendering/header/header-template.directive.mjs +9 -36
  66. package/esm2020/rendering/loading-template.directive.mjs +1 -1
  67. package/esm2020/rendering/no-records-template.directive.mjs +11 -58
  68. package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
  69. package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +10 -56
  70. package/esm2020/row-reordering/row-reorder.service.mjs +232 -0
  71. package/esm2020/row-reordering/types.mjs +5 -0
  72. package/esm2020/row-reordering/utils.mjs +87 -0
  73. package/esm2020/selection/selectall-checkbox.directive.mjs +12 -1
  74. package/esm2020/selection/selection-checkbox.directive.mjs +11 -44
  75. package/esm2020/selection/selection-default.mjs +1 -0
  76. package/esm2020/selection/selection.directive.mjs +1 -1
  77. package/excel/excel-command.directive.d.ts +2 -2
  78. package/excel/excel.module.d.ts +5 -15
  79. package/fesm2015/progress-kendo-angular-grid.mjs +876 -800
  80. package/fesm2020/progress-kendo-angular-grid.mjs +876 -804
  81. package/filtering/filterable.d.ts +10 -0
  82. package/grid.component.d.ts +46 -4
  83. package/grid.module.d.ts +93 -101
  84. package/grouping/group-footer-template.directive.d.ts +9 -35
  85. package/grouping/group-header-column-template.directive.d.ts +2 -2
  86. package/grouping/group-header-template.directive.d.ts +9 -37
  87. package/index.d.ts +2 -0
  88. package/layout/sizing-options.service.d.ts +3 -0
  89. package/localization/messages.d.ts +5 -1
  90. package/navigation/focusable.directive.d.ts +10 -41
  91. package/navigation/navigable-settings.d.ts +15 -1
  92. package/package.json +15 -14
  93. package/pager/pager-settings.d.ts +8 -12
  94. package/pager/pager-template.directive.d.ts +13 -46
  95. package/pdf/pdf-template.directive.d.ts +10 -38
  96. package/pdf/pdf.module.d.ts +7 -16
  97. package/rendering/body.module.d.ts +9 -8
  98. package/rendering/cell-loading.template.directive.d.ts +11 -8
  99. package/rendering/cell-template.directive.d.ts +11 -35
  100. package/rendering/cell.component.d.ts +5 -0
  101. package/rendering/common/row-class.d.ts +4 -4
  102. package/rendering/details/detail-template.directive.d.ts +10 -58
  103. package/rendering/details-expand.directive.d.ts +1 -1
  104. package/rendering/footer/footer-template.directive.d.ts +8 -35
  105. package/rendering/header/header-template.directive.d.ts +9 -36
  106. package/rendering/loading-template.directive.d.ts +1 -1
  107. package/rendering/no-records-template.directive.d.ts +11 -58
  108. package/rendering/toolbar/toolbar-position.d.ts +18 -1
  109. package/rendering/toolbar/toolbar-template.directive.d.ts +10 -56
  110. package/row-reordering/row-reorder.service.d.ts +56 -0
  111. package/row-reordering/types.d.ts +40 -0
  112. package/row-reordering/utils.d.ts +78 -0
  113. package/schematics/ngAdd/index.js +2 -2
  114. package/scrolling/scrollmode.d.ts +4 -4
  115. package/selection/selectall-checkbox.directive.d.ts +12 -1
  116. package/selection/selection-checkbox.directive.d.ts +11 -44
  117. package/selection/selection-default.d.ts +1 -0
  118. package/selection/selection.directive.d.ts +1 -1
  119. package/selection/types.d.ts +24 -2
@@ -421,6 +421,10 @@ export declare class GridMessages extends ComponentMessages {
421
421
  * The label for the group panel toolbar.
422
422
  */
423
423
  groupPanelLabel: string;
424
+ /**
425
+ * The label for the Grid drag row handle.
426
+ */
427
+ dragRowHandleLabel: string;
424
428
  static ɵfac: i0.ɵɵFactoryDeclaration<GridMessages, never>;
425
- static ɵdir: i0.ɵɵDirectiveDeclaration<GridMessages, "kendo-grid-messages-base", never, { "groupPanelEmpty": "groupPanelEmpty"; "noRecords": "noRecords"; "pagerLabel": "pagerLabel"; "pagerFirstPage": "pagerFirstPage"; "pagerLastPage": "pagerLastPage"; "pagerPreviousPage": "pagerPreviousPage"; "pagerNextPage": "pagerNextPage"; "pagerPage": "pagerPage"; "pagerItemsPerPage": "pagerItemsPerPage"; "pagerOf": "pagerOf"; "pagerItems": "pagerItems"; "pagerPageNumberInputTitle": "pagerPageNumberInputTitle"; "selectPage": "selectPage"; "filter": "filter"; "filterInputLabel": "filterInputLabel"; "filterMenuTitle": "filterMenuTitle"; "filterMenuOperatorsDropDownLabel": "filterMenuOperatorsDropDownLabel"; "filterMenuLogicDropDownLabel": "filterMenuLogicDropDownLabel"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterGteOperator": "filterGteOperator"; "filterGtOperator": "filterGtOperator"; "filterLteOperator": "filterLteOperator"; "filterLtOperator": "filterLtOperator"; "filterIsTrue": "filterIsTrue"; "filterIsFalse": "filterIsFalse"; "filterBooleanAll": "filterBooleanAll"; "filterAfterOrEqualOperator": "filterAfterOrEqualOperator"; "filterAfterOperator": "filterAfterOperator"; "filterBeforeOperator": "filterBeforeOperator"; "filterBeforeOrEqualOperator": "filterBeforeOrEqualOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "filterAndLogic": "filterAndLogic"; "filterOrLogic": "filterOrLogic"; "loading": "loading"; "gridLabel": "gridLabel"; "columnMenu": "columnMenu"; "setColumnPosition": "setColumnPosition"; "columns": "columns"; "lock": "lock"; "unlock": "unlock"; "stick": "stick"; "unstick": "unstick"; "sortable": "sortable"; "sortAscending": "sortAscending"; "sortDescending": "sortDescending"; "autosizeThisColumn": "autosizeThisColumn"; "autosizeAllColumns": "autosizeAllColumns"; "sortedAscending": "sortedAscending"; "sortedDescending": "sortedDescending"; "sortedDefault": "sortedDefault"; "columnsApply": "columnsApply"; "columnsReset": "columnsReset"; "detailExpand": "detailExpand"; "detailCollapse": "detailCollapse"; "filterDateToday": "filterDateToday"; "filterDateToggle": "filterDateToggle"; "filterNumericDecrement": "filterNumericDecrement"; "filterNumericIncrement": "filterNumericIncrement"; "selectionCheckboxLabel": "selectionCheckboxLabel"; "selectAllCheckboxLabel": "selectAllCheckboxLabel"; "groupCollapse": "groupCollapse"; "groupExpand": "groupExpand"; "topToolbarLabel": "topToolbarLabel"; "bottomToolbarLabel": "bottomToolbarLabel"; "groupPanelLabel": "groupPanelLabel"; }, {}, never>;
429
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridMessages, "kendo-grid-messages-base", never, { "groupPanelEmpty": "groupPanelEmpty"; "noRecords": "noRecords"; "pagerLabel": "pagerLabel"; "pagerFirstPage": "pagerFirstPage"; "pagerLastPage": "pagerLastPage"; "pagerPreviousPage": "pagerPreviousPage"; "pagerNextPage": "pagerNextPage"; "pagerPage": "pagerPage"; "pagerItemsPerPage": "pagerItemsPerPage"; "pagerOf": "pagerOf"; "pagerItems": "pagerItems"; "pagerPageNumberInputTitle": "pagerPageNumberInputTitle"; "selectPage": "selectPage"; "filter": "filter"; "filterInputLabel": "filterInputLabel"; "filterMenuTitle": "filterMenuTitle"; "filterMenuOperatorsDropDownLabel": "filterMenuOperatorsDropDownLabel"; "filterMenuLogicDropDownLabel": "filterMenuLogicDropDownLabel"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterGteOperator": "filterGteOperator"; "filterGtOperator": "filterGtOperator"; "filterLteOperator": "filterLteOperator"; "filterLtOperator": "filterLtOperator"; "filterIsTrue": "filterIsTrue"; "filterIsFalse": "filterIsFalse"; "filterBooleanAll": "filterBooleanAll"; "filterAfterOrEqualOperator": "filterAfterOrEqualOperator"; "filterAfterOperator": "filterAfterOperator"; "filterBeforeOperator": "filterBeforeOperator"; "filterBeforeOrEqualOperator": "filterBeforeOrEqualOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "filterAndLogic": "filterAndLogic"; "filterOrLogic": "filterOrLogic"; "loading": "loading"; "gridLabel": "gridLabel"; "columnMenu": "columnMenu"; "setColumnPosition": "setColumnPosition"; "columns": "columns"; "lock": "lock"; "unlock": "unlock"; "stick": "stick"; "unstick": "unstick"; "sortable": "sortable"; "sortAscending": "sortAscending"; "sortDescending": "sortDescending"; "autosizeThisColumn": "autosizeThisColumn"; "autosizeAllColumns": "autosizeAllColumns"; "sortedAscending": "sortedAscending"; "sortedDescending": "sortedDescending"; "sortedDefault": "sortedDefault"; "columnsApply": "columnsApply"; "columnsReset": "columnsReset"; "detailExpand": "detailExpand"; "detailCollapse": "detailCollapse"; "filterDateToday": "filterDateToday"; "filterDateToggle": "filterDateToggle"; "filterNumericDecrement": "filterNumericDecrement"; "filterNumericIncrement": "filterNumericIncrement"; "selectionCheckboxLabel": "selectionCheckboxLabel"; "selectAllCheckboxLabel": "selectAllCheckboxLabel"; "groupCollapse": "groupCollapse"; "groupExpand": "groupExpand"; "topToolbarLabel": "topToolbarLabel"; "bottomToolbarLabel": "bottomToolbarLabel"; "groupPanelLabel": "groupPanelLabel"; "dragRowHandleLabel": "dragRowHandleLabel"; }, {}, never>;
426
430
  }
@@ -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
- * ```ts-preview
15
- * _@Component({
16
- * selector: 'my-app',
17
- * template: `
18
- * <input type="text" placeholder="Tab stop #0" style="margin-bottom: 8px;" />
19
- * <kendo-grid [data]="data" [navigable]="true">
20
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="100">
21
- * </kendo-grid-column>
22
- * <kendo-grid-column field="ProductName" title="Product Name" [width]="150">
23
- * </kendo-grid-column>
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 {
@@ -4,9 +4,23 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Represents the possible navigable sections of the Grid ([see example]({% slug keyboard_navigation_grid %}#toc-navigable-sections)).
7
+ *
8
+ * The available values are:
9
+ * * `pager`&mdash;Includes the Grid pager and its internal elements
10
+ * * `table`&mdash;Includes the Grid pager and its internal elements
11
+ * * `toolbar`&mdash;Includes the Grid toolbars and the group panel when the Grid is groupable.
12
+ *
13
+ * @xample
14
+ * ```html
15
+ * <kendo-grid [navigable]="['pager', 'toolbar']"> </kendo-grid>
16
+ * ```
7
17
  */
8
18
  export declare type GridNavigableSection = 'pager' | 'table' | 'toolbar';
9
19
  /**
10
- * Represents the type of the Grid [`navigable`]({% slug api_grid_gridcomponent %}#toc-navigable) option.
20
+ * Represents the type of the Grid [`navigable`]({% slug api_grid_gridcomponent %}#toc-navigable) property.
21
+ *
22
+ * The available values are:
23
+ * * `boolean`
24
+ * * [`GridNavigableSection`](slug:api_grid_gridnavigablesection)
11
25
  */
12
26
  export declare type GridNavigableSettings = boolean | GridNavigableSection[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-grid",
3
- "version": "12.0.0-develop.1",
3
+ "version": "12.0.0-develop.11",
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.1",
36
- "@progress/kendo-angular-common": "12.0.0-develop.1",
37
- "@progress/kendo-angular-dateinputs": "12.0.0-develop.1",
38
- "@progress/kendo-angular-dropdowns": "12.0.0-develop.1",
39
- "@progress/kendo-angular-excel-export": "12.0.0-develop.1",
40
- "@progress/kendo-angular-icons": "12.0.0-develop.1",
41
- "@progress/kendo-angular-inputs": "12.0.0-develop.1",
42
- "@progress/kendo-angular-intl": "12.0.0-develop.1",
43
- "@progress/kendo-angular-l10n": "12.0.0-develop.1",
44
- "@progress/kendo-angular-label": "12.0.0-develop.1",
45
- "@progress/kendo-angular-pdf-export": "12.0.0-develop.1",
46
- "@progress/kendo-angular-popup": "12.0.0-develop.1",
35
+ "@progress/kendo-angular-buttons": "12.0.0-develop.11",
36
+ "@progress/kendo-angular-common": "12.0.0-develop.11",
37
+ "@progress/kendo-angular-dateinputs": "12.0.0-develop.11",
38
+ "@progress/kendo-angular-dropdowns": "12.0.0-develop.11",
39
+ "@progress/kendo-angular-excel-export": "12.0.0-develop.11",
40
+ "@progress/kendo-angular-icons": "12.0.0-develop.11",
41
+ "@progress/kendo-angular-inputs": "12.0.0-develop.11",
42
+ "@progress/kendo-angular-intl": "12.0.0-develop.11",
43
+ "@progress/kendo-angular-l10n": "12.0.0-develop.11",
44
+ "@progress/kendo-angular-label": "12.0.0-develop.11",
45
+ "@progress/kendo-angular-pdf-export": "12.0.0-develop.11",
46
+ "@progress/kendo-angular-popup": "12.0.0-develop.11",
47
+ "@progress/kendo-angular-utils": "12.0.0-develop.11",
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.1",
52
+ "@progress/kendo-angular-schematics": "12.0.0-develop.11",
52
53
  "@progress/kendo-common": "^0.2.0",
53
54
  "@progress/kendo-file-saver": "^1.0.0"
54
55
  },
@@ -10,12 +10,10 @@
10
10
  * * `input`&mdash;Input for typing the page number.
11
11
  *
12
12
  * @example
13
- * ```html-no-run
14
- *
15
- * <kendo-grid
16
- * [pageable]="{
17
- * type: 'numeric'
18
- * }">
13
+ * ```html
14
+ * <kendo-grid [pageable]="{ type: 'numeric' }">
15
+ * <kendo-grid-column field="ProductID"></kendo-grid-column>
16
+ * ...
19
17
  * </kendo-grid>
20
18
  * ```
21
19
  */
@@ -29,12 +27,10 @@ export declare type PagerType = 'numeric' | 'input';
29
27
  * * `both`&mdash;Two pagers are rendered - one above the Grid headers, and one - below the data table.
30
28
  *
31
29
  * @example
32
- * ```html-no-run
33
- *
34
- * <kendo-grid
35
- * [pageable]="{
36
- * position: 'both'
37
- * }">
30
+ * ```html
31
+ * <kendo-grid [pageable]="{ position: 'both' }">
32
+ * <kendo-grid-column field="ProductID"></kendo-grid-column>
33
+ * ...
38
34
  * </kendo-grid>
39
35
  * ```
40
36
  */
@@ -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`&mdash;The index of the displayed page.
@@ -14,53 +15,19 @@ import * as i0 from "@angular/core";
14
15
  * * `skip`&mdash;The current skip value.
15
16
  * * `total`&mdash;The total number of records.
16
17
  * * `totalPages`&mdash;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
- * ```ts-preview
21
- *
22
- * _@Component({
23
- * selector: 'my-app',
24
- * template: `
25
- * <kendo-grid
26
- * [kendoGridBinding]="gridData"
27
- * [pageSize]="1"
28
- * [pageable]="true"
29
- * >
30
- * <kendo-grid-column field="ProductID" title="ID" [width]="40">
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`&mdash;Defines PDF page number.
14
14
  * - `totalPages`&mdash;Defines the total number of PDF pages.
15
15
  *
16
16
  * @example
17
- * ```ts-preview
18
- *
19
- * _@Component({
20
- * selector: 'my-app',
21
- * template: `
22
- * <kendo-grid [data]="gridData">
23
- * <ng-template kendoGridToolbarTemplate>
24
- * <button kendoGridPDFCommand icon="file-pdf">Export to PDF</button>
25
- * </ng-template>
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 {
@@ -14,28 +14,19 @@ import * as i5 from "@progress/kendo-angular-icons";
14
14
  *
15
15
  * @example
16
16
  *
17
- * ```ts-no-run
18
- * // Import the Grid and PDF modules
19
- * import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
20
- *
21
- * // The browser platform with a compiler
22
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
23
- *
17
+ * ```ts
24
18
  * import { NgModule } from '@angular/core';
25
- *
26
- * // Import the app component
19
+ * import { BrowserModule } from "@angular/platform-browser";
20
+ * import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
27
21
  * import { AppComponent } from './app.component';
28
22
  *
29
- * // Define the app module
30
- * _@NgModule({
31
- * declarations: [AppComponent], // declare app component
32
- * imports: [BrowserModule, GridModule, PDFModule], // import Grid and PDF modules
23
+ * @NgModule({
24
+ * declarations: [AppComponent],
25
+ * imports: [BrowserModule, GridModule, PDFModule],
33
26
  * bootstrap: [AppComponent]
34
27
  * })
35
- * export class AppModule {}
36
28
  *
37
- * // Compile and launch the module
38
- * platformBrowserDynamic().bootstrapModule(AppModule);
29
+ * export class AppModule {}
39
30
  *
40
31
  * ```
41
32
  */
@@ -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 "@angular/common";
22
- import * as i17 from "@angular/forms";
23
- import * as i18 from "../shared.module";
24
- import * as i19 from "../grouping/group.module";
25
- import * as i20 from "@progress/kendo-angular-inputs";
26
- import * as i21 from "@progress/kendo-angular-dateinputs";
27
- import * as i22 from "@progress/kendo-angular-common";
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 i16.CommonModule, typeof i17.ReactiveFormsModule, typeof i17.FormsModule, typeof i18.SharedModule, typeof i19.GroupModule, typeof i20.NumericTextBoxModule, typeof i21.DatePickerModule, typeof i22.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]>;
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>` ([see example]({% slug virtualscrolling_grid %}#toc-custom-loading-skeleton)).
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
- * The template context is set to the current column, and utilizes the `let-x` syntax&mdash;for example, `let-column`.
12
+ *
13
+ * The template context is set to the current column and the following additional field is passed:
14
+ *
15
+ * - `column`&mdash;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
- * ```ts-no-run
16
- * <kendo-grid [data]="data" scrollable="virtual" [rowHeight]="36">
17
- * <ng-template kendoGridCellLoadingTemplate let-column>
18
- * ...
19
- * </ng-template>
20
- * </kendo-grid>
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 ([more information and example]({% slug templates_columns_grid %}#toc-cell-template)).
9
- * Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag
10
- * with the `kendoGridCellTemplate` directive inside a `<kendo-grid-column>` tag.
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`&mdash;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`&mdash;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
- * ```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 kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
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;
@@ -11,9 +11,9 @@ export interface RowClassArgs extends RowArgs {
11
11
  }
12
12
  /**
13
13
  * Represents the callback that is used by the
14
- * [rowClass]({% slug api_grid_gridcomponent %}#toc-rowClass) property.
14
+ * [rowClass]({% slug api_grid_gridcomponent %}#toc-rowclass) property.
15
15
  *
16
- * ```ts-no-run
16
+ * ```ts
17
17
  * rowCallback({ dataItem, index }) {
18
18
  * const isEven = index % 2 === 0;
19
19
  * return {
@@ -31,7 +31,7 @@ export declare type RowClassFn = (context: RowClassArgs) => string | string[] |
31
31
  * Represents the callback that is used by the
32
32
  * [rowSelected]({% slug api_grid_gridcomponent %}#toc-rowselected) property.
33
33
  *
34
- * ```ts-no-run
34
+ * ```ts
35
35
  * rowCallback({ dataItem, index }) {
36
36
  * return index % 2 === 0;
37
37
  * }
@@ -41,7 +41,7 @@ export declare type RowSelectedFn = (context: RowArgs) => boolean;
41
41
  /**
42
42
  * Represents the callback that is used to determine whether a given data row will be sticky.
43
43
  *
44
- * ```ts-no-run
44
+ * ```ts
45
45
  * rowStickyCallback({ dataItem, index }) {
46
46
  * return index % 2 === 0;
47
47
  * }
@@ -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
- * ```ts-preview
23
- *
24
- * _@Component({
25
- * selector: 'my-app',
26
- * template: `
27
- * <kendo-grid
28
- * [data]="data"
29
- * selectable="true"
30
- * style="height: 160px"
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;