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

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