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

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 (172) hide show
  1. package/column-menu/column-chooser.component.d.ts +14 -19
  2. package/column-menu/column-menu-autosize-all.component.d.ts +12 -27
  3. package/column-menu/column-menu-autosize.component.d.ts +12 -26
  4. package/column-menu/column-menu-chooser.component.d.ts +11 -24
  5. package/column-menu/column-menu-expandable-item.interface.d.ts +0 -1
  6. package/column-menu/column-menu-filter.component.d.ts +12 -24
  7. package/column-menu/column-menu-item.component.d.ts +6 -21
  8. package/column-menu/column-menu-lock.component.d.ts +11 -25
  9. package/column-menu/column-menu-position.component.d.ts +12 -24
  10. package/column-menu/column-menu-settings.interface.d.ts +3 -24
  11. package/column-menu/column-menu-sort.component.d.ts +12 -25
  12. package/column-menu/column-menu-stick.component.d.ts +12 -24
  13. package/column-menu/column-menu.component.d.ts +9 -1
  14. package/column-menu/column-menu.service.d.ts +9 -21
  15. package/column-resizing/column-resize.interface.d.ts +1 -1
  16. package/columns/checkbox-column.component.d.ts +6 -57
  17. package/columns/column-base.d.ts +16 -369
  18. package/columns/column-group.component.d.ts +9 -48
  19. package/columns/column.component.d.ts +23 -109
  20. package/columns/command-column.component.d.ts +12 -60
  21. package/columns/reorder-column.component.d.ts +1 -1
  22. package/columns/sort-settings.d.ts +24 -12
  23. package/columns/span-column.component.d.ts +12 -123
  24. package/common/cell-click-event-args.interface.d.ts +1 -1
  25. package/common/fetch-data-callback.d.ts +1 -1
  26. package/common/preventable-event.d.ts +1 -1
  27. package/common/single-popup.service.d.ts +1 -1
  28. package/common/size-options.d.ts +1 -2
  29. package/data/change-event-args.interface.d.ts +2 -2
  30. package/data/data.collection.d.ts +1 -1
  31. package/data/grid-item.interface.d.ts +6 -3
  32. package/dragdrop/column-reorder-config.d.ts +1 -1
  33. package/editing/add-event-args.interface.d.ts +1 -1
  34. package/editing/cancel-event-args.interface.d.ts +1 -1
  35. package/editing/edit-event-args.interface.d.ts +1 -1
  36. package/editing/remove-event-args.interface.d.ts +1 -1
  37. package/editing/save-event-args.interface.d.ts +1 -1
  38. package/editing-directives/edit-service.interface.d.ts +1 -1
  39. package/esm2020/column-menu/column-chooser.component.mjs +14 -19
  40. package/esm2020/column-menu/column-menu-autosize-all.component.mjs +12 -27
  41. package/esm2020/column-menu/column-menu-autosize.component.mjs +12 -26
  42. package/esm2020/column-menu/column-menu-chooser.component.mjs +11 -24
  43. package/esm2020/column-menu/column-menu-filter.component.mjs +12 -24
  44. package/esm2020/column-menu/column-menu-item.component.mjs +6 -21
  45. package/esm2020/column-menu/column-menu-lock.component.mjs +11 -25
  46. package/esm2020/column-menu/column-menu-position.component.mjs +12 -24
  47. package/esm2020/column-menu/column-menu-sort.component.mjs +12 -25
  48. package/esm2020/column-menu/column-menu-stick.component.mjs +12 -24
  49. package/esm2020/column-menu/column-menu.component.mjs +9 -1
  50. package/esm2020/column-menu/column-menu.service.mjs +9 -21
  51. package/esm2020/columns/checkbox-column.component.mjs +6 -57
  52. package/esm2020/columns/column-base.mjs +7 -40
  53. package/esm2020/columns/column-group.component.mjs +9 -48
  54. package/esm2020/columns/column.component.mjs +22 -79
  55. package/esm2020/columns/command-column.component.mjs +12 -60
  56. package/esm2020/columns/reorder-column.component.mjs +1 -1
  57. package/esm2020/columns/span-column.component.mjs +12 -123
  58. package/esm2020/common/preventable-event.mjs +1 -1
  59. package/esm2020/common/single-popup.service.mjs +1 -1
  60. package/esm2020/excel/excel.module.mjs +5 -15
  61. package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -10
  62. package/esm2020/filtering/cell/date-filter-cell.component.mjs +26 -13
  63. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
  64. package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +14 -11
  65. package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -15
  66. package/esm2020/filtering/date-filter.component.mjs +6 -2
  67. package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +13 -13
  68. package/esm2020/filtering/menu/date-filter-menu.component.mjs +13 -13
  69. package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +13 -13
  70. package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -2
  71. package/esm2020/filtering/numeric-filter.component.mjs +4 -1
  72. package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +3 -6
  73. package/esm2020/filtering/operators/after-filter-operator.component.mjs +3 -6
  74. package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +3 -6
  75. package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
  76. package/esm2020/filtering/operators/contains-filter-operator.component.mjs +2 -5
  77. package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +2 -4
  78. package/esm2020/filtering/operators/eq-filter-operator.component.mjs +2 -4
  79. package/esm2020/filtering/operators/gt-filter-operator.component.mjs +3 -6
  80. package/esm2020/filtering/operators/gte-filter-operator.component.mjs +2 -5
  81. package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +2 -4
  82. package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +2 -4
  83. package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +2 -4
  84. package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +2 -4
  85. package/esm2020/filtering/operators/lt-filter-operator.component.mjs +3 -5
  86. package/esm2020/filtering/operators/lte-filter-operator.component.mjs +3 -5
  87. package/esm2020/filtering/operators/neq-filter-operator.component.mjs +2 -4
  88. package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +2 -4
  89. package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +2 -4
  90. package/esm2020/filtering/string-filter.component.mjs +2 -1
  91. package/esm2020/grid.component.mjs +39 -325
  92. package/esm2020/grid.module.mjs +6 -16
  93. package/esm2020/layout/sizing-options.service.mjs +3 -0
  94. package/esm2020/localization/custom-messages.component.mjs +1 -1
  95. package/esm2020/package-metadata.mjs +2 -2
  96. package/esm2020/pager/pager-info.component.mjs +1 -1
  97. package/esm2020/pager/pager-input.component.mjs +1 -48
  98. package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
  99. package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
  100. package/esm2020/pager/pager-page-sizes.component.mjs +3 -92
  101. package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
  102. package/esm2020/pdf/pdf-margin.component.mjs +9 -0
  103. package/esm2020/pdf/pdf.module.mjs +7 -16
  104. package/esm2020/rendering/common/spacer.component.mjs +2 -1
  105. package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
  106. package/esm2020/row-reordering/row-reorder.service.mjs +2 -1
  107. package/excel/excel.component.d.ts +2 -7
  108. package/excel/excel.module.d.ts +5 -15
  109. package/fesm2015/progress-kendo-angular-grid.mjs +476 -1372
  110. package/fesm2020/progress-kendo-angular-grid.mjs +476 -1372
  111. package/filtering/cell/boolean-filter-cell.component.d.ts +11 -10
  112. package/filtering/cell/date-filter-cell.component.d.ts +26 -13
  113. package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
  114. package/filtering/cell/numeric-filter-cell.component.d.ts +14 -11
  115. package/filtering/cell/string-filter-cell.component.d.ts +14 -15
  116. package/filtering/date-filter.component.d.ts +8 -12
  117. package/filtering/filterable.d.ts +10 -0
  118. package/filtering/menu/boolean-filter-menu.component.d.ts +13 -13
  119. package/filtering/menu/date-filter-menu.component.d.ts +13 -13
  120. package/filtering/menu/numeric-filter-menu.component.d.ts +13 -13
  121. package/filtering/menu/string-filter-menu.component.d.ts +15 -2
  122. package/filtering/numeric-filter.component.d.ts +4 -1
  123. package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
  124. package/filtering/operators/after-filter-operator.component.d.ts +4 -0
  125. package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
  126. package/filtering/operators/before-filter-operator.component.d.ts +4 -0
  127. package/filtering/operators/contains-filter-operator.component.d.ts +2 -5
  128. package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -4
  129. package/filtering/operators/eq-filter-operator.component.d.ts +2 -4
  130. package/filtering/operators/gt-filter-operator.component.d.ts +4 -0
  131. package/filtering/operators/gte-filter-operator.component.d.ts +2 -5
  132. package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -4
  133. package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -4
  134. package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -4
  135. package/filtering/operators/isnull-filter-operator.component.d.ts +2 -4
  136. package/filtering/operators/lt-filter-operator.component.d.ts +5 -0
  137. package/filtering/operators/lte-filter-operator.component.d.ts +5 -0
  138. package/filtering/operators/neq-filter-operator.component.d.ts +2 -4
  139. package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -4
  140. package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -4
  141. package/filtering/string-filter.component.d.ts +2 -1
  142. package/grid.component.d.ts +43 -327
  143. package/grid.module.d.ts +6 -16
  144. package/grouping/group-key.interface.d.ts +1 -13
  145. package/grouping/group-rows-args.interface.d.ts +1 -1
  146. package/layout/sizing-options.service.d.ts +3 -0
  147. package/localization/custom-messages.component.d.ts +1 -1
  148. package/localization/messages.d.ts +35 -98
  149. package/navigation/navigable-settings.d.ts +15 -1
  150. package/navigation/navigation-cell.interface.d.ts +2 -5
  151. package/navigation/navigation-row.interface.d.ts +2 -5
  152. package/package.json +19 -19
  153. package/pager/pager-info.component.d.ts +1 -1
  154. package/pager/pager-input.component.d.ts +1 -48
  155. package/pager/pager-next-buttons.component.d.ts +1 -1
  156. package/pager/pager-numeric-buttons.component.d.ts +1 -1
  157. package/pager/pager-page-sizes.component.d.ts +3 -92
  158. package/pager/pager-prev-buttons.component.d.ts +1 -1
  159. package/pager/pager-settings.d.ts +9 -38
  160. package/pdf/pdf-margin.component.d.ts +9 -0
  161. package/pdf/pdf-margin.interface.d.ts +0 -5
  162. package/pdf/pdf.module.d.ts +7 -16
  163. package/rendering/common/row-class.d.ts +4 -4
  164. package/rendering/common/spacer.component.d.ts +2 -1
  165. package/rendering/toolbar/toolbar-position.d.ts +18 -1
  166. package/row-reordering/row-reorder.service.d.ts +1 -0
  167. package/row-reordering/types.d.ts +1 -1
  168. package/schematics/ngAdd/index.js +2 -2
  169. package/scrolling/content-scroll-event.d.ts +1 -1
  170. package/scrolling/scroll-request.service.d.ts +2 -1
  171. package/scrolling/scrollmode.d.ts +4 -4
  172. package/selection/types.d.ts +31 -48
@@ -36,9 +36,9 @@ export class ColumnBase {
36
36
  */
37
37
  this.matchesMedia = true;
38
38
  /**
39
- * The column index after reordering.
39
+ * The column index after reordering. The `orderIndex` is a read-only property. Setting this field does not affect column order.
40
40
  *
41
- * > `orderIndex` is a read-only property. Setting this field does not affect column order.
41
+ * @default 0
42
42
  */
43
43
  this.orderIndex = 0;
44
44
  /**
@@ -61,6 +61,7 @@ export class ColumnBase {
61
61
  this.reorderable = true;
62
62
  /**
63
63
  * The width (in pixels) below which the user is not able to resize the column by using the UI ([see example]({% slug resizing_columns_grid %}#toc-limiting-the-resizing)).
64
+ * The `autoFitColumn` and `autoFitColumns` methods have higher priority.
64
65
  * @default 10
65
66
  */
66
67
  this.minResizableWidth = 10;
@@ -73,18 +74,22 @@ export class ColumnBase {
73
74
  this.sticky = false;
74
75
  /**
75
76
  * Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
77
+ * @default true
76
78
  */
77
79
  this.lockable = true;
78
80
  /**
79
81
  * Specifies if the column can be stuck or unstuck from the column menu.
82
+ * @default true
80
83
  */
81
84
  this.stickable = true;
82
85
  /**
83
86
  * Specifies if the column menu will be shown for the column.
87
+ * @default true
84
88
  */
85
89
  this.columnMenu = true;
86
90
  /**
87
91
  * Specifies if the column will be included in the column-chooser list.
92
+ * @default true
88
93
  */
89
94
  this.includeInChooser = true;
90
95
  /**
@@ -132,44 +137,6 @@ export class ColumnBase {
132
137
  *
133
138
  * @default false
134
139
  *
135
- * @example
136
- * ```ts
137
- * _@Component({
138
- * selector: 'my-app',
139
- * template: `
140
- * <kendo-grid [data]="gridData" [scrollable]="scrollable" style="height: 200px">
141
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
142
- * </kendo-grid-column>
143
- * <kendo-grid-column field="ProductName" title="Product Name" [width]="200">
144
- * </kendo-grid-column>
145
- * <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
146
- * </kendo-grid-column>
147
- * </kendo-grid>
148
- * `
149
- * })
150
- *
151
- * class AppComponent {
152
- * public gridData: any[];
153
- *
154
- * constructor() {
155
- * this.gridData = products;
156
- * }
157
- * }
158
- *
159
- * const products = [{
160
- * "ProductID": 1,
161
- * "ProductName": "Chai",
162
- * "UnitPrice": 18.0000,
163
- * "Discontinued": true
164
- * }, {
165
- * "ProductID": 2,
166
- * "ProductName": "Chang",
167
- * "UnitPrice": 19.0000,
168
- * "Discontinued": false
169
- * }
170
- * ];
171
- *
172
- * ```
173
140
  */
174
141
  set locked(value) {
175
142
  this._locked = value;
@@ -17,56 +17,17 @@ export function isColumnGroupComponent(column) {
17
17
  }
18
18
  /**
19
19
  * Represents the column group header of the Grid
20
- * ([more information and examples]({% slug multicolumnheaders_columns_grid %})).
20
+ * ([more information and examples](slug:multicolumnheaders_columns_grid)).
21
21
  *
22
22
  * @example
23
- * ```ts-preview
24
- *
25
- * _@Component({
26
- * selector: 'my-app',
27
- * template: `
28
- * <kendo-grid [data]="gridData">
29
- * <kendo-grid-column-group title="Product Info">
30
- * <ng-template kendoGridHeaderTemplate let-columnIndex="columnIndex" let-column="column">
31
- * Column index: {{columnIndex}} / column title: {{column.title}}
32
- * </ng-template>
33
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
34
- * </kendo-grid-column>
35
- * <kendo-grid-column field="ProductName" title="Product Name">
36
- * </kendo-grid-column>
37
- * </kendo-grid-column-group>
38
- * <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
39
- * </kendo-grid-column>
40
- * <kendo-grid-column field="Discontinued" [width]="120">
41
- * <ng-template kendoGridCellTemplate let-dataItem>
42
- * <input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
43
- * </ng-template>
44
- * </kendo-grid-column>
45
- * </kendo-grid>
46
- * `
47
- * })
48
- *
49
- * class AppComponent {
50
- * public gridData: any[];
51
- *
52
- * constructor() {
53
- * this.gridData = products;
54
- * }
55
- * }
56
- *
57
- * const products = [{
58
- * "ProductID": 1,
59
- * "ProductName": "Chai",
60
- * "UnitPrice": 18.0000,
61
- * "Discontinued": true
62
- * }, {
63
- * "ProductID": 2,
64
- * "ProductName": "Chang",
65
- * "UnitPrice": 19.0000,
66
- * "Discontinued": false
67
- * }
68
- * ];
69
- *
23
+ * ```html
24
+ * <kendo-grid [data]="gridData">
25
+ * <kendo-grid-column-group title="Product Info">
26
+ * <kendo-grid-column field="ProductID"></kendo-grid-column>
27
+ * <kendo-grid-column field="ProductName"></kendo-grid-column>
28
+ * </kendo-grid-column-group>
29
+ * <kendo-grid-column field="UnitPrice"></kendo-grid-column>
30
+ * </kendo-grid>
70
31
  * ```
71
32
  */
72
33
  export class ColumnGroupComponent extends ColumnBase {
@@ -23,113 +23,56 @@ export function isColumnComponent(column) {
23
23
  return isPresent(column.field);
24
24
  }
25
25
  /**
26
- * Represents the columns of the [Angular Data Grid]({% slug overview_grid %}).
26
+ * Represents the column of the Grid. [See example](slug:columns_config#toc-using-the-column-component)
27
27
  *
28
28
  * @example
29
- * ```ts-preview
30
- *
31
- * _@Component({
32
- * selector: 'my-app',
33
- * template: `
34
- * <kendo-grid [data]="gridData">
35
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
36
- * </kendo-grid-column>
37
- * <kendo-grid-column field="ProductName" title="Product Name">
38
- * </kendo-grid-column>
39
- * <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
40
- * </kendo-grid-column>
41
- * <kendo-grid-column field="Discontinued" [width]="120">
42
- * <ng-template kendoGridCellTemplate let-dataItem>
43
- * <input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
44
- * </ng-template>
45
- * </kendo-grid-column>
46
- * </kendo-grid>
47
- * `
48
- * })
49
- *
50
- * class AppComponent {
51
- * public gridData: any[];
52
- *
53
- * constructor() {
54
- * this.gridData = products;
55
- * }
56
- * }
57
- *
58
- * const products = [{
59
- * "ProductID": 1,
60
- * "ProductName": "Chai",
61
- * "UnitPrice": 18.0000,
62
- * "Discontinued": true
63
- * }, {
64
- * "ProductID": 2,
65
- * "ProductName": "Chang",
66
- * "UnitPrice": 19.0000,
67
- * "Discontinued": false
68
- * }
69
- * ];
70
- *
29
+ * ```html
30
+ * <kendo-grid [data]="gridData">
31
+ * <kendo-grid-column field="ProductID" title="Product ID"></kendo-grid-column>
32
+ * <kendo-grid-column field="ProductName" title="Product Name"></kendo-grid-column>
33
+ * <kendo-grid-column field="UnitPrice" title="Unit Price"></kendo-grid-column>
34
+ * </kendo-grid>
71
35
  * ```
72
36
  */
73
37
  export class ColumnComponent extends ColumnBase {
74
38
  constructor(parent, idService) {
75
39
  super(parent, idService);
76
40
  /**
77
- * Allows the column headers to be clicked and the `sortChange` event emitted.
78
- * You have to handle the `sortChange` event yourself and sort the data.
41
+ * Allows the user to click the column headers and emits the `sortChange` event. [See example](slug:sorting_grid).
42
+ *
43
+ * @default true
79
44
  */
80
45
  this.sortable = true;
81
46
  /**
82
- * Determines if the column can be dragged to the group panel. The default value is `true`.
47
+ * Determines if the column can be dragged to the group panel.
83
48
  * If set to `false`, you can group the columns by the column field by using the API of the Grid.
49
+ *
50
+ * @default true
84
51
  */
85
52
  this.groupable = true;
86
53
  /**
87
- * Defines the editor type ([see example]({% slug inline_editing_grid %}#toc-using-reactive-forms)).
88
- * Used when the column enters the edit mode. The default value is `text`.
54
+ * Defines the editor type. [See example](slug:inline_editing_grid#toc-using-reactive-forms).
55
+ * Used when the column enters the edit mode.
89
56
  *
90
- * @example
91
- * ```html-no-run
92
- * <kendo-grid>
93
- * <kendo-grid-column field="UnitPrice" editor="numeric">
94
- * </kendo-grid-column>
95
- * </kendo-grid>
96
- * ```
57
+ * @default 'text'
97
58
  */
98
59
  this.editor = 'text';
99
60
  /**
100
- * Defines the filter type that is displayed inside the filter row. The default value is `text`.
61
+ * Defines the filter type that is displayed inside the filter row. [See example](slug:filtering_grid#toc-filter-data-types).
101
62
  *
102
- * @example
103
- * ```html-no-run
104
- * <kendo-grid>
105
- * <kendo-grid-column field="UnitPrice" filter="numeric">
106
- * </kendo-grid-column>
107
- * </kendo-grid>
108
- * ```
63
+ * @default 'text'
109
64
  */
110
65
  this.filter = 'text';
111
66
  /**
112
- * Defines if a filter UI will be displayed for this column. The default value is `true`.
67
+ * Defines if a filter UI will be displayed for this column. [See example](slug:filtering_grid).
113
68
  *
114
- * @example
115
- * ```html-no-run
116
- * <kendo-grid>
117
- * <kendo-grid-column field="UnitPrice" [filterable]="false">
118
- * </kendo-grid-column>
119
- * </kendo-grid>
120
- * ```
69
+ * @default true
121
70
  */
122
71
  this.filterable = true;
123
72
  /**
124
- * Defines whether the column is editable. The default value is `true`.
73
+ * Defines whether the column is editable. [See example](slug:make_fields_uneditable_grid).
125
74
  *
126
- * @example
127
- * ```html-no-run
128
- * <kendo-grid>
129
- * <kendo-grid-column field="UnitPrice" [editable]="false">
130
- * </kendo-grid-column>
131
- * </kendo-grid>
132
- * ```
75
+ * @default true
133
76
  */
134
77
  this.editable = true;
135
78
  }
@@ -11,68 +11,20 @@ import * as i1 from "./column-base";
11
11
  import * as i2 from "../common/id.service";
12
12
  /**
13
13
  * Represents the command columns of the Grid. You have to define the content of the
14
- * column inside an `<ng-template>` tag. The template context is set to the current
15
- * data item. For more information and examples on using the passed fields
16
- * and the command directives, refer to the article on
17
- * [editing the Grid in Angular Reactive Forms]({% slug inline_editing_grid %}#toc-using-reactive-forms).
18
- *
19
- * The following additional fields are passed:
20
- * - `columnIndex`&mdash;The current column index.
21
- * - `rowIndex`&mdash;The current data row index. If inside a new item row, `rowIndex`is `-1`.
22
- * - `dataItem`&mdash;The current data item.
23
- * - `column`&mdash;The current column instance.
24
- * - `isNew`&mdash;The state of the current item.
25
- *
26
- * Usually, the template contains CRUD command directives such as:
27
- * - [EditCommandDirective]({% slug api_grid_editcommanddirective %})
28
- * - [RemoveCommandDirective]({% slug api_grid_removecommanddirective %})
29
- * - [CancelCommandDirective]({% slug api_grid_cancelcommanddirective %})
30
- * - [SaveCommandDirective]({% slug api_grid_savecommanddirective %})
14
+ * column inside an `<ng-template>` tag.
15
+ * For more information and examples, refer to the [Command Column Directives](slug:editing_directives_grid#toc-command-column-directives) article.
31
16
  *
32
17
  * @example
33
- * ```ts-preview
34
- *
35
- * _@Component({
36
- * selector: 'my-app',
37
- * template: `
38
- * <kendo-grid [data]="gridData">
39
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
40
- * </kendo-grid-column>
41
- * <kendo-grid-column field="ProductName" title="Product Name">
42
- * </kendo-grid-column>
43
- * <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
44
- * </kendo-grid-column>
45
- * <kendo-grid-command-column title="command" [width]="220">
46
- * <ng-template kendoGridCellTemplate>
47
- * <button kendoGridEditCommand class="k-primary">Edit</button>
48
- * <button kendoGridRemoveCommand>Remove</button>
49
- * </ng-template>
50
- * </kendo-grid-command-column>
51
- * </kendo-grid>
52
- * `
53
- * })
54
- *
55
- * class AppComponent {
56
- * public gridData: any[];
57
- *
58
- * constructor() {
59
- * this.gridData = products;
60
- * }
61
- * }
62
- *
63
- * const products = [{
64
- * "ProductID": 1,
65
- * "ProductName": "Chai",
66
- * "UnitPrice": 18.0000,
67
- * "Discontinued": true
68
- * }, {
69
- * "ProductID": 2,
70
- * "ProductName": "Chang",
71
- * "UnitPrice": 19.0000,
72
- * "Discontinued": false
73
- * }
74
- * ];
75
- *
18
+ * ```html
19
+ * <kendo-grid [data]="gridData">
20
+ * <kendo-grid-column field="ProductID"></kendo-grid-column>
21
+ * <kendo-grid-command-column title="command" [width]="220">
22
+ * <ng-template kendoGridCellTemplate>
23
+ * <button kendoGridEditCommand class="k-primary">Edit</button>
24
+ * <button kendoGridRemoveCommand>Remove</button>
25
+ * </ng-template>
26
+ * </kendo-grid-command-column>
27
+ * </kendo-grid>
76
28
  * ```
77
29
  */
78
30
  export class CommandColumnComponent extends ColumnBase {
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  import * as i1 from "./column-base";
10
10
  import * as i2 from "../common/id.service";
11
11
  /**
12
- * Represents the drag handle for reordering rows in the Grid.
12
+ * Represents the drag handle for reordering rows in the Grid ([see example](slug:reordering_rows_grid))
13
13
  */
14
14
  export class RowReorderColumnComponent extends ColumnBase {
15
15
  constructor(parent, idService) {
@@ -26,62 +26,15 @@ export function isSpanColumnComponent(column) {
26
26
  * [grouping]({% slug grouping_grid %}). Wrap the columns that will be
27
27
  * merged inside the `<kendo-grid-span-column>` tag.
28
28
  *
29
- * @example
30
- * ```ts-preview
31
- *
32
- * _@Component({
33
- * selector: 'my-app',
34
- * template: `
35
- * <kendo-grid
36
- * [sortable]="true"
37
- * [filterable]="true"
38
- * [kendoGridBinding]="products">
39
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
40
- * </kendo-grid-column>
41
- * <kendo-grid-span-column>
42
- * <kendo-grid-column field="ProductName" title="Product Name">
43
- * </kendo-grid-column>
44
- * <kendo-grid-column field="UnitPrice" title="Unit Price" filter="numeric" [width]="180" format="{0:c}">
45
- * </kendo-grid-column>
46
- * </kendo-grid-span-column>
47
- * <kendo-grid-column field="Discontinued" [width]="120" filter="boolean">
48
- * <ng-template kendoGridCellTemplate let-dataItem>
49
- * <input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
50
- * </ng-template>
51
- * </kendo-grid-column>
52
- * </kendo-grid>
53
- * `
54
- * })
55
- *
56
- * class AppComponent {
57
- * public products = [{
58
- * "ProductID": 1,
59
- * "ProductName": "Chai",
60
- * "UnitPrice": 18.0000,
61
- * "Discontinued": true
62
- * }, {
63
- * "ProductID": 2,
64
- * "ProductName": "Chang",
65
- * "UnitPrice": 19.0000,
66
- * "Discontinued": false
67
- * }
68
- * ];
69
- * }
70
- *
71
- * ```
72
- *
73
- * By default, the data cell displays the data for the specified fields. To further customize
74
- * the span-column functionality, use a [cell template]({% slug api_grid_celltemplatedirective %}).
75
- *
76
- * ```html-no-run
29
+ * ```html
77
30
  * <kendo-grid-span-column>
78
- * <kendo-grid-column field="field1" title="Field 1"></kendo-grid-column>
79
- * <kendo-grid-column field="field2" title="Field 2"></kendo-grid-column>
80
- * <ng-template kendoGridCellTemplate let-dataItem>
81
- * <h5>{{ dataItem.field1 }}</h5>
82
- * <p>{{ dataItem.field2 }}</p>
83
- * </ng-template>
84
- * </kendo-grid-span-column>
31
+ * <kendo-grid-column field="field1"></kendo-grid-column>
32
+ * <kendo-grid-column field="field2"></kendo-grid-column>
33
+ * <ng-template kendoGridCellTemplate let-dataItem>
34
+ * <h5>{{ dataItem.field1 }}</h5>
35
+ * <p>{{ dataItem.field2 }}</p>
36
+ * </ng-template>
37
+ * </kendo-grid-span-column>
85
38
  * ```
86
39
  */
87
40
  export class SpanColumnComponent extends ColumnBase {
@@ -107,24 +60,9 @@ export class SpanColumnComponent extends ColumnBase {
107
60
  }
108
61
  }
109
62
  /**
110
- * Defines whether the edit template of the column will be rendered. The default value is `false`.
111
- *
112
- * > To enable the editing functionality for a spanned column, set an edit template for it.
113
- *
114
- * @example
115
- * ```html-no-run
116
- * <kendo-grid>
117
- * <kendo-grid-span-column [editable]="false">
118
- * <kendo-grid-column field="UnitPrice">
119
- * </kendo-grid-column>
120
- * <kendo-grid-column field="ProductName">
121
- * </kendo-grid-column>
122
- * <ng-template kendoGridEditTemplate>
123
- * .....
124
- * </ng-template>
125
- * </kendo-grid-span-column>
126
- * </kendo-grid>
127
- * ```
63
+ * Defines whether the edit template of the column will be rendered.
64
+ * To enable the editing functionality for a spanned column, set an edit template for it ([see exmaple](slug:custom_reactive_editing_grid)).
65
+ * @default false
128
66
  */
129
67
  set editable(value) {
130
68
  this._editable = value;
@@ -168,57 +106,8 @@ export class SpanColumnComponent extends ColumnBase {
168
106
  return this.childColumns.filter(c => c.isVisible).length;
169
107
  }
170
108
  /**
171
- * Toggles the locked (frozen) state of the columns. Locked columns are visible
172
- * at all times during the horizontal scrolling of the Grid.
173
- *
174
- * For the option to work properly, make sure that:
175
- * - Scrolling is enabled.
176
- * - The `height` option of the Grid is set.
177
- * - The widths of all Grid columns are explicitly set in pixels. In this way,
178
- * the Grid adjusts the layout of the locked and unlocked columns.
179
- *
109
+ * Toggles the locked (frozen) state of the columns ([see example](slug:locked_columns_grid)).
180
110
  * @default false
181
- *
182
- * @example
183
- * ```ts
184
- * _@Component({
185
- * selector: 'my-app',
186
- * template: `
187
- * <kendo-grid [data]="gridData" [scrollable]="scrollable" style="height: 200px">
188
- * <kendo-grid-span-column [locked]="true">
189
- * <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
190
- * </kendo-grid-column>
191
- * <kendo-grid-column field="ProductName" title="Product Name" [width]="200">
192
- * </kendo-grid-column>
193
- * </kendo-grid-span-column>
194
- * <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
195
- * </kendo-grid-column>
196
- * </kendo-grid>
197
- * `
198
- * })
199
- *
200
- * class AppComponent {
201
- * public gridData: any[];
202
- *
203
- * constructor() {
204
- * this.gridData = products;
205
- * }
206
- * }
207
- *
208
- * const products = [{
209
- * "ProductID": 1,
210
- * "ProductName": "Chai",
211
- * "UnitPrice": 18.0000,
212
- * "Discontinued": true
213
- * }, {
214
- * "ProductID": 2,
215
- * "ProductName": "Chang",
216
- * "UnitPrice": 19.0000,
217
- * "Discontinued": false
218
- * }
219
- * ];
220
- *
221
- * ```
222
111
  */
223
112
  set locked(value) {
224
113
  this._locked = value;
@@ -18,7 +18,7 @@ export class PreventableEvent {
18
18
  this.prevented = true;
19
19
  }
20
20
  /**
21
- * Returns `true` if the event was prevented
21
+ * Returns a respective boolean if the event was prevented
22
22
  * by any of its subscribers.
23
23
  *
24
24
  * @returns `true` if the default action was prevented.
@@ -35,7 +35,7 @@ export class PopupCloseEvent extends PreventableEvent {
35
35
  const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
36
36
  /**
37
37
  * The service that is used for the popups of the filter and column menus
38
- * ([see example]({% slug filter_menu %}#toc-custom-filter-row-components)#toc-filter-menu-with-popup).
38
+ * ([see example]({% slug filter_menu %}#toc-filter-menu-with-popup)).
39
39
  */
40
40
  export class SinglePopupService {
41
41
  constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
@@ -15,29 +15,19 @@ const declarations = [ExcelComponent, ExcelCommandDirective];
15
15
  *
16
16
  * @example
17
17
  *
18
- * ```ts-no-run
19
- * // Import the Grid and Excel modules
20
- * import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
21
- *
22
- * // The browser platform with a compiler
23
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
- *
18
+ * ```ts
25
19
  * import { NgModule } from '@angular/core';
26
- *
27
- * // Import the app component
20
+ * import { BrowserModule } from "@angular/platform-browser";
21
+ * import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
28
22
  * import { AppComponent } from './app.component';
29
23
  *
30
- * // Define the app module
31
24
  * _@NgModule({
32
- * declarations: [AppComponent], // declare app component
33
- * imports: [BrowserModule, GridModule, ExcelModule], // import Grid and Excel modules
25
+ * declarations: [AppComponent],
26
+ * imports: [BrowserModule, GridModule, ExcelModule],
34
27
  * bootstrap: [AppComponent]
35
28
  * })
36
29
  * export class AppModule {}
37
30
  *
38
- * // Compile and launch the module
39
- * platformBrowserDynamic().bootstrapModule(AppModule);
40
- *
41
31
  * ```
42
32
  */
43
33
  export class ExcelModule {
@@ -18,19 +18,20 @@ import * as i6 from "../filter-input.directive";
18
18
  import * as i7 from "../../navigation/focusable.directive";
19
19
  /**
20
20
  * Represents a Boolean filter-cell component.
21
+ * [See example](slug:filter_row#toc-built-in-filter-row-components).
21
22
  *
22
23
  * @example
23
24
  *
24
- * ```html-no-run
25
- * <kendo-grid-column field="ProductName" title="Product Name">
26
- * <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
27
- * <kendo-grid-boolean-filter-cell
28
- * [column]="column"
29
- * [filter]="filter">
30
- * </kendo-grid-boolean-filter-cell>
31
- * </ng-template>
32
- * </kendo-grid-column>
33
- * ```
25
+ * ```html
26
+ * <kendo-grid-column field="Discontinued">
27
+ * <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
28
+ * <kendo-grid-boolean-filter-cell
29
+ * [column]="column"
30
+ * [filter]="filter">
31
+ * </kendo-grid-boolean-filter-cell>
32
+ * </ng-template>
33
+ * </kendo-grid-column>
34
+ * ```
34
35
  */
35
36
  export class BooleanFilterCellComponent extends BooleanFilterComponent {
36
37
  constructor(filterService, localization, cd, sizingService) {