@progress/kendo-angular-treeview 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/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 +2 -2
- package/esm2020/shared.module.mjs +7 -3
- package/esm2020/treeview-group.component.mjs +37 -23
- package/esm2020/treeview.component.mjs +22 -6
- package/fesm2015/progress-kendo-angular-treeview.mjs +90 -38
- package/fesm2020/progress-kendo-angular-treeview.mjs +90 -38
- package/package.json +9 -8
- package/schematics/ngAdd/index.js +7 -5
- package/shared.module.d.ts +2 -1
- package/treeview-group.component.d.ts +11 -0
- package/treeview.component.d.ts +6 -1
|
@@ -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,8 +28,8 @@ const packageMetadata = {
|
|
|
25
28
|
name: '@progress/kendo-angular-treeview',
|
|
26
29
|
productName: 'Kendo UI for Angular',
|
|
27
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
28
|
-
publishDate:
|
|
29
|
-
version: '',
|
|
31
|
+
publishDate: 1674032380,
|
|
32
|
+
version: '11.0.0',
|
|
30
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
31
34
|
};
|
|
32
35
|
|
|
@@ -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;
|
|
@@ -1756,7 +1773,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1756
1773
|
<li
|
|
1757
1774
|
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
1758
1775
|
class="k-treeview-item"
|
|
1759
|
-
[class.k-
|
|
1776
|
+
[class.k-hidden]="!isVisible(node, nodeIndex(index))"
|
|
1760
1777
|
kendoTreeViewItem
|
|
1761
1778
|
[attr.aria-setsize]="totalNodesCount"
|
|
1762
1779
|
[dataItem]="node"
|
|
@@ -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 }),
|
|
@@ -1934,7 +1950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1934
1950
|
<li
|
|
1935
1951
|
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
1936
1952
|
class="k-treeview-item"
|
|
1937
|
-
[class.k-
|
|
1953
|
+
[class.k-hidden]="!isVisible(node, nodeIndex(index))"
|
|
1938
1954
|
kendoTreeViewItem
|
|
1939
1955
|
[attr.aria-setsize]="totalNodesCount"
|
|
1940
1956
|
[dataItem]="node"
|
|
@@ -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
|
/**
|
|
@@ -2307,7 +2326,7 @@ class TreeViewComponent {
|
|
|
2307
2326
|
*/
|
|
2308
2327
|
this.isDisabled = isDisabled;
|
|
2309
2328
|
/**
|
|
2310
|
-
* A callback which determines whether a TreeView node should be rendered as hidden. The utility .k-
|
|
2329
|
+
* A callback which determines whether a TreeView node should be rendered as hidden. The utility .k-hidden class is used to hide the nodes.
|
|
2311
2330
|
* Useful for custom filtering implementations.
|
|
2312
2331
|
*/
|
|
2313
2332
|
this.isVisible = isVisible;
|
|
@@ -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,8 +28,8 @@ const packageMetadata = {
|
|
|
25
28
|
name: '@progress/kendo-angular-treeview',
|
|
26
29
|
productName: 'Kendo UI for Angular',
|
|
27
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
28
|
-
publishDate:
|
|
29
|
-
version: '',
|
|
31
|
+
publishDate: 1674032380,
|
|
32
|
+
version: '11.0.0',
|
|
30
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
31
34
|
};
|
|
32
35
|
|
|
@@ -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;
|
|
@@ -1752,7 +1769,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1752
1769
|
<li
|
|
1753
1770
|
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
1754
1771
|
class="k-treeview-item"
|
|
1755
|
-
[class.k-
|
|
1772
|
+
[class.k-hidden]="!isVisible(node, nodeIndex(index))"
|
|
1756
1773
|
kendoTreeViewItem
|
|
1757
1774
|
[attr.aria-setsize]="totalNodesCount"
|
|
1758
1775
|
[dataItem]="node"
|
|
@@ -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 }),
|
|
@@ -1930,7 +1946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1930
1946
|
<li
|
|
1931
1947
|
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
1932
1948
|
class="k-treeview-item"
|
|
1933
|
-
[class.k-
|
|
1949
|
+
[class.k-hidden]="!isVisible(node, nodeIndex(index))"
|
|
1934
1950
|
kendoTreeViewItem
|
|
1935
1951
|
[attr.aria-setsize]="totalNodesCount"
|
|
1936
1952
|
[dataItem]="node"
|
|
@@ -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
|
/**
|
|
@@ -2303,7 +2322,7 @@ class TreeViewComponent {
|
|
|
2303
2322
|
*/
|
|
2304
2323
|
this.isDisabled = isDisabled;
|
|
2305
2324
|
/**
|
|
2306
|
-
* A callback which determines whether a TreeView node should be rendered as hidden. The utility .k-
|
|
2325
|
+
* A callback which determines whether a TreeView node should be rendered as hidden. The utility .k-hidden class is used to hide the nodes.
|
|
2307
2326
|
* Useful for custom filtering implementations.
|
|
2308
2327
|
*/
|
|
2309
2328
|
this.isVisible = isVisible;
|
|
@@ -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,
|