@progress/kendo-angular-treelist 11.0.0-develop.98 → 11.0.0
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/NOTICE.txt +17 -17
- package/column-menu/column-chooser.component.d.ts +4 -1
- package/column-menu/column-menu-chooser.component.d.ts +2 -0
- package/column-menu/column-menu-filter.component.d.ts +2 -0
- package/column-menu/column-menu-item.component.d.ts +7 -2
- package/column-menu/column-menu-lock.component.d.ts +4 -0
- package/column-menu/column-menu-sort.component.d.ts +3 -0
- package/column-menu/column-menu.component.d.ts +2 -0
- package/column-menu/column-menu.module.d.ts +2 -1
- package/esm2020/column-menu/column-chooser.component.mjs +17 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +17 -5
- package/esm2020/column-menu/column-menu-filter.component.mjs +17 -5
- package/esm2020/column-menu/column-menu-item.component.mjs +15 -13
- package/esm2020/column-menu/column-menu-lock.component.mjs +19 -3
- package/esm2020/column-menu/column-menu-sort.component.mjs +28 -9
- package/esm2020/column-menu/column-menu.component.mjs +15 -8
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/dragdrop/draggable-column.directive.mjs +2 -2
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +4 -0
- package/esm2020/filtering/menu/filter-menu.component.mjs +11 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-next-buttons.component.mjs +7 -0
- package/esm2020/pager/pager-prev-buttons.component.mjs +7 -0
- package/esm2020/rendering/cell.component.mjs +22 -14
- package/esm2020/rendering/constants.mjs +1 -1
- package/esm2020/rendering/header/header.component.mjs +27 -21
- package/esm2020/rendering/table-body.component.mjs +1 -1
- package/fesm2015/progress-kendo-angular-treelist.mjs +202 -107
- package/fesm2020/progress-kendo-angular-treelist.mjs +202 -107
- package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
- package/filtering/menu/filter-menu.component.d.ts +2 -0
- package/package.json +19 -19
- package/pager/pager-next-buttons.component.d.ts +3 -0
- package/pager/pager-prev-buttons.component.d.ts +3 -0
- package/rendering/cell.component.d.ts +3 -0
- package/rendering/constants.d.ts +1 -1
- package/rendering/header/header.component.d.ts +4 -2
- package/schematics/ngAdd/index.js +2 -2
|
@@ -22,6 +22,7 @@ import { SortService } from '../../common/sort.service';
|
|
|
22
22
|
import { hasItems } from '../../column-menu/utils';
|
|
23
23
|
import { closestInScope, isFocusable } from '../common/dom-queries';
|
|
24
24
|
import { SelectionService } from '../../selection/selection.service';
|
|
25
|
+
import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
import * as i1 from "../../common/single-popup.service";
|
|
27
28
|
import * as i2 from "../../dragdrop/drag-hint.service";
|
|
@@ -32,16 +33,17 @@ import * as i6 from "../../selection/selection.service";
|
|
|
32
33
|
import * as i7 from "@progress/kendo-angular-l10n";
|
|
33
34
|
import * as i8 from "../../filtering/menu/filter-menu.component";
|
|
34
35
|
import * as i9 from "../../column-menu/column-menu.component";
|
|
35
|
-
import * as i10 from "
|
|
36
|
-
import * as i11 from "
|
|
37
|
-
import * as i12 from "
|
|
38
|
-
import * as i13 from "../../navigation/logical-
|
|
39
|
-
import * as i14 from "../../
|
|
40
|
-
import * as i15 from "
|
|
41
|
-
import * as i16 from "
|
|
42
|
-
import * as i17 from "
|
|
43
|
-
import * as i18 from "
|
|
44
|
-
import * as i19 from "../../
|
|
36
|
+
import * as i10 from "@progress/kendo-angular-icons";
|
|
37
|
+
import * as i11 from "../../filtering/filter-row.component";
|
|
38
|
+
import * as i12 from "@angular/common";
|
|
39
|
+
import * as i13 from "../../navigation/logical-row.directive";
|
|
40
|
+
import * as i14 from "../../navigation/logical-cell.directive";
|
|
41
|
+
import * as i15 from "../../dragdrop/drop-target.directive";
|
|
42
|
+
import * as i16 from "@progress/kendo-angular-common";
|
|
43
|
+
import * as i17 from "../../dragdrop/draggable-column.directive";
|
|
44
|
+
import * as i18 from "../common/template-context.directive";
|
|
45
|
+
import * as i19 from "../../navigation/focusable.directive";
|
|
46
|
+
import * as i20 from "../../column-resizing/column-handle.directive";
|
|
45
47
|
const mergeObjects = (...args) => Object.assign.apply(null, [{}].concat(args));
|
|
46
48
|
const directions = initialDirection => initialDirection === "asc" ? ["asc", "desc"] : ["desc", "asc"];
|
|
47
49
|
/**
|
|
@@ -86,6 +88,8 @@ export class HeaderComponent {
|
|
|
86
88
|
this.sortedFields = {};
|
|
87
89
|
this.hostClass = true;
|
|
88
90
|
this.dropTargets = new QueryList();
|
|
91
|
+
this.sortAscSmallIcon = sortAscSmallIcon;
|
|
92
|
+
this.sortDescSmallIcon = sortDescSmallIcon;
|
|
89
93
|
this.subscription = new Subscription();
|
|
90
94
|
}
|
|
91
95
|
get headerClass() {
|
|
@@ -137,14 +141,6 @@ export class HeaderComponent {
|
|
|
137
141
|
.findIndex(x => x.field === field)
|
|
138
142
|
+ 1;
|
|
139
143
|
}
|
|
140
|
-
sortIcon(field) {
|
|
141
|
-
const state = this.sortDescriptor(field);
|
|
142
|
-
return {
|
|
143
|
-
'k-icon': isPresent(state.dir),
|
|
144
|
-
'k-i-sort-desc-small': state.dir === "desc",
|
|
145
|
-
'k-i-sort-asc-small': state.dir === "asc"
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
144
|
sortState(column) {
|
|
149
145
|
if (!this.isSortable(column)) {
|
|
150
146
|
return;
|
|
@@ -435,7 +431,12 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
435
431
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
436
432
|
</ng-container>
|
|
437
433
|
<span class="k-sort-icon">
|
|
438
|
-
|
|
434
|
+
<kendo-icon-wrapper
|
|
435
|
+
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
|
436
|
+
role="note" [attr.aria-label]="sortableLabel"
|
|
437
|
+
name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
|
|
438
|
+
[svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
|
|
439
|
+
></kendo-icon-wrapper>
|
|
439
440
|
</span>
|
|
440
441
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
441
442
|
</span>
|
|
@@ -535,7 +536,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
535
536
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
|
536
537
|
>
|
|
537
538
|
</tr>
|
|
538
|
-
`, isInline: true, components: [{ type: i8.FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { type: i9.ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { type: i10.FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type:
|
|
539
|
+
`, isInline: true, components: [{ type: i8.FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { type: i9.ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { type: i10.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i11.FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew"] }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable"] }, { type: i15.DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { type: i16.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i17.DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { type: i12.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i18.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i19.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i20.ColumnHandleDirective, selector: "[kendoTreeListColumnHandle]", inputs: ["columns", "column"] }] });
|
|
539
540
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
540
541
|
type: Component,
|
|
541
542
|
args: [{
|
|
@@ -616,7 +617,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
616
617
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
617
618
|
</ng-container>
|
|
618
619
|
<span class="k-sort-icon">
|
|
619
|
-
|
|
620
|
+
<kendo-icon-wrapper
|
|
621
|
+
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
|
622
|
+
role="note" [attr.aria-label]="sortableLabel"
|
|
623
|
+
name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
|
|
624
|
+
[svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
|
|
625
|
+
></kendo-icon-wrapper>
|
|
620
626
|
</span>
|
|
621
627
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
622
628
|
</span>
|
|
@@ -285,7 +285,7 @@ export class TableBodyComponent {
|
|
|
285
285
|
return {};
|
|
286
286
|
}
|
|
287
287
|
expandClick(eventArg, row) {
|
|
288
|
-
if (eventArg.type === 'click' &&
|
|
288
|
+
if (eventArg.type === 'click' && eventArg.target.closest('.k-icon-wrapper-host')) {
|
|
289
289
|
eventArg.preventDefault();
|
|
290
290
|
const viewItem = this.rowItem(row);
|
|
291
291
|
if (viewItem.type === 'data') {
|