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

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 +36 -104
  142. package/schematics/ngAdd/index.js +5 -2
  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,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,285 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var treeview_component_1 = require("./treeview.component");
10
- var utils_1 = require("./utils");
11
- var rxjs_1 = require("rxjs");
12
- var operators_1 = require("rxjs/operators");
13
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
14
- var indexChecked = function (keys, index) { return keys.filter(function (k) { return k === index; }).length > 0; };
15
- var ɵ0 = indexChecked;
16
- exports.ɵ0 = ɵ0;
17
- var matchKey = function (index) { return function (k) {
18
- if (index === k) {
19
- return true;
20
- }
21
- if (!k.split) {
22
- return false;
23
- }
24
- return k.split('_').reduce(function (_a, part) {
25
- var key = _a.key, result = _a.result;
26
- key += part;
27
- if (index === key || result) {
28
- return { result: true };
29
- }
30
- key += "_";
31
- return { key: key, result: false };
32
- }, { key: "", result: false }).result;
33
- }; };
34
- var ɵ1 = matchKey;
35
- exports.ɵ1 = ɵ1;
36
- /**
37
- * A directive which manages the in-memory checked state of the TreeView node
38
- * ([see example]({% slug checkboxes_treeview %})).
39
- */
40
- var CheckDirective = /** @class */ (function () {
41
- function CheckDirective(treeView, zone) {
42
- var _this = this;
43
- this.treeView = treeView;
44
- this.zone = zone;
45
- /**
46
- * Fires when the `checkedKeys` collection was updated.
47
- */
48
- this.checkedKeysChange = new core_1.EventEmitter();
49
- this.subscriptions = new rxjs_1.Subscription();
50
- this.checkActions = {
51
- 'multiple': function (e) { return _this.checkMultiple(e); },
52
- 'single': function (e) { return _this.checkSingle(e); }
53
- };
54
- /**
55
- * Reflectes the internal `checkedKeys` state.
56
- */
57
- this.state = new Set();
58
- this.subscriptions.add(this.treeView.checkedChange
59
- .subscribe(function (e) { return _this.check(e); }));
60
- var expandedItems = [];
61
- this.subscriptions.add(this.treeView.childrenLoaded
62
- .pipe(operators_1.filter(function () { return _this.options.checkChildren && _this.treeView.loadOnDemand; }), operators_1.tap(function (item) { return expandedItems.push(item); }), operators_1.switchMap(function () { return _this.zone.onStable.pipe(operators_1.take(1)); }))
63
- .subscribe(function () { return _this.addCheckedItemsChildren(expandedItems); }));
64
- this.treeView.isChecked = this.isItemChecked.bind(this);
65
- }
66
- Object.defineProperty(CheckDirective.prototype, "isChecked", {
67
- /**
68
- * @hidden
69
- */
70
- set: function (value) {
71
- this.treeView.isChecked = value;
72
- },
73
- enumerable: true,
74
- configurable: true
75
- });
76
- Object.defineProperty(CheckDirective.prototype, "options", {
77
- get: function () {
78
- var defaultOptions = {
79
- checkChildren: true,
80
- checkParents: true,
81
- enabled: true,
82
- mode: "multiple"
83
- };
84
- if (!utils_1.isPresent(this.checkable) || typeof this.checkable === 'string') {
85
- return defaultOptions;
86
- }
87
- var checkSettings = utils_1.isBoolean(this.checkable)
88
- ? { enabled: this.checkable }
89
- : this.checkable;
90
- return Object.assign(defaultOptions, checkSettings);
91
- },
92
- enumerable: true,
93
- configurable: true
94
- });
95
- CheckDirective.prototype.ngOnChanges = function (changes) {
96
- if (changes.checkable) {
97
- this.treeView.checkboxes = this.options.enabled;
98
- this.toggleCheckOnClick();
99
- }
100
- if (kendo_angular_common_1.isChanged('checkedKeys', changes, false) && changes.checkedKeys.currentValue !== this.lastChange) {
101
- this.state = new Set(changes.checkedKeys.currentValue);
102
- }
103
- };
104
- CheckDirective.prototype.ngOnDestroy = function () {
105
- this.subscriptions.unsubscribe();
106
- this.unsubscribeClick();
107
- };
108
- CheckDirective.prototype.isItemChecked = function (dataItem, index) {
109
- if (!this.checkKey) {
110
- return this.isIndexChecked(index);
111
- }
112
- var hasKey = this.state.has(this.itemKey({ dataItem: dataItem, index: index }));
113
- return hasKey ? 'checked' : 'none';
114
- };
115
- CheckDirective.prototype.isIndexChecked = function (index) {
116
- var checkedKeys = Array.from(this.state).filter(matchKey(index));
117
- if (indexChecked(checkedKeys, index)) {
118
- return 'checked';
119
- }
120
- var _a = this.options, mode = _a.mode, checkParents = _a.checkParents;
121
- if (mode === 'multiple' && checkParents && checkedKeys.length) {
122
- return 'indeterminate';
123
- }
124
- return 'none';
125
- };
126
- CheckDirective.prototype.itemKey = function (item) {
127
- if (!utils_1.isPresent(this.checkKey)) {
128
- return item.index;
129
- }
130
- if (typeof this.checkKey === "string" && utils_1.isPresent(item.dataItem)) {
131
- return item.dataItem[this.checkKey];
132
- }
133
- if (typeof this.checkKey === "function") {
134
- return this.checkKey(item);
135
- }
136
- };
137
- CheckDirective.prototype.check = function (e) {
138
- var _a = this.options, enabled = _a.enabled, mode = _a.mode;
139
- var performSelection = this.checkActions[mode] || utils_1.noop;
140
- if (!enabled) {
141
- return;
142
- }
143
- performSelection(e);
144
- };
145
- CheckDirective.prototype.checkSingle = function (node) {
146
- var key = this.itemKey(node.item);
147
- var hasKey = this.state.has(key);
148
- this.state.clear();
149
- if (!hasKey) {
150
- this.state.add(key);
151
- }
152
- this.notify();
153
- };
154
- CheckDirective.prototype.checkMultiple = function (node) {
155
- this.checkNode(node);
156
- if (this.options.checkParents) {
157
- this.checkParents(node.parent);
158
- }
159
- this.notify();
160
- };
161
- CheckDirective.prototype.toggleCheckOnClick = function () {
162
- var _this = this;
163
- this.unsubscribeClick();
164
- if (this.options.checkOnClick) {
165
- this.clickSubscription = this.treeView.nodeClick.subscribe(function (args) {
166
- if (args.type === 'click') {
167
- var lookup = _this.treeView.itemLookup(args.item.index);
168
- _this.check(lookup);
169
- }
170
- });
171
- }
172
- };
173
- CheckDirective.prototype.unsubscribeClick = function () {
174
- if (this.clickSubscription) {
175
- this.clickSubscription.unsubscribe();
176
- this.clickSubscription = null;
177
- }
178
- };
179
- CheckDirective.prototype.checkNode = function (node) {
180
- var _this = this;
181
- if (!utils_1.isPresent(node.item.dataItem) || this.treeView.isDisabled(node.item.dataItem, node.item.index)) {
182
- return;
183
- }
184
- var currentKey = this.itemKey(node.item);
185
- if (!utils_1.isPresent(currentKey)) {
186
- return;
187
- }
188
- var pendingCheck = [currentKey];
189
- if (this.options.checkChildren) {
190
- var descendants = utils_1.fetchLoadedDescendants(node, function (_a) {
191
- var item = _a.item;
192
- return _this.treeView.isVisible(item.dataItem, item.index) &&
193
- !_this.treeView.isDisabled(item.dataItem, item.index);
194
- })
195
- .map(function (_a) {
196
- var item = _a.item;
197
- return _this.itemKey(item);
198
- });
199
- pendingCheck.push.apply(pendingCheck, descendants);
200
- }
201
- var shouldCheck = !this.state.has(currentKey);
202
- pendingCheck.forEach(function (key) {
203
- if (shouldCheck) {
204
- _this.state.add(key);
205
- }
206
- else {
207
- _this.state.delete(key);
208
- }
209
- });
210
- };
211
- CheckDirective.prototype.checkParents = function (parent) {
212
- var _this = this;
213
- if (!utils_1.isPresent(parent)) {
214
- return;
215
- }
216
- var currentParent = parent;
217
- while (currentParent) {
218
- var parentKey = this.itemKey(currentParent.item);
219
- var allChildrenSelected = currentParent.children.every(function (item) { return _this.state.has(_this.itemKey(item)); });
220
- if (allChildrenSelected) {
221
- this.state.add(parentKey);
222
- }
223
- else {
224
- this.state.delete(parentKey);
225
- }
226
- currentParent = currentParent.parent;
227
- }
228
- };
229
- CheckDirective.prototype.notify = function () {
230
- this.lastChange = Array.from(this.state);
231
- this.checkedKeysChange.emit(this.lastChange);
232
- };
233
- CheckDirective.prototype.addCheckedItemsChildren = function (lookups) {
234
- var _this = this;
235
- if (!utils_1.isPresent(lookups) || lookups.length === 0) {
236
- return;
237
- }
238
- var initiallyCheckedItemsCount = this.state.size;
239
- lookups.forEach(function (lookup) {
240
- var itemKey = _this.itemKey(lookup.item);
241
- if (!_this.state.has(itemKey)) {
242
- return;
243
- }
244
- lookup.children.forEach(function (item) {
245
- // ensure both the parent item and each child node is enabled
246
- if (!_this.treeView.isDisabled(lookup.item.dataItem, lookup.item.index) &&
247
- !_this.treeView.isDisabled(item.dataItem, item.index)) {
248
- _this.state.add(_this.itemKey(item));
249
- }
250
- });
251
- });
252
- var hasNewlyCheckedItems = initiallyCheckedItemsCount !== this.state.size;
253
- if (hasNewlyCheckedItems) {
254
- this.zone.run(function () { return _this.notify(); });
255
- }
256
- };
257
- tslib_1.__decorate([
258
- core_1.Input(),
259
- tslib_1.__metadata("design:type", Function),
260
- tslib_1.__metadata("design:paramtypes", [Function])
261
- ], CheckDirective.prototype, "isChecked", null);
262
- tslib_1.__decorate([
263
- core_1.Input("checkBy"),
264
- tslib_1.__metadata("design:type", Object)
265
- ], CheckDirective.prototype, "checkKey", void 0);
266
- tslib_1.__decorate([
267
- core_1.Input(),
268
- tslib_1.__metadata("design:type", Array)
269
- ], CheckDirective.prototype, "checkedKeys", void 0);
270
- tslib_1.__decorate([
271
- core_1.Input('kendoTreeViewCheckable'),
272
- tslib_1.__metadata("design:type", Object)
273
- ], CheckDirective.prototype, "checkable", void 0);
274
- tslib_1.__decorate([
275
- core_1.Output(),
276
- tslib_1.__metadata("design:type", core_1.EventEmitter)
277
- ], CheckDirective.prototype, "checkedKeysChange", void 0);
278
- CheckDirective = tslib_1.__decorate([
279
- core_1.Directive({ selector: '[kendoTreeViewCheckable]' }),
280
- tslib_1.__metadata("design:paramtypes", [treeview_component_1.TreeViewComponent,
281
- core_1.NgZone])
282
- ], CheckDirective);
283
- return CheckDirective;
284
- }());
285
- exports.CheckDirective = CheckDirective;
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,129 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
10
- var utils_1 = require("../utils");
11
- /**
12
- * @hidden
13
- *
14
- * Represents the CheckBox component of the Kendo UI TreeView for Angular.
15
- *
16
- */
17
- var CheckBoxComponent = /** @class */ (function () {
18
- function CheckBoxComponent(element, renderer, changeDetector) {
19
- this.element = element;
20
- this.renderer = renderer;
21
- this.changeDetector = changeDetector;
22
- /**
23
- * Specifies the [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component.
24
- */
25
- this.id = "_" + kendo_angular_common_1.guid();
26
- /**
27
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
28
- */
29
- this.tabindex = 0;
30
- /**
31
- * Specifies the size of the component.
32
- */
33
- this.size = 'medium';
34
- /**
35
- * Fires when the user changes the check state of the component.
36
- */
37
- this.checkStateChange = new core_1.EventEmitter();
38
- this.checkState = 'none';
39
- }
40
- Object.defineProperty(CheckBoxComponent.prototype, "classWrapper", {
41
- //XXX: implement ComponentValueAccessor
42
- //XXX: focus/blur methods
43
- get: function () { return true; },
44
- enumerable: true,
45
- configurable: true
46
- });
47
- Object.defineProperty(CheckBoxComponent.prototype, "indeterminate", {
48
- get: function () {
49
- return this.checkState === 'indeterminate';
50
- },
51
- enumerable: true,
52
- configurable: true
53
- });
54
- Object.defineProperty(CheckBoxComponent.prototype, "checked", {
55
- get: function () {
56
- return this.checkState === 'checked';
57
- },
58
- enumerable: true,
59
- configurable: true
60
- });
61
- Object.defineProperty(CheckBoxComponent.prototype, "checkBoxClasses", {
62
- get: function () {
63
- return "k-checkbox " + (this.size ? utils_1.getSizeClass('checkbox', this.size) : '') + " k-rounded-md";
64
- },
65
- enumerable: true,
66
- configurable: true
67
- });
68
- CheckBoxComponent.prototype.ngOnInit = function () {
69
- this.renderer.removeAttribute(this.element.nativeElement, "tabindex");
70
- };
71
- CheckBoxComponent.prototype.ngDoCheck = function () {
72
- this.checkState = this.isChecked(this.node, this.index);
73
- };
74
- CheckBoxComponent.prototype.handleChange = function (e) {
75
- var state = e.target.checked ? 'checked' : 'none';
76
- // update the View State so that Angular updates the input if the isChecked value is the same
77
- this.checkState = state;
78
- this.changeDetector.detectChanges();
79
- this.checkStateChange.emit(state);
80
- };
81
- tslib_1.__decorate([
82
- core_1.HostBinding('class.k-checkbox-wrapper'),
83
- tslib_1.__metadata("design:type", Boolean),
84
- tslib_1.__metadata("design:paramtypes", [])
85
- ], CheckBoxComponent.prototype, "classWrapper", null);
86
- tslib_1.__decorate([
87
- core_1.Input(),
88
- tslib_1.__metadata("design:type", String)
89
- ], CheckBoxComponent.prototype, "id", void 0);
90
- tslib_1.__decorate([
91
- core_1.Input(),
92
- tslib_1.__metadata("design:type", Object)
93
- ], CheckBoxComponent.prototype, "isChecked", void 0);
94
- tslib_1.__decorate([
95
- core_1.Input(),
96
- tslib_1.__metadata("design:type", Object)
97
- ], CheckBoxComponent.prototype, "node", void 0);
98
- tslib_1.__decorate([
99
- core_1.Input(),
100
- tslib_1.__metadata("design:type", String)
101
- ], CheckBoxComponent.prototype, "index", void 0);
102
- tslib_1.__decorate([
103
- core_1.Input(),
104
- tslib_1.__metadata("design:type", String)
105
- ], CheckBoxComponent.prototype, "labelText", void 0);
106
- tslib_1.__decorate([
107
- core_1.Input(),
108
- tslib_1.__metadata("design:type", Number)
109
- ], CheckBoxComponent.prototype, "tabindex", void 0);
110
- tslib_1.__decorate([
111
- core_1.Input(),
112
- tslib_1.__metadata("design:type", String)
113
- ], CheckBoxComponent.prototype, "size", void 0);
114
- tslib_1.__decorate([
115
- core_1.Output(),
116
- tslib_1.__metadata("design:type", core_1.EventEmitter)
117
- ], CheckBoxComponent.prototype, "checkStateChange", void 0);
118
- CheckBoxComponent = tslib_1.__decorate([
119
- core_1.Component({
120
- selector: 'kendo-checkbox',
121
- template: "\n <input\n type=\"checkbox\"\n [class]=\"checkBoxClasses\"\n [id]=\"id\"\n [checked]=\"checked\"\n [indeterminate]=\"indeterminate\"\n [tabindex]=\"tabindex\"\n (change)=\"handleChange($event)\"\n />\n <label\n class=\"k-checkbox-label\"\n tabindex=\"-1\"\n [for]=\"id\"\n >{{labelText}}</label>\n "
122
- }),
123
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
124
- core_1.Renderer2,
125
- core_1.ChangeDetectorRef])
126
- ], CheckBoxComponent);
127
- return CheckBoxComponent;
128
- }());
129
- exports.CheckBoxComponent = CheckBoxComponent;
@@ -1,29 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var checkbox_component_1 = require("./checkbox.component");
10
- var COMPONENT_DIRECTIVES = [
11
- checkbox_component_1.CheckBoxComponent
12
- ];
13
- /**
14
- * @hidden
15
- *
16
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the CheckBox component.
17
- */
18
- var CheckBoxModule = /** @class */ (function () {
19
- function CheckBoxModule() {
20
- }
21
- CheckBoxModule = tslib_1.__decorate([
22
- core_1.NgModule({
23
- declarations: [COMPONENT_DIRECTIVES],
24
- exports: [COMPONENT_DIRECTIVES]
25
- })
26
- ], CheckBoxModule);
27
- return CheckBoxModule;
28
- }());
29
- exports.CheckBoxModule = CheckBoxModule;
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- /**
10
- * @hidden
11
- *
12
- * An injection token used by the data binding directives to interface with
13
- * the TreeView or the DropDownTree components.
14
- */
15
- var DataBoundComponent = /** @class */ (function () {
16
- function DataBoundComponent() {
17
- }
18
- DataBoundComponent = tslib_1.__decorate([
19
- core_1.Injectable()
20
- ], DataBoundComponent);
21
- return DataBoundComponent;
22
- }());
23
- exports.DataBoundComponent = DataBoundComponent;
@@ -1,20 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var core_1 = require("@angular/core");
8
- /**
9
- * @hidden
10
- */
11
- var DataChangeNotificationService = /** @class */ (function () {
12
- function DataChangeNotificationService() {
13
- this.changes = new core_1.EventEmitter();
14
- }
15
- DataChangeNotificationService.prototype.notify = function () {
16
- this.changes.emit();
17
- };
18
- return DataChangeNotificationService;
19
- }());
20
- exports.DataChangeNotificationService = DataChangeNotificationService;
@@ -1,34 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * @hidden
9
- */
10
- exports.hasChildren = function () { return false; };
11
- /**
12
- * @hidden
13
- */
14
- exports.isChecked = function () { return 'none'; };
15
- /**
16
- * @hidden
17
- */
18
- exports.isDisabled = function () { return false; };
19
- /**
20
- * @hidden
21
- */
22
- exports.isExpanded = function () { return true; };
23
- /**
24
- * @hidden
25
- */
26
- exports.isSelected = function () { return false; };
27
- /**
28
- * @hidden
29
- */
30
- exports.isVisible = function () { return true; };
31
- /**
32
- * @hidden
33
- */
34
- exports.trackBy = function (_, item) { return item; };
@@ -1,73 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var treeview_component_1 = require("./treeview.component");
10
- /**
11
- * A directive which manages the disabled in-memory state of the TreeView node
12
- * ([see example]({% slug disabledstate_treeview %})).
13
- */
14
- var DisableDirective = /** @class */ (function () {
15
- function DisableDirective(treeView, cdr) {
16
- var _this = this;
17
- this.treeView = treeView;
18
- this.cdr = cdr;
19
- /**
20
- * Defines the collection that will store the disabled keys.
21
- */
22
- this.disabledKeys = [];
23
- this.treeView.isDisabled = function (dataItem, index) { return (_this.disabledKeys.indexOf(_this.itemKey({ dataItem: dataItem, index: index })) > -1); };
24
- }
25
- Object.defineProperty(DisableDirective.prototype, "isDisabled", {
26
- /**
27
- * @hidden
28
- */
29
- set: function (value) {
30
- this.treeView.isDisabled = value;
31
- },
32
- enumerable: true,
33
- configurable: true
34
- });
35
- DisableDirective.prototype.ngOnChanges = function (changes) {
36
- if (changes === void 0) { changes = {}; }
37
- var disabledKeys = changes.disabledKeys;
38
- if (disabledKeys && !disabledKeys.firstChange) {
39
- this.cdr.markForCheck();
40
- }
41
- };
42
- DisableDirective.prototype.itemKey = function (e) {
43
- if (!this.disableKey) {
44
- return e.index;
45
- }
46
- if (typeof this.disableKey === "string") {
47
- return e.dataItem[this.disableKey];
48
- }
49
- if (typeof this.disableKey === "function") {
50
- return this.disableKey(e);
51
- }
52
- };
53
- tslib_1.__decorate([
54
- core_1.Input(),
55
- tslib_1.__metadata("design:type", Function),
56
- tslib_1.__metadata("design:paramtypes", [Function])
57
- ], DisableDirective.prototype, "isDisabled", null);
58
- tslib_1.__decorate([
59
- core_1.Input("kendoTreeViewDisable"),
60
- tslib_1.__metadata("design:type", Object)
61
- ], DisableDirective.prototype, "disableKey", void 0);
62
- tslib_1.__decorate([
63
- core_1.Input(),
64
- tslib_1.__metadata("design:type", Array)
65
- ], DisableDirective.prototype, "disabledKeys", void 0);
66
- DisableDirective = tslib_1.__decorate([
67
- core_1.Directive({ selector: '[kendoTreeViewDisable]' }),
68
- tslib_1.__metadata("design:paramtypes", [treeview_component_1.TreeViewComponent,
69
- core_1.ChangeDetectorRef])
70
- ], DisableDirective);
71
- return DisableDirective;
72
- }());
73
- exports.DisableDirective = DisableDirective;