@progress/kendo-angular-treelist 12.0.1 → 12.0.2-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu.service.d.ts +11 -6
- package/columns/column-base.d.ts +13 -306
- package/columns/sort-settings.d.ts +13 -0
- package/common/single-popup.service.d.ts +6 -0
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/esm2020/column-menu/column-menu.service.mjs +11 -6
- package/esm2020/columns/column-base.mjs +7 -42
- package/esm2020/common/single-popup.service.mjs +6 -0
- package/esm2020/excel/excel-export-event.mjs +1 -1
- package/esm2020/excel/excel.module.mjs +5 -17
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pdf/pdf.module.mjs +5 -16
- package/esm2020/treelist.module.mjs +5 -15
- package/excel/excel-export-event.d.ts +1 -1
- package/excel/excel.module.d.ts +5 -17
- package/fesm2015/progress-kendo-angular-treelist.mjs +42 -99
- package/fesm2020/progress-kendo-angular-treelist.mjs +42 -99
- package/filtering/filterable.d.ts +9 -0
- package/package.json +15 -15
- package/pager/pager-settings.d.ts +2 -7
- package/pdf/pdf.module.d.ts +5 -16
- package/schematics/ngAdd/index.js +3 -3
- package/treelist.module.d.ts +5 -15
|
@@ -8,12 +8,17 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Represents the service that is passed to the
|
|
9
9
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-treelist>
|
|
14
|
+
* <ng-template
|
|
15
|
+
* kendoTreeListColumnMenuTemplate
|
|
16
|
+
* let-service="service"
|
|
17
|
+
* let-column="column">
|
|
18
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-treelist>
|
|
21
|
+
* ```
|
|
17
22
|
*/
|
|
18
23
|
export declare class ColumnMenuService {
|
|
19
24
|
/**
|
package/columns/column-base.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export declare class ColumnBase implements OnChanges {
|
|
|
28
28
|
matchesMedia: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* The column index after reordering.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* The orderIndex` is a read-only property. Setting this field does not affect column order.
|
|
32
|
+
* @default 0
|
|
33
33
|
*/
|
|
34
34
|
orderIndex: number;
|
|
35
35
|
/**
|
|
@@ -61,6 +61,7 @@ export declare class ColumnBase implements OnChanges {
|
|
|
61
61
|
reorderable: boolean;
|
|
62
62
|
/**
|
|
63
63
|
* The width (in pixels) below which the user is not able to resize the column by using the UI.
|
|
64
|
+
* @default 10
|
|
64
65
|
*/
|
|
65
66
|
minResizableWidth: number;
|
|
66
67
|
/**
|
|
@@ -77,48 +78,9 @@ export declare class ColumnBase implements OnChanges {
|
|
|
77
78
|
*/
|
|
78
79
|
autoSize: boolean;
|
|
79
80
|
/**
|
|
80
|
-
* Toggles the locked (frozen) state of the columns ([more information and example](
|
|
81
|
+
* Toggles the locked (frozen) state of the columns ([more information and example](slug:locked_columns_treelist)).
|
|
81
82
|
*
|
|
82
83
|
* @default false
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```ts
|
|
86
|
-
* _@Component({
|
|
87
|
-
* selector: 'my-app',
|
|
88
|
-
* template: `
|
|
89
|
-
* <kendo-treelist [data]="treelistData" [scrollable]="scrollable" style="height: 200px">
|
|
90
|
-
* <kendo-treelist-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
|
|
91
|
-
* </kendo-treelist-column>
|
|
92
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200">
|
|
93
|
-
* </kendo-treelist-column>
|
|
94
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
95
|
-
* </kendo-treelist-column>
|
|
96
|
-
* </kendo-treelist>
|
|
97
|
-
* `
|
|
98
|
-
* })
|
|
99
|
-
*
|
|
100
|
-
* class AppComponent {
|
|
101
|
-
* public treelistData: any[];
|
|
102
|
-
*
|
|
103
|
-
* constructor() {
|
|
104
|
-
* this.treelistData = products;
|
|
105
|
-
* }
|
|
106
|
-
* }
|
|
107
|
-
*
|
|
108
|
-
* const products = [{
|
|
109
|
-
* "ProductID": 1,
|
|
110
|
-
* "ProductName": "Chai",
|
|
111
|
-
* "UnitPrice": 18.0000,
|
|
112
|
-
* "Discontinued": true
|
|
113
|
-
* }, {
|
|
114
|
-
* "ProductID": 2,
|
|
115
|
-
* "ProductName": "Chang",
|
|
116
|
-
* "UnitPrice": 19.0000,
|
|
117
|
-
* "Discontinued": false
|
|
118
|
-
* }
|
|
119
|
-
* ];
|
|
120
|
-
*
|
|
121
|
-
* ```
|
|
122
84
|
*/
|
|
123
85
|
set locked(value: boolean);
|
|
124
86
|
get locked(): boolean;
|
|
@@ -130,84 +92,29 @@ export declare class ColumnBase implements OnChanges {
|
|
|
130
92
|
*/
|
|
131
93
|
hidden: boolean;
|
|
132
94
|
/**
|
|
133
|
-
* Sets the condition that needs to be satisfied for a column to remain visible ([see example](
|
|
95
|
+
* Sets the condition that needs to be satisfied for a column to remain visible ([see example](slug:responsive_treelist#toc-columns)).
|
|
134
96
|
* If you set the `hidden` property, the behavior of `media` is overridden.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```ts-no-run
|
|
138
|
-
* <kendo-treelist>
|
|
139
|
-
* <kendo-treelist-column field="UnitPrice" media="(min-width: 320px)">
|
|
140
|
-
* </kendo-treelist-column>
|
|
141
|
-
* </kendo-treelist>
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* Accepts the device identifiers that are [available in Bootstrap 4](https://v4-alpha.getbootstrap.com/layout/treelist/#treelist-options)
|
|
145
|
-
* ([see example]({% slug responsive_treelist %}#toc-bootstrap-4-compatibility)):
|
|
146
|
-
* * `"xs"`—Equivalent to `"(max-width: 576px)"`.
|
|
147
|
-
* * `"sm"`—Equivalent to `"(min-width: 576px)"`.
|
|
148
|
-
* * `"md"`—Equivalent to `"(min-width: 768px)"`.
|
|
149
|
-
* * `"lg"`—Equivalent to `"(min-width: 992px)"`.
|
|
150
|
-
* * `"xl"`—Equivalent to `"(min-width: 1200px)"`.
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* ```ts-no-run
|
|
154
|
-
* <kendo-treelist>
|
|
155
|
-
* <kendo-treelist-column field="UnitPrice" media="md">
|
|
156
|
-
* </kendo-treelist-column>
|
|
157
|
-
* </kendo-treelist>
|
|
158
|
-
* ```
|
|
159
97
|
*/
|
|
160
98
|
media: string;
|
|
161
99
|
/**
|
|
162
100
|
* Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
|
|
101
|
+
* @default true
|
|
163
102
|
*/
|
|
164
103
|
lockable: boolean;
|
|
165
104
|
/**
|
|
166
105
|
* Specifies if the column menu will be shown for the column.
|
|
106
|
+
* @default true
|
|
167
107
|
*/
|
|
168
108
|
columnMenu: boolean;
|
|
169
109
|
/**
|
|
170
110
|
* Specifies if the column will be included in the column-chooser list.
|
|
111
|
+
* @default true
|
|
171
112
|
*/
|
|
172
113
|
includeInChooser: boolean;
|
|
173
114
|
/**
|
|
174
115
|
* Sets the custom styles for the table cells (excluding the footer and header ones) of the column. Under the hood,
|
|
175
116
|
* to apply the property, the `style` option uses the
|
|
176
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```ts
|
|
180
|
-
* _@Component({
|
|
181
|
-
* selector: 'my-app',
|
|
182
|
-
* template: `
|
|
183
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
184
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [style]="{'text-align': 'right'}">
|
|
185
|
-
* </kendo-treelist-column>
|
|
186
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
187
|
-
* </kendo-treelist-column>
|
|
188
|
-
* </kendo-treelist>
|
|
189
|
-
* `
|
|
190
|
-
* })
|
|
191
|
-
*
|
|
192
|
-
* class AppComponent {
|
|
193
|
-
* public treelistData: any[];
|
|
194
|
-
*
|
|
195
|
-
* constructor() {
|
|
196
|
-
* this.treelistData = [{
|
|
197
|
-
* "ProductID": 1,
|
|
198
|
-
* "ProductName": "Chai",
|
|
199
|
-
* "UnitPrice": 18.0000,
|
|
200
|
-
* "Discontinued": true
|
|
201
|
-
* }, {
|
|
202
|
-
* "ProductID": 2,
|
|
203
|
-
* "ProductName": "Chang",
|
|
204
|
-
* "UnitPrice": 19.0000,
|
|
205
|
-
* "Discontinued": false
|
|
206
|
-
* }];
|
|
207
|
-
* }
|
|
208
|
-
* }
|
|
209
|
-
*
|
|
210
|
-
* ```
|
|
117
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist).
|
|
211
118
|
*/
|
|
212
119
|
style: {
|
|
213
120
|
[key: string]: string;
|
|
@@ -215,41 +122,7 @@ export declare class ColumnBase implements OnChanges {
|
|
|
215
122
|
/**
|
|
216
123
|
* Sets the custom styles for the header cell of the column. Under the hood, to apply the property,
|
|
217
124
|
* the `headerStyle` option uses the
|
|
218
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
219
|
-
*
|
|
220
|
-
* @example
|
|
221
|
-
* ```ts
|
|
222
|
-
* _@Component({
|
|
223
|
-
* selector: 'my-app',
|
|
224
|
-
* template: `
|
|
225
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
226
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [headerStyle]="{'text-align': 'right'}">
|
|
227
|
-
* </kendo-treelist-column>
|
|
228
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
229
|
-
* </kendo-treelist-column>
|
|
230
|
-
* </kendo-treelist>
|
|
231
|
-
* `
|
|
232
|
-
* })
|
|
233
|
-
*
|
|
234
|
-
* class AppComponent {
|
|
235
|
-
* public treelistData: any[];
|
|
236
|
-
*
|
|
237
|
-
* constructor() {
|
|
238
|
-
* this.treelistData = [{
|
|
239
|
-
* "ProductID": 1,
|
|
240
|
-
* "ProductName": "Chai",
|
|
241
|
-
* "UnitPrice": 18.0000,
|
|
242
|
-
* "Discontinued": true
|
|
243
|
-
* }, {
|
|
244
|
-
* "ProductID": 2,
|
|
245
|
-
* "ProductName": "Chang",
|
|
246
|
-
* "UnitPrice": 19.0000,
|
|
247
|
-
* "Discontinued": false
|
|
248
|
-
* }];
|
|
249
|
-
* }
|
|
250
|
-
* }
|
|
251
|
-
*
|
|
252
|
-
* ```
|
|
125
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist).
|
|
253
126
|
*/
|
|
254
127
|
headerStyle: {
|
|
255
128
|
[key: string]: string;
|
|
@@ -257,44 +130,7 @@ export declare class ColumnBase implements OnChanges {
|
|
|
257
130
|
/**
|
|
258
131
|
* Sets the custom styles for the footer cell of the column. Under the hood, to apply the property,
|
|
259
132
|
* the `footerStyle` option uses the
|
|
260
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
261
|
-
*
|
|
262
|
-
* @example
|
|
263
|
-
* ```ts
|
|
264
|
-
* _@Component({
|
|
265
|
-
* selector: 'my-app',
|
|
266
|
-
* template: `
|
|
267
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
268
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [footerStyle]="{'text-align': 'right'}">
|
|
269
|
-
* <ng-template kendoTreeListFooterTemplate>
|
|
270
|
-
* footer text
|
|
271
|
-
* </ng-template>
|
|
272
|
-
* </kendo-treelist-column>
|
|
273
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
274
|
-
* </kendo-treelist-column>
|
|
275
|
-
* </kendo-treelist>
|
|
276
|
-
* `
|
|
277
|
-
* })
|
|
278
|
-
*
|
|
279
|
-
* class AppComponent {
|
|
280
|
-
* public treelistData: any[];
|
|
281
|
-
*
|
|
282
|
-
* constructor() {
|
|
283
|
-
* this.treelistData = [{
|
|
284
|
-
* "ProductID": 1,
|
|
285
|
-
* "ProductName": "Chai",
|
|
286
|
-
* "UnitPrice": 18.0000,
|
|
287
|
-
* "Discontinued": true
|
|
288
|
-
* }, {
|
|
289
|
-
* "ProductID": 2,
|
|
290
|
-
* "ProductName": "Chang",
|
|
291
|
-
* "UnitPrice": 19.0000,
|
|
292
|
-
* "Discontinued": false
|
|
293
|
-
* }];
|
|
294
|
-
* }
|
|
295
|
-
* }
|
|
296
|
-
*
|
|
297
|
-
* ```
|
|
133
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist).
|
|
298
134
|
*/
|
|
299
135
|
footerStyle: {
|
|
300
136
|
[key: string]: string;
|
|
@@ -304,48 +140,6 @@ export declare class ColumnBase implements OnChanges {
|
|
|
304
140
|
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
305
141
|
* To customize header and footer column cells, use the [`headerClass`]({% slug api_treelist_columncomponent %}#toc-headerclass)
|
|
306
142
|
* and [`footerClass`]({% slug api_treelist_columncomponent %}#toc-footerclass) inputs.
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* ```ts
|
|
310
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
311
|
-
*
|
|
312
|
-
* _@Component({
|
|
313
|
-
* selector: 'my-app',
|
|
314
|
-
* encapsulation: ViewEncapsulation.None,
|
|
315
|
-
* styles: [`
|
|
316
|
-
* tr .myClass {
|
|
317
|
-
* text-align: right
|
|
318
|
-
* }
|
|
319
|
-
* `],
|
|
320
|
-
* template: `
|
|
321
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
322
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [class]="{'myClass': true}">
|
|
323
|
-
* </kendo-treelist-column>
|
|
324
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
325
|
-
* </kendo-treelist-column>
|
|
326
|
-
* </kendo-treelist>
|
|
327
|
-
* `
|
|
328
|
-
* })
|
|
329
|
-
*
|
|
330
|
-
* class AppComponent {
|
|
331
|
-
* public treelistData: any[];
|
|
332
|
-
*
|
|
333
|
-
* constructor() {
|
|
334
|
-
* this.treelistData = [{
|
|
335
|
-
* "ProductID": 1,
|
|
336
|
-
* "ProductName": "Chai",
|
|
337
|
-
* "UnitPrice": 18.0000,
|
|
338
|
-
* "Discontinued": true
|
|
339
|
-
* }, {
|
|
340
|
-
* "ProductID": 2,
|
|
341
|
-
* "ProductName": "Chang",
|
|
342
|
-
* "UnitPrice": 19.0000,
|
|
343
|
-
* "Discontinued": false
|
|
344
|
-
* }];
|
|
345
|
-
* }
|
|
346
|
-
* }
|
|
347
|
-
*
|
|
348
|
-
* ```
|
|
349
143
|
*/
|
|
350
144
|
cssClass: string | string[] | Set<string> | {
|
|
351
145
|
[key: string]: any;
|
|
@@ -353,49 +147,7 @@ export declare class ColumnBase implements OnChanges {
|
|
|
353
147
|
/**
|
|
354
148
|
* Sets the custom CSS classes to the column header cell. Under the hood, to apply the property,
|
|
355
149
|
* the `headerClass` option uses the
|
|
356
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
357
|
-
*
|
|
358
|
-
* @example
|
|
359
|
-
* ```ts
|
|
360
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
361
|
-
*
|
|
362
|
-
* _@Component({
|
|
363
|
-
* selector: 'my-app',
|
|
364
|
-
* encapsulation: ViewEncapsulation.None,
|
|
365
|
-
* styles: [`
|
|
366
|
-
* tr .myClass {
|
|
367
|
-
* text-align: right
|
|
368
|
-
* }
|
|
369
|
-
* `],
|
|
370
|
-
* template: `
|
|
371
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
372
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [headerClass]="{'myClass': true}">
|
|
373
|
-
* </kendo-treelist-column>
|
|
374
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
375
|
-
* </kendo-treelist-column>
|
|
376
|
-
* </kendo-treelist>
|
|
377
|
-
* `
|
|
378
|
-
* })
|
|
379
|
-
*
|
|
380
|
-
* class AppComponent {
|
|
381
|
-
* public treelistData: any[];
|
|
382
|
-
*
|
|
383
|
-
* constructor() {
|
|
384
|
-
* this.treelistData = [{
|
|
385
|
-
* "ProductID": 1,
|
|
386
|
-
* "ProductName": "Chai",
|
|
387
|
-
* "UnitPrice": 18.0000,
|
|
388
|
-
* "Discontinued": true
|
|
389
|
-
* }, {
|
|
390
|
-
* "ProductID": 2,
|
|
391
|
-
* "ProductName": "Chang",
|
|
392
|
-
* "UnitPrice": 19.0000,
|
|
393
|
-
* "Discontinued": false
|
|
394
|
-
* }];
|
|
395
|
-
* }
|
|
396
|
-
* }
|
|
397
|
-
*
|
|
398
|
-
* ```
|
|
150
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist).
|
|
399
151
|
*/
|
|
400
152
|
headerClass: string | string[] | Set<string> | {
|
|
401
153
|
[key: string]: any;
|
|
@@ -403,52 +155,7 @@ export declare class ColumnBase implements OnChanges {
|
|
|
403
155
|
/**
|
|
404
156
|
* Sets the custom CSS classes to the column footer cell. Under the hood, to apply the property,
|
|
405
157
|
* the `footerClass` option uses the
|
|
406
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
407
|
-
*
|
|
408
|
-
* @example
|
|
409
|
-
* ```ts
|
|
410
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
411
|
-
*
|
|
412
|
-
* _@Component({
|
|
413
|
-
* selector: 'my-app',
|
|
414
|
-
* encapsulation: ViewEncapsulation.None,
|
|
415
|
-
* styles: [`
|
|
416
|
-
* tr .myClass {
|
|
417
|
-
* text-align: right
|
|
418
|
-
* }
|
|
419
|
-
* `],
|
|
420
|
-
* template: `
|
|
421
|
-
* <kendo-treelist [data]="treelistData" style="height: 200px">
|
|
422
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200" [footerClass]="{'myClass': true}">
|
|
423
|
-
* <ng-template kendoTreeListFooterTemplate>
|
|
424
|
-
* footer text
|
|
425
|
-
* </ng-template>
|
|
426
|
-
* </kendo-treelist-column>
|
|
427
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
428
|
-
* </kendo-treelist-column>
|
|
429
|
-
* </kendo-treelist>
|
|
430
|
-
* `
|
|
431
|
-
* })
|
|
432
|
-
*
|
|
433
|
-
* class AppComponent {
|
|
434
|
-
* public treelistData: any[];
|
|
435
|
-
*
|
|
436
|
-
* constructor() {
|
|
437
|
-
* this.treelistData = [{
|
|
438
|
-
* "ProductID": 1,
|
|
439
|
-
* "ProductName": "Chai",
|
|
440
|
-
* "UnitPrice": 18.0000,
|
|
441
|
-
* "Discontinued": true
|
|
442
|
-
* }, {
|
|
443
|
-
* "ProductID": 2,
|
|
444
|
-
* "ProductName": "Chang",
|
|
445
|
-
* "UnitPrice": 19.0000,
|
|
446
|
-
* "Discontinued": false
|
|
447
|
-
* }];
|
|
448
|
-
* }
|
|
449
|
-
* }
|
|
450
|
-
*
|
|
451
|
-
* ```
|
|
158
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist).
|
|
452
159
|
*/
|
|
453
160
|
footerClass: string | string[] | Set<string> | {
|
|
454
161
|
[key: string]: any;
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Defines the settings for sorting the TreeList column.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <kendo-treelist ...>
|
|
11
|
+
* <kendo-treelist-column field="ProductName" [sortable]="{ allowUnsort: true, initialDirection: 'asc'}">
|
|
12
|
+
* </kendo-treelist-column>
|
|
13
|
+
* </kendo-treelist>
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
export declare type ColumnSortSettings = boolean | {
|
|
9
17
|
/**
|
|
@@ -21,6 +29,11 @@ export declare type ColumnSortSettings = boolean | {
|
|
|
21
29
|
};
|
|
22
30
|
/**
|
|
23
31
|
* Defines the settings for sorting the TreeList.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```html
|
|
35
|
+
* <kendo-treelist [sortable]="{ mode: 'multiple', allowUnsort: false}"></kendo-treelist>
|
|
36
|
+
* ```
|
|
24
37
|
*/
|
|
25
38
|
export declare type SortSettings = boolean | ColumnSortSettings & {
|
|
26
39
|
/**
|
|
@@ -17,6 +17,9 @@ export declare class PopupCloseEvent extends PreventableEvent {
|
|
|
17
17
|
* The original DOM event that causes the popup to close.
|
|
18
18
|
*/
|
|
19
19
|
originalEvent: any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
20
23
|
constructor(e: any);
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
@@ -36,6 +39,9 @@ export declare class SinglePopupService implements OnDestroy {
|
|
|
36
39
|
private removeClick;
|
|
37
40
|
private popupRef;
|
|
38
41
|
private scrollSubscription;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
39
45
|
constructor(popupService: PopupService, renderer: Renderer2, ngZone: NgZone, scrollSyncService: ScrollSyncService, localization: LocalizationService);
|
|
40
46
|
/**
|
|
41
47
|
* @hidden
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { SaveEvent } from "./save-event-args.interface";
|
|
6
6
|
/**
|
|
7
|
-
* Arguments for the `cancel` event.
|
|
7
|
+
* Arguments for the `cancel` event. [See example](slug:editing_reactive_forms_treelist#toc-cancelling-editing).
|
|
8
8
|
*/
|
|
9
9
|
export declare type CancelEvent = SaveEvent;
|
|
@@ -8,12 +8,17 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Represents the service that is passed to the
|
|
9
9
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-treelist>
|
|
14
|
+
* <ng-template
|
|
15
|
+
* kendoTreeListColumnMenuTemplate
|
|
16
|
+
* let-service="service"
|
|
17
|
+
* let-column="column">
|
|
18
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-treelist>
|
|
21
|
+
* ```
|
|
17
22
|
*/
|
|
18
23
|
export class ColumnMenuService {
|
|
19
24
|
constructor() {
|
|
@@ -34,8 +34,8 @@ export class ColumnBase {
|
|
|
34
34
|
this.matchesMedia = true;
|
|
35
35
|
/**
|
|
36
36
|
* The column index after reordering.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* The orderIndex` is a read-only property. Setting this field does not affect column order.
|
|
38
|
+
* @default 0
|
|
39
39
|
*/
|
|
40
40
|
this.orderIndex = 0;
|
|
41
41
|
/**
|
|
@@ -58,19 +58,23 @@ export class ColumnBase {
|
|
|
58
58
|
this.reorderable = true;
|
|
59
59
|
/**
|
|
60
60
|
* The width (in pixels) below which the user is not able to resize the column by using the UI.
|
|
61
|
+
* @default 10
|
|
61
62
|
*/
|
|
62
63
|
this.minResizableWidth = 10;
|
|
63
64
|
this._locked = false;
|
|
64
65
|
/**
|
|
65
66
|
* Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
|
|
67
|
+
* @default true
|
|
66
68
|
*/
|
|
67
69
|
this.lockable = true;
|
|
68
70
|
/**
|
|
69
71
|
* Specifies if the column menu will be shown for the column.
|
|
72
|
+
* @default true
|
|
70
73
|
*/
|
|
71
74
|
this.columnMenu = true;
|
|
72
75
|
/**
|
|
73
76
|
* Specifies if the column will be included in the column-chooser list.
|
|
77
|
+
* @default true
|
|
74
78
|
*/
|
|
75
79
|
this.includeInChooser = true;
|
|
76
80
|
/**
|
|
@@ -105,48 +109,9 @@ export class ColumnBase {
|
|
|
105
109
|
}
|
|
106
110
|
get width() { return this._width; }
|
|
107
111
|
/**
|
|
108
|
-
* Toggles the locked (frozen) state of the columns ([more information and example](
|
|
112
|
+
* Toggles the locked (frozen) state of the columns ([more information and example](slug:locked_columns_treelist)).
|
|
109
113
|
*
|
|
110
114
|
* @default false
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```ts
|
|
114
|
-
* _@Component({
|
|
115
|
-
* selector: 'my-app',
|
|
116
|
-
* template: `
|
|
117
|
-
* <kendo-treelist [data]="treelistData" [scrollable]="scrollable" style="height: 200px">
|
|
118
|
-
* <kendo-treelist-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
|
|
119
|
-
* </kendo-treelist-column>
|
|
120
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200">
|
|
121
|
-
* </kendo-treelist-column>
|
|
122
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
123
|
-
* </kendo-treelist-column>
|
|
124
|
-
* </kendo-treelist>
|
|
125
|
-
* `
|
|
126
|
-
* })
|
|
127
|
-
*
|
|
128
|
-
* class AppComponent {
|
|
129
|
-
* public treelistData: any[];
|
|
130
|
-
*
|
|
131
|
-
* constructor() {
|
|
132
|
-
* this.treelistData = products;
|
|
133
|
-
* }
|
|
134
|
-
* }
|
|
135
|
-
*
|
|
136
|
-
* const products = [{
|
|
137
|
-
* "ProductID": 1,
|
|
138
|
-
* "ProductName": "Chai",
|
|
139
|
-
* "UnitPrice": 18.0000,
|
|
140
|
-
* "Discontinued": true
|
|
141
|
-
* }, {
|
|
142
|
-
* "ProductID": 2,
|
|
143
|
-
* "ProductName": "Chang",
|
|
144
|
-
* "UnitPrice": 19.0000,
|
|
145
|
-
* "Discontinued": false
|
|
146
|
-
* }
|
|
147
|
-
* ];
|
|
148
|
-
*
|
|
149
|
-
* ```
|
|
150
115
|
*/
|
|
151
116
|
set locked(value) {
|
|
152
117
|
this._locked = value;
|
|
@@ -27,6 +27,9 @@ const contains = (node, predicate) => {
|
|
|
27
27
|
* Arguments for the `close` event of the filter and column-menu popup.
|
|
28
28
|
*/
|
|
29
29
|
export class PopupCloseEvent extends PreventableEvent {
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
30
33
|
constructor(e) {
|
|
31
34
|
super();
|
|
32
35
|
this.originalEvent = e;
|
|
@@ -38,6 +41,9 @@ const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
|
38
41
|
* ([see example]({% slug reusablecustomfilters_treelist %}#toc-filter-menu-with-popup)).
|
|
39
42
|
*/
|
|
40
43
|
export class SinglePopupService {
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
41
47
|
constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
|
|
42
48
|
this.popupService = popupService;
|
|
43
49
|
this.renderer = renderer;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from '../common/preventable-event';
|
|
6
6
|
/**
|
|
7
|
-
* Arguments for the `excelExport` event.
|
|
7
|
+
* Arguments for the `excelExport` event. [See example](slug:excelexport_treelist#toc-customizing-generated-workbooks).
|
|
8
8
|
*/
|
|
9
9
|
export class ExcelExportEvent extends PreventableEvent {
|
|
10
10
|
constructor(workbook) {
|
|
@@ -14,30 +14,18 @@ const declarations = [ExcelComponent, ExcelCommandDirective];
|
|
|
14
14
|
* definition for the Excel component of the TreeList.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
*
|
|
18
|
-
* ```ts-no-run
|
|
19
|
-
* // Import the TreeList and Excel modules
|
|
20
|
-
* import { TreeListModule, ExcelModule } from '@progress/kendo-angular-treelist';
|
|
21
|
-
*
|
|
22
|
-
* // The browser platform with a compiler
|
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
24
|
-
*
|
|
17
|
+
* ```ts
|
|
25
18
|
* import { NgModule } from '@angular/core';
|
|
26
|
-
*
|
|
27
|
-
*
|
|
19
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
20
|
+
* import { TreeListModule, ExcelModule } from '@progress/kendo-angular-treelist';
|
|
28
21
|
* import { AppComponent } from './app.component';
|
|
29
22
|
*
|
|
30
|
-
* // Define the app module
|
|
31
23
|
* _@NgModule({
|
|
32
|
-
* declarations: [AppComponent],
|
|
33
|
-
* imports: [BrowserModule, TreeListModule, ExcelModule],
|
|
24
|
+
* declarations: [AppComponent],
|
|
25
|
+
* imports: [BrowserModule, TreeListModule, ExcelModule],
|
|
34
26
|
* bootstrap: [AppComponent]
|
|
35
27
|
* })
|
|
36
28
|
* export class AppModule {}
|
|
37
|
-
*
|
|
38
|
-
* // Compile and launch the module
|
|
39
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
-
*
|
|
41
29
|
* ```
|
|
42
30
|
*/
|
|
43
31
|
export class ExcelModule {
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treelist',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '12.0.
|
|
12
|
+
publishDate: 1683809099,
|
|
13
|
+
version: '12.0.2-develop.2',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|