@progress/kendo-angular-treeview 7.1.5 → 11.0.0-develop.101

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 (178) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +4 -4
  3. package/README.md +1 -1
  4. package/check-mode.d.ts +1 -1
  5. package/check.directive.d.ts +1 -1
  6. package/checkable-settings.d.ts +1 -1
  7. package/checkbox/checkbox.component.d.ts +1 -1
  8. package/checkbox/checkbox.module.d.ts +1 -1
  9. package/checkbox/checked-state.d.ts +1 -1
  10. package/data-bound-component.d.ts +1 -1
  11. package/data-change-notification.service.d.ts +1 -1
  12. package/default-callbacks.d.ts +1 -1
  13. package/disable.directive.d.ts +1 -1
  14. package/drag-and-drop/drag-and-drop-editing.directive.d.ts +1 -1
  15. package/drag-and-drop/drag-and-drop-utils.d.ts +1 -1
  16. package/drag-and-drop/drag-and-drop.directive.d.ts +1 -1
  17. package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +1 -1
  18. package/drag-and-drop/drag-clue/drag-clue.component.d.ts +3 -1
  19. package/drag-and-drop/drag-clue/drag-clue.service.d.ts +3 -3
  20. package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +1 -1
  21. package/drag-and-drop/drop-hint/drop-hint.component.d.ts +1 -1
  22. package/drag-and-drop/drop-hint/drop-hint.service.d.ts +1 -1
  23. package/drag-and-drop/editing-services/drag-and-drop-asset.service.d.ts +1 -1
  24. package/drag-and-drop/editing-services/flat-editing.service.d.ts +1 -1
  25. package/drag-and-drop/editing-services/hierarchy-editing.service.d.ts +1 -1
  26. package/drag-and-drop/models/drop-action.d.ts +1 -1
  27. package/drag-and-drop/models/drop-position.d.ts +1 -1
  28. package/drag-and-drop/models/editing-service.d.ts +1 -1
  29. package/drag-and-drop/models/preventable-event.d.ts +1 -1
  30. package/drag-and-drop/models/scroll-direction.d.ts +1 -1
  31. package/drag-and-drop/models/scroll-settings.d.ts +1 -1
  32. package/drag-and-drop/models/tree-item-filter-state.d.ts +1 -1
  33. package/drag-and-drop/models/treeitem-add-remove-args.d.ts +1 -1
  34. package/drag-and-drop/models/treeitem-drag-event.d.ts +1 -1
  35. package/drag-and-drop/models/treeitem-drag-start-event.d.ts +1 -1
  36. package/drag-and-drop/models/treeitem-drop-event.d.ts +1 -1
  37. package/drag-and-drop/models.d.ts +1 -1
  38. package/{esm2015/checkbox/checked-state.js → esm2020/check-mode.mjs} +1 -1
  39. package/{esm2015/check.directive.js → esm2020/check.directive.mjs} +7 -6
  40. package/{esm2015/check-mode.js → esm2020/checkable-settings.mjs} +1 -1
  41. package/{esm2015/checkbox/checkbox.component.js → esm2020/checkbox/checkbox.component.mjs} +5 -5
  42. package/{esm2015/checkbox/checkbox.module.js → esm2020/checkbox/checkbox.module.mjs} +5 -5
  43. package/{esm2015/drag-and-drop/models/editing-service.js → esm2020/checkbox/checked-state.mjs} +1 -1
  44. package/{esm2015/data-bound-component.js → esm2020/data-bound-component.mjs} +4 -4
  45. package/{esm2015/data-change-notification.service.js → esm2020/data-change-notification.service.mjs} +1 -1
  46. package/{esm2015/default-callbacks.js → esm2020/default-callbacks.mjs} +1 -1
  47. package/{esm2015/disable.directive.js → esm2020/disable.directive.mjs} +6 -5
  48. package/{esm2015/drag-and-drop/drag-and-drop-editing.directive.js → esm2020/drag-and-drop/drag-and-drop-editing.directive.mjs} +5 -4
  49. package/{esm2015/drag-and-drop/drag-and-drop-utils.js → esm2020/drag-and-drop/drag-and-drop-utils.mjs} +6 -2
  50. package/{esm2015/drag-and-drop/drag-and-drop.directive.js → esm2020/drag-and-drop/drag-and-drop.directive.mjs} +6 -5
  51. package/{esm2015/drag-and-drop/drag-clue/drag-clue-template.directive.js → esm2020/drag-and-drop/drag-clue/drag-clue-template.directive.mjs} +5 -5
  52. package/{esm2015/drag-and-drop/drag-clue/drag-clue.component.js → esm2020/drag-and-drop/drag-clue/drag-clue.component.mjs} +36 -14
  53. package/{esm2015/drag-and-drop/drag-clue/drag-clue.service.js → esm2020/drag-and-drop/drag-clue/drag-clue.service.mjs} +5 -5
  54. package/{esm2015/drag-and-drop/drop-hint/drop-hint-template.directive.js → esm2020/drag-and-drop/drop-hint/drop-hint-template.directive.mjs} +5 -5
  55. package/{esm2015/drag-and-drop/drop-hint/drop-hint.component.js → esm2020/drag-and-drop/drop-hint/drop-hint.component.mjs} +5 -5
  56. package/{esm2015/drag-and-drop/drop-hint/drop-hint.service.js → esm2020/drag-and-drop/drop-hint/drop-hint.service.mjs} +5 -5
  57. package/{esm2015/drag-and-drop/editing-services/drag-and-drop-asset.service.js → esm2020/drag-and-drop/editing-services/drag-and-drop-asset.service.mjs} +4 -4
  58. package/{esm2015/drag-and-drop/editing-services/flat-editing.service.js → esm2020/drag-and-drop/editing-services/flat-editing.service.mjs} +1 -1
  59. package/{esm2015/drag-and-drop/editing-services/hierarchy-editing.service.js → esm2020/drag-and-drop/editing-services/hierarchy-editing.service.mjs} +1 -1
  60. package/{esm2015/drag-and-drop/models/drop-action.js → esm2020/drag-and-drop/models/drop-action.mjs} +1 -1
  61. package/{esm2015/drag-and-drop/models/drop-position.js → esm2020/drag-and-drop/models/drop-position.mjs} +1 -1
  62. package/{esm2015/checkable-settings.js → esm2020/drag-and-drop/models/editing-service.mjs} +1 -1
  63. package/{esm2015/drag-and-drop/models/preventable-event.js → esm2020/drag-and-drop/models/preventable-event.mjs} +1 -1
  64. package/{esm2015/drag-and-drop/models/scroll-direction.js → esm2020/drag-and-drop/models/scroll-direction.mjs} +1 -1
  65. package/esm2020/drag-and-drop/models/scroll-settings.mjs +5 -0
  66. package/esm2020/drag-and-drop/models/tree-item-filter-state.mjs +5 -0
  67. package/esm2020/drag-and-drop/models/treeitem-add-remove-args.mjs +5 -0
  68. package/{esm2015/drag-and-drop/models/treeitem-drag-event.js → esm2020/drag-and-drop/models/treeitem-drag-event.mjs} +1 -1
  69. package/{esm2015/drag-and-drop/models/treeitem-drag-start-event.js → esm2020/drag-and-drop/models/treeitem-drag-start-event.mjs} +1 -1
  70. package/{esm2015/drag-and-drop/models/treeitem-drop-event.js → esm2020/drag-and-drop/models/treeitem-drop-event.mjs} +1 -1
  71. package/{esm2015/drag-and-drop/models.js → esm2020/drag-and-drop/models.mjs} +1 -1
  72. package/{esm2015/expand-state.service.js → esm2020/expand-state.service.mjs} +4 -4
  73. package/{esm2015/expand.directive.js → esm2020/expand.directive.mjs} +9 -8
  74. package/{esm2015/expandable-component.js → esm2020/expandable-component.mjs} +4 -4
  75. package/esm2020/filter-expand-settings.interface.mjs +5 -0
  76. package/esm2020/filter-state.interface.mjs +5 -0
  77. package/{esm2015/filtering-base.js → esm2020/filtering-base.mjs} +9 -5
  78. package/{esm2015/flat-binding.directive.js → esm2020/flat-binding.directive.mjs} +6 -5
  79. package/{esm2015/funcs.js → esm2020/funcs.mjs} +1 -1
  80. package/{esm2015/hierarchy-binding.directive.js → esm2020/hierarchy-binding.directive.mjs} +13 -11
  81. package/{esm2015/index-builder.service.js → esm2020/index-builder.service.mjs} +4 -4
  82. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  83. package/{esm2015/load-more/load-more-button-template.directive.js → esm2020/load-more/load-more-button-template.directive.mjs} +5 -5
  84. package/esm2020/load-more/load-more-request-args.mjs +5 -0
  85. package/{esm2015/load-more/load-more-utils.js → esm2020/load-more/load-more-utils.mjs} +1 -1
  86. package/{esm2015/load-more/load-more.directive.js → esm2020/load-more/load-more.directive.mjs} +5 -4
  87. package/esm2020/load-more/load-more.service.mjs +5 -0
  88. package/{esm2015/loading-indicator.directive.js → esm2020/loading-indicator.directive.mjs} +7 -5
  89. package/{esm2015/loading-notification.service.js → esm2020/loading-notification.service.mjs} +4 -4
  90. package/esm2020/navigation/navigation-item.interface.mjs +5 -0
  91. package/{esm2015/navigation/navigation-model.js → esm2020/navigation/navigation-model.mjs} +1 -1
  92. package/esm2020/navigation/navigation-state.interface.mjs +5 -0
  93. package/{esm2015/navigation/navigation.service.js → esm2020/navigation/navigation.service.mjs} +5 -4
  94. package/{esm2015/node-children.service.js → esm2020/node-children.service.mjs} +4 -4
  95. package/esm2020/node-click-event.interface.mjs +5 -0
  96. package/{esm2015/node-template.directive.js → esm2020/node-template.directive.mjs} +5 -5
  97. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  98. package/{esm2015/kendo-angular-treeview.js → esm2020/progress-kendo-angular-treeview.mjs} +2 -2
  99. package/{esm2015/selection/select.directive.js → esm2020/selection/select.directive.mjs} +9 -8
  100. package/esm2020/selection/selectable-settings.mjs +5 -0
  101. package/esm2020/selection/selection-mode.mjs +5 -0
  102. package/{esm2015/selection/selection.service.js → esm2020/selection/selection.service.mjs} +4 -4
  103. package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +12 -8
  104. package/esm2020/size.mjs +5 -0
  105. package/esm2020/treeitem-lookup.interface.mjs +5 -0
  106. package/esm2020/treeitem.interface.mjs +5 -0
  107. package/{esm2015/treeview-filter-settings.js → esm2020/treeview-filter-settings.mjs} +1 -1
  108. package/{esm2015/treeview-group.component.js → esm2020/treeview-group.component.mjs} +47 -26
  109. package/{esm2015/treeview-item-content.directive.js → esm2020/treeview-item-content.directive.mjs} +9 -7
  110. package/{esm2015/treeview-item.directive.js → esm2020/treeview-item.directive.mjs} +10 -5
  111. package/{esm2015/treeview-lookup.service.js → esm2020/treeview-lookup.service.mjs} +4 -4
  112. package/{esm2015/treeview.component.js → esm2020/treeview.component.mjs} +26 -10
  113. package/{esm2015/treeview.module.js → esm2020/treeview.module.mjs} +5 -5
  114. package/{esm2015/utils.js → esm2020/utils.mjs} +1 -1
  115. package/expand-state.service.d.ts +1 -1
  116. package/expand.directive.d.ts +1 -1
  117. package/expandable-component.d.ts +1 -1
  118. package/fesm2015/progress-kendo-angular-treeview.mjs +5517 -0
  119. package/{fesm2015/kendo-angular-treeview.js → fesm2020/progress-kendo-angular-treeview.mjs} +309 -251
  120. package/filter-expand-settings.interface.d.ts +1 -1
  121. package/filter-state.interface.d.ts +1 -1
  122. package/filtering-base.d.ts +1 -1
  123. package/flat-binding.directive.d.ts +1 -1
  124. package/funcs.d.ts +1 -1
  125. package/hierarchy-binding.directive.d.ts +5 -5
  126. package/index-builder.service.d.ts +1 -1
  127. package/{main.d.ts → index.d.ts} +1 -1
  128. package/load-more/load-more-button-template.directive.d.ts +1 -1
  129. package/load-more/load-more-request-args.d.ts +1 -1
  130. package/load-more/load-more-utils.d.ts +1 -1
  131. package/load-more/load-more.directive.d.ts +1 -1
  132. package/load-more/load-more.service.d.ts +1 -1
  133. package/loading-indicator.directive.d.ts +1 -1
  134. package/loading-notification.service.d.ts +1 -1
  135. package/navigation/navigation-item.interface.d.ts +1 -1
  136. package/navigation/navigation-model.d.ts +1 -1
  137. package/navigation/navigation-state.interface.d.ts +1 -1
  138. package/navigation/navigation.service.d.ts +1 -1
  139. package/node-children.service.d.ts +1 -1
  140. package/node-click-event.interface.d.ts +1 -1
  141. package/node-template.directive.d.ts +1 -1
  142. package/package-metadata.d.ts +1 -1
  143. package/package.json +31 -57
  144. package/{kendo-angular-treeview.d.ts → progress-kendo-angular-treeview.d.ts} +2 -2
  145. package/schematics/ngAdd/index.js +4 -6
  146. package/selection/select.directive.d.ts +1 -1
  147. package/selection/selectable-settings.d.ts +1 -1
  148. package/selection/selection-mode.d.ts +1 -1
  149. package/selection/selection.service.d.ts +1 -1
  150. package/shared.module.d.ts +3 -2
  151. package/size.d.ts +1 -1
  152. package/treeitem-lookup.interface.d.ts +1 -1
  153. package/treeitem.interface.d.ts +1 -1
  154. package/treeview-filter-settings.d.ts +1 -1
  155. package/treeview-group.component.d.ts +12 -1
  156. package/treeview-item-content.directive.d.ts +1 -1
  157. package/treeview-item.directive.d.ts +1 -1
  158. package/treeview-lookup.service.d.ts +1 -1
  159. package/treeview.component.d.ts +6 -1
  160. package/treeview.module.d.ts +1 -1
  161. package/utils.d.ts +1 -1
  162. package/bundles/kendo-angular-treeview.umd.js +0 -5
  163. package/esm2015/drag-and-drop/models/scroll-settings.js +0 -5
  164. package/esm2015/drag-and-drop/models/tree-item-filter-state.js +0 -5
  165. package/esm2015/drag-and-drop/models/treeitem-add-remove-args.js +0 -5
  166. package/esm2015/filter-expand-settings.interface.js +0 -5
  167. package/esm2015/filter-state.interface.js +0 -5
  168. package/esm2015/load-more/load-more-request-args.js +0 -5
  169. package/esm2015/load-more/load-more.service.js +0 -5
  170. package/esm2015/navigation/navigation-item.interface.js +0 -5
  171. package/esm2015/navigation/navigation-state.interface.js +0 -5
  172. package/esm2015/node-click-event.interface.js +0 -5
  173. package/esm2015/selection/selectable-settings.js +0 -5
  174. package/esm2015/selection/selection-mode.js +0 -5
  175. package/esm2015/size.js +0 -5
  176. package/esm2015/treeitem-lookup.interface.js +0 -5
  177. package/esm2015/treeitem.interface.js +0 -5
  178. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Directive, ContentChild, Input, HostBinding } from '@angular/core';
5
+ import { Directive, ElementRef, NgZone, ContentChild, Input, HostBinding } from '@angular/core';
6
6
  import { hasObservers } from '@progress/kendo-angular-common';
7
7
  import { Draggable } from '@progress/kendo-draggable';
8
8
  import { DragClueService } from './drag-clue/drag-clue.service';
@@ -11,6 +11,7 @@ import { DragClueTemplateDirective } from './drag-clue/drag-clue-template.direct
11
11
  import { DropHintTemplateDirective } from './drop-hint/drop-hint-template.directive';
12
12
  import { getDropAction, getDropPosition, treeItemFromEventTarget, getContainerOffset, getDropTarget } from './drag-and-drop-utils';
13
13
  import { closestWithMatch, isPresent, isContent } from '../utils';
14
+ import { TreeViewComponent } from '../treeview.component';
14
15
  import { TreeItemDropEvent, DropPosition, TreeItemDragStartEvent } from './models';
15
16
  import * as i0 from "@angular/core";
16
17
  import * as i1 from "../treeview.component";
@@ -270,12 +271,12 @@ export class DragAndDropDirective {
270
271
  this.pendingDragStartEvent = null;
271
272
  }
272
273
  }
273
- DragAndDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.TreeViewComponent }, { token: i2.DragClueService }, { token: i3.DropHintService }], target: i0.ɵɵFactoryTarget.Directive });
274
- DragAndDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragAndDropDirective, selector: "[kendoTreeViewDragAndDrop]", inputs: { allowCopy: "allowCopy", dropZoneTreeViews: "dropZoneTreeViews", startDragAfter: "startDragAfter", autoScroll: "autoScroll" }, host: { properties: { "style.user-select": "this.userSelectStyle", "style.-ms-user-select": "this.userSelectStyle", "style.-moz-user-select": "this.userSelectStyle", "style.-webkit-user-select": "this.userSelectStyle" } }, providers: [
274
+ DragAndDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragAndDropDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.TreeViewComponent }, { token: i2.DragClueService }, { token: i3.DropHintService }], target: i0.ɵɵFactoryTarget.Directive });
275
+ DragAndDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DragAndDropDirective, selector: "[kendoTreeViewDragAndDrop]", inputs: { allowCopy: "allowCopy", dropZoneTreeViews: "dropZoneTreeViews", startDragAfter: "startDragAfter", autoScroll: "autoScroll" }, host: { properties: { "style.user-select": "this.userSelectStyle", "style.-ms-user-select": "this.userSelectStyle", "style.-moz-user-select": "this.userSelectStyle", "style.-webkit-user-select": "this.userSelectStyle" } }, providers: [
275
276
  DragClueService,
276
277
  DropHintService
277
278
  ], queries: [{ propertyName: "dragClueTemplate", first: true, predicate: DragClueTemplateDirective, descendants: true }, { propertyName: "dropHintTemplate", first: true, predicate: DropHintTemplateDirective, descendants: true }], ngImport: i0 });
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropDirective, decorators: [{
279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragAndDropDirective, decorators: [{
279
280
  type: Directive,
280
281
  args: [{
281
282
  selector: '[kendoTreeViewDragAndDrop]',
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Optional } from '@angular/core';
5
+ import { Directive, Optional, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents the template for the TreeView drag clue when an item is dragged. To define the clue template,
@@ -23,9 +23,9 @@ export class DragClueTemplateDirective {
23
23
  this.templateRef = templateRef;
24
24
  }
25
25
  }
26
- DragClueTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
27
- DragClueTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragClueTemplateDirective, selector: "[kendoTreeViewDragClueTemplate]", ngImport: i0 });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueTemplateDirective, decorators: [{
26
+ DragClueTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
27
+ DragClueTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DragClueTemplateDirective, selector: "[kendoTreeViewDragClueTemplate]", ngImport: i0 });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueTemplateDirective, decorators: [{
29
29
  type: Directive,
30
30
  args: [{
31
31
  selector: '[kendoTreeViewDragClueTemplate]'
@@ -1,11 +1,13 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostBinding, ChangeDetectionStrategy } from "@angular/core";
5
+ import { Component, HostBinding, ChangeDetectorRef, ChangeDetectionStrategy } from "@angular/core";
6
6
  import { DropAction } from '../models';
7
+ import { cancelIcon, insertBottomIcon, insertMiddleIcon, insertTopIcon, plusIcon } from "@progress/kendo-svg-icons";
7
8
  import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common";
9
+ import * as i1 from "@progress/kendo-angular-icons";
10
+ import * as i2 from "@angular/common";
9
11
  /**
10
12
  * @hidden
11
13
  */
@@ -17,12 +19,22 @@ export class DragClueComponent {
17
19
  }
18
20
  get statusIconClass() {
19
21
  switch (this.action) {
20
- case DropAction.Add: return 'k-i-plus';
21
- case DropAction.InsertTop: return 'k-i-insert-top';
22
- case DropAction.InsertBottom: return 'k-i-insert-bottom';
23
- case DropAction.InsertMiddle: return 'k-i-insert-middle';
22
+ case DropAction.Add: return 'plus';
23
+ case DropAction.InsertTop: return 'insert-top';
24
+ case DropAction.InsertBottom: return 'insert-bottom';
25
+ case DropAction.InsertMiddle: return 'insert-middle';
24
26
  case DropAction.Invalid:
25
- default: return 'k-i-cancel';
27
+ default: return 'cancel';
28
+ }
29
+ }
30
+ get statusSVGIcon() {
31
+ switch (this.action) {
32
+ case DropAction.Add: return plusIcon;
33
+ case DropAction.InsertTop: return insertTopIcon;
34
+ case DropAction.InsertBottom: return insertBottomIcon;
35
+ case DropAction.InsertMiddle: return insertMiddleIcon;
36
+ case DropAction.Invalid:
37
+ default: return cancelIcon;
26
38
  }
27
39
  }
28
40
  // exposed as a public method that can be called from outside as the component uses `OnPush` strategy
@@ -30,10 +42,15 @@ export class DragClueComponent {
30
42
  this.cdr.detectChanges();
31
43
  }
32
44
  }
33
- DragClueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
34
- DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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: `
45
+ DragClueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
46
+ DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DragClueComponent, selector: "kendo-treeview-drag-clue", host: { properties: { "class.k-header": "this.hostClasses", "class.k-drag-clue": "this.hostClasses", "style.position": "this.posistionStyle" } }, ngImport: i0, template: `
35
47
  <ng-container *ngIf="!template">
36
- <span class="k-icon {{statusIconClass}} k-drag-status"></span>
48
+ <kendo-icon-wrapper
49
+ innerCssClass="k-drag-status"
50
+ [name]="statusIconClass"
51
+ [svgIcon]="statusSVGIcon"
52
+ >
53
+ </kendo-icon-wrapper>
37
54
  <span>{{text}}</span>
38
55
  </ng-container>
39
56
 
@@ -48,15 +65,20 @@ DragClueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
48
65
  }"
49
66
  >
50
67
  </ng-template>
51
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueComponent, decorators: [{
68
+ `, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueComponent, decorators: [{
53
70
  type: Component,
54
71
  args: [{
55
72
  changeDetection: ChangeDetectionStrategy.OnPush,
56
73
  selector: 'kendo-treeview-drag-clue',
57
74
  template: `
58
75
  <ng-container *ngIf="!template">
59
- <span class="k-icon {{statusIconClass}} k-drag-status"></span>
76
+ <kendo-icon-wrapper
77
+ innerCssClass="k-drag-status"
78
+ [name]="statusIconClass"
79
+ [svgIcon]="statusSVGIcon"
80
+ >
81
+ </kendo-icon-wrapper>
60
82
  <span>{{text}}</span>
61
83
  </ng-container>
62
84
 
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Injectable } from '@angular/core';
5
+ import { Injectable, ComponentFactoryResolver } from '@angular/core';
6
6
  import { DragClueComponent } from './drag-clue.component';
7
7
  import { ScrollDirection } from '../models';
8
8
  import { isPresent, dataItemsEqual } from '../../utils';
@@ -116,8 +116,8 @@ export class DragClueService extends DragAndDropAssetService {
116
116
  }
117
117
  }
118
118
  }
119
- DragClueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
120
- DragClueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueService });
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragClueService, decorators: [{
119
+ DragClueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
120
+ DragClueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueService });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragClueService, decorators: [{
122
122
  type: Injectable
123
123
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; } });
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Optional } from '@angular/core';
5
+ import { Directive, Optional, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents the template for the TreeView drop hint when an item is dragged. To define the hint template,
@@ -20,9 +20,9 @@ export class DropHintTemplateDirective {
20
20
  this.templateRef = templateRef;
21
21
  }
22
22
  }
23
- DropHintTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
24
- DropHintTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropHintTemplateDirective, selector: "[kendoTreeViewDropHintTemplate]", ngImport: i0 });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintTemplateDirective, decorators: [{
23
+ DropHintTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
24
+ DropHintTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DropHintTemplateDirective, selector: "[kendoTreeViewDropHintTemplate]", ngImport: i0 });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintTemplateDirective, decorators: [{
26
26
  type: Directive,
27
27
  args: [{
28
28
  selector: '[kendoTreeViewDropHintTemplate]'
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostBinding, ChangeDetectionStrategy } from '@angular/core';
5
+ import { Component, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@angular/common";
8
8
  /**
@@ -20,8 +20,8 @@ export class DropHintComponent {
20
20
  this.changeDetectorRef.detectChanges();
21
21
  }
22
22
  }
23
- DropHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
24
- DropHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropHintComponent, selector: "kendo-treeview-drop-hint", host: { properties: { "class.k-drop-hint-container": "this.hostClass", "style.position": "this.position", "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: `
23
+ DropHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
24
+ DropHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DropHintComponent, selector: "kendo-treeview-drop-hint", host: { properties: { "class.k-drop-hint-container": "this.hostClass", "style.position": "this.position", "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: `
25
25
  <div
26
26
  *ngIf="!template"
27
27
  class="k-drop-hint k-drop-hint-h"
@@ -41,7 +41,7 @@ DropHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
41
41
  >
42
42
  <ng-template>
43
43
  `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintComponent, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintComponent, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Injectable } from '@angular/core';
5
+ import { Injectable, ComponentFactoryResolver } from '@angular/core';
6
6
  import { dataItemsEqual, isPresent } from '../../utils';
7
7
  import { DropHintComponent } from './drop-hint.component';
8
8
  import { DragAndDropAssetService } from '../editing-services/drag-and-drop-asset.service';
@@ -36,8 +36,8 @@ export class DropHintService extends DragAndDropAssetService {
36
36
  dropHint.detectChanges();
37
37
  }
38
38
  }
39
- DropHintService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
40
- DropHintService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintService });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropHintService, decorators: [{
39
+ DropHintService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
40
+ DropHintService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintService });
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropHintService, decorators: [{
42
42
  type: Injectable
43
43
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; } });
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable } from '@angular/core';
@@ -40,8 +40,8 @@ export class DragAndDropAssetService {
40
40
  this.element.style.top = `${top + offset}px`;
41
41
  }
42
42
  }
43
- DragAndDropAssetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropAssetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
44
- DragAndDropAssetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropAssetService });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropAssetService, decorators: [{
43
+ DragAndDropAssetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragAndDropAssetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
44
+ DragAndDropAssetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragAndDropAssetService });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragAndDropAssetService, decorators: [{
46
46
  type: Injectable
47
47
  }] });
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { getter, setter } from '@progress/kendo-common';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { getter, setter } from '@progress/kendo-common';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export * from './models/drop-action';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable } from "@angular/core";
@@ -19,8 +19,8 @@ export class ExpandStateService {
19
19
  this.changes.next({ dataItem, index, expand: false });
20
20
  }
21
21
  }
22
- ExpandStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
- ExpandStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandStateService });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandStateService, decorators: [{
22
+ ExpandStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
+ ExpandStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandStateService });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandStateService, decorators: [{
25
25
  type: Injectable
26
26
  }] });
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Directive, EventEmitter, Input, Output } from '@angular/core';
6
+ import { ExpandableComponent } from './expandable-component';
6
7
  import { Subscription, merge } from 'rxjs';
7
8
  import { map } from 'rxjs/operators';
8
9
  import { isArrayWithAtLeastOneItem, isBoolean, sameValues } from './utils';
@@ -64,7 +65,7 @@ export class ExpandDirective {
64
65
  });
65
66
  }
66
67
  };
67
- this.subscriptions.add(merge(this.component.expand.pipe(map(e => (Object.assign({ expand: true }, e)))), this.component.collapse.pipe(map(e => (Object.assign({ expand: false }, e))))).subscribe(this.toggleExpand.bind(this)));
68
+ this.subscriptions.add(merge(this.component.expand.pipe(map(e => ({ expand: true, ...e }))), this.component.collapse.pipe(map(e => ({ expand: false, ...e })))).subscribe(this.toggleExpand.bind(this)));
68
69
  if (this.component.filterStateChange) {
69
70
  this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this)));
70
71
  }
@@ -77,12 +78,12 @@ export class ExpandDirective {
77
78
  this.component.isExpanded = value;
78
79
  }
79
80
  get filterExpandSettings() {
80
- const settings = isBoolean(this.expandOnFilter) ? { enabled: this.expandOnFilter } : Object.assign(Object.assign({}, this.expandOnFilter), { enabled: true });
81
+ const settings = isBoolean(this.expandOnFilter) ? { enabled: this.expandOnFilter } : { ...this.expandOnFilter, enabled: true };
81
82
  return Object.assign({}, DEFAULT_FILTER_EXPAND_SETTINGS, settings);
82
83
  }
83
84
  ngOnChanges(changes) {
84
- if (isChanged('expandedKeys', changes, false) && changes.expandedKeys.currentValue !== this.lastChange) {
85
- this.state = new Set(changes.expandedKeys.currentValue);
85
+ if (isChanged('expandedKeys', changes, false) && changes['expandedKeys'].currentValue !== this.lastChange) {
86
+ this.state = new Set(changes['expandedKeys'].currentValue);
86
87
  }
87
88
  }
88
89
  ngOnDestroy() {
@@ -176,9 +177,9 @@ export class ExpandDirective {
176
177
  this.expandedKeysChange.emit(this.lastChange);
177
178
  }
178
179
  }
179
- ExpandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandDirective, deps: [{ token: i1.ExpandableComponent }], target: i0.ɵɵFactoryTarget.Directive });
180
- ExpandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: { isExpanded: "isExpanded", expandKey: ["expandBy", "expandKey"], expandOnFilter: "expandOnFilter", expandedKeys: "expandedKeys" }, outputs: { expandedKeysChange: "expandedKeysChange" }, usesOnChanges: true, ngImport: i0 });
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandDirective, decorators: [{
180
+ ExpandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandDirective, deps: [{ token: i1.ExpandableComponent }], target: i0.ɵɵFactoryTarget.Directive });
181
+ ExpandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: { isExpanded: "isExpanded", expandKey: ["expandBy", "expandKey"], expandOnFilter: "expandOnFilter", expandedKeys: "expandedKeys" }, outputs: { expandedKeysChange: "expandedKeysChange" }, usesOnChanges: true, ngImport: i0 });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandDirective, decorators: [{
182
183
  type: Directive,
183
184
  args: [{ selector: '[kendoTreeViewExpandable]' }]
184
185
  }], ctorParameters: function () { return [{ type: i1.ExpandableComponent }]; }, propDecorators: { isExpanded: [{
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable } from '@angular/core';
@@ -12,8 +12,8 @@ import * as i0 from "@angular/core";
12
12
  */
13
13
  export class ExpandableComponent {
14
14
  }
15
- ExpandableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16
- ExpandableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandableComponent });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandableComponent, decorators: [{
15
+ ExpandableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16
+ ExpandableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandableComponent });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandableComponent, decorators: [{
18
18
  type: Injectable
19
19
  }] });
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Directive, Input } from "@angular/core";
6
+ import { DataBoundComponent } from "./data-bound-component";
6
7
  import { DEFAULT_FILTER_SETTINGS } from "./treeview-filter-settings";
7
8
  import { filterTree, isPresent } from "./utils";
8
9
  import * as i0 from "@angular/core";
@@ -20,7 +21,10 @@ export class FilteringBase {
20
21
  * The settings which are applied when performing a filter on the component's data.
21
22
  */
22
23
  set filterSettings(settings) {
23
- this._filterSettings = Object.assign(Object.assign({}, DEFAULT_FILTER_SETTINGS), settings);
24
+ this._filterSettings = {
25
+ ...DEFAULT_FILTER_SETTINGS,
26
+ ...settings
27
+ };
24
28
  }
25
29
  get filterSettings() {
26
30
  return this._filterSettings;
@@ -72,9 +76,9 @@ export class FilteringBase {
72
76
  });
73
77
  }
74
78
  }
75
- FilteringBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilteringBase, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
76
- FilteringBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FilteringBase, inputs: { filterSettings: "filterSettings", filter: "filter" }, ngImport: i0 });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilteringBase, decorators: [{
79
+ FilteringBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilteringBase, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
80
+ FilteringBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FilteringBase, inputs: { filterSettings: "filterSettings", filter: "filter" }, ngImport: i0 });
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilteringBase, decorators: [{
78
82
  type: Directive
79
83
  }], ctorParameters: function () { return [{ type: i1.DataBoundComponent }]; }, propDecorators: { filterSettings: [{
80
84
  type: Input
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { anyChanged, isChanged } from '@progress/kendo-angular-common';
@@ -7,6 +7,7 @@ import { Directive, Input } from '@angular/core';
7
7
  import { getter } from '@progress/kendo-common';
8
8
  import { of } from 'rxjs';
9
9
  import { compose } from './funcs';
10
+ import { DataBoundComponent } from './data-bound-component';
10
11
  import { isBlank, isNullOrEmptyString, isPresent, isArrayWithAtLeastOneItem } from './utils';
11
12
  import { FlatEditingService } from "./drag-and-drop/editing-services/flat-editing.service";
12
13
  import { IndexBuilderService } from './index-builder.service';
@@ -82,7 +83,7 @@ export class FlatDataBindingDirective extends FilteringBase {
82
83
  this.updateNodes(this.originalData);
83
84
  }
84
85
  if (isChanged('nodes', changes, false)) {
85
- this.updateNodes(changes.nodes.currentValue);
86
+ this.updateNodes(changes['nodes'].currentValue);
86
87
  }
87
88
  // should react to changes.loadOnDemand as well - should preload the data or clear the already cached items
88
89
  if (anyChanged(['nodes', 'loadOnDemand'], changes) && !this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
@@ -105,9 +106,9 @@ export class FlatDataBindingDirective extends FilteringBase {
105
106
  }
106
107
  }
107
108
  }
108
- FlatDataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatDataBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
109
- FlatDataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FlatDataBindingDirective, selector: "[kendoTreeViewFlatDataBinding]", inputs: { nodes: "nodes", parentIdField: "parentIdField", idField: "idField", loadOnDemand: "loadOnDemand", isVisible: "isVisible" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatDataBindingDirective, decorators: [{
109
+ FlatDataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatDataBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
110
+ FlatDataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FlatDataBindingDirective, selector: "[kendoTreeViewFlatDataBinding]", inputs: { nodes: "nodes", parentIdField: "parentIdField", idField: "idField", loadOnDemand: "loadOnDemand", isVisible: "isVisible" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatDataBindingDirective, decorators: [{
111
112
  type: Directive,
112
113
  args: [{ selector: "[kendoTreeViewFlatDataBinding]" }]
113
114
  }], ctorParameters: function () { return [{ type: i1.DataBoundComponent }]; }, propDecorators: { nodes: [{
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**