@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,1399 +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 kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
11
- var kendo_angular_treeview_1 = require("@progress/kendo-angular-treeview");
12
- var kendo_common_1 = require("@progress/kendo-common");
13
- var forms_1 = require("@angular/forms");
14
- var data_service_1 = require("../common/data.service");
15
- var disabled_items_service_1 = require("../common/disabled-items/disabled-items.service");
16
- var navigation_service_1 = require("../common/navigation/navigation.service");
17
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
18
- var selection_service_1 = require("../common/selection/selection.service");
19
- var preventable_event_1 = require("../common/models/preventable-event");
20
- var util_1 = require("../common/util");
21
- var no_data_template_directive_1 = require("../common/templates/no-data-template.directive");
22
- var rxjs_1 = require("rxjs");
23
- var operators_1 = require("rxjs/operators");
24
- var header_template_directive_1 = require("../common/templates/header-template.directive");
25
- var footer_template_directive_1 = require("../common/templates/footer-template.directive");
26
- var node_template_directive_1 = require("./templates/node-template.directive");
27
- var error_messages_1 = require("../common/constants/error-messages");
28
- var touch_enabled_1 = require("../common/constants/touch-enabled");
29
- var value_template_directive_1 = require("../common/templates/value-template.directive");
30
- /* tslint:disable:member-ordering */
31
- var DEFAULT_POPUP_SETTINGS = { animate: true };
32
- var hasChildren = function () { return false; };
33
- var ɵ0 = hasChildren;
34
- exports.ɵ0 = ɵ0;
35
- var fetchChildren = function () { return rxjs_1.of([]); };
36
- var ɵ1 = fetchChildren;
37
- exports.ɵ1 = ɵ1;
38
- var itemDisabled = function () { return false; };
39
- var ɵ2 = itemDisabled;
40
- exports.ɵ2 = ɵ2;
41
- var isNodeVisible = function () { return true; };
42
- var ɵ3 = isNodeVisible;
43
- exports.ɵ3 = ɵ3;
44
- /**
45
- * Represents the [Kendo UI DropDownTree component for Angular]({% slug overview_ddt %}).
46
- */
47
- var DropDownTreeComponent = /** @class */ (function () {
48
- function DropDownTreeComponent(wrapper, popupService, navigationService, renderer, _zone, cdr, localization, touchEnabled) {
49
- this.wrapper = wrapper;
50
- this.popupService = popupService;
51
- this.navigationService = navigationService;
52
- this.renderer = renderer;
53
- this._zone = _zone;
54
- this.cdr = cdr;
55
- this.localization = localization;
56
- this.touchEnabled = touchEnabled;
57
- this.hostClasses = true;
58
- this.role = 'listbox';
59
- this.ariaHasPopup = 'tree';
60
- /**
61
- * Fires each time the popup is about to open
62
- * ([see example]({% slug openstate_ddt %})).
63
- * This event is preventable. If you cancel it, the popup will remain closed.
64
- */
65
- this.open = new core_1.EventEmitter();
66
- /**
67
- * Fires after the popup has been opened.
68
- */
69
- this.opened = new core_1.EventEmitter();
70
- /**
71
- * Fires each time the popup is about to close
72
- * ([see example]({% slug openstate_ddt %})).
73
- * This event is preventable. If you cancel it, the popup will remain open.
74
- */
75
- this.close = new core_1.EventEmitter();
76
- /**
77
- * Fires after the popup has been closed.
78
- */
79
- this.closed = new core_1.EventEmitter();
80
- /**
81
- * Fires when the user expands a node in the popup TreeView.
82
- */
83
- this.nodeExpand = new core_1.EventEmitter();
84
- /**
85
- * Fires when the user collapses a node in the popup TreeView.
86
- */
87
- this.nodeCollapse = new core_1.EventEmitter();
88
- /**
89
- * Fires each time the user focuses the DropDownTree.
90
- */
91
- this.onFocus = new core_1.EventEmitter();
92
- /**
93
- * Fires each time the DropDownTree gets blurred.
94
- */
95
- this.onBlur = new core_1.EventEmitter();
96
- /**
97
- * Fires each time the value is changed
98
- * ([see example]({% slug overview_ddt %}#toc-events)).
99
- */
100
- this.valueChange = new core_1.EventEmitter();
101
- /**
102
- * Fires when the value of the built-in filter input element changes.
103
- */
104
- this.filterChange = new core_1.EventEmitter();
105
- /**
106
- * If set to `true`, renders a button on hovering over the component.
107
- * Clicking this button resets the value of the component to `undefined` and triggers the `change` event.
108
- */
109
- this.clearButton = true;
110
- /**
111
- * A function which determines if a specific node has child nodes.
112
- */
113
- this.hasChildren = hasChildren;
114
- /**
115
- * A function which provides the child nodes for a given parent node.
116
- */
117
- this.fetchChildren = fetchChildren;
118
- /**
119
- * The hint which is displayed when the component is empty.
120
- */
121
- this.placeholder = "";
122
- /**
123
- * Sets the height of the options list. By default, `listHeight` is 200px.
124
- *
125
- * > The `listHeight` property affects only the list of options and not the whole popup container.
126
- * > To set the height of the popup container, use `popupSettings.height`.
127
- */
128
- this.listHeight = 200;
129
- /**
130
- * Sets the disabled state of the component.
131
- */
132
- this.disabled = false;
133
- /**
134
- * Sets the read-only state of the component.
135
- */
136
- this.readonly = false;
137
- /**
138
- * Specifies the type of the selected value
139
- * ([more information and example]({% slug valuebinding_ddt %}#toc-primitive-values)).
140
- * If set to `true`, the selected value has to be of a primitive value.
141
- */
142
- this.valuePrimitive = false;
143
- /**
144
- * A function that is executed for each data item and determines if a specific item is disabled.
145
- */
146
- this.itemDisabled = itemDisabled;
147
- /**
148
- * A callback which determines whether a tree node should be rendered as hidden. The utility .k-display-none class is used to hide the nodes.
149
- * Useful for custom filtering implementations.
150
- */
151
- this.isNodeVisible = isNodeVisible;
152
- /**
153
- * Indicates whether the child nodes will be fetched on node expand or will be initially prefetched.
154
- * @default true
155
- */
156
- this.loadOnDemand = true;
157
- /**
158
- * Renders the built-in input element for filtering the DropDownTree.
159
- * If set to `true`, the component emits the `filterChange` event, which can be used to [filter the DropDownTree manually]({% slug filtering_ddt %}#toc-manual-filtering).
160
- * A built-in filtering implementation is available to use with the [`kendoDropDownTreeHierarchyBinding`]({% slug api_dropdowns_dropdowntreehierarchybindingdirective %}) and [`kendoDropDownTreeFlatBinding`]({% slug api_dropdowns_dropdowntreeflatbindingdirective %}) directives.
161
- */
162
- this.filterable = false;
163
- /**
164
- * @hidden
165
- */
166
- this.filter = '';
167
- /**
168
- * @hidden
169
- *
170
- * Used by the kendo-label and kendo-floatinglabel to access and associate the focusable element with the provided label via aria-labelledby.
171
- */
172
- this.focusableId = "k-" + kendo_angular_common_1.guid();
173
- /**
174
- * @hidden
175
- */
176
- this.selectedKeys = [];
177
- /**
178
- * @hidden
179
- */
180
- this.filterStateChange = new core_1.EventEmitter();
181
- /**
182
- * @hidden
183
- */
184
- this.allNodesHidden = false;
185
- /**
186
- * @hidden
187
- *
188
- * Used to associate the value label with the wrapper via aria-describedby.
189
- */
190
- this.valueLabelId = "k-" + kendo_angular_common_1.guid();
191
- this._popupSettings = DEFAULT_POPUP_SETTINGS;
192
- this._tabindex = 0;
193
- this._isFocused = false;
194
- this._size = 'medium';
195
- this._rounded = 'medium';
196
- this._fillMode = 'solid';
197
- this.subscriptions = [];
198
- this.onTouchedCallback = util_1.noop;
199
- this.onChangeCallback = util_1.noop;
200
- this.direction = localization.rtl ? 'rtl' : 'ltr';
201
- this.subscribeEvents();
202
- this.subscribeTouchEvents();
203
- this.subscribeFocusEvents();
204
- }
205
- DropDownTreeComponent_1 = DropDownTreeComponent;
206
- Object.defineProperty(DropDownTreeComponent.prototype, "isDisabled", {
207
- get: function () {
208
- return this.disabled;
209
- },
210
- enumerable: true,
211
- configurable: true
212
- });
213
- Object.defineProperty(DropDownTreeComponent.prototype, "isLoading", {
214
- get: function () {
215
- return this.loading;
216
- },
217
- enumerable: true,
218
- configurable: true
219
- });
220
- Object.defineProperty(DropDownTreeComponent.prototype, "id", {
221
- get: function () {
222
- return this.focusableId;
223
- },
224
- enumerable: true,
225
- configurable: true
226
- });
227
- Object.defineProperty(DropDownTreeComponent.prototype, "hostTabIndex", {
228
- get: function () {
229
- return this.tabindex;
230
- },
231
- enumerable: true,
232
- configurable: true
233
- });
234
- Object.defineProperty(DropDownTreeComponent.prototype, "isAriaExpanded", {
235
- get: function () {
236
- return this.isOpen;
237
- },
238
- enumerable: true,
239
- configurable: true
240
- });
241
- Object.defineProperty(DropDownTreeComponent.prototype, "isReadonly", {
242
- get: function () {
243
- return this.readonly;
244
- },
245
- enumerable: true,
246
- configurable: true
247
- });
248
- /**
249
- * @hidden
250
- */
251
- DropDownTreeComponent.prototype.handleClick = function () {
252
- this.togglePopup(!this.isOpen);
253
- };
254
- /**
255
- * @hidden
256
- */
257
- DropDownTreeComponent.prototype.handleKeydown = function (event) {
258
- if (this.disabled || this.readonly) {
259
- return;
260
- }
261
- var eventData = event;
262
- this.navigationService.process({
263
- originalEvent: eventData
264
- });
265
- };
266
- Object.defineProperty(DropDownTreeComponent.prototype, "treeview", {
267
- get: function () {
268
- return this._treeview;
269
- },
270
- set: function (treeview) {
271
- if (treeview) {
272
- if (this.isFocused && !this.filterable || this.touchEnabled) {
273
- treeview.focus();
274
- }
275
- // the treeview animations are initially disabled (we don't want expand animations during popup opening)
276
- // re-enables the animations for user interaction
277
- treeview.animate = true;
278
- this._treeview = treeview;
279
- }
280
- },
281
- enumerable: true,
282
- configurable: true
283
- });
284
- Object.defineProperty(DropDownTreeComponent.prototype, "data", {
285
- get: function () {
286
- return this._nodes;
287
- },
288
- /**
289
- * Sets the data of the DropDownTree.
290
- *
291
- * > The data has to be provided in an array-like list with objects.
292
- */
293
- set: function (data) {
294
- this._nodes = data;
295
- this.setState();
296
- },
297
- enumerable: true,
298
- configurable: true
299
- });
300
- Object.defineProperty(DropDownTreeComponent.prototype, "value", {
301
- get: function () {
302
- return this._value;
303
- },
304
- /**
305
- * Sets the value of the DropDownTree.
306
- * It can either be of the primitive (string, numbers) or of the complex (objects) type.
307
- * To define the type, use the `valuePrimitive` option.
308
- *
309
- */
310
- set: function (newValue) {
311
- this._value = newValue;
312
- this.setState();
313
- },
314
- enumerable: true,
315
- configurable: true
316
- });
317
- Object.defineProperty(DropDownTreeComponent.prototype, "popupSettings", {
318
- get: function () {
319
- return this._popupSettings;
320
- },
321
- /**
322
- * Configures the popup of the DropDownTree.
323
- *
324
- * The available options are:
325
- * - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
326
- * - `width: Number | String`—Sets the width of the popup container. By default, the width of the host element is used. If set to `auto`, the component automatically adjusts the width of the popup and no item labels are wrapped.
327
- * - `height: Number`—Sets the height of the popup container.
328
- * - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
329
- * - `appendTo: "root" | "component" | ViewContainerRef`—Specifies the component to which the popup will be appended.
330
- */
331
- set: function (settings) {
332
- this._popupSettings = Object.assign({}, DEFAULT_POPUP_SETTINGS, settings);
333
- },
334
- enumerable: true,
335
- configurable: true
336
- });
337
- Object.defineProperty(DropDownTreeComponent.prototype, "dataItem", {
338
- get: function () {
339
- return this._dataItem ? this._dataItem : this.value;
340
- },
341
- /**
342
- * Keeps the current `dataItem` object in order to resolve selection.
343
- * Needs to be provided when `value` is bound in and `valuePrimitive` is set to true.
344
- */
345
- set: function (item) {
346
- this._dataItem = item;
347
- this.setState();
348
- },
349
- enumerable: true,
350
- configurable: true
351
- });
352
- Object.defineProperty(DropDownTreeComponent.prototype, "tabindex", {
353
- get: function () {
354
- return this.disabled ? -1 : this._tabindex;
355
- },
356
- /**
357
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
358
- */
359
- set: function (value) {
360
- var providedTabIndex = Number(value);
361
- var defaultTabIndex = 0;
362
- this._tabindex = !isNaN(providedTabIndex) ? providedTabIndex : defaultTabIndex;
363
- },
364
- enumerable: true,
365
- configurable: true
366
- });
367
- Object.defineProperty(DropDownTreeComponent.prototype, "size", {
368
- get: function () {
369
- return this._size;
370
- },
371
- /**
372
- * Sets the size of the component.
373
- *
374
- * The possible values are:
375
- * * `'small'`
376
- * * `'medium'` (default)
377
- * * `'large'`
378
- * * `null`
379
- *
380
- */
381
- set: function (size) {
382
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('picker', this.size));
383
- if (size) {
384
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('picker', size));
385
- }
386
- this._size = size;
387
- },
388
- enumerable: true,
389
- configurable: true
390
- });
391
- Object.defineProperty(DropDownTreeComponent.prototype, "rounded", {
392
- get: function () {
393
- return this._rounded;
394
- },
395
- /**
396
- * Sets the border radius of the component.
397
- *
398
- * The possible values are:
399
- * * `'small'`
400
- * * `'medium'` (default)
401
- * * `'large'`
402
- * * `'full'`
403
- * * `null`
404
- *
405
- */
406
- set: function (rounded) {
407
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
408
- if (rounded) {
409
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
410
- }
411
- this._rounded = rounded;
412
- },
413
- enumerable: true,
414
- configurable: true
415
- });
416
- Object.defineProperty(DropDownTreeComponent.prototype, "fillMode", {
417
- get: function () {
418
- return this._fillMode;
419
- },
420
- /**
421
- * Sets the fillMode of the component.
422
- *
423
- * The possible values are:
424
- * * `'flat'`
425
- * * `'solid'` (default)
426
- * * `'outline'`
427
- * * `null`
428
- *
429
- */
430
- set: function (fillMode) {
431
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('picker', this.fillMode));
432
- if (fillMode) {
433
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('picker', fillMode));
434
- }
435
- this._fillMode = fillMode;
436
- },
437
- enumerable: true,
438
- configurable: true
439
- });
440
- Object.defineProperty(DropDownTreeComponent.prototype, "isFocused", {
441
- get: function () {
442
- return this._isFocused;
443
- },
444
- set: function (isFocused) {
445
- this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, 'k-focus');
446
- this._isFocused = isFocused;
447
- },
448
- enumerable: true,
449
- configurable: true
450
- });
451
- Object.defineProperty(DropDownTreeComponent.prototype, "width", {
452
- get: function () {
453
- var wrapperWidth = this.wrapper.nativeElement.offsetWidth;
454
- var width = this.popupSettings.width || wrapperWidth;
455
- var minWidth = isNaN(wrapperWidth) ? wrapperWidth : wrapperWidth + "px";
456
- var maxWidth = isNaN(width) ? width : width + "px";
457
- return { min: minWidth, max: maxWidth };
458
- },
459
- enumerable: true,
460
- configurable: true
461
- });
462
- Object.defineProperty(DropDownTreeComponent.prototype, "height", {
463
- get: function () {
464
- var popupHeight = this.popupSettings.height;
465
- return util_1.isPresent(popupHeight) ? popupHeight + "px" : 'auto';
466
- },
467
- enumerable: true,
468
- configurable: true
469
- });
470
- Object.defineProperty(DropDownTreeComponent.prototype, "isOpen", {
471
- /**
472
- * Returns the current open state of the popup.
473
- */
474
- get: function () {
475
- return util_1.isPresent(this.popupRef);
476
- },
477
- enumerable: true,
478
- configurable: true
479
- });
480
- Object.defineProperty(DropDownTreeComponent.prototype, "clearButtonVisiblity", {
481
- get: function () {
482
- if (this.touchEnabled) {
483
- return 'visible';
484
- }
485
- },
486
- enumerable: true,
487
- configurable: true
488
- });
489
- Object.defineProperty(DropDownTreeComponent.prototype, "isExpanded", {
490
- get: function () {
491
- return this.isNodeExpanded;
492
- },
493
- /**
494
- * @hidden
495
- *
496
- * Alias for `isNodeExpanded`. Used for compatibility with the `ExpandableComponent` interface.
497
- * Required for the expand-directive.
498
- */
499
- set: function (callback) {
500
- this.isNodeExpanded = callback;
501
- },
502
- enumerable: true,
503
- configurable: true
504
- });
505
- Object.defineProperty(DropDownTreeComponent.prototype, "expand", {
506
- /**
507
- * @hidden
508
- *
509
- * Alias for `nodeExpand`. Used for compatibility with the `ExpandableComponent` interface.
510
- * Required for the expand-directive.
511
- */
512
- get: function () {
513
- return this.nodeExpand;
514
- },
515
- enumerable: true,
516
- configurable: true
517
- });
518
- Object.defineProperty(DropDownTreeComponent.prototype, "collapse", {
519
- /**
520
- * @hidden
521
- *
522
- * Alias for `nodeCollapse`. Used for compatibility with the `ExpandableComponent` interface.
523
- * Required for the expand-directive.
524
- */
525
- get: function () {
526
- return this.nodeCollapse;
527
- },
528
- enumerable: true,
529
- configurable: true
530
- });
531
- Object.defineProperty(DropDownTreeComponent.prototype, "nodes", {
532
- get: function () {
533
- return this.data;
534
- },
535
- /**
536
- * @hidden
537
- *
538
- * Alias for `data`. Used for compatibility with the `DataBoundComponent` interface.
539
- * Required for the data-binding directives.
540
- */
541
- set: function (nodes) {
542
- this.data = nodes;
543
- },
544
- enumerable: true,
545
- configurable: true
546
- });
547
- Object.defineProperty(DropDownTreeComponent.prototype, "children", {
548
- get: function () {
549
- return this.fetchChildren;
550
- },
551
- /**
552
- * @hidden
553
- *
554
- * Alias for `fetchChildren`. Used for compatibility with the `DataBoundComponent` interface.
555
- * Required for the data-binding directives
556
- */
557
- set: function (callback) {
558
- this.fetchChildren = callback;
559
- },
560
- enumerable: true,
561
- configurable: true
562
- });
563
- Object.defineProperty(DropDownTreeComponent.prototype, "isVisible", {
564
- get: function () {
565
- return this.isNodeVisible;
566
- },
567
- /**
568
- * @hidden
569
- *
570
- * Alias for `isNodeVisible`. Used for compatibility with the `DataBoundComponent` interface.
571
- * The `DataBoundComponent` interface is used in the data-binding directives.
572
- */
573
- set: function (callback) {
574
- this.isNodeVisible = callback;
575
- },
576
- enumerable: true,
577
- configurable: true
578
- });
579
- DropDownTreeComponent.prototype.ngOnInit = function () {
580
- var _this = this;
581
- this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
582
- this.assignAriaDescribedBy();
583
- this.subscriptions.push(this.localization
584
- .changes.subscribe(function (_a) {
585
- var rtl = _a.rtl;
586
- _this.direction = rtl ? 'rtl' : 'ltr';
587
- _this.cdr.markForCheck();
588
- }));
589
- this.setComponentClasses();
590
- };
591
- /**
592
- * @hidden
593
- */
594
- DropDownTreeComponent.prototype.ngOnDestroy = function () {
595
- this.destroyPopup();
596
- this.unsubscribeEvents();
597
- };
598
- /**
599
- * @hidden
600
- */
601
- DropDownTreeComponent.prototype.ngOnChanges = function (changes) {
602
- if (kendo_angular_common_1.anyChanged(['textField', 'valueField', 'valuePrimitive'], changes, false)) {
603
- this.setState();
604
- }
605
- };
606
- /**
607
- * @hidden
608
- */
609
- DropDownTreeComponent.prototype.ngAfterContentChecked = function () {
610
- this.verifySettings();
611
- };
612
- /**
613
- * @hidden
614
- *
615
- * Used by the kendo-floatinglabel component to determine if the floating label
616
- * should be rendered inside the input when the component is not focused.
617
- */
618
- DropDownTreeComponent.prototype.isEmpty = function () {
619
- return !this.text && !this.placeholder;
620
- };
621
- /**
622
- * @hidden
623
- */
624
- DropDownTreeComponent.prototype.togglePopup = function (open) {
625
- var isDisabled = this.disabled || this.readonly;
626
- var sameState = this.isOpen === open;
627
- if (isDisabled || sameState) {
628
- return;
629
- }
630
- var togglePrevented = this.triggerPopupEvents(open);
631
- if (!togglePrevented) {
632
- open ?
633
- this.createPopup() :
634
- this.destroyPopup();
635
- }
636
- };
637
- /**
638
- * @hidden
639
- */
640
- DropDownTreeComponent.prototype.handleFocus = function (event) {
641
- var _this = this;
642
- if (event.target !== this.wrapper.nativeElement) {
643
- return;
644
- }
645
- event.stopImmediatePropagation();
646
- if (!this.isFocused) {
647
- this.isFocused = true;
648
- if (kendo_angular_common_1.hasObservers(this.onFocus)) {
649
- this._zone.run(function () {
650
- _this.onFocus.emit();
651
- });
652
- }
653
- }
654
- };
655
- /**
656
- * @hidden
657
- */
658
- DropDownTreeComponent.prototype.handleBlur = function (e) {
659
- var _this = this;
660
- var relatedTarget = e && e.relatedTarget;
661
- if (this.wrapper.nativeElement.contains(relatedTarget) ||
662
- (this.isOpen && this.popupRef.popupElement.contains(relatedTarget))) {
663
- return;
664
- }
665
- this.isFocused = false;
666
- if (kendo_angular_common_1.hasObservers(this.onBlur) ||
667
- util_1.isUntouched(this.wrapper.nativeElement)) {
668
- this._zone.run(function () {
669
- _this.togglePopup(false);
670
- _this.onBlur.emit();
671
- _this.onTouchedCallback();
672
- });
673
- }
674
- else {
675
- this.togglePopup(false);
676
- }
677
- };
678
- /**
679
- * Focuses a specific item of the DropDownTree based on a provided index in the format of `1_1`.
680
- * The targeted item should be expanded in order for it to be focused.
681
- * If null or invalid index is provided the focus will be set on the first item.
682
- */
683
- DropDownTreeComponent.prototype.focusItemAt = function (index) {
684
- if (this.treeview) {
685
- var lookup = this.treeview.itemLookup(index);
686
- var isItemDisabled = !util_1.isPresent(lookup) || this.treeview.isDisabled(lookup.item.dataItem, lookup.item.index);
687
- if (!isItemDisabled) {
688
- this.treeview.focus(index);
689
- }
690
- }
691
- };
692
- /**
693
- * Focuses the DropDownTree.
694
- */
695
- DropDownTreeComponent.prototype.focus = function () {
696
- if (!this.disabled) {
697
- this.wrapper.nativeElement.focus();
698
- }
699
- };
700
- /**
701
- * Blurs the DropDownTree.
702
- */
703
- DropDownTreeComponent.prototype.blur = function () {
704
- if (!this.disabled) {
705
- this.wrapper.nativeElement.blur();
706
- }
707
- };
708
- /**
709
- * Resets the value of the DropDownTree.
710
- * If you use the `reset` method to clear the value of the component,
711
- * the model will not update automatically and the `valueChange` event will not be fired.
712
- */
713
- DropDownTreeComponent.prototype.reset = function () {
714
- this.value = undefined;
715
- this.dataItem = undefined;
716
- };
717
- /**
718
- * Toggles the visibility of the popup
719
- * ([see example]({% slug openstate_ddt %})).
720
- * If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
721
- *
722
- * @param open - The state of the popup.
723
- */
724
- DropDownTreeComponent.prototype.toggle = function (open) {
725
- var _this = this;
726
- // The Promise is required to open the popup on load.
727
- // Otherwise, the "ViewContainerRef not found..." error will be thrown.
728
- Promise.resolve(null).then(function () {
729
- var shouldOpen = util_1.isPresent(open) ? open : !util_1.isPresent(_this.popupRef);
730
- _this.destroyPopup();
731
- if (shouldOpen) {
732
- _this.createPopup();
733
- }
734
- });
735
- };
736
- Object.defineProperty(DropDownTreeComponent.prototype, "popupContainerClasses", {
737
- /**
738
- * @hidden
739
- */
740
- get: function () {
741
- var containerClasses = ['k-popup-dropdowntree'];
742
- if (this.popupSettings.popupClass) {
743
- containerClasses.push(this.popupSettings.popupClass);
744
- }
745
- return containerClasses;
746
- },
747
- enumerable: true,
748
- configurable: true
749
- });
750
- /**
751
- * @hidden
752
- */
753
- DropDownTreeComponent.prototype.onSelectionChange = function (_a) {
754
- var dataItem = _a.dataItem, index = _a.index;
755
- this.valueDepth = index.split('_').length - 1;
756
- var valueField = this.getField(this.valueField, dataItem);
757
- var newValue = this.valuePrimitive ?
758
- kendo_common_1.getter(valueField)(dataItem) :
759
- dataItem;
760
- var shouldUpdateValue = newValue !== this.value;
761
- if (shouldUpdateValue) {
762
- this.value = newValue;
763
- this.dataItem = dataItem;
764
- this.emitValueChange(this.value);
765
- }
766
- this.togglePopup(false);
767
- this.focus();
768
- };
769
- /**
770
- * @hidden
771
- */
772
- DropDownTreeComponent.prototype.messageFor = function (key) {
773
- return this.localization.get(key);
774
- };
775
- /**
776
- * @hidden
777
- */
778
- DropDownTreeComponent.prototype.clearValue = function (event) {
779
- event.stopImmediatePropagation();
780
- this.focus();
781
- this.value = undefined;
782
- this.dataItem = undefined;
783
- this.clearState();
784
- this.valueChange.emit(undefined);
785
- this.emitValueChange();
786
- };
787
- Object.defineProperty(DropDownTreeComponent.prototype, "appendTo", {
788
- get: function () {
789
- var appendTo = this.popupSettings.appendTo;
790
- if (!appendTo || appendTo === 'root') {
791
- return undefined;
792
- }
793
- return appendTo === 'component' ? this.container : appendTo;
794
- },
795
- enumerable: true,
796
- configurable: true
797
- });
798
- /**
799
- * @hidden
800
- */
801
- DropDownTreeComponent.prototype.preventEventDefault = function (event) {
802
- event.preventDefault();
803
- };
804
- /**
805
- * @hidden
806
- */
807
- DropDownTreeComponent.prototype.writeValue = function (value) {
808
- // If the user resets the value by providing null/undefined we need to reset the `dataItem`
809
- // Because upon initialization of the component the `writeValue` is being called twice -
810
- // first time with `null` value regardless of sync/async value - an extra check is added to
811
- // distinguish between client reset and initial phanotm 'null' value
812
- if (!util_1.isPresent(value) && util_1.isPresent(this.value)) {
813
- this.dataItem = null;
814
- }
815
- this.value = value === null ? undefined : value;
816
- };
817
- /**
818
- * @hidden
819
- */
820
- DropDownTreeComponent.prototype.registerOnChange = function (fn) {
821
- this.onChangeCallback = fn;
822
- };
823
- /**
824
- * @hidden
825
- */
826
- DropDownTreeComponent.prototype.registerOnTouched = function (fn) {
827
- this.onTouchedCallback = fn;
828
- };
829
- /**
830
- * @hidden
831
- */
832
- DropDownTreeComponent.prototype.setDisabledState = function (isDisabled) {
833
- this.disabled = isDisabled;
834
- this.cdr.markForCheck();
835
- };
836
- /**
837
- * @hidden
838
- */
839
- DropDownTreeComponent.prototype.handleFilterInputChange = function (term) {
840
- var _this = this;
841
- this.filterChange.next(term);
842
- this.allNodesHidden = this.nodes.every(function (node, index) { return !_this.isVisible(node, String(index)); });
843
- };
844
- Object.defineProperty(DropDownTreeComponent.prototype, "buttonClasses", {
845
- /**
846
- * @hidden
847
- */
848
- get: function () {
849
- return this.loading ? 'k-i-loading' : 'k-i-arrow-s';
850
- },
851
- enumerable: true,
852
- configurable: true
853
- });
854
- Object.defineProperty(DropDownTreeComponent.prototype, "selectButtonClasses", {
855
- /**
856
- * @hidden
857
- */
858
- get: function () {
859
- return (this.size ? util_1.getSizeClass('button', this.size) : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode + '-base' : '');
860
- },
861
- enumerable: true,
862
- configurable: true
863
- });
864
- Object.defineProperty(DropDownTreeComponent.prototype, "filterInputClasses", {
865
- /**
866
- * @hidden
867
- */
868
- get: function () {
869
- return (this.size ? util_1.getSizeClass('input', this.size) : '') + " " + (this.fillMode ? 'k-input-' + this.fillMode : '') + " " + (this.rounded ? util_1.getRoundedClass(this.rounded) : '');
870
- },
871
- enumerable: true,
872
- configurable: true
873
- });
874
- DropDownTreeComponent.prototype.verifySettings = function () {
875
- if (!core_1.isDevMode()) {
876
- return;
877
- }
878
- if (this.valuePrimitive === true && util_1.isPresent(this.value) && typeof this.value === "object") {
879
- throw new Error(error_messages_1.DropDownTreeMessages.primitive);
880
- }
881
- if (this.valuePrimitive === true && util_1.isPresent(this.value) && typeof this.dataItem !== "object") {
882
- throw new Error(error_messages_1.DropDownTreeMessages.dataItem);
883
- }
884
- if (this.valuePrimitive === false && util_1.isPresent(this.value) && typeof this.value !== "object") {
885
- throw new Error(error_messages_1.DropDownTreeMessages.object);
886
- }
887
- if (!util_1.isPresent(this.valueField) || !util_1.isPresent(this.textField)) {
888
- throw new Error(error_messages_1.DropDownTreeMessages.textAndValue);
889
- }
890
- if ((util_1.isArray(this.valueField) || util_1.isArray(this.textField)) && util_1.isPresent(this.value) && !util_1.isPresent(this.valueDepth)) {
891
- throw new Error(error_messages_1.DropDownTreeMessages.valueDepth);
892
- }
893
- };
894
- DropDownTreeComponent.prototype.emitValueChange = function (value) {
895
- this.onChangeCallback(value);
896
- this.valueChange.emit(value);
897
- };
898
- DropDownTreeComponent.prototype.getText = function (textField, dataItem) {
899
- if (util_1.isPresent(dataItem) && util_1.isPresent(textField)) {
900
- var field = this.getField(textField, dataItem);
901
- return kendo_common_1.getter(field)(dataItem);
902
- }
903
- return null;
904
- };
905
- /**
906
- * @hidden
907
- *
908
- * Determines the `valueField` and `textField` for a specific level in the data set
909
- * @param field - the field value (string | string[])
910
- * @param value - current value
911
- */
912
- DropDownTreeComponent.prototype.getField = function (field, value) {
913
- var fieldsCount = field.length - 1;
914
- if (typeof field === 'string') {
915
- // If the `valueField` | `textField` is the same for all levels
916
- return field;
917
- }
918
- else if (util_1.isPresent(this.valueDepth)) {
919
- // When `valueDepth` can be defined from the index on selectionChange or provided by the user
920
- return fieldsCount < this.valueDepth ? field[fieldsCount] : field[this.valueDepth];
921
- }
922
- else {
923
- // Fallback: Look to find a match of each field in the current data item
924
- // Side effect may occur if all of the listed fields are present in the data item
925
- return field.find(function (item) { return item in value; });
926
- }
927
- };
928
- DropDownTreeComponent.prototype.triggerPopupEvents = function (open) {
929
- var eventArgs = new preventable_event_1.PreventableEvent();
930
- if (open) {
931
- this.open.emit(eventArgs);
932
- }
933
- else {
934
- this.close.emit(eventArgs);
935
- }
936
- return eventArgs.isDefaultPrevented();
937
- };
938
- DropDownTreeComponent.prototype.createPopup = function () {
939
- var _this = this;
940
- var horizontalAlign = this.direction === "rtl" ? "right" : "left";
941
- var anchorPosition = { horizontal: horizontalAlign, vertical: 'bottom' };
942
- var popupPosition = { horizontal: horizontalAlign, vertical: 'top' };
943
- this.popupRef = this.popupService.open({
944
- anchor: this.wrapper,
945
- appendTo: this.appendTo,
946
- anchorAlign: anchorPosition,
947
- content: this.popupTemplate,
948
- popupAlign: popupPosition,
949
- positionMode: 'absolute',
950
- popupClass: this.popupContainerClasses
951
- });
952
- var popupWrapper = this.popupRef.popupElement;
953
- var _a = this.width, min = _a.min, max = _a.max;
954
- popupWrapper.style.minWidth = min;
955
- popupWrapper.style.width = max;
956
- popupWrapper.style.height = this.height;
957
- popupWrapper.setAttribute("dir", this.direction);
958
- this.popupRef.popupOpen.subscribe(function () {
959
- _this.cdr.detectChanges();
960
- _this.opened.emit();
961
- });
962
- this.popupRef.popupClose.subscribe(function () {
963
- _this.closed.emit();
964
- });
965
- };
966
- DropDownTreeComponent.prototype.destroyPopup = function () {
967
- var _this = this;
968
- if (this.popupRef) {
969
- this.popupRef.close();
970
- this.popupRef = null;
971
- if (this.filter !== "") {
972
- this.filter = "";
973
- this.allNodesHidden = false;
974
- if (kendo_angular_common_1.hasObservers(this.filterChange)) {
975
- this._zone.run(function () {
976
- _this.filterChange.emit("");
977
- });
978
- }
979
- }
980
- }
981
- };
982
- DropDownTreeComponent.prototype.handleEscape = function () {
983
- this.togglePopup(false);
984
- this.focus();
985
- };
986
- DropDownTreeComponent.prototype.setState = function () {
987
- if (util_1.isPresent(this.value) && util_1.isPresent(this.dataItem) && util_1.isPresent(this.valueField)) {
988
- this.text = this.getText(this.textField, this.dataItem);
989
- var valueField = this.getField(this.valueField, this.dataItem);
990
- this.selectBy = valueField;
991
- this.selectedKeys = [kendo_common_1.getter(valueField)(this.dataItem)];
992
- }
993
- else {
994
- this.clearState();
995
- }
996
- this.cdr.markForCheck();
997
- };
998
- DropDownTreeComponent.prototype.clearState = function () {
999
- this.text = undefined;
1000
- this.selectedKeys = [];
1001
- };
1002
- DropDownTreeComponent.prototype.subscribeEvents = function () {
1003
- var _this = this;
1004
- this.subscriptions.push(this.navigationService.open.subscribe(function () { return _this.togglePopup(true); }), this.navigationService.close.subscribe(function () {
1005
- _this.togglePopup(false);
1006
- _this.focus();
1007
- }), this.navigationService.enter
1008
- .pipe(operators_1.tap(function (event) { return event.originalEvent.preventDefault(); }))
1009
- .subscribe(function () { return _this.togglePopup(true); }), this.navigationService.esc
1010
- .subscribe(function () { return _this.handleEscape(); }), this.navigationService.tab.subscribe(function () { return _this.focus(); }), this.navigationService.down.subscribe(function (event) {
1011
- if (!_this.treeview) {
1012
- return;
1013
- }
1014
- event.originalEvent.preventDefault();
1015
- if (!_this.treeview.isActive) {
1016
- _this.treeview.focus();
1017
- }
1018
- }), this.navigationService.up.subscribe(function (event) {
1019
- if (!_this.treeview) {
1020
- return;
1021
- }
1022
- event.originalEvent.preventDefault();
1023
- if (_this.filterable && _this.treeview['navigationService']['activeIndex'] === '0') {
1024
- _this.filterInput.nativeElement.focus();
1025
- }
1026
- }));
1027
- };
1028
- DropDownTreeComponent.prototype.subscribeTouchEvents = function () {
1029
- var _this = this;
1030
- if (!kendo_angular_common_1.isDocumentAvailable() || !this.touchEnabled) {
1031
- return;
1032
- }
1033
- this._zone.runOutsideAngular(function () {
1034
- // Roll up DropDownTree on iOS when tapped outside
1035
- return _this.touchstartDisposeHandler = _this.renderer.listen(document, 'touchstart', function (e) {
1036
- var target = e.target;
1037
- if (_this.isFocused && !util_1.inDropDown(_this.wrapper, target, _this.popupRef)) {
1038
- _this._zone.run(function () {
1039
- if (_this.isOpen) {
1040
- _this.treeview.blur();
1041
- }
1042
- _this.blur();
1043
- });
1044
- }
1045
- });
1046
- });
1047
- };
1048
- DropDownTreeComponent.prototype.subscribeFocusEvents = function () {
1049
- var _this = this;
1050
- if (kendo_angular_common_1.isDocumentAvailable()) {
1051
- this.handleFocus = this.handleFocus.bind(this);
1052
- this.handleDocumentBlur = this.handleDocumentBlur.bind(this);
1053
- this._zone.runOutsideAngular(function () {
1054
- var useCapture = true;
1055
- document.addEventListener('focus', _this.handleFocus, useCapture);
1056
- document.addEventListener('blur', _this.handleDocumentBlur, useCapture);
1057
- });
1058
- }
1059
- };
1060
- DropDownTreeComponent.prototype.unSubscribeFocusEvents = function () {
1061
- if (kendo_angular_common_1.isDocumentAvailable()) {
1062
- var useCapture = true;
1063
- document.removeEventListener('focus', this.handleFocus, useCapture);
1064
- document.removeEventListener('blur', this.handleDocumentBlur, useCapture);
1065
- }
1066
- };
1067
- DropDownTreeComponent.prototype.unsubscribeEvents = function () {
1068
- this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
1069
- this.unSubscribeFocusEvents();
1070
- if (this.touchstartDisposeHandler) {
1071
- this.touchstartDisposeHandler();
1072
- }
1073
- };
1074
- DropDownTreeComponent.prototype.handleDocumentBlur = function (event) {
1075
- if (event.target !== this.wrapper.nativeElement) {
1076
- return;
1077
- }
1078
- event.stopImmediatePropagation();
1079
- this.handleBlur(event);
1080
- };
1081
- DropDownTreeComponent.prototype.assignAriaDescribedBy = function () {
1082
- var currentValue = this.wrapper.nativeElement.getAttribute('aria-describedby') || '';
1083
- // add to the current value - don't replace it (the aria-describedby is used by the FormField component as well)
1084
- var newValue = (this.valueLabelId + " " + currentValue.trim()).trim();
1085
- this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-describedby', newValue);
1086
- };
1087
- DropDownTreeComponent.prototype.setComponentClasses = function () {
1088
- if (this.size) {
1089
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('picker', this.size));
1090
- }
1091
- if (this.rounded) {
1092
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
1093
- }
1094
- if (this.fillMode) {
1095
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('picker', this.fillMode));
1096
- }
1097
- };
1098
- var DropDownTreeComponent_1;
1099
- tslib_1.__decorate([
1100
- core_1.HostBinding('class.k-dropdowntree'),
1101
- core_1.HostBinding('class.k-picker'),
1102
- tslib_1.__metadata("design:type", Boolean)
1103
- ], DropDownTreeComponent.prototype, "hostClasses", void 0);
1104
- tslib_1.__decorate([
1105
- core_1.HostBinding('class.k-disabled'),
1106
- core_1.HostBinding('attr.aria-disabled'),
1107
- tslib_1.__metadata("design:type", Boolean),
1108
- tslib_1.__metadata("design:paramtypes", [])
1109
- ], DropDownTreeComponent.prototype, "isDisabled", null);
1110
- tslib_1.__decorate([
1111
- core_1.HostBinding('class.k-loading'),
1112
- tslib_1.__metadata("design:type", Boolean),
1113
- tslib_1.__metadata("design:paramtypes", [])
1114
- ], DropDownTreeComponent.prototype, "isLoading", null);
1115
- tslib_1.__decorate([
1116
- core_1.HostBinding('attr.id'),
1117
- tslib_1.__metadata("design:type", String),
1118
- tslib_1.__metadata("design:paramtypes", [])
1119
- ], DropDownTreeComponent.prototype, "id", null);
1120
- tslib_1.__decorate([
1121
- core_1.HostBinding('attr.dir'),
1122
- tslib_1.__metadata("design:type", String)
1123
- ], DropDownTreeComponent.prototype, "direction", void 0);
1124
- tslib_1.__decorate([
1125
- core_1.HostBinding('attr.tabindex'),
1126
- tslib_1.__metadata("design:type", Number),
1127
- tslib_1.__metadata("design:paramtypes", [])
1128
- ], DropDownTreeComponent.prototype, "hostTabIndex", null);
1129
- tslib_1.__decorate([
1130
- core_1.HostBinding('attr.role'),
1131
- tslib_1.__metadata("design:type", String)
1132
- ], DropDownTreeComponent.prototype, "role", void 0);
1133
- tslib_1.__decorate([
1134
- core_1.HostBinding('attr.aria-haspopup'),
1135
- tslib_1.__metadata("design:type", String)
1136
- ], DropDownTreeComponent.prototype, "ariaHasPopup", void 0);
1137
- tslib_1.__decorate([
1138
- core_1.HostBinding('attr.aria-expanded'),
1139
- tslib_1.__metadata("design:type", Boolean),
1140
- tslib_1.__metadata("design:paramtypes", [])
1141
- ], DropDownTreeComponent.prototype, "isAriaExpanded", null);
1142
- tslib_1.__decorate([
1143
- core_1.HostBinding('attr.readonly'),
1144
- core_1.HostBinding('attr.aria-readonly'),
1145
- tslib_1.__metadata("design:type", Boolean),
1146
- tslib_1.__metadata("design:paramtypes", [])
1147
- ], DropDownTreeComponent.prototype, "isReadonly", null);
1148
- tslib_1.__decorate([
1149
- core_1.HostListener('click'),
1150
- tslib_1.__metadata("design:type", Function),
1151
- tslib_1.__metadata("design:paramtypes", []),
1152
- tslib_1.__metadata("design:returntype", void 0)
1153
- ], DropDownTreeComponent.prototype, "handleClick", null);
1154
- tslib_1.__decorate([
1155
- core_1.HostListener('keydown', ['$event']),
1156
- tslib_1.__metadata("design:type", Function),
1157
- tslib_1.__metadata("design:paramtypes", [Object]),
1158
- tslib_1.__metadata("design:returntype", void 0)
1159
- ], DropDownTreeComponent.prototype, "handleKeydown", null);
1160
- tslib_1.__decorate([
1161
- core_1.ContentChild(no_data_template_directive_1.NoDataTemplateDirective, { static: false }),
1162
- tslib_1.__metadata("design:type", no_data_template_directive_1.NoDataTemplateDirective)
1163
- ], DropDownTreeComponent.prototype, "noDataTemplate", void 0);
1164
- tslib_1.__decorate([
1165
- core_1.ContentChild(header_template_directive_1.HeaderTemplateDirective, { static: false }),
1166
- tslib_1.__metadata("design:type", header_template_directive_1.HeaderTemplateDirective)
1167
- ], DropDownTreeComponent.prototype, "headerTemplate", void 0);
1168
- tslib_1.__decorate([
1169
- core_1.ContentChild(footer_template_directive_1.FooterTemplateDirective, { static: false }),
1170
- tslib_1.__metadata("design:type", footer_template_directive_1.FooterTemplateDirective)
1171
- ], DropDownTreeComponent.prototype, "footerTemplate", void 0);
1172
- tslib_1.__decorate([
1173
- core_1.ContentChild(node_template_directive_1.NodeTemplateDirective, { static: false }),
1174
- tslib_1.__metadata("design:type", node_template_directive_1.NodeTemplateDirective)
1175
- ], DropDownTreeComponent.prototype, "nodeTemplate", void 0);
1176
- tslib_1.__decorate([
1177
- core_1.ContentChild(value_template_directive_1.ValueTemplateDirective, { static: false }),
1178
- tslib_1.__metadata("design:type", value_template_directive_1.ValueTemplateDirective)
1179
- ], DropDownTreeComponent.prototype, "valueTemplate", void 0);
1180
- tslib_1.__decorate([
1181
- core_1.ViewChild('popupTemplate', { static: true }),
1182
- tslib_1.__metadata("design:type", core_1.TemplateRef)
1183
- ], DropDownTreeComponent.prototype, "popupTemplate", void 0);
1184
- tslib_1.__decorate([
1185
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: true }),
1186
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
1187
- ], DropDownTreeComponent.prototype, "container", void 0);
1188
- tslib_1.__decorate([
1189
- core_1.ViewChild('treeview', { static: false }),
1190
- tslib_1.__metadata("design:type", kendo_angular_treeview_1.TreeViewComponent),
1191
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.TreeViewComponent])
1192
- ], DropDownTreeComponent.prototype, "treeview", null);
1193
- tslib_1.__decorate([
1194
- core_1.ViewChild('filterInput', { static: false }),
1195
- tslib_1.__metadata("design:type", core_1.ElementRef)
1196
- ], DropDownTreeComponent.prototype, "filterInput", void 0);
1197
- tslib_1.__decorate([
1198
- core_1.Output(),
1199
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1200
- ], DropDownTreeComponent.prototype, "open", void 0);
1201
- tslib_1.__decorate([
1202
- core_1.Output(),
1203
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1204
- ], DropDownTreeComponent.prototype, "opened", void 0);
1205
- tslib_1.__decorate([
1206
- core_1.Output(),
1207
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1208
- ], DropDownTreeComponent.prototype, "close", void 0);
1209
- tslib_1.__decorate([
1210
- core_1.Output(),
1211
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1212
- ], DropDownTreeComponent.prototype, "closed", void 0);
1213
- tslib_1.__decorate([
1214
- core_1.Output(),
1215
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1216
- ], DropDownTreeComponent.prototype, "nodeExpand", void 0);
1217
- tslib_1.__decorate([
1218
- core_1.Output(),
1219
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1220
- ], DropDownTreeComponent.prototype, "nodeCollapse", void 0);
1221
- tslib_1.__decorate([
1222
- core_1.Output('focus'),
1223
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1224
- ], DropDownTreeComponent.prototype, "onFocus", void 0);
1225
- tslib_1.__decorate([
1226
- core_1.Output('blur'),
1227
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1228
- ], DropDownTreeComponent.prototype, "onBlur", void 0);
1229
- tslib_1.__decorate([
1230
- core_1.Output(),
1231
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1232
- ], DropDownTreeComponent.prototype, "valueChange", void 0);
1233
- tslib_1.__decorate([
1234
- core_1.Output(),
1235
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1236
- ], DropDownTreeComponent.prototype, "filterChange", void 0);
1237
- tslib_1.__decorate([
1238
- core_1.Input(),
1239
- tslib_1.__metadata("design:type", Boolean)
1240
- ], DropDownTreeComponent.prototype, "loading", void 0);
1241
- tslib_1.__decorate([
1242
- core_1.Input(),
1243
- tslib_1.__metadata("design:type", Boolean)
1244
- ], DropDownTreeComponent.prototype, "clearButton", void 0);
1245
- tslib_1.__decorate([
1246
- core_1.Input(),
1247
- tslib_1.__metadata("design:type", Array),
1248
- tslib_1.__metadata("design:paramtypes", [Array])
1249
- ], DropDownTreeComponent.prototype, "data", null);
1250
- tslib_1.__decorate([
1251
- core_1.Input(),
1252
- tslib_1.__metadata("design:type", Object),
1253
- tslib_1.__metadata("design:paramtypes", [Object])
1254
- ], DropDownTreeComponent.prototype, "value", null);
1255
- tslib_1.__decorate([
1256
- core_1.Input(),
1257
- tslib_1.__metadata("design:type", Object)
1258
- ], DropDownTreeComponent.prototype, "textField", void 0);
1259
- tslib_1.__decorate([
1260
- core_1.Input(),
1261
- tslib_1.__metadata("design:type", Object)
1262
- ], DropDownTreeComponent.prototype, "valueField", void 0);
1263
- tslib_1.__decorate([
1264
- core_1.Input(),
1265
- tslib_1.__metadata("design:type", Number)
1266
- ], DropDownTreeComponent.prototype, "valueDepth", void 0);
1267
- tslib_1.__decorate([
1268
- core_1.Input(),
1269
- tslib_1.__metadata("design:type", Function)
1270
- ], DropDownTreeComponent.prototype, "hasChildren", void 0);
1271
- tslib_1.__decorate([
1272
- core_1.Input(),
1273
- tslib_1.__metadata("design:type", Function)
1274
- ], DropDownTreeComponent.prototype, "fetchChildren", void 0);
1275
- tslib_1.__decorate([
1276
- core_1.Input(),
1277
- tslib_1.__metadata("design:type", String)
1278
- ], DropDownTreeComponent.prototype, "placeholder", void 0);
1279
- tslib_1.__decorate([
1280
- core_1.Input(),
1281
- tslib_1.__metadata("design:type", Object),
1282
- tslib_1.__metadata("design:paramtypes", [Object])
1283
- ], DropDownTreeComponent.prototype, "popupSettings", null);
1284
- tslib_1.__decorate([
1285
- core_1.Input(),
1286
- tslib_1.__metadata("design:type", Object),
1287
- tslib_1.__metadata("design:paramtypes", [Object])
1288
- ], DropDownTreeComponent.prototype, "dataItem", null);
1289
- tslib_1.__decorate([
1290
- core_1.Input(),
1291
- tslib_1.__metadata("design:type", Number)
1292
- ], DropDownTreeComponent.prototype, "listHeight", void 0);
1293
- tslib_1.__decorate([
1294
- core_1.Input(),
1295
- tslib_1.__metadata("design:type", Boolean)
1296
- ], DropDownTreeComponent.prototype, "disabled", void 0);
1297
- tslib_1.__decorate([
1298
- core_1.Input(),
1299
- tslib_1.__metadata("design:type", Boolean)
1300
- ], DropDownTreeComponent.prototype, "readonly", void 0);
1301
- tslib_1.__decorate([
1302
- core_1.Input(),
1303
- tslib_1.__metadata("design:type", Boolean)
1304
- ], DropDownTreeComponent.prototype, "valuePrimitive", void 0);
1305
- tslib_1.__decorate([
1306
- core_1.Input(),
1307
- tslib_1.__metadata("design:type", Number),
1308
- tslib_1.__metadata("design:paramtypes", [Number])
1309
- ], DropDownTreeComponent.prototype, "tabindex", null);
1310
- tslib_1.__decorate([
1311
- core_1.Input(),
1312
- tslib_1.__metadata("design:type", String),
1313
- tslib_1.__metadata("design:paramtypes", [String])
1314
- ], DropDownTreeComponent.prototype, "size", null);
1315
- tslib_1.__decorate([
1316
- core_1.Input(),
1317
- tslib_1.__metadata("design:type", String),
1318
- tslib_1.__metadata("design:paramtypes", [String])
1319
- ], DropDownTreeComponent.prototype, "rounded", null);
1320
- tslib_1.__decorate([
1321
- core_1.Input(),
1322
- tslib_1.__metadata("design:type", String),
1323
- tslib_1.__metadata("design:paramtypes", [String])
1324
- ], DropDownTreeComponent.prototype, "fillMode", null);
1325
- tslib_1.__decorate([
1326
- core_1.Input(),
1327
- tslib_1.__metadata("design:type", Function)
1328
- ], DropDownTreeComponent.prototype, "itemDisabled", void 0);
1329
- tslib_1.__decorate([
1330
- core_1.Input(),
1331
- tslib_1.__metadata("design:type", Function)
1332
- ], DropDownTreeComponent.prototype, "isNodeExpanded", void 0);
1333
- tslib_1.__decorate([
1334
- core_1.Input(),
1335
- tslib_1.__metadata("design:type", Function)
1336
- ], DropDownTreeComponent.prototype, "isNodeVisible", void 0);
1337
- tslib_1.__decorate([
1338
- core_1.Input(),
1339
- tslib_1.__metadata("design:type", Boolean)
1340
- ], DropDownTreeComponent.prototype, "loadOnDemand", void 0);
1341
- tslib_1.__decorate([
1342
- core_1.Input(),
1343
- tslib_1.__metadata("design:type", Boolean)
1344
- ], DropDownTreeComponent.prototype, "filterable", void 0);
1345
- tslib_1.__decorate([
1346
- core_1.Input(),
1347
- tslib_1.__metadata("design:type", String)
1348
- ], DropDownTreeComponent.prototype, "filter", void 0);
1349
- tslib_1.__decorate([
1350
- core_1.Input(),
1351
- tslib_1.__metadata("design:type", String)
1352
- ], DropDownTreeComponent.prototype, "focusableId", void 0);
1353
- DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1354
- core_1.Component({
1355
- exportAs: 'kendoDropDownTree',
1356
- providers: [
1357
- data_service_1.DataService,
1358
- selection_service_1.SelectionService,
1359
- navigation_service_1.NavigationService,
1360
- disabled_items_service_1.DisabledItemsService,
1361
- kendo_angular_l10n_1.LocalizationService,
1362
- {
1363
- provide: kendo_angular_l10n_1.L10N_PREFIX,
1364
- useValue: 'kendo.dropdowntree'
1365
- },
1366
- {
1367
- multi: true,
1368
- provide: forms_1.NG_VALUE_ACCESSOR,
1369
- useExisting: core_1.forwardRef(function () { return DropDownTreeComponent_1; })
1370
- },
1371
- {
1372
- provide: kendo_angular_common_1.KendoInput,
1373
- useExisting: core_1.forwardRef(function () { return DropDownTreeComponent_1; })
1374
- },
1375
- {
1376
- provide: kendo_angular_treeview_1.DataBoundComponent,
1377
- useExisting: core_1.forwardRef(function () { return DropDownTreeComponent_1; })
1378
- },
1379
- {
1380
- provide: kendo_angular_treeview_1.ExpandableComponent,
1381
- useExisting: core_1.forwardRef(function () { return DropDownTreeComponent_1; })
1382
- }
1383
- ],
1384
- selector: 'kendo-dropdowntree',
1385
- template: "\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText=\"kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.dropdowntree.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n\n i18n-selectButtonText=\"kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button\"\n selectButtonText=\"Select\"\n >\n </ng-container>\n <span\n [attr.id]=\"valueLabelId\"\n class=\"k-input-inner\"\n role=\"option\"\n >\n <span class=\"k-input-value-text\">\n <ng-template *ngIf=\"valueTemplate\"\n [templateContext]=\"{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!valueTemplate\"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf=\"!loading && !readonly && clearButton && text?.length && !disabled\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n aria-hidden=\"true\"\n [attr.title]=\"messageFor('clearTitle')\"\n (click)=\"clearValue($event)\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n <button\n tabindex=\"-1\"\n type=\"button\"\n aria-hidden=\"true\"\n class=\"k-input-button k-button k-icon-button\"\n [ngClass]=\"selectButtonClasses\"\n [attr.aria-label]=\"messageFor('selectButtonText')\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"buttonClasses\"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf=\"filterable\"\n class=\"k-list-filter\"\n >\n <span\n class=\"k-textbox k-input\"\n [ngClass]=\"filterInputClasses\"\n >\n <span class=\"k-input-prefix\">\n <span class=\"k-input-icon k-icon k-i-search\"></span>\n </span>\n <input\n #filterInput\n (input)=\"handleFilterInputChange($event.target.value)\"\n [filterInput]=\"filterable && !touchEnabled\"\n (keydown.arrowdown)=\"handleKeydown($event)\"\n (keydown.alt.arrowup)=\"handleKeydown($event)\"\n [(ngModel)]=\"filter\"\n class=\"k-input-inner\"\n role=\"textbox\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n tabindex=\"0\"\n aria-disabled=\"false\"\n aria-readonly=\"false\"\n [kendoEventsOutsideAngular]=\"{\n blur: handleBlur\n }\"\n [scope]=\"this\"\n >\n </span>\n </span>\n <!--header template-->\n <ng-template\n *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate?.templateRef\n }\">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf=\"data.length !== 0 && !allNodesHidden\"\n [size]=\"size\"\n [nodes]=\"data\"\n [style.maxHeight.px]=\"listHeight\"\n [animate]=\"false\"\n [(selectedKeys)]=\"selectedKeys\"\n [selectBy]=\"selectBy\"\n [textField]=\"textField\"\n kendoTreeViewSelectable\n [children]=\"children\"\n [hasChildren]=\"hasChildren\"\n [loadOnDemand]=\"loadOnDemand\"\n [isExpanded]=\"isNodeExpanded\"\n [isDisabled]=\"itemDisabled\"\n [nodeTemplate]=\"nodeTemplate\"\n [filter]=\"filter\"\n [isVisible]=\"isNodeVisible\"\n (focusout)=\"handleBlur($event)\"\n (keydown)=\"handleKeydown($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n (expand)=\"nodeExpand.emit($event)\"\n (collapse)=\"nodeCollapse.emit($event)\"\n >\n </kendo-treeview>\n <!--footer template-->\n <ng-template\n *ngIf=\"footerTemplate\"\n [templateContext]=\"{\n templateRef: footerTemplate?.templateRef\n }\">\n </ng-template>\n <!--no-data template-->\n <div class=\"k-no-data\" *ngIf=\"data.length === 0 || allNodesHidden\">\n <ng-template [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ messageFor('noDataText') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ",
1386
- changeDetection: core_1.ChangeDetectionStrategy.OnPush
1387
- }),
1388
- tslib_1.__param(7, core_1.Optional()), tslib_1.__param(7, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
1389
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
1390
- kendo_angular_popup_1.PopupService,
1391
- navigation_service_1.NavigationService,
1392
- core_1.Renderer2,
1393
- core_1.NgZone,
1394
- core_1.ChangeDetectorRef,
1395
- kendo_angular_l10n_1.LocalizationService, Boolean])
1396
- ], DropDownTreeComponent);
1397
- return DropDownTreeComponent;
1398
- }());
1399
- exports.DropDownTreeComponent = DropDownTreeComponent;