@progress/kendo-angular-treelist 3.1.4 → 3.2.0-dev.202112201347

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.
@@ -159,6 +159,7 @@ var ViewItemFactory = /** @class */ (function () {
159
159
  items: dataLevel.items,
160
160
  aggregates: dataLevel.aggregates,
161
161
  level: dataLevel.level,
162
+ parentItem: dataLevel.parent.data,
162
163
  parentIndex: dataLevel.parentIndex,
163
164
  rowIndex: this.rowIndex
164
165
  });
package/dist/es/index.js CHANGED
@@ -47,7 +47,6 @@ export { RemoveCommandDirective } from './editing/remove-command.directive';
47
47
  export { SaveCommandDirective } from './editing/save-command.directive';
48
48
  export { ExcelCommandDirective } from './excel/excel-command.directive';
49
49
  export { ExpandStateService } from './expand-state/expand-state.service';
50
- export { ExpandableTreeComponent } from './expand-state/expandable-tree-component';
51
50
  export { BooleanFilterComponent } from './filtering/boolean-filter.component';
52
51
  export { BooleanFilterCellComponent } from './filtering/cell/boolean-filter-cell.component';
53
52
  export { FilterCellHostDirective } from './filtering/cell/filter-cell-host.directive';
package/dist/es/main.js CHANGED
@@ -99,3 +99,4 @@ export { ColumnMenuComponent } from './column-menu/column-menu.component';
99
99
  export { SinglePopupService, PopupCloseEvent } from './common/single-popup.service';
100
100
  export { ExpandEvent } from './expand-state/expand-event';
101
101
  export { ExpandableDirective } from './expand-state/expandable.directive';
102
+ export { ExpandableTreeComponent } from './expand-state/expandable-tree-component';
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-treelist',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1635941145,
12
+ publishDate: 1640007583,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -16,6 +16,8 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
16
16
  * * `column`—Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
17
17
  * * `columnIndex`—Defines the current column index.
18
18
  * * `field`—The name of the column field, if set.
19
+ * * `items`—The data items on this level.
20
+ * * `parentItem`—The parent data item; `null` for root level items.
19
21
  *
20
22
  *
21
23
  * {% meta height:500 %}
@@ -383,7 +383,7 @@ var TableBodyComponent = /** @class */ (function () {
383
383
  TableBodyComponent = tslib_1.__decorate([
384
384
  Component({
385
385
  selector: '[kendoTreeListTableBody]',
386
- template: "\n <tr *ngIf=\"!view || view.data?.length === 0 || view.data == null\" class=\"k-grid-norecords\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"noRecordsTemplate?.templateRef\" [ngTemplateOutlet]=\"noRecordsTemplate.templateRef\">\n </ng-container>\n <ng-container *ngIf=\"!noRecordsTemplate?.templateRef\">\n {{noRecordsText}}\n </ng-container>\n </td>\n </tr>\n <ng-container *ngFor=\"let item of view?.data;let rowIndex = index;trackBy: trackByWrapper;\">\n <tr *ngIf=\"item.type === 'data'\"\n kendoTreeListLogicalRow\n [dataRowIndex]=\"item.index\"\n [dataItem]=\"item.data\"\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalSlaveRow]=\"lockedColumnsCount > 0\"\n [logicalCellsCount]=\"columns.length\"\n [logicalSlaveCellsCount]=\"unlockedColumnsCount\"\n [isNew]=\"item.isNew\"\n [ngClass]=\"rowClass({ dataItem: item.data, index: item.index })\"\n [class.k-alt]=\"isOdd(item)\"\n [class.k-grid-edit-row]=\"isEditingRow(item)\"\n [class.k-grid-add-row]=\"item.isNew\"\n [class.k-state-selected]=\"item.selected\"\n [attr.data-treelist-view-index]=\"rowIndex\">\n\n <td kendoTreeListCell\n [columnIndex]=\"lockedColumnsCount + columnIndex\"\n [column]=\"column\"\n [viewItem]=\"item\"\n [dataItem]=\"item.data\"\n [level]=\"item.level\"\n [hasChildren]=\"item.hasChildren\"\n [isExpanded]=\"item.expanded\"\n [loading]=\"item.loading\"\n [isNew]=\"item.isNew\"\n [selected]=\"item.selected\"\n [expandIcons]=\"expandIcons\"\n kendoTreeListLogicalCell\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalColIndex]=\"logicalColIndex(column)\"\n [dataRowIndex]=\"item.index\"\n [column]=\"column\"\n [colIndex]=\"columnIndex\"\n [colSpan]=\"column.colspan\"\n [expandable]=\"column.expandable\"\n role=\"gridcell\"\n [attr.aria-expanded]=\"ariaExpanded(item, column)\"\n [attr.aria-selected]=\"ariaSelected(item, column, lockedColumnsCount + columnIndex)\"\n [ngClass]=\"column.cssClass\"\n [class.k-grid-edit-cell]=\"isEditingCell(item, column)\"\n [class.k-state-selected]=\"isCellSelected(item.data, column, lockedColumnsCount + columnIndex)\"\n [ngStyle]=\"column.style\"\n [attr.colspan]=\"column.colspan\"\n *ngFor=\"let column of columns; let columnIndex = index; trackBy: trackByColumns;\">\n </td>\n </tr>\n <tr *ngIf=\"item.type === 'footer' && hasFooter\"\n class=\"k-footer\"\n [attr.data-treelist-view-index]=\"rowIndex\"\n kendoTreeListLogicalRow\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalSlaveRow]=\"lockedColumnsCount > 0\"\n [logicalCellsCount]=\"columns.length\"\n [logicalSlaveCellsCount]=\"unlockedColumnsCount\">\n\n <td kendoTreeListLogicalCell\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalColIndex]=\"logicalColIndex(column)\"\n [column]=\"column\"\n [colIndex]=\"columnIndex\"\n [ngClass]=\"column.footerClass\"\n [ngStyle]=\"column.footerStyle\"\n *ngFor=\"let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;\">\n <ng-container *ngIf=\"column.expandable\">\n <span class=\"k-icon k-i-none\" *ngFor=\"let item of item.level | levelItems\"></span>\n </ng-container>\n <ng-container [ngTemplateOutlet]=\"column.footerTemplateRef\"\n [ngTemplateOutletContext]=\"{\n items: item.items,\n field: column.field,\n column: column,\n columnIndex: columnIndex,\n aggregates: item.aggregates,\n $implicit: item.aggregates\n }\">\n </ng-container>\n </td>\n </tr>\n </ng-container>\n "
386
+ template: "\n <tr *ngIf=\"!view || view.data?.length === 0 || view.data == null\" class=\"k-grid-norecords\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"noRecordsTemplate?.templateRef\" [ngTemplateOutlet]=\"noRecordsTemplate.templateRef\">\n </ng-container>\n <ng-container *ngIf=\"!noRecordsTemplate?.templateRef\">\n {{noRecordsText}}\n </ng-container>\n </td>\n </tr>\n <ng-container *ngFor=\"let item of view?.data;let rowIndex = index;trackBy: trackByWrapper;\">\n <tr *ngIf=\"item.type === 'data'\"\n kendoTreeListLogicalRow\n [dataRowIndex]=\"item.index\"\n [dataItem]=\"item.data\"\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalSlaveRow]=\"lockedColumnsCount > 0\"\n [logicalCellsCount]=\"columns.length\"\n [logicalSlaveCellsCount]=\"unlockedColumnsCount\"\n [isNew]=\"item.isNew\"\n [ngClass]=\"rowClass({ dataItem: item.data, index: item.index })\"\n [class.k-alt]=\"isOdd(item)\"\n [class.k-grid-edit-row]=\"isEditingRow(item)\"\n [class.k-grid-add-row]=\"item.isNew\"\n [class.k-state-selected]=\"item.selected\"\n [attr.data-treelist-view-index]=\"rowIndex\">\n\n <td kendoTreeListCell\n [columnIndex]=\"lockedColumnsCount + columnIndex\"\n [column]=\"column\"\n [viewItem]=\"item\"\n [dataItem]=\"item.data\"\n [level]=\"item.level\"\n [hasChildren]=\"item.hasChildren\"\n [isExpanded]=\"item.expanded\"\n [loading]=\"item.loading\"\n [isNew]=\"item.isNew\"\n [selected]=\"item.selected\"\n [expandIcons]=\"expandIcons\"\n kendoTreeListLogicalCell\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalColIndex]=\"logicalColIndex(column)\"\n [dataRowIndex]=\"item.index\"\n [column]=\"column\"\n [colIndex]=\"columnIndex\"\n [colSpan]=\"column.colspan\"\n [expandable]=\"column.expandable\"\n role=\"gridcell\"\n [attr.aria-expanded]=\"ariaExpanded(item, column)\"\n [attr.aria-selected]=\"ariaSelected(item, column, lockedColumnsCount + columnIndex)\"\n [ngClass]=\"column.cssClass\"\n [class.k-grid-edit-cell]=\"isEditingCell(item, column)\"\n [class.k-state-selected]=\"isCellSelected(item.data, column, lockedColumnsCount + columnIndex)\"\n [ngStyle]=\"column.style\"\n [attr.colspan]=\"column.colspan\"\n *ngFor=\"let column of columns; let columnIndex = index; trackBy: trackByColumns;\">\n </td>\n </tr>\n <tr *ngIf=\"item.type === 'footer' && hasFooter\"\n class=\"k-footer\"\n [attr.data-treelist-view-index]=\"rowIndex\"\n kendoTreeListLogicalRow\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalSlaveRow]=\"lockedColumnsCount > 0\"\n [logicalCellsCount]=\"columns.length\"\n [logicalSlaveCellsCount]=\"unlockedColumnsCount\">\n\n <td kendoTreeListLogicalCell\n [logicalRowIndex]=\"logicalRowIndex(item.rowIndex)\"\n [logicalColIndex]=\"logicalColIndex(column)\"\n [column]=\"column\"\n [colIndex]=\"columnIndex\"\n [ngClass]=\"column.footerClass\"\n [ngStyle]=\"column.footerStyle\"\n *ngFor=\"let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;\">\n <ng-container *ngIf=\"column.expandable\">\n <span class=\"k-icon k-i-none\" *ngFor=\"let item of item.level | levelItems\"></span>\n </ng-container>\n <ng-container [ngTemplateOutlet]=\"column.footerTemplateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.aggregates,\n aggregates: item.aggregates,\n column: column,\n columnIndex: columnIndex,\n field: column.field,\n items: item.items,\n parentItem: item.parentItem\n }\">\n </ng-container>\n </td>\n </tr>\n </ng-container>\n "
387
387
  }),
388
388
  tslib_1.__metadata("design:paramtypes", [ChangeNotificationService,
389
389
  EditService,
@@ -149,6 +149,7 @@ export class ViewItemFactory {
149
149
  items: dataLevel.items,
150
150
  aggregates: dataLevel.aggregates,
151
151
  level: dataLevel.level,
152
+ parentItem: dataLevel.parent.data,
152
153
  parentIndex: dataLevel.parentIndex,
153
154
  rowIndex: this.rowIndex
154
155
  });
@@ -47,7 +47,6 @@ export { RemoveCommandDirective } from './editing/remove-command.directive';
47
47
  export { SaveCommandDirective } from './editing/save-command.directive';
48
48
  export { ExcelCommandDirective } from './excel/excel-command.directive';
49
49
  export { ExpandStateService } from './expand-state/expand-state.service';
50
- export { ExpandableTreeComponent } from './expand-state/expandable-tree-component';
51
50
  export { BooleanFilterComponent } from './filtering/boolean-filter.component';
52
51
  export { BooleanFilterCellComponent } from './filtering/cell/boolean-filter-cell.component';
53
52
  export { FilterCellHostDirective } from './filtering/cell/filter-cell-host.directive';
@@ -47,7 +47,6 @@ export { RemoveCommandDirective } from './editing/remove-command.directive';
47
47
  export { SaveCommandDirective } from './editing/save-command.directive';
48
48
  export { ExcelCommandDirective } from './excel/excel-command.directive';
49
49
  export { ExpandStateService } from './expand-state/expand-state.service';
50
- export { ExpandableTreeComponent } from './expand-state/expandable-tree-component';
51
50
  export { BooleanFilterComponent } from './filtering/boolean-filter.component';
52
51
  export { BooleanFilterCellComponent } from './filtering/cell/boolean-filter-cell.component';
53
52
  export { FilterCellHostDirective } from './filtering/cell/filter-cell-host.directive';