@progress/kendo-angular-treeview 6.0.2 → 7.0.0-dev.202204191141

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 (328) hide show
  1. package/bundles/kendo-angular-treeview.umd.js +5 -0
  2. package/{dist/es2015/check-mode.d.ts → check-mode.d.ts} +0 -0
  3. package/{dist/es2015/check.directive.d.ts → check.directive.d.ts} +5 -2
  4. package/{dist/es2015/checkable-settings.d.ts → checkable-settings.d.ts} +0 -0
  5. package/{dist/es2015/checkbox → checkbox}/checkbox.component.d.ts +7 -4
  6. package/{dist/es2015/checkbox → checkbox}/checkbox.module.d.ts +5 -0
  7. package/{dist/es2015/checkbox → checkbox}/checked-state.d.ts +0 -0
  8. package/{dist/es2015/data-bound-component.d.ts → data-bound-component.d.ts} +3 -0
  9. package/{dist/es2015/data-change-notification.service.d.ts → data-change-notification.service.d.ts} +0 -0
  10. package/{dist/es2015/default-callbacks.d.ts → default-callbacks.d.ts} +0 -0
  11. package/{dist/es2015/disable.directive.d.ts → disable.directive.d.ts} +4 -1
  12. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-editing.directive.d.ts +4 -1
  13. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-utils.d.ts +0 -0
  14. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop.directive.d.ts +4 -1
  15. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue-template.directive.d.ts +3 -0
  16. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.component.d.ts +4 -1
  17. package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.service.d.ts +3 -0
  18. package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint-template.directive.d.ts +3 -0
  19. package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.component.d.ts +3 -0
  20. package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.service.d.ts +3 -0
  21. package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/drag-and-drop-asset.service.d.ts +6 -2
  22. package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/flat-editing.service.d.ts +0 -0
  23. package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/hierarchy-editing.service.d.ts +0 -0
  24. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-action.d.ts +0 -0
  25. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-position.d.ts +0 -0
  26. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/editing-service.d.ts +0 -0
  27. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/preventable-event.d.ts +0 -0
  28. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-direction.d.ts +0 -0
  29. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-settings.d.ts +0 -0
  30. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/tree-item-filter-state.d.ts +0 -0
  31. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-add-remove-args.d.ts +0 -0
  32. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-event.d.ts +2 -0
  33. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-start-event.d.ts +0 -0
  34. package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drop-event.d.ts +0 -0
  35. package/{dist/es2015/drag-and-drop → drag-and-drop}/models.d.ts +0 -0
  36. package/{dist/es2015 → esm2015}/check-mode.js +1 -0
  37. package/{dist/es2015 → esm2015}/check.directive.js +23 -35
  38. package/{dist/es → esm2015}/checkable-settings.js +1 -0
  39. package/{dist/es2015 → esm2015}/checkbox/checkbox.component.js +47 -51
  40. package/esm2015/checkbox/checkbox.module.js +27 -0
  41. package/{dist/es2015 → esm2015}/checkbox/checked-state.js +1 -0
  42. package/esm2015/data-bound-component.js +19 -0
  43. package/{dist/es2015 → esm2015}/data-change-notification.service.js +0 -0
  44. package/{dist/es2015 → esm2015}/default-callbacks.js +0 -0
  45. package/{dist/es2015 → esm2015}/disable.directive.js +18 -24
  46. package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-editing.directive.js +14 -16
  47. package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-utils.js +7 -11
  48. package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop.directive.js +48 -51
  49. package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue-template.directive.js +14 -12
  50. package/esm2015/drag-and-drop/drag-clue/drag-clue.component.js +85 -0
  51. package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue.service.js +9 -9
  52. package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint-template.directive.js +14 -12
  53. package/esm2015/drag-and-drop/drop-hint/drop-hint.component.js +79 -0
  54. package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint.service.js +9 -9
  55. package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/drag-and-drop-asset.service.js +7 -0
  56. package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/flat-editing.service.js +0 -0
  57. package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -0
  58. package/{dist/es → esm2015}/drag-and-drop/models/drop-action.js +0 -0
  59. package/{dist/es → esm2015}/drag-and-drop/models/drop-position.js +0 -0
  60. package/{dist/es2015 → esm2015}/drag-and-drop/models/editing-service.js +1 -0
  61. package/{dist/es2015 → esm2015}/drag-and-drop/models/preventable-event.js +0 -0
  62. package/{dist/es → esm2015}/drag-and-drop/models/scroll-direction.js +0 -0
  63. package/{dist/es → esm2015}/drag-and-drop/models/scroll-settings.js +1 -0
  64. package/{dist/es → esm2015}/drag-and-drop/models/tree-item-filter-state.js +1 -0
  65. package/{dist/es → esm2015}/drag-and-drop/models/treeitem-add-remove-args.js +1 -0
  66. package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-event.js +2 -0
  67. package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-start-event.js +0 -0
  68. package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drop-event.js +0 -0
  69. package/{dist/es → esm2015}/drag-and-drop/models.js +3 -0
  70. package/{dist/es2015 → esm2015}/expand-state.service.js +8 -10
  71. package/{dist/es2015 → esm2015}/expand.directive.js +22 -31
  72. package/esm2015/expandable-component.js +19 -0
  73. package/{dist/es → esm2015}/filter-expand-settings.interface.js +1 -0
  74. package/{dist/es → esm2015}/filter-state.interface.js +1 -0
  75. package/{dist/es2015 → esm2015}/filtering-base.js +13 -13
  76. package/{dist/es2015 → esm2015}/flat-binding.directive.js +20 -34
  77. package/{dist/es2015 → esm2015}/funcs.js +0 -0
  78. package/{dist/es2015 → esm2015}/hierarchy-binding.directive.js +23 -33
  79. package/{dist/es2015 → esm2015}/index-builder.service.js +8 -10
  80. package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-treeview.js} +2 -3
  81. package/esm2015/load-more/load-more-button-template.directive.js +31 -0
  82. package/{dist/es → esm2015}/load-more/load-more-request-args.js +1 -0
  83. package/{dist/es2015 → esm2015}/load-more/load-more-utils.js +0 -0
  84. package/{dist/es2015 → esm2015}/load-more/load-more.directive.js +21 -28
  85. package/{dist/es → esm2015}/load-more/load-more.service.js +1 -0
  86. package/{dist/es2015 → esm2015}/loading-indicator.directive.js +18 -22
  87. package/esm2015/loading-notification.service.js +23 -0
  88. package/{dist/es → esm2015}/main.js +0 -0
  89. package/{dist/es → esm2015}/navigation/navigation-item.interface.js +1 -0
  90. package/{dist/es2015 → esm2015}/navigation/navigation-model.js +0 -4
  91. package/{dist/es → esm2015}/navigation/navigation-state.interface.js +1 -0
  92. package/{dist/es2015 → esm2015}/navigation/navigation.service.js +9 -9
  93. package/{dist/es2015 → esm2015}/node-children.service.js +8 -10
  94. package/{dist/es → esm2015}/node-click-event.interface.js +1 -0
  95. package/{dist/es2015 → esm2015}/node-template.directive.js +14 -12
  96. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  97. package/{dist/es2015 → esm2015}/selection/select.directive.js +25 -35
  98. package/{dist/es → esm2015}/selection/selectable-settings.js +1 -0
  99. package/{dist/es → esm2015}/selection/selection-mode.js +1 -0
  100. package/{dist/es2015 → esm2015}/selection/selection.service.js +8 -10
  101. package/{dist/es2015 → esm2015}/shared.module.js +63 -16
  102. package/{dist/es → esm2015}/size.js +1 -0
  103. package/{dist/es → esm2015}/treeitem-lookup.interface.js +1 -0
  104. package/{dist/es → esm2015}/treeitem.interface.js +1 -0
  105. package/{dist/es2015 → esm2015}/treeview-filter-settings.js +0 -0
  106. package/{dist/es2015 → esm2015}/treeview-group.component.js +264 -135
  107. package/{dist/es2015 → esm2015}/treeview-item-content.directive.js +20 -30
  108. package/{dist/es2015 → esm2015}/treeview-item.directive.js +43 -81
  109. package/{dist/es2015 → esm2015}/treeview-lookup.service.js +8 -10
  110. package/{dist/es2015 → esm2015}/treeview.component.js +173 -213
  111. package/{dist/es2015 → esm2015}/treeview.module.js +26 -10
  112. package/{dist/es2015 → esm2015}/utils.js +6 -12
  113. package/{dist/es2015/expand-state.service.d.ts → expand-state.service.d.ts} +3 -0
  114. package/{dist/es2015/expand.directive.d.ts → expand.directive.d.ts} +5 -2
  115. package/{dist/es2015/expandable-component.d.ts → expandable-component.d.ts} +3 -0
  116. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-treeview.js} +3415 -3313
  117. package/{dist/es2015/filter-expand-settings.interface.d.ts → filter-expand-settings.interface.d.ts} +0 -0
  118. package/{dist/es2015/filter-state.interface.d.ts → filter-state.interface.d.ts} +0 -0
  119. package/{dist/es2015/filtering-base.d.ts → filtering-base.d.ts} +6 -2
  120. package/{dist/es2015/flat-binding.directive.d.ts → flat-binding.directive.d.ts} +5 -2
  121. package/{dist/es2015/funcs.d.ts → funcs.d.ts} +0 -0
  122. package/{dist/es2015/hierarchy-binding.directive.d.ts → hierarchy-binding.directive.d.ts} +10 -6
  123. package/{dist/es2015/index-builder.service.d.ts → index-builder.service.d.ts} +3 -0
  124. package/{dist/es/treeview-filter-settings.js → kendo-angular-treeview.d.ts} +3 -6
  125. package/{dist/es2015/load-more → load-more}/load-more-button-template.directive.d.ts +3 -0
  126. package/{dist/es2015/load-more → load-more}/load-more-request-args.d.ts +0 -0
  127. package/{dist/es2015/load-more → load-more}/load-more-utils.d.ts +0 -0
  128. package/{dist/es2015/load-more → load-more}/load-more.directive.d.ts +4 -1
  129. package/{dist/es2015/load-more → load-more}/load-more.service.d.ts +0 -0
  130. package/{dist/es2015/loading-indicator.directive.d.ts → loading-indicator.directive.d.ts} +5 -1
  131. package/{dist/es2015/loading-notification.service.d.ts → loading-notification.service.d.ts} +3 -0
  132. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  133. package/{dist/es2015/navigation → navigation}/navigation-item.interface.d.ts +0 -0
  134. package/{dist/es2015/navigation → navigation}/navigation-model.d.ts +0 -0
  135. package/{dist/es2015/navigation → navigation}/navigation-state.interface.d.ts +0 -0
  136. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +9 -5
  137. package/{dist/es2015/node-children.service.d.ts → node-children.service.d.ts} +3 -0
  138. package/{dist/es2015/node-click-event.interface.d.ts → node-click-event.interface.d.ts} +0 -0
  139. package/{dist/es2015/node-template.directive.d.ts → node-template.directive.d.ts} +3 -0
  140. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  141. package/package.json +32 -102
  142. package/schematics/ngAdd/index.js +7 -4
  143. package/schematics/ngAdd/index.js.map +1 -1
  144. package/{dist/es2015/selection → selection}/select.directive.d.ts +6 -3
  145. package/{dist/es2015/selection → selection}/selectable-settings.d.ts +0 -0
  146. package/{dist/es2015/selection → selection}/selection-mode.d.ts +0 -0
  147. package/{dist/es2015/selection → selection}/selection.service.d.ts +3 -0
  148. package/shared.module.d.ts +36 -0
  149. package/size.d.ts +8 -0
  150. package/{dist/es2015/treeitem-lookup.interface.d.ts → treeitem-lookup.interface.d.ts} +0 -0
  151. package/{dist/es2015/treeitem.interface.d.ts → treeitem.interface.d.ts} +0 -0
  152. package/{dist/es2015/treeview-filter-settings.d.ts → treeview-filter-settings.d.ts} +0 -0
  153. package/{dist/es2015/treeview-group.component.d.ts → treeview-group.component.d.ts} +16 -7
  154. package/{dist/es2015/treeview-item-content.directive.d.ts → treeview-item-content.directive.d.ts} +3 -0
  155. package/{dist/es2015/treeview-item.directive.d.ts → treeview-item.directive.d.ts} +11 -6
  156. package/{dist/es2015/treeview-lookup.service.d.ts → treeview-lookup.service.d.ts} +3 -0
  157. package/{dist/es2015/treeview.component.d.ts → treeview.component.d.ts} +26 -15
  158. package/treeview.module.d.ts +28 -0
  159. package/{dist/es2015/utils.d.ts → utils.d.ts} +1 -1
  160. package/dist/cdn/js/kendo-angular-treeview.js +0 -20
  161. package/dist/cdn/main.js +0 -5
  162. package/dist/es/check-mode.js +0 -4
  163. package/dist/es/check.directive.js +0 -282
  164. package/dist/es/checkbox/checkbox.component.js +0 -127
  165. package/dist/es/checkbox/checkbox.module.js +0 -27
  166. package/dist/es/checkbox/checked-state.js +0 -4
  167. package/dist/es/data-bound-component.js +0 -21
  168. package/dist/es/data-change-notification.service.js +0 -18
  169. package/dist/es/default-callbacks.js +0 -32
  170. package/dist/es/disable.directive.js +0 -71
  171. package/dist/es/drag-and-drop/drag-and-drop-editing.directive.js +0 -65
  172. package/dist/es/drag-and-drop/drag-and-drop-utils.js +0 -274
  173. package/dist/es/drag-and-drop/drag-and-drop.directive.js +0 -334
  174. package/dist/es/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -34
  175. package/dist/es/drag-and-drop/drag-clue/drag-clue.component.js +0 -54
  176. package/dist/es/drag-and-drop/drag-clue/drag-clue.service.js +0 -132
  177. package/dist/es/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -31
  178. package/dist/es/drag-and-drop/drop-hint/drop-hint.component.js +0 -43
  179. package/dist/es/drag-and-drop/drop-hint/drop-hint.service.js +0 -46
  180. package/dist/es/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -53
  181. package/dist/es/drag-and-drop/editing-services/flat-editing.service.js +0 -145
  182. package/dist/es/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -90
  183. package/dist/es/drag-and-drop/models/editing-service.js +0 -4
  184. package/dist/es/drag-and-drop/models/preventable-event.js +0 -29
  185. package/dist/es/drag-and-drop/models/treeitem-drag-event.js +0 -14
  186. package/dist/es/drag-and-drop/models/treeitem-drag-start-event.js +0 -22
  187. package/dist/es/drag-and-drop/models/treeitem-drop-event.js +0 -36
  188. package/dist/es/expand-state.service.js +0 -26
  189. package/dist/es/expand.directive.js +0 -219
  190. package/dist/es/expandable-component.js +0 -21
  191. package/dist/es/filtering-base.js +0 -95
  192. package/dist/es/flat-binding.directive.js +0 -151
  193. package/dist/es/funcs.js +0 -15
  194. package/dist/es/hierarchy-binding.directive.js +0 -152
  195. package/dist/es/index-builder.service.js +0 -38
  196. package/dist/es/index.js +0 -30
  197. package/dist/es/load-more/load-more-button-template.directive.js +0 -30
  198. package/dist/es/load-more/load-more-utils.js +0 -35
  199. package/dist/es/load-more/load-more.directive.js +0 -114
  200. package/dist/es/loading-indicator.directive.js +0 -76
  201. package/dist/es/loading-notification.service.js +0 -23
  202. package/dist/es/navigation/navigation-model.js +0 -162
  203. package/dist/es/navigation/navigation.service.js +0 -243
  204. package/dist/es/node-children.service.js +0 -23
  205. package/dist/es/node-template.directive.js +0 -74
  206. package/dist/es/package-metadata.js +0 -15
  207. package/dist/es/selection/select.directive.js +0 -152
  208. package/dist/es/selection/selection.service.js +0 -34
  209. package/dist/es/shared.module.js +0 -75
  210. package/dist/es/treeview-group.component.js +0 -393
  211. package/dist/es/treeview-item-content.directive.js +0 -85
  212. package/dist/es/treeview-item.directive.js +0 -306
  213. package/dist/es/treeview-lookup.service.js +0 -93
  214. package/dist/es/treeview.component.js +0 -853
  215. package/dist/es/treeview.module.js +0 -52
  216. package/dist/es/utils.js +0 -311
  217. package/dist/es2015/checkable-settings.js +0 -4
  218. package/dist/es2015/checkbox/checkbox.module.js +0 -24
  219. package/dist/es2015/data-bound-component.js +0 -18
  220. package/dist/es2015/drag-and-drop/drag-clue/drag-clue.component.js +0 -66
  221. package/dist/es2015/drag-and-drop/drop-hint/drop-hint.component.js +0 -61
  222. package/dist/es2015/drag-and-drop/models/drop-action.js +0 -17
  223. package/dist/es2015/drag-and-drop/models/drop-position.js +0 -13
  224. package/dist/es2015/drag-and-drop/models/scroll-direction.js +0 -12
  225. package/dist/es2015/drag-and-drop/models/scroll-settings.js +0 -4
  226. package/dist/es2015/drag-and-drop/models/tree-item-filter-state.js +0 -4
  227. package/dist/es2015/drag-and-drop/models/treeitem-add-remove-args.js +0 -4
  228. package/dist/es2015/drag-and-drop/models.js +0 -11
  229. package/dist/es2015/expandable-component.js +0 -18
  230. package/dist/es2015/filter-expand-settings.interface.js +0 -4
  231. package/dist/es2015/filter-state.interface.js +0 -4
  232. package/dist/es2015/index.d.ts +0 -30
  233. package/dist/es2015/index.js +0 -30
  234. package/dist/es2015/index.metadata.json +0 -1
  235. package/dist/es2015/load-more/load-more-button-template.directive.js +0 -29
  236. package/dist/es2015/load-more/load-more-request-args.js +0 -4
  237. package/dist/es2015/load-more/load-more.service.js +0 -4
  238. package/dist/es2015/loading-notification.service.js +0 -25
  239. package/dist/es2015/main.js +0 -26
  240. package/dist/es2015/navigation/navigation-item.interface.js +0 -4
  241. package/dist/es2015/navigation/navigation-state.interface.js +0 -4
  242. package/dist/es2015/node-click-event.interface.js +0 -4
  243. package/dist/es2015/selection/selectable-settings.js +0 -4
  244. package/dist/es2015/selection/selection-mode.js +0 -4
  245. package/dist/es2015/size.d.ts +0 -14
  246. package/dist/es2015/size.js +0 -4
  247. package/dist/es2015/treeitem-lookup.interface.js +0 -4
  248. package/dist/es2015/treeitem.interface.js +0 -4
  249. package/dist/es2015/treeview.module.d.ts +0 -9
  250. package/dist/fesm5/index.js +0 -5426
  251. package/dist/npm/check-mode.js +0 -6
  252. package/dist/npm/check.directive.js +0 -285
  253. package/dist/npm/checkable-settings.js +0 -6
  254. package/dist/npm/checkbox/checkbox.component.js +0 -129
  255. package/dist/npm/checkbox/checkbox.module.js +0 -29
  256. package/dist/npm/checkbox/checked-state.js +0 -6
  257. package/dist/npm/data-bound-component.js +0 -23
  258. package/dist/npm/data-change-notification.service.js +0 -20
  259. package/dist/npm/default-callbacks.js +0 -34
  260. package/dist/npm/disable.directive.js +0 -73
  261. package/dist/npm/drag-and-drop/drag-and-drop-editing.directive.js +0 -67
  262. package/dist/npm/drag-and-drop/drag-and-drop-utils.js +0 -278
  263. package/dist/npm/drag-and-drop/drag-and-drop.directive.js +0 -336
  264. package/dist/npm/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -36
  265. package/dist/npm/drag-and-drop/drag-clue/drag-clue.component.js +0 -56
  266. package/dist/npm/drag-and-drop/drag-clue/drag-clue.service.js +0 -134
  267. package/dist/npm/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -33
  268. package/dist/npm/drag-and-drop/drop-hint/drop-hint.component.js +0 -45
  269. package/dist/npm/drag-and-drop/drop-hint/drop-hint.service.js +0 -48
  270. package/dist/npm/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -55
  271. package/dist/npm/drag-and-drop/editing-services/flat-editing.service.js +0 -147
  272. package/dist/npm/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -92
  273. package/dist/npm/drag-and-drop/models/drop-action.js +0 -19
  274. package/dist/npm/drag-and-drop/models/drop-position.js +0 -15
  275. package/dist/npm/drag-and-drop/models/editing-service.js +0 -6
  276. package/dist/npm/drag-and-drop/models/preventable-event.js +0 -31
  277. package/dist/npm/drag-and-drop/models/scroll-direction.js +0 -14
  278. package/dist/npm/drag-and-drop/models/scroll-settings.js +0 -6
  279. package/dist/npm/drag-and-drop/models/tree-item-filter-state.js +0 -6
  280. package/dist/npm/drag-and-drop/models/treeitem-add-remove-args.js +0 -6
  281. package/dist/npm/drag-and-drop/models/treeitem-drag-event.js +0 -16
  282. package/dist/npm/drag-and-drop/models/treeitem-drag-start-event.js +0 -24
  283. package/dist/npm/drag-and-drop/models/treeitem-drop-event.js +0 -38
  284. package/dist/npm/drag-and-drop/models.js +0 -14
  285. package/dist/npm/expand-state.service.js +0 -28
  286. package/dist/npm/expand.directive.js +0 -221
  287. package/dist/npm/expandable-component.js +0 -23
  288. package/dist/npm/filter-expand-settings.interface.js +0 -6
  289. package/dist/npm/filter-state.interface.js +0 -6
  290. package/dist/npm/filtering-base.js +0 -97
  291. package/dist/npm/flat-binding.directive.js +0 -154
  292. package/dist/npm/funcs.js +0 -17
  293. package/dist/npm/hierarchy-binding.directive.js +0 -154
  294. package/dist/npm/index-builder.service.js +0 -40
  295. package/dist/npm/index.js +0 -55
  296. package/dist/npm/load-more/load-more-button-template.directive.js +0 -32
  297. package/dist/npm/load-more/load-more-request-args.js +0 -6
  298. package/dist/npm/load-more/load-more-utils.js +0 -37
  299. package/dist/npm/load-more/load-more.directive.js +0 -116
  300. package/dist/npm/load-more/load-more.service.js +0 -6
  301. package/dist/npm/loading-indicator.directive.js +0 -78
  302. package/dist/npm/loading-notification.service.js +0 -25
  303. package/dist/npm/main.js +0 -50
  304. package/dist/npm/navigation/navigation-item.interface.js +0 -6
  305. package/dist/npm/navigation/navigation-model.js +0 -166
  306. package/dist/npm/navigation/navigation-state.interface.js +0 -6
  307. package/dist/npm/navigation/navigation.service.js +0 -245
  308. package/dist/npm/node-children.service.js +0 -25
  309. package/dist/npm/node-click-event.interface.js +0 -6
  310. package/dist/npm/node-template.directive.js +0 -76
  311. package/dist/npm/package-metadata.js +0 -17
  312. package/dist/npm/selection/select.directive.js +0 -154
  313. package/dist/npm/selection/selectable-settings.js +0 -6
  314. package/dist/npm/selection/selection-mode.js +0 -6
  315. package/dist/npm/selection/selection.service.js +0 -36
  316. package/dist/npm/shared.module.js +0 -77
  317. package/dist/npm/size.js +0 -6
  318. package/dist/npm/treeitem-lookup.interface.js +0 -6
  319. package/dist/npm/treeitem.interface.js +0 -6
  320. package/dist/npm/treeview-filter-settings.js +0 -14
  321. package/dist/npm/treeview-group.component.js +0 -395
  322. package/dist/npm/treeview-item-content.directive.js +0 -87
  323. package/dist/npm/treeview-item.directive.js +0 -308
  324. package/dist/npm/treeview-lookup.service.js +0 -95
  325. package/dist/npm/treeview.component.js +0 -855
  326. package/dist/npm/treeview.module.js +0 -54
  327. package/dist/npm/utils.js +0 -322
  328. package/dist/systemjs/kendo-angular-treeview.js +0 -5
@@ -1,152 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Directive, Input, Optional, Host } from '@angular/core';
7
- import { getter } from '@progress/kendo-common';
8
- import { anyChanged, isChanged } from '@progress/kendo-angular-common';
9
- import { DataBoundComponent } from './data-bound-component';
10
- import { isArrayWithAtLeastOneItem, isPresent } from './utils';
11
- import { of } from 'rxjs';
12
- import { HierarchyEditingService } from './drag-and-drop/editing-services/hierarchy-editing.service';
13
- import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
14
- import { isVisible } from './default-callbacks';
15
- import { IndexBuilderService } from './index-builder.service';
16
- import { FilteringBase } from './filtering-base';
17
- var indexBuilder = new IndexBuilderService();
18
- var mapToWrappers = function (currentLevelNodes, childrenField, parent, parentIndex) {
19
- if (parent === void 0) { parent = null; }
20
- if (parentIndex === void 0) { parentIndex = ''; }
21
- if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
22
- return [];
23
- }
24
- return currentLevelNodes.map(function (node, idx) {
25
- var index = indexBuilder.nodeIndex(idx.toString(), parentIndex);
26
- var wrapper = {
27
- dataItem: node,
28
- index: index,
29
- parent: parent,
30
- visible: true
31
- };
32
- wrapper.children = mapToWrappers(getter(childrenField)(node), childrenField, wrapper, index);
33
- return wrapper;
34
- });
35
- };
36
- var ɵ0 = mapToWrappers;
37
- /**
38
- * A directive which encapsulates the retrieval of child nodes.
39
- */
40
- var HierarchyBindingDirective = /** @class */ (function (_super) {
41
- tslib_1.__extends(HierarchyBindingDirective, _super);
42
- function HierarchyBindingDirective(component, dragAndDropDirective) {
43
- var _this = _super.call(this, component) || this;
44
- _this.component = component;
45
- _this.dragAndDropDirective = dragAndDropDirective;
46
- /**
47
- * @hidden
48
- */
49
- _this.loadOnDemand = true;
50
- _this.originalData = [];
51
- var shouldFilter = !isPresent(_this.dragAndDropDirective);
52
- _this.component.isVisible = shouldFilter ? function (node) { return _this.visibleNodes.has(node); } : isVisible;
53
- return _this;
54
- }
55
- Object.defineProperty(HierarchyBindingDirective.prototype, "childrenField", {
56
- /**
57
- * The field name which holds the data items of the child component.
58
- */
59
- get: function () {
60
- return this._childrenField;
61
- },
62
- /**
63
- * The field name which holds the data items of the child component.
64
- */
65
- set: function (value) {
66
- if (!value) {
67
- throw new Error("'childrenField' cannot be empty");
68
- }
69
- this._childrenField = value;
70
- },
71
- enumerable: true,
72
- configurable: true
73
- });
74
- Object.defineProperty(HierarchyBindingDirective.prototype, "nodes", {
75
- /**
76
- * The nodes which will be displayed by the TreeView.
77
- */
78
- set: function (values) {
79
- this.originalData = values || [];
80
- this.filterData = mapToWrappers(values, this.childrenField) || [];
81
- this.updateVisibleNodes(this.filterData);
82
- },
83
- enumerable: true,
84
- configurable: true
85
- });
86
- Object.defineProperty(HierarchyBindingDirective.prototype, "isVisible", {
87
- /**
88
- * @hidden
89
- * A callback which determines whether a TreeView node should be rendered as hidden.
90
- */
91
- set: function (fn) {
92
- this.component.isVisible = fn;
93
- },
94
- enumerable: true,
95
- configurable: true
96
- });
97
- HierarchyBindingDirective.prototype.ngOnInit = function () {
98
- var _this = this;
99
- if (isPresent(this.childrenField)) {
100
- this.component.children = function (item) { return of(getter(_this.childrenField)(item)); };
101
- this.component.hasChildren = function (item) {
102
- var children = getter(_this.childrenField)(item);
103
- return Boolean(children && children.length);
104
- };
105
- this.component.editService = new HierarchyEditingService(this);
106
- this.component.filterChange.subscribe(this.handleFilterChange.bind(this));
107
- if (this.component.filter) {
108
- this.handleFilterChange(this.component.filter);
109
- }
110
- if (!this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
111
- this.component.preloadChildNodes();
112
- }
113
- }
114
- };
115
- HierarchyBindingDirective.prototype.ngOnChanges = function (changes) {
116
- if (isChanged('childrenField', changes, false)) {
117
- this.nodes = this.originalData;
118
- }
119
- // should react to changes.loadOnDemand as well - should preload the data or clear the already cached items
120
- if (anyChanged(['nodes', 'loadOnDemand'], changes) && !this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
121
- this.component.preloadChildNodes();
122
- }
123
- };
124
- tslib_1.__decorate([
125
- Input(),
126
- tslib_1.__metadata("design:type", String),
127
- tslib_1.__metadata("design:paramtypes", [String])
128
- ], HierarchyBindingDirective.prototype, "childrenField", null);
129
- tslib_1.__decorate([
130
- Input(),
131
- tslib_1.__metadata("design:type", Array),
132
- tslib_1.__metadata("design:paramtypes", [Array])
133
- ], HierarchyBindingDirective.prototype, "nodes", null);
134
- tslib_1.__decorate([
135
- Input(),
136
- tslib_1.__metadata("design:type", Function),
137
- tslib_1.__metadata("design:paramtypes", [Function])
138
- ], HierarchyBindingDirective.prototype, "isVisible", null);
139
- tslib_1.__decorate([
140
- Input(),
141
- tslib_1.__metadata("design:type", Boolean)
142
- ], HierarchyBindingDirective.prototype, "loadOnDemand", void 0);
143
- HierarchyBindingDirective = tslib_1.__decorate([
144
- Directive({ selector: '[kendoTreeViewHierarchyBinding]' }),
145
- tslib_1.__param(1, Optional()), tslib_1.__param(1, Host()),
146
- tslib_1.__metadata("design:paramtypes", [DataBoundComponent,
147
- DragAndDropDirective])
148
- ], HierarchyBindingDirective);
149
- return HierarchyBindingDirective;
150
- }(FilteringBase));
151
- export { HierarchyBindingDirective };
152
- export { ɵ0 };
@@ -1,38 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Injectable } from '@angular/core';
7
- /**
8
- * @hidden
9
- */
10
- var IndexBuilderService = /** @class */ (function () {
11
- function IndexBuilderService() {
12
- this.INDEX_SEPARATOR = '_';
13
- }
14
- IndexBuilderService.prototype.nodeIndex = function (index, parentIndex) {
15
- if (index === void 0) { index = ''; }
16
- if (parentIndex === void 0) { parentIndex = ''; }
17
- return "" + parentIndex + (parentIndex ? this.INDEX_SEPARATOR : '') + index;
18
- };
19
- IndexBuilderService.prototype.indexForLevel = function (index, level) {
20
- return index.split(this.INDEX_SEPARATOR).slice(0, level).join(this.INDEX_SEPARATOR);
21
- };
22
- IndexBuilderService.prototype.lastLevelIndex = function (index) {
23
- if (index === void 0) { index = ''; }
24
- var parts = index.split(this.INDEX_SEPARATOR);
25
- if (!parts.length) {
26
- return NaN;
27
- }
28
- return parseInt(parts[parts.length - 1], 10);
29
- };
30
- IndexBuilderService.prototype.level = function (index) {
31
- return index.split(this.INDEX_SEPARATOR).length;
32
- };
33
- IndexBuilderService = tslib_1.__decorate([
34
- Injectable()
35
- ], IndexBuilderService);
36
- return IndexBuilderService;
37
- }());
38
- export { IndexBuilderService };
package/dist/es/index.js DELETED
@@ -1,30 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
9
- export { CheckBoxComponent } from './checkbox/checkbox.component';
10
- export { CheckBoxModule } from './checkbox/checkbox.module';
11
- export { DataChangeNotificationService } from './data-change-notification.service';
12
- export { DragClueComponent } from './drag-and-drop/drag-clue/drag-clue.component';
13
- export { DragClueService } from './drag-and-drop/drag-clue/drag-clue.service';
14
- export { DropHintComponent } from './drag-and-drop/drop-hint/drop-hint.component';
15
- export { DropHintService } from './drag-and-drop/drop-hint/drop-hint.service';
16
- export { DragAndDropAssetService } from './drag-and-drop/editing-services/drag-and-drop-asset.service';
17
- export { PreventableEvent } from './drag-and-drop/models/preventable-event';
18
- export { ExpandStateService } from './expand-state.service';
19
- export { FilteringBase } from './filtering-base';
20
- export { IndexBuilderService } from './index-builder.service';
21
- export { LoadingIndicatorDirective } from './loading-indicator.directive';
22
- export { LoadingNotificationService } from './loading-notification.service';
23
- export { NavigationService } from './navigation/navigation.service';
24
- export { NodeChildrenService } from './node-children.service';
25
- export { SelectionService } from './selection/selection.service';
26
- export { SharedModule } from './shared.module';
27
- export { TreeViewGroupComponent } from './treeview-group.component';
28
- export { TreeViewItemContentDirective } from './treeview-item-content.directive';
29
- export { TreeViewItemDirective } from './treeview-item.directive';
30
- export { TreeViewLookupService } from './treeview-lookup.service';
@@ -1,30 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Optional, Directive, TemplateRef } from "@angular/core";
7
- /**
8
- * Represents the template for the TreeView load more buttons.
9
- * To define a button template, nest an `<ng-template>`
10
- * tag with the `kendoTreeViewLoadMoreButtonTemplate` directive inside a `<kendo-treeview>` tag
11
- * ([see example]({% slug loadmorebutton_treeview %}#toc-button-template)).
12
- *
13
- * The hierarchical index of the load more button node is available as a context variable:
14
- *
15
- * - `let-index="index"` (`string`)
16
- */
17
- var LoadMoreButtonTemplateDirective = /** @class */ (function () {
18
- function LoadMoreButtonTemplateDirective(templateRef) {
19
- this.templateRef = templateRef;
20
- }
21
- LoadMoreButtonTemplateDirective = tslib_1.__decorate([
22
- Directive({
23
- selector: '[kendoTreeViewLoadMoreButtonTemplate]'
24
- }),
25
- tslib_1.__param(0, Optional()),
26
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
27
- ], LoadMoreButtonTemplateDirective);
28
- return LoadMoreButtonTemplateDirective;
29
- }());
30
- export { LoadMoreButtonTemplateDirective };
@@ -1,35 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { isPresent } from '../utils';
6
- /**
7
- * @hidden
8
- */
9
- export var copyPageSize = function (treeview, source, target) {
10
- if (!isPresent(treeview.loadMoreService)) {
11
- return;
12
- }
13
- var sourceGroupSize = treeview.getNodePageSize(source);
14
- treeview.setNodePageSize(target, sourceGroupSize);
15
- };
16
- /**
17
- * @hidden
18
- */
19
- export var incrementPageSize = function (treeview, dataItem) {
20
- if (!isPresent(treeview.loadMoreService)) {
21
- return;
22
- }
23
- var currentPageSize = treeview.getNodePageSize(dataItem);
24
- treeview.setNodePageSize(dataItem, currentPageSize + 1);
25
- };
26
- /**
27
- * @hidden
28
- */
29
- export var decrementPageSize = function (treeview, dataItem) {
30
- if (!isPresent(treeview.loadMoreService)) {
31
- return;
32
- }
33
- var currentPageSize = treeview.getNodePageSize(dataItem);
34
- treeview.setNodePageSize(dataItem, currentPageSize - 1);
35
- };
@@ -1,114 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Directive, Input, isDevMode } from '@angular/core';
7
- import { guid } from '@progress/kendo-angular-common';
8
- import { TreeViewComponent } from '../treeview.component';
9
- import { isPresent } from '../utils';
10
- var LOAD_MORE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/';
11
- /**
12
- * A directive that enables the display of only a limited amount of nodes per level
13
- * ([see example]({% slug loadmorebutton_treeview %})).
14
- */
15
- var LoadMoreDirective = /** @class */ (function () {
16
- function LoadMoreDirective(treeview) {
17
- this.treeview = treeview;
18
- /**
19
- * Keeps track of the current page size of each node over expand/collapse cycles.
20
- */
21
- this.pageSizes = new Map();
22
- /**
23
- * Used as an identifier for the root page size as the root collection of nodes is not associated with a data item.
24
- */
25
- this.rootLevelId = guid();
26
- this.treeview.loadMoreService = {
27
- getInitialPageSize: this.getInitalPageSize.bind(this),
28
- getGroupSize: this.getGroupSize.bind(this),
29
- setGroupSize: this.setGroupSize.bind(this),
30
- getTotalNodesCount: this.getTotalNodesCount.bind(this)
31
- };
32
- }
33
- Object.defineProperty(LoadMoreDirective.prototype, "loadMoreNodes", {
34
- /**
35
- * Specifies the callback that will be called when the load more button is clicked.
36
- * Providing a function is only required when additional nodes are fetched on demand
37
- * ([see example]({% slug loadmorebutton_treeview %}#toc-remote-data)).
38
- */
39
- set: function (loadMoreNodes) {
40
- if (typeof loadMoreNodes === 'string') {
41
- return;
42
- }
43
- this.treeview.loadMoreService.loadMoreNodes = loadMoreNodes;
44
- },
45
- enumerable: true,
46
- configurable: true
47
- });
48
- LoadMoreDirective.prototype.ngOnChanges = function () {
49
- this.verifySettings();
50
- };
51
- LoadMoreDirective.prototype.verifySettings = function () {
52
- if (!isDevMode()) {
53
- return;
54
- }
55
- if (!isPresent(this.pageSize)) {
56
- throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See " + LOAD_MORE_DOC_LINK + ".");
57
- }
58
- var loadMoreNodes = this.treeview.loadMoreService.loadMoreNodes;
59
- if (isPresent(loadMoreNodes) && typeof loadMoreNodes !== 'function') {
60
- throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See " + LOAD_MORE_DOC_LINK + ".");
61
- }
62
- if (isPresent(loadMoreNodes) && !isPresent(this.totalField)) {
63
- throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See " + LOAD_MORE_DOC_LINK + ".");
64
- }
65
- };
66
- LoadMoreDirective.prototype.getGroupSize = function (dataItem) {
67
- var itemKey = dataItem || this.rootLevelId;
68
- return this.pageSizes.has(itemKey) ? this.pageSizes.get(itemKey) : this.pageSize;
69
- };
70
- LoadMoreDirective.prototype.setGroupSize = function (dataItem, pageSize) {
71
- var itemKey = dataItem || this.rootLevelId;
72
- var normalizedSizeValue = pageSize > 0 ? pageSize : 0;
73
- this.pageSizes.set(itemKey, normalizedSizeValue);
74
- };
75
- LoadMoreDirective.prototype.getTotalNodesCount = function (dataItem, loadedNodesCount) {
76
- if (isPresent(dataItem) && isPresent(this.totalField)) {
77
- return dataItem[this.totalField];
78
- }
79
- else if (!isPresent(dataItem) && isPresent(this.totalRootNodes)) {
80
- return this.totalRootNodes;
81
- }
82
- else {
83
- return loadedNodesCount;
84
- }
85
- };
86
- LoadMoreDirective.prototype.getInitalPageSize = function () {
87
- return this.pageSize;
88
- };
89
- tslib_1.__decorate([
90
- Input('kendoTreeViewLoadMore'),
91
- tslib_1.__metadata("design:type", Object),
92
- tslib_1.__metadata("design:paramtypes", [Object])
93
- ], LoadMoreDirective.prototype, "loadMoreNodes", null);
94
- tslib_1.__decorate([
95
- Input(),
96
- tslib_1.__metadata("design:type", Number)
97
- ], LoadMoreDirective.prototype, "pageSize", void 0);
98
- tslib_1.__decorate([
99
- Input(),
100
- tslib_1.__metadata("design:type", Number)
101
- ], LoadMoreDirective.prototype, "totalRootNodes", void 0);
102
- tslib_1.__decorate([
103
- Input(),
104
- tslib_1.__metadata("design:type", String)
105
- ], LoadMoreDirective.prototype, "totalField", void 0);
106
- LoadMoreDirective = tslib_1.__decorate([
107
- Directive({
108
- selector: '[kendoTreeViewLoadMore]'
109
- }),
110
- tslib_1.__metadata("design:paramtypes", [TreeViewComponent])
111
- ], LoadMoreDirective);
112
- return LoadMoreDirective;
113
- }());
114
- export { LoadMoreDirective };
@@ -1,76 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Directive, ChangeDetectorRef, HostBinding, Input } from '@angular/core';
7
- import { ExpandStateService } from './expand-state.service';
8
- import { LoadingNotificationService } from './loading-notification.service';
9
- import { of } from 'rxjs';
10
- import { delay, filter, switchMap, takeUntil, tap } from 'rxjs/operators';
11
- /**
12
- * @hidden
13
- */
14
- var LoadingIndicatorDirective = /** @class */ (function () {
15
- function LoadingIndicatorDirective(expandService, loadingService, cd) {
16
- this.expandService = expandService;
17
- this.loadingService = loadingService;
18
- this.cd = cd;
19
- this._loading = false;
20
- }
21
- Object.defineProperty(LoadingIndicatorDirective.prototype, "loading", {
22
- get: function () {
23
- return this._loading;
24
- },
25
- set: function (value) {
26
- this._loading = value;
27
- this.cd.markForCheck();
28
- },
29
- enumerable: true,
30
- configurable: true
31
- });
32
- LoadingIndicatorDirective.prototype.ngOnInit = function () {
33
- var _this = this;
34
- var loadingNotifications = this.loadingService
35
- .changes
36
- .pipe(filter(function (index) { return index === _this.index; }));
37
- this.subscription = this.expandService
38
- .changes
39
- .pipe(filter(function (_a) {
40
- var index = _a.index;
41
- return index === _this.index;
42
- }), tap(function (_a) {
43
- var expand = _a.expand;
44
- if (!expand && _this.loading) {
45
- _this.loading = false;
46
- }
47
- }), filter(function (_a) {
48
- var expand = _a.expand;
49
- return expand;
50
- }), switchMap(function (x) { return of(x).pipe(delay(100), takeUntil(loadingNotifications)); }))
51
- .subscribe(function () { return _this.loading = true; });
52
- this.subscription.add(loadingNotifications.subscribe(function () { return _this.loading = false; }));
53
- };
54
- LoadingIndicatorDirective.prototype.ngOnDestroy = function () {
55
- if (this.subscription) {
56
- this.subscription.unsubscribe();
57
- }
58
- };
59
- tslib_1.__decorate([
60
- HostBinding("class.k-i-loading"),
61
- tslib_1.__metadata("design:type", Boolean),
62
- tslib_1.__metadata("design:paramtypes", [Boolean])
63
- ], LoadingIndicatorDirective.prototype, "loading", null);
64
- tslib_1.__decorate([
65
- Input("kendoTreeViewLoading"),
66
- tslib_1.__metadata("design:type", String)
67
- ], LoadingIndicatorDirective.prototype, "index", void 0);
68
- LoadingIndicatorDirective = tslib_1.__decorate([
69
- Directive({ selector: '[kendoTreeViewLoading]' }),
70
- tslib_1.__metadata("design:paramtypes", [ExpandStateService,
71
- LoadingNotificationService,
72
- ChangeDetectorRef])
73
- ], LoadingIndicatorDirective);
74
- return LoadingIndicatorDirective;
75
- }());
76
- export { LoadingIndicatorDirective };
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Injectable } from "@angular/core";
7
- import { Subject } from "rxjs";
8
- /**
9
- * @hidden
10
- */
11
- var LoadingNotificationService = /** @class */ (function () {
12
- function LoadingNotificationService() {
13
- this.changes = new Subject();
14
- }
15
- LoadingNotificationService.prototype.notifyLoaded = function (index) {
16
- this.changes.next(index);
17
- };
18
- LoadingNotificationService = tslib_1.__decorate([
19
- Injectable()
20
- ], LoadingNotificationService);
21
- return LoadingNotificationService;
22
- }());
23
- export { LoadingNotificationService };
@@ -1,162 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IndexBuilderService } from '../index-builder.service';
6
- import { isPresent } from '../utils';
7
- var safe = function (node) { return (node || {}); };
8
- var ɵ0 = safe;
9
- var safeChildren = function (node) { return (safe(node).children || []); };
10
- var ɵ1 = safeChildren;
11
- var lastVisibleNode = function (nodes) {
12
- if (!Array.isArray(nodes) || nodes.length === 0) {
13
- return null;
14
- }
15
- var nodesCount = nodes.length;
16
- var lastIndex = nodesCount - 1;
17
- for (var index = lastIndex; index >= 0; index -= 1) {
18
- var node = nodes[index];
19
- if (node.visible) {
20
- return node;
21
- }
22
- }
23
- return null;
24
- };
25
- var ɵ2 = lastVisibleNode;
26
- /**
27
- * @hidden
28
- */
29
- var NavigationModel = /** @class */ (function () {
30
- function NavigationModel() {
31
- this.ib = new IndexBuilderService();
32
- this.nodes = [];
33
- }
34
- NavigationModel.prototype.firstVisibleNode = function () {
35
- return (this.nodes || []).find(function (node) { return node.visible; });
36
- };
37
- NavigationModel.prototype.lastVisibleNode = function () {
38
- var node = lastVisibleNode(this.nodes);
39
- while (isPresent(node) && safeChildren(node).length > 0) {
40
- var children = safeChildren(node);
41
- var lastVisibleChild = lastVisibleNode(children);
42
- if (!isPresent(lastVisibleChild)) {
43
- return node;
44
- }
45
- node = lastVisibleChild;
46
- }
47
- return node;
48
- };
49
- NavigationModel.prototype.closestNode = function (index) {
50
- var prev = safe(this.findNode(index)).prev;
51
- var sibling = prev || this.firstVisibleNode();
52
- return safe(sibling).index === index ? this.visibleSibling(sibling, 1) : sibling;
53
- };
54
- NavigationModel.prototype.firstFocusableNode = function () {
55
- return this.nodes.find(function (node) {
56
- return !node.disabled && node.visible;
57
- });
58
- };
59
- NavigationModel.prototype.findNode = function (index) {
60
- return this.find(index, this.nodes);
61
- };
62
- NavigationModel.prototype.findParent = function (index) {
63
- var parentLevel = this.ib.level(index) - 1;
64
- return this.findNode(this.ib.indexForLevel(index, parentLevel));
65
- };
66
- NavigationModel.prototype.findVisibleChild = function (index) {
67
- var node = this.findNode(index);
68
- var children = safeChildren(node);
69
- return children.find(function (child) { return child.visible; });
70
- };
71
- NavigationModel.prototype.findVisiblePrev = function (item) {
72
- var index = item.index;
73
- var parent = this.findParent(index);
74
- var levelIndex = this.ib.lastLevelIndex(index);
75
- var prevNodes = this.container(parent).slice(0, levelIndex);
76
- var prevNodesHidden = prevNodes.every(function (node) { return !node.visible; });
77
- if (levelIndex === 0 || prevNodesHidden) {
78
- return parent;
79
- }
80
- var currentNode = this.findNode(index);
81
- var prev = this.visibleSibling(currentNode, -1);
82
- if (prev) {
83
- var children = this.container(prev);
84
- while (children.length > 0 && children.some(function (node) { return node.visible; })) {
85
- prev = lastVisibleNode(children);
86
- children = this.container(prev);
87
- }
88
- }
89
- return prev;
90
- };
91
- NavigationModel.prototype.findVisibleNext = function (item) {
92
- var children = this.container(item);
93
- var hasVisibleChildren = children.some(function (child) { return child.visible; });
94
- if (children.length === 0 || !hasVisibleChildren) {
95
- return this.visibleSibling(item, 1);
96
- }
97
- return children.find(function (child) { return child.visible; });
98
- };
99
- NavigationModel.prototype.registerItem = function (id, index, disabled, loadMoreButton, visible) {
100
- if (loadMoreButton === void 0) { loadMoreButton = false; }
101
- if (visible === void 0) { visible = true; }
102
- var children = [];
103
- var level = this.ib.level(index);
104
- var parent = this.findParent(index);
105
- if (parent || level === 1) {
106
- var node = { id: id, children: children, index: index, parent: parent, disabled: disabled, loadMoreButton: loadMoreButton, visible: visible };
107
- this.insert(node, parent);
108
- }
109
- };
110
- NavigationModel.prototype.unregisterItem = function (id, index) {
111
- var node = this.find(index, this.nodes);
112
- if (!node || node.id !== id) {
113
- return;
114
- }
115
- var children = this.container(node.parent);
116
- children.splice(children.indexOf(node), 1);
117
- };
118
- NavigationModel.prototype.childLevel = function (nodes) {
119
- var children = nodes.filter(function (node) { return isPresent(node); });
120
- if (!children || !children.length) {
121
- return 1;
122
- }
123
- return this.ib.level(children[0].index);
124
- };
125
- NavigationModel.prototype.container = function (node) {
126
- return node ? node.children : this.nodes;
127
- };
128
- NavigationModel.prototype.find = function (index, nodes) {
129
- var childLevel = this.childLevel(nodes);
130
- var indexToMatch = this.ib.indexForLevel(index, childLevel);
131
- var isLeaf = childLevel === this.ib.level(index);
132
- var node = nodes.find(function (n) { return n && n.index === indexToMatch; });
133
- if (!node) {
134
- return null;
135
- }
136
- return isLeaf ? node : this.find(index, node.children);
137
- };
138
- NavigationModel.prototype.insert = function (node, parent) {
139
- var nodes = this.container(parent);
140
- nodes.splice(this.ib.lastLevelIndex(node.index), 0, node);
141
- };
142
- NavigationModel.prototype.visibleSibling = function (node, offset) {
143
- if (!node) {
144
- return null;
145
- }
146
- var parent = this.findParent(node.index);
147
- var container = this.container(parent);
148
- var nextItemIndex = container.indexOf(node) + offset;
149
- var nextItem = container[nextItemIndex];
150
- while (isPresent(nextItem)) {
151
- if (nextItem.visible) {
152
- return nextItem;
153
- }
154
- nextItemIndex += offset;
155
- nextItem = container[nextItemIndex];
156
- }
157
- return this.visibleSibling(parent, offset);
158
- };
159
- return NavigationModel;
160
- }());
161
- export { NavigationModel };
162
- export { ɵ0, ɵ1, ɵ2 };