@progress/kendo-angular-treeview 16.5.0 → 16.6.0-develop.1

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.
Files changed (57) hide show
  1. package/check.directive.d.ts +1 -1
  2. package/directives.d.ts +23 -0
  3. package/disable.directive.d.ts +1 -1
  4. package/drag-and-drop/drag-and-drop-editing.directive.d.ts +1 -1
  5. package/drag-and-drop/drag-and-drop.directive.d.ts +1 -1
  6. package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +1 -1
  7. package/drag-and-drop/drag-clue/drag-clue.component.d.ts +1 -1
  8. package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +1 -1
  9. package/drag-and-drop/drop-hint/drop-hint.component.d.ts +1 -1
  10. package/esm2020/check.directive.mjs +5 -2
  11. package/esm2020/directives.mjs +39 -0
  12. package/esm2020/disable.directive.mjs +5 -2
  13. package/esm2020/drag-and-drop/drag-and-drop-editing.directive.mjs +3 -2
  14. package/esm2020/drag-and-drop/drag-and-drop.directive.mjs +3 -2
  15. package/esm2020/drag-and-drop/drag-clue/drag-clue-template.directive.mjs +3 -2
  16. package/esm2020/drag-and-drop/drag-clue/drag-clue.component.mjs +7 -5
  17. package/esm2020/drag-and-drop/drop-hint/drop-hint-template.directive.mjs +3 -2
  18. package/esm2020/drag-and-drop/drop-hint/drop-hint.component.mjs +6 -4
  19. package/esm2020/expand.directive.mjs +5 -2
  20. package/esm2020/flat-binding.directive.mjs +5 -2
  21. package/esm2020/hierarchy-binding.directive.mjs +5 -2
  22. package/esm2020/index.mjs +1 -0
  23. package/esm2020/load-more/load-more-button-template.directive.mjs +3 -2
  24. package/esm2020/load-more/load-more.directive.mjs +3 -2
  25. package/esm2020/loading-indicator.directive.mjs +5 -2
  26. package/esm2020/localization/custom-messages.component.mjs +3 -2
  27. package/esm2020/localization/localized-messages.directive.mjs +3 -2
  28. package/esm2020/node-template.directive.mjs +3 -2
  29. package/esm2020/package-metadata.mjs +2 -2
  30. package/esm2020/selection/select.directive.mjs +5 -2
  31. package/esm2020/treeview-group.component.mjs +11 -9
  32. package/esm2020/treeview-item-content.directive.mjs +5 -2
  33. package/esm2020/treeview-item.directive.mjs +5 -2
  34. package/esm2020/treeview.component.mjs +10 -9
  35. package/esm2020/treeview.module.mjs +42 -54
  36. package/expand.directive.d.ts +1 -1
  37. package/fesm2015/progress-kendo-angular-treeview.mjs +1326 -1372
  38. package/fesm2020/progress-kendo-angular-treeview.mjs +1174 -1220
  39. package/flat-binding.directive.d.ts +1 -1
  40. package/hierarchy-binding.directive.d.ts +1 -1
  41. package/index.d.ts +1 -0
  42. package/load-more/load-more-button-template.directive.d.ts +1 -1
  43. package/load-more/load-more.directive.d.ts +1 -1
  44. package/loading-indicator.directive.d.ts +1 -1
  45. package/localization/custom-messages.component.d.ts +1 -1
  46. package/localization/localized-messages.directive.d.ts +1 -1
  47. package/node-template.directive.d.ts +1 -1
  48. package/package.json +6 -6
  49. package/schematics/ngAdd/index.js +4 -4
  50. package/selection/select.directive.d.ts +1 -1
  51. package/treeview-group.component.d.ts +1 -1
  52. package/treeview-item-content.directive.d.ts +1 -1
  53. package/treeview-item.directive.d.ts +1 -1
  54. package/treeview.component.d.ts +1 -1
  55. package/treeview.module.d.ts +16 -18
  56. package/esm2020/shared.module.mjs +0 -125
  57. package/shared.module.d.ts +0 -38
@@ -17,6 +17,12 @@ import { catchError, tap, finalize, filter } from 'rxjs/operators';
17
17
  import { DataChangeNotificationService } from './data-change-notification.service';
18
18
  import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
19
19
  import { LocalizationService } from '@progress/kendo-angular-l10n';
20
+ import { TreeViewItemContentDirective } from './treeview-item-content.directive';
21
+ import { LoadingIndicatorDirective } from './loading-indicator.directive';
22
+ import { TreeViewItemDirective } from './treeview-item.directive';
23
+ import { NgFor, NgClass, NgIf, NgSwitch, NgSwitchCase, NgTemplateOutlet, NgSwitchDefault } from '@angular/common';
24
+ import { IconWrapperComponent } from '@progress/kendo-angular-icons';
25
+ import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
20
26
  import * as i0 from "@angular/core";
21
27
  import * as i1 from "./expand-state.service";
22
28
  import * as i2 from "./loading-notification.service";
@@ -26,12 +32,6 @@ import * as i5 from "./navigation/navigation.service";
26
32
  import * as i6 from "./node-children.service";
27
33
  import * as i7 from "./data-change-notification.service";
28
34
  import * as i8 from "@progress/kendo-angular-l10n";
29
- import * as i9 from "@angular/common";
30
- import * as i10 from "@progress/kendo-angular-inputs";
31
- import * as i11 from "@progress/kendo-angular-icons";
32
- import * as i12 from "./treeview-item.directive";
33
- import * as i13 from "./treeview-item-content.directive";
34
- import * as i14 from "./loading-indicator.directive";
35
35
  const TOP_ITEM = 'k-treeview-top';
36
36
  const MID_ITEM = 'k-treeview-mid';
37
37
  const BOT_ITEM = 'k-treeview-bot';
@@ -319,7 +319,7 @@ export class TreeViewGroupComponent {
319
319
  }
320
320
  }
321
321
  TreeViewGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewGroupComponent, deps: [{ token: i1.ExpandStateService }, { token: i2.LoadingNotificationService }, { token: i3.IndexBuilderService }, { token: i4.TreeViewLookupService }, { token: i5.NavigationService }, { token: i6.NodeChildrenService }, { token: i7.DataChangeNotificationService }, { token: i0.ChangeDetectorRef }, { token: i8.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
322
- TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: { checkboxes: "checkboxes", expandIcons: "expandIcons", disabled: "disabled", selectable: "selectable", touchActions: "touchActions", disableParentNodesOnly: "disableParentNodesOnly", loadOnDemand: "loadOnDemand", trackBy: "trackBy", nodes: "nodes", textField: "textField", parentDataItem: "parentDataItem", parentIndex: "parentIndex", nodeTemplateRef: "nodeTemplateRef", loadMoreButtonTemplateRef: "loadMoreButtonTemplateRef", loadMoreService: "loadMoreService", size: "size", expandDisabledNodes: "expandDisabledNodes", isChecked: "isChecked", isDisabled: "isDisabled", hasCheckbox: "hasCheckbox", isExpanded: "isExpanded", isVisible: "isVisible", isSelected: "isSelected", children: "children", hasChildren: "hasChildren" }, host: { properties: { "class.k-treeview-group": "this.kGroupClass", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: `
322
+ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewGroupComponent, isStandalone: true, selector: "[kendoTreeViewGroup]", inputs: { checkboxes: "checkboxes", expandIcons: "expandIcons", disabled: "disabled", selectable: "selectable", touchActions: "touchActions", disableParentNodesOnly: "disableParentNodesOnly", loadOnDemand: "loadOnDemand", trackBy: "trackBy", nodes: "nodes", textField: "textField", parentDataItem: "parentDataItem", parentIndex: "parentIndex", nodeTemplateRef: "nodeTemplateRef", loadMoreButtonTemplateRef: "loadMoreButtonTemplateRef", loadMoreService: "loadMoreService", size: "size", expandDisabledNodes: "expandDisabledNodes", isChecked: "isChecked", isDisabled: "isDisabled", hasCheckbox: "hasCheckbox", isExpanded: "isExpanded", isVisible: "isVisible", isSelected: "isSelected", children: "children", hasChildren: "hasChildren" }, host: { properties: { "class.k-treeview-group": "this.kGroupClass", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: `
323
323
  <li
324
324
  *ngFor="let node of data; let index = index; trackBy: trackBy"
325
325
  class="k-treeview-item"
@@ -468,7 +468,7 @@ TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
468
468
  </span>
469
469
  </div>
470
470
  </li>
471
- `, isInline: true, dependencies: [{ kind: "directive", type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i9.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i10.CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "component", type: i11.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { 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: i12.TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { kind: "directive", type: i13.TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { kind: "directive", type: i14.LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }], animations: [
471
+ `, 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: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], animations: [
472
472
  trigger('toggle', [
473
473
  transition('void => *', [
474
474
  style({ height: 0 }),
@@ -646,7 +646,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
646
646
  </span>
647
647
  </div>
648
648
  </li>
649
- `
649
+ `,
650
+ standalone: true,
651
+ imports: [NgFor, TreeViewItemDirective, NgClass, NgIf, LoadingIndicatorDirective, IconWrapperComponent, CheckBoxComponent, TreeViewItemContentDirective, NgSwitch, NgSwitchCase, NgTemplateOutlet, NgSwitchDefault]
650
652
  }]
651
653
  }], ctorParameters: function () { return [{ type: i1.ExpandStateService }, { type: i2.LoadingNotificationService }, { type: i3.IndexBuilderService }, { type: i4.TreeViewLookupService }, { type: i5.NavigationService }, { type: i6.NodeChildrenService }, { type: i7.DataChangeNotificationService }, { type: i0.ChangeDetectorRef }, { type: i8.LocalizationService }]; }, propDecorators: { kGroupClass: [{
652
654
  type: HostBinding,
@@ -58,10 +58,13 @@ export class TreeViewItemContentDirective {
58
58
  }
59
59
  }
60
60
  TreeViewItemContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewItemContentDirective, deps: [{ token: i0.ElementRef }, { token: i1.NavigationService }, { token: i2.SelectionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
61
- TreeViewItemContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: { dataItem: "dataItem", index: "index", initialSelection: "initialSelection", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
61
+ TreeViewItemContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewItemContentDirective, isStandalone: true, selector: "[kendoTreeViewItemContent]", inputs: { dataItem: "dataItem", index: "index", initialSelection: "initialSelection", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
62
62
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewItemContentDirective, decorators: [{
63
63
  type: Directive,
64
- args: [{ selector: '[kendoTreeViewItemContent]' }]
64
+ args: [{
65
+ selector: '[kendoTreeViewItemContent]',
66
+ standalone: true
67
+ }]
65
68
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.NavigationService }, { type: i2.SelectionService }, { type: i0.Renderer2 }]; }, propDecorators: { dataItem: [{
66
69
  type: Input
67
70
  }], index: [{
@@ -191,10 +191,13 @@ export class TreeViewItemDirective {
191
191
  }
192
192
  }
193
193
  TreeViewItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewItemDirective, deps: [{ token: i0.ElementRef }, { token: i1.ExpandStateService }, { token: i2.NavigationService }, { token: i3.SelectionService }, { token: i4.TreeViewLookupService }, { token: i0.Renderer2 }, { token: i5.IndexBuilderService }], target: i0.ɵɵFactoryTarget.Directive });
194
- TreeViewItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: { dataItem: "dataItem", index: "index", parentDataItem: "parentDataItem", parentIndex: "parentIndex", role: "role", loadOnDemand: "loadOnDemand", checkable: "checkable", selectable: "selectable", expandable: "expandable", isChecked: "isChecked", isDisabled: "isDisabled", isVisible: "isVisible", isExpanded: "isExpanded", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
194
+ TreeViewItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewItemDirective, isStandalone: true, selector: "[kendoTreeViewItem]", inputs: { dataItem: "dataItem", index: "index", parentDataItem: "parentDataItem", parentIndex: "parentIndex", role: "role", loadOnDemand: "loadOnDemand", checkable: "checkable", selectable: "selectable", expandable: "expandable", isChecked: "isChecked", isDisabled: "isDisabled", isVisible: "isVisible", isExpanded: "isExpanded", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
195
195
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewItemDirective, decorators: [{
196
196
  type: Directive,
197
- args: [{ selector: '[kendoTreeViewItem]' }]
197
+ args: [{
198
+ selector: '[kendoTreeViewItem]',
199
+ standalone: true
200
+ }]
198
201
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ExpandStateService }, { type: i2.NavigationService }, { type: i3.SelectionService }, { type: i4.TreeViewLookupService }, { type: i0.Renderer2 }, { type: i5.IndexBuilderService }]; }, propDecorators: { dataItem: [{
199
202
  type: Input
200
203
  }], index: [{
@@ -23,7 +23,11 @@ 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
25
  import { searchIcon } from '@progress/kendo-svg-icons';
26
- import { TextBoxComponent } from '@progress/kendo-angular-inputs';
26
+ import { TextBoxComponent, TextBoxPrefixTemplateDirective } from '@progress/kendo-angular-inputs';
27
+ import { TreeViewGroupComponent } from './treeview-group.component';
28
+ import { NgIf } from '@angular/common';
29
+ import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
30
+ import { IconWrapperComponent } from '@progress/kendo-angular-icons';
27
31
  import * as i0 from "@angular/core";
28
32
  import * as i1 from "./expand-state.service";
29
33
  import * as i2 from "./navigation/navigation.service";
@@ -32,11 +36,6 @@ import * as i4 from "./selection/selection.service";
32
36
  import * as i5 from "./treeview-lookup.service";
33
37
  import * as i6 from "./data-change-notification.service";
34
38
  import * as i7 from "@progress/kendo-angular-l10n";
35
- import * as i8 from "@angular/common";
36
- import * as i9 from "@progress/kendo-angular-inputs";
37
- import * as i10 from "@progress/kendo-angular-icons";
38
- import * as i11 from "./treeview-group.component";
39
- import * as i12 from "./localization/localized-messages.directive";
40
39
  let nextId = 0;
41
40
  const LOAD_MORE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/';
42
41
  const providers = [
@@ -642,7 +641,7 @@ export class TreeViewComponent {
642
641
  }
643
642
  }
644
643
  TreeViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ExpandStateService }, { token: i2.NavigationService }, { token: i3.NodeChildrenService }, { token: i4.SelectionService }, { token: i5.TreeViewLookupService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i6.DataChangeNotificationService }, { token: i7.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
645
- TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewComponent, selector: "kendo-treeview", inputs: { filterInputPlaceholder: "filterInputPlaceholder", expandDisabledNodes: "expandDisabledNodes", animate: "animate", nodeTemplateRef: ["nodeTemplate", "nodeTemplateRef"], loadMoreButtonTemplateRef: ["loadMoreButtonTemplate", "loadMoreButtonTemplateRef"], trackBy: "trackBy", nodes: "nodes", textField: "textField", hasChildren: "hasChildren", isChecked: "isChecked", isDisabled: "isDisabled", hasCheckbox: "hasCheckbox", isExpanded: "isExpanded", isSelected: "isSelected", isVisible: "isVisible", navigable: "navigable", children: "children", loadOnDemand: "loadOnDemand", filterable: "filterable", filter: "filter", size: "size", disableParentNodesOnly: "disableParentNodesOnly" }, outputs: { childrenLoaded: "childrenLoaded", onBlur: "blur", onFocus: "focus", expand: "expand", collapse: "collapse", nodeDragStart: "nodeDragStart", nodeDrag: "nodeDrag", filterStateChange: "filterStateChange", nodeDrop: "nodeDrop", nodeDragEnd: "nodeDragEnd", addItem: "addItem", removeItem: "removeItem", checkedChange: "checkedChange", selectionChange: "selectionChange", filterChange: "filterChange", nodeClick: "nodeClick", nodeDblClick: "nodeDblClick" }, host: { properties: { "class.k-treeview": "this.classNames", "attr.dir": "this.direction", "@.disabled": "this.animate" } }, providers: providers, queries: [{ propertyName: "nodeTemplateQuery", first: true, predicate: NodeTemplateDirective, descendants: true }, { propertyName: "loadMoreButtonTemplateQuery", first: true, predicate: LoadMoreButtonTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "assetsContainer", first: true, predicate: ["assetsContainer"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "searchbox", first: true, predicate: ["searchbox"], descendants: true }], exportAs: ["kendoTreeView"], usesOnChanges: true, ngImport: i0, template: `
644
+ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TreeViewComponent, isStandalone: true, selector: "kendo-treeview", inputs: { filterInputPlaceholder: "filterInputPlaceholder", expandDisabledNodes: "expandDisabledNodes", animate: "animate", nodeTemplateRef: ["nodeTemplate", "nodeTemplateRef"], loadMoreButtonTemplateRef: ["loadMoreButtonTemplate", "loadMoreButtonTemplateRef"], trackBy: "trackBy", nodes: "nodes", textField: "textField", hasChildren: "hasChildren", isChecked: "isChecked", isDisabled: "isDisabled", hasCheckbox: "hasCheckbox", isExpanded: "isExpanded", isSelected: "isSelected", isVisible: "isVisible", navigable: "navigable", children: "children", loadOnDemand: "loadOnDemand", filterable: "filterable", filter: "filter", size: "size", disableParentNodesOnly: "disableParentNodesOnly" }, outputs: { childrenLoaded: "childrenLoaded", onBlur: "blur", onFocus: "focus", expand: "expand", collapse: "collapse", nodeDragStart: "nodeDragStart", nodeDrag: "nodeDrag", filterStateChange: "filterStateChange", nodeDrop: "nodeDrop", nodeDragEnd: "nodeDragEnd", addItem: "addItem", removeItem: "removeItem", checkedChange: "checkedChange", selectionChange: "selectionChange", filterChange: "filterChange", nodeClick: "nodeClick", nodeDblClick: "nodeDblClick" }, host: { properties: { "class.k-treeview": "this.classNames", "attr.dir": "this.direction", "@.disabled": "this.animate" } }, providers: providers, queries: [{ propertyName: "nodeTemplateQuery", first: true, predicate: NodeTemplateDirective, descendants: true }, { propertyName: "loadMoreButtonTemplateQuery", first: true, predicate: LoadMoreButtonTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "assetsContainer", first: true, predicate: ["assetsContainer"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "searchbox", first: true, predicate: ["searchbox"], descendants: true }], exportAs: ["kendoTreeView"], usesOnChanges: true, ngImport: i0, template: `
646
645
  <ng-container kendoTreeViewLocalizedMessages
647
646
  i18n-loadMore="kendo.treeview.loadMore|The title of the Load More button"
648
647
  loadMore="Load more..."
@@ -699,7 +698,7 @@ TreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
699
698
  >
700
699
  </ul>
701
700
  <ng-container #assetsContainer></ng-container>
702
- `, isInline: true, dependencies: [{ kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i9.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: i9.TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: i10.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i11.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: i12.LocalizedMessagesDirective, selector: "[kendoTreeViewLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.Default });
701
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoTreeViewLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
703
702
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewComponent, decorators: [{
704
703
  type: Component,
705
704
  args: [{
@@ -764,7 +763,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
764
763
  >
765
764
  </ul>
766
765
  <ng-container #assetsContainer></ng-container>
767
- `
766
+ `,
767
+ standalone: true,
768
+ imports: [LocalizedMessagesDirective, NgIf, TextBoxComponent, TextBoxPrefixTemplateDirective, IconWrapperComponent, TreeViewGroupComponent]
768
769
  }]
769
770
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.ExpandStateService }, { type: i2.NavigationService }, { type: i3.NodeChildrenService }, { type: i4.SelectionService }, { type: i5.TreeViewLookupService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i6.DataChangeNotificationService }, { type: i7.LocalizationService }]; }, propDecorators: { classNames: [{
770
771
  type: HostBinding,
@@ -3,69 +3,57 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
6
- import { TreeViewComponent } from './treeview.component';
7
- import { SharedModule } from './shared.module';
8
- import { NodeTemplateDirective } from './node-template.directive';
9
- import { CheckDirective } from './check.directive';
10
- import { DisableDirective } from './disable.directive';
11
- import { ExpandDirective } from './expand.directive';
12
- import { SelectDirective } from './selection/select.directive';
13
- import { HierarchyBindingDirective } from './hierarchy-binding.directive';
14
- import { FlatDataBindingDirective } from './flat-binding.directive';
15
- import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
16
- import { DragClueTemplateDirective } from './drag-and-drop/drag-clue/drag-clue-template.directive';
17
- import { DropHintTemplateDirective } from './drag-and-drop/drop-hint/drop-hint-template.directive';
18
- import { DragAndDropEditingDirective } from './drag-and-drop/drag-and-drop-editing.directive';
19
- import { LoadMoreDirective } from './load-more/load-more.directive';
20
- import { LoadMoreButtonTemplateDirective } from './load-more/load-more-button-template.directive';
21
- import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
22
- import { CustomMessagesComponent } from './localization/custom-messages.component';
6
+ import { KENDO_TREEVIEW } from './directives';
7
+ import { ResizeBatchService } from '@progress/kendo-angular-common';
8
+ import { DialogContainerService, DialogService, WindowContainerService, WindowService } from '@progress/kendo-angular-dialog';
9
+ import { IconsService } from '@progress/kendo-angular-icons';
10
+ import { PopupService } from '@progress/kendo-angular-popup';
23
11
  import * as i0 from "@angular/core";
24
- const EXPORTS = [
25
- TreeViewComponent,
26
- NodeTemplateDirective,
27
- CheckDirective,
28
- DisableDirective,
29
- ExpandDirective,
30
- SelectDirective,
31
- HierarchyBindingDirective,
32
- FlatDataBindingDirective,
33
- DragAndDropDirective,
34
- DragClueTemplateDirective,
35
- DropHintTemplateDirective,
36
- DragAndDropEditingDirective,
37
- LoadMoreDirective,
38
- LoadMoreButtonTemplateDirective,
39
- LocalizedMessagesDirective,
40
- CustomMessagesComponent,
41
- ];
12
+ import * as i1 from "./treeview.component";
13
+ import * as i2 from "./node-template.directive";
14
+ import * as i3 from "./check.directive";
15
+ import * as i4 from "./disable.directive";
16
+ import * as i5 from "./expand.directive";
17
+ import * as i6 from "./selection/select.directive";
18
+ import * as i7 from "./hierarchy-binding.directive";
19
+ import * as i8 from "./flat-binding.directive";
20
+ import * as i9 from "./drag-and-drop/drag-and-drop.directive";
21
+ import * as i10 from "./drag-and-drop/drag-clue/drag-clue-template.directive";
22
+ import * as i11 from "./drag-and-drop/drop-hint/drop-hint-template.directive";
23
+ import * as i12 from "./drag-and-drop/drag-and-drop-editing.directive";
24
+ import * as i13 from "./load-more/load-more.directive";
25
+ import * as i14 from "./load-more/load-more-button-template.directive";
26
+ import * as i15 from "./localization/custom-messages.component";
27
+ //IMPORTANT: NgModule export kept for backwards compatibility
42
28
  /**
43
29
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the TreeView component.
44
30
  */
45
31
  export class TreeViewModule {
46
32
  }
47
33
  TreeViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- TreeViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, imports: [SharedModule], exports: [TreeViewComponent,
49
- NodeTemplateDirective,
50
- CheckDirective,
51
- DisableDirective,
52
- ExpandDirective,
53
- SelectDirective,
54
- HierarchyBindingDirective,
55
- FlatDataBindingDirective,
56
- DragAndDropDirective,
57
- DragClueTemplateDirective,
58
- DropHintTemplateDirective,
59
- DragAndDropEditingDirective,
60
- LoadMoreDirective,
61
- LoadMoreButtonTemplateDirective,
62
- LocalizedMessagesDirective,
63
- CustomMessagesComponent] });
64
- TreeViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, imports: [SharedModule] });
34
+ TreeViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, imports: [i1.TreeViewComponent, i2.NodeTemplateDirective, i3.CheckDirective, i4.DisableDirective, i5.ExpandDirective, i6.SelectDirective, i7.HierarchyBindingDirective, i8.FlatDataBindingDirective, i9.DragAndDropDirective, i10.DragClueTemplateDirective, i11.DropHintTemplateDirective, i12.DragAndDropEditingDirective, i13.LoadMoreDirective, i14.LoadMoreButtonTemplateDirective, i15.CustomMessagesComponent], exports: [i1.TreeViewComponent, i2.NodeTemplateDirective, i3.CheckDirective, i4.DisableDirective, i5.ExpandDirective, i6.SelectDirective, i7.HierarchyBindingDirective, i8.FlatDataBindingDirective, i9.DragAndDropDirective, i10.DragClueTemplateDirective, i11.DropHintTemplateDirective, i12.DragAndDropEditingDirective, i13.LoadMoreDirective, i14.LoadMoreButtonTemplateDirective, i15.CustomMessagesComponent] });
35
+ TreeViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, providers: [
36
+ IconsService,
37
+ PopupService,
38
+ ResizeBatchService,
39
+ DialogContainerService,
40
+ DialogService,
41
+ WindowService,
42
+ WindowContainerService
43
+ ], imports: [i1.TreeViewComponent, i15.CustomMessagesComponent] });
65
44
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TreeViewModule, decorators: [{
66
45
  type: NgModule,
67
46
  args: [{
68
- exports: [EXPORTS],
69
- imports: [SharedModule]
47
+ imports: [...KENDO_TREEVIEW],
48
+ exports: [...KENDO_TREEVIEW],
49
+ providers: [
50
+ IconsService,
51
+ PopupService,
52
+ ResizeBatchService,
53
+ DialogContainerService,
54
+ DialogService,
55
+ WindowService,
56
+ WindowContainerService
57
+ ]
70
58
  }]
71
59
  }] });
@@ -73,6 +73,6 @@ export declare class ExpandDirective implements OnDestroy, OnChanges {
73
73
  private getEveryExpandKey;
74
74
  private notify;
75
75
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpandDirective, never>;
76
- static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandDirective, "[kendoTreeViewExpandable]", never, { "isExpanded": "isExpanded"; "expandKey": "expandBy"; "expandOnFilter": "expandOnFilter"; "expandedKeys": "expandedKeys"; }, { "expandedKeysChange": "expandedKeysChange"; }, never, never, false, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandDirective, "[kendoTreeViewExpandable]", never, { "isExpanded": "isExpanded"; "expandKey": "expandBy"; "expandOnFilter": "expandOnFilter"; "expandedKeys": "expandedKeys"; }, { "expandedKeysChange": "expandedKeysChange"; }, never, never, true, never>;
77
77
  }
78
78
  export {};