@progress/kendo-angular-treelist 13.0.0-develop.6 → 13.0.0-develop.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-chooser.component.d.ts +10 -6
- package/column-menu/column-menu-chooser.component.d.ts +6 -10
- package/column-menu/column-menu-filter.component.d.ts +6 -10
- package/column-menu/column-menu-item-content-template.directive.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +8 -6
- package/column-menu/column-menu-lock.component.d.ts +5 -11
- package/column-menu/column-menu-sort.component.d.ts +5 -11
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-menu/column-menu.service.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-group.component.d.ts +9 -6
- package/columns/column.component.d.ts +16 -66
- package/columns/command-column.component.d.ts +13 -15
- package/columns/span-column.component.d.ts +10 -81
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +11 -0
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +10 -6
- package/esm2020/column-menu/column-menu-chooser.component.mjs +8 -12
- package/esm2020/column-menu/column-menu-filter.component.mjs +6 -10
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +1 -1
- package/esm2020/column-menu/column-menu-item.component.mjs +8 -6
- package/esm2020/column-menu/column-menu-lock.component.mjs +5 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +5 -11
- package/esm2020/column-menu/column-menu.component.mjs +1 -1
- package/esm2020/column-menu/column-menu.service.mjs +1 -1
- package/esm2020/columns/checkbox-column.component.mjs +1 -1
- package/esm2020/columns/column-group.component.mjs +9 -6
- package/esm2020/columns/column.component.mjs +16 -39
- package/esm2020/columns/command-column.component.mjs +13 -15
- package/esm2020/columns/span-column.component.mjs +10 -81
- package/esm2020/editing/add-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +1 -1
- package/esm2020/editing/edit-command.directive.mjs +1 -1
- package/esm2020/editing/edit-template.directive.mjs +11 -0
- package/esm2020/editing/remove-command.directive.mjs +1 -1
- package/esm2020/editing/save-command.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +1 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +13 -12
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -13
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +11 -12
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -0
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
- package/esm2020/pager/pager-template.directive.mjs +1 -1
- package/esm2020/pdf/pdf-command.directive.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/rendering/cell-template.directive.mjs +1 -1
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/treelist.component.mjs +24 -288
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel.component.d.ts +9 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +303 -668
- package/fesm2020/progress-kendo-angular-treelist.mjs +303 -668
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -11
- package/filtering/cell/date-filter-cell.component.d.ts +11 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +13 -12
- package/filtering/cell/string-filter-cell.component.d.ts +12 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/menu/boolean-filter-menu.component.d.ts +11 -12
- package/filtering/menu/date-filter-menu.component.d.ts +12 -12
- package/filtering/menu/numeric-filter-menu.component.d.ts +12 -12
- package/filtering/menu/string-filter-menu.component.d.ts +15 -0
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/ends-with-filter-operator.component.d.ts +1 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/gte-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +1 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +1 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +1 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +16 -16
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-template.directive.d.ts +1 -1
- package/pdf/pdf-command.directive.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/rendering/cell-template.directive.d.ts +1 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
- package/treelist.component.d.ts +24 -287
|
@@ -174,7 +174,7 @@ export declare class Messages extends ComponentMessages {
|
|
|
174
174
|
/**
|
|
175
175
|
* The loading text.
|
|
176
176
|
*
|
|
177
|
-
*
|
|
177
|
+
* The `loading` property is part of the accessibility support of the TreeList.
|
|
178
178
|
* Its value is detectable by screen readers and is not otherwise visible.
|
|
179
179
|
*/
|
|
180
180
|
loading: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treelist",
|
|
3
|
-
"version": "13.0.0-develop.
|
|
3
|
+
"version": "13.0.0-develop.8",
|
|
4
4
|
"description": "Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
"@progress/kendo-data-query": "^1.0.0",
|
|
31
31
|
"@progress/kendo-drawing": "^1.17.2",
|
|
32
32
|
"@progress/kendo-licensing": "^1.0.2",
|
|
33
|
-
"@progress/kendo-angular-buttons": "13.0.0-develop.
|
|
34
|
-
"@progress/kendo-angular-common": "13.0.0-develop.
|
|
35
|
-
"@progress/kendo-angular-dateinputs": "13.0.0-develop.
|
|
36
|
-
"@progress/kendo-angular-dropdowns": "13.0.0-develop.
|
|
37
|
-
"@progress/kendo-angular-excel-export": "13.0.0-develop.
|
|
38
|
-
"@progress/kendo-angular-icons": "13.0.0-develop.
|
|
39
|
-
"@progress/kendo-angular-inputs": "13.0.0-develop.
|
|
40
|
-
"@progress/kendo-angular-intl": "13.0.0-develop.
|
|
41
|
-
"@progress/kendo-angular-l10n": "13.0.0-develop.
|
|
42
|
-
"@progress/kendo-angular-label": "13.0.0-develop.
|
|
43
|
-
"@progress/kendo-angular-pdf-export": "13.0.0-develop.
|
|
44
|
-
"@progress/kendo-angular-popup": "13.0.0-develop.
|
|
45
|
-
"@progress/kendo-angular-utils": "13.0.0-develop.
|
|
33
|
+
"@progress/kendo-angular-buttons": "13.0.0-develop.8",
|
|
34
|
+
"@progress/kendo-angular-common": "13.0.0-develop.8",
|
|
35
|
+
"@progress/kendo-angular-dateinputs": "13.0.0-develop.8",
|
|
36
|
+
"@progress/kendo-angular-dropdowns": "13.0.0-develop.8",
|
|
37
|
+
"@progress/kendo-angular-excel-export": "13.0.0-develop.8",
|
|
38
|
+
"@progress/kendo-angular-icons": "13.0.0-develop.8",
|
|
39
|
+
"@progress/kendo-angular-inputs": "13.0.0-develop.8",
|
|
40
|
+
"@progress/kendo-angular-intl": "13.0.0-develop.8",
|
|
41
|
+
"@progress/kendo-angular-l10n": "13.0.0-develop.8",
|
|
42
|
+
"@progress/kendo-angular-label": "13.0.0-develop.8",
|
|
43
|
+
"@progress/kendo-angular-pdf-export": "13.0.0-develop.8",
|
|
44
|
+
"@progress/kendo-angular-popup": "13.0.0-develop.8",
|
|
45
|
+
"@progress/kendo-angular-utils": "13.0.0-develop.8",
|
|
46
46
|
"rxjs": "^6.5.3 || ^7.0.0",
|
|
47
|
-
"@progress/kendo-angular-listview": "13.0.0-develop.
|
|
47
|
+
"@progress/kendo-angular-listview": "13.0.0-develop.8"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"tslib": "^2.3.1",
|
|
51
|
-
"@progress/kendo-angular-schematics": "13.0.0-develop.
|
|
51
|
+
"@progress/kendo-angular-schematics": "13.0.0-develop.8",
|
|
52
52
|
"@progress/kendo-common": "^0.2.0",
|
|
53
53
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
54
54
|
},
|
|
@@ -8,7 +8,7 @@ import { PagerContextChanges, PagerContextService } from './pager-context.servic
|
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* Displays numeric buttons to enable navigation between the pages.
|
|
11
|
+
* Displays numeric buttons to enable navigation between the pages ([see example]({% slug paging_treelist %}#toc-pager-templates)).
|
|
12
12
|
*/
|
|
13
13
|
export declare class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
14
14
|
protected pagerContext: PagerContextService;
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PDFExportMarginComponent } from '@progress/kendo-angular-pdf-export';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the Kendo UI PDFMargin component for Angular.
|
|
9
|
+
* The supported units are:
|
|
10
|
+
* `"mm"`
|
|
11
|
+
* `"cm"`
|
|
12
|
+
* `"in"`
|
|
13
|
+
* `"pt"` (default).
|
|
14
|
+
* Numbers are considered to be points (`"pt"`).
|
|
15
|
+
*/
|
|
7
16
|
export declare class PDFMarginComponent extends PDFExportMarginComponent {
|
|
8
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PDFMarginComponent, never>;
|
|
9
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<PDFMarginComponent, "kendo-treelist-pdf-margin", never, {}, {}, never, never>;
|
|
@@ -20,7 +20,7 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
* - `loading`—Specifies if the item children are currently loading.
|
|
21
21
|
* - `rowIndex`—The current row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* @example
|
|
24
24
|
* ```html
|
|
25
25
|
* <kendo-treelist ...>
|
|
26
26
|
* <kendo-treelist-column field="ProductName">
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Represents the Kendo UI TreeListSpacer component for Angular.
|
|
8
8
|
* Used to give additional white space between the Pager inner elements,
|
|
9
9
|
* and provides a way for customizing the spacer width.
|
|
10
|
-
* It can also be used in any flex container within the TreeList.
|
|
10
|
+
* It can also be used in any flex container within the TreeList. [See example](slug:toolbartemplate_treelist#toc-define-spacing-between-the-toolbar-elements).
|
|
11
11
|
*/
|
|
12
12
|
export declare class TreeListSpacerComponent {
|
|
13
13
|
hostClass: boolean;
|
|
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeListModule', package: 'treelist', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '13.0.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '13.0.0-develop.8',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '13.0.0-develop.
|
|
9
|
+
'@progress/kendo-angular-dialog': '13.0.0-develop.8',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^1.0.0',
|
|
12
12
|
// peer dependency of kendo-angular-dateinputs
|
|
13
|
-
'@progress/kendo-angular-navigation': '13.0.0-develop.
|
|
13
|
+
'@progress/kendo-angular-navigation': '13.0.0-develop.8',
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|
package/treelist.component.d.ts
CHANGED
|
@@ -70,12 +70,11 @@ import * as i0 from "@angular/core";
|
|
|
70
70
|
/**
|
|
71
71
|
* Represents the Kendo UI TreeList component for Angular.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* {% endmeta %}
|
|
73
|
+
* @example
|
|
74
|
+
* ```html
|
|
75
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...></kendo-treelist>
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
79
78
|
*/
|
|
80
79
|
export declare class TreeListComponent implements AfterContentInit, AfterViewInit, OnDestroy, OnChanges, OnInit {
|
|
81
80
|
private supportService;
|
|
@@ -126,8 +125,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
126
125
|
*/
|
|
127
126
|
height: number;
|
|
128
127
|
/**
|
|
129
|
-
*
|
|
128
|
+
* Represent the actual height of each TreeList row (`tr`) element in the DOM.
|
|
130
129
|
* Required by the [virtual scrolling functionality]({% slug scrollmmodes_treelist %}).
|
|
130
|
+
* Set the `rowHeight` option to the exact pixels as the height of the `tr` element appears in the DOM.
|
|
131
131
|
*/
|
|
132
132
|
rowHeight: number;
|
|
133
133
|
/**
|
|
@@ -138,10 +138,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
138
138
|
set skip(value: number | null | undefined);
|
|
139
139
|
/**
|
|
140
140
|
* Defines the scroll mode used by the TreeList.
|
|
141
|
-
*
|
|
142
|
-
* The available options are:
|
|
143
|
-
* - `none`—Renders no scrollbar.
|
|
144
|
-
* - `scrollable`—The default scroll mode. It requires the setting of the `height` option.
|
|
141
|
+
* @default 'scrollable'
|
|
145
142
|
*/
|
|
146
143
|
scrollable: ScrollMode;
|
|
147
144
|
/**
|
|
@@ -154,45 +151,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
154
151
|
*
|
|
155
152
|
* By default, the TreeList tracks changes by the index of the data item.
|
|
156
153
|
* Edited rows are tracked by reference.
|
|
157
|
-
*
|
|
158
|
-
* for example, when you implement editing with immutable data items.
|
|
159
|
-
*
|
|
160
|
-
* The following example demonstrates how to track items only by index.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```ts
|
|
164
|
-
* import { Component } from '@angular/core';
|
|
165
|
-
* import { TreeListItem } from '@progress/kendo-angular-treelist';
|
|
166
|
-
*
|
|
167
|
-
* _@Component({
|
|
168
|
-
* selector: 'my-app',
|
|
169
|
-
* template: `
|
|
170
|
-
* <kendo-treelist [data]="treelistData" [trackBy]="trackBy">
|
|
171
|
-
* </kendo-treelist>
|
|
172
|
-
* `
|
|
173
|
-
* })
|
|
174
|
-
* class AppComponent {
|
|
175
|
-
* public treelistData: any[] = products;
|
|
176
|
-
*
|
|
177
|
-
* public trackBy(index: number, item: TreeListItem): any {
|
|
178
|
-
* console.log(item);
|
|
179
|
-
* return index;
|
|
180
|
-
* }
|
|
181
|
-
* }
|
|
182
|
-
*
|
|
183
|
-
* const products = [{
|
|
184
|
-
* "ProductID": 1,
|
|
185
|
-
* "ProductName": "Chai",
|
|
186
|
-
* "UnitPrice": 18.0000,
|
|
187
|
-
* "Discontinued": true
|
|
188
|
-
* }, {
|
|
189
|
-
* "ProductID": 2,
|
|
190
|
-
* "ProductName": "Chang",
|
|
191
|
-
* "UnitPrice": 19.0000,
|
|
192
|
-
* "Discontinued": false
|
|
193
|
-
* }
|
|
194
|
-
* ];
|
|
195
|
-
* ```
|
|
154
|
+
*
|
|
196
155
|
*/
|
|
197
156
|
trackBy: TrackByFunction<TreeListItem>;
|
|
198
157
|
/**
|
|
@@ -201,6 +160,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
201
160
|
filter: CompositeFilterDescriptor | null | undefined;
|
|
202
161
|
/**
|
|
203
162
|
* If set to `true`, the treelist will render only the columns in the current viewport.
|
|
163
|
+
* @default false
|
|
204
164
|
*/
|
|
205
165
|
virtualColumns: boolean;
|
|
206
166
|
/**
|
|
@@ -231,18 +191,12 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
231
191
|
/**
|
|
232
192
|
* Configures the pager of the TreeList ([see example]({% slug paging_treelist %})).
|
|
233
193
|
*
|
|
234
|
-
* The available options are:
|
|
235
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed. Defaults to `10`.
|
|
236
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records. Defaults to `true`.
|
|
237
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values. Defaults to `'numeric'`.
|
|
238
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size. Defaults to `false`.
|
|
239
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons. Defaults to `true`.
|
|
240
|
-
* - `responsive: Boolean`—Toggles the built-in responsive behavior of the Pager. Defaults to `true`.
|
|
241
194
|
*/
|
|
242
195
|
pageable: PagerSettings | boolean;
|
|
243
196
|
/**
|
|
244
197
|
* If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
|
|
245
198
|
* By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
|
|
199
|
+
* @default false
|
|
246
200
|
*/
|
|
247
201
|
navigable: boolean;
|
|
248
202
|
/**
|
|
@@ -261,53 +215,13 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
261
215
|
* Columns with `autoSize` set to `false` are excluded.
|
|
262
216
|
* To dynamically update the column width to match the new content,
|
|
263
217
|
* refer to [this example]({% slug resizing_columns_treelist %}).
|
|
218
|
+
*
|
|
219
|
+
* @default false
|
|
264
220
|
*/
|
|
265
221
|
autoSize: boolean;
|
|
266
222
|
/**
|
|
267
223
|
* Defines a function that is executed for every data row in the component.
|
|
268
224
|
*
|
|
269
|
-
* @example
|
|
270
|
-
* ```ts
|
|
271
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
272
|
-
* import { RowClassArgs } from '@progress/kendo-angular-treelist';
|
|
273
|
-
*
|
|
274
|
-
* _@Component({
|
|
275
|
-
* selector: 'my-app',
|
|
276
|
-
* encapsulation: ViewEncapsulation.None,
|
|
277
|
-
* styles: [`
|
|
278
|
-
* .k-treelist tr.even { background-color: #f45c42; }
|
|
279
|
-
* .k-treelist tr.odd { background-color: #41f4df; }
|
|
280
|
-
* `],
|
|
281
|
-
* template: `
|
|
282
|
-
* <kendo-treelist [data]="treelistData" [rowClass]="rowCallback">
|
|
283
|
-
* </kendo-treelist>
|
|
284
|
-
* `
|
|
285
|
-
* })
|
|
286
|
-
* class AppComponent {
|
|
287
|
-
* public treelistData: any[] = products;
|
|
288
|
-
*
|
|
289
|
-
* public rowCallback(context: RowClassArgs) {
|
|
290
|
-
* const isEven = context.index % 2 === 0;
|
|
291
|
-
* return {
|
|
292
|
-
* even: isEven,
|
|
293
|
-
* odd: !isEven
|
|
294
|
-
* };
|
|
295
|
-
* }
|
|
296
|
-
* }
|
|
297
|
-
*
|
|
298
|
-
* const products = [{
|
|
299
|
-
* "ProductID": 1,
|
|
300
|
-
* "ProductName": "Chai",
|
|
301
|
-
* "UnitPrice": 18.0000,
|
|
302
|
-
* "Discontinued": true
|
|
303
|
-
* }, {
|
|
304
|
-
* "ProductID": 2,
|
|
305
|
-
* "ProductName": "Chang",
|
|
306
|
-
* "UnitPrice": 19.0000,
|
|
307
|
-
* "Discontinued": false
|
|
308
|
-
* }
|
|
309
|
-
* ];
|
|
310
|
-
* ```
|
|
311
225
|
*/
|
|
312
226
|
set rowClass(fn: RowClassFn);
|
|
313
227
|
get rowClass(): RowClassFn;
|
|
@@ -348,7 +262,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
348
262
|
/**
|
|
349
263
|
* Specifies if the header of the treelist will be hidden. The header is visible by default.
|
|
350
264
|
*
|
|
351
|
-
*
|
|
265
|
+
* The header includes column headers and the [filter row]({% slug filtering_treelist %}#toc-filter-row).
|
|
266
|
+
*
|
|
267
|
+
* @default false
|
|
352
268
|
*/
|
|
353
269
|
hideHeader: boolean;
|
|
354
270
|
/**
|
|
@@ -362,7 +278,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
362
278
|
*/
|
|
363
279
|
set selectable(value: boolean | SelectableSettings);
|
|
364
280
|
/**
|
|
365
|
-
* Provides a callback that determines if the given row
|
|
281
|
+
* Provides a callback that determines if the given row or cell is selected.
|
|
366
282
|
*/
|
|
367
283
|
set isSelected(value: IsSelectedFn);
|
|
368
284
|
/**
|
|
@@ -693,7 +609,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
693
609
|
* Exports the TreeList element to a Drawing [`Group`]({% slug api_kendo-drawing_group %}) by using the `kendo-treelist-pdf` component options.
|
|
694
610
|
* ([see example]({% slug pdfexport_treelist %}#toc-exporting-multiple-treelists-to-the-same-pdf)).
|
|
695
611
|
*
|
|
696
|
-
* @return {Promise}
|
|
612
|
+
* @return {Promise} A promise that will be resolved with the Drawing `Group`.
|
|
697
613
|
*/
|
|
698
614
|
drawPDF(): Promise<any>;
|
|
699
615
|
/**
|
|
@@ -705,64 +621,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
705
621
|
* so that the whole text fits without wrapping. This method expects the TreeList
|
|
706
622
|
* to be resizable (set `resizable` to `true`).
|
|
707
623
|
* Makes sense to execute this method only
|
|
708
|
-
* after the TreeList is already populated with data.
|
|
709
|
-
*
|
|
710
|
-
* @example
|
|
711
|
-
* ```ts
|
|
712
|
-
* _@Component({
|
|
713
|
-
* selector: 'my-app',
|
|
714
|
-
* template: `
|
|
715
|
-
* <kendo-treelist
|
|
716
|
-
* #treelist
|
|
717
|
-
* [data]="treelistData"
|
|
718
|
-
* [resizable]="true"
|
|
719
|
-
* style="height: 300px">
|
|
720
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
721
|
-
* <button kendoButton (click)="treelist.autoFitColumn(groupColumn)">
|
|
722
|
-
* Auto-fit the group column
|
|
723
|
-
* </button>
|
|
724
|
-
* </ng-template>
|
|
725
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
726
|
-
* <kendo-treelist-column
|
|
727
|
-
* field="ProductID"
|
|
728
|
-
* [width]="50"
|
|
729
|
-
* [minResizableWidth]="30"
|
|
730
|
-
* title="ID">
|
|
731
|
-
* </kendo-treelist-column>
|
|
732
|
-
*
|
|
733
|
-
* <kendo-treelist-column
|
|
734
|
-
* field="ProductName"
|
|
735
|
-
* title="Product Name">
|
|
736
|
-
* </kendo-treelist-column>
|
|
737
|
-
* </kendo-treelist-column-group>
|
|
738
|
-
*
|
|
739
|
-
* <kendo-treelist-column
|
|
740
|
-
* field="UnitPrice"
|
|
741
|
-
* title="Unit Price"
|
|
742
|
-
* [width]="180"
|
|
743
|
-
* filter="numeric"
|
|
744
|
-
* format="{0:c}">
|
|
745
|
-
* </kendo-treelist-column>
|
|
746
|
-
* </kendo-treelist>
|
|
747
|
-
* `
|
|
748
|
-
* })
|
|
749
|
-
* class AppComponent {
|
|
750
|
-
* public treelistData: any[] = products;
|
|
751
|
-
* }
|
|
752
|
-
*
|
|
753
|
-
* const products = [{
|
|
754
|
-
* "ProductID": 1,
|
|
755
|
-
* "ProductName": "Chai",
|
|
756
|
-
* "UnitPrice": 18.0000,
|
|
757
|
-
* "Discontinued": true
|
|
758
|
-
* }, {
|
|
759
|
-
* "ProductID": 2,
|
|
760
|
-
* "ProductName": "Chang",
|
|
761
|
-
* "UnitPrice": 19.0000,
|
|
762
|
-
* "Discontinued": false
|
|
763
|
-
* }
|
|
764
|
-
* ];
|
|
765
|
-
* ```
|
|
624
|
+
* after the TreeList is already populated with data. [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
625
|
+
*
|
|
766
626
|
*/
|
|
767
627
|
autoFitColumn(column: ColumnBase): void;
|
|
768
628
|
/**
|
|
@@ -770,69 +630,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
770
630
|
* If no columns are specified, `autoFitColumns` is applied to all columns.
|
|
771
631
|
*
|
|
772
632
|
* This method requires the TreeList to be resizable (set `resizable` to `true`).
|
|
773
|
-
*
|
|
774
|
-
* @example
|
|
775
|
-
* ```ts
|
|
776
|
-
* _@Component({
|
|
777
|
-
* selector: 'my-app',
|
|
778
|
-
* template: `
|
|
779
|
-
* <kendo-treelist
|
|
780
|
-
* #treelist
|
|
781
|
-
* [data]="treelistData"
|
|
782
|
-
* [resizable]="true"
|
|
783
|
-
* style="height: 300px">
|
|
784
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
785
|
-
* <button kendoButton (click)="treelist.autoFitColumns([firstColumn, lastColumn])">
|
|
786
|
-
* Auto-fit the first and last column
|
|
787
|
-
* </button>
|
|
788
|
-
* <button kendoButton (click)="treelist.autoFitColumns()">
|
|
789
|
-
* Auto-fit all columns
|
|
790
|
-
* </button>
|
|
791
|
-
* </ng-template>
|
|
792
|
-
* <kendo-treelist-column-group title="Product Info">
|
|
793
|
-
* <kendo-treelist-column
|
|
794
|
-
* #firstColumn
|
|
795
|
-
* field="ProductID"
|
|
796
|
-
* [width]="50"
|
|
797
|
-
* [minResizableWidth]="30"
|
|
798
|
-
* title="ID">
|
|
799
|
-
* </kendo-treelist-column>
|
|
800
|
-
*
|
|
801
|
-
* <kendo-treelist-column
|
|
802
|
-
* field="ProductName"
|
|
803
|
-
* title="Product Name"
|
|
804
|
-
* >
|
|
805
|
-
* </kendo-treelist-column>
|
|
806
|
-
* </kendo-treelist-column-group>
|
|
807
|
-
*
|
|
808
|
-
* <kendo-treelist-column
|
|
809
|
-
* #lastColumn
|
|
810
|
-
* field="UnitPrice"
|
|
811
|
-
* title="Unit Price"
|
|
812
|
-
* [width]="180"
|
|
813
|
-
* filter="numeric"
|
|
814
|
-
* format="{0:c}">
|
|
815
|
-
* </kendo-treelist-column>
|
|
816
|
-
* </kendo-treelist>
|
|
817
|
-
* `
|
|
818
|
-
* })
|
|
819
|
-
* class AppComponent {
|
|
820
|
-
* public treelistData: any[] = products;
|
|
821
|
-
* }
|
|
822
|
-
*
|
|
823
|
-
* const products = [{
|
|
824
|
-
* "ProductID": 1,
|
|
825
|
-
* "ProductName": "Chai",
|
|
826
|
-
* "UnitPrice": 18.0000,
|
|
827
|
-
* "Discontinued": true
|
|
828
|
-
* }, {
|
|
829
|
-
* "ProductID": 2,
|
|
830
|
-
* "ProductName": "Chang",
|
|
831
|
-
* "UnitPrice": 19.0000,
|
|
832
|
-
* "Discontinued": false
|
|
833
|
-
* }
|
|
834
|
-
* ];
|
|
835
|
-
* ```
|
|
633
|
+
* [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
836
634
|
*/
|
|
837
635
|
autoFitColumns(columns?: Array<ColumnBase> | QueryList<ColumnBase>): void;
|
|
838
636
|
/**
|
|
@@ -860,9 +658,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
860
658
|
/**
|
|
861
659
|
* Focuses the cell with the specified row and column index.
|
|
862
660
|
*
|
|
863
|
-
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index
|
|
864
|
-
*
|
|
865
|
-
*
|
|
661
|
+
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index.
|
|
662
|
+
* The row indexing is absolute and does not change with paging.
|
|
663
|
+
* Header rows are included, starting at index 0.
|
|
866
664
|
*
|
|
867
665
|
* If the TreeList is configured for scrolling, including virtual scrolling, the scroll position will be updated.
|
|
868
666
|
* If the row is not present on the current page, the method will have no effect.
|
|
@@ -902,67 +700,6 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
902
700
|
* @param {number} destIndex - The new position of the column.
|
|
903
701
|
* @param {ColumnReorderConfig} options - Additional options.
|
|
904
702
|
*
|
|
905
|
-
* @example
|
|
906
|
-
* ```ts
|
|
907
|
-
* _@Component({
|
|
908
|
-
* selector: 'my-app',
|
|
909
|
-
* template: `
|
|
910
|
-
* <kendo-treelist
|
|
911
|
-
* #treelist
|
|
912
|
-
* [data]="treelistData"
|
|
913
|
-
* [reorderable]="true"
|
|
914
|
-
* style="height: 300px">
|
|
915
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
916
|
-
* <button kendoButton
|
|
917
|
-
* (click)="treelist.reorderColumn(groupColumn, 2, { before: true })">
|
|
918
|
-
* Move the group column before the last one.
|
|
919
|
-
* </button>
|
|
920
|
-
* </ng-template>
|
|
921
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
922
|
-
* <kendo-treelist-column
|
|
923
|
-
* field="ProductID"
|
|
924
|
-
* [width]="50"
|
|
925
|
-
* title="ID">
|
|
926
|
-
* </kendo-treelist-column>
|
|
927
|
-
*
|
|
928
|
-
* <kendo-treelist-column
|
|
929
|
-
* field="ProductName"
|
|
930
|
-
* title="Product Name">
|
|
931
|
-
* </kendo-treelist-column>
|
|
932
|
-
* </kendo-treelist-column-group>
|
|
933
|
-
*
|
|
934
|
-
* <kendo-treelist-column
|
|
935
|
-
* field="UnitPrice"
|
|
936
|
-
* title="Unit Price"
|
|
937
|
-
* [width]="180"
|
|
938
|
-
* format="{0:c}">
|
|
939
|
-
* </kendo-treelist-column>
|
|
940
|
-
*
|
|
941
|
-
* <kendo-treelist-column
|
|
942
|
-
* field="Discontinued"
|
|
943
|
-
* title="Discontinued"
|
|
944
|
-
* [width]="100">
|
|
945
|
-
* </kendo-treelist-column>
|
|
946
|
-
* </kendo-treelist>
|
|
947
|
-
* `
|
|
948
|
-
* })
|
|
949
|
-
* class AppComponent {
|
|
950
|
-
* public treelistData: any[] = products;
|
|
951
|
-
* }
|
|
952
|
-
*
|
|
953
|
-
* const products = [{
|
|
954
|
-
* "ProductID": 1,
|
|
955
|
-
* "ProductName": "Chai",
|
|
956
|
-
* "UnitPrice": 18.0000,
|
|
957
|
-
* "Discontinued": true
|
|
958
|
-
* }, {
|
|
959
|
-
* "ProductID": 2,
|
|
960
|
-
* "ProductName": "Chang",
|
|
961
|
-
* "UnitPrice": 19.0000,
|
|
962
|
-
* "Discontinued": false
|
|
963
|
-
* }
|
|
964
|
-
* ];
|
|
965
|
-
* ```
|
|
966
703
|
*/
|
|
967
704
|
reorderColumn(source: ColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
|
|
968
705
|
/**
|