@progress/kendo-angular-treelist 13.0.0-develop.4 → 13.0.0-develop.6

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 (45) hide show
  1. package/column-menu/column-menu-settings.interface.d.ts +7 -10
  2. package/column-resizing/column-resize.interface.d.ts +1 -1
  3. package/data/change-event-args.interface.d.ts +2 -2
  4. package/data/data.collection.d.ts +6 -0
  5. package/dragdrop/column-reorder-config.d.ts +1 -1
  6. package/editing/edit-event-args.interface.d.ts +1 -1
  7. package/editing/remove-event-args.interface.d.ts +1 -1
  8. package/editing/save-event-args.interface.d.ts +1 -1
  9. package/esm2020/column-menu/column-menu-item.component.mjs +1 -1
  10. package/esm2020/column-menu/column-menu.component.mjs +1 -1
  11. package/esm2020/data/data.collection.mjs +41 -28
  12. package/esm2020/editing/add-command.directive.mjs +1 -1
  13. package/esm2020/editing/base-command.directive.mjs +1 -1
  14. package/esm2020/editing/cancel-command.directive.mjs +1 -1
  15. package/esm2020/editing/edit-command.directive.mjs +1 -1
  16. package/esm2020/editing/remove-command.directive.mjs +1 -1
  17. package/esm2020/editing/save-command.directive.mjs +1 -1
  18. package/esm2020/excel/excel-command.directive.mjs +1 -1
  19. package/esm2020/filtering/menu/filter-menu.component.mjs +1 -1
  20. package/esm2020/package-metadata.mjs +2 -2
  21. package/esm2020/pager/pager-element.component.mjs +17 -0
  22. package/esm2020/pager/pager-next-buttons.component.mjs +8 -11
  23. package/esm2020/pager/pager-prev-buttons.component.mjs +8 -11
  24. package/esm2020/pdf/pdf-command.directive.mjs +1 -1
  25. package/esm2020/rendering/cell.component.mjs +23 -6
  26. package/esm2020/rendering/header/header.component.mjs +1 -1
  27. package/esm2020/treelist.component.mjs +1 -1
  28. package/excel/excel-export-data.interface.d.ts +1 -1
  29. package/fesm2015/progress-kendo-angular-treelist.mjs +111 -69
  30. package/fesm2020/progress-kendo-angular-treelist.mjs +111 -69
  31. package/navigation/navigation-cell.interface.d.ts +1 -4
  32. package/navigation/navigation-row.interface.d.ts +1 -4
  33. package/package.json +16 -16
  34. package/pager/pager-element.component.d.ts +9 -0
  35. package/pager/pager-next-buttons.component.d.ts +0 -3
  36. package/pager/pager-prev-buttons.component.d.ts +0 -3
  37. package/pager/pager-settings.d.ts +1 -15
  38. package/rendering/cell.component.d.ts +3 -0
  39. package/schematics/ngAdd/index.js +3 -3
  40. package/scrolling/content-scroll-event.d.ts +1 -1
  41. package/scrolling/scroll-bottom-event.d.ts +1 -1
  42. package/scrolling/scroll-request.service.d.ts +6 -0
  43. package/selection/selectable-settings.d.ts +5 -15
  44. package/selection/selectable.directive.d.ts +1 -1
  45. package/selection/selection-change-event.d.ts +1 -1
@@ -5,35 +5,32 @@
5
5
  /**
6
6
  * The settings of the column menu in the TreeList component.
7
7
  *
8
- * {% meta height:500 %}
9
- * {% embed_file column-menu/chooser/app.component.ts preview %}
10
- * {% embed_file column-menu/chooser/app.module.ts %}
11
- * {% embed_file shared/main.ts %}
12
- * {% embed_file shared/employees.ts %}
13
- * {% endmeta %}
8
+ * @example
9
+ * ```html
10
+ * <kendo-treelist ...
11
+ * [columnMenu]="{ columnChooser: false }">
12
+ * ...
13
+ * </kendo-treelist>
14
+ * ```
14
15
  */
15
16
  export interface ColumnMenuSettings {
16
17
  /**
17
18
  * Specifies if the columns can be sorted in the column menu.
18
19
  * If [sorting]({% slug api_treelist_treelistcomponent %}#toc-sortable) is enabled, defaults to `true`.
19
- * @default true
20
20
  */
21
21
  sort?: boolean;
22
22
  /**
23
23
  * Specifies if the columns can be filtered in the column menu.
24
24
  * If [filtering]({% slug api_treelist_treelistcomponent %}#toc-filterable) is enabled, defaults to `true`.
25
- * @default true
26
25
  */
27
26
  filter?: boolean;
28
27
  /**
29
28
  * Specifies if the item for column selection will be displayed in the column menu.
30
- * @default true
31
29
  */
32
30
  columnChooser?: boolean;
33
31
  /**
34
32
  * Specifies if the columns can be locked and unlocked from the column menu.
35
33
  * This option follows the prerequisites and limitations of the [locked columns]({% slug locked_columns_treelist %}).
36
- * @default false
37
34
  */
38
35
  lock?: boolean;
39
36
  }
@@ -5,7 +5,7 @@
5
5
  import { Observable } from 'rxjs';
6
6
  import { ColumnBase } from '../columns/column-base';
7
7
  /**
8
- * The returned type of the `columnResize` event.
8
+ * The returned type of the [`columnResize`](slug:api_treelist_treelistcomponent#toc-columnresize) event.
9
9
  */
10
10
  export interface ColumnResizeArgs {
11
11
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { SortDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
6
6
  /**
7
- * Arguments for the `pageChange` event.
7
+ * Arguments for the [`pageChange`](slug:api_treelist_treelistcomponent#toc-pagechange) event.
8
8
  */
9
9
  export interface PageChangeEvent {
10
10
  /**
@@ -17,7 +17,7 @@ export interface PageChangeEvent {
17
17
  take: number;
18
18
  }
19
19
  /**
20
- * Arguments for the `dataStateChange` event
20
+ * Arguments for the [`dataStateChange`](slug:api_treelist_treelistcomponent#toc-datastatechange) event
21
21
  * ([more information and examples]({% slug databinding_treelist %})).
22
22
  */
23
23
  export interface DataStateChangeEvent {
@@ -8,7 +8,13 @@ import { EventEmitter } from '@angular/core';
8
8
  * The data type that is expected by the TreeList.
9
9
  */
10
10
  export interface TreeListDataResult {
11
+ /**
12
+ * The data that will be rendered by the TreeList as an array.
13
+ */
11
14
  data: any[];
15
+ /**
16
+ * The aggregated values for the group. An [`AggregateResult`](slug:treelist_with_aggregates) instance.
17
+ */
12
18
  aggregates?: any;
13
19
  }
14
20
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Additional configuration for the `reorderColumn` method.
6
+ * Additional configuration for the [`reorderColumn`](slug:api_treelist_treelistcomponent#toc-reordercolumn) method.
7
7
  */
8
8
  export interface ColumnReorderConfig {
9
9
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import type { TreeListComponent } from "../treelist.component";
6
6
  /**
7
- * Arguments for the `remove` event.
7
+ * Arguments for the [`edit`](slug:api_treelist_treelistcomponent#toc-edit) event.
8
8
  */
9
9
  export interface EditEvent {
10
10
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EditEvent } from "./edit-event-args.interface";
6
6
  /**
7
- * Arguments for the `remove` event.
7
+ * Arguments for the [`remove`](slug:api_treelist_treelistcomponent#toc-remove) event.
8
8
  */
9
9
  export interface RemoveEvent extends EditEvent {
10
10
  /**
@@ -5,7 +5,7 @@
5
5
  import { EditEvent } from "./edit-event-args.interface";
6
6
  import { FormGroup } from "@angular/forms";
7
7
  /**
8
- * Arguments for the `save` event.
8
+ * Arguments for the [`save`](slug:api_treelist_treelistcomponent#toc-save) event.
9
9
  */
10
10
  export interface SaveEvent extends EditEvent {
11
11
  /**
@@ -72,7 +72,7 @@ ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
72
72
  <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
73
73
  </ng-container>
74
74
  <div>
75
- `, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
75
+ `, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
76
76
  trigger('state', [
77
77
  state('collapsed', style({ display: 'none' })),
78
78
  state('expanded', style({ display: 'block' })),
@@ -153,7 +153,7 @@ ColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
153
153
  [expanded]="expandedFilter" (expand)="onFilterExpand()">
154
154
  </kendo-treelist-columnmenu-filter>
155
155
  </ng-template>
156
- `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort" }, { type: i6.ColumnMenuLockComponent, selector: "kendo-treelist-columnmenu-lock" }, { type: i7.ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: ["expanded"], outputs: ["expand", "collapse"] }, { type: i8.ColumnMenuFilterComponent, selector: "kendo-treelist-columnmenu-filter", inputs: ["expanded"], outputs: ["expand", "collapse"] }], directives: [{ type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
156
+ `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i5.ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort" }, { type: i6.ColumnMenuLockComponent, selector: "kendo-treelist-columnmenu-lock" }, { type: i7.ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: ["expanded"], outputs: ["expand", "collapse"] }, { type: i8.ColumnMenuFilterComponent, selector: "kendo-treelist-columnmenu-filter", inputs: ["expanded"], outputs: ["expand", "collapse"] }], directives: [{ type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
157
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuComponent, decorators: [{
158
158
  type: Component,
159
159
  args: [{
@@ -9,22 +9,22 @@ import { EventEmitter } from '@angular/core';
9
9
  * @hidden
10
10
  */
11
11
  export const EXPANDED_STATE = {
12
- isExpanded: () => true
12
+ isExpanded: () => true,
13
13
  };
14
14
  /**
15
15
  * @hidden
16
16
  */
17
17
  export const UNSELECTED_STATE = {
18
- isRowSelected: () => false
18
+ isRowSelected: () => false,
19
19
  };
20
20
  /**
21
21
  * @hidden
22
22
  */
23
23
  export const NOT_EDITED_STATE = {
24
24
  hasNew: () => false,
25
- context: () => null
25
+ context: () => null,
26
26
  };
27
- const identity = item => item;
27
+ const identity = (item) => item;
28
28
  function loadView(view, subject) {
29
29
  view.loadData();
30
30
  if (view.loading) {
@@ -69,10 +69,11 @@ class ViewRange {
69
69
  return true;
70
70
  }
71
71
  includeParents(_children) {
72
+ // eslint-disable-next-line no-empty
72
73
  }
73
74
  }
74
75
  function isPagerSettings(pageable) {
75
- return typeof pageable === "object";
76
+ return typeof pageable === 'object';
76
77
  }
77
78
  class PagerRange extends ViewRange {
78
79
  constructor(skip, pageSize, pageable) {
@@ -86,8 +87,8 @@ class PagerRange extends ViewRange {
86
87
  return this.skip <= index && index < this.skip + this.pageSize;
87
88
  }
88
89
  levelInRange(parent, items, _rowIndex) {
89
- return parent.level === -1 ||
90
- (this.skip <= parent.index + items.length && parent.index + 1 < this.skip + this.pageSize);
90
+ return (parent.level === -1 ||
91
+ (this.skip <= parent.index + items.length && parent.index + 1 < this.skip + this.pageSize));
91
92
  }
92
93
  includeParents(children) {
93
94
  let parentLevel = children.parentLevel;
@@ -130,7 +131,7 @@ export class ViewItemFactory {
130
131
  this.rootLevel = this.dataLevel({
131
132
  level: -1,
132
133
  id: null,
133
- expanded: true
134
+ expanded: true,
134
135
  }, options.data);
135
136
  }
136
137
  }
@@ -145,7 +146,8 @@ export class ViewItemFactory {
145
146
  while (dataLevels[0] && dataLevels[0].idx >= dataLevels[0].items.length) {
146
147
  const dataLevel = dataLevels.shift();
147
148
  if (this.hasFooter && dataLevel.expanded && dataLevel.items.length) {
148
- if (dataLevel.inRange || this.viewRange.levelInRange(dataLevel.parent, dataLevel.items, this.rowIndex)) {
149
+ if (dataLevel.inRange ||
150
+ this.viewRange.levelInRange(dataLevel.parent, dataLevel.items, this.rowIndex)) {
149
151
  result.push({
150
152
  type: 'footer',
151
153
  items: dataLevel.items,
@@ -153,7 +155,7 @@ export class ViewItemFactory {
153
155
  level: dataLevel.level,
154
156
  parentItem: dataLevel.parent.data,
155
157
  parentIndex: dataLevel.parentIndex,
156
- rowIndex: this.rowIndex
158
+ rowIndex: this.rowIndex,
157
159
  });
158
160
  this.viewRange.includeParents(dataLevel);
159
161
  }
@@ -173,7 +175,7 @@ export class ViewItemFactory {
173
175
  index: itemIndex,
174
176
  level: currentLevel.level,
175
177
  hasChildren: this.hasChildren(dataItem),
176
- parent: currentLevel.parent
178
+ parent: currentLevel.parent,
177
179
  };
178
180
  if (currentLevel.expanded) {
179
181
  this.rowIndex++;
@@ -206,7 +208,7 @@ export class ViewItemFactory {
206
208
  observables: this.observables,
207
209
  total: itemCount,
208
210
  totalVisible: itemIndex,
209
- totalRows: this.rowIndex
211
+ totalRows: this.rowIndex,
210
212
  };
211
213
  }
212
214
  loadChildren(parent) {
@@ -225,7 +227,7 @@ export class ViewItemFactory {
225
227
  if (isObservable(children)) {
226
228
  this.observables.push({
227
229
  observable: children,
228
- parentId: parentId
230
+ parentId: parentId,
229
231
  });
230
232
  parent.loading = true;
231
233
  }
@@ -246,7 +248,7 @@ export class ViewItemFactory {
246
248
  aggregates: children.aggregates,
247
249
  expanded: parent.expanded,
248
250
  parentIndex: parent.index,
249
- parent: parent
251
+ parent: parent,
250
252
  };
251
253
  }
252
254
  addNew(result, parent) {
@@ -259,7 +261,7 @@ export class ViewItemFactory {
259
261
  type: 'data',
260
262
  data: this.editState.newItem.dataItem,
261
263
  editContext: this.editState.newItem,
262
- rowIndex: rowIndex
264
+ rowIndex: rowIndex,
263
265
  });
264
266
  if (parent || inRange) {
265
267
  this.rowIndex++;
@@ -295,7 +297,7 @@ export class ViewCollection {
295
297
  idGetter: identity,
296
298
  pageable: false,
297
299
  isVirtual: false,
298
- skip: 0
300
+ skip: 0,
299
301
  }, options.fields);
300
302
  const childrenView = new ViewCollection(viewFields, options.expandState || EXPANDED_STATE, options.editState || NOT_EDITED_STATE, options.selectionState || UNSELECTED_STATE);
301
303
  if (options.loaded) {
@@ -316,20 +318,28 @@ export class ViewCollection {
316
318
  }
317
319
  return this._data;
318
320
  }
319
- get length() { return this.data.length; }
320
- get first() { return this.data[0]; }
321
+ get length() {
322
+ return this.data.length;
323
+ }
324
+ get first() {
325
+ return this.data[0];
326
+ }
321
327
  get firstItem() {
322
- return this.find(item => item.type === 'data');
328
+ return this.find((item) => item.type === 'data');
329
+ }
330
+ get last() {
331
+ return this.data[this.data.length - 1];
323
332
  }
324
- get last() { return this.data[this.data.length - 1]; }
325
333
  at(index) {
326
334
  return this.data[index];
327
335
  }
328
336
  itemIndex(item) {
329
337
  const idGetter = this.fieldAccessor().idGetter;
330
- return this.data.findIndex(i => i.id === idGetter(item));
338
+ return this.data.findIndex((i) => i.id === idGetter(item));
339
+ }
340
+ map(fn) {
341
+ return this.data.map(fn);
331
342
  }
332
- map(fn) { return this.data.map(fn); }
333
343
  filter(fn) {
334
344
  return this.data.filter(fn);
335
345
  }
@@ -348,16 +358,18 @@ export class ViewCollection {
348
358
  find(fn) {
349
359
  return this.data.find(fn);
350
360
  }
351
- toString() { return this.data.toString(); }
361
+ toString() {
362
+ return this.data.toString();
363
+ }
352
364
  updateSelectedState() {
353
- this.forEach(item => {
365
+ this.forEach((item) => {
354
366
  if (item.type === 'data') {
355
367
  item.selected = this.selectionState.isRowSelected(item.data);
356
368
  }
357
369
  });
358
370
  }
359
371
  updateEditedState() {
360
- this.forEach(item => {
372
+ this.forEach((item) => {
361
373
  if (item.type === 'data') {
362
374
  item.editContext = this.editState.context(item.data);
363
375
  }
@@ -390,7 +402,7 @@ export class ViewCollection {
390
402
  loadData() {
391
403
  const itemFactory = new ViewItemFactory(this.expandState, this.editState, this.selectionState, this.loaded, this.fieldAccessor);
392
404
  let result = itemFactory.generate();
393
- if (!result.loading && result.total && (!result.items.length || !result.items.some(i => i.type === 'data'))) {
405
+ if (!result.loading && result.total && (!result.items.length || !result.items.some((i) => i.type === 'data'))) {
394
406
  this.resetPage.emit();
395
407
  result = new ViewItemFactory(this.expandState, this.editState, this.selectionState, this.loaded, this.fieldAccessor).generate();
396
408
  }
@@ -404,9 +416,10 @@ export class ViewCollection {
404
416
  if (!this.childrenSubscription) {
405
417
  this.childrenSubscription = new Subscription();
406
418
  }
407
- result.observables.forEach(o => {
419
+ result.observables.forEach((o) => {
408
420
  this.loaded.set(o.parentId, LOADING);
409
- this.childrenSubscription.add(o.observable.subscribe(children => {
421
+ this.childrenSubscription.add(o.observable.subscribe((children) => {
422
+ // handle error, might show reload icon
410
423
  this.clear();
411
424
  this.loaded.set(o.parentId, children);
412
425
  this.childrenLoaded.emit();
@@ -57,7 +57,7 @@ AddCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
57
57
  </span>
58
58
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
59
59
  <span class="k-button-text"><ng-content></ng-content></span>
60
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
60
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
61
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AddCommandDirective, decorators: [{
62
62
  type: Component,
63
63
  args: [{
@@ -55,7 +55,7 @@ BaseCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
55
55
  </span>
56
56
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
57
57
  <span class="k-button-text"><ng-content></ng-content></span>
58
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
58
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
59
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseCommandDirective, decorators: [{
60
60
  type: Component,
61
61
  args: [{
@@ -57,7 +57,7 @@ CancelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
57
57
  </span>
58
58
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
59
59
  <span class="k-button-text"><ng-content></ng-content></span>
60
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
60
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
61
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CancelCommandDirective, decorators: [{
62
62
  type: Component,
63
63
  args: [{
@@ -57,7 +57,7 @@ EditCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
57
57
  </span>
58
58
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
59
59
  <span class="k-button-text"><ng-content></ng-content></span>
60
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
60
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
61
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EditCommandDirective, decorators: [{
62
62
  type: Component,
63
63
  args: [{
@@ -56,7 +56,7 @@ RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
56
56
  </span>
57
57
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
58
58
  <span class="k-button-text"><ng-content></ng-content></span>
59
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
59
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
60
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RemoveCommandDirective, decorators: [{
61
61
  type: Component,
62
62
  args: [{
@@ -56,7 +56,7 @@ SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
56
56
  </span>
57
57
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
58
58
  <span class="k-button-text"><ng-content></ng-content></span>
59
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
59
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
60
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SaveCommandDirective, decorators: [{
61
61
  type: Component,
62
62
  args: [{
@@ -61,7 +61,7 @@ ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
61
61
  </span>
62
62
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
63
63
  <span class="k-button-text"><ng-content></ng-content></span>
64
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
64
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
65
65
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelCommandDirective, decorators: [{
66
66
  type: Component,
67
67
  args: [{
@@ -60,7 +60,7 @@ FilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
60
60
  >
61
61
  </kendo-treelist-filter-menu-container>
62
62
  </ng-template>
63
- `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }] });
63
+ `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i5.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }] });
64
64
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuComponent, decorators: [{
65
65
  type: Component,
66
66
  args: [{
@@ -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: 1684849967,
13
- version: '13.0.0-develop.4',
12
+ publishDate: 1685095278,
13
+ version: '13.0.0-develop.6',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -5,6 +5,7 @@
5
5
  import { ChangeDetectorRef, Directive } from '@angular/core';
6
6
  import { PagerContextService } from "./pager-context.service";
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { caretAltLeftIcon, caretAltRightIcon, caretAltToLeftIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
8
9
  import * as i0 from "@angular/core";
9
10
  import * as i1 from "@progress/kendo-angular-l10n";
10
11
  import * as i2 from "./pager-context.service";
@@ -20,6 +21,10 @@ export class PagerElementComponent {
20
21
  this.skip = this.pagerContext.skip;
21
22
  this.pageSize = this.pagerContext.pageSize;
22
23
  this.allCount = this.pagerContext.allCount;
24
+ this.caretAltLeftIcon = caretAltLeftIcon;
25
+ this.caretAltToLeftIcon = caretAltToLeftIcon;
26
+ this.caretAltRightIcon = caretAltRightIcon;
27
+ this.caretAltToRightIcon = caretAltToRightIcon;
23
28
  }
24
29
  /**
25
30
  * @hidden
@@ -77,6 +82,18 @@ export class PagerElementComponent {
77
82
  this.subscriptions.unsubscribe();
78
83
  }
79
84
  }
85
+ get prevArrowIcons() {
86
+ return !this.localization.rtl ? ['caret-alt-to-left', 'caret-alt-left'] : ['caret-alt-to-right', 'caret-alt-right'];
87
+ }
88
+ get prevArrowSVGIcons() {
89
+ return !this.localization.rtl ? [this.caretAltToLeftIcon, this.caretAltLeftIcon] : [this.caretAltToRightIcon, this.caretAltRightIcon];
90
+ }
91
+ get nextArrowIcons() {
92
+ return !this.localization.rtl ? ['caret-alt-right', 'caret-alt-to-right'] : ['caret-alt-left', 'caret-alt-to-left'];
93
+ }
94
+ get nextArrowSVGIcons() {
95
+ return !this.localization.rtl ? [this.caretAltRightIcon, this.caretAltToRightIcon] : [this.caretAltLeftIcon, this.caretAltToLeftIcon];
96
+ }
80
97
  }
81
98
  PagerElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerElementComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
82
99
  PagerElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: PagerElementComponent, ngImport: i0 });
@@ -7,7 +7,6 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Input } from '@a
7
7
  import { PagerContextService } from "./pager-context.service";
8
8
  import { PagerElementComponent } from './pager-element.component';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
- import { caretAltRightIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
11
10
  import { NavigationService } from '../navigation/navigation.service';
12
11
  import * as i0 from "@angular/core";
13
12
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -22,8 +21,6 @@ export class PagerNextButtonsComponent extends PagerElementComponent {
22
21
  constructor(localization, pagerContext, cd, navigationService) {
23
22
  super(localization, pagerContext, cd);
24
23
  this.navigationService = navigationService;
25
- this.caretAltRightIcon = caretAltRightIcon;
26
- this.caretAltToRightIcon = caretAltToRightIcon;
27
24
  }
28
25
  /**
29
26
  * @hidden
@@ -58,8 +55,8 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
58
55
  type="button"
59
56
  kendoTreeListFocusable
60
57
  [enabled]="!disabled"
61
- icon="caret-alt-right"
62
- [svgIcon]="caretAltRightIcon"
58
+ [icon]="nextArrowIcons[0]"
59
+ [svgIcon]="nextArrowSVGIcons[0]"
63
60
  fillMode="flat"
64
61
  rounded="none"
65
62
  class="k-pager-nav"
@@ -73,8 +70,8 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
73
70
  type="button"
74
71
  kendoTreeListFocusable
75
72
  [enabled]="!disabled"
76
- icon="caret-alt-to-right"
77
- [svgIcon]="caretAltToRightIcon"
73
+ [icon]="nextArrowIcons[1]"
74
+ [svgIcon]="nextArrowSVGIcons[1]"
78
75
  fillMode="flat"
79
76
  rounded="none"
80
77
  class="k-pager-nav k-pager-last"
@@ -95,8 +92,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
95
92
  type="button"
96
93
  kendoTreeListFocusable
97
94
  [enabled]="!disabled"
98
- icon="caret-alt-right"
99
- [svgIcon]="caretAltRightIcon"
95
+ [icon]="nextArrowIcons[0]"
96
+ [svgIcon]="nextArrowSVGIcons[0]"
100
97
  fillMode="flat"
101
98
  rounded="none"
102
99
  class="k-pager-nav"
@@ -110,8 +107,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
110
107
  type="button"
111
108
  kendoTreeListFocusable
112
109
  [enabled]="!disabled"
113
- icon="caret-alt-to-right"
114
- [svgIcon]="caretAltToRightIcon"
110
+ [icon]="nextArrowIcons[1]"
111
+ [svgIcon]="nextArrowSVGIcons[1]"
115
112
  fillMode="flat"
116
113
  rounded="none"
117
114
  class="k-pager-nav k-pager-last"
@@ -7,7 +7,6 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef, } from '@angular
7
7
  import { PagerContextService } from "./pager-context.service";
8
8
  import { PagerElementComponent } from './pager-element.component';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
- import { caretAltLeftIcon, caretAltToLeftIcon } from '@progress/kendo-svg-icons';
11
10
  import { NavigationService } from '../navigation/navigation.service';
12
11
  import * as i0 from "@angular/core";
13
12
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -22,8 +21,6 @@ export class PagerPrevButtonsComponent extends PagerElementComponent {
22
21
  constructor(localization, pagerContext, cd, navigationService) {
23
22
  super(localization, pagerContext, cd);
24
23
  this.navigationService = navigationService;
25
- this.caretAltLeftIcon = caretAltLeftIcon;
26
- this.caretAltToLeftIcon = caretAltToLeftIcon;
27
24
  }
28
25
  /**
29
26
  * @hidden
@@ -62,8 +59,8 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
62
59
  [attr.aria-label]="textFor('pagerFirstPage')"
63
60
  (click)="onButtonClick('firstPage')"
64
61
  role="button"
65
- icon="caret-alt-to-left"
66
- [svgIcon]="caretAltToLeftIcon"
62
+ [icon]="prevArrowIcons[0]"
63
+ [svgIcon]="prevArrowSVGIcons[0]"
67
64
  class="k-pager-nav k-pager-first"
68
65
  [disabled]="disabled"
69
66
  fillMode="flat"
@@ -76,8 +73,8 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
76
73
  [enabled]="!disabled"
77
74
  class="k-pager-nav"
78
75
  [disabled]="disabled"
79
- icon="caret-alt-left"
80
- [svgIcon]="caretAltLeftIcon"
76
+ [icon]="prevArrowIcons[1]"
77
+ [svgIcon]="prevArrowSVGIcons[1]"
81
78
  fillMode="flat"
82
79
  rounded="none"
83
80
  [title]="textFor('pagerPreviousPage')"
@@ -100,8 +97,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
100
97
  [attr.aria-label]="textFor('pagerFirstPage')"
101
98
  (click)="onButtonClick('firstPage')"
102
99
  role="button"
103
- icon="caret-alt-to-left"
104
- [svgIcon]="caretAltToLeftIcon"
100
+ [icon]="prevArrowIcons[0]"
101
+ [svgIcon]="prevArrowSVGIcons[0]"
105
102
  class="k-pager-nav k-pager-first"
106
103
  [disabled]="disabled"
107
104
  fillMode="flat"
@@ -114,8 +111,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
114
111
  [enabled]="!disabled"
115
112
  class="k-pager-nav"
116
113
  [disabled]="disabled"
117
- icon="caret-alt-left"
118
- [svgIcon]="caretAltLeftIcon"
114
+ [icon]="prevArrowIcons[1]"
115
+ [svgIcon]="prevArrowSVGIcons[1]"
119
116
  fillMode="flat"
120
117
  rounded="none"
121
118
  [title]="textFor('pagerPreviousPage')"
@@ -61,7 +61,7 @@ PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
61
61
  </span>
62
62
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
63
63
  <span class="k-button-text"><ng-content></ng-content></span>
64
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
64
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
65
65
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFCommandDirective, decorators: [{
66
66
  type: Component,
67
67
  args: [{