@progress/kendo-angular-dropdowns 6.0.2-dev.202202251358 → 7.0.0-next.202203232111

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 (347) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +34 -22
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +40 -26
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +0 -0
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +0 -0
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
  34. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +48 -35
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +5 -5
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +4 -10
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +5 -5
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +4 -10
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +49 -32
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +57 -39
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +264 -232
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +289 -255
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +362 -300
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +28 -42
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +39 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +35 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +38 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +35 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +373 -315
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +427 -346
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +11 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +335 -288
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +7873 -7141
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +12 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +41 -26
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +37 -113
  160. package/schematics/ngAdd/index.js +5 -2
  161. package/schematics/ngAdd/index.js.map +1 -1
  162. package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
  163. package/dist/cdn/main.js +0 -5
  164. package/dist/es/autocomplete/autocomplete.component.js +0 -1201
  165. package/dist/es/autocomplete/autocomplete.module.js +0 -36
  166. package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
  167. package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
  168. package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
  169. package/dist/es/comboboxes/combobox-column/util.js +0 -57
  170. package/dist/es/comboboxes/combobox.component.js +0 -1622
  171. package/dist/es/comboboxes/combobox.module.js +0 -52
  172. package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
  173. package/dist/es/common/constants/error-messages.js +0 -62
  174. package/dist/es/common/constants/touch-enabled.js +0 -9
  175. package/dist/es/common/data.service.js +0 -250
  176. package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
  177. package/dist/es/common/disabled-items/item-disabled.js +0 -4
  178. package/dist/es/common/filter-input.directive.js +0 -37
  179. package/dist/es/common/filtering/filter-settings.js +0 -4
  180. package/dist/es/common/filtering/filter.directive.js +0 -141
  181. package/dist/es/common/filtering/filterable-component.js +0 -17
  182. package/dist/es/common/list-item.directive.js +0 -22
  183. package/dist/es/common/list.component.js +0 -503
  184. package/dist/es/common/localization/custom-messages.component.js +0 -44
  185. package/dist/es/common/localization/localized-messages.directive.js +0 -35
  186. package/dist/es/common/localization/messages.js +0 -34
  187. package/dist/es/common/models/checkboxes-settings.js +0 -15
  188. package/dist/es/common/models/direction.js +0 -4
  189. package/dist/es/common/models/preventable-event.js +0 -29
  190. package/dist/es/common/models/remove-tag-event.js +0 -24
  191. package/dist/es/common/models/virtualization-settings.js +0 -25
  192. package/dist/es/common/navigation/navigation.service.js +0 -147
  193. package/dist/es/common/searchbar.component.js +0 -253
  194. package/dist/es/common/selection/selectable.directive.js +0 -93
  195. package/dist/es/common/selection/selection.service.js +0 -107
  196. package/dist/es/common/shared-directives.module.js +0 -60
  197. package/dist/es/common/shared.module.js +0 -45
  198. package/dist/es/common/taglist.component.js +0 -179
  199. package/dist/es/common/templates/custom-item-template.directive.js +0 -47
  200. package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
  201. package/dist/es/common/templates/footer-template.directive.js +0 -47
  202. package/dist/es/common/templates/group-tag-template.directive.js +0 -46
  203. package/dist/es/common/templates/group-template.directive.js +0 -54
  204. package/dist/es/common/templates/header-template.directive.js +0 -47
  205. package/dist/es/common/templates/item-template.directive.js +0 -46
  206. package/dist/es/common/templates/no-data-template.directive.js +0 -48
  207. package/dist/es/common/templates/tag-template.directive.js +0 -45
  208. package/dist/es/common/templates/template-context.directive.js +0 -40
  209. package/dist/es/common/templates/value-template.directive.js +0 -49
  210. package/dist/es/common/util.js +0 -337
  211. package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
  212. package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
  213. package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
  214. package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
  215. package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
  216. package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
  217. package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
  218. package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
  219. package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
  220. package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
  221. package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
  222. package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
  223. package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
  224. package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
  225. package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
  226. package/dist/es/index.js +0 -30
  227. package/dist/es/multiselect/multiselect.component.js +0 -1734
  228. package/dist/es/multiselect/multiselect.module.js +0 -50
  229. package/dist/es/multiselect/summary-tag.directive.js +0 -65
  230. package/dist/es/package-metadata.js +0 -15
  231. package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
  232. package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
  233. package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
  234. package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
  235. package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
  236. package/dist/es2015/common/filter-input.directive.js +0 -35
  237. package/dist/es2015/common/list-item.directive.js +0 -21
  238. package/dist/es2015/common/localization/custom-messages.component.js +0 -36
  239. package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
  240. package/dist/es2015/common/localization/messages.js +0 -28
  241. package/dist/es2015/common/models/fillmode.js +0 -4
  242. package/dist/es2015/common/models/list-type.js +0 -4
  243. package/dist/es2015/common/models/page-change-event.js +0 -4
  244. package/dist/es2015/common/models/popup-settings.js +0 -4
  245. package/dist/es2015/common/models/rounded.js +0 -4
  246. package/dist/es2015/common/models/size.js +0 -4
  247. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  248. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  249. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  250. package/dist/es2015/common/shared.module.js +0 -42
  251. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  252. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  253. package/dist/es2015/dropdowns.module.js +0 -50
  254. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  255. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  256. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  258. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  260. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  262. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  263. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  264. package/dist/es2015/index.d.ts +0 -30
  265. package/dist/es2015/index.js +0 -30
  266. package/dist/es2015/index.metadata.json +0 -1
  267. package/dist/es2015/main.js +0 -44
  268. package/dist/fesm5/index.js +0 -13097
  269. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  270. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  271. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  272. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  273. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  274. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  275. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  276. package/dist/npm/comboboxes/combobox.module.js +0 -54
  277. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  278. package/dist/npm/common/constants/error-messages.js +0 -64
  279. package/dist/npm/common/constants/touch-enabled.js +0 -11
  280. package/dist/npm/common/data.service.js +0 -252
  281. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  282. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  283. package/dist/npm/common/filter-input.directive.js +0 -39
  284. package/dist/npm/common/filtering/filter-settings.js +0 -6
  285. package/dist/npm/common/filtering/filter.directive.js +0 -143
  286. package/dist/npm/common/filtering/filterable-component.js +0 -19
  287. package/dist/npm/common/list-item.directive.js +0 -24
  288. package/dist/npm/common/list.component.js +0 -505
  289. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  290. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  291. package/dist/npm/common/localization/messages.js +0 -36
  292. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  293. package/dist/npm/common/models/direction.js +0 -6
  294. package/dist/npm/common/models/fillmode.js +0 -6
  295. package/dist/npm/common/models/list-type.js +0 -6
  296. package/dist/npm/common/models/page-change-event.js +0 -6
  297. package/dist/npm/common/models/popup-settings.js +0 -6
  298. package/dist/npm/common/models/preventable-event.js +0 -31
  299. package/dist/npm/common/models/remove-tag-event.js +0 -26
  300. package/dist/npm/common/models/rounded.js +0 -6
  301. package/dist/npm/common/models/size.js +0 -6
  302. package/dist/npm/common/models/virtualization-settings.js +0 -27
  303. package/dist/npm/common/navigation/navigation-action.js +0 -26
  304. package/dist/npm/common/navigation/navigation.service.js +0 -149
  305. package/dist/npm/common/searchbar.component.js +0 -255
  306. package/dist/npm/common/selection/selectable.directive.js +0 -95
  307. package/dist/npm/common/selection/selection.service.js +0 -109
  308. package/dist/npm/common/shared-directives.module.js +0 -62
  309. package/dist/npm/common/shared.module.js +0 -47
  310. package/dist/npm/common/taglist.component.js +0 -181
  311. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  312. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  313. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  314. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  315. package/dist/npm/common/templates/group-template.directive.js +0 -56
  316. package/dist/npm/common/templates/header-template.directive.js +0 -49
  317. package/dist/npm/common/templates/item-template.directive.js +0 -48
  318. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  319. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  320. package/dist/npm/common/templates/template-context.directive.js +0 -42
  321. package/dist/npm/common/templates/value-template.directive.js +0 -51
  322. package/dist/npm/common/util.js +0 -339
  323. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  324. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  325. package/dist/npm/dropdowns.module.js +0 -55
  326. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  327. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  328. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  329. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  330. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  331. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  333. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  335. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  336. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  337. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  338. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  339. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  340. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  341. package/dist/npm/index.js +0 -55
  342. package/dist/npm/main.js +0 -86
  343. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  344. package/dist/npm/multiselect/multiselect.module.js +0 -52
  345. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  346. package/dist/npm/package-metadata.js +0 -17
  347. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,39 +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 dropdownlist_component_1 = require("./dropdownlist.component");
10
- var shared_module_1 = require("../common/shared.module");
11
- var shared_directives_module_1 = require("../common/shared-directives.module");
12
- var DROPDOWNLIST_DIRECTIVES = [
13
- dropdownlist_component_1.DropDownListComponent
14
- ];
15
- /**
16
- * @hidden
17
- *
18
- * The exported package module.
19
- *
20
- * The package exports:
21
- * - `DropDownListComponent`—The DropDownList component class.
22
- * - `ItemTemplateDirective`—The item template directive.
23
- * - `ValueTemplateDirective`—The value template directive.
24
- * - `HeaderTemplateDirective`—The header template directive.
25
- * - `FooterTemplateDirective`—The footer template directive.
26
- */
27
- var DropDownListModule = /** @class */ (function () {
28
- function DropDownListModule() {
29
- }
30
- DropDownListModule = tslib_1.__decorate([
31
- core_1.NgModule({
32
- declarations: [DROPDOWNLIST_DIRECTIVES],
33
- exports: [DROPDOWNLIST_DIRECTIVES, shared_directives_module_1.SharedDirectivesModule],
34
- imports: [shared_module_1.SharedModule]
35
- })
36
- ], DropDownListModule);
37
- return DropDownListModule;
38
- }());
39
- exports.DropDownListModule = DropDownListModule;
@@ -1,55 +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 autocomplete_module_1 = require("./autocomplete/autocomplete.module");
10
- var combobox_module_1 = require("./comboboxes/combobox.module");
11
- var dropdownlist_module_1 = require("./dropdownlist/dropdownlist.module");
12
- var multiselect_module_1 = require("./multiselect/multiselect.module");
13
- var dropdowntrees_module_1 = require("./dropdowntrees/dropdowntrees.module");
14
- /**
15
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
16
- * definition for the Dropdowns components.
17
- *
18
- * @example
19
- *
20
- * ```ts-no-run
21
- * // Import the Dropdowns module
22
- * import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
23
- *
24
- * // The browser platform with a compiler
25
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
26
- *
27
- * import { NgModule } from '@angular/core';
28
- *
29
- * // Import the app component
30
- * import { AppComponent } from './app.component';
31
- *
32
- * // Define the app module
33
- * _@NgModule({
34
- * declarations: [AppComponent], // declare the app component
35
- * imports: [BrowserModule, DropDownsModule], // import the Dropdowns module
36
- * bootstrap: [AppComponent]
37
- * })
38
- * export class AppModule {}
39
- *
40
- * // Compile and launch the module
41
- * platformBrowserDynamic().bootstrapModule(AppModule);
42
- *
43
- * ```
44
- */
45
- var DropDownsModule = /** @class */ (function () {
46
- function DropDownsModule() {
47
- }
48
- DropDownsModule = tslib_1.__decorate([
49
- core_1.NgModule({
50
- exports: [autocomplete_module_1.AutoCompleteModule, combobox_module_1.ComboBoxModule, dropdownlist_module_1.DropDownListModule, multiselect_module_1.MultiSelectModule, dropdowntrees_module_1.DropDownTreesModule]
51
- })
52
- ], DropDownsModule);
53
- return DropDownsModule;
54
- }());
55
- exports.DropDownsModule = DropDownsModule;
@@ -1,70 +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 util_1 = require("../../common/util");
10
- /**
11
- * @hidden
12
- *
13
- * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
14
- */
15
- var BaseCheckDirective = /** @class */ (function () {
16
- function BaseCheckDirective() {
17
- }
18
- BaseCheckDirective.prototype.addItem = function (item) {
19
- if (this.isItemChecked(item)) {
20
- return;
21
- }
22
- var level = util_1.getHierarchicalItemLevel(item.index);
23
- var candidate = tslib_1.__assign({}, item, { level: level });
24
- this.checkedItems.push(candidate);
25
- this.checkedKeys.add(this.getKey(candidate));
26
- };
27
- BaseCheckDirective.prototype.removeItem = function (item) {
28
- var _this = this;
29
- if (!this.isItemChecked(item)) {
30
- return;
31
- }
32
- var level = util_1.getHierarchicalItemLevel(item.index);
33
- var candidate = tslib_1.__assign({}, item, { level: level });
34
- this.checkedItems = this.checkedItems
35
- .filter(function (item) { return util_1.valueFrom(item, _this.valueField) !== util_1.valueFrom(candidate, _this.valueField); });
36
- this.checkedKeys.delete(this.getKey(candidate));
37
- };
38
- BaseCheckDirective.prototype.isItemChecked = function (item) {
39
- var level = item.index.split('_').length - 1;
40
- item.level = level;
41
- return this.checkedKeys.has(this.getKey(item));
42
- };
43
- BaseCheckDirective.prototype.updateItems = function () {
44
- var _this = this;
45
- this.checkedItems = this.checkedItems || [];
46
- this.checkedKeys = new Set(this.checkedItems.map(function (item) { return _this.getKey(item); }));
47
- };
48
- /**
49
- * Adds the item's depth to the item's value to allow duplicate values on different levels.
50
- *
51
- * @param item - The checked key.
52
- * @returns { string } - A string key consisting of the item's `valueField` value and its depth.
53
- */
54
- BaseCheckDirective.prototype.getKey = function (item) {
55
- if (util_1.isArray(this.valueField)) {
56
- return util_1.valueFrom(item, this.valueField) + '_' + item.level;
57
- }
58
- return util_1.valueFrom(item, this.valueField);
59
- };
60
- tslib_1.__decorate([
61
- core_1.Input(),
62
- tslib_1.__metadata("design:type", Object)
63
- ], BaseCheckDirective.prototype, "valueField", void 0);
64
- tslib_1.__decorate([
65
- core_1.Input(),
66
- tslib_1.__metadata("design:type", Array)
67
- ], BaseCheckDirective.prototype, "checkedItems", void 0);
68
- return BaseCheckDirective;
69
- }());
70
- exports.BaseCheckDirective = BaseCheckDirective;
@@ -1,183 +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_treeview_1 = require("@progress/kendo-angular-treeview");
10
- var util_1 = require("../../common/util");
11
- var base_check_directive_1 = require("./base-check.directive");
12
- /**
13
- * @hidden
14
- *
15
- * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
16
- */
17
- var CheckAllDirective = /** @class */ (function (_super) {
18
- tslib_1.__extends(CheckAllDirective, _super);
19
- function CheckAllDirective(element, zone, cdr, renderer) {
20
- var _this = _super.call(this) || this;
21
- _this.element = element;
22
- _this.zone = zone;
23
- _this.cdr = cdr;
24
- _this.renderer = renderer;
25
- /**
26
- * Fires when the `checkedItems` collection was updated.
27
- */
28
- _this.checkedItemsChange = new core_1.EventEmitter();
29
- /**
30
- * Holds a Set with just the checked item keys.
31
- *
32
- * Should be updated each time the `checkedItems` value or content is changed.
33
- * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
34
- */
35
- _this.checkedKeys = new Set();
36
- return _this;
37
- }
38
- CheckAllDirective.prototype.handleChange = function (event) {
39
- var _this = this;
40
- // Need to store the current checkbox state at the moment of click
41
- this.currentCheckedState = event.checked;
42
- this.currentIndeterminateState = this.isIndeterminate;
43
- this.treeview.nodes.map(function (_value, index) {
44
- var itemIndex = String(index);
45
- var itemLookup = _this.treeview.itemLookup(itemIndex);
46
- _this.checkNode(itemLookup);
47
- });
48
- this.checkedItemsChange.emit(this.checkedItems.slice());
49
- };
50
- Object.defineProperty(CheckAllDirective.prototype, "isIndeterminate", {
51
- get: function () {
52
- var _this = this;
53
- var isIndeterminate = this.treeview.nodes.some(function (_node, index) {
54
- var itemIndex = String(index);
55
- var itemLookup = _this.treeview.itemLookup(itemIndex);
56
- return _this.someChecked(itemLookup);
57
- });
58
- return this.isChecked ? false : isIndeterminate;
59
- },
60
- enumerable: true,
61
- configurable: true
62
- });
63
- Object.defineProperty(CheckAllDirective.prototype, "isChecked", {
64
- get: function () {
65
- var _this = this;
66
- var isChecked = this.treeview.nodes.every(function (_node, index) {
67
- var itemIndex = String(index);
68
- var itemLookup = _this.treeview.itemLookup(itemIndex);
69
- return _this.allChecked(itemLookup);
70
- });
71
- return isChecked;
72
- },
73
- enumerable: true,
74
- configurable: true
75
- });
76
- CheckAllDirective.prototype.ngOnChanges = function (changes) {
77
- if (util_1.isPresent(changes.checkedItems)) {
78
- this.updateItems();
79
- this.renderer.setProperty(this.element.nativeElement, 'checked', this.isChecked);
80
- this.renderer.setProperty(this.element.nativeElement, 'indeterminate', this.isIndeterminate);
81
- }
82
- };
83
- CheckAllDirective.prototype.ngOnInit = function () {
84
- var _this = this;
85
- if (this.focused) {
86
- this.nextTick(function () { return _this.element.nativeElement.focus(); });
87
- }
88
- };
89
- CheckAllDirective.prototype.nextTick = function (fn) {
90
- this.zone.runOutsideAngular(function () { return setTimeout(fn); });
91
- };
92
- CheckAllDirective.prototype.checkNode = function (itemLookup) {
93
- var _this = this;
94
- if (this.treeview.isDisabled(itemLookup.item.dataItem, itemLookup.item.index)) {
95
- return;
96
- }
97
- var pendingCheck = [];
98
- var filter = function (item) {
99
- return _this.treeview.isVisible(item.dataItem, item.index) &&
100
- !_this.treeview.isDisabled(item.dataItem, item.index);
101
- };
102
- pendingCheck.push(itemLookup.item);
103
- util_1.fetchDescendentNodes(itemLookup, filter)
104
- .forEach(function (lookup) { return pendingCheck.push(lookup.item); });
105
- pendingCheck.forEach(function (item) {
106
- if (_this.currentIndeterminateState) {
107
- _this.lastAction === 'check' ?
108
- _this.addItem(item) :
109
- _this.removeItem(item);
110
- return;
111
- }
112
- _this.currentCheckedState ?
113
- _this.addItem(item) :
114
- _this.removeItem(item);
115
- });
116
- };
117
- CheckAllDirective.prototype.allChecked = function (lookup) {
118
- var _this = this;
119
- var children = lookup && lookup.children;
120
- if (!Array.isArray(children)) {
121
- return;
122
- }
123
- var childrenChecked = children.every(function (child) {
124
- if (child.children.length) {
125
- return _this.isItemChecked(child.item) && _this.allChecked(child);
126
- }
127
- return _this.isItemChecked(child.item);
128
- });
129
- return childrenChecked && this.isItemChecked(lookup.item);
130
- };
131
- CheckAllDirective.prototype.someChecked = function (lookup) {
132
- var _this = this;
133
- var children = lookup && lookup.children;
134
- if (!Array.isArray(children)) {
135
- return;
136
- }
137
- var childrenChecked = children.some(function (child) {
138
- if (child.children.length) {
139
- return _this.isItemChecked(child.item) || _this.someChecked(child);
140
- }
141
- return _this.isItemChecked(child.item);
142
- });
143
- return childrenChecked || this.isItemChecked(lookup.item);
144
- };
145
- tslib_1.__decorate([
146
- core_1.Input(),
147
- tslib_1.__metadata("design:type", String)
148
- ], CheckAllDirective.prototype, "lastAction", void 0);
149
- tslib_1.__decorate([
150
- core_1.Input(),
151
- tslib_1.__metadata("design:type", kendo_angular_treeview_1.TreeViewComponent)
152
- ], CheckAllDirective.prototype, "treeview", void 0);
153
- tslib_1.__decorate([
154
- core_1.Input(),
155
- tslib_1.__metadata("design:type", Array)
156
- ], CheckAllDirective.prototype, "checkedItems", void 0);
157
- tslib_1.__decorate([
158
- core_1.Input(),
159
- tslib_1.__metadata("design:type", Object)
160
- ], CheckAllDirective.prototype, "valueField", void 0);
161
- tslib_1.__decorate([
162
- core_1.Input('checkAll'),
163
- tslib_1.__metadata("design:type", Boolean)
164
- ], CheckAllDirective.prototype, "focused", void 0);
165
- tslib_1.__decorate([
166
- core_1.Output(),
167
- tslib_1.__metadata("design:type", core_1.EventEmitter)
168
- ], CheckAllDirective.prototype, "checkedItemsChange", void 0);
169
- tslib_1.__decorate([
170
- core_1.HostListener('change', ['$event.target']),
171
- tslib_1.__metadata("design:type", Function),
172
- tslib_1.__metadata("design:paramtypes", [Object]),
173
- tslib_1.__metadata("design:returntype", void 0)
174
- ], CheckAllDirective.prototype, "handleChange", null);
175
- CheckAllDirective = tslib_1.__decorate([
176
- core_1.Directive({
177
- selector: '[checkAll]' // tslint:disable-line
178
- }),
179
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef, core_1.NgZone, core_1.ChangeDetectorRef, core_1.Renderer2])
180
- ], CheckAllDirective);
181
- return CheckAllDirective;
182
- }(base_check_directive_1.BaseCheckDirective));
183
- exports.CheckAllDirective = CheckAllDirective;
@@ -1,171 +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_treeview_1 = require("@progress/kendo-angular-treeview");
10
- var rxjs_1 = require("rxjs");
11
- var operators_1 = require("rxjs/operators");
12
- var util_1 = require("../../common/util");
13
- var base_check_directive_1 = require("./base-check.directive");
14
- /**
15
- * @hidden
16
- *
17
- * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
18
- */
19
- var CheckDirective = /** @class */ (function (_super) {
20
- tslib_1.__extends(CheckDirective, _super);
21
- function CheckDirective(treeView) {
22
- var _this = _super.call(this) || this;
23
- _this.treeView = treeView;
24
- /**
25
- * Fires when the `checkedItems` collection was updated.
26
- */
27
- _this.checkedItemsChange = new core_1.EventEmitter();
28
- /**
29
- * Holds a Set with just the checked item keys.
30
- *
31
- * Should be updated each time the `checkedItems` value or content is changed.
32
- * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
33
- */
34
- _this.checkedKeys = new Set();
35
- _this.subscriptions = new rxjs_1.Subscription();
36
- _this.subscriptions.add(_this.treeView.checkedChange
37
- .subscribe(_this.handleCheckedChange.bind(_this)));
38
- _this.treeView.isChecked = _this.getCheckedState.bind(_this);
39
- return _this;
40
- }
41
- CheckDirective.prototype.ngOnChanges = function (changes) {
42
- if (util_1.isPresent(changes.checkable)) {
43
- this.toggleCheckOnClick();
44
- }
45
- if (util_1.isPresent(changes.checkedItems)) {
46
- this.updateItems();
47
- }
48
- };
49
- CheckDirective.prototype.ngOnDestroy = function () {
50
- this.subscriptions.unsubscribe();
51
- this.unsubscribeClick();
52
- };
53
- CheckDirective.prototype.getCheckedState = function (dataItem, index) {
54
- if (this.isItemChecked({ dataItem: dataItem, index: index })) {
55
- return 'checked';
56
- }
57
- else if (this.checkable.checkChildren && this.isItemIndeterminate(this.treeView.itemLookup(index))) {
58
- return 'indeterminate';
59
- }
60
- else {
61
- return 'none';
62
- }
63
- };
64
- CheckDirective.prototype.handleCheckedChange = function (node) {
65
- this.checkNode(node);
66
- // parents should be checked if `checkChildren` is set to `true` (single config option for both)
67
- var checkParents = this.checkable.checkChildren;
68
- if (checkParents) {
69
- this.checkParents(node.parent);
70
- }
71
- this.checkedItemsChange.emit(this.checkedItems.slice());
72
- };
73
- CheckDirective.prototype.toggleCheckOnClick = function () {
74
- var _this = this;
75
- this.unsubscribeClick();
76
- if (this.checkable.checkOnClick) {
77
- this.clickSubscription = this.treeView.nodeClick
78
- .pipe(operators_1.filter(function (event) { return event.type === 'click'; }))
79
- .subscribe(function (event) {
80
- var lookup = _this.treeView.itemLookup(event.item.index);
81
- _this.handleCheckedChange(lookup);
82
- });
83
- }
84
- };
85
- CheckDirective.prototype.unsubscribeClick = function () {
86
- if (this.clickSubscription) {
87
- this.clickSubscription.unsubscribe();
88
- this.clickSubscription = null;
89
- }
90
- };
91
- CheckDirective.prototype.checkNode = function (lookup) {
92
- var _this = this;
93
- if (this.treeView.isDisabled(lookup.item.dataItem, lookup.item.index)) {
94
- return;
95
- }
96
- var target = lookup.item;
97
- var pendingCheck = [target];
98
- // TODO: extract in a separate `checkChildren` method?
99
- if (this.checkable.checkChildren) {
100
- var filter_1 = function (item) {
101
- return _this.treeView.isVisible(item.dataItem, item.index) &&
102
- !_this.treeView.isDisabled(item.dataItem, item.index);
103
- };
104
- util_1.fetchDescendentNodes(lookup, filter_1)
105
- .forEach(function (lookup) { return pendingCheck.push(lookup.item); });
106
- }
107
- var shouldCheck = !this.isItemChecked(target);
108
- pendingCheck.forEach(function (item) {
109
- if (shouldCheck) {
110
- _this.addItem(item);
111
- }
112
- else {
113
- _this.removeItem(item);
114
- }
115
- });
116
- };
117
- CheckDirective.prototype.checkParents = function (parent) {
118
- var _this = this;
119
- var currentParent = parent;
120
- while (currentParent) {
121
- var allChildrenSelected = currentParent.children.every(function (item) { return _this.isItemChecked(item); });
122
- if (allChildrenSelected) {
123
- this.addItem(currentParent.item);
124
- }
125
- else {
126
- this.removeItem(currentParent.item);
127
- }
128
- currentParent = currentParent.parent;
129
- }
130
- };
131
- CheckDirective.prototype.isItemIndeterminate = function (lookup) {
132
- var children = lookup.children;
133
- if (!Array.isArray(children) || children.length === 0) {
134
- return false;
135
- }
136
- var index = 0;
137
- var child = children[index];
138
- while (util_1.isPresent(child)) {
139
- if (this.isItemChecked(child.item) || this.isItemIndeterminate(child)) {
140
- return true;
141
- }
142
- index += 1;
143
- child = children[index];
144
- }
145
- return false;
146
- };
147
- tslib_1.__decorate([
148
- core_1.Input(),
149
- tslib_1.__metadata("design:type", Object)
150
- ], CheckDirective.prototype, "checkable", void 0);
151
- tslib_1.__decorate([
152
- core_1.Input(),
153
- tslib_1.__metadata("design:type", Object)
154
- ], CheckDirective.prototype, "valueField", void 0);
155
- tslib_1.__decorate([
156
- core_1.Input(),
157
- tslib_1.__metadata("design:type", Array)
158
- ], CheckDirective.prototype, "checkedItems", void 0);
159
- tslib_1.__decorate([
160
- core_1.Output(),
161
- tslib_1.__metadata("design:type", core_1.EventEmitter)
162
- ], CheckDirective.prototype, "checkedItemsChange", void 0);
163
- CheckDirective = tslib_1.__decorate([
164
- core_1.Directive({
165
- selector: '[kendoMultiSelectTreeCheckable]'
166
- }),
167
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.TreeViewComponent])
168
- ], CheckDirective);
169
- return CheckDirective;
170
- }(base_check_directive_1.BaseCheckDirective));
171
- 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,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,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
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_treeview_1 = require("@progress/kendo-angular-treeview");
10
- /**
11
- * A directive which encapsulates the retrieval of the child nodes when flat data is provided.
12
- */
13
- var DropDownTreeFlatBindingDirective = /** @class */ (function (_super) {
14
- tslib_1.__extends(DropDownTreeFlatBindingDirective, _super);
15
- function DropDownTreeFlatBindingDirective(dropDownTree) {
16
- return _super.call(this, dropDownTree) || this;
17
- }
18
- tslib_1.__decorate([
19
- core_1.Input('kendoDropDownTreeFlatBinding'),
20
- tslib_1.__metadata("design:type", Array)
21
- ], DropDownTreeFlatBindingDirective.prototype, "nodes", void 0);
22
- tslib_1.__decorate([
23
- core_1.Input('valueField'),
24
- tslib_1.__metadata("design:type", String)
25
- ], DropDownTreeFlatBindingDirective.prototype, "idField", void 0);
26
- DropDownTreeFlatBindingDirective = tslib_1.__decorate([
27
- core_1.Directive({
28
- selector: '[kendoDropDownTreeFlatBinding]'
29
- }),
30
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.DataBoundComponent])
31
- ], DropDownTreeFlatBindingDirective);
32
- return DropDownTreeFlatBindingDirective;
33
- }(kendo_angular_treeview_1.FlatDataBindingDirective));
34
- exports.DropDownTreeFlatBindingDirective = DropDownTreeFlatBindingDirective;
@@ -1,44 +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_treeview_1 = require("@progress/kendo-angular-treeview");
10
- /**
11
- * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
12
- */
13
- var DropDownTreeHierarchyBindingDirective = /** @class */ (function (_super) {
14
- tslib_1.__extends(DropDownTreeHierarchyBindingDirective, _super);
15
- function DropDownTreeHierarchyBindingDirective(dropDownTree) {
16
- var _this = _super.call(this, dropDownTree) || this;
17
- _this.dropDownTree = dropDownTree;
18
- return _this;
19
- }
20
- Object.defineProperty(DropDownTreeHierarchyBindingDirective.prototype, "data", {
21
- /**
22
- * The nodes which will be displayed by the DropDownTree.
23
- */
24
- set: function (nodes) {
25
- this.dropDownTree.nodes = nodes;
26
- this.nodes = nodes;
27
- },
28
- enumerable: true,
29
- configurable: true
30
- });
31
- tslib_1.__decorate([
32
- core_1.Input('kendoDropDownTreeHierarchyBinding'),
33
- tslib_1.__metadata("design:type", Array),
34
- tslib_1.__metadata("design:paramtypes", [Array])
35
- ], DropDownTreeHierarchyBindingDirective.prototype, "data", null);
36
- DropDownTreeHierarchyBindingDirective = tslib_1.__decorate([
37
- core_1.Directive({
38
- selector: '[kendoDropDownTreeHierarchyBinding]'
39
- }),
40
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.DataBoundComponent])
41
- ], DropDownTreeHierarchyBindingDirective);
42
- return DropDownTreeHierarchyBindingDirective;
43
- }(kendo_angular_treeview_1.HierarchyBindingDirective));
44
- exports.DropDownTreeHierarchyBindingDirective = DropDownTreeHierarchyBindingDirective;
@@ -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
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_treeview_1 = require("@progress/kendo-angular-treeview");
10
- /**
11
- * A directive which encapsulates the retrieval of the child nodes when flat data is provided.
12
- */
13
- var MultiSelectTreeFlatBindingDirective = /** @class */ (function (_super) {
14
- tslib_1.__extends(MultiSelectTreeFlatBindingDirective, _super);
15
- function MultiSelectTreeFlatBindingDirective(multiSelectTree) {
16
- return _super.call(this, multiSelectTree) || this;
17
- }
18
- tslib_1.__decorate([
19
- core_1.Input('kendoMultiSelectTreeFlatBinding'),
20
- tslib_1.__metadata("design:type", Array)
21
- ], MultiSelectTreeFlatBindingDirective.prototype, "nodes", void 0);
22
- tslib_1.__decorate([
23
- core_1.Input('valueField'),
24
- tslib_1.__metadata("design:type", String)
25
- ], MultiSelectTreeFlatBindingDirective.prototype, "idField", void 0);
26
- MultiSelectTreeFlatBindingDirective = tslib_1.__decorate([
27
- core_1.Directive({
28
- selector: '[kendoMultiSelectTreeFlatBinding]'
29
- }),
30
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.DataBoundComponent])
31
- ], MultiSelectTreeFlatBindingDirective);
32
- return MultiSelectTreeFlatBindingDirective;
33
- }(kendo_angular_treeview_1.FlatDataBindingDirective));
34
- exports.MultiSelectTreeFlatBindingDirective = MultiSelectTreeFlatBindingDirective;