@progress/kendo-angular-treeview 22.1.0-develop.13 → 22.1.0-develop.14
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/fesm2022/progress-kendo-angular-treeview.mjs +43 -52
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/schematics/ngAdd/index.js +4 -4
- package/treeview-group.component.d.ts +1 -4
- package/{treeview-item-content.directive.d.ts → treeview-item-content-wrapper.directive.d.ts} +4 -4
|
@@ -14,7 +14,7 @@ import { caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, searchIcon, canc
|
|
|
14
14
|
import { CheckBoxComponent, TextBoxComponent, TextBoxPrefixTemplateDirective } from '@progress/kendo-angular-inputs';
|
|
15
15
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
16
16
|
import { filter, tap, switchMap, delay, takeUntil, catchError, finalize, take, map } from 'rxjs/operators';
|
|
17
|
-
import {
|
|
17
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
18
18
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
19
19
|
import { Draggable } from '@progress/kendo-draggable';
|
|
20
20
|
import { DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
@@ -29,7 +29,7 @@ const packageMetadata = {
|
|
|
29
29
|
productCode: 'KENDOUIANGULAR',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR'],
|
|
31
31
|
publishDate: 0,
|
|
32
|
-
version: '22.1.0-develop.
|
|
32
|
+
version: '22.1.0-develop.14',
|
|
33
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -1049,9 +1049,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1049
1049
|
/**
|
|
1050
1050
|
* @hidden
|
|
1051
1051
|
*
|
|
1052
|
-
* A directive which manages the
|
|
1052
|
+
* A directive which manages the states of the TreeView items.
|
|
1053
1053
|
*/
|
|
1054
|
-
class
|
|
1054
|
+
class TreeViewItemContentWrapperDirective {
|
|
1055
1055
|
element;
|
|
1056
1056
|
navigationService;
|
|
1057
1057
|
selectionService;
|
|
@@ -1097,13 +1097,13 @@ class TreeViewItemContentDirective {
|
|
|
1097
1097
|
const action = addClass ? 'addClass' : 'removeClass';
|
|
1098
1098
|
this.renderer[action](this.element.nativeElement, className);
|
|
1099
1099
|
}
|
|
1100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
1101
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
1100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TreeViewItemContentWrapperDirective, deps: [{ token: i0.ElementRef }, { token: NavigationService }, { token: SelectionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1101
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TreeViewItemContentWrapperDirective, isStandalone: true, selector: "[kendoTreeViewItemContentWrapper]", inputs: { dataItem: "dataItem", index: "index", initialSelection: "initialSelection", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
|
|
1102
1102
|
}
|
|
1103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
1103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TreeViewItemContentWrapperDirective, decorators: [{
|
|
1104
1104
|
type: Directive,
|
|
1105
1105
|
args: [{
|
|
1106
|
-
selector: '[
|
|
1106
|
+
selector: '[kendoTreeViewItemContentWrapper]',
|
|
1107
1107
|
standalone: true
|
|
1108
1108
|
}]
|
|
1109
1109
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: NavigationService }, { type: SelectionService }, { type: i0.Renderer2 }], propDecorators: { dataItem: [{
|
|
@@ -1346,6 +1346,8 @@ class TreeViewItemDirective {
|
|
|
1346
1346
|
service.updateItem(this.index, this.isDisabled, this.isVisible);
|
|
1347
1347
|
}
|
|
1348
1348
|
setAriaAttributes() {
|
|
1349
|
+
// using renderer.setStyle is not suitable here as it does not add custom styles such as --kendo-treeview-level
|
|
1350
|
+
this.element.nativeElement.style?.setProperty('--kendo-treeview-level', this.ib.level(this.index).toString());
|
|
1349
1351
|
this.setAttribute('aria-level', this.ib.level(this.index).toString());
|
|
1350
1352
|
// don't render attributes when the component configuration doesn't allow the specified state
|
|
1351
1353
|
this.setAttribute('aria-expanded', this.expandable ? this.isExpanded.toString() : null);
|
|
@@ -1401,9 +1403,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1401
1403
|
type: Input
|
|
1402
1404
|
}] } });
|
|
1403
1405
|
|
|
1404
|
-
const TOP_ITEM = 'k-treeview-top';
|
|
1405
|
-
const MID_ITEM = 'k-treeview-mid';
|
|
1406
|
-
const BOT_ITEM = 'k-treeview-bot';
|
|
1407
1406
|
/**
|
|
1408
1407
|
* @hidden
|
|
1409
1408
|
*/
|
|
@@ -1458,6 +1457,9 @@ class TreeViewGroupComponent {
|
|
|
1458
1457
|
initialNodesLoaded = false;
|
|
1459
1458
|
loadingMoreNodes = false;
|
|
1460
1459
|
isItemExpandable = (node, index) => this.expandDisabledNodes || !this.isItemDisabled(node, index);
|
|
1460
|
+
isContentDisabled(node, index) {
|
|
1461
|
+
return this.expandIcons && this.hasChildren(node) ? !this.isItemExpandable(node, index) : this.isItemDisabled(node, index);
|
|
1462
|
+
}
|
|
1461
1463
|
getFontIcon(node, index) {
|
|
1462
1464
|
return this.isExpanded(node, index) ? 'caret-alt-down' : !this.localization.rtl ? 'caret-alt-right' : 'caret-alt-left';
|
|
1463
1465
|
}
|
|
@@ -1626,21 +1628,6 @@ class TreeViewGroupComponent {
|
|
|
1626
1628
|
isItemDisabled(node, index) {
|
|
1627
1629
|
return (this.disabled && !this.disableParentNodesOnly) || this.isDisabled(node, this.nodeIndex(index));
|
|
1628
1630
|
}
|
|
1629
|
-
/**
|
|
1630
|
-
* @hidden
|
|
1631
|
-
*/
|
|
1632
|
-
setItemClasses(dataLength, index) {
|
|
1633
|
-
if (dataLength === 1) {
|
|
1634
|
-
return this.parentIndex ? BOT_ITEM : `${TOP_ITEM} ${BOT_ITEM}`;
|
|
1635
|
-
}
|
|
1636
|
-
if (index === 0) {
|
|
1637
|
-
return TOP_ITEM;
|
|
1638
|
-
}
|
|
1639
|
-
if (index > 0 && index < dataLength - 1) {
|
|
1640
|
-
return MID_ITEM;
|
|
1641
|
-
}
|
|
1642
|
-
return index === this.totalNodesCount - 1 ? BOT_ITEM : MID_ITEM;
|
|
1643
|
-
}
|
|
1644
1631
|
loadMoreLocalNodes() {
|
|
1645
1632
|
const initialLoadMoreButtonIndex = this.loadMoreButtonIndex;
|
|
1646
1633
|
this.pageSize += this.loadMoreService.getInitialPageSize(this.parentDataItem);
|
|
@@ -1743,10 +1730,16 @@ class TreeViewGroupComponent {
|
|
|
1743
1730
|
[isSelected]="isSelected(node, nodeIndex(index))"
|
|
1744
1731
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
1745
1732
|
>
|
|
1746
|
-
|
|
1733
|
+
|
|
1734
|
+
<div kendoTreeViewItemContentWrapper
|
|
1735
|
+
[dataItem]="node"
|
|
1736
|
+
[index]="nodeIndex(index)"
|
|
1737
|
+
[initialSelection]="isSelected(node, nodeIndex(index))"
|
|
1738
|
+
[isSelected]="isSelected"
|
|
1739
|
+
class="k-treeview-item-content"
|
|
1740
|
+
[class.k-disabled]="isContentDisabled(node, index)">
|
|
1747
1741
|
@if (expandIcons && hasChildren(node)) {
|
|
1748
1742
|
<span
|
|
1749
|
-
[class.k-disabled]="!isItemExpandable(node, index)"
|
|
1750
1743
|
class="k-treeview-toggle"
|
|
1751
1744
|
[kendoTreeViewLoading]="nodeIndex(index)"
|
|
1752
1745
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
@@ -1768,16 +1761,11 @@ class TreeViewGroupComponent {
|
|
|
1768
1761
|
[inputAttributes]="getCheckboxAttributes(index)"
|
|
1769
1762
|
></kendo-checkbox>
|
|
1770
1763
|
}
|
|
1771
|
-
<span
|
|
1764
|
+
<span
|
|
1772
1765
|
[id]="nodeIndex(index)"
|
|
1773
1766
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
1774
|
-
[dataItem]="node"
|
|
1775
|
-
[index]="nodeIndex(index)"
|
|
1776
|
-
[initialSelection]="isSelected(node, nodeIndex(index))"
|
|
1777
|
-
[isSelected]="isSelected"
|
|
1778
1767
|
class="k-treeview-leaf"
|
|
1779
1768
|
[style.touch-action]="touchActions ? '' : 'none'"
|
|
1780
|
-
[class.k-disabled]="isItemDisabled(node, index)"
|
|
1781
1769
|
>
|
|
1782
1770
|
<span class="k-treeview-leaf-text">
|
|
1783
1771
|
@switch (hasTemplate) {
|
|
@@ -1847,7 +1835,10 @@ class TreeViewGroupComponent {
|
|
|
1847
1835
|
[parentIndex]="parentIndex"
|
|
1848
1836
|
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
1849
1837
|
>
|
|
1850
|
-
<div
|
|
1838
|
+
<div
|
|
1839
|
+
kendoTreeViewItemContentWrapper
|
|
1840
|
+
[index]="loadMoreButtonIndex"
|
|
1841
|
+
class="k-treeview-item-content">
|
|
1851
1842
|
@if (loadingMoreNodes) {
|
|
1852
1843
|
<span
|
|
1853
1844
|
class="k-icon k-i-loading"
|
|
@@ -1857,8 +1848,6 @@ class TreeViewGroupComponent {
|
|
|
1857
1848
|
<span
|
|
1858
1849
|
class="k-treeview-leaf k-treeview-load-more-button"
|
|
1859
1850
|
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
1860
|
-
kendoTreeViewItemContent
|
|
1861
|
-
[index]="loadMoreButtonIndex"
|
|
1862
1851
|
>
|
|
1863
1852
|
<span class="k-treeview-leaf-text">
|
|
1864
1853
|
@if (loadMoreButtonTemplateRef) {
|
|
@@ -1878,7 +1867,7 @@ class TreeViewGroupComponent {
|
|
|
1878
1867
|
</div>
|
|
1879
1868
|
</li>
|
|
1880
1869
|
}
|
|
1881
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }, { kind: "directive", type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { kind: "directive", type:
|
|
1870
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "disableParentNodesOnly", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "expandDisabledNodes", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }, { kind: "directive", type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { kind: "directive", type: LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "directive", type: TreeViewItemContentWrapperDirective, selector: "[kendoTreeViewItemContentWrapper]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
1882
1871
|
trigger('toggle', [
|
|
1883
1872
|
transition('void => *', [
|
|
1884
1873
|
style({ height: 0 }),
|
|
@@ -1930,10 +1919,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1930
1919
|
[isSelected]="isSelected(node, nodeIndex(index))"
|
|
1931
1920
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
1932
1921
|
>
|
|
1933
|
-
|
|
1922
|
+
|
|
1923
|
+
<div kendoTreeViewItemContentWrapper
|
|
1924
|
+
[dataItem]="node"
|
|
1925
|
+
[index]="nodeIndex(index)"
|
|
1926
|
+
[initialSelection]="isSelected(node, nodeIndex(index))"
|
|
1927
|
+
[isSelected]="isSelected"
|
|
1928
|
+
class="k-treeview-item-content"
|
|
1929
|
+
[class.k-disabled]="isContentDisabled(node, index)">
|
|
1934
1930
|
@if (expandIcons && hasChildren(node)) {
|
|
1935
1931
|
<span
|
|
1936
|
-
[class.k-disabled]="!isItemExpandable(node, index)"
|
|
1937
1932
|
class="k-treeview-toggle"
|
|
1938
1933
|
[kendoTreeViewLoading]="nodeIndex(index)"
|
|
1939
1934
|
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
@@ -1955,16 +1950,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1955
1950
|
[inputAttributes]="getCheckboxAttributes(index)"
|
|
1956
1951
|
></kendo-checkbox>
|
|
1957
1952
|
}
|
|
1958
|
-
<span
|
|
1953
|
+
<span
|
|
1959
1954
|
[id]="nodeIndex(index)"
|
|
1960
1955
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
1961
|
-
[dataItem]="node"
|
|
1962
|
-
[index]="nodeIndex(index)"
|
|
1963
|
-
[initialSelection]="isSelected(node, nodeIndex(index))"
|
|
1964
|
-
[isSelected]="isSelected"
|
|
1965
1956
|
class="k-treeview-leaf"
|
|
1966
1957
|
[style.touch-action]="touchActions ? '' : 'none'"
|
|
1967
|
-
[class.k-disabled]="isItemDisabled(node, index)"
|
|
1968
1958
|
>
|
|
1969
1959
|
<span class="k-treeview-leaf-text">
|
|
1970
1960
|
@switch (hasTemplate) {
|
|
@@ -2034,7 +2024,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2034
2024
|
[parentIndex]="parentIndex"
|
|
2035
2025
|
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
2036
2026
|
>
|
|
2037
|
-
<div
|
|
2027
|
+
<div
|
|
2028
|
+
kendoTreeViewItemContentWrapper
|
|
2029
|
+
[index]="loadMoreButtonIndex"
|
|
2030
|
+
class="k-treeview-item-content">
|
|
2038
2031
|
@if (loadingMoreNodes) {
|
|
2039
2032
|
<span
|
|
2040
2033
|
class="k-icon k-i-loading"
|
|
@@ -2044,8 +2037,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2044
2037
|
<span
|
|
2045
2038
|
class="k-treeview-leaf k-treeview-load-more-button"
|
|
2046
2039
|
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
2047
|
-
kendoTreeViewItemContent
|
|
2048
|
-
[index]="loadMoreButtonIndex"
|
|
2049
2040
|
>
|
|
2050
2041
|
<span class="k-treeview-leaf-text">
|
|
2051
2042
|
@if (loadMoreButtonTemplateRef) {
|
|
@@ -2067,7 +2058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2067
2058
|
}
|
|
2068
2059
|
`,
|
|
2069
2060
|
standalone: true,
|
|
2070
|
-
imports: [TreeViewItemDirective,
|
|
2061
|
+
imports: [TreeViewItemDirective, LoadingIndicatorDirective, IconWrapperComponent, CheckBoxComponent, TreeViewItemContentWrapperDirective, NgTemplateOutlet]
|
|
2071
2062
|
}]
|
|
2072
2063
|
}], ctorParameters: () => [{ type: ExpandStateService }, { type: LoadingNotificationService }, { type: IndexBuilderService }, { type: TreeViewLookupService }, { type: NavigationService }, { type: NodeChildrenService }, { type: DataChangeNotificationService }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }, { type: i0.Renderer2 }], propDecorators: { kGroupClass: [{
|
|
2073
2064
|
type: HostBinding,
|
|
@@ -3910,7 +3901,7 @@ const getDropPosition = (draggedItem, target, clientY, targetTreeView, container
|
|
|
3910
3901
|
return;
|
|
3911
3902
|
}
|
|
3912
3903
|
// the .k-treeview-mid element starts just after the checkbox/expand arrow and stretches till the end of the treeview on the right
|
|
3913
|
-
const item = closestWithMatch(target, '.k-treeview-
|
|
3904
|
+
const item = closestWithMatch(target, '.k-treeview-item-content');
|
|
3914
3905
|
if (!isPresent(item)) {
|
|
3915
3906
|
return;
|
|
3916
3907
|
}
|
|
@@ -4543,7 +4534,7 @@ class DragAndDropDirective {
|
|
|
4543
4534
|
}
|
|
4544
4535
|
const targetTreeView = this.getTargetTreeView(dropTarget);
|
|
4545
4536
|
const dropPosition = getDropPosition(this.draggedItem, dropTarget, clientY, targetTreeView, this.containerOffset);
|
|
4546
|
-
const dropHintAnchor = closestWithMatch(dropTarget, '.k-treeview-
|
|
4537
|
+
const dropHintAnchor = closestWithMatch(dropTarget, '.k-treeview-item-content');
|
|
4547
4538
|
const dropAction = getDropAction(dropPosition, dropTarget);
|
|
4548
4539
|
const sourceItem = treeItemFromEventTarget(this.treeview, this.draggedItem);
|
|
4549
4540
|
const destinationItem = treeItemFromEventTarget(targetTreeView, dropTarget);
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "22.1.0-develop.
|
|
10
|
+
"publishDate": 1770038062,
|
|
11
|
+
"version": "22.1.0-develop.14",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treeview",
|
|
3
|
-
"version": "22.1.0-develop.
|
|
3
|
+
"version": "22.1.0-develop.14",
|
|
4
4
|
"description": "Kendo UI TreeView for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1770038062,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"@angular/core": "19 - 21",
|
|
30
30
|
"@angular/platform-browser": "19 - 21",
|
|
31
31
|
"@progress/kendo-licensing": "^1.10.0",
|
|
32
|
-
"@progress/kendo-angular-common": "22.1.0-develop.
|
|
33
|
-
"@progress/kendo-angular-inputs": "22.1.0-develop.
|
|
34
|
-
"@progress/kendo-angular-icons": "22.1.0-develop.
|
|
35
|
-
"@progress/kendo-angular-l10n": "22.1.0-develop.
|
|
32
|
+
"@progress/kendo-angular-common": "22.1.0-develop.14",
|
|
33
|
+
"@progress/kendo-angular-inputs": "22.1.0-develop.14",
|
|
34
|
+
"@progress/kendo-angular-icons": "22.1.0-develop.14",
|
|
35
|
+
"@progress/kendo-angular-l10n": "22.1.0-develop.14",
|
|
36
36
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"tslib": "^2.3.1",
|
|
40
|
-
"@progress/kendo-angular-schematics": "22.1.0-develop.
|
|
40
|
+
"@progress/kendo-angular-schematics": "22.1.0-develop.14",
|
|
41
41
|
"@progress/kendo-common": "^1.0.1",
|
|
42
42
|
"@progress/kendo-draggable": "^3.0.2"
|
|
43
43
|
},
|
|
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeViewModule', package: 'treeview', peerDependencies: {
|
|
11
11
|
// Peers of kendo-angular-inputs
|
|
12
|
-
'@progress/kendo-angular-buttons': '22.1.0-develop.
|
|
13
|
-
'@progress/kendo-angular-dialog': '22.1.0-develop.
|
|
14
|
-
'@progress/kendo-angular-intl': '22.1.0-develop.
|
|
15
|
-
'@progress/kendo-angular-popup': '22.1.0-develop.
|
|
12
|
+
'@progress/kendo-angular-buttons': '22.1.0-develop.14',
|
|
13
|
+
'@progress/kendo-angular-dialog': '22.1.0-develop.14',
|
|
14
|
+
'@progress/kendo-angular-intl': '22.1.0-develop.14',
|
|
15
|
+
'@progress/kendo-angular-popup': '22.1.0-develop.14',
|
|
16
16
|
'@progress/kendo-drawing': '^1.9.3',
|
|
17
17
|
// Peer dependency of icons
|
|
18
18
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
@@ -70,6 +70,7 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
70
70
|
initialNodesLoaded: boolean;
|
|
71
71
|
loadingMoreNodes: boolean;
|
|
72
72
|
isItemExpandable: (node: any, index: any) => boolean;
|
|
73
|
+
isContentDisabled(node: any, index: any): boolean;
|
|
73
74
|
getFontIcon(node: any, index: any): string;
|
|
74
75
|
getSvgIcon(node: any, index: any): SVGIcon;
|
|
75
76
|
get moreNodesAvailable(): boolean;
|
|
@@ -116,10 +117,6 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
116
117
|
* @hidden
|
|
117
118
|
*/
|
|
118
119
|
isItemDisabled(node: any, index: any): boolean;
|
|
119
|
-
/**
|
|
120
|
-
* @hidden
|
|
121
|
-
*/
|
|
122
|
-
setItemClasses(dataLength: number, index: any): string;
|
|
123
120
|
private loadMoreLocalNodes;
|
|
124
121
|
private fetchMoreNodes;
|
|
125
122
|
private setNodeChildren;
|
package/{treeview-item-content.directive.d.ts → treeview-item-content-wrapper.directive.d.ts}
RENAMED
|
@@ -9,9 +9,9 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*
|
|
12
|
-
* A directive which manages the
|
|
12
|
+
* A directive which manages the states of the TreeView items.
|
|
13
13
|
*/
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class TreeViewItemContentWrapperDirective implements OnChanges, OnDestroy {
|
|
15
15
|
private element;
|
|
16
16
|
private navigationService;
|
|
17
17
|
private selectionService;
|
|
@@ -27,6 +27,6 @@ export declare class TreeViewItemContentDirective implements OnChanges, OnDestro
|
|
|
27
27
|
private updateFocusClass;
|
|
28
28
|
private updateSelectionClass;
|
|
29
29
|
private render;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewItemContentWrapperDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeViewItemContentWrapperDirective, "[kendoTreeViewItemContentWrapper]", never, { "dataItem": { "alias": "dataItem"; "required": false; }; "index": { "alias": "index"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
32
|
}
|