@progress/kendo-angular-dropdowns 6.0.3-dev.202203091003 → 7.0.0-next.202204040550

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 +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.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,5 +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
- System.register("@progress/kendo-angular-dropdowns",["@progress/kendo-angular-popup","tslib","@angular/core","@progress/kendo-angular-common","@angular/forms","@progress/kendo-licensing","rxjs","@progress/kendo-angular-l10n","rxjs/operators","@progress/kendo-common","@progress/kendo-angular-treeview","@angular/common"],function(s){var o,r,p,l,d,u,c,h,m,g,v,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){r=t(e)},function(e){p=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){v=t(e)},function(e){f=t(e)}],execute:function(){function n(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,a;i=[function(e,t){e.exports=r},function(e,t){e.exports=p},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t(3),o=t(29);a.isPresent=function(e){return null!=e},a.isNumber=function(e){return!isNaN(e)},a.guid=function(){for(var e,t="",i=0;i<32;i++)e=16*Math.random()|0,8!==i&&12!==i&&16!==i&&20!==i||(t+="-"),t+=(12===i?4:16===i?3&e|8:e).toString(16);return t},a.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},a.isWindowAvailable=function(){return"undefined"!=typeof window},a.isArray=function(e){return Array.isArray(e)},a.isObject=function(e){return a.isPresent(e)&&"object"==typeof e},a.isEmptyString=function(e){return"string"==typeof e&&0===e.length},a.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map(function(t){return i.find(function(e){return a.getter(e,n)===t})}).filter(function(e){return void 0!==e})},a.validateComplexValues=function(e,t){return a.isArray(e)&&e.filter(function(e){return a.isObject(e)&&a.isPresent(a.getter(e,t))})},a.resolveAllValues=function(e,t,i){var n=a.validateComplexValues(e,i)||[];return(a.resolveValuesInArray(e,t,i)||[]).concat(n)},a.isObjectArray=function(e){return a.isArray(e)&&e.every(function(e){return a.isObject(e)})},a.selectedIndices=function(e,t,i){var n=t.map(function(e){return a.isPresent(e)&&a.isPresent(a.getter(e,i))?a.getter(e,i):e});return e.reduce(function(e,t){t=a.isPresent(t)&&a.isPresent(a.getter(t,i))?a.getter(t,i):t,t=n.indexOf(t);return-1!==t&&e.push(t),e},[])},a.getter=function(e,t){return a.isPresent(e)?a.isPresent(t)&&a.isObject(e)?o.getter(t)(e):e:null},a.resolveValue=function(t){var e;return a.isPresent(t.value)?{dataItem:e=[t.defaultItem].concat(t.data).find(function(e){return a.getter(e,t.valueField)===t.value}),focused:t.data.indexOf(e),selected:t.data.indexOf(e)}:t.index?(e=t.data[t.index],{dataItem:t.data[t.index],focused:t.index,selected:t.index}):{dataItem:t.defaultItem,focused:-1,selected:-1}},a.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},a.shuffleData=function(e,t,i){return(e=i?[i].concat(e):e).slice(t).concat(e.slice(0,t))},a.matchText=function(e,t,i){if(!a.isPresent(e))return!1;e=String(e);return 0===(e=i?e.toLowerCase():e).indexOf(t)},a.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},a.hasProps=function(t,e){return!!a.isPresent(t)&&e.every(function(e){return t.hasOwnProperty(e)})},a.isUntouched=function(e){return e.className.includes("ng-untouched")},a.noop=function(e){};a.closest=function(e,t){for(var i,n,a,o=e;null!==o&&1===o.nodeType;){if(n=t,a=void 0,!!(a=(i=o).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&a.call(i,n))return o;o=o.parentElement||o.parentNode}return null},a.parseNumber=function(e,t){void 0===t&&(t=0);e=Number(e);return isNaN(e)?t:e},a.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},a.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},a.fetchDescendentNodes=function(e,t){if(!a.isPresent(e)||0===e.children.length)return[];var i=e.children;return(i=a.isPresent(t)?i.filter(function(e){return t(e.item)}):i).forEach(function(e){return i=i.concat(a.fetchDescendentNodes(e,t))}),i},a.valueFrom=function(e,t){var i=e.dataItem,n=e.index,e=e.level,t=Array.isArray(t)?t:[t],e=a.isPresent(e)?e:a.getHierarchicalItemLevel(n),n=t[Math.min(e,t.length-1)];return o.getter(n)(i)},a.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},a.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},a.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=l},function(e,t){e.exports=h},function(e,t){e.exports=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=(s.prototype.getTotal=function(){return this.total},s.prototype.isSelected=function(t){return o.isPresent(this.selectedIndices.find(function(e){return e===t}))},s.prototype.isFocused=function(e){return e===this.focused},s.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},s.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:o.isPresent(e)}))},s.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},s.prototype.unselect=function(e){var t;this.isSelected(e)&&(t=this.selectedIndices.indexOf(e),this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e}))},s.prototype.change=function(e){var t=o.isPresent(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},s.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(s.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),n.__decorate([a.Injectable()],s));function s(){this.onSelect=new a.EventEmitter,this.onChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.total=0,this.selectedIndices=[]}t.SelectionService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(1);t.TOUCH_ENABLED=new i.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),r=i(2),i=(Object.defineProperty(o.prototype,"data",{get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"itemsCount",{get:function(){return r.isPresent(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(e){return!e.header}):this.data).length:0},enumerable:!0,configurable:!0}),o.prototype.isGrouped=function(e){return r.isPresent(e)&&0!==e.length&&r.isPresent(e[0])&&r.hasProps(e[0],["aggregates","field","items","value"])},o.prototype.getGroupIndices=function(e){for(var t=[],i=0;i<=e.length-1;i++)t[i]=(t[i-1]||0)+e[i].items.length;return t},o.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var i=0;i<=this.groupIndices.length-1;i++){var n=this.data[i].items.filter(e);n&&(t=t.concat(n))}else t=this.data.filter(e);return t},o.prototype.indexOf=function(t,e){var i=function(e){return e===t};return this.grouped&&(i=function(e){return e.value===t}),this.findIndex(i,e=void 0===e?0:e)},o.prototype.findIndex=function(e,t){void 0===t&&(t=0);var i,n=-1;return n=this.grouped?(i=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t}))[n=i.findIndex(e)]?i[n].offsetIndex:-1:-1!==(i=(i=this.data.slice(t)).findIndex(e))?i+t:-1},o.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},o.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},o.prototype.flatIndex=function(t){if(0===this.itemsCount)return-1;if(!this.grouped)return t;var e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t});return e?e.index:-1},o.prototype.itemAt=function(t){var e,i;return 0===this.itemsCount||(this.grouped?(i=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=i.value):e=this.data[t]),e},o.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},o.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},o.prototype.itemGroup=function(e){var t;if(e&&0!==this.itemsCount&&this.isGrouped)return(t=this.groupField())?r.getter(e,t):void 0},o.prototype.flatten=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var a=[];r.isPresent(t=void 0===t?void 0:t)&&a.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var o=0;o<e.length;o++){var s=[];e[o].items?(s=this.flatten(e[o].items,e[o].value,i,o),i+=e[o].items.length):s.push({header:!1,index:n+i+o+1,offsetIndex:i+o,value:e[o]}),a=a.concat(s)}return a},n.__decorate([a.Injectable()],o));function o(){this.grouped=!1,this.groupIndices=[]}t.DataService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(9),a=(s.prototype.isIndexDisabled=function(e){var t;if(this.itemDisabled)return t=this.dataService.itemAt(e),o.isPresent(t)?this.itemDisabled({dataItem:t,index:e}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0},s.prototype.isItemDisabled=function(e){var t;if(this.itemDisabled)return-1!==(t=this.dataService.indexOf(e))?this.itemDisabled({dataItem:e,index:t}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0},n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[i.DataService])],s));function s(e){this.dataService=e,this.itemDisabled=null}t.DisabledItemsService=a},function(e,t,i){"use strict";function n(){this.prevented=!1}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.preventDefault=function(){this.prevented=!0},n.prototype.isDefaultPrevented=function(){return this.prevented},t.PreventableEvent=n},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FooterTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTemplateDirective=n},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(22),s=i(21),r=i(20),p=i(14),l=i(13),d=i(18),u=i(32),c=i(31),h=i(28),m=i(72),g=i(71),v=i(53),i=i(70),p=[p.HeaderTemplateDirective,l.FooterTemplateDirective,o.ItemTemplateDirective,s.GroupTemplateDirective,r.FixedGroupTemplateDirective,d.NoDataTemplateDirective,u.ValueTemplateDirective,c.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,i.FilterInputDirective],l=n.__decorate([a.NgModule({declarations:[p],exports:[p]})],f);function f(){}t.SharedDirectivesModule=l},function(e,t){e.exports=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NoDataTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),s=i(2),o=i(3),r=i(27),p=i(10),i=i(6),l=function(e,t){this.index=e,this.originalEvent=t},n=(t.NavigationEvent=l,d.prototype.process=function(e){var t,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,a=r.NavigationAction.Undefined,n=(n&&i===o.Keys.ArrowDown?a=r.NavigationAction.Open:n&&i===o.Keys.ArrowUp?a=r.NavigationAction.Close:i===o.Keys.Enter?a=r.NavigationAction.Enter:i===o.Keys.Escape?a=r.NavigationAction.Esc:i===o.Keys.Tab?a=r.NavigationAction.Tab:i===o.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Up):i===o.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Left):i===o.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Down):i===o.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Right):i===o.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=r.NavigationAction.Home):i===o.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=r.NavigationAction.End):i===o.Keys.Delete?a=r.NavigationAction.Delete:i===o.Keys.Backspace&&(a=r.NavigationAction.Backspace),new l(t,e.originalEvent));return a!==r.NavigationAction.Undefined&&this[r.NavigationAction[a].toLowerCase()].emit(n),a},d.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,e=e.step,a=s.isPresent(t)?this.clampIndex(t+e,i,n):i,o=this.firstFocusableIndex(a,i,n,e);return s.isPresent(o)?o:this.selectionService.isSelected(t)&&i<=t?t:this.firstFocusableIndex(a,i,n,-1*e)},d.prototype.clampIndex=function(e,t,i){return!s.isPresent(e)||e<t?t:i<e?i:e},d.prototype.firstFocusableIndex=function(e,t,i,n){for(;t<=e&&e<=i;){if(!this.isDisabled(e))return e;e+=n}},d.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[p.DisabledItemsService,i.SelectionService])],d));function d(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.enter=new a.EventEmitter,this.tab=new a.EventEmitter,this.esc=new a.EventEmitter,this.up=new a.EventEmitter,this.right=new a.EventEmitter,this.down=new a.EventEmitter,this.left=new a.EventEmitter,this.delete=new a.EventEmitter,this.backspace=new a.EventEmitter,this.home=new a.EventEmitter,this.end=new a.EventEmitter}t.NavigationService=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FixedGroupTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ItemTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(74),s=i(15),r=i(25),p=i(34),l=i(73),d=i(8),u=i(3),c=i(16),h=i(64),m=i(52),g=i(51),v=i(69),i=i(68),r=[r.ListComponent,h.ListItemDirective,m.SelectableDirective,p.SearchBarComponent,g.TemplateContextDirective,l.TagListComponent,v.CheckDirective,i.CheckAllDirective],h=n.__decorate([a.NgModule({declarations:[r],exports:[r,o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule],imports:[o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule]})],f);function f(){}t.SharedModule=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiselectMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",object:"Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data"},t.MultiSelectTreeMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",object:"Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",dataItems:"Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",dataItemsLength:"Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",valueDepth:"Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",valueDepthLength:"Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth"},t.ComboBoxMessages={object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data",noItemHeight:"Expected virtual.itemHeight of type number."},t.MultiColumnComboBoxMessages={data:"Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration"},t.DropDownListMessages={defaultItem:"defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data"},t.DropDownTreeMessages={primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",dataItem:"Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",valueDepth:"Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),p=i(1),a=i(3),o=i(64),s=i(22),r=i(21),l=i(20),d=i(2),u=i(6),c=i(12),h=i(17),m=i(10),i=i(9),s=(Object.defineProperty(g.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",e)),this._size=e)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"overflowY",{get:function(){if(d.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"checkboxClasses",{get:function(){return(this.size?d.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){a.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),a.isChanged("virtual",e,!1)&&this.setOverflow(),a.isChanged("type",e,!1)&&this.prepareClasses()},g.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=c.fromEvent(e.content.nativeElement,"scroll").pipe(h.auditTime(100),h.tap(e.prefetchData.bind(e)),h.tap(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()},g.prototype.ngAfterViewChecked=function(){var e;this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused,this.scrollToItem(e)),this.dataService.grouped&&this.findCurrentGroup()},g.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},g.prototype.onCheckedChange=function(e,t){e=e.target.checked;e&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!e&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},g.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},g.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},g.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,i=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-disabled")),i=(e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")}),document.elementFromPoint(i.left+1,i.top+1));return e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")}),d.closest(i,"li")},g.prototype.findCurrentGroup=function(){var e,t;this.dataService.grouped?((e=this.firstVisibleItem())?(t=void 0,"group"===e.getAttribute("role")?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))):this.currentGroup=void 0,this.cdr.detectChanges()):this.currentGroup=void 0},g.prototype.prefetchData=function(){var e,t,i,n,a;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),i=this.content.nativeElement.scrollTop,t=Math.trunc(i/this.virtual.itemHeight),i=i>this.lastScrollTop,n=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,a=this.pageSize-(this.lastLoaded-this.startFrom),a=this.lastLoaded-this.pageSize+e>=t-a,i&&n&&this.changePage(t),!i&&a&&this.changePage(t-this.pageSize+e+1))},g.prototype.changePage=function(t){var i=this;this.zone.run(function(){var e=i.pageSize+t;e>i.virtual.total&&(t--,e=i.virtual.total),t<0&&(t=0),i.startFrom=t,i.lastLoaded=e,i.pageChange.emit({skip:t,take:i.pageSize})})},g.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},g.prototype.getText=function(e){return d.getter(e,this.textField)},g.prototype.getValue=function(e){return d.getter(e,this.valueField)},g.prototype.isDisabled=function(e){return d.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},g.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},g.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0),this.virtual&&-1<t?this.scrollToIndex(t):(e=this.items.toArray(),d.isPresent(e[t])&&-1!==t&&this.scroll(e[t].element))},g.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,i=t.scrollTop,e=e*this.virtual.itemHeight,n=this.virtual.itemHeight,a=t.clientHeight,n=e+n;e<i?i=e:i+a<n&&(i=n-a),t.scrollTop=i},g.prototype.scroll=function(e){var t,i,n,a;e&&(e=e.nativeElement,t=this.content.nativeElement,i=e.offsetTop,e=e.offsetHeight,n=t.scrollTop,a=t.clientHeight,e=i+e,i<n?n=i:n+a<e&&(n=e-a),t.scrollTop=n)},g.prototype.hasScrollbar=function(){return!!(d.isPresent(this.items)&&this.items.length&&d.isPresent(this.list)&&d.isPresent(this.content))&&(d.isPresent(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},g.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},g.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},g.prototype.positionItems=function(){var i=this;this.items.forEach(function(e,t){t=(t+i.startFrom)*i.virtual.itemHeight;i.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},g.prototype.firstGroupHeaderInTargetedPage=function(e){return!d.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},g.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size))),d.isPresent(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)},n.__decorate([p.Input(),n.__metadata("design:type",Array)],g.prototype,"selected",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Number)],g.prototype,"focused",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"textField",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"valueField",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Number)],g.prototype,"height",void 0),n.__decorate([p.Input(),n.__metadata("design:type",s.ItemTemplateDirective)],g.prototype,"template",void 0),n.__decorate([p.Input(),n.__metadata("design:type",r.GroupTemplateDirective)],g.prototype,"groupTemplate",void 0),n.__decorate([p.Input(),n.__metadata("design:type",l.FixedGroupTemplateDirective)],g.prototype,"fixedGroupTemplate",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Boolean)],g.prototype,"show",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"id",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"optionPrefix",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Boolean)],g.prototype,"multipleSelection",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Object)],g.prototype,"virtual",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"type",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Object)],g.prototype,"checkboxes",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],g.prototype,"data",null),n.__decorate([p.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],g.prototype,"size",null),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"rounded",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"onClick",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"pageChange",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"listResize",void 0),n.__decorate([p.ViewChildren(o.ListItemDirective),n.__metadata("design:type",p.QueryList)],g.prototype,"items",void 0),n.__decorate([p.ViewChild("content",{static:!0}),n.__metadata("design:type",p.ElementRef)],g.prototype,"content",void 0),n.__decorate([p.ViewChild("list",{static:!0}),n.__metadata("design:type",p.ElementRef)],g.prototype,"list",void 0),n.__decorate([p.ViewChild("virtualContainer",{static:!1}),n.__metadata("design:type",p.ElementRef)],g.prototype,"virtualContainer",void 0),n.__decorate([p.Component({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),n.__metadata("design:paramtypes",[i.DataService,p.ElementRef,u.SelectionService,m.DisabledItemsService,p.ChangeDetectorRef,p.NgZone,p.Renderer2])],g));function g(e,t,i,n,a,o,s){var r=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=a,this.zone=o,this.renderer=s,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new p.EventEmitter,this.pageChange=new p.EventEmitter,this.listResize=new p.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=c.merge(this.selectionService.onSelect.pipe(h.map(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(h.switchMap(function(e){return r.zone.onStable.pipe(h.take(1),h.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}t.ListComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterableComponent=function(){}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.NavigationAction||(t.NavigationAction={}))[t.Undefined=0]="Undefined",t[t.Open=1]="Open",t[t.Close=2]="Close",t[t.Enter=3]="Enter",t[t.Tab=4]="Tab",t[t.Esc=5]="Esc",t[t.Delete=6]="Delete",t[t.Backspace=7]="Backspace",t[t.Home=8]="Home",t[t.End=9]="End",t[t.Up=10]="Up",t[t.Down=11]="Down",t[t.Left=12]="Left",t[t.Right=13]="Right"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTagTemplateDirective=n},function(e,t){e.exports=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NodeTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.TagTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ValueTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){t=Object.assign({},a,t);return!0===e?t:e?n.__assign({pageSize:a.pageSize},e):null}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),s=i(3),r=i(2),i=i(4),n=(Object.defineProperty(p.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"ariaExpanded",{get:function(){return"combobox"===this.role?this.popupOpen:null},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},p.prototype.ngOnChanges=function(e){var t;this.input&&(e.userInput||e.suggestedText)&&(e=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",t=this.input.nativeElement.selectionStart,e=e.length===t,this.writeInputValue(this.suggestedText?r.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):e?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(t,t),this._previousValue=this.userInput)},p.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},p.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},p.prototype.setInputSelection=function(e,t){if(o.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},p.prototype.handleInput=function(e){e=e.target.value;e!==this.userInput&&(this._previousValue=e,this.valueChange.emit(e))},p.prototype.handleFocus=function(e){this.onFocus.emit(e)},p.prototype.handleBlur=function(e){this.onBlur.emit(e)},p.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[s.Keys.ArrowUp,s.Keys.ArrowDown,s.Keys.ArrowLeft,s.Keys.ArrowRight,s.Keys.Enter,s.Keys.Escape,s.Keys.Delete,s.Keys.Backspace,s.Keys.Home,s.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},p.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},p.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},p.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,i=e(this.placeholder),n=e(this.value),i=Math.max(i,n,1);this.renderer.setAttribute(t,"size",i.toString())},n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"listId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"tagListId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"activeDescendant",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"noDataLabel",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],p.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"popupOpen",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"role",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"userInput",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"suggestedText",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onFocus",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onNavigate",void 0),n.__decorate([a.ViewChild("input",{static:!0}),n.__metadata("design:type",a.ElementRef)],p.prototype,"input",void 0),n.__decorate([a.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],p.prototype,"searchBarClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"placeholder",null),n.__decorate([a.Component({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),n.__metadata("design:paramtypes",[i.LocalizationService,a.Renderer2])],p));function p(e,t){this.localization=e,this.valueChange=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onClick=new a.EventEmitter,this.onNavigate=new a.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}t.SearchBarComponent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646819997,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=u},function(B,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function p(){return!1}function l(){return O.of([])}function d(){return!1}function u(){return!0}var i,n=t(0),c=t(1),a=t(15),h=t(3),o=t(4),s=t(19),r=t(8),m=t(5),g=t(9),v=t(10),f=t(6),_=t(11),b=t(27),y=t(2),C=t(41),S=t(24),I=t(14),x=t(13),w=t(30),D=t(18),k=t(31),E=t(28),T=t(7),O=t(12),P=t(17),F={animate:!0},A={checkChildren:!0,checkOnClick:!0},t=(i=M,Object.defineProperty(M.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),M.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},M.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===h.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===b.NavigationAction.Open&&e.preventDefault()},Object.defineProperty(M.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;(this._treeview=e)&&((this.isFocused&&!this.filterable&&!this.checkAll||this.touchEnabled)&&e.focus(),Promise.resolve(null).then(function(){return t.treeview.animate=!0}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=y.parseNumber(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},F,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},A,e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"dataItems",{get:function(){var i=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:i.valueDepth[t]||0}})},set:function(e){var i=this;this._dataItems=(e||[]).map(function(e,t){return y.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:i.valueDepth[t]||0}}),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"focusedTagId",{get:function(){if(!y.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+y.valueFrom({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isOpen",{get:function(){return y.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){var e=this.popupSettings.height;return y.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},M.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},M.prototype.ngOnChanges=function(e){var i=this;h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),h.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return n.__assign({},e,{level:i.valueDepth[t]||0})}):this.dataItems=this.value)},M.prototype.ngAfterContentChecked=function(){this.verifySettings()},M.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||y.isPresent(this.value)&&0!==this.value.length)},M.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},M.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},M.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),y.isPresent(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},M.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},M.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=y.isPresent(t)?t:!y.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},M.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},M.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(h.hasObservers(this.onBlur)||y.isUntouched(this.wrapper.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},M.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},M.prototype.togglePopup=function(e){var t=this,i=this.disabled||this.readonly,n=this.isOpen===e;this._zone.run(function(){t.focusedTagIndex=void 0}),i||n||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},M.prototype.messageFor=function(e){return this.localization.get(e)},M.prototype.handleCheckedItemsChange=function(e){this.valueDepth=e.map(function(e){return e.level}),this.lastAction=e.length>this.dataItems.length?"check":"uncheck",this.dataItems=e.slice(),this.updateValue(this.dataItems)},M.prototype.handleRemoveTag=function(e){var i=this,t=e.tag,n=e.index;this.disabled||this.readonly||(e=new C.RemoveTagEvent(t),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)})):(this.dataItems=this.dataItems.filter(function(e,t){return t!==n||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t!==n||i.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},M.prototype.handleTagMapperChange=function(e){this.showAfter=y.parseNumber(e),this.setTags()},M.prototype.clearAll=function(e){var i=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return i.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return i.disabledIndices.has(t)}),this.emitValueChange(this.value)},M.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},M.prototype.registerOnChange=function(e){this.onChangeCallback=e},M.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},M.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},M.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(M.prototype,"filterInputClasses",{get:function(){return(this.size?y.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?y.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?y.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),M.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},M.prototype.verifySettings=function(){if(c.isDevMode()){if(!y.isPresent(this.valueField)||!y.isPresent(this.textField))throw new Error(S.MultiSelectTreeMessages.textAndValue);if(!y.isArray(this.value))throw new Error(S.MultiSelectTreeMessages.array);if(0<this.value.length){if(this.valuePrimitive&&this.value.some(function(e){return y.isObject(e)}))throw new Error(S.MultiSelectTreeMessages.primitive);var e=this.dataItems.every(function(e){return y.isObject(e.dataItem)});if(this.valuePrimitive&&!y.isArray(this.dataItems))throw new Error(S.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(S.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(S.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!y.isObjectArray(this.value))throw new Error(S.MultiSelectTreeMessages.object);if((y.isArray(this.valueField)||y.isArray(this.textField))&&!y.isArray(this.valueDepth))throw new Error(S.MultiSelectTreeMessages.valueDepth);if((y.isArray(this.valueField)||y.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(S.MultiSelectTreeMessages.valueDepth);if((y.isArray(this.valueField)||y.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(S.MultiSelectTreeMessages.valueDepthLength)}}},M.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},M.prototype.triggerPopupEvents=function(e){var t=new _.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},M.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses}),this.popupRef.popupElement),i=this.width,n=i.min,i=i.max;t.style.minWidth=n,t.style.width=i,t.style.height=this.height,this.renderer.setAttribute(t,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},M.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},M.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(P.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),O.merge(this.navigationService.close,this.navigationService.esc).subscribe(function(){e.focus(),e.togglePopup(!1)}),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(P.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(P.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(P.filter(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(P.filter(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(P.filter(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(P.filter(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},M.prototype.subscribeFocusEvents=function(){var e=this;h.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},M.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},M.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},M.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},M.prototype.handleUpKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)&&(e="0"===this.treeview.navigationService.activeIndex,this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&e?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||e)&&(this.filterable?this.filterInput.nativeElement:this).focus())},M.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)},M.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},M.prototype.handleLeftKey=function(e){e.originalEvent.preventDefault(),void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},M.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},M.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},M.prototype.handleBackspace=function(){var e,t;void 0!==this.focusedTagIndex?this.handleDelete():(e=this.tags[this.tags.length-1],t=this.tags.length-1,this.handleRemoveTag({tag:e,index:t}))},M.prototype.handleDelete=function(){var e=this.tags[this.focusedTagIndex],t=this.focusedTagIndex;this.handleRemoveTag({tag:e,index:t}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},M.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents()},M.prototype.removeTreeViewFromTabOrder=function(){var t=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach(function(e){"0"===e.getAttribute("tabindex")&&(t.lastNodeOnFocus=e,t.lastNodeOnFocus.setAttribute("tabindex","-1"))})},M.prototype.setState=function(){y.isPresent(this.dataItems)&&y.isPresent(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},M.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},M.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return y.valueFrom(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},M.prototype.disabledItemsMapper=function(){var n=this;return new Set(this.dataItems.reduce(function(e,t,i){return n.itemDisabled(t.dataItem,t.index)&&e.push(i),e},[]))},M.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode))},n.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],M.prototype,"hostClasses",void 0),n.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isDisabled",null),n.__decorate([c.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isLoading",null),n.__decorate([c.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"id",null),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",String)],M.prototype,"direction",void 0),n.__decorate([c.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],M.prototype,"hostTabIndex",null),n.__decorate([c.HostBinding("attr.role"),n.__metadata("design:type",String)],M.prototype,"role",void 0),n.__decorate([c.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isAriaExpanded",null),n.__decorate([c.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],M.prototype,"ariaHasPopup",void 0),n.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isReadonly",null),n.__decorate([c.HostBinding("attr.aria-describedby"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"ariaDescribedBy",null),n.__decorate([c.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"ariaActiveDescendant",null),n.__decorate([c.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],M.prototype,"handleClick",null),n.__decorate([c.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],M.prototype,"handleKeydown",null),n.__decorate([c.ContentChild(I.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",I.HeaderTemplateDirective)],M.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(x.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",x.FooterTemplateDirective)],M.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(w.NodeTemplateDirective,{static:!1}),n.__metadata("design:type",w.NodeTemplateDirective)],M.prototype,"nodeTemplate",void 0),n.__decorate([c.ContentChild(D.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",D.NoDataTemplateDirective)],M.prototype,"noDataTemplate",void 0),n.__decorate([c.ContentChild(k.TagTemplateDirective,{static:!1}),n.__metadata("design:type",k.TagTemplateDirective)],M.prototype,"tagTemplate",void 0),n.__decorate([c.ContentChild(E.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",E.GroupTagTemplateDirective)],M.prototype,"groupTagTemplate",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],M.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],M.prototype,"container",void 0),n.__decorate([c.ViewChild("treeview",{static:!1}),n.__metadata("design:type",m.TreeViewComponent),n.__metadata("design:paramtypes",[m.TreeViewComponent])],M.prototype,"treeview",null),n.__decorate([c.ViewChild("filterInput",{static:!1}),n.__metadata("design:type",c.ElementRef)],M.prototype,"filterInput",void 0),n.__decorate([c.ViewChild("checkAllInput",{static:!1}),n.__metadata("design:type",c.ElementRef)],M.prototype,"checkAllInput",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],M.prototype,"tabindex",null),n.__decorate([c.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"size",null),n.__decorate([c.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"rounded",null),n.__decorate([c.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"fillMode",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"checkableSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],M.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],M.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],M.prototype,"dataItems",null),n.__decorate([c.Input(),n.__metadata("design:type",Object)],M.prototype,"textField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object)],M.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Array)],M.prototype,"valueDepth",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],M.prototype,"placeholder",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],M.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"valuePrimitive",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"loadOnDemand",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],M.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"clearButton",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],M.prototype,"checkAll",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function)],M.prototype,"hasChildren",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function)],M.prototype,"fetchChildren",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function)],M.prototype,"isNodeExpanded",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function)],M.prototype,"isNodeVisible",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function)],M.prototype,"itemDisabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object)],M.prototype,"tagMapper",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],M.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],M.prototype,"onBlur",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"closed",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"nodeExpand",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"nodeCollapse",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"removeTag",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],M.prototype,"filterChange",void 0),i=n.__decorate([c.Component({exportAs:"kendoMultiSelectTree",providers:[o.LocalizationService,s.NavigationService,g.DataService,v.DisabledItemsService,f.SelectionService,{provide:o.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return i})},{provide:m.DataBoundComponent,useExisting:c.forwardRef(function(){return i})},{provide:m.ExpandableComponent,useExisting:c.forwardRef(function(){return i})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return i})}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\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)="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 \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\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 '}),n.__param(7,c.Optional()),n.__param(7,c.Inject(T.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[c.ElementRef,r.PopupService,c.Renderer2,s.NavigationService,c.NgZone,o.LocalizationService,c.ChangeDetectorRef,Boolean])],M));function M(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.renderer=i,this.navigationService=n,this._zone=a,this.localization=o,this.cdr=s,this.touchEnabled=r,this.hostClasses=!0,this.role="combobox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+h.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=p,this.fetchChildren=l,this.isNodeVisible=u,this.itemDisabled=d,this.tagMapper=function(e){return e||[]},this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.removeTag=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.filterStateChange=new c.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=F,this._checkableSettings=A,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=y.noop,this.onChangeCallback=y.noop,this.direction=o.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}e.MultiSelectTreeComponent=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnHeaderTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnCellTemplateDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(39),i=i(38),o=(n.__decorate([a.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",o.ColumnCellTemplateDirective)],s.prototype,"cellTemplate",void 0),n.__decorate([a.ContentChild(i.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",i.ColumnHeaderTemplateDirective)],s.prototype,"headerTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"field",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],s.prototype,"width",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],s.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"style",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"class",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"media",void 0),n.__decorate([a.Component({selector:"kendo-combobox-column",template:""})],s));function s(){this.hidden=!1,this.matchesMedia=!0}t.ComboBoxColumnComponent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),i=(n=i(11).PreventableEvent,a.__extends(o,n),o);function o(e){var t=n.call(this)||this;return t.dataItem=e,t}t.RemoveTagEvent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.CustomItemTemplateDirective=n},function(j,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=t(0),h=t(2),a=t(34),m=t(1),g=t(12),v=t(17),o=t(3),s=t(15),f=t(36),_=t(35),r=t(6),p=t(19),l=t(27),d=t(10),u=t(3),c=t(22),b=t(42),y=t(21),C=t(20),S=t(14),I=t(13),x=t(31),w=t(28),D=t(18),k=t(24),E=t(11),T=t(41),O=t(4),P=t(8),F=t(26),z=t(7),A=t(9),R=t(25),N=t(76),L=t(33),t={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:m.forwardRef(function(){return M})},M=((i=B).prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;h.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},B.prototype.focus=function(){this.disabled||this.searchbar.focus()},B.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},B.prototype.blur=function(){this.disabled||this.searchbar.blur()},B.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,o.hasObservers(this.onBlur)||o.hasObservers(this.filterChange)||o.hasObservers(this.close)||h.isUntouched(this.wrapper.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},B.prototype.onMouseDown=function(e){e.preventDefault()},B.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(B.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"data",{get:function(){var e,t,i=this.virtual;return i?(t=(e=i.skip||0)+i.pageSize,i.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=N.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=L.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"valuePrimitive",{get:function(){return h.isPresent(this._valuePrimitive)?this._valuePrimitive:!h.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),B.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;0!==e.button||this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault())},Object.defineProperty(B.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"customItemSizeClass",{get:function(){return""+(this.size?h.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"width",{get:function(){var e=0,t=(o.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"height",{get:function(){var e=this.popupSettings.height;return h.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"activeDescendant",{get:function(){var e,t,i=this.focusedTagIndex,n=this.selectionService.focused;if(h.isPresent(i)&&!this.isOpen)t=this.tags[i],e=this.tagPrefix;else{if(!h.isPresent(n)||-1===n||!this.isOpen)return null;t=this.dataService.itemAt(n),e=this.optionPrefix}return e+"-"+h.getter(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),B.prototype.verifySettings=function(){if(m.isDevMode()&&0!==this.value.length){if(!h.isArray(this.value))throw new Error(k.MultiselectMessages.array);if(!0===this.valuePrimitive&&h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.object);if(!h.isPresent(this.valueField)!=!h.isPresent(this.textField))throw new Error(k.MultiselectMessages.textAndValue)}},B.prototype.change=function(e){var t,i,n=this;!h.isPresent(e.added)&&!h.isPresent(e.removed)||-1!==e.added&&-1!==e.removed?(h.isPresent(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&h.isPresent(t)&&h.isPresent(t[this.valueField])?t[this.valueField]:t,this.value=this.value.concat([t])),h.isPresent(e.removed)&&(i=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return h.getter(e,n.valueField)!==h.getter(i,n.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges()),this.emitValueChange()):this.addCustomValue(this.text)},B.prototype.setState=function(e){var i=this,t=this.dataService.data,n=(this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value})),h.selectedIndices(this.value,t,this.valueField));this.selectionService.resetSelection(n),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(h.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=h.resolveAllValues(e,t,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=i.selectedDataItems.find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)});return h.isPresent(e)?e:i.resolveDataItemFromTags(t)}).filter(function(e){return h.isPresent(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},B.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},B.prototype.pageChange=function(e){this.virtual.skip=e.skip},B.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},B.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.ArrowUp,i=this.text&&e.keyCode===u.Keys.Enter||e.keyCode===u.Keys.Escape;!this.text&&e.keyCode===u.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!i||(t=e,i=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(i=this.navigationService.process({current:i,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==l.NavigationAction.Undefined&&(i===l.NavigationAction.Enter&&this.isOpen||i!==l.NavigationAction.Enter)&&e.preventDefault())},B.prototype.handleRemoveTag=function(e){var e=e.tag,t=new T.RemoveTagEvent(e);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(t),t.isDefaultPrevented()||(e instanceof Array?this.removeGroupTag(e):this.removeSingleTag(e),this.cdr.detectChanges()))},B.prototype.clearAll=function(e){var i=this,n=(e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.selected);this.value=this.value.filter(function(e,t){return i.disabledItemsService.isIndexDisabled(n[t])}),this.emitValueChange()},B.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},B.prototype.ngAfterContentChecked=function(){this.verifySettings()},B.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},B.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},B.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),o.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),o.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},B.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},B.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents()},B.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=h.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),B.prototype.reset=function(){this.text="",this.value=[]},B.prototype.messageFor=function(e){return this.localization.get(e)},B.prototype.writeValue=function(e){this.value=e||[]},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.setDisabledState=function(e){this.disabled=e},B.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(B.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),B.prototype.subscribeEvents=function(){var e,t,i,n=this;o.isDocumentAvailable()&&(e=function(){return n.isOpen},t=function(){return!n.isOpen},i=function(){return!n.isOpen&&void 0!==n.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(v.filter(e)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(v.filter(e)).subscribe(function(e){return n.handleUp(e.index)}),this.navigationService.home.pipe(v.filter(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(v.filter(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(v.filter(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(v.filter(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.down.subscribe(function(e){return n.handleDownKey(e.index)})].forEach(function(e){return n.observableSubscriptions.add(e)}))},B.prototype.subscribeTouchEvents=function(){var t=this;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||h.inDropDown(t.wrapper,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},B.prototype.unsubscribeEvents=function(){o.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},B.prototype.removeGroupTag=function(e){var i=this,n=this.dataService.data,a=(this.dataService.grouped&&(n=n.filter(function(e){return!e.header}).map(function(e){return e.value})),new Set(e.map(function(e){return h.getter(e,i.valueField)})));this.value=this.value.filter(function(e){var t=h.selectedIndices([e],n,i.valueField)[0],t=i.disabledItemsService.isIndexDisabled(t);return!a.has(h.getter(e,i.valueField))||t}),this.emitValueChange()},B.prototype.removeSingleTag=function(t){var i=this,e=this.dataService.data,e=(this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value})),h.selectedIndices([t],e,this.valueField)[0]);this.disabledItemsService.isIndexDisabled(e)||(h.isNumber(e)?(this.selectionService.unselect(e),this.selectionService.focused=e,this.togglePopup(!1)):(this.value=this.value.filter(function(e){return h.getter(e,i.valueField)!==h.getter(t,i.valueField)}),this.emitValueChange()))},B.prototype.disabledItemsMapper=function(){var n=this,a=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,i){return n.disabledItemsService.isIndexDisabled(a[i])&&e.push(i),e},[]))},B.prototype.createCustomValueStream=function(){var a=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(v.tap(function(){a.loading=!0,a.disabled=!0,a.cdr.detectChanges()}),this.valueNormalizer,v.catchError(function(){return a.loading=!1,a.disabled=!1,a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()}),a.createCustomValueStream(),g.of(null)})).subscribe(function(e){var t,i,n;a.loading=!1,a.disabled=!1,h.isPresent(e)&&(t=a.valuePrimitive?h.getter(e,a.valueField):e,n=-1===(i=a.dataService.indexOf(t)),-1===a.value.indexOf(t)?(a.tags=a.tagMapper(a.selectedDataItems.concat([e])),n?a.value=a.value.concat([t]):a.selectionService.add(i)):!n&&a.selectionService.isSelected(i)?(a.selectionService.unselect(i),a.selectionService.focused=i):a.value=a.value.filter(function(e){return h.getter(e,a.valueField)!==t}),a.emitValueChange()),a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()})})},B.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},B.prototype.handleEnter=function(e){var t=this.selectionService,i=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==i?(t.isSelected(i)?(t.unselect(i),t.focused=i):t.add(i),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)},B.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},B.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},B.prototype.handleHome=function(){this.focusedTagIndex=0},B.prototype.handleUp=function(e){this.selectionService.focused=e},B.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},B.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},B.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},B.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},B.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},B.prototype.findIndex=function(t,e){var i,n=this,e=(void 0===e&&(e=0),t=t.toLowerCase(),this.dataService.findIndex(function(e){return i=n.dataService.grouped?h.getter(e.value,n.textField):h.getter(e,n.textField),i=h.isPresent(i)?i.toString().toLowerCase():"",t&&i.startsWith(t)},e));return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},B.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},B.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},B.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},B.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},B.prototype.triggerPopupEvents=function(e){var t=new E.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},B.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},B.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},B.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"}),this.popupRef.popupElement),i=this.width,n=i.min,i=i.max;t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=n,t.style.width=i,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})},B.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},B.prototype.resolveDataItemFromTags=function(t){var i=this;if(this.tags&&this.tags.length&&h.isPresent(t))return this.tags.reduce(function(e,t){t=h.isArray(t)?t:[t];return e.push.apply(e,t),e},[]).find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)})},B.prototype.firstFocusableIndex=function(e){var t,i=this.dataService.itemsCount;return this.disabledItemsService.isIndexDisabled(e)?(t=e+1)<i?this.firstFocusableIndex(t):void 0:e},B.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},B.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode))},n.__decorate([m.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"autoClose",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],B.prototype,"data",null),n.__decorate([m.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],B.prototype,"value",null),n.__decorate([m.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([m.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([m.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([m.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"size",null),n.__decorate([m.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"rounded",null),n.__decorate([m.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"fillMode",null),n.__decorate([m.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([m.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"checkboxes",null),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([m.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([m.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Object)],B.prototype,"tagMapper",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([m.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"open",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"close",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([m.Output("focus"),n.__metadata("design:type",m.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([m.Output("blur"),n.__metadata("design:type",m.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([m.Output(),n.__metadata("design:type",m.EventEmitter)],B.prototype,"removeTag",void 0),n.__decorate([m.ViewChild("container",{read:m.ViewContainerRef,static:!0}),n.__metadata("design:type",m.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([m.ViewChild(a.SearchBarComponent,{static:!0}),n.__metadata("design:type",a.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([m.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",m.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([m.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",R.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([m.ContentChild(c.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",c.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([m.ContentChild(b.CustomItemTemplateDirective,{static:!1}),n.__metadata("design:type",b.CustomItemTemplateDirective)],B.prototype,"customItemTemplate",void 0),n.__decorate([m.ContentChild(y.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",y.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([m.ContentChild(C.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",C.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([m.ContentChild(S.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",S.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([m.ContentChild(I.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",I.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([m.ContentChild(x.TagTemplateDirective,{static:!1}),n.__metadata("design:type",x.TagTemplateDirective)],B.prototype,"tagTemplate",void 0),n.__decorate([m.ContentChild(w.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",w.GroupTagTemplateDirective)],B.prototype,"groupTagTemplate",void 0),n.__decorate([m.ContentChild(D.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",D.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([m.HostBinding("class.k-multiselect"),m.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],B.prototype,"hostClasses",void 0),n.__decorate([m.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),n.__decorate([m.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"disabledClass",null),n.__decorate([m.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isLoading",null),n.__decorate([m.HostBinding("attr.role"),n.__metadata("design:type",String)],B.prototype,"role",void 0),n.__decorate([m.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isAriaExpanded",null),n.__decorate([m.HostListener("mousedown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],B.prototype,"hostMousedown",null),i=n.__decorate([m.Component({exportAs:"kendoMultiSelect",providers:[t,A.DataService,r.SelectionService,p.NavigationService,d.DisabledItemsService,O.LocalizationService,{provide:O.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:F.FilterableComponent,useExisting:m.forwardRef(function(){return i})},{provide:o.KendoInput,useExisting:m.forwardRef(function(){return i})}],selector:"kendo-multiselect",template:'\n <ng-container kendoMultiSelectLocalizedMessages\n i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'textbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(11,m.Optional()),n.__param(11,m.Inject(z.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[m.ElementRef,O.LocalizationService,P.PopupService,A.DataService,r.SelectionService,p.NavigationService,d.DisabledItemsService,m.ChangeDetectorRef,m.KeyValueDiffers,m.Renderer2,m.NgZone,Boolean])],B));function B(e,t,i,n,a,o,s,r,p,l,d,u){var c=this;this.wrapper=e,this.localization=t,this.popupService=i,this.dataService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.cdr=r,this.differs=p,this.renderer=l,this._zone=d,this.touchEnabled=u,this.listBoxId=h.guid(),this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.optionPrefix="option-"+h.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+h.guid(),this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=function(e){return e||[]},this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(v.map(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var i=c.value.find(e);return i||c.dataService.find(e)||t}))},this.filterChange=new m.EventEmitter,this.valueChange=new m.EventEmitter,this.open=new m.EventEmitter,this.opened=new m.EventEmitter,this.close=new m.EventEmitter,this.closed=new m.EventEmitter,this.onFocus=new m.EventEmitter,this.onBlur=new m.EventEmitter,this.removeTag=new m.EventEmitter,this.hostClasses=!0,this.role="combobox",this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new g.Subject,this.observableSubscriptions=new g.Subscription,f.validatePackage(_.packageMetadata),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}e.MultiSelectComponent=M},function(j,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=t(0),u=t(1),a=t(15),c=t(36),h=t(35),o=t(34),s=t(22),r=t(14),p=t(13),l=t(21),d=t(20),m=t(18),g=t(6),v=t(19),f=t(10),_=t(12),b=t(17),y=t(3),C=t(2),S=t(27),I=t(3),x=t(11),w=t(4),D=t(8),k=t(7),E=t(24),T=t(26),O=t(9),P=t(25),F=t(33),A=t(29),M=(e.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return M})},i=B,Object.defineProperty(B.prototype,"text",{get:function(){return this._text},set:function(e){this._text=C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(B.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!C.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?C.getter(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"data",{get:function(){var e,t,i=this.virtual;return i?(t=(e=i.skip||0)+i.pageSize,i.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering&&(e=0<this.text.length&&0<this.dataService.itemsCount?this.firstFocusableIndex(0):-1,this.selectionService.focused=e),this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=C.getter(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"valuePrimitive",{get:function(){return C.isPresent(this._valuePrimitive)?this._valuePrimitive:!C.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupWidth",{get:function(){var e=0,t=(y.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()},B.prototype.createValueStream=function(){var n=this,e=this.valueSubject.pipe(b.filter(function(e){var t=C.getter(n.value,n.valueField),i=C.getter(e,n.valueField),e=C.getter(e,n.textField);return!(!C.isPresent(n.value)&&!C.isPresent(i)||(C.isPresent(e)&&(e=e.toString()),t===i&&n.text===e&&(n.clearFilter(),1)))}),b.map(function(e){var t=C.getter(e,n.valueField);return{dataItem:e,text:C.getter(e,n.textField),value:n.valuePrimitive?t:e}})),t=b.partition(function(){return n.allowCustom})(this.customValueSubject.pipe(b.throttleTime(300))),i=t[0].pipe(b.tap(function(){n.loading=!0,n.disabled=!0,n.cdr.detectChanges()}),b.filter(function(){var e=n.text!==C.getter(n.value,n.valueField);return n.loading=e,(n.disabled=e)||n.clearFilter(),e}),this.valueNormalizer,b.map(function(e){return{custom:!0,dataItem:e,text:n.text,value:e}})),t=t[1].pipe(b.map(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),a=this.clearValueSubject.pipe(b.map(function(){return{dataItem:void 0,text:void 0,value:void 0}})),e=(this.valueSubscription&&this.valueSubscription.unsubscribe(),_.merge(e,i,t,a));this.valueSubscription=e.pipe(b.catchError(function(){var e=void 0!==C.getter(n.dataItem,n.valueField);return n.dataItem=void 0,n.value=void 0,n.text=void 0,n.loading=!1,n.disabled=!1,e&&n.selectionChange.emit(void 0),n.emitValueChange(),n.createValueStream(),_.of(null)})).subscribe(function(e){var t=C.getter(n.dataItem,n.valueField)!==C.getter(e.dataItem,n.valueField);n.dataItem=e.dataItem,n.value=e.value,n.text=e.text,n.loading=!1,n.disabled=!1,n.clearFilter(),e.custom&&(n.selectionService.focused=-1),t&&(t=e.custom?void 0:n.dataItem,n.selectionChange.emit(t)),n.emitValueChange()})},B.prototype.attachStreams=function(){var i=this;y.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;i.direction=e?"rtl":"ltr",i.cdr.detectChanges()})),this.subs.add(_.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(b.filter(function(e){return C.isPresent(e.index)})).subscribe(function(e){return i.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return i.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(b.tap(function(e){i.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(_.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(b.filter(function(e){return!i.isOpen}))).pipe(b.tap(function(e){i._filtering=!1,i.togglePopup(!1)}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){i.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(b.filter(function(e){return i.isOpen}),b.tap(function(e){return i._filtering=!1}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=C.getter(e,i.valueField)!==C.getter(i.dataItem,i.valueField);i.updateState({dataItem:e}),t&&i.selectionChange.emit(e)})))},B.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),C.isPresent(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},B.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),y.isChanged("valueNormalizer",e)&&this.createValueStream(),y.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},B.prototype.ngAfterContentChecked=function(){this.verifySettings()},B.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;C.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},B.prototype.focus=function(){this.disabled||this.searchbar.focus()},B.prototype.blur=function(){this.disabled||this.searchbar.blur()},B.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),B.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},B.prototype.isEmpty=function(){var e=!C.isPresent(this.text)||C.isEmptyString(this.text),t=!C.isPresent(this.value)||C.isEmptyString(this.value);return e&&t},B.prototype.messageFor=function(e){return this.localization.get(e)},B.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},B.prototype.writeValue=function(e){this.value=null===e?void 0:e},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(B.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"selectButtonClasses",{get:function(){return(this.size?C.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!0,configurable:!0}),B.prototype.onResize=function(){var e,t,i;this.isOpen&&(e=this.popupRef.popupElement,t=(i=this.popupWidth).min,i=i.max,e.style.minWidth=t,e.style.width=i)},B.prototype.verifySettings=function(){if(u.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(E.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(E.ComboBoxMessages.noItemHeight)}},B.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),C.isPresent(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):C.isPresent(e)&&this.allowCustom?(this.updateState({dataItem:e}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1)))},B.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=C.getter(t,this.textField),e&&(this._previousDataItem=t)},B.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},B.prototype.resetSelection=function(e){var t=!C.isPresent(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},B.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},B.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=C.getter(e.value,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=C.getter(e,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},B.prototype.findDataItem=function(e){var t=this,i=e.valueField,n=e.value,e={dataItem:null,index:-1},a=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return C.getter(e,i)===C.getter(n,i)});return e.dataItem=this.dataService.itemAt(a),e.index=a,e},B.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=C.getter(this.dataService.itemAt(t),this.textField)))},B.prototype.getSuggestion=function(){var e=!!this.selectionService.selected.length,t=this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text;if(!e&&t&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0},B.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=C.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},B.prototype.handleNavigate=function(e){var t=C.isPresent(this.selectionService.selected[0]),i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,n=0;this.disabled||this.readonly||e.keyCode===I.Keys.Home||e.keyCode===I.Keys.End||(t||(e.keyCode===I.Keys.ArrowDown?n=-1:e.keyCode===I.Keys.ArrowUp&&(n=1)),(t=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==S.NavigationAction.Undefined&&t!==S.NavigationAction.Left&&t!==S.NavigationAction.Right&&t!==S.NavigationAction.Backspace&&t!==S.NavigationAction.Delete&&(t===S.NavigationAction.Enter&&this.isOpen||t!==S.NavigationAction.Enter)&&e.preventDefault())},B.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,i=C.isPresent(t)&&-1!==t,n=C.getter(this._previousDataItem,this.textField)||"",a=C.getter(this.dataService.itemAt(t),this.textField),n=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&n&&(e===a||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(i?this.selectionService.change(t):n&&this.change(e,!0))},B.prototype.handleBlur=function(){var e=this,t=(this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1,C.getter(this.dataItem,this.valueField)!==C.getter(this.value,this.valueField)),i=this.searchbar.value,n=i!==(C.getter(this.dataItem,this.textField)||""),a=t||n;a||y.hasObservers(this.onBlur)||y.hasObservers(this.close)||C.isUntouched(this.wrapper.nativeElement)?this.zone.run(function(){a&&(C.isPresent(e.focusedItemText)&&e.focusedItemText.toLowerCase()===i.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(i,!0)),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},B.prototype.handleEscape=function(){this.togglePopup(!1),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},B.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},B.prototype.searchBarChange=function(e){var t=this.text?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)},B.prototype.handleFocus=function(){var e=this;this.isFocused=!0,y.hasObservers(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},B.prototype.pageChange=function(e){this.virtual.skip=e.skip},B.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},B.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},B.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(B.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),B.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(B.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!C.isPresent(e)||-1===e)return null;e=C.getter(this.dataService.itemAt(e),this.textField);return C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.restoreItemFocus=function(){C.isPresent(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},B.prototype.useSuggestion=function(){if(!this.suggest||!C.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),e=C.getter(e,this.textField);return!!C.isPresent(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase()},B.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},B.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:t,vertical:"bottom"},popupAlign:{horizontal:t,vertical:"top"}}),this.popupRef.popupElement),i=this.popupWidth,n=i.min,i=i.max;t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=n,t.style.width=i,t.style.height=this.popupHeight,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},B.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},B.prototype.triggerPopupEvents=function(e){var t=new x.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},B.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},B.prototype.subscribeTouchEvents=function(){var t=this;y.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=C.inDropDown(t.wrapper,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},B.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=A.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},B.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode))},n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"placeholder",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"suggest",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(s.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",s.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([u.ContentChild(r.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",r.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(p.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",p.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([u.ContentChild(l.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",l.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(d.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild(o.SearchBarComponent,{static:!0}),n.__metadata("design:type",o.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([u.ViewChild("select",{static:!0}),n.__metadata("design:type",u.ElementRef)],B.prototype,"select",void 0),n.__decorate([u.HostBinding("class.k-combobox"),u.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],B.prototype,"widgetClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),i=n.__decorate([u.Component({exportAs:"kendoComboBox",providers:[e.COMBOBOX_VALUE_ACCESSOR,O.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,w.LocalizationService,{provide:w.L10N_PREFIX,useValue:"kendo.combobox"},{provide:T.FilterableComponent,useExisting:u.forwardRef(function(){return i})},{provide:y.KendoInput,useExisting:u.forwardRef(function(){return i})}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,u.Optional()),n.__param(10,u.Inject(k.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,w.LocalizationService,D.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,Boolean])],B));function B(e,t,i,n,a,o,s,r,p,l,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this.zone=r,this.cdr=p,this.renderer=l,this.touchEnabled=d,this.selected=[],this.focusableId="k-"+C.guid(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(b.map(function(e){return e}))},this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new u.EventEmitter,this.selectionChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=C.guid(),this.optionPrefix=C.guid(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=function(e){return e.preventDefault()},this.customValueSubject=new _.Subject,this.valueSubject=new _.Subject,this.clearValueSubject=new _.Subject,this.subs=new _.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}e.ComboBoxComponent=M},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(43),r=i(42),p=i(49),l=i(23),d=i(16),i=i(7),s=[s.MultiSelectComponent,p.SummaryTagDirective,r.CustomItemTemplateDirective],p=n.__decorate([a.NgModule({declarations:[s],exports:[s,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:i.TOUCH_ENABLED,useValue:o.touchEnabled}]})],u);function u(){}t.MultiSelectModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(63),s=i(23),i=i(16),o=[o.DropDownListComponent],n=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.DropDownListModule=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(44),r=i(62),p=i(40),l=i(23),d=i(16),u=i(7),c=i(38),i=i(39),s=[s.ComboBoxComponent,r.MultiColumnComboBoxComponent,p.ComboBoxColumnComponent,c.ColumnHeaderTemplateDirective,i.ColumnCellTemplateDirective],r=n.__decorate([a.NgModule({declarations:[s],exports:[s,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],h);function h(){}t.ComboBoxModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(65),s=i(23),i=i(16),o=[o.AutoCompleteComponent],n=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.AutoCompleteModule=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(43),a=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},s.prototype.createTagMapper=function(){var i=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(e){var t;return e.length>i?(t=void 0,(t=e.slice(0,i)).push(e.slice(i,e.length)),t):e}},n.__decorate([a.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectComponent])],s));function s(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}t.SummaryTagDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(0),n=i(1),o=i(2);function s(){}s.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=o.getHierarchicalItemLevel(e.index),e=a.__assign({},e,{level:t}),this.checkedItems.push(e),this.checkedKeys.add(this.getKey(e)))},s.prototype.removeItem=function(e){var t,i,n=this;this.isItemChecked(e)&&(t=o.getHierarchicalItemLevel(e.index),i=a.__assign({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return o.valueFrom(e,n.valueField)!==o.valueFrom(i,n.valueField)}),this.checkedKeys.delete(this.getKey(i)))},s.prototype.isItemChecked=function(e){var t=e.index.split("_").length-1;return e.level=t,this.checkedKeys.has(this.getKey(e))},s.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return t.getKey(e)}))},s.prototype.getKey=function(e){return o.isArray(this.valueField)?o.valueFrom(e,this.valueField)+"_"+e.level:o.valueFrom(e,this.valueField)},a.__decorate([n.Input(),a.__metadata("design:type",Object)],s.prototype,"valueField",void 0),a.__decorate([n.Input(),a.__metadata("design:type",Array)],s.prototype,"checkedItems",void 0),t.BaseCheckDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=(Object.defineProperty(a.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),n.__decorate([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],a.prototype,"templateContext",null),n.__decorate([i.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[i.ViewContainerRef])],a));function a(e){this.viewContainerRef=e}t.TemplateContextDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),i=i(6),a=(Object.defineProperty(o.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),o.prototype.onClick=function(e){e.stopPropagation(),this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))},n.__decorate([a.HostBinding("attr.index"),a.Input(),n.__metadata("design:type",Number)],o.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],o.prototype,"checkboxes",void 0),n.__decorate([a.HostBinding("style.height.px"),a.HostBinding("style.minHeight.px"),a.Input(),n.__metadata("design:type",Number)],o.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],o.prototype,"multipleSelection",void 0),n.__decorate([a.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"focusedClassName",null),n.__decorate([a.HostBinding("class.k-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"selectedClassName",null),n.__decorate([a.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],o.prototype,"onClick",null),n.__decorate([a.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[i.SelectionService])],o));function o(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}t.SelectableDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(26),s=i(2),r={caseSensitive:!1,operator:"startsWith"},i=(Object.defineProperty(p.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},p.prototype.ngOnDestroy=function(){s.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},p.prototype.handleFilterChange=function(t){var i=this;this.component.data=this.data.filter(function(e){return i.matchesAnyField(e,t)})},p.prototype.matchesAnyField=function(t,e){var i=this,n=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,n):e.some(function(e){return i.checkItem(s.getter(t,e),n)})},p.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},p.prototype.normalizeValue=function(e){e=s.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},p.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?s.isArray(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(p.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=s.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},r,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],p.prototype,"data",null),n.__decorate([a.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],p.prototype,"rawSettings",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"filterable",void 0),n.__decorate([a.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[o.FilterableComponent])],p));function p(e){this.component=e,this.filterable=!0,this._data=[]}t.FilterDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=(n=i(4).ComponentMessages,a.__extends(s,n),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"noDataText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"clearTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"checkAllText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"selectButtonText",void 0),s);function s(){return null!==n&&n.apply(this,arguments)||this}t.Messages=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(23),s=i(5),r=i(16),p=i(61),l=i(37),d=i(60),u=i(59),c=i(58),h=i(57),m=i(56),g=i(30),i=i(67),p=[p.DropDownTreeComponent,l.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,u.DropDownTreeHierarchyBindingDirective,c.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,i.MultiSelectTreeSummaryTagDirective],l=n.__decorate([a.NgModule({declarations:[p],exports:[p,r.SharedDirectivesModule],imports:[o.SharedModule,s.TreeViewModule]})],v);function v(){}t.DropDownTreesModule=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),o=(n=i.ExpandDirective,a.__extends(s,n),a.__decorate([o.Input("isNodeExpanded"),a.__metadata("design:type",Function)],s.prototype,"isExpanded",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),a.__metadata("design:paramtypes",[i.ExpandableComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreesExpandDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),o=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoMultiSelectTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.multiSelectTree=e,t}t.MultiSelectTreeHierarchyBindingDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),o=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoMultiSelectTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.MultiSelectTreeFlatBindingDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),o=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoDropDownTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.dropDownTree=e,t}t.DropDownTreeHierarchyBindingDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),o=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoDropDownTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreeFlatBindingDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function p(){return!1}function l(){return I.of([])}function d(){return!1}function u(){return!0}var n,a=i(0),c=i(1),h=i(3),o=i(8),s=i(5),r=i(29),m=i(15),g=i(9),v=i(10),f=i(19),_=i(4),b=i(6),y=i(11),C=i(2),S=i(18),I=i(12),x=i(17),w=i(14),D=i(13),k=i(30),E=i(24),T=i(7),i=i(32),O={animate:!0},S=(n=P,Object.defineProperty(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),P.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},P.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Object.defineProperty(P.prototype,"treeview",{get:function(){return this._treeview},set:function(e){e&&((this.isFocused&&!this.filterable||this.touchEnabled)&&e.focus(),e.animate=!0,this._treeview=e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},O,e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isOpen",{get:function(){return C.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},P.prototype.ngOnChanges=function(e){h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},P.prototype.ngAfterContentChecked=function(){this.verifySettings()},P.prototype.isEmpty=function(){return!this.text&&!this.placeholder},P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},P.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},P.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,h.hasObservers(this.onBlur)||C.isUntouched(this.wrapper.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},P.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),C.isPresent(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},P.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},P.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},P.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!C.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},Object.defineProperty(P.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),P.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index,e=(this.valueDepth=e.split("_").length-1,this.getField(this.valueField,t)),e=this.valuePrimitive?r.getter(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},P.prototype.messageFor=function(e){return this.localization.get(e)},P.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()},Object.defineProperty(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),P.prototype.preventEventDefault=function(e){e.preventDefault()},P.prototype.writeValue=function(e){!C.isPresent(e)&&C.isPresent(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},P.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(P.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"selectButtonClasses",{get:function(){return(this.size?C.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"filterInputClasses",{get:function(){return(this.size?C.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?C.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),P.prototype.verifySettings=function(){if(c.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(E.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.DropDownTreeMessages.object);if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(E.DropDownTreeMessages.textAndValue);if((C.isArray(this.valueField)||C.isArray(this.textField))&&C.isPresent(this.value)&&!C.isPresent(this.valueDepth))throw new Error(E.DropDownTreeMessages.valueDepth)}},P.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.getText=function(e,t){return C.isPresent(t)&&C.isPresent(e)?(e=this.getField(e,t),r.getter(e)(t)):null},P.prototype.getField=function(e,t){var i=e.length-1;return"string"==typeof e?e:C.isPresent(this.valueDepth)?i<this.valueDepth?e[i]:e[this.valueDepth]:e.find(function(e){return e in t})},P.prototype.triggerPopupEvents=function(e){var t=new y.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses}),this.popupRef.popupElement),i=this.width,n=i.min,i=i.max;t.style.minWidth=n,t.style.width=i,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},P.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},P.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},P.prototype.setState=function(){var e;C.isPresent(this.value)&&C.isPresent(this.dataItem)&&C.isPresent(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[r.getter(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},P.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},P.prototype.subscribeEvents=function(){var t=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return t.togglePopup(!0)}),this.navigationService.close.subscribe(function(){t.togglePopup(!1),t.focus()}),this.navigationService.enter.pipe(x.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return t.togglePopup(!0)}),this.navigationService.esc.subscribe(function(){return t.handleEscape()}),this.navigationService.tab.subscribe(function(){return t.focus()}),this.navigationService.down.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.treeview.isActive||t.treeview.focus())}),this.navigationService.up.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.filterable&&"0"===t.treeview.navigationService.activeIndex&&t.filterInput.nativeElement.focus())}))},P.prototype.subscribeTouchEvents=function(){var t=this;h.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!C.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},P.prototype.subscribeFocusEvents=function(){var e=this;h.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},P.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},P.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},P.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},P.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",e=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},P.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("picker",this.fillMode))},a.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-picker"),a.__metadata("design:type",Boolean)],P.prototype,"hostClasses",void 0),a.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),a.__decorate([c.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),a.__decorate([c.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],P.prototype,"id",null),a.__decorate([c.HostBinding("attr.dir"),a.__metadata("design:type",String)],P.prototype,"direction",void 0),a.__decorate([c.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],P.prototype,"hostTabIndex",null),a.__decorate([c.HostBinding("attr.role"),a.__metadata("design:type",String)],P.prototype,"role",void 0),a.__decorate([c.HostBinding("attr.aria-haspopup"),a.__metadata("design:type",String)],P.prototype,"ariaHasPopup",void 0),a.__decorate([c.HostBinding("attr.aria-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isAriaExpanded",null),a.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isReadonly",null),a.__decorate([c.HostListener("click"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],P.prototype,"handleClick",null),a.__decorate([c.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],P.prototype,"handleKeydown",null),a.__decorate([c.ContentChild(S.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),a.__decorate([c.ContentChild(w.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",w.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),a.__decorate([c.ContentChild(D.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",D.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),a.__decorate([c.ContentChild(k.NodeTemplateDirective,{static:!1}),a.__metadata("design:type",k.NodeTemplateDirective)],P.prototype,"nodeTemplate",void 0),a.__decorate([c.ContentChild(i.ValueTemplateDirective,{static:!1}),a.__metadata("design:type",i.ValueTemplateDirective)],P.prototype,"valueTemplate",void 0),a.__decorate([c.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",c.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),a.__metadata("design:type",c.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([c.ViewChild("treeview",{static:!1}),a.__metadata("design:type",s.TreeViewComponent),a.__metadata("design:paramtypes",[s.TreeViewComponent])],P.prototype,"treeview",null),a.__decorate([c.ViewChild("filterInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],P.prototype,"filterInput",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"open",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"opened",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"close",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"closed",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeExpand",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeCollapse",void 0),a.__decorate([c.Output("focus"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([c.Output("blur"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"filterChange",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],P.prototype,"data",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"value",null),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"textField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"valueField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"valueDepth",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"hasChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"fetchChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"dataItem",null),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"valuePrimitive",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabindex",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"size",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"itemDisabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeExpanded",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeVisible",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loadOnDemand",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"filter",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n=a.__decorate([c.Component({exportAs:"kendoDropDownTree",providers:[g.DataService,b.SelectionService,f.NavigationService,v.DisabledItemsService,_.LocalizationService,{provide:_.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:m.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return n})},{provide:s.DataBoundComponent,useExisting:c.forwardRef(function(){return n})},{provide:s.ExpandableComponent,useExisting:c.forwardRef(function(){return n})}],selector:"kendo-dropdowntree",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 \x3c!--header template--\x3e\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 \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\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 ',changeDetection:c.ChangeDetectionStrategy.OnPush}),a.__param(7,c.Optional()),a.__param(7,c.Inject(T.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[c.ElementRef,o.PopupService,f.NavigationService,c.Renderer2,c.NgZone,c.ChangeDetectorRef,_.LocalizationService,Boolean])],P));function P(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.navigationService=i,this.renderer=n,this._zone=a,this.cdr=o,this.localization=s,this.touchEnabled=r,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.clearButton=!0,this.hasChildren=p,this.fetchChildren=l,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=d,this.isNodeVisible=u,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+h.guid(),this.selectedKeys=[],this.filterStateChange=new c.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+h.guid(),this._popupSettings=O,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}t.DropDownTreeComponent=S},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,n,a=i(0),o=i(1),s=i(15),r=i(3),p=i(4),l=i(8),d=i(44),c=i(40),h=i(9),m=i(10),g=i(19),v=i(6),f=i(7),_=i(2),b=i(75),y=i(26),C=i(24),i=(u=d.ComboBoxComponent,a.__extends(S,u),n=S,Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||b.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tableSizeClass",{get:function(){return""+(this.size?_.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),S.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},S.prototype.ngOnDestroy=function(){u.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},S.prototype.textFrom=function(e,t){return _.getter(e,t)},S.prototype.updateHeaderPadding=function(e){var t;_.isPresent(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<b.scrollbarWidth()?this.renderer.setStyle(e,t,b.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t))},S.prototype.verifySettings=function(){if(o.isDevMode()){if(_.isPresent(this.data)&&0<this.data.length&&this.data.some(function(e){return!_.isObject(e)}))throw new Error(C.MultiColumnComboBoxMessages.data);if(!_.isPresent(this.valueField)||!_.isPresent(this.textField))throw new Error(C.MultiColumnComboBoxMessages.textAndValue);u.prototype.verifySettings.call(this)}},S.prototype.addWindowResizeListener=function(){var e=this;r.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},S.prototype.updateColumnsMediaState=function(){var i=this;_.isPresent(this.columns)&&r.isDocumentAvailable()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,i.isOpen&&i.zone.run(function(){return i.popupRef.popupElement.style.width=i.popupWidth.max}))})},a.__decorate([o.HostBinding("class.k-dropdowngrid"),a.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),a.__decorate([o.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],S.prototype,"isDisabled",null),a.__decorate([o.ContentChildren(c.ComboBoxColumnComponent),a.__metadata("design:type",o.QueryList)],S.prototype,"columns",void 0),a.__decorate([o.ViewChild("header",{static:!1}),a.__metadata("design:type",o.ElementRef),a.__metadata("design:paramtypes",[o.ElementRef])],S.prototype,"header",null),n=a.__decorate([o.Component({providers:[v.SelectionService,h.DataService,g.NavigationService,m.DisabledItemsService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return n})},{provide:r.KendoInput,useExisting:o.forwardRef(function(){return n})},{provide:y.FilterableComponent,useExisting:o.forwardRef(function(){return n})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),a.__param(10,o.Inject(f.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[p.LocalizationService,l.PopupService,v.SelectionService,g.NavigationService,m.DisabledItemsService,h.DataService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],S));function S(e,t,i,n,a,o,s,r,p,l,d){l=u.call(this,l,e,t,i,n,a,o,s,r,p,d)||this;return l.hostClasses=!0,l.removeWindowResizeListener=_.noop,l.defaultVirtualItemHeight=36,l.defaultVirtualPageSize=30,l}t.MultiColumnComboBoxComponent=i},function(B,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=t(0),u=t(1),a=t(15),c=t(36),h=t(35),m=t(12),o=t(17),s=t(3),r=t(3),g=t(2),p=t(6),l=t(19),d=t(22),v=t(21),f=t(20),_=t(32),b=t(14),y=t(13),C=t(18),S=t(27),I=t(11),x=t(4),w=t(8),D=t(7),k=t(24),E=t(10),T=t(9),O=t(26),P=t(25),F=t(33),A=(e.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return A})},i=M,Object.defineProperty(M.prototype,"width",{get:function(){var e=s.isDocumentAvailable()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){var e=this.popupSettings.height;return g.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"widgetTabIndex",{get:function(){var e;if(!this.disabled)return e=Number(this.tabIndex),isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"ariaActivedescendant",{get:function(){if(g.isPresent(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+g.getter(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"data",{get:function(){var e,t,i=this.virtual;return i?(t=(e=i.skip||0)+i.pageSize,i.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"value",{get:function(){return this._value},set:function(e){g.isPresent(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"valuePrimitive",{get:function(){return g.isPresent(this._valuePrimitive)?this._valuePrimitive:!g.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),M.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},M.prototype.blurFilterInput=function(){this.filterBlurred.emit()},M.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},M.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(M.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),M.prototype.keydown=function(e){var t,i,n=g.isPresent(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,a=0;this.disabled||this.readonly||(t=e.keyCode===r.Keys.Home||e.keyCode===r.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(t=g.isPresent(this.selectionService.selected[0]),i=g.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),t&&!i||(e.keyCode===r.Keys.ArrowDown||e.keyCode===r.Keys.ArrowRight?a=-1:e.keyCode!==r.Keys.ArrowUp&&e.keyCode!==r.Keys.ArrowLeft||(a=1)),n=(i=this.navigationService.process({current:n+a,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:t=e}))===S.NavigationAction.Left||i===S.NavigationAction.Right,i===S.NavigationAction.Undefined||i===S.NavigationAction.Tab||i===S.NavigationAction.Backspace||i===S.NavigationAction.Delete||n&&this.filterable||i===S.NavigationAction.Enter||t.preventDefault()))},M.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},M.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(M.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.detectChanges()}),this.assignAriaDescribedBy(),this.setComponentClasses()},M.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},M.prototype.onFilterFocus=function(){this.filterFocused.emit()},M.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},M.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),s.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),s.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},M.prototype.ngAfterContentChecked=function(){this.verifySettings()},M.prototype.focusItemAt=function(e){var t=(g.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;g.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},M.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},M.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},M.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=g.isPresent(t)?t:!i._open;i._toggle(e)})},M.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},M.prototype.triggerPopupEvents=function(e){var t=new I.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},M.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))},Object.defineProperty(M.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),M.prototype.reset=function(){this.value=void 0},M.prototype.messageFor=function(e){return this.localization.get(e)},M.prototype.writeValue=function(e){this.value=null===e?void 0:e},M.prototype.registerOnChange=function(e){this.onChangeCallback=e},M.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},M.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(M.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"selectButtonClasses",{get:function(){return(this.size?g.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"filterInputClasses",{get:function(){return(this.size?g.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?g.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?g.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),M.prototype.getText=function(){return this.text},M.prototype.getDefaultItemText=function(){return g.getter(this.defaultItem,this.textField)},M.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"}),this.popupRef.popupElement),i=this.width,n=i.min,i=i.max;t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=n,t.style.width=i,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},M.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},M.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=g.getter(t,this.textField),e&&(this._previousDataItem=t)},M.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},M.prototype.resetSelection=function(e){var t=!g.isPresent(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},M.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},M.prototype.subscribeEvents=function(){var a=this;s.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(o.filter(function(e){return a.isOpen}),o.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(m.merge(this.selectionService.onSelect.pipe(o.filter(function(e){return!a.isOpen})),this.selectionService.onChange).pipe(o.map(this.itemFromEvent.bind(this)),o.tap(function(e){return a.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,i=e.value,e=(e.newSelection&&a.onSelectionChange({dataItem:t}),!g.isPresent(t)&&a._previousDataItem),n=i!==g.getter(a.value,a.valueField);e?(a.updateState({dataItem:a._previousDataItem}),a.resetSelection()):n&&(a.value=a.valuePrimitive?i:t,a._previousDataItem=t,a.emitChange(a.value)),a.clearFilter()})),this.navigationSubscription=m.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.right.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.home,this.navigationService.end).pipe(o.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return a.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return a.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){a.togglePopup(!1),a.focus()}),this.enterSubscription=this.navigationService.enter.pipe(o.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.hostElementFocused))})).subscribe(function(){a.hostElementBlurred.emit()}),this._zone.runOutsideAngular(function(){a.componentBlurredSubscription=m.merge(a.hostElementBlurred.pipe(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.filterFocused))})),a.navigationService.tab).pipe(o.tap(function(e){return e instanceof l.NavigationEvent&&a.focus()}),o.filter(function(){return a.isFocused})).subscribe(function(){return a.componentBlur()})}))},M.prototype.subscribeTouchEvents=function(){var t=this;s.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!g.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},M.prototype.subscribeFocusEvents=function(){var e=this;s.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)}))},M.prototype.unSubscribeFocusEvents=function(){s.isDocumentAvailable()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))},M.prototype.unsubscribeEvents=function(){s.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},M.prototype.itemFromEvent=function(e){var t=e.indices[0],i=this.dataService.itemAt(t),i=g.isPresent(i)?i:this.currentOrDefault(t),n=g.getter(i,this.valueField);return{dataItem:i,index:t,newSelection:e.newSelection,value:n}},M.prototype.currentOrDefault=function(e){return g.isPresent(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},M.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},M.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},M.prototype.handleEscape=function(){g.isPresent(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},M.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},M.prototype.verifySettings=function(){if(u.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(k.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&g.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&g.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.DropDownListMessages.object);if(!g.isPresent(this.valueField)!=!g.isPresent(this.textField))throw new Error(k.DropDownListMessages.textAndValue)}},M.prototype.componentBlur=function(){var e=this,t=(this.isFocused=!1,g.isPresent(this.selectionService.selected[0])&&g.getter(this.value,this.valueField)!==g.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField));t||s.hasObservers(this.close)||s.hasObservers(this.onBlur)||s.hasObservers(this.filterChange)||g.isUntouched(this.wrapper.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},M.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},M.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==r.Keys.Enter&&(t=String.fromCharCode(e.charCode||e.keyCode)," "===(t=this.ignoreCase?t.toLowerCase():t)&&e.preventDefault(),this.word+=t,this.last=t,this.search())},M.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},M.prototype.selectNext=function(){var e,t,i=this,n=this.dataService.filter(function(e){return g.isPresent(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)}).map(function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}}),a=g.sameCharsOnly(this.word,this.last),o=n.length,s=!isNaN(this.selectionService.selected[0]),r=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},o+=1,r+=1),n=g.shuffleData(n,r+=a&&s?1:0,t),e=0;e<o;e++){var p=g.getter(n[e].item,this.textField),l=Boolean(a&&g.matchText(p,this.last,this.ignoreCase)),p=Boolean(g.matchText(p,this.word,this.ignoreCase));if(l||p){e=n[e].itemIndex;break}}e!==o&&this.navigate(e)},M.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},M.prototype.navigate=function(e){this.selectionService.select(e)},M.prototype.findDataItem=function(e){function t(e){return g.getter(e,i)}var i=e.valueField,n=e.value,e={dataItem:null,index:-1},a=this.dataService.grouped?function(e){return t(e.value)===t(n)}:function(e){return t(e)===t(n)},a=this.dataService.findIndex(a);return e.dataItem=this.dataService.itemAt(a),e.index=a,e},M.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var a=g.getter(this.defaultItem,t),o=g.getter(e,t);if(!g.isPresent(e)||o===a)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}o=this.findDataItem({valueField:t,value:e}),a=!(n&&i);o.dataItem?(this.updateState({dataItem:o.dataItem,confirm:!0}),this.resetSelection(o.index)):(g.isPresent(e)&&a?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},M.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},M.prototype.pageChange=function(e){this.virtual.skip=e.skip},M.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim(),e=(this.valueLabelId=g.guid(),(this.valueLabelId+" "+e).trim());this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},M.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode))},n.__decorate([u.Input(),n.__metadata("design:type",String)],M.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],M.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],M.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],M.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],M.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object)],M.prototype,"defaultItem",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],M.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],M.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],M.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],M.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],M.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],M.prototype,"ignoreCase",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],M.prototype,"delay",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],M.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],M.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],M.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],M.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],M.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],M.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],M.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],M.prototype,"itemTemplate",void 0),n.__decorate([u.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],M.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],M.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],M.prototype,"valueTemplate",void 0),n.__decorate([u.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],M.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],M.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],M.prototype,"noDataTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],M.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],M.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],M.prototype,"optionsList",void 0),n.__decorate([u.HostBinding("class.k-dropdownlist"),u.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],M.prototype,"hostClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),u.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isLoading",null),n.__decorate([u.Input("id"),u.HostBinding("attr.id"),n.__metadata("design:type",String)],M.prototype,"focusableId",void 0),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"dir",null),n.__decorate([u.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],M.prototype,"hostTabIndex",null),n.__decorate([u.HostBinding("attr.readonly"),u.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isReadonly",null),n.__decorate([u.HostBinding("attr.role"),u.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],M.prototype,"role",void 0),n.__decorate([u.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],M.prototype,"isAriaExpanded",null),n.__decorate([u.HostBinding("attr.aria-owns"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"hostAriaOwns",null),n.__decorate([u.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"hostAriaActivedescendant",null),n.__decorate([u.HostBinding("attr.aria-label"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],M.prototype,"hostNoDataLabel",null),n.__decorate([u.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],M.prototype,"keydown",null),n.__decorate([u.HostListener("keypress",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],M.prototype,"keypress",null),n.__decorate([u.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],M.prototype,"click",null),i=n.__decorate([u.Component({exportAs:"kendoDropDownList",providers:[e.DROPDOWNLIST_VALUE_ACCESSOR,T.DataService,p.SelectionService,l.NavigationService,E.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:u.forwardRef(function(){return i})},{provide:s.KendoInput,useExisting:u.forwardRef(function(){return i})}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" role="option" [id]="valueLabelId">\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">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,u.Optional()),n.__param(10,u.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,x.LocalizationService,w.PopupService,p.SelectionService,l.NavigationService,E.DisabledItemsService,T.DataService,u.NgZone,u.Renderer2,u.ChangeDetectorRef,Boolean])],M));function M(e,t,i,n,a,o,s,r,p,l,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this._zone=r,this.renderer=p,this.cdr=l,this.touchEnabled=d,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.selectionChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.hostClasses=!0,this.focusableId="k-"+g.guid(),this.role="listbox",this.groupIndices=[],this.listBoxId=g.guid(),this.optionPrefix=g.guid(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new u.EventEmitter,this.filterBlurred=new u.EventEmitter,this.hostElementFocused=new u.EventEmitter,this.hostElementBlurred=new u.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}e.DropDownListComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=n.__decorate([i.Directive({selector:'"li[role=option], li[role=group]"'}),n.__metadata("design:paramtypes",[i.ElementRef])],a);function a(e){this.element=e}t.ListItemDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),u=i(1),o=i(3),s=i(15),c=i(36),h=i(35),r=i(34),p=i(22),l=i(14),d=i(13),m=i(21),g=i(20),v=i(6),f=i(19),_=i(10),b=i(12),y=i(2),C=i(27),S=i(18),I=i(11),x=i(4),w=i(8),D=i(26),k=i(9),E=i(25),T=i(33),i=i(7),O=(t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return O})},n=P,Object.defineProperty(P.prototype,"width",{get:function(){var e=0,t=(o.isDocumentAvailable()&&(e=this.wrapper.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return y.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"suggestion",{get:function(){var e;if(this.text&&this.suggestedText)return e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()),this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0;this.suggestedText=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=y.isPresent(t)?t:!i._open;i._toggle(e)})},Object.defineProperty(P.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(P.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!y.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+y.getter(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"data",{get:function(){var e,t,i=this.virtual;return i?(t=(e=i.skip||0)+i.pageSize,i.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&0<this.dataService.itemsCount&&(this.suggestedText=y.getter(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=T.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper,y.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper,y.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper,y.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper,y.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.detectChanges()}),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},P.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},P.prototype.reset=function(){this.value=""},P.prototype.messageFor=function(e){return this.localization.get(e)},P.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},P.prototype.writeValue=function(e){this.value=e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e},P.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;y.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},P.prototype.focus=function(){this.disabled||this.searchbar.focus()},P.prototype.blur=function(){this.disabled||this.searchbar.blur()},P.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},P.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.verifySettings=function(e){if(u.isDevMode()&&y.isPresent(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},P.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=y.getter(this.dataService.itemAt(t),this.valueField)))},P.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},P.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==C.NavigationAction.Undefined&&t!==C.NavigationAction.Backspace&&t!==C.NavigationAction.Delete&&t!==C.NavigationAction.Home&&t!==C.NavigationAction.End&&t!==C.NavigationAction.Left&&t!==C.NavigationAction.Right&&(t===C.NavigationAction.Enter&&this.isOpen||t!==C.NavigationAction.Enter)&&e.preventDefault()},P.prototype.handleEnter=function(e){var t=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=t?y.getter(this.dataService.itemAt(t),this.valueField):(e=this.suggest&&this.suggestedText&&this.data.length&&y.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&e?this.suggestedText:this.searchbar.value),this.change(t)},P.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},P.prototype.searchBarChange=function(e){var t=y.isPresent(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(0<e.length),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},P.prototype.handleFocus=function(){var e=this;this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},P.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1,i=(this.searchbar.input.nativeElement.scrollLeft=0,(t=-1!==t?(t=this.dataService.itemAt(t),y.getter(t,this.valueField)||""):this.searchbar.value)===this.searchbar.value),t=t.toLowerCase()===this.searchbar.value.toLowerCase(),n=(!i&&t&&this.selectionService.resetSelection([]),this.isFocused=!1,this.value!==this.text);o.hasObservers(this.onBlur)||o.hasObservers(this.close)||y.isUntouched(this.wrapper)||n?this._zone.run(function(){n&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},P.prototype.pageChange=function(e){this.virtual.skip=e.skip},P.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},P.prototype.subscribeEvents=function(){var i=this;o.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=i.value!==e;i.value=e,i.text=e,t&&i.emitChange(e)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=b.merge(this.navigationService.up,this.navigationService.down).subscribe(function(e){return i.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return i.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},P.prototype.subscribeTouchEvents=function(){var t=this;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!y.inDropDown(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},P.prototype.unsubscribeEvents=function(){o.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},P.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),y.isPresent(e)&&(e=y.getter(this.dataService.itemAt(e),this.valueField),this.change(e))},P.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=y.getter(this.dataService.itemAt(t),this.valueField))},P.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"}}),this.popupRef.popupElement),i=this.width,n=i.min,i=i.max;t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=n,t.style.width=i,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},P.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},P.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},P.prototype.triggerPopupEvents=function(e){var t=new I.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},P.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=y.getter(e.value,i.valueField);return(e=y.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=y.getter(e,i.valueField);return(e=y.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},P.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper,y.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper,y.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper,y.getFillModeClass("input",this.fillMode))},a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"highlightFirst",void 0),a.__decorate([u.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"data",null),a.__decorate([u.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"value",null),a.__decorate([u.Input(),a.__metadata("design:type",String)],P.prototype,"valueField",void 0),a.__decorate([u.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([u.Input(),a.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"suggest",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Function])],P.prototype,"itemDisabled",null),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),a.__decorate([u.Input("tabIndex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),a.__decorate([u.Input(),a.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),a.__decorate([u.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"virtual",null),a.__decorate([u.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"size",null),a.__decorate([u.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),a.__decorate([u.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"filterChange",void 0),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"open",void 0),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"opened",void 0),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"close",void 0),a.__decorate([u.Output(),a.__metadata("design:type",u.EventEmitter)],P.prototype,"closed",void 0),a.__decorate([u.Output("focus"),a.__metadata("design:type",u.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([u.Output("blur"),a.__metadata("design:type",u.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([u.ContentChild(p.ItemTemplateDirective,{static:!1}),a.__metadata("design:type",p.ItemTemplateDirective)],P.prototype,"template",void 0),a.__decorate([u.ContentChild(l.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",l.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),a.__decorate([u.ContentChild(d.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",d.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),a.__decorate([u.ContentChild(S.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),a.__decorate([u.ContentChild(m.GroupTemplateDirective,{static:!1}),a.__metadata("design:type",m.GroupTemplateDirective)],P.prototype,"groupTemplate",void 0),a.__decorate([u.ContentChild(g.FixedGroupTemplateDirective,{static:!1}),a.__metadata("design:type",g.FixedGroupTemplateDirective)],P.prototype,"fixedGroupTemplate",void 0),a.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),a.__metadata("design:type",u.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([u.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",u.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([u.ViewChild(r.SearchBarComponent,{static:!0}),a.__metadata("design:type",r.SearchBarComponent)],P.prototype,"searchbar",void 0),a.__decorate([u.ViewChild("optionsList",{static:!1}),a.__metadata("design:type",E.ListComponent)],P.prototype,"optionsList",void 0),a.__decorate([u.HostBinding("class.k-autocomplete"),u.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],P.prototype,"widgetClasses",void 0),a.__decorate([u.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),a.__decorate([u.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),a.__decorate([u.HostBinding("attr.dir"),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[])],P.prototype,"dir",null),n=a.__decorate([u.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,k.DataService,v.SelectionService,f.NavigationService,_.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:D.FilterableComponent,useExisting:u.forwardRef(function(){return n})},{provide:o.KendoInput,useExisting:u.forwardRef(function(){return n})}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\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 \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),a.__param(10,u.Optional()),a.__param(10,u.Inject(i.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[x.LocalizationService,k.DataService,w.PopupService,v.SelectionService,f.NavigationService,_.DisabledItemsService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,u.ElementRef,Boolean])],P));function P(e,t,i,n,a,o,s,r,p,l,d){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this._zone=s,this.cdr=r,this.renderer=p,this.hostElement=l,this.touchEnabled=d,this.highlightFirst=!0,this.focusableId="k-"+y.guid(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.widgetClasses=!0,this.listBoxId=y.guid(),this.optionPrefix=y.guid(),this.onChangeCallback=y.noop,this.onTouchedCallback=y.noop,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new b.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",c.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}t.AutoCompleteComponent=O},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(48),s=i(47),r=i(46),p=i(45),i=i(55),n=n.__decorate([a.NgModule({exports:[o.AutoCompleteModule,s.ComboBoxModule,r.DropDownListModule,p.MultiSelectModule,i.DropDownTreesModule]})],l);function l(){}t.DropDownsModule=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(37),a=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},s.prototype.createTagMapper=function(){var t=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},n.__decorate([a.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectTreeComponent])],s));function s(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}t.MultiSelectTreeSummaryTagDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=i(0),s=i(1),a=i(5),r=i(2),i=(o=i(50).BaseCheckDirective,n.__extends(p,o),p.prototype.handleChange=function(e){var i=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=i.treeview.itemLookup(t);i.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(p.prototype,"isIndeterminate",{get:function(){var i=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.someChecked(t)});return!this.isChecked&&e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isChecked",{get:function(){var i=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.allChecked(t)})},enumerable:!0,configurable:!0}),p.prototype.ngOnChanges=function(e){r.isPresent(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},p.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},p.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},p.prototype.checkNode=function(e){var t,i=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),r.fetchDescendentNodes(e,function(e){return i.treeview.isVisible(e.dataItem,e.index)&&!i.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){i.currentIndeterminateState?"check"===i.lastAction?i.addItem(e):i.removeItem(e):i.currentCheckedState?i.addItem(e):i.removeItem(e)}))},p.prototype.allChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.every(function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)})&&this.isItemChecked(e.item)},p.prototype.someChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.some(function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)})||this.isItemChecked(e.item)},n.__decorate([s.Input(),n.__metadata("design:type",String)],p.prototype,"lastAction",void 0),n.__decorate([s.Input(),n.__metadata("design:type",a.TreeViewComponent)],p.prototype,"treeview",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Array)],p.prototype,"checkedItems",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],p.prototype,"valueField",void 0),n.__decorate([s.Input("checkAll"),n.__metadata("design:type",Boolean)],p.prototype,"focused",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],p.prototype,"checkedItemsChange",void 0),n.__decorate([s.HostListener("change",["$event.target"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],p.prototype,"handleChange",null),n.__decorate([s.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[s.ElementRef,s.NgZone,s.ChangeDetectorRef,s.Renderer2])],p));function p(e,t,i,n){var a=o.call(this)||this;return a.element=e,a.zone=t,a.cdr=i,a.renderer=n,a.checkedItemsChange=new s.EventEmitter,a.checkedKeys=new Set,a}t.CheckAllDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),s=i(5),r=i(12),p=i(17),l=i(2),i=(n=i(50).BaseCheckDirective,a.__extends(d,n),d.prototype.ngOnChanges=function(e){l.isPresent(e.checkable)&&this.toggleCheckOnClick(),l.isPresent(e.checkedItems)&&this.updateItems()},d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},d.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},d.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},d.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(p.filter(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},d.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},d.prototype.checkNode=function(e){var t,i,n,a=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,i=[t],this.checkable.checkChildren&&l.fetchDescendentNodes(e,function(e){return a.treeView.isVisible(e.dataItem,e.index)&&!a.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return i.push(e.item)}),n=!this.isItemChecked(t),i.forEach(function(e){n?a.addItem(e):a.removeItem(e)}))},d.prototype.checkParents=function(e){for(var t=this,i=e;i;)i.children.every(function(e){return t.isItemChecked(e)})?this.addItem(i.item):this.removeItem(i.item),i=i.parent},d.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var i=0,n=t[i];l.isPresent(n);){if(this.isItemChecked(n.item)||this.isItemIndeterminate(n))return!0;n=t[i+=1]}return!1},a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"checkable",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"valueField",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Array)],d.prototype,"checkedItems",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],d.prototype,"checkedItemsChange",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),a.__metadata("design:paramtypes",[s.TreeViewComponent])],d));function d(e){var t=n.call(this)||this;return t.treeView=e,t.checkedItemsChange=new o.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new r.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}t.CheckDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),n=(a.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},a.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},n.__decorate([i.Input("filterInput"),n.__metadata("design:type",Boolean)],a.prototype,"focused",void 0),n.__decorate([i.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],a));function a(e,t){this.element=e,this.zone=t}t.FilterInputDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),i=(n=i.Messages,o.__extends(p,n),a=p,Object.defineProperty(p.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([s.Component({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),i=(n=i.Messages,o.__extends(p,n),a=p,a=o.__decorate([s.Directive({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),o.__metadata("design:paramtypes",[r.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(31),s=i(28),r=i(2),i=(Object.defineProperty(p.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),p.prototype.tagProp=function(e,t,i){t=t&&this.getPropField(e,t,i);return r.getter(e,t)},p.prototype.isTagDisabled=function(e,i){var n=this;return this.isGroupTag(e)?e.every(function(e,t){return n.disabledIndices.has(t+i)}):this.disabledIndices.has(i)},p.prototype.deleteTag=function(e,t,i){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:i})},p.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},p.prototype.isGroupTag=function(e){return e instanceof Array},p.prototype.tagAriaHidden=function(e){return r.isPresent(this.focused)&&this.focused!==e},p.prototype.getPropField=function(t,e,i){var n=e.length-1;return"string"==typeof e?e:this.valueDepth?n<(i=this.valueDepth[i])?e[n]:e[i]:e.find(function(e){return e in t})},n.__decorate([a.Input(),n.__metadata("design:type",Array)],p.prototype,"tags",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],p.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],p.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],p.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TagTemplateDirective)],p.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",s.GroupTagTemplateDirective)],p.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"tagPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"rounded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"fillMode",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Set)],p.prototype,"disabledIndices",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"removeTag",void 0),n.__decorate([a.HostBinding("class.k-input-values"),a.HostBinding("class.k-chip-list"),a.HostBinding("class.k-selection-multiple"),n.__metadata("design:type",Boolean)],p.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],p.prototype,"hostId",null),n.__decorate([a.Component({selector:"kendo-taglist",template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}),n.__metadata("design:paramtypes",[a.Renderer2,a.ElementRef])],p));function p(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new a.EventEmitter,this.hostClasses=!0,this._size="medium"}t.TagListComponent=i},function(e,t){e.exports=f},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,a=t(2);i.scrollbarWidth=function(){var e;return isNaN(n)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),n},i.getRowWidthFromColumnsMeta=function(e){if(t=e,!a.isPresent(t)||0===t.length||!t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width}))return null;var t=i.scrollbarWidth()+2;return e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.normalizeCheckboxesSettings=function(e){return n.isObject(e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(65),a=(t.AutoCompleteComponent=a.AutoCompleteComponent,i(44)),a=(t.ComboBoxComponent=a.ComboBoxComponent,i(63)),a=(t.DropDownListComponent=a.DropDownListComponent,i(43)),a=(t.MultiSelectComponent=a.MultiSelectComponent,i(62)),a=(t.MultiColumnComboBoxComponent=a.MultiColumnComboBoxComponent,i(40)),a=(t.ComboBoxColumnComponent=a.ComboBoxColumnComponent,i(39)),a=(t.ColumnCellTemplateDirective=a.ColumnCellTemplateDirective,i(38)),a=(t.ColumnHeaderTemplateDirective=a.ColumnHeaderTemplateDirective,i(61)),a=(t.DropDownTreeComponent=a.DropDownTreeComponent,i(37)),a=(t.MultiSelectTreeComponent=a.MultiSelectTreeComponent,i(60)),a=(t.DropDownTreeFlatBindingDirective=a.DropDownTreeFlatBindingDirective,i(59)),a=(t.DropDownTreeHierarchyBindingDirective=a.DropDownTreeHierarchyBindingDirective,i(58)),a=(t.MultiSelectTreeFlatBindingDirective=a.MultiSelectTreeFlatBindingDirective,i(57)),a=(t.MultiSelectTreeHierarchyBindingDirective=a.MultiSelectTreeHierarchyBindingDirective,i(56)),a=(t.DropDownTreesExpandDirective=a.DropDownTreesExpandDirective,i(55)),a=(t.DropDownTreesModule=a.DropDownTreesModule,i(30)),a=(t.NodeTemplateDirective=a.NodeTemplateDirective,i(22)),a=(t.ItemTemplateDirective=a.ItemTemplateDirective,i(21)),a=(t.GroupTemplateDirective=a.GroupTemplateDirective,i(20)),a=(t.FixedGroupTemplateDirective=a.FixedGroupTemplateDirective,i(42)),a=(t.CustomItemTemplateDirective=a.CustomItemTemplateDirective,i(14)),a=(t.HeaderTemplateDirective=a.HeaderTemplateDirective,i(13)),a=(t.FooterTemplateDirective=a.FooterTemplateDirective,i(32)),a=(t.ValueTemplateDirective=a.ValueTemplateDirective,i(51)),a=(t.TemplateContextDirective=a.TemplateContextDirective,i(28)),a=(t.GroupTagTemplateDirective=a.GroupTagTemplateDirective,i(52)),a=(t.SelectableDirective=a.SelectableDirective,i(49)),a=(t.SummaryTagDirective=a.SummaryTagDirective,i(53)),a=(t.FilterDirective=a.FilterDirective,i(66)),a=(t.DropDownsModule=a.DropDownsModule,i(45)),a=(t.MultiSelectModule=a.MultiSelectModule,i(23)),a=(t.SharedModule=a.SharedModule,i(48)),a=(t.AutoCompleteModule=a.AutoCompleteModule,i(47)),a=(t.ComboBoxModule=a.ComboBoxModule,i(46)),a=(t.DropDownListModule=a.DropDownListModule,i(16)),a=(t.SharedDirectivesModule=a.SharedDirectivesModule,i(25)),a=(t.ListComponent=a.ListComponent,i(8)),a=(t.PopupComponent=a.PopupComponent,i(11)),a=(t.PreventableEvent=a.PreventableEvent,i(41)),o=(t.RemoveTagEvent=a.RemoveTagEvent,t);for(n in o)s(n,o[n])}],a={},n.m=i,n.c=a,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}}});