@progress/kendo-angular-treeview 11.0.0-develop.97 → 11.0.0-develop.99
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/drag-and-drop/drag-clue/drag-clue.component.d.ts +2 -0
- package/esm2020/drag-and-drop/drag-clue/drag-clue.component.mjs +31 -9
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/shared.module.mjs +7 -3
- package/esm2020/treeview-group.component.mjs +35 -21
- package/esm2020/treeview.component.mjs +21 -5
- package/fesm2015/progress-kendo-angular-treeview.mjs +86 -34
- package/fesm2020/progress-kendo-angular-treeview.mjs +86 -34
- package/package.json +6 -5
- package/schematics/ngAdd/index.js +3 -1
- package/shared.module.d.ts +2 -1
- package/treeview-group.component.d.ts +11 -0
- package/treeview.component.d.ts +5 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { TemplateRef, ChangeDetectorRef } from "@angular/core";
|
|
6
6
|
import { DropAction } from '../models';
|
|
7
7
|
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
8
|
+
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
@@ -34,6 +35,7 @@ export declare class DragClueComponent {
|
|
|
34
35
|
template: TemplateRef<any>;
|
|
35
36
|
posistionStyle: string;
|
|
36
37
|
get statusIconClass(): string;
|
|
38
|
+
get statusSVGIcon(): SVGIcon;
|
|
37
39
|
constructor(cdr: ChangeDetectorRef);
|
|
38
40
|
detectChanges(): void;
|
|
39
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragClueComponent, never>;
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, HostBinding, ChangeDetectorRef, ChangeDetectionStrategy } from "@angular/core";
|
|
6
6
|
import { DropAction } from '../models';
|
|
7
|
+
import { cancelIcon, insertBottomIcon, insertMiddleIcon, insertTopIcon, plusIcon } from "@progress/kendo-svg-icons";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular
|
|
9
|
+
import * as i1 from "@progress/kendo-angular-icons";
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
@@ -17,12 +19,22 @@ export class DragClueComponent {
|
|
|
17
19
|
}
|
|
18
20
|
get statusIconClass() {
|
|
19
21
|
switch (this.action) {
|
|
20
|
-
case DropAction.Add: return '
|
|
21
|
-
case DropAction.InsertTop: return '
|
|
22
|
-
case DropAction.InsertBottom: return '
|
|
23
|
-
case DropAction.InsertMiddle: return '
|
|
22
|
+
case DropAction.Add: return 'plus';
|
|
23
|
+
case DropAction.InsertTop: return 'insert-top';
|
|
24
|
+
case DropAction.InsertBottom: return 'insert-bottom';
|
|
25
|
+
case DropAction.InsertMiddle: return 'insert-middle';
|
|
24
26
|
case DropAction.Invalid:
|
|
25
|
-
default: return '
|
|
27
|
+
default: return 'cancel';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
get statusSVGIcon() {
|
|
31
|
+
switch (this.action) {
|
|
32
|
+
case DropAction.Add: return plusIcon;
|
|
33
|
+
case DropAction.InsertTop: return insertTopIcon;
|
|
34
|
+
case DropAction.InsertBottom: return insertBottomIcon;
|
|
35
|
+
case DropAction.InsertMiddle: return insertMiddleIcon;
|
|
36
|
+
case DropAction.Invalid:
|
|
37
|
+
default: return cancelIcon;
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
40
|
// exposed as a public method that can be called from outside as the component uses `OnPush` strategy
|
|
@@ -33,7 +45,12 @@ export class DragClueComponent {
|
|
|
33
45
|
DragClueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
46
|
DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DragClueComponent, selector: "kendo-treeview-drag-clue", host: { properties: { "class.k-header": "this.hostClasses", "class.k-drag-clue": "this.hostClasses", "style.position": "this.posistionStyle" } }, ngImport: i0, template: `
|
|
35
47
|
<ng-container *ngIf="!template">
|
|
36
|
-
<
|
|
48
|
+
<kendo-icon-wrapper
|
|
49
|
+
innerCssClass="k-drag-status"
|
|
50
|
+
[name]="statusIconClass"
|
|
51
|
+
[svgIcon]="statusSVGIcon"
|
|
52
|
+
>
|
|
53
|
+
</kendo-icon-wrapper>
|
|
37
54
|
<span>{{text}}</span>
|
|
38
55
|
</ng-container>
|
|
39
56
|
|
|
@@ -48,7 +65,7 @@ DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
48
65
|
}"
|
|
49
66
|
>
|
|
50
67
|
</ng-template>
|
|
51
|
-
`, isInline: true,
|
|
68
|
+
`, 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
52
69
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, decorators: [{
|
|
53
70
|
type: Component,
|
|
54
71
|
args: [{
|
|
@@ -56,7 +73,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
56
73
|
selector: 'kendo-treeview-drag-clue',
|
|
57
74
|
template: `
|
|
58
75
|
<ng-container *ngIf="!template">
|
|
59
|
-
<
|
|
76
|
+
<kendo-icon-wrapper
|
|
77
|
+
innerCssClass="k-drag-status"
|
|
78
|
+
[name]="statusIconClass"
|
|
79
|
+
[svgIcon]="statusSVGIcon"
|
|
80
|
+
>
|
|
81
|
+
</kendo-icon-wrapper>
|
|
60
82
|
<span>{{text}}</span>
|
|
61
83
|
</ng-container>
|
|
62
84
|
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treeview',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1673466895,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -26,6 +26,7 @@ import { DragAndDropEditingDirective } from './drag-and-drop/drag-and-drop-editi
|
|
|
26
26
|
import { LoadMoreDirective } from './load-more/load-more.directive';
|
|
27
27
|
import { LoadMoreButtonTemplateDirective } from './load-more/load-more-button-template.directive';
|
|
28
28
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
29
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
29
30
|
import * as i0 from "@angular/core";
|
|
30
31
|
const COMPONENT_DIRECTIVES = [
|
|
31
32
|
TreeViewComponent,
|
|
@@ -76,7 +77,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
76
77
|
LoadMoreDirective,
|
|
77
78
|
LoadMoreButtonTemplateDirective], imports: [CommonModule,
|
|
78
79
|
CheckBoxModule,
|
|
79
|
-
InputsModule
|
|
80
|
+
InputsModule,
|
|
81
|
+
IconsModule], exports: [TreeViewComponent,
|
|
80
82
|
TreeViewGroupComponent,
|
|
81
83
|
TreeViewItemDirective,
|
|
82
84
|
TreeViewItemContentDirective,
|
|
@@ -99,7 +101,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
99
101
|
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
|
|
100
102
|
CommonModule,
|
|
101
103
|
CheckBoxModule,
|
|
102
|
-
InputsModule
|
|
104
|
+
InputsModule,
|
|
105
|
+
IconsModule
|
|
103
106
|
]] });
|
|
104
107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
105
108
|
type: NgModule,
|
|
@@ -109,7 +112,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
109
112
|
imports: [
|
|
110
113
|
CommonModule,
|
|
111
114
|
CheckBoxModule,
|
|
112
|
-
InputsModule
|
|
115
|
+
InputsModule,
|
|
116
|
+
IconsModule
|
|
113
117
|
],
|
|
114
118
|
entryComponents: [
|
|
115
119
|
DragClueComponent,
|
|
@@ -15,6 +15,7 @@ import { LoadingNotificationService } from './loading-notification.service';
|
|
|
15
15
|
import { Subscription, EMPTY, of } from 'rxjs';
|
|
16
16
|
import { catchError, tap, finalize, filter } from 'rxjs/operators';
|
|
17
17
|
import { DataChangeNotificationService } from './data-change-notification.service';
|
|
18
|
+
import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
import * as i1 from "./expand-state.service";
|
|
20
21
|
import * as i2 from "./loading-notification.service";
|
|
@@ -23,11 +24,12 @@ import * as i4 from "./treeview-lookup.service";
|
|
|
23
24
|
import * as i5 from "./navigation/navigation.service";
|
|
24
25
|
import * as i6 from "./node-children.service";
|
|
25
26
|
import * as i7 from "./data-change-notification.service";
|
|
26
|
-
import * as i8 from "
|
|
27
|
-
import * as i9 from "
|
|
28
|
-
import * as i10 from "
|
|
29
|
-
import * as i11 from "./
|
|
30
|
-
import * as i12 from "./
|
|
27
|
+
import * as i8 from "@progress/kendo-angular-icons";
|
|
28
|
+
import * as i9 from "./checkbox/checkbox.component";
|
|
29
|
+
import * as i10 from "@angular/common";
|
|
30
|
+
import * as i11 from "./treeview-item.directive";
|
|
31
|
+
import * as i12 from "./loading-indicator.directive";
|
|
32
|
+
import * as i13 from "./treeview-item-content.directive";
|
|
31
33
|
const TOP_ITEM = 'k-treeview-top';
|
|
32
34
|
const MID_ITEM = 'k-treeview-mid';
|
|
33
35
|
const BOT_ITEM = 'k-treeview-bot';
|
|
@@ -44,6 +46,14 @@ export class TreeViewGroupComponent {
|
|
|
44
46
|
this.nodeChildrenService = nodeChildrenService;
|
|
45
47
|
this.dataChangeNotification = dataChangeNotification;
|
|
46
48
|
this.changeDetectorRef = changeDetectorRef;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
this.caretAltDownIcon = caretAltDownIcon;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
47
57
|
this.kGroupClass = true;
|
|
48
58
|
this.role = 'group';
|
|
49
59
|
this.loadOnDemand = true;
|
|
@@ -62,6 +72,12 @@ export class TreeViewGroupComponent {
|
|
|
62
72
|
this.children = () => of([]);
|
|
63
73
|
this.hasChildren = () => false;
|
|
64
74
|
}
|
|
75
|
+
getFontIcon(node, index) {
|
|
76
|
+
return this.isExpanded(node, index) ? 'caret-alt-down' : 'caret-alt-right';
|
|
77
|
+
}
|
|
78
|
+
getSvgIcon(node, index) {
|
|
79
|
+
return this.isExpanded(node, index) ? caretAltDownIcon : caretAltRightIcon;
|
|
80
|
+
}
|
|
65
81
|
get moreNodesAvailable() {
|
|
66
82
|
if (!isPresent(this.loadMoreService) || this.data.length === 0) {
|
|
67
83
|
return false;
|
|
@@ -212,7 +228,7 @@ export class TreeViewGroupComponent {
|
|
|
212
228
|
skip: this.data.length,
|
|
213
229
|
take: this.loadMoreService.getInitialPageSize(this.parentDataItem)
|
|
214
230
|
})
|
|
215
|
-
.pipe(finalize(() => this.loadingMoreNodes =
|
|
231
|
+
.pipe(finalize(() => this.loadingMoreNodes = true))
|
|
216
232
|
.subscribe(items => {
|
|
217
233
|
if (!(Array.isArray(items) && items.length > 0)) {
|
|
218
234
|
return;
|
|
@@ -301,12 +317,11 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
301
317
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
302
318
|
*ngIf="expandIcons && hasChildren(node)"
|
|
303
319
|
>
|
|
304
|
-
<
|
|
305
|
-
|
|
306
|
-
[
|
|
307
|
-
|
|
308
|
-
>
|
|
309
|
-
</span>
|
|
320
|
+
<kendo-icon-wrapper
|
|
321
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
322
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
323
|
+
>
|
|
324
|
+
</kendo-icon-wrapper>
|
|
310
325
|
</span>
|
|
311
326
|
<kendo-checkbox
|
|
312
327
|
*ngIf="checkboxes"
|
|
@@ -395,7 +410,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
395
410
|
<div class="k-treeview-bot">
|
|
396
411
|
<span
|
|
397
412
|
*ngIf="loadingMoreNodes"
|
|
398
|
-
class="k-icon k-i-loading
|
|
413
|
+
class="k-icon k-i-loading"
|
|
399
414
|
>
|
|
400
415
|
</span>
|
|
401
416
|
<span
|
|
@@ -420,7 +435,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
420
435
|
</span>
|
|
421
436
|
</div>
|
|
422
437
|
</li>
|
|
423
|
-
`, isInline: true, components: [{ type: i8.CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
438
|
+
`, isInline: true, components: [{ type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i9.CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }, { type: i13.TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }], animations: [
|
|
424
439
|
trigger('toggle', [
|
|
425
440
|
transition('void => *', [
|
|
426
441
|
style({ height: 0 }),
|
|
@@ -479,12 +494,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
479
494
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
480
495
|
*ngIf="expandIcons && hasChildren(node)"
|
|
481
496
|
>
|
|
482
|
-
<
|
|
483
|
-
|
|
484
|
-
[
|
|
485
|
-
|
|
486
|
-
>
|
|
487
|
-
</span>
|
|
497
|
+
<kendo-icon-wrapper
|
|
498
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
499
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
500
|
+
>
|
|
501
|
+
</kendo-icon-wrapper>
|
|
488
502
|
</span>
|
|
489
503
|
<kendo-checkbox
|
|
490
504
|
*ngIf="checkboxes"
|
|
@@ -573,7 +587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
573
587
|
<div class="k-treeview-bot">
|
|
574
588
|
<span
|
|
575
589
|
*ngIf="loadingMoreNodes"
|
|
576
|
-
class="k-icon k-i-loading
|
|
590
|
+
class="k-icon k-i-loading"
|
|
577
591
|
>
|
|
578
592
|
</span>
|
|
579
593
|
<span
|
|
@@ -22,6 +22,7 @@ import { ExpandableComponent } from './expandable-component';
|
|
|
22
22
|
import { SelectionService } from './selection/selection.service';
|
|
23
23
|
import { TreeViewLookupService } from './treeview-lookup.service';
|
|
24
24
|
import { closestNode, focusableNode, hasParent, isContent, isFocusable, match, nodeId, isLoadMoreButton, isPresent, nodeIndex, buildTreeItem, getSizeClass } from './utils';
|
|
25
|
+
import { searchIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
import * as i1 from "./expand-state.service";
|
|
27
28
|
import * as i2 from "./navigation/navigation.service";
|
|
@@ -31,8 +32,9 @@ import * as i5 from "./treeview-lookup.service";
|
|
|
31
32
|
import * as i6 from "./data-change-notification.service";
|
|
32
33
|
import * as i7 from "@progress/kendo-angular-l10n";
|
|
33
34
|
import * as i8 from "@progress/kendo-angular-inputs";
|
|
34
|
-
import * as i9 from "
|
|
35
|
-
import * as i10 from "
|
|
35
|
+
import * as i9 from "@progress/kendo-angular-icons";
|
|
36
|
+
import * as i10 from "./treeview-group.component";
|
|
37
|
+
import * as i11 from "@angular/common";
|
|
36
38
|
const LOAD_MORE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/';
|
|
37
39
|
const providers = [
|
|
38
40
|
ExpandStateService,
|
|
@@ -80,6 +82,10 @@ export class TreeViewComponent {
|
|
|
80
82
|
this.renderer = renderer;
|
|
81
83
|
this.dataChangeNotification = dataChangeNotification;
|
|
82
84
|
this.localization = localization;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
this.searchIcon = searchIcon;
|
|
83
89
|
this.classNames = true;
|
|
84
90
|
this.role = 'tree';
|
|
85
91
|
/**
|
|
@@ -625,7 +631,12 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
625
631
|
[placeholder]="filterInputPlaceholder"
|
|
626
632
|
>
|
|
627
633
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
628
|
-
<
|
|
634
|
+
<kendo-icon-wrapper
|
|
635
|
+
innerCssClass="k-input-icon"
|
|
636
|
+
name="search"
|
|
637
|
+
[svgIcon]="searchIcon"
|
|
638
|
+
>
|
|
639
|
+
</kendo-icon-wrapper>
|
|
629
640
|
</ng-template>
|
|
630
641
|
</kendo-textbox>
|
|
631
642
|
</span>
|
|
@@ -656,7 +667,7 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
656
667
|
>
|
|
657
668
|
</ul>
|
|
658
669
|
<ng-container #assetsContainer></ng-container>
|
|
659
|
-
`, isInline: true, components: [{ type: i8.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: i9.TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
670
|
+
`, isInline: true, components: [{ type: i8.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: i9.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i10.TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
660
671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
661
672
|
type: Component,
|
|
662
673
|
args: [{
|
|
@@ -677,7 +688,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
677
688
|
[placeholder]="filterInputPlaceholder"
|
|
678
689
|
>
|
|
679
690
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
680
|
-
<
|
|
691
|
+
<kendo-icon-wrapper
|
|
692
|
+
innerCssClass="k-input-icon"
|
|
693
|
+
name="search"
|
|
694
|
+
[svgIcon]="searchIcon"
|
|
695
|
+
>
|
|
696
|
+
</kendo-icon-wrapper>
|
|
681
697
|
</ng-template>
|
|
682
698
|
</kendo-textbox>
|
|
683
699
|
</span>
|
|
@@ -10,11 +10,14 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
10
10
|
import { Subject, of, Subscription, EMPTY, BehaviorSubject, merge } from 'rxjs';
|
|
11
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
12
|
import { getter, setter } from '@progress/kendo-common';
|
|
13
|
-
import
|
|
13
|
+
import { caretAltDownIcon, caretAltRightIcon, searchIcon, cancelIcon, insertMiddleIcon, insertBottomIcon, insertTopIcon, plusIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import * as i8$1 from '@progress/kendo-angular-inputs';
|
|
14
15
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
16
|
+
import * as i8 from '@progress/kendo-angular-icons';
|
|
17
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
15
18
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
16
19
|
import { filter, tap, switchMap, delay, takeUntil, catchError, finalize, take, map } from 'rxjs/operators';
|
|
17
|
-
import * as
|
|
20
|
+
import * as i10 from '@angular/common';
|
|
18
21
|
import { CommonModule } from '@angular/common';
|
|
19
22
|
import { Draggable } from '@progress/kendo-draggable';
|
|
20
23
|
|
|
@@ -25,7 +28,7 @@ const packageMetadata = {
|
|
|
25
28
|
name: '@progress/kendo-angular-treeview',
|
|
26
29
|
productName: 'Kendo UI for Angular',
|
|
27
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
28
|
-
publishDate:
|
|
31
|
+
publishDate: 1673466895,
|
|
29
32
|
version: '',
|
|
30
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
31
34
|
};
|
|
@@ -1525,6 +1528,14 @@ class TreeViewGroupComponent {
|
|
|
1525
1528
|
this.nodeChildrenService = nodeChildrenService;
|
|
1526
1529
|
this.dataChangeNotification = dataChangeNotification;
|
|
1527
1530
|
this.changeDetectorRef = changeDetectorRef;
|
|
1531
|
+
/**
|
|
1532
|
+
* @hidden
|
|
1533
|
+
*/
|
|
1534
|
+
this.caretAltDownIcon = caretAltDownIcon;
|
|
1535
|
+
/**
|
|
1536
|
+
* @hidden
|
|
1537
|
+
*/
|
|
1538
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
1528
1539
|
this.kGroupClass = true;
|
|
1529
1540
|
this.role = 'group';
|
|
1530
1541
|
this.loadOnDemand = true;
|
|
@@ -1543,6 +1554,12 @@ class TreeViewGroupComponent {
|
|
|
1543
1554
|
this.children = () => of([]);
|
|
1544
1555
|
this.hasChildren = () => false;
|
|
1545
1556
|
}
|
|
1557
|
+
getFontIcon(node, index) {
|
|
1558
|
+
return this.isExpanded(node, index) ? 'caret-alt-down' : 'caret-alt-right';
|
|
1559
|
+
}
|
|
1560
|
+
getSvgIcon(node, index) {
|
|
1561
|
+
return this.isExpanded(node, index) ? caretAltDownIcon : caretAltRightIcon;
|
|
1562
|
+
}
|
|
1546
1563
|
get moreNodesAvailable() {
|
|
1547
1564
|
if (!isPresent(this.loadMoreService) || this.data.length === 0) {
|
|
1548
1565
|
return false;
|
|
@@ -1693,7 +1710,7 @@ class TreeViewGroupComponent {
|
|
|
1693
1710
|
skip: this.data.length,
|
|
1694
1711
|
take: this.loadMoreService.getInitialPageSize(this.parentDataItem)
|
|
1695
1712
|
})
|
|
1696
|
-
.pipe(finalize(() => this.loadingMoreNodes =
|
|
1713
|
+
.pipe(finalize(() => this.loadingMoreNodes = true))
|
|
1697
1714
|
.subscribe(items => {
|
|
1698
1715
|
if (!(Array.isArray(items) && items.length > 0)) {
|
|
1699
1716
|
return;
|
|
@@ -1782,12 +1799,11 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1782
1799
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
1783
1800
|
*ngIf="expandIcons && hasChildren(node)"
|
|
1784
1801
|
>
|
|
1785
|
-
<
|
|
1786
|
-
|
|
1787
|
-
[
|
|
1788
|
-
|
|
1789
|
-
>
|
|
1790
|
-
</span>
|
|
1802
|
+
<kendo-icon-wrapper
|
|
1803
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
1804
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
1805
|
+
>
|
|
1806
|
+
</kendo-icon-wrapper>
|
|
1791
1807
|
</span>
|
|
1792
1808
|
<kendo-checkbox
|
|
1793
1809
|
*ngIf="checkboxes"
|
|
@@ -1876,7 +1892,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1876
1892
|
<div class="k-treeview-bot">
|
|
1877
1893
|
<span
|
|
1878
1894
|
*ngIf="loadingMoreNodes"
|
|
1879
|
-
class="k-icon k-i-loading
|
|
1895
|
+
class="k-icon k-i-loading"
|
|
1880
1896
|
>
|
|
1881
1897
|
</span>
|
|
1882
1898
|
<span
|
|
@@ -1901,7 +1917,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1901
1917
|
</span>
|
|
1902
1918
|
</div>
|
|
1903
1919
|
</li>
|
|
1904
|
-
`, isInline: true, components: [{ type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
1920
|
+
`, isInline: true, components: [{ type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }, { type: TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }], animations: [
|
|
1905
1921
|
trigger('toggle', [
|
|
1906
1922
|
transition('void => *', [
|
|
1907
1923
|
style({ height: 0 }),
|
|
@@ -1960,12 +1976,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1960
1976
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
1961
1977
|
*ngIf="expandIcons && hasChildren(node)"
|
|
1962
1978
|
>
|
|
1963
|
-
<
|
|
1964
|
-
|
|
1965
|
-
[
|
|
1966
|
-
|
|
1967
|
-
>
|
|
1968
|
-
</span>
|
|
1979
|
+
<kendo-icon-wrapper
|
|
1980
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
1981
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
1982
|
+
>
|
|
1983
|
+
</kendo-icon-wrapper>
|
|
1969
1984
|
</span>
|
|
1970
1985
|
<kendo-checkbox
|
|
1971
1986
|
*ngIf="checkboxes"
|
|
@@ -2054,7 +2069,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2054
2069
|
<div class="k-treeview-bot">
|
|
2055
2070
|
<span
|
|
2056
2071
|
*ngIf="loadingMoreNodes"
|
|
2057
|
-
class="k-icon k-i-loading
|
|
2072
|
+
class="k-icon k-i-loading"
|
|
2058
2073
|
>
|
|
2059
2074
|
</span>
|
|
2060
2075
|
<span
|
|
@@ -2184,6 +2199,10 @@ class TreeViewComponent {
|
|
|
2184
2199
|
this.renderer = renderer;
|
|
2185
2200
|
this.dataChangeNotification = dataChangeNotification;
|
|
2186
2201
|
this.localization = localization;
|
|
2202
|
+
/**
|
|
2203
|
+
* @hidden
|
|
2204
|
+
*/
|
|
2205
|
+
this.searchIcon = searchIcon;
|
|
2187
2206
|
this.classNames = true;
|
|
2188
2207
|
this.role = 'tree';
|
|
2189
2208
|
/**
|
|
@@ -2729,7 +2748,12 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
2729
2748
|
[placeholder]="filterInputPlaceholder"
|
|
2730
2749
|
>
|
|
2731
2750
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
2732
|
-
<
|
|
2751
|
+
<kendo-icon-wrapper
|
|
2752
|
+
innerCssClass="k-input-icon"
|
|
2753
|
+
name="search"
|
|
2754
|
+
[svgIcon]="searchIcon"
|
|
2755
|
+
>
|
|
2756
|
+
</kendo-icon-wrapper>
|
|
2733
2757
|
</ng-template>
|
|
2734
2758
|
</kendo-textbox>
|
|
2735
2759
|
</span>
|
|
@@ -2760,7 +2784,7 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
2760
2784
|
>
|
|
2761
2785
|
</ul>
|
|
2762
2786
|
<ng-container #assetsContainer></ng-container>
|
|
2763
|
-
`, isInline: true, components: [{ type: i8.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
2787
|
+
`, isInline: true, components: [{ type: i8$1.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8$1.TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
2764
2788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
2765
2789
|
type: Component,
|
|
2766
2790
|
args: [{
|
|
@@ -2781,7 +2805,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2781
2805
|
[placeholder]="filterInputPlaceholder"
|
|
2782
2806
|
>
|
|
2783
2807
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
2784
|
-
<
|
|
2808
|
+
<kendo-icon-wrapper
|
|
2809
|
+
innerCssClass="k-input-icon"
|
|
2810
|
+
name="search"
|
|
2811
|
+
[svgIcon]="searchIcon"
|
|
2812
|
+
>
|
|
2813
|
+
</kendo-icon-wrapper>
|
|
2785
2814
|
</ng-template>
|
|
2786
2815
|
</kendo-textbox>
|
|
2787
2816
|
</span>
|
|
@@ -4110,12 +4139,22 @@ class DragClueComponent {
|
|
|
4110
4139
|
}
|
|
4111
4140
|
get statusIconClass() {
|
|
4112
4141
|
switch (this.action) {
|
|
4113
|
-
case DropAction.Add: return '
|
|
4114
|
-
case DropAction.InsertTop: return '
|
|
4115
|
-
case DropAction.InsertBottom: return '
|
|
4116
|
-
case DropAction.InsertMiddle: return '
|
|
4142
|
+
case DropAction.Add: return 'plus';
|
|
4143
|
+
case DropAction.InsertTop: return 'insert-top';
|
|
4144
|
+
case DropAction.InsertBottom: return 'insert-bottom';
|
|
4145
|
+
case DropAction.InsertMiddle: return 'insert-middle';
|
|
4117
4146
|
case DropAction.Invalid:
|
|
4118
|
-
default: return '
|
|
4147
|
+
default: return 'cancel';
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
get statusSVGIcon() {
|
|
4151
|
+
switch (this.action) {
|
|
4152
|
+
case DropAction.Add: return plusIcon;
|
|
4153
|
+
case DropAction.InsertTop: return insertTopIcon;
|
|
4154
|
+
case DropAction.InsertBottom: return insertBottomIcon;
|
|
4155
|
+
case DropAction.InsertMiddle: return insertMiddleIcon;
|
|
4156
|
+
case DropAction.Invalid:
|
|
4157
|
+
default: return cancelIcon;
|
|
4119
4158
|
}
|
|
4120
4159
|
}
|
|
4121
4160
|
// exposed as a public method that can be called from outside as the component uses `OnPush` strategy
|
|
@@ -4126,7 +4165,12 @@ class DragClueComponent {
|
|
|
4126
4165
|
DragClueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4127
4166
|
DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DragClueComponent, selector: "kendo-treeview-drag-clue", host: { properties: { "class.k-header": "this.hostClasses", "class.k-drag-clue": "this.hostClasses", "style.position": "this.posistionStyle" } }, ngImport: i0, template: `
|
|
4128
4167
|
<ng-container *ngIf="!template">
|
|
4129
|
-
<
|
|
4168
|
+
<kendo-icon-wrapper
|
|
4169
|
+
innerCssClass="k-drag-status"
|
|
4170
|
+
[name]="statusIconClass"
|
|
4171
|
+
[svgIcon]="statusSVGIcon"
|
|
4172
|
+
>
|
|
4173
|
+
</kendo-icon-wrapper>
|
|
4130
4174
|
<span>{{text}}</span>
|
|
4131
4175
|
</ng-container>
|
|
4132
4176
|
|
|
@@ -4141,7 +4185,7 @@ DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
4141
4185
|
}"
|
|
4142
4186
|
>
|
|
4143
4187
|
</ng-template>
|
|
4144
|
-
`, isInline: true, directives: [{ type:
|
|
4188
|
+
`, isInline: true, components: [{ type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4145
4189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, decorators: [{
|
|
4146
4190
|
type: Component,
|
|
4147
4191
|
args: [{
|
|
@@ -4149,7 +4193,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4149
4193
|
selector: 'kendo-treeview-drag-clue',
|
|
4150
4194
|
template: `
|
|
4151
4195
|
<ng-container *ngIf="!template">
|
|
4152
|
-
<
|
|
4196
|
+
<kendo-icon-wrapper
|
|
4197
|
+
innerCssClass="k-drag-status"
|
|
4198
|
+
[name]="statusIconClass"
|
|
4199
|
+
[svgIcon]="statusSVGIcon"
|
|
4200
|
+
>
|
|
4201
|
+
</kendo-icon-wrapper>
|
|
4153
4202
|
<span>{{text}}</span>
|
|
4154
4203
|
</ng-container>
|
|
4155
4204
|
|
|
@@ -4366,7 +4415,7 @@ DropHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
4366
4415
|
}"
|
|
4367
4416
|
>
|
|
4368
4417
|
<ng-template>
|
|
4369
|
-
`, isInline: true, directives: [{ type:
|
|
4418
|
+
`, isInline: true, directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4370
4419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintComponent, decorators: [{
|
|
4371
4420
|
type: Component,
|
|
4372
4421
|
args: [{
|
|
@@ -5370,7 +5419,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
5370
5419
|
LoadMoreDirective,
|
|
5371
5420
|
LoadMoreButtonTemplateDirective], imports: [CommonModule,
|
|
5372
5421
|
CheckBoxModule,
|
|
5373
|
-
InputsModule
|
|
5422
|
+
InputsModule,
|
|
5423
|
+
IconsModule], exports: [TreeViewComponent,
|
|
5374
5424
|
TreeViewGroupComponent,
|
|
5375
5425
|
TreeViewItemDirective,
|
|
5376
5426
|
TreeViewItemContentDirective,
|
|
@@ -5393,7 +5443,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
5393
5443
|
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
|
|
5394
5444
|
CommonModule,
|
|
5395
5445
|
CheckBoxModule,
|
|
5396
|
-
InputsModule
|
|
5446
|
+
InputsModule,
|
|
5447
|
+
IconsModule
|
|
5397
5448
|
]] });
|
|
5398
5449
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
5399
5450
|
type: NgModule,
|
|
@@ -5403,7 +5454,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5403
5454
|
imports: [
|
|
5404
5455
|
CommonModule,
|
|
5405
5456
|
CheckBoxModule,
|
|
5406
|
-
InputsModule
|
|
5457
|
+
InputsModule,
|
|
5458
|
+
IconsModule
|
|
5407
5459
|
],
|
|
5408
5460
|
entryComponents: [
|
|
5409
5461
|
DragClueComponent,
|
|
@@ -10,11 +10,14 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
10
10
|
import { Subject, of, Subscription, EMPTY, BehaviorSubject, merge } from 'rxjs';
|
|
11
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
12
|
import { getter, setter } from '@progress/kendo-common';
|
|
13
|
-
import
|
|
13
|
+
import { caretAltDownIcon, caretAltRightIcon, searchIcon, cancelIcon, insertMiddleIcon, insertBottomIcon, insertTopIcon, plusIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import * as i8$1 from '@progress/kendo-angular-inputs';
|
|
14
15
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
16
|
+
import * as i8 from '@progress/kendo-angular-icons';
|
|
17
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
15
18
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
16
19
|
import { filter, tap, switchMap, delay, takeUntil, catchError, finalize, take, map } from 'rxjs/operators';
|
|
17
|
-
import * as
|
|
20
|
+
import * as i10 from '@angular/common';
|
|
18
21
|
import { CommonModule } from '@angular/common';
|
|
19
22
|
import { Draggable } from '@progress/kendo-draggable';
|
|
20
23
|
|
|
@@ -25,7 +28,7 @@ const packageMetadata = {
|
|
|
25
28
|
name: '@progress/kendo-angular-treeview',
|
|
26
29
|
productName: 'Kendo UI for Angular',
|
|
27
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
28
|
-
publishDate:
|
|
31
|
+
publishDate: 1673466895,
|
|
29
32
|
version: '',
|
|
30
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
31
34
|
};
|
|
@@ -1521,6 +1524,14 @@ class TreeViewGroupComponent {
|
|
|
1521
1524
|
this.nodeChildrenService = nodeChildrenService;
|
|
1522
1525
|
this.dataChangeNotification = dataChangeNotification;
|
|
1523
1526
|
this.changeDetectorRef = changeDetectorRef;
|
|
1527
|
+
/**
|
|
1528
|
+
* @hidden
|
|
1529
|
+
*/
|
|
1530
|
+
this.caretAltDownIcon = caretAltDownIcon;
|
|
1531
|
+
/**
|
|
1532
|
+
* @hidden
|
|
1533
|
+
*/
|
|
1534
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
1524
1535
|
this.kGroupClass = true;
|
|
1525
1536
|
this.role = 'group';
|
|
1526
1537
|
this.loadOnDemand = true;
|
|
@@ -1539,6 +1550,12 @@ class TreeViewGroupComponent {
|
|
|
1539
1550
|
this.children = () => of([]);
|
|
1540
1551
|
this.hasChildren = () => false;
|
|
1541
1552
|
}
|
|
1553
|
+
getFontIcon(node, index) {
|
|
1554
|
+
return this.isExpanded(node, index) ? 'caret-alt-down' : 'caret-alt-right';
|
|
1555
|
+
}
|
|
1556
|
+
getSvgIcon(node, index) {
|
|
1557
|
+
return this.isExpanded(node, index) ? caretAltDownIcon : caretAltRightIcon;
|
|
1558
|
+
}
|
|
1542
1559
|
get moreNodesAvailable() {
|
|
1543
1560
|
if (!isPresent(this.loadMoreService) || this.data.length === 0) {
|
|
1544
1561
|
return false;
|
|
@@ -1689,7 +1706,7 @@ class TreeViewGroupComponent {
|
|
|
1689
1706
|
skip: this.data.length,
|
|
1690
1707
|
take: this.loadMoreService.getInitialPageSize(this.parentDataItem)
|
|
1691
1708
|
})
|
|
1692
|
-
.pipe(finalize(() => this.loadingMoreNodes =
|
|
1709
|
+
.pipe(finalize(() => this.loadingMoreNodes = true))
|
|
1693
1710
|
.subscribe(items => {
|
|
1694
1711
|
if (!(Array.isArray(items) && items.length > 0)) {
|
|
1695
1712
|
return;
|
|
@@ -1778,12 +1795,11 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1778
1795
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
1779
1796
|
*ngIf="expandIcons && hasChildren(node)"
|
|
1780
1797
|
>
|
|
1781
|
-
<
|
|
1782
|
-
|
|
1783
|
-
[
|
|
1784
|
-
|
|
1785
|
-
>
|
|
1786
|
-
</span>
|
|
1798
|
+
<kendo-icon-wrapper
|
|
1799
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
1800
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
1801
|
+
>
|
|
1802
|
+
</kendo-icon-wrapper>
|
|
1787
1803
|
</span>
|
|
1788
1804
|
<kendo-checkbox
|
|
1789
1805
|
*ngIf="checkboxes"
|
|
@@ -1872,7 +1888,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1872
1888
|
<div class="k-treeview-bot">
|
|
1873
1889
|
<span
|
|
1874
1890
|
*ngIf="loadingMoreNodes"
|
|
1875
|
-
class="k-icon k-i-loading
|
|
1891
|
+
class="k-icon k-i-loading"
|
|
1876
1892
|
>
|
|
1877
1893
|
</span>
|
|
1878
1894
|
<span
|
|
@@ -1897,7 +1913,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1897
1913
|
</span>
|
|
1898
1914
|
</div>
|
|
1899
1915
|
</li>
|
|
1900
|
-
`, isInline: true, components: [{ type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
1916
|
+
`, isInline: true, components: [{ type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }, { type: TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }], animations: [
|
|
1901
1917
|
trigger('toggle', [
|
|
1902
1918
|
transition('void => *', [
|
|
1903
1919
|
style({ height: 0 }),
|
|
@@ -1956,12 +1972,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1956
1972
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
1957
1973
|
*ngIf="expandIcons && hasChildren(node)"
|
|
1958
1974
|
>
|
|
1959
|
-
<
|
|
1960
|
-
|
|
1961
|
-
[
|
|
1962
|
-
|
|
1963
|
-
>
|
|
1964
|
-
</span>
|
|
1975
|
+
<kendo-icon-wrapper
|
|
1976
|
+
[name]="getFontIcon(node, nodeIndex(index))"
|
|
1977
|
+
[svgIcon]="getSvgIcon(node, nodeIndex(index))"
|
|
1978
|
+
>
|
|
1979
|
+
</kendo-icon-wrapper>
|
|
1965
1980
|
</span>
|
|
1966
1981
|
<kendo-checkbox
|
|
1967
1982
|
*ngIf="checkboxes"
|
|
@@ -2050,7 +2065,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2050
2065
|
<div class="k-treeview-bot">
|
|
2051
2066
|
<span
|
|
2052
2067
|
*ngIf="loadingMoreNodes"
|
|
2053
|
-
class="k-icon k-i-loading
|
|
2068
|
+
class="k-icon k-i-loading"
|
|
2054
2069
|
>
|
|
2055
2070
|
</span>
|
|
2056
2071
|
<span
|
|
@@ -2180,6 +2195,10 @@ class TreeViewComponent {
|
|
|
2180
2195
|
this.renderer = renderer;
|
|
2181
2196
|
this.dataChangeNotification = dataChangeNotification;
|
|
2182
2197
|
this.localization = localization;
|
|
2198
|
+
/**
|
|
2199
|
+
* @hidden
|
|
2200
|
+
*/
|
|
2201
|
+
this.searchIcon = searchIcon;
|
|
2183
2202
|
this.classNames = true;
|
|
2184
2203
|
this.role = 'tree';
|
|
2185
2204
|
/**
|
|
@@ -2725,7 +2744,12 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
2725
2744
|
[placeholder]="filterInputPlaceholder"
|
|
2726
2745
|
>
|
|
2727
2746
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
2728
|
-
<
|
|
2747
|
+
<kendo-icon-wrapper
|
|
2748
|
+
innerCssClass="k-input-icon"
|
|
2749
|
+
name="search"
|
|
2750
|
+
[svgIcon]="searchIcon"
|
|
2751
|
+
>
|
|
2752
|
+
</kendo-icon-wrapper>
|
|
2729
2753
|
</ng-template>
|
|
2730
2754
|
</kendo-textbox>
|
|
2731
2755
|
</span>
|
|
@@ -2756,7 +2780,7 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
2756
2780
|
>
|
|
2757
2781
|
</ul>
|
|
2758
2782
|
<ng-container #assetsContainer></ng-container>
|
|
2759
|
-
`, isInline: true, components: [{ type: i8.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type:
|
|
2783
|
+
`, isInline: true, components: [{ type: i8$1.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8$1.TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
2760
2784
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
2761
2785
|
type: Component,
|
|
2762
2786
|
args: [{
|
|
@@ -2777,7 +2801,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2777
2801
|
[placeholder]="filterInputPlaceholder"
|
|
2778
2802
|
>
|
|
2779
2803
|
<ng-template kendoTextBoxPrefixTemplate>
|
|
2780
|
-
<
|
|
2804
|
+
<kendo-icon-wrapper
|
|
2805
|
+
innerCssClass="k-input-icon"
|
|
2806
|
+
name="search"
|
|
2807
|
+
[svgIcon]="searchIcon"
|
|
2808
|
+
>
|
|
2809
|
+
</kendo-icon-wrapper>
|
|
2781
2810
|
</ng-template>
|
|
2782
2811
|
</kendo-textbox>
|
|
2783
2812
|
</span>
|
|
@@ -4021,12 +4050,22 @@ class DragClueComponent {
|
|
|
4021
4050
|
}
|
|
4022
4051
|
get statusIconClass() {
|
|
4023
4052
|
switch (this.action) {
|
|
4024
|
-
case DropAction.Add: return '
|
|
4025
|
-
case DropAction.InsertTop: return '
|
|
4026
|
-
case DropAction.InsertBottom: return '
|
|
4027
|
-
case DropAction.InsertMiddle: return '
|
|
4053
|
+
case DropAction.Add: return 'plus';
|
|
4054
|
+
case DropAction.InsertTop: return 'insert-top';
|
|
4055
|
+
case DropAction.InsertBottom: return 'insert-bottom';
|
|
4056
|
+
case DropAction.InsertMiddle: return 'insert-middle';
|
|
4028
4057
|
case DropAction.Invalid:
|
|
4029
|
-
default: return '
|
|
4058
|
+
default: return 'cancel';
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
get statusSVGIcon() {
|
|
4062
|
+
switch (this.action) {
|
|
4063
|
+
case DropAction.Add: return plusIcon;
|
|
4064
|
+
case DropAction.InsertTop: return insertTopIcon;
|
|
4065
|
+
case DropAction.InsertBottom: return insertBottomIcon;
|
|
4066
|
+
case DropAction.InsertMiddle: return insertMiddleIcon;
|
|
4067
|
+
case DropAction.Invalid:
|
|
4068
|
+
default: return cancelIcon;
|
|
4030
4069
|
}
|
|
4031
4070
|
}
|
|
4032
4071
|
// exposed as a public method that can be called from outside as the component uses `OnPush` strategy
|
|
@@ -4037,7 +4076,12 @@ class DragClueComponent {
|
|
|
4037
4076
|
DragClueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4038
4077
|
DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DragClueComponent, selector: "kendo-treeview-drag-clue", host: { properties: { "class.k-header": "this.hostClasses", "class.k-drag-clue": "this.hostClasses", "style.position": "this.posistionStyle" } }, ngImport: i0, template: `
|
|
4039
4078
|
<ng-container *ngIf="!template">
|
|
4040
|
-
<
|
|
4079
|
+
<kendo-icon-wrapper
|
|
4080
|
+
innerCssClass="k-drag-status"
|
|
4081
|
+
[name]="statusIconClass"
|
|
4082
|
+
[svgIcon]="statusSVGIcon"
|
|
4083
|
+
>
|
|
4084
|
+
</kendo-icon-wrapper>
|
|
4041
4085
|
<span>{{text}}</span>
|
|
4042
4086
|
</ng-container>
|
|
4043
4087
|
|
|
@@ -4052,7 +4096,7 @@ DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
4052
4096
|
}"
|
|
4053
4097
|
>
|
|
4054
4098
|
</ng-template>
|
|
4055
|
-
`, isInline: true, directives: [{ type:
|
|
4099
|
+
`, isInline: true, components: [{ type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4056
4100
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, decorators: [{
|
|
4057
4101
|
type: Component,
|
|
4058
4102
|
args: [{
|
|
@@ -4060,7 +4104,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4060
4104
|
selector: 'kendo-treeview-drag-clue',
|
|
4061
4105
|
template: `
|
|
4062
4106
|
<ng-container *ngIf="!template">
|
|
4063
|
-
<
|
|
4107
|
+
<kendo-icon-wrapper
|
|
4108
|
+
innerCssClass="k-drag-status"
|
|
4109
|
+
[name]="statusIconClass"
|
|
4110
|
+
[svgIcon]="statusSVGIcon"
|
|
4111
|
+
>
|
|
4112
|
+
</kendo-icon-wrapper>
|
|
4064
4113
|
<span>{{text}}</span>
|
|
4065
4114
|
</ng-container>
|
|
4066
4115
|
|
|
@@ -4277,7 +4326,7 @@ DropHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
4277
4326
|
}"
|
|
4278
4327
|
>
|
|
4279
4328
|
<ng-template>
|
|
4280
|
-
`, isInline: true, directives: [{ type:
|
|
4329
|
+
`, isInline: true, directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4281
4330
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintComponent, decorators: [{
|
|
4282
4331
|
type: Component,
|
|
4283
4332
|
args: [{
|
|
@@ -5362,7 +5411,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
5362
5411
|
LoadMoreDirective,
|
|
5363
5412
|
LoadMoreButtonTemplateDirective], imports: [CommonModule,
|
|
5364
5413
|
CheckBoxModule,
|
|
5365
|
-
InputsModule
|
|
5414
|
+
InputsModule,
|
|
5415
|
+
IconsModule], exports: [TreeViewComponent,
|
|
5366
5416
|
TreeViewGroupComponent,
|
|
5367
5417
|
TreeViewItemDirective,
|
|
5368
5418
|
TreeViewItemContentDirective,
|
|
@@ -5385,7 +5435,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
5385
5435
|
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
|
|
5386
5436
|
CommonModule,
|
|
5387
5437
|
CheckBoxModule,
|
|
5388
|
-
InputsModule
|
|
5438
|
+
InputsModule,
|
|
5439
|
+
IconsModule
|
|
5389
5440
|
]] });
|
|
5390
5441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
5391
5442
|
type: NgModule,
|
|
@@ -5395,7 +5446,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5395
5446
|
imports: [
|
|
5396
5447
|
CommonModule,
|
|
5397
5448
|
CheckBoxModule,
|
|
5398
|
-
InputsModule
|
|
5449
|
+
InputsModule,
|
|
5450
|
+
IconsModule
|
|
5399
5451
|
],
|
|
5400
5452
|
entryComponents: [
|
|
5401
5453
|
DragClueComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treeview",
|
|
3
|
-
"version": "11.0.0-develop.
|
|
3
|
+
"version": "11.0.0-develop.99",
|
|
4
4
|
"description": "Kendo UI TreeView for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"@progress/kendo-common": "^0.2.0",
|
|
26
26
|
"@progress/kendo-draggable": "^3.0.2",
|
|
27
27
|
"@progress/kendo-licensing": "^1.0.2",
|
|
28
|
-
"@progress/kendo-angular-common": "11.0.0-develop.
|
|
29
|
-
"@progress/kendo-angular-inputs": "11.0.0-develop.
|
|
30
|
-
"@progress/kendo-angular-
|
|
31
|
-
"@progress/kendo-angular-
|
|
28
|
+
"@progress/kendo-angular-common": "11.0.0-develop.99",
|
|
29
|
+
"@progress/kendo-angular-inputs": "11.0.0-develop.99",
|
|
30
|
+
"@progress/kendo-angular-icons": "11.0.0-develop.99",
|
|
31
|
+
"@progress/kendo-angular-l10n": "11.0.0-develop.99",
|
|
32
|
+
"@progress/kendo-angular-schematics": "11.0.0-develop.99",
|
|
32
33
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
@@ -8,7 +8,9 @@ function default_1(options) {
|
|
|
8
8
|
'@progress/kendo-angular-dialog': '^7.0.0',
|
|
9
9
|
'@progress/kendo-angular-intl': '^4.0.0',
|
|
10
10
|
'@progress/kendo-angular-popup': '^5.0.0',
|
|
11
|
-
'@progress/kendo-drawing': '^1.9.3'
|
|
11
|
+
'@progress/kendo-drawing': '^1.9.3',
|
|
12
|
+
// Peer dependency of icons
|
|
13
|
+
"@progress/kendo-svg-icons": "^1.0.0"
|
|
12
14
|
} });
|
|
13
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
14
16
|
}
|
package/shared.module.d.ts
CHANGED
|
@@ -26,11 +26,12 @@ import * as i20 from "./load-more/load-more-button-template.directive";
|
|
|
26
26
|
import * as i21 from "@angular/common";
|
|
27
27
|
import * as i22 from "./checkbox/checkbox.module";
|
|
28
28
|
import * as i23 from "@progress/kendo-angular-inputs";
|
|
29
|
+
import * as i24 from "@progress/kendo-angular-icons";
|
|
29
30
|
/**
|
|
30
31
|
* @hidden
|
|
31
32
|
*/
|
|
32
33
|
export declare class SharedModule {
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TreeViewComponent, typeof i2.TreeViewGroupComponent, typeof i3.TreeViewItemDirective, typeof i4.TreeViewItemContentDirective, typeof i5.NodeTemplateDirective, typeof i6.CheckDirective, typeof i7.DisableDirective, typeof i8.ExpandDirective, typeof i9.SelectDirective, typeof i10.HierarchyBindingDirective, typeof i11.LoadingIndicatorDirective, typeof i12.FlatDataBindingDirective, typeof i13.DragAndDropDirective, typeof i14.DragClueTemplateDirective, typeof i15.DragClueComponent, typeof i16.DropHintTemplateDirective, typeof i17.DropHintComponent, typeof i18.DragAndDropEditingDirective, typeof i19.LoadMoreDirective, typeof i20.LoadMoreButtonTemplateDirective], [typeof i21.CommonModule, typeof i22.CheckBoxModule, typeof i23.InputsModule], [typeof i1.TreeViewComponent, typeof i2.TreeViewGroupComponent, typeof i3.TreeViewItemDirective, typeof i4.TreeViewItemContentDirective, typeof i5.NodeTemplateDirective, typeof i6.CheckDirective, typeof i7.DisableDirective, typeof i8.ExpandDirective, typeof i9.SelectDirective, typeof i10.HierarchyBindingDirective, typeof i11.LoadingIndicatorDirective, typeof i12.FlatDataBindingDirective, typeof i13.DragAndDropDirective, typeof i14.DragClueTemplateDirective, typeof i15.DragClueComponent, typeof i16.DropHintTemplateDirective, typeof i17.DropHintComponent, typeof i18.DragAndDropEditingDirective, typeof i19.LoadMoreDirective, typeof i20.LoadMoreButtonTemplateDirective]>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TreeViewComponent, typeof i2.TreeViewGroupComponent, typeof i3.TreeViewItemDirective, typeof i4.TreeViewItemContentDirective, typeof i5.NodeTemplateDirective, typeof i6.CheckDirective, typeof i7.DisableDirective, typeof i8.ExpandDirective, typeof i9.SelectDirective, typeof i10.HierarchyBindingDirective, typeof i11.LoadingIndicatorDirective, typeof i12.FlatDataBindingDirective, typeof i13.DragAndDropDirective, typeof i14.DragClueTemplateDirective, typeof i15.DragClueComponent, typeof i16.DropHintTemplateDirective, typeof i17.DropHintComponent, typeof i18.DragAndDropEditingDirective, typeof i19.LoadMoreDirective, typeof i20.LoadMoreButtonTemplateDirective], [typeof i21.CommonModule, typeof i22.CheckBoxModule, typeof i23.InputsModule, typeof i24.IconsModule], [typeof i1.TreeViewComponent, typeof i2.TreeViewGroupComponent, typeof i3.TreeViewItemDirective, typeof i4.TreeViewItemContentDirective, typeof i5.NodeTemplateDirective, typeof i6.CheckDirective, typeof i7.DisableDirective, typeof i8.ExpandDirective, typeof i9.SelectDirective, typeof i10.HierarchyBindingDirective, typeof i11.LoadingIndicatorDirective, typeof i12.FlatDataBindingDirective, typeof i13.DragAndDropDirective, typeof i14.DragClueTemplateDirective, typeof i15.DragClueComponent, typeof i16.DropHintTemplateDirective, typeof i17.DropHintComponent, typeof i18.DragAndDropEditingDirective, typeof i19.LoadMoreDirective, typeof i20.LoadMoreButtonTemplateDirective]>;
|
|
35
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
36
37
|
}
|
|
@@ -14,6 +14,7 @@ import { CheckedState } from './checkbox/checked-state';
|
|
|
14
14
|
import { Observable } from 'rxjs';
|
|
15
15
|
import { DataChangeNotificationService } from './data-change-notification.service';
|
|
16
16
|
import { TreeViewSize } from './size';
|
|
17
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
/**
|
|
19
20
|
* @hidden
|
|
@@ -27,6 +28,14 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
27
28
|
protected nodeChildrenService: NodeChildrenService;
|
|
28
29
|
protected dataChangeNotification: DataChangeNotificationService;
|
|
29
30
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
caretAltDownIcon: SVGIcon;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
caretAltRightIcon: SVGIcon;
|
|
30
39
|
kGroupClass: boolean;
|
|
31
40
|
role: string;
|
|
32
41
|
checkboxes: boolean;
|
|
@@ -49,6 +58,8 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
49
58
|
initialNodesLoaded: boolean;
|
|
50
59
|
loadingMoreNodes: boolean;
|
|
51
60
|
isItemExpandable: (node: any, index: any) => boolean;
|
|
61
|
+
getFontIcon(node: any, index: any): string;
|
|
62
|
+
getSvgIcon(node: any, index: any): SVGIcon;
|
|
52
63
|
get moreNodesAvailable(): boolean;
|
|
53
64
|
get pageSize(): number;
|
|
54
65
|
set pageSize(pageSize: number);
|
package/treeview.component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { LoadMoreService } from './load-more/load-more.service';
|
|
|
22
22
|
import { TreeItemDropEvent, TreeItemAddRemoveArgs, EditService, TreeItemDragEvent, TreeItemDragStartEvent } from './drag-and-drop/models';
|
|
23
23
|
import { FilterState } from './filter-state.interface';
|
|
24
24
|
import { TreeViewSize } from './size';
|
|
25
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
/**
|
|
27
28
|
* Represents the [Kendo UI TreeView component for Angular]({% slug overview_treeview %}).
|
|
@@ -45,6 +46,10 @@ export declare class TreeViewComponent implements OnChanges, OnInit, OnDestroy,
|
|
|
45
46
|
private renderer;
|
|
46
47
|
private dataChangeNotification;
|
|
47
48
|
private localization;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
searchIcon: SVGIcon;
|
|
48
53
|
classNames: boolean;
|
|
49
54
|
role: string;
|
|
50
55
|
/** @hidden */
|