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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +34 -22
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +40 -26
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +0 -0
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +0 -0
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
  34. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +48 -35
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +5 -5
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +4 -10
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +5 -5
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +4 -10
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +49 -32
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +57 -39
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +264 -232
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +289 -255
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +362 -300
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +28 -42
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +39 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +35 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +38 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +35 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +373 -315
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +427 -346
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +11 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +335 -288
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +7873 -7141
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +12 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +41 -26
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +37 -113
  160. package/schematics/ngAdd/index.js +5 -2
  161. package/schematics/ngAdd/index.js.map +1 -1
  162. package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
  163. package/dist/cdn/main.js +0 -5
  164. package/dist/es/autocomplete/autocomplete.component.js +0 -1201
  165. package/dist/es/autocomplete/autocomplete.module.js +0 -36
  166. package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
  167. package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
  168. package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
  169. package/dist/es/comboboxes/combobox-column/util.js +0 -57
  170. package/dist/es/comboboxes/combobox.component.js +0 -1622
  171. package/dist/es/comboboxes/combobox.module.js +0 -52
  172. package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
  173. package/dist/es/common/constants/error-messages.js +0 -62
  174. package/dist/es/common/constants/touch-enabled.js +0 -9
  175. package/dist/es/common/data.service.js +0 -250
  176. package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
  177. package/dist/es/common/disabled-items/item-disabled.js +0 -4
  178. package/dist/es/common/filter-input.directive.js +0 -37
  179. package/dist/es/common/filtering/filter-settings.js +0 -4
  180. package/dist/es/common/filtering/filter.directive.js +0 -141
  181. package/dist/es/common/filtering/filterable-component.js +0 -17
  182. package/dist/es/common/list-item.directive.js +0 -22
  183. package/dist/es/common/list.component.js +0 -503
  184. package/dist/es/common/localization/custom-messages.component.js +0 -44
  185. package/dist/es/common/localization/localized-messages.directive.js +0 -35
  186. package/dist/es/common/localization/messages.js +0 -34
  187. package/dist/es/common/models/checkboxes-settings.js +0 -15
  188. package/dist/es/common/models/direction.js +0 -4
  189. package/dist/es/common/models/preventable-event.js +0 -29
  190. package/dist/es/common/models/remove-tag-event.js +0 -24
  191. package/dist/es/common/models/virtualization-settings.js +0 -25
  192. package/dist/es/common/navigation/navigation.service.js +0 -147
  193. package/dist/es/common/searchbar.component.js +0 -253
  194. package/dist/es/common/selection/selectable.directive.js +0 -93
  195. package/dist/es/common/selection/selection.service.js +0 -107
  196. package/dist/es/common/shared-directives.module.js +0 -60
  197. package/dist/es/common/shared.module.js +0 -45
  198. package/dist/es/common/taglist.component.js +0 -179
  199. package/dist/es/common/templates/custom-item-template.directive.js +0 -47
  200. package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
  201. package/dist/es/common/templates/footer-template.directive.js +0 -47
  202. package/dist/es/common/templates/group-tag-template.directive.js +0 -46
  203. package/dist/es/common/templates/group-template.directive.js +0 -54
  204. package/dist/es/common/templates/header-template.directive.js +0 -47
  205. package/dist/es/common/templates/item-template.directive.js +0 -46
  206. package/dist/es/common/templates/no-data-template.directive.js +0 -48
  207. package/dist/es/common/templates/tag-template.directive.js +0 -45
  208. package/dist/es/common/templates/template-context.directive.js +0 -40
  209. package/dist/es/common/templates/value-template.directive.js +0 -49
  210. package/dist/es/common/util.js +0 -337
  211. package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
  212. package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
  213. package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
  214. package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
  215. package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
  216. package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
  217. package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
  218. package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
  219. package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
  220. package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
  221. package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
  222. package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
  223. package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
  224. package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
  225. package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
  226. package/dist/es/index.js +0 -30
  227. package/dist/es/multiselect/multiselect.component.js +0 -1734
  228. package/dist/es/multiselect/multiselect.module.js +0 -50
  229. package/dist/es/multiselect/summary-tag.directive.js +0 -65
  230. package/dist/es/package-metadata.js +0 -15
  231. package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
  232. package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
  233. package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
  234. package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
  235. package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
  236. package/dist/es2015/common/filter-input.directive.js +0 -35
  237. package/dist/es2015/common/list-item.directive.js +0 -21
  238. package/dist/es2015/common/localization/custom-messages.component.js +0 -36
  239. package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
  240. package/dist/es2015/common/localization/messages.js +0 -28
  241. package/dist/es2015/common/models/fillmode.js +0 -4
  242. package/dist/es2015/common/models/list-type.js +0 -4
  243. package/dist/es2015/common/models/page-change-event.js +0 -4
  244. package/dist/es2015/common/models/popup-settings.js +0 -4
  245. package/dist/es2015/common/models/rounded.js +0 -4
  246. package/dist/es2015/common/models/size.js +0 -4
  247. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  248. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  249. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  250. package/dist/es2015/common/shared.module.js +0 -42
  251. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  252. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  253. package/dist/es2015/dropdowns.module.js +0 -50
  254. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  255. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  256. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  258. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  260. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  262. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  263. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  264. package/dist/es2015/index.d.ts +0 -30
  265. package/dist/es2015/index.js +0 -30
  266. package/dist/es2015/index.metadata.json +0 -1
  267. package/dist/es2015/main.js +0 -44
  268. package/dist/fesm5/index.js +0 -13097
  269. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  270. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  271. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  272. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  273. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  274. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  275. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  276. package/dist/npm/comboboxes/combobox.module.js +0 -54
  277. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  278. package/dist/npm/common/constants/error-messages.js +0 -64
  279. package/dist/npm/common/constants/touch-enabled.js +0 -11
  280. package/dist/npm/common/data.service.js +0 -252
  281. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  282. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  283. package/dist/npm/common/filter-input.directive.js +0 -39
  284. package/dist/npm/common/filtering/filter-settings.js +0 -6
  285. package/dist/npm/common/filtering/filter.directive.js +0 -143
  286. package/dist/npm/common/filtering/filterable-component.js +0 -19
  287. package/dist/npm/common/list-item.directive.js +0 -24
  288. package/dist/npm/common/list.component.js +0 -505
  289. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  290. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  291. package/dist/npm/common/localization/messages.js +0 -36
  292. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  293. package/dist/npm/common/models/direction.js +0 -6
  294. package/dist/npm/common/models/fillmode.js +0 -6
  295. package/dist/npm/common/models/list-type.js +0 -6
  296. package/dist/npm/common/models/page-change-event.js +0 -6
  297. package/dist/npm/common/models/popup-settings.js +0 -6
  298. package/dist/npm/common/models/preventable-event.js +0 -31
  299. package/dist/npm/common/models/remove-tag-event.js +0 -26
  300. package/dist/npm/common/models/rounded.js +0 -6
  301. package/dist/npm/common/models/size.js +0 -6
  302. package/dist/npm/common/models/virtualization-settings.js +0 -27
  303. package/dist/npm/common/navigation/navigation-action.js +0 -26
  304. package/dist/npm/common/navigation/navigation.service.js +0 -149
  305. package/dist/npm/common/searchbar.component.js +0 -255
  306. package/dist/npm/common/selection/selectable.directive.js +0 -95
  307. package/dist/npm/common/selection/selection.service.js +0 -109
  308. package/dist/npm/common/shared-directives.module.js +0 -62
  309. package/dist/npm/common/shared.module.js +0 -47
  310. package/dist/npm/common/taglist.component.js +0 -181
  311. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  312. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  313. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  314. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  315. package/dist/npm/common/templates/group-template.directive.js +0 -56
  316. package/dist/npm/common/templates/header-template.directive.js +0 -49
  317. package/dist/npm/common/templates/item-template.directive.js +0 -48
  318. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  319. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  320. package/dist/npm/common/templates/template-context.directive.js +0 -42
  321. package/dist/npm/common/templates/value-template.directive.js +0 -51
  322. package/dist/npm/common/util.js +0 -339
  323. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  324. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  325. package/dist/npm/dropdowns.module.js +0 -55
  326. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  327. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  328. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  329. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  330. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  331. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  333. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  335. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  336. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  337. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  338. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  339. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  340. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  341. package/dist/npm/index.js +0 -55
  342. package/dist/npm/main.js +0 -86
  343. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  344. package/dist/npm/multiselect/multiselect.module.js +0 -52
  345. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  346. package/dist/npm/package-metadata.js +0 -17
  347. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,1624 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- /* tslint:disable:member-ordering */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- var tslib_1 = require("tslib");
9
- var core_1 = require("@angular/core");
10
- var forms_1 = require("@angular/forms");
11
- var kendo_licensing_1 = require("@progress/kendo-licensing");
12
- var package_metadata_1 = require("../package-metadata");
13
- var searchbar_component_1 = require("../common/searchbar.component");
14
- var item_template_directive_1 = require("../common/templates/item-template.directive");
15
- var header_template_directive_1 = require("../common/templates/header-template.directive");
16
- var footer_template_directive_1 = require("../common/templates/footer-template.directive");
17
- var group_template_directive_1 = require("../common/templates/group-template.directive");
18
- var fixed_group_template_directive_1 = require("../common/templates/fixed-group-template.directive");
19
- var no_data_template_directive_1 = require("../common/templates/no-data-template.directive");
20
- var selection_service_1 = require("../common/selection/selection.service");
21
- var navigation_service_1 = require("../common/navigation/navigation.service");
22
- var disabled_items_service_1 = require("../common/disabled-items/disabled-items.service");
23
- var rxjs_1 = require("rxjs");
24
- var operators_1 = require("rxjs/operators");
25
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
26
- var util_1 = require("../common/util");
27
- var navigation_action_1 = require("../common/navigation/navigation-action");
28
- var kendo_angular_common_2 = require("@progress/kendo-angular-common");
29
- var preventable_event_1 = require("../common/models/preventable-event");
30
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
31
- var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
32
- var touch_enabled_1 = require("../common/constants/touch-enabled");
33
- var error_messages_1 = require("../common/constants/error-messages");
34
- var filterable_component_1 = require("../common/filtering/filterable-component");
35
- var data_service_1 = require("../common/data.service");
36
- var list_component_1 = require("../common/list.component");
37
- var virtualization_settings_1 = require("../common/models/virtualization-settings");
38
- var kendo_common_1 = require("@progress/kendo-common");
39
- /**
40
- * @hidden
41
- */
42
- exports.COMBOBOX_VALUE_ACCESSOR = {
43
- multi: true,
44
- provide: forms_1.NG_VALUE_ACCESSOR,
45
- useExisting: core_1.forwardRef(function () { return ComboBoxComponent; })
46
- };
47
- /**
48
- * Represents the [Kendo UI ComboBox component for Angular]({% slug overview_combobox %}).
49
- *
50
- * @example
51
- * ```ts
52
- * _@Component({
53
- * selector: 'my-app',
54
- * template: `
55
- * <kendo-combobox [data]="listItems">
56
- * </kendo-combobox>
57
- * `
58
- * })
59
- * class AppComponent {
60
- * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
61
- * }
62
- * ```
63
- */
64
- var ComboBoxComponent = /** @class */ (function () {
65
- function ComboBoxComponent(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, cdr, renderer, touchEnabled) {
66
- this.wrapper = wrapper;
67
- this.localization = localization;
68
- this.popupService = popupService;
69
- this.selectionService = selectionService;
70
- this.navigationService = navigationService;
71
- this.disabledItemsService = disabledItemsService;
72
- this.dataService = dataService;
73
- this.zone = zone;
74
- this.cdr = cdr;
75
- this.renderer = renderer;
76
- this.touchEnabled = touchEnabled;
77
- this.selected = [];
78
- /**
79
- * @hidden
80
- */
81
- this.focusableId = "k-" + util_1.guid();
82
- /**
83
- * Specifies whether the ComboBox allows user-defined values that are not present in the dataset
84
- * ([more information and examples]({% slug custom_values_combobox %})).
85
- * Defaults to `false`.
86
- */
87
- this.allowCustom = false;
88
- /**
89
- * A user-defined callback which returns normalized custom values.
90
- * Typically used when the data items are different from type `string`.
91
- * @param { Any } value - The custom value defined by the user.
92
- * @returns { Any }
93
- *
94
- * @example
95
- * ```ts
96
- * import { map } from 'rxjs/operators';
97
- *
98
- * _@Component({
99
- * selector: 'my-app',
100
- * template: `
101
- * <kendo-combobox
102
- * [allowCustom]="true"
103
- * [data]="listItems"
104
- * textField="text"
105
- * valueField="value"
106
- * [valueNormalizer]="valueNormalizer"
107
- * (valueChange)="onValueChange($event)"
108
- * >
109
- * </kendo-combobox>
110
- * `
111
- * })
112
- *
113
- * class AppComponent {
114
- * public listItems: Array<{ text: string, value: number }> = [
115
- * { text: "Small", value: 1 },
116
- * { text: "Medium", value: 2 },
117
- * { text: "Large", value: 3 }
118
- * ];
119
- *
120
- * public onValueChange(value) {
121
- * console.log("valueChange : ", value);
122
- * }
123
- *
124
- * public valueNormalizer = (text$: Observable<string>) => text$.pipe(map((text: string) => {
125
- * return { ProductID: null, ProductName: text };
126
- * }));
127
- *
128
- * }
129
- * ```
130
- */
131
- this.valueNormalizer = function (text) {
132
- return text.pipe(operators_1.map(function (userInput) { return userInput; }));
133
- };
134
- /**
135
- * The hint that is displayed when the component is empty.
136
- *
137
- */
138
- this.placeholder = "";
139
- /**
140
- * Sets the height of the suggestions list. By default, `listHeight` is 200px.
141
- *
142
- * > The `listHeight` property affects only the list of suggestions and not the whole popup container.
143
- * > To set the height of the popup container, use `popupSettings.height`.
144
- */
145
- this.listHeight = 200;
146
- /**
147
- * Enables the auto-completion of the text based on the first data item.
148
- */
149
- this.suggest = false;
150
- /**
151
- * If set to `true`, renders a button on hovering over the component.
152
- * Clicking this button resets the value of the component to `undefined` and triggers the `change` event.
153
- */
154
- this.clearButton = true;
155
- /**
156
- * Sets the disabled state of the component.
157
- */
158
- this.disabled = false;
159
- /**
160
- * Sets the read-only state of the component.
161
- */
162
- this.readonly = false;
163
- /**
164
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
165
- */
166
- this.tabindex = 0;
167
- /**
168
- * Enables the [filtering]({% slug filtering_combobox %}) functionality.
169
- * If set to `true`, the component emits the `filterChange` event.
170
- */
171
- this.filterable = false;
172
- /**
173
- * Fires each time the value is changed&mdash;
174
- * when the component is blurred or the value is cleared through the **Clear** button
175
- * ([see example]({% slug overview_combobox %}#toc-events)).
176
- * When the value of the component is programmatically changed to `ngModel` or `formControl`
177
- * through its API or form binding, the `valueChange` event is not triggered because it
178
- * might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
179
- */
180
- this.valueChange = new core_1.EventEmitter();
181
- /**
182
- * Fires each time an item selection is changed
183
- * ([see example]({% slug overview_combobox %}#toc-events)).
184
- */
185
- this.selectionChange = new core_1.EventEmitter();
186
- /**
187
- * Fires each time the user types in the input field.
188
- * You can filter the source based on the passed filtration value
189
- * ([see example]({% slug overview_combobox %}#toc-events)).
190
- */
191
- this.filterChange = new core_1.EventEmitter();
192
- /**
193
- * Fires each time the popup is about to open.
194
- * This event is preventable. If you cancel it, the popup will remain closed.
195
- */
196
- this.open = new core_1.EventEmitter();
197
- /**
198
- * Fires after the popup has been opened.
199
- */
200
- this.opened = new core_1.EventEmitter();
201
- /**
202
- * Fires each time the popup is about to close.
203
- * This event is preventable. If you cancel it, the popup will remain open.
204
- */
205
- this.close = new core_1.EventEmitter();
206
- /**
207
- * Fires after the popup has been closed.
208
- */
209
- this.closed = new core_1.EventEmitter();
210
- /**
211
- * Fires each time the user focuses the ComboBox.
212
- */
213
- this.onFocus = new core_1.EventEmitter();
214
- /**
215
- * Fires each time the ComboBox gets blurred.
216
- */
217
- this.onBlur = new core_1.EventEmitter();
218
- this.widgetClasses = true;
219
- this._isFocused = false;
220
- this.listBoxId = util_1.guid();
221
- this.optionPrefix = util_1.guid();
222
- this.onChangeCallback = function (_) { };
223
- this.onTouchedCallback = function (_) { };
224
- /**
225
- * Used for the default virtualization settings config.
226
- */
227
- this.defaultVirtualItemHeight = 28;
228
- /**
229
- * Used for the default virtualization settings config.
230
- */
231
- this.defaultVirtualPageSize = 50;
232
- this._filtering = false;
233
- this._text = '';
234
- this.filterText = '';
235
- this._open = false;
236
- this._popupSettings = { animate: true };
237
- this.popupMouseDownHandler = function (event) { return event.preventDefault(); };
238
- this.customValueSubject = new rxjs_1.Subject();
239
- this.valueSubject = new rxjs_1.Subject();
240
- this.clearValueSubject = new rxjs_1.Subject();
241
- this.subs = new rxjs_1.Subscription();
242
- this._size = 'medium';
243
- this._rounded = 'medium';
244
- this._fillMode = 'solid';
245
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
246
- this.direction = localization.rtl ? 'rtl' : 'ltr';
247
- this.data = [];
248
- }
249
- ComboBoxComponent_1 = ComboBoxComponent;
250
- Object.defineProperty(ComboBoxComponent.prototype, "text", {
251
- get: function () {
252
- return this._text;
253
- },
254
- set: function (text) {
255
- this._text = util_1.isPresent(text) ? text.toString() : "";
256
- },
257
- enumerable: true,
258
- configurable: true
259
- });
260
- /**
261
- * @hidden
262
- */
263
- ComboBoxComponent.prototype.togglePopup = function (open) {
264
- var isDisabled = this.disabled || this.readonly;
265
- var sameState = this.isOpen === open;
266
- if (isDisabled || sameState) {
267
- return;
268
- }
269
- var isDefaultPrevented = this.triggerPopupEvents(open);
270
- if (!isDefaultPrevented) {
271
- this._toggle(open);
272
- }
273
- };
274
- Object.defineProperty(ComboBoxComponent.prototype, "activeDescendant", {
275
- get: function () {
276
- if (!this.isOpen || !util_1.isPresent(this.selectionService.focused) || this.selectionService.focused === -1) {
277
- return null;
278
- }
279
- var dataItem = this.dataService.itemAt(this.selectionService.focused);
280
- return this.optionPrefix + "-" + (dataItem ? util_1.getter(dataItem, this.valueField) : "");
281
- },
282
- enumerable: true,
283
- configurable: true
284
- });
285
- Object.defineProperty(ComboBoxComponent.prototype, "noDataLabel", {
286
- get: function () {
287
- if (this.data.length === 0) {
288
- return this.messageFor('noDataText');
289
- }
290
- },
291
- enumerable: true,
292
- configurable: true
293
- });
294
- Object.defineProperty(ComboBoxComponent.prototype, "appendTo", {
295
- get: function () {
296
- var appendTo = this.popupSettings.appendTo;
297
- if (!appendTo || appendTo === 'root') {
298
- return undefined;
299
- }
300
- return appendTo === 'component' ? this.container : appendTo;
301
- },
302
- enumerable: true,
303
- configurable: true
304
- });
305
- Object.defineProperty(ComboBoxComponent.prototype, "data", {
306
- get: function () {
307
- var virtual = this.virtual;
308
- if (virtual) {
309
- var start = virtual.skip || 0;
310
- var end = start + virtual.pageSize;
311
- // Use length instead of itemsCount because of the grouping.
312
- virtual.total = this.dataService.data.length;
313
- return this.dataService.data.slice(start, end);
314
- }
315
- return this.dataService.data;
316
- },
317
- /**
318
- * Sets the data of the ComboBox.
319
- *
320
- * > The data has to be provided in an array-like list.
321
- */
322
- set: function (data) {
323
- this.dataService.data = data || [];
324
- if (this.virtual) {
325
- this.virtual.skip = 0;
326
- }
327
- this.setState();
328
- if (this._filtering) {
329
- var queryAndDataPresent = this.text.length > 0 && this.dataService.itemsCount > 0;
330
- var index = queryAndDataPresent ? this.firstFocusableIndex(0) : -1;
331
- this.selectionService.focused = index;
332
- }
333
- if (this.suggest && this.dataService.itemsCount && this.text) {
334
- this.suggestedText = util_1.getter(this.dataService.itemAt(0), this.textField);
335
- }
336
- },
337
- enumerable: true,
338
- configurable: true
339
- });
340
- Object.defineProperty(ComboBoxComponent.prototype, "value", {
341
- get: function () {
342
- return this._value;
343
- },
344
- /**
345
- * Sets the value of the ComboBox.
346
- * It can either be of the primitive (string, numbers) or of the complex (objects) type.
347
- * To define the type, use the `valuePrimitive` option.
348
- *
349
- * > All selected values which are not present in the dataset are considered custom values.
350
- * > When the `Enter` key is pressed or the component loses focus, custom values get dismissed unless `allowCustom` is set to `true`.
351
- */
352
- set: function (newValue) {
353
- this._value = newValue;
354
- this.setState();
355
- this.cdr.markForCheck();
356
- },
357
- enumerable: true,
358
- configurable: true
359
- });
360
- Object.defineProperty(ComboBoxComponent.prototype, "valuePrimitive", {
361
- get: function () {
362
- if (!util_1.isPresent(this._valuePrimitive)) {
363
- return !util_1.isPresent(this.valueField);
364
- }
365
- return this._valuePrimitive;
366
- },
367
- /**
368
- * Specifies the type of the selected value.
369
- * If set to `true`, the selected value has to be of the primitive type
370
- * ([more information and example]({% slug valuebinding_combobox %}#toc-primitive-values-from-object-fields)).
371
- */
372
- set: function (isPrimitive) {
373
- this._valuePrimitive = isPrimitive;
374
- },
375
- enumerable: true,
376
- configurable: true
377
- });
378
- Object.defineProperty(ComboBoxComponent.prototype, "popupSettings", {
379
- get: function () {
380
- return this._popupSettings;
381
- },
382
- /**
383
- * Configures the popup of the ComboBox.
384
- *
385
- * The available options are:
386
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
387
- * - `width: Number | String`&mdash;Sets the width of the popup container. By default, the width of the host element is used. If set to `auto`, the component automatically adjusts the width of the popup and no item labels are wrapped. The `auto` mode is not supported when virtual scrolling is enabled.
388
- * - `height: Number`&mdash;Sets the height of the popup container.
389
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
390
- * - `appendTo: "root" | "component" | ViewContainerRef`&mdash;Specifies the component to which the popup will be appended.
391
- */
392
- set: function (settings) {
393
- this._popupSettings = Object.assign({ animate: true }, settings);
394
- },
395
- enumerable: true,
396
- configurable: true
397
- });
398
- Object.defineProperty(ComboBoxComponent.prototype, "itemDisabled", {
399
- /**
400
- * Defines a Boolean function that is executed for each data item in the component
401
- * ([see examples]({% slug disableditems_combobox %})). Determines whether the item will be disabled.
402
- */
403
- set: function (fn) {
404
- if (typeof fn !== 'function') {
405
- throw new Error("itemDisabled must be a function, but received " + JSON.stringify(fn) + ".");
406
- }
407
- this.disabledItemsService.itemDisabled = fn;
408
- },
409
- enumerable: true,
410
- configurable: true
411
- });
412
- Object.defineProperty(ComboBoxComponent.prototype, "tabIndex", {
413
- get: function () {
414
- return this.tabindex;
415
- },
416
- /**
417
- * @hidden
418
- */
419
- set: function (tabIndex) {
420
- this.tabindex = tabIndex;
421
- },
422
- enumerable: true,
423
- configurable: true
424
- });
425
- Object.defineProperty(ComboBoxComponent.prototype, "virtual", {
426
- get: function () {
427
- return this._virtualSettings;
428
- },
429
- /**
430
- * Enables the [virtualization]({% slug virtualization_combobox %}) functionality.
431
- */
432
- set: function (settings) {
433
- this._virtualSettings = virtualization_settings_1.normalizeVirtualizationSettings(settings, {
434
- itemHeight: this.defaultVirtualItemHeight,
435
- pageSize: this.defaultVirtualPageSize
436
- });
437
- },
438
- enumerable: true,
439
- configurable: true
440
- });
441
- Object.defineProperty(ComboBoxComponent.prototype, "size", {
442
- get: function () {
443
- return this._size;
444
- },
445
- /**
446
- * Sets the size of the component.
447
- *
448
- * The possible values are:
449
- * * `'small'`
450
- * * `'medium'` (default)
451
- * * `'large'`
452
- * * `null`
453
- *
454
- */
455
- set: function (size) {
456
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
457
- if (size) {
458
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
459
- }
460
- this._size = size;
461
- },
462
- enumerable: true,
463
- configurable: true
464
- });
465
- Object.defineProperty(ComboBoxComponent.prototype, "rounded", {
466
- get: function () {
467
- return this._rounded;
468
- },
469
- /**
470
- * Sets the border radius of the component.
471
- *
472
- * The possible values are:
473
- * * `'small'`
474
- * * `'medium'` (default)
475
- * * `'large'`
476
- * * `'full'`
477
- * * `null`
478
- *
479
- */
480
- set: function (rounded) {
481
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
482
- if (rounded) {
483
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
484
- }
485
- this._rounded = rounded;
486
- },
487
- enumerable: true,
488
- configurable: true
489
- });
490
- Object.defineProperty(ComboBoxComponent.prototype, "fillMode", {
491
- get: function () {
492
- return this._fillMode;
493
- },
494
- /**
495
- * Sets the fillMode of the component.
496
- *
497
- * The possible values are:
498
- * * `'flat'`
499
- * * `'solid'` (default)
500
- * * `'outline'`
501
- * * `null`
502
- *
503
- */
504
- set: function (fillMode) {
505
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
506
- if (fillMode) {
507
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
508
- }
509
- this._fillMode = fillMode;
510
- },
511
- enumerable: true,
512
- configurable: true
513
- });
514
- Object.defineProperty(ComboBoxComponent.prototype, "isDisabled", {
515
- get: function () {
516
- return this.disabled;
517
- },
518
- enumerable: true,
519
- configurable: true
520
- });
521
- Object.defineProperty(ComboBoxComponent.prototype, "isLoading", {
522
- get: function () {
523
- return this.loading;
524
- },
525
- enumerable: true,
526
- configurable: true
527
- });
528
- Object.defineProperty(ComboBoxComponent.prototype, "dir", {
529
- get: function () {
530
- return this.direction;
531
- },
532
- enumerable: true,
533
- configurable: true
534
- });
535
- Object.defineProperty(ComboBoxComponent.prototype, "isFocused", {
536
- get: function () {
537
- return this._isFocused;
538
- },
539
- set: function (value) {
540
- this.renderer[value ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, "k-focus");
541
- this._isFocused = value;
542
- },
543
- enumerable: true,
544
- configurable: true
545
- });
546
- Object.defineProperty(ComboBoxComponent.prototype, "clearButtonVisiblity", {
547
- get: function () {
548
- if (this.touchEnabled) {
549
- return 'visible';
550
- }
551
- },
552
- enumerable: true,
553
- configurable: true
554
- });
555
- Object.defineProperty(ComboBoxComponent.prototype, "popupWidth", {
556
- get: function () {
557
- var wrapperOffsetWidth = 0;
558
- if (kendo_angular_common_1.isDocumentAvailable()) {
559
- wrapperOffsetWidth = this.wrapper.nativeElement.offsetWidth;
560
- }
561
- var width = this.popupSettings.width || wrapperOffsetWidth;
562
- var minWidth = isNaN(wrapperOffsetWidth) ? wrapperOffsetWidth : wrapperOffsetWidth + "px";
563
- var maxWidth = isNaN(width) ? width : width + "px";
564
- return { min: minWidth, max: maxWidth };
565
- },
566
- enumerable: true,
567
- configurable: true
568
- });
569
- Object.defineProperty(ComboBoxComponent.prototype, "popupHeight", {
570
- get: function () {
571
- var popupHeight = this.popupSettings.height;
572
- return util_1.isPresent(popupHeight) ? popupHeight + "px" : 'auto';
573
- },
574
- enumerable: true,
575
- configurable: true
576
- });
577
- ComboBoxComponent.prototype.ngOnInit = function () {
578
- this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
579
- this.attachStreams();
580
- this.createValueStream();
581
- this.subscribeTouchEvents();
582
- this.attachSelectClickHandler();
583
- this.setComponentClasses();
584
- };
585
- ComboBoxComponent.prototype.createValueStream = function () {
586
- var _this = this;
587
- var valueStream = this.valueSubject.pipe(operators_1.filter(function (candidate) {
588
- var current = util_1.getter(_this.value, _this.valueField);
589
- var newValue = util_1.getter(candidate, _this.valueField);
590
- var newText = util_1.getter(candidate, _this.textField);
591
- if (!util_1.isPresent(_this.value) && !util_1.isPresent(newValue)) {
592
- return false;
593
- }
594
- if (util_1.isPresent(newText)) {
595
- newText = newText.toString();
596
- }
597
- if (current === newValue && _this.text === newText) {
598
- _this.clearFilter();
599
- return false;
600
- }
601
- else {
602
- return true;
603
- }
604
- }), operators_1.map(function (candidate) {
605
- var newValue = util_1.getter(candidate, _this.valueField);
606
- var newText = util_1.getter(candidate, _this.textField);
607
- return {
608
- dataItem: candidate,
609
- text: newText,
610
- value: _this.valuePrimitive ? newValue : candidate
611
- };
612
- }));
613
- var customValueStreams = operators_1.partition(function () { return _this.allowCustom; })(this.customValueSubject.pipe(operators_1.throttleTime(300)));
614
- var allowCustomValueStream = customValueStreams[0].pipe(operators_1.tap(function () {
615
- _this.loading = true;
616
- _this.disabled = true;
617
- _this.cdr.detectChanges();
618
- }), operators_1.filter(function () {
619
- var hasChange = _this.text !== util_1.getter(_this.value, _this.valueField);
620
- _this.loading = hasChange;
621
- _this.disabled = hasChange;
622
- if (!hasChange) {
623
- _this.clearFilter();
624
- }
625
- return hasChange;
626
- }), this.valueNormalizer, operators_1.map(function (normalizedValue) {
627
- return {
628
- custom: true,
629
- dataItem: normalizedValue,
630
- text: _this.text,
631
- value: normalizedValue
632
- };
633
- }));
634
- var disableCustomValueStream = customValueStreams[1].pipe(operators_1.map(function () {
635
- return {
636
- custom: true,
637
- dataItem: undefined,
638
- text: undefined,
639
- value: undefined
640
- };
641
- }));
642
- var clearValueStream = this.clearValueSubject.pipe(operators_1.map(function () { return ({
643
- dataItem: undefined,
644
- text: undefined,
645
- value: undefined
646
- }); }));
647
- if (this.valueSubscription) {
648
- this.valueSubscription.unsubscribe();
649
- }
650
- var merged = rxjs_1.merge(valueStream, allowCustomValueStream, disableCustomValueStream, clearValueStream);
651
- this.valueSubscription = merged.pipe(operators_1.catchError(function () {
652
- var selectionChanged = util_1.getter(_this.dataItem, _this.valueField) !== undefined;
653
- _this.dataItem = undefined;
654
- _this.value = undefined;
655
- _this.text = undefined;
656
- _this.loading = false;
657
- _this.disabled = false;
658
- if (selectionChanged) {
659
- _this.selectionChange.emit(undefined);
660
- }
661
- _this.emitValueChange();
662
- _this.createValueStream();
663
- return rxjs_1.of(null);
664
- }))
665
- .subscribe(function (state) {
666
- var selectionChanged = util_1.getter(_this.dataItem, _this.valueField) !== util_1.getter(state.dataItem, _this.valueField);
667
- _this.dataItem = state.dataItem;
668
- _this.value = state.value;
669
- _this.text = state.text;
670
- _this.loading = false;
671
- _this.disabled = false;
672
- _this.clearFilter();
673
- if (state.custom) {
674
- _this.selectionService.focused = -1;
675
- }
676
- if (selectionChanged) {
677
- var selectionArgs = state.custom ? undefined : _this.dataItem;
678
- _this.selectionChange.emit(selectionArgs);
679
- }
680
- _this.emitValueChange();
681
- });
682
- };
683
- ComboBoxComponent.prototype.attachStreams = function () {
684
- var _this = this;
685
- if (!kendo_angular_common_1.isDocumentAvailable()) {
686
- return;
687
- }
688
- this.subs.add(this.localization
689
- .changes.subscribe(function (_a) {
690
- var rtl = _a.rtl;
691
- _this.direction = rtl ? 'rtl' : 'ltr';
692
- _this.cdr.detectChanges();
693
- }));
694
- this.subs.add(rxjs_1.merge(this.navigationService.up, this.navigationService.down, this.navigationService.home, this.navigationService.end)
695
- .pipe(operators_1.filter(function (event) { return util_1.isPresent(event.index); }))
696
- .subscribe(function (event) { return _this.navigate(event.index); }));
697
- this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this)));
698
- this.subs.add(this.navigationService.close.subscribe(function () { return _this.togglePopup(false); }));
699
- this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this)));
700
- this.subs.add(this.navigationService.enter.pipe(operators_1.tap(function (event) {
701
- if (_this.isOpen) {
702
- event.originalEvent.preventDefault();
703
- }
704
- }))
705
- .subscribe(this.handleEnter.bind(this)));
706
- this.subs.add(rxjs_1.merge(this.selectionService.onChange, this.selectionService.onSelect.pipe(operators_1.filter(function (_) { return !_this.isOpen; })))
707
- .pipe(operators_1.tap(function (_) {
708
- _this._filtering = false;
709
- _this.togglePopup(false);
710
- }), operators_1.map(function (event) { return _this.dataService.itemAt(event.indices[0]); }))
711
- .subscribe(function (dataItem) {
712
- _this.change(dataItem);
713
- }));
714
- this.subs.add(this.selectionService.onSelect.pipe(operators_1.filter(function (_) { return _this.isOpen; }), operators_1.tap(function (_) { return _this._filtering = false; }), operators_1.map(function (event) { return _this.dataService.itemAt(event.indices[0]); }))
715
- .subscribe(function (dataItem) {
716
- var selectionChanged = util_1.getter(dataItem, _this.valueField) !== util_1.getter(_this.dataItem, _this.valueField);
717
- _this.updateState({ dataItem: dataItem });
718
- if (selectionChanged) {
719
- _this.selectionChange.emit(dataItem);
720
- }
721
- }));
722
- };
723
- ComboBoxComponent.prototype.ngOnDestroy = function () {
724
- this.destroyPopup();
725
- this.subs.unsubscribe();
726
- if (util_1.isPresent(this.valueSubscription)) {
727
- this.valueSubscription.unsubscribe();
728
- }
729
- if (this.touchstartDisposeHandler) {
730
- this.touchstartDisposeHandler();
731
- }
732
- if (this.selectClickDisposeHandler) {
733
- this.selectClickDisposeHandler();
734
- }
735
- };
736
- ComboBoxComponent.prototype.ngOnChanges = function (changes) {
737
- var virtual = this.virtual;
738
- var requestInitialData = virtual && changes.data && changes.data.isFirstChange();
739
- if (requestInitialData) {
740
- this.pageChange({ skip: 0, take: virtual.pageSize });
741
- }
742
- if (kendo_angular_common_1.isChanged('valueNormalizer', changes)) {
743
- this.createValueStream();
744
- }
745
- if (kendo_angular_common_1.anyChanged(['textField', 'valueField', 'valuePrimitive'], changes, false)) {
746
- this.setState();
747
- }
748
- };
749
- ComboBoxComponent.prototype.ngAfterContentChecked = function () {
750
- this.verifySettings();
751
- };
752
- /**
753
- * Focuses a specific item of the ComboBox based on a provided index.
754
- * If null or invalid index is provided the focus will be removed.
755
- */
756
- ComboBoxComponent.prototype.focusItemAt = function (index) {
757
- var isInRange = index >= 0 && index < this.data.length;
758
- if (util_1.isPresent(index) && isInRange && !this.disabledItemsService.isIndexDisabled(index)) {
759
- this.selectionService.focus(index);
760
- }
761
- else {
762
- this.selectionService.focus(-1);
763
- }
764
- };
765
- /**
766
- * Focuses the ComboBox.
767
- */
768
- ComboBoxComponent.prototype.focus = function () {
769
- if (!this.disabled) {
770
- this.searchbar.focus();
771
- }
772
- };
773
- /**
774
- * Blurs the ComboBox.
775
- */
776
- ComboBoxComponent.prototype.blur = function () {
777
- if (!this.disabled) {
778
- this.searchbar.blur();
779
- }
780
- };
781
- /**
782
- * Toggles the visibility of the popup. If you use the `toggle` method to open or close the popup,
783
- * the `open` and `close` events will not be fired.
784
- *
785
- * @param open - The state of the popup.
786
- */
787
- ComboBoxComponent.prototype.toggle = function (open) {
788
- var _this = this;
789
- Promise.resolve(null).then(function () {
790
- var shouldOpen = util_1.isPresent(open) ? open : !_this._open;
791
- _this._toggle(shouldOpen);
792
- _this.cdr.markForCheck();
793
- });
794
- };
795
- Object.defineProperty(ComboBoxComponent.prototype, "isOpen", {
796
- /**
797
- * Returns the current open state of the popup.
798
- */
799
- get: function () {
800
- return this._open;
801
- },
802
- enumerable: true,
803
- configurable: true
804
- });
805
- /**
806
- * Resets the value of the ComboBox.
807
- * If you use the `reset` method to clear the value of the component,
808
- * the model will not update automatically and the `selectionChange` and `valueChange` events will not be fired.
809
- */
810
- ComboBoxComponent.prototype.reset = function () {
811
- this.value = undefined;
812
- this.clearState();
813
- this.resetSelection();
814
- };
815
- /**
816
- * @hidden
817
- *
818
- * Used by the TextBoxContainer to determine if the floating label
819
- * should be rendered in the input when the component is not focused.
820
- */
821
- ComboBoxComponent.prototype.isEmpty = function () {
822
- var textEmpty = !util_1.isPresent(this.text) || util_1.isEmptyString(this.text);
823
- var valueEmpty = !util_1.isPresent(this.value) || util_1.isEmptyString(this.value);
824
- return textEmpty && valueEmpty;
825
- };
826
- /**
827
- * @hidden
828
- */
829
- ComboBoxComponent.prototype.messageFor = function (key) {
830
- return this.localization.get(key);
831
- };
832
- /**
833
- * @hidden
834
- */
835
- ComboBoxComponent.prototype.clearValue = function (event) {
836
- event.stopImmediatePropagation();
837
- this.focus();
838
- this._filtering = true;
839
- this._previousDataItem = undefined;
840
- this.selectionService.resetSelection([]);
841
- this.clearValueSubject.next();
842
- this._filtering = false;
843
- };
844
- /**
845
- * @hidden
846
- */
847
- ComboBoxComponent.prototype.writeValue = function (value) {
848
- this.value = value === null ? undefined : value;
849
- };
850
- /**
851
- * @hidden
852
- */
853
- ComboBoxComponent.prototype.registerOnChange = function (fn) {
854
- this.onChangeCallback = fn;
855
- };
856
- /**
857
- * @hidden
858
- */
859
- ComboBoxComponent.prototype.registerOnTouched = function (fn) {
860
- this.onTouchedCallback = fn;
861
- };
862
- /**
863
- * @hidden
864
- */
865
- ComboBoxComponent.prototype.setDisabledState = function (isDisabled) {
866
- this.disabled = isDisabled;
867
- };
868
- Object.defineProperty(ComboBoxComponent.prototype, "buttonClasses", {
869
- /**
870
- * @hidden
871
- */
872
- get: function () {
873
- return this.loading ? 'k-i-loading' : this.iconClass || 'k-i-arrow-s';
874
- },
875
- enumerable: true,
876
- configurable: true
877
- });
878
- Object.defineProperty(ComboBoxComponent.prototype, "selectButtonClasses", {
879
- /**
880
- * @hidden
881
- */
882
- get: function () {
883
- return (this.size ? util_1.getSizeClass('button', this.size) : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode + '-base' : '') + "\n ";
884
- },
885
- enumerable: true,
886
- configurable: true
887
- });
888
- /**
889
- * @hidden
890
- */
891
- ComboBoxComponent.prototype.onResize = function () {
892
- if (this.isOpen) {
893
- var popupWrapper = this.popupRef.popupElement;
894
- var _a = this.popupWidth, min = _a.min, max = _a.max;
895
- popupWrapper.style.minWidth = min;
896
- popupWrapper.style.width = max;
897
- }
898
- };
899
- ComboBoxComponent.prototype.verifySettings = function () {
900
- if (!core_1.isDevMode()) {
901
- return;
902
- }
903
- if (this.valuePrimitive === true && util_1.isPresent(this.value) && typeof this.value === "object") {
904
- throw new Error(error_messages_1.ComboBoxMessages.primitive);
905
- }
906
- if (this.valuePrimitive === false && util_1.isPresent(this.value) && typeof this.value !== "object") {
907
- throw new Error(error_messages_1.ComboBoxMessages.object);
908
- }
909
- var valueOrText = !util_1.isPresent(this.valueField) !== !util_1.isPresent(this.textField);
910
- if (valueOrText) {
911
- throw new Error(error_messages_1.ComboBoxMessages.textAndValue);
912
- }
913
- if (this.virtual && isNaN(this.virtual.itemHeight)) {
914
- throw new Error(error_messages_1.ComboBoxMessages.noItemHeight);
915
- }
916
- };
917
- ComboBoxComponent.prototype.setState = function () {
918
- // Filtering in process, do nothing.
919
- if (this._filtering) {
920
- return;
921
- }
922
- var value = this.value;
923
- var valueField = this.valueField;
924
- var resolved = this.findDataItem({ valueField: valueField, value: value });
925
- if (util_1.isPresent(resolved.index) && resolved.index !== -1) {
926
- this.updateState({ dataItem: resolved.dataItem, confirm: true });
927
- this.resetSelection(resolved.index);
928
- }
929
- else if (util_1.isPresent(value) && this.allowCustom) {
930
- this.updateState({ dataItem: value });
931
- this.resetSelection(-1);
932
- }
933
- else if (this._previousDataItem && this.value) {
934
- this.updateState({ dataItem: this._previousDataItem });
935
- this.resetSelection();
936
- }
937
- else {
938
- this.clearState();
939
- this.resetSelection(-1);
940
- }
941
- };
942
- ComboBoxComponent.prototype.updateState = function (_a) {
943
- var dataItem = _a.dataItem, _b = _a.confirm, confirm = _b === void 0 ? false : _b;
944
- this.dataItem = dataItem;
945
- this.text = util_1.getter(dataItem, this.textField);
946
- if (confirm) {
947
- this._previousDataItem = dataItem;
948
- }
949
- };
950
- ComboBoxComponent.prototype.clearState = function () {
951
- this.text = undefined;
952
- this.dataItem = undefined;
953
- };
954
- ComboBoxComponent.prototype.resetSelection = function (index) {
955
- var clear = !util_1.isPresent(index) || index < 0;
956
- this.selectionService.resetSelection(clear ? [] : [index]);
957
- this.selectionService.focused = index;
958
- };
959
- ComboBoxComponent.prototype.firstFocusableIndex = function (index) {
960
- var maxIndex = this.data.length - 1;
961
- if (this.disabledItemsService.isIndexDisabled(index)) {
962
- return (index < maxIndex) ? this.firstFocusableIndex(index + 1) : undefined;
963
- }
964
- else {
965
- return index;
966
- }
967
- };
968
- ComboBoxComponent.prototype.findIndexPredicate = function (text) {
969
- var _this = this;
970
- if (this.dataService.grouped) {
971
- return function (item) {
972
- var itemText = util_1.getter(item.value, _this.textField);
973
- itemText = !util_1.isPresent(itemText) ? "" : itemText.toString().toLowerCase();
974
- return itemText.startsWith(text.toLowerCase());
975
- };
976
- }
977
- else {
978
- return function (item) {
979
- var itemText = util_1.getter(item, _this.textField);
980
- itemText = !util_1.isPresent(itemText) ? "" : itemText.toString().toLowerCase();
981
- return itemText.startsWith(text.toLowerCase());
982
- };
983
- }
984
- };
985
- ComboBoxComponent.prototype.findDataItem = function (_a) {
986
- var _this = this;
987
- var valueField = _a.valueField, value = _a.value;
988
- var result = {
989
- dataItem: null,
990
- index: -1
991
- };
992
- var comparer = function (element) {
993
- var dataItem = _this.dataService.grouped ? element.value : element;
994
- return util_1.getter(dataItem, valueField) === util_1.getter(value, valueField);
995
- };
996
- var index = this.dataService.findIndex(comparer);
997
- result.dataItem = this.dataService.itemAt(index);
998
- result.index = index;
999
- return result;
1000
- };
1001
- ComboBoxComponent.prototype.search = function (text, startFrom) {
1002
- if (startFrom === void 0) { startFrom = 0; }
1003
- var index;
1004
- if (text.length && this.dataService.itemsCount) {
1005
- index = this.dataService.findIndex(this.findIndexPredicate(text), startFrom);
1006
- }
1007
- else {
1008
- index = -1;
1009
- }
1010
- if (this.disabledItemsService.isIndexDisabled(index)) {
1011
- if (index + 1 < this.dataService.itemsCount) {
1012
- this.search(text, index + 1);
1013
- }
1014
- else {
1015
- this.selectionService.focus(-1);
1016
- }
1017
- }
1018
- else {
1019
- this.selectionService.focus(index);
1020
- if (this.suggest) {
1021
- this.suggestedText = util_1.getter(this.dataService.itemAt(index), this.textField);
1022
- }
1023
- }
1024
- };
1025
- /**
1026
- * @hidden
1027
- */
1028
- ComboBoxComponent.prototype.getSuggestion = function () {
1029
- var hasSelected = !!this.selectionService.selected.length;
1030
- var shouldSuggest = this.suggest && !this.backspacePressed && this.suggestedText && this.text;
1031
- if (!hasSelected && shouldSuggest && this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase())) {
1032
- return this.suggestedText;
1033
- }
1034
- else {
1035
- this.suggestedText = undefined;
1036
- }
1037
- };
1038
- ComboBoxComponent.prototype.navigate = function (index) {
1039
- if (this.dataService.itemsCount === 0) {
1040
- return;
1041
- }
1042
- this.text = util_1.getter(this.dataService.itemAt(index), this.textField);
1043
- this.selectionService.select(index);
1044
- };
1045
- /**
1046
- * @hidden
1047
- */
1048
- ComboBoxComponent.prototype.handleNavigate = function (event) {
1049
- var hasSelected = util_1.isPresent(this.selectionService.selected[0]);
1050
- var focused = isNaN(this.selectionService.focused) ? this.firstFocusableIndex(0) : this.selectionService.focused;
1051
- var offset = 0;
1052
- if (this.disabled || this.readonly) {
1053
- return;
1054
- }
1055
- if (event.keyCode === kendo_angular_common_2.Keys.Home || event.keyCode === kendo_angular_common_2.Keys.End) {
1056
- return;
1057
- }
1058
- if (!hasSelected) {
1059
- if (event.keyCode === kendo_angular_common_2.Keys.ArrowDown) {
1060
- offset = -1;
1061
- }
1062
- else if (event.keyCode === kendo_angular_common_2.Keys.ArrowUp) {
1063
- offset = 1;
1064
- }
1065
- }
1066
- var action = this.navigationService.process({
1067
- current: offset + focused,
1068
- max: this.dataService.itemsCount - 1,
1069
- min: 0,
1070
- originalEvent: event
1071
- });
1072
- if (action !== navigation_action_1.NavigationAction.Undefined &&
1073
- action !== navigation_action_1.NavigationAction.Left &&
1074
- action !== navigation_action_1.NavigationAction.Right &&
1075
- action !== navigation_action_1.NavigationAction.Backspace &&
1076
- action !== navigation_action_1.NavigationAction.Delete &&
1077
- ((action === navigation_action_1.NavigationAction.Enter && this.isOpen) || action !== navigation_action_1.NavigationAction.Enter)) {
1078
- event.preventDefault();
1079
- }
1080
- };
1081
- ComboBoxComponent.prototype.handleEnter = function () {
1082
- var text = this.text;
1083
- var focused = this.selectionService.focused;
1084
- var hasFocused = util_1.isPresent(focused) && focused !== -1;
1085
- var previousText = util_1.getter(this._previousDataItem, this.textField) || "";
1086
- var focusedItemText = util_1.getter(this.dataService.itemAt(focused), this.textField);
1087
- var textHasChanged = text !== previousText;
1088
- this.togglePopup(false);
1089
- this._filtering = false;
1090
- if (this.allowCustom && textHasChanged) {
1091
- if (text === focusedItemText || this.useSuggestion()) {
1092
- this.selectionService.change(focused);
1093
- }
1094
- else {
1095
- this.change(text, true);
1096
- }
1097
- }
1098
- if (!this.allowCustom) {
1099
- if (hasFocused) {
1100
- this.selectionService.change(focused);
1101
- }
1102
- else if (textHasChanged) {
1103
- this.change(text, true);
1104
- }
1105
- }
1106
- };
1107
- /**
1108
- * @hidden
1109
- */
1110
- ComboBoxComponent.prototype.handleBlur = function () {
1111
- var _this = this;
1112
- this._filtering = false;
1113
- this.searchbar.input.nativeElement.scrollLeft = 0; // Firefox doesn't auto-scroll to the left on blur like other browsers
1114
- this.isFocused = false;
1115
- var unresolvedSelection = util_1.getter(this.dataItem, this.valueField) !== util_1.getter(this.value, this.valueField);
1116
- var currentText = this.searchbar.value;
1117
- var textHasChanged = currentText !== (util_1.getter(this.dataItem, this.textField) || '');
1118
- var valueHasChanged = unresolvedSelection || textHasChanged;
1119
- var runInZone = valueHasChanged || kendo_angular_common_1.hasObservers(this.onBlur) || kendo_angular_common_1.hasObservers(this.close) || util_1.isUntouched(this.wrapper.nativeElement);
1120
- if (runInZone) {
1121
- this.zone.run(function () {
1122
- if (valueHasChanged) {
1123
- var lowerCaseMatch = util_1.isPresent(_this.focusedItemText) && _this.focusedItemText.toLowerCase() === currentText.toLowerCase();
1124
- if (lowerCaseMatch || unresolvedSelection) {
1125
- _this.selectionService.change(_this.selectionService.focused);
1126
- }
1127
- else {
1128
- _this.change(currentText, true);
1129
- }
1130
- }
1131
- _this.onBlur.emit();
1132
- _this.onTouchedCallback();
1133
- _this.togglePopup(false);
1134
- });
1135
- }
1136
- else {
1137
- this.togglePopup(false);
1138
- }
1139
- };
1140
- /**
1141
- * @hidden
1142
- */
1143
- ComboBoxComponent.prototype.handleEscape = function () {
1144
- this.togglePopup(false);
1145
- // clear the focus only if the focused item is not selected
1146
- var hasSelected = this.selectionService.selected.length > 0;
1147
- if (!hasSelected) {
1148
- this.suggestedText = null;
1149
- this.selectionService.focused = -1;
1150
- }
1151
- };
1152
- /**
1153
- * @hidden
1154
- */
1155
- ComboBoxComponent.prototype.handleNavigationOpen = function () {
1156
- this.restoreItemFocus();
1157
- this.togglePopup(true);
1158
- };
1159
- /**
1160
- * @hidden
1161
- */
1162
- ComboBoxComponent.prototype.searchBarChange = function (text) {
1163
- var currentTextLength = this.text ? this.text.length : 0;
1164
- this.backspacePressed = (text.length < currentTextLength) ? true : false;
1165
- this.text = text;
1166
- // Reset the selection prior to filter. If a match is present, it will be resolved. If a match is not present, it is not needed.
1167
- this.selectionService.resetSelection([]);
1168
- this.togglePopup(true);
1169
- this._filtering = true;
1170
- if (this.filterable && this.filterText !== text) {
1171
- this.filterText = text;
1172
- this.filterChange.emit(text);
1173
- }
1174
- else {
1175
- this.search(text);
1176
- }
1177
- };
1178
- /**
1179
- * @hidden
1180
- */
1181
- ComboBoxComponent.prototype.handleFocus = function () {
1182
- var _this = this;
1183
- this.isFocused = true;
1184
- if (kendo_angular_common_1.hasObservers(this.onFocus)) {
1185
- this.zone.run(function () { return _this.onFocus.emit(); });
1186
- }
1187
- };
1188
- /**
1189
- * @hidden
1190
- */
1191
- ComboBoxComponent.prototype.pageChange = function (event) {
1192
- var virtual = this.virtual;
1193
- virtual.skip = event.skip;
1194
- };
1195
- ComboBoxComponent.prototype.change = function (candidate, isCustom) {
1196
- if (isCustom === void 0) { isCustom = false; }
1197
- if (isCustom) {
1198
- this.customValueSubject.next(candidate);
1199
- }
1200
- else {
1201
- this.valueSubject.next(candidate);
1202
- }
1203
- };
1204
- ComboBoxComponent.prototype.emitValueChange = function () {
1205
- this.onChangeCallback(this.value);
1206
- this.valueChange.emit(this.value);
1207
- this._previousDataItem = this.dataItem;
1208
- };
1209
- /**
1210
- * @hidden
1211
- */
1212
- ComboBoxComponent.prototype.selectClick = function () {
1213
- if (!this.touchEnabled) {
1214
- this.searchbar.focus();
1215
- }
1216
- if (!this.isOpen) {
1217
- this.restoreItemFocus();
1218
- }
1219
- this.togglePopup(!this.isOpen);
1220
- };
1221
- Object.defineProperty(ComboBoxComponent.prototype, "listContainerClasses", {
1222
- get: function () {
1223
- return ['k-list-container', 'k-reset'].concat(this.popupSettings.popupClass || []);
1224
- },
1225
- enumerable: true,
1226
- configurable: true
1227
- });
1228
- /**
1229
- * @hidden
1230
- */
1231
- ComboBoxComponent.prototype.preventEventDefault = function (event) {
1232
- event.preventDefault();
1233
- };
1234
- Object.defineProperty(ComboBoxComponent.prototype, "focusedItemText", {
1235
- get: function () {
1236
- var focused = this.selectionService.focused;
1237
- if (!util_1.isPresent(focused) || focused === -1) {
1238
- return null;
1239
- }
1240
- var itemText = util_1.getter(this.dataService.itemAt(focused), this.textField);
1241
- return !util_1.isPresent(itemText) ? "" : itemText.toString();
1242
- },
1243
- enumerable: true,
1244
- configurable: true
1245
- });
1246
- /**
1247
- * Focuses the first match when there's text in the input field, but no focused item.
1248
- */
1249
- ComboBoxComponent.prototype.restoreItemFocus = function () {
1250
- var hasFocus = util_1.isPresent(this.selectionService.focused) && this.selectionService.focused > -1;
1251
- if (!hasFocus && this.text && this.dataService.itemsCount) {
1252
- if (this.filterable) {
1253
- this.selectionService.focused = this.firstFocusableIndex(0);
1254
- }
1255
- else {
1256
- this.search(this.text);
1257
- }
1258
- }
1259
- };
1260
- ComboBoxComponent.prototype.useSuggestion = function () {
1261
- if (!(this.suggest && util_1.isPresent(this.searchbar.value))) {
1262
- return false;
1263
- }
1264
- var focusedDataItem = this.dataService.itemAt(this.selectionService.focused);
1265
- var focusedItemText = util_1.getter(focusedDataItem, this.textField);
1266
- if (!util_1.isPresent(focusedItemText)) {
1267
- return false;
1268
- }
1269
- return this.searchbar.value.toLowerCase() === focusedItemText.toLowerCase();
1270
- };
1271
- ComboBoxComponent.prototype.destroyPopup = function () {
1272
- if (this.popupRef) {
1273
- this.popupRef.popupElement
1274
- .removeEventListener('mousedown', this.popupMouseDownHandler);
1275
- this.popupRef.close();
1276
- this.popupRef = null;
1277
- }
1278
- };
1279
- ComboBoxComponent.prototype.createPopup = function () {
1280
- var _this = this;
1281
- if (this.virtual) {
1282
- this.virtual.skip = 0;
1283
- }
1284
- var horizontalAlign = this.direction === "rtl" ? "right" : "left";
1285
- var anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
1286
- var popupPosition = { horizontal: horizontalAlign, vertical: "top" };
1287
- this.popupRef = this.popupService.open({
1288
- anchor: this.wrapper,
1289
- animate: this.popupSettings.animate,
1290
- appendTo: this.appendTo,
1291
- content: this.popupTemplate,
1292
- popupClass: this.listContainerClasses,
1293
- positionMode: 'absolute',
1294
- anchorAlign: anchorPosition,
1295
- popupAlign: popupPosition
1296
- });
1297
- var popupWrapper = this.popupRef.popupElement;
1298
- var _a = this.popupWidth, min = _a.min, max = _a.max;
1299
- popupWrapper.addEventListener('mousedown', this.popupMouseDownHandler);
1300
- popupWrapper.style.minWidth = min;
1301
- popupWrapper.style.width = max;
1302
- popupWrapper.style.height = this.popupHeight;
1303
- popupWrapper.setAttribute("dir", this.direction);
1304
- this.popupRef.popupOpen.subscribe(function () {
1305
- _this.cdr.detectChanges();
1306
- _this.optionsList.scrollToItem(_this.selectionService.focused);
1307
- _this.opened.emit();
1308
- });
1309
- this.popupRef.popupClose.subscribe(function () {
1310
- _this.closed.emit();
1311
- });
1312
- this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.togglePopup(false); });
1313
- };
1314
- ComboBoxComponent.prototype._toggle = function (open) {
1315
- this._open = open;
1316
- this.destroyPopup();
1317
- if (this._open) {
1318
- this.createPopup();
1319
- }
1320
- };
1321
- ComboBoxComponent.prototype.triggerPopupEvents = function (open) {
1322
- var eventArgs = new preventable_event_1.PreventableEvent();
1323
- if (open) {
1324
- this.open.emit(eventArgs);
1325
- }
1326
- else {
1327
- this.close.emit(eventArgs);
1328
- }
1329
- return eventArgs.isDefaultPrevented();
1330
- };
1331
- ComboBoxComponent.prototype.clearFilter = function () {
1332
- if (!(this.filterable && this.filterText)) {
1333
- return;
1334
- }
1335
- this.filterText = '';
1336
- this.filterChange.emit(this.filterText);
1337
- };
1338
- ComboBoxComponent.prototype.subscribeTouchEvents = function () {
1339
- var _this = this;
1340
- if (!kendo_angular_common_1.isDocumentAvailable() || !this.touchEnabled) {
1341
- return;
1342
- }
1343
- this.zone.runOutsideAngular(function () {
1344
- // Roll up ComboBox on iOS when tapped outside
1345
- return _this.touchstartDisposeHandler = _this.renderer.listen(document, 'touchstart', function (e) {
1346
- var target = e.target;
1347
- var isInDropDown = util_1.inDropDown(_this.wrapper, target, _this.popupRef);
1348
- if (_this.isFocused && !isInDropDown) {
1349
- // Close popup and mobile keyboard if searchbar is focused
1350
- _this.zone.run(function () { return _this.blur(); });
1351
- }
1352
- else if (_this.isOpen && !isInDropDown) {
1353
- // Close popup if the popup is opened via the select click
1354
- _this.zone.run(function () { return _this.togglePopup(false); });
1355
- }
1356
- });
1357
- });
1358
- };
1359
- ComboBoxComponent.prototype.attachSelectClickHandler = function () {
1360
- var selectElement = this.select.nativeElement;
1361
- var event = kendo_common_1.pointers ? 'pointerdown' : 'click';
1362
- this.selectClickDisposeHandler = this.renderer.listen(selectElement, event, this.selectClick.bind(this));
1363
- };
1364
- ComboBoxComponent.prototype.setComponentClasses = function () {
1365
- if (this.size) {
1366
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
1367
- }
1368
- if (this.rounded) {
1369
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
1370
- }
1371
- if (this.fillMode) {
1372
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
1373
- }
1374
- };
1375
- var ComboBoxComponent_1;
1376
- tslib_1.__decorate([
1377
- core_1.Input(),
1378
- tslib_1.__metadata("design:type", String)
1379
- ], ComboBoxComponent.prototype, "focusableId", void 0);
1380
- tslib_1.__decorate([
1381
- core_1.Input(),
1382
- tslib_1.__metadata("design:type", Boolean)
1383
- ], ComboBoxComponent.prototype, "allowCustom", void 0);
1384
- tslib_1.__decorate([
1385
- core_1.Input(),
1386
- tslib_1.__metadata("design:type", Object),
1387
- tslib_1.__metadata("design:paramtypes", [Object])
1388
- ], ComboBoxComponent.prototype, "data", null);
1389
- tslib_1.__decorate([
1390
- core_1.Input(),
1391
- tslib_1.__metadata("design:type", Object),
1392
- tslib_1.__metadata("design:paramtypes", [Object])
1393
- ], ComboBoxComponent.prototype, "value", null);
1394
- tslib_1.__decorate([
1395
- core_1.Input(),
1396
- tslib_1.__metadata("design:type", String)
1397
- ], ComboBoxComponent.prototype, "textField", void 0);
1398
- tslib_1.__decorate([
1399
- core_1.Input(),
1400
- tslib_1.__metadata("design:type", String)
1401
- ], ComboBoxComponent.prototype, "valueField", void 0);
1402
- tslib_1.__decorate([
1403
- core_1.Input(),
1404
- tslib_1.__metadata("design:type", Boolean),
1405
- tslib_1.__metadata("design:paramtypes", [Boolean])
1406
- ], ComboBoxComponent.prototype, "valuePrimitive", null);
1407
- tslib_1.__decorate([
1408
- core_1.Input(),
1409
- tslib_1.__metadata("design:type", Function)
1410
- ], ComboBoxComponent.prototype, "valueNormalizer", void 0);
1411
- tslib_1.__decorate([
1412
- core_1.Input(),
1413
- tslib_1.__metadata("design:type", String)
1414
- ], ComboBoxComponent.prototype, "placeholder", void 0);
1415
- tslib_1.__decorate([
1416
- core_1.Input(),
1417
- tslib_1.__metadata("design:type", Object),
1418
- tslib_1.__metadata("design:paramtypes", [Object])
1419
- ], ComboBoxComponent.prototype, "popupSettings", null);
1420
- tslib_1.__decorate([
1421
- core_1.Input(),
1422
- tslib_1.__metadata("design:type", Number)
1423
- ], ComboBoxComponent.prototype, "listHeight", void 0);
1424
- tslib_1.__decorate([
1425
- core_1.Input(),
1426
- tslib_1.__metadata("design:type", String)
1427
- ], ComboBoxComponent.prototype, "iconClass", void 0);
1428
- tslib_1.__decorate([
1429
- core_1.Input(),
1430
- tslib_1.__metadata("design:type", Boolean)
1431
- ], ComboBoxComponent.prototype, "loading", void 0);
1432
- tslib_1.__decorate([
1433
- core_1.Input(),
1434
- tslib_1.__metadata("design:type", Boolean)
1435
- ], ComboBoxComponent.prototype, "suggest", void 0);
1436
- tslib_1.__decorate([
1437
- core_1.Input(),
1438
- tslib_1.__metadata("design:type", Boolean)
1439
- ], ComboBoxComponent.prototype, "clearButton", void 0);
1440
- tslib_1.__decorate([
1441
- core_1.Input(),
1442
- tslib_1.__metadata("design:type", Boolean)
1443
- ], ComboBoxComponent.prototype, "disabled", void 0);
1444
- tslib_1.__decorate([
1445
- core_1.Input(),
1446
- tslib_1.__metadata("design:type", Function),
1447
- tslib_1.__metadata("design:paramtypes", [Function])
1448
- ], ComboBoxComponent.prototype, "itemDisabled", null);
1449
- tslib_1.__decorate([
1450
- core_1.Input(),
1451
- tslib_1.__metadata("design:type", Boolean)
1452
- ], ComboBoxComponent.prototype, "readonly", void 0);
1453
- tslib_1.__decorate([
1454
- core_1.Input(),
1455
- tslib_1.__metadata("design:type", Number)
1456
- ], ComboBoxComponent.prototype, "tabindex", void 0);
1457
- tslib_1.__decorate([
1458
- core_1.Input("tabIndex"),
1459
- tslib_1.__metadata("design:type", Number),
1460
- tslib_1.__metadata("design:paramtypes", [Number])
1461
- ], ComboBoxComponent.prototype, "tabIndex", null);
1462
- tslib_1.__decorate([
1463
- core_1.Input(),
1464
- tslib_1.__metadata("design:type", Boolean)
1465
- ], ComboBoxComponent.prototype, "filterable", void 0);
1466
- tslib_1.__decorate([
1467
- core_1.Input(),
1468
- tslib_1.__metadata("design:type", Object),
1469
- tslib_1.__metadata("design:paramtypes", [Object])
1470
- ], ComboBoxComponent.prototype, "virtual", null);
1471
- tslib_1.__decorate([
1472
- core_1.Input(),
1473
- tslib_1.__metadata("design:type", String),
1474
- tslib_1.__metadata("design:paramtypes", [String])
1475
- ], ComboBoxComponent.prototype, "size", null);
1476
- tslib_1.__decorate([
1477
- core_1.Input(),
1478
- tslib_1.__metadata("design:type", String),
1479
- tslib_1.__metadata("design:paramtypes", [String])
1480
- ], ComboBoxComponent.prototype, "rounded", null);
1481
- tslib_1.__decorate([
1482
- core_1.Input(),
1483
- tslib_1.__metadata("design:type", String),
1484
- tslib_1.__metadata("design:paramtypes", [String])
1485
- ], ComboBoxComponent.prototype, "fillMode", null);
1486
- tslib_1.__decorate([
1487
- core_1.Output(),
1488
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1489
- ], ComboBoxComponent.prototype, "valueChange", void 0);
1490
- tslib_1.__decorate([
1491
- core_1.Output(),
1492
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1493
- ], ComboBoxComponent.prototype, "selectionChange", void 0);
1494
- tslib_1.__decorate([
1495
- core_1.Output(),
1496
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1497
- ], ComboBoxComponent.prototype, "filterChange", void 0);
1498
- tslib_1.__decorate([
1499
- core_1.Output(),
1500
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1501
- ], ComboBoxComponent.prototype, "open", void 0);
1502
- tslib_1.__decorate([
1503
- core_1.Output(),
1504
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1505
- ], ComboBoxComponent.prototype, "opened", void 0);
1506
- tslib_1.__decorate([
1507
- core_1.Output(),
1508
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1509
- ], ComboBoxComponent.prototype, "close", void 0);
1510
- tslib_1.__decorate([
1511
- core_1.Output(),
1512
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1513
- ], ComboBoxComponent.prototype, "closed", void 0);
1514
- tslib_1.__decorate([
1515
- core_1.Output('focus'),
1516
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1517
- ], ComboBoxComponent.prototype, "onFocus", void 0);
1518
- tslib_1.__decorate([
1519
- core_1.Output('blur'),
1520
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1521
- ], ComboBoxComponent.prototype, "onBlur", void 0);
1522
- tslib_1.__decorate([
1523
- core_1.ContentChild(item_template_directive_1.ItemTemplateDirective, { static: false }),
1524
- tslib_1.__metadata("design:type", item_template_directive_1.ItemTemplateDirective)
1525
- ], ComboBoxComponent.prototype, "template", void 0);
1526
- tslib_1.__decorate([
1527
- core_1.ContentChild(header_template_directive_1.HeaderTemplateDirective, { static: false }),
1528
- tslib_1.__metadata("design:type", header_template_directive_1.HeaderTemplateDirective)
1529
- ], ComboBoxComponent.prototype, "headerTemplate", void 0);
1530
- tslib_1.__decorate([
1531
- core_1.ContentChild(footer_template_directive_1.FooterTemplateDirective, { static: false }),
1532
- tslib_1.__metadata("design:type", footer_template_directive_1.FooterTemplateDirective)
1533
- ], ComboBoxComponent.prototype, "footerTemplate", void 0);
1534
- tslib_1.__decorate([
1535
- core_1.ContentChild(no_data_template_directive_1.NoDataTemplateDirective, { static: false }),
1536
- tslib_1.__metadata("design:type", no_data_template_directive_1.NoDataTemplateDirective)
1537
- ], ComboBoxComponent.prototype, "noDataTemplate", void 0);
1538
- tslib_1.__decorate([
1539
- core_1.ContentChild(group_template_directive_1.GroupTemplateDirective, { static: false }),
1540
- tslib_1.__metadata("design:type", group_template_directive_1.GroupTemplateDirective)
1541
- ], ComboBoxComponent.prototype, "groupTemplate", void 0);
1542
- tslib_1.__decorate([
1543
- core_1.ContentChild(fixed_group_template_directive_1.FixedGroupTemplateDirective, { static: false }),
1544
- tslib_1.__metadata("design:type", fixed_group_template_directive_1.FixedGroupTemplateDirective)
1545
- ], ComboBoxComponent.prototype, "fixedGroupTemplate", void 0);
1546
- tslib_1.__decorate([
1547
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: true }),
1548
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
1549
- ], ComboBoxComponent.prototype, "container", void 0);
1550
- tslib_1.__decorate([
1551
- core_1.ViewChild('popupTemplate', { static: true }),
1552
- tslib_1.__metadata("design:type", core_1.TemplateRef)
1553
- ], ComboBoxComponent.prototype, "popupTemplate", void 0);
1554
- tslib_1.__decorate([
1555
- core_1.ViewChild(searchbar_component_1.SearchBarComponent, { static: true }),
1556
- tslib_1.__metadata("design:type", searchbar_component_1.SearchBarComponent)
1557
- ], ComboBoxComponent.prototype, "searchbar", void 0);
1558
- tslib_1.__decorate([
1559
- core_1.ViewChild('optionsList', { static: false }),
1560
- tslib_1.__metadata("design:type", list_component_1.ListComponent)
1561
- ], ComboBoxComponent.prototype, "optionsList", void 0);
1562
- tslib_1.__decorate([
1563
- core_1.ViewChild('select', { static: true }),
1564
- tslib_1.__metadata("design:type", core_1.ElementRef)
1565
- ], ComboBoxComponent.prototype, "select", void 0);
1566
- tslib_1.__decorate([
1567
- core_1.HostBinding('class.k-combobox'),
1568
- core_1.HostBinding('class.k-input'),
1569
- tslib_1.__metadata("design:type", Boolean)
1570
- ], ComboBoxComponent.prototype, "widgetClasses", void 0);
1571
- tslib_1.__decorate([
1572
- core_1.HostBinding('class.k-disabled'),
1573
- tslib_1.__metadata("design:type", Boolean),
1574
- tslib_1.__metadata("design:paramtypes", [])
1575
- ], ComboBoxComponent.prototype, "isDisabled", null);
1576
- tslib_1.__decorate([
1577
- core_1.HostBinding('class.k-loading'),
1578
- tslib_1.__metadata("design:type", Boolean),
1579
- tslib_1.__metadata("design:paramtypes", [])
1580
- ], ComboBoxComponent.prototype, "isLoading", null);
1581
- tslib_1.__decorate([
1582
- core_1.HostBinding('attr.dir'),
1583
- tslib_1.__metadata("design:type", Object),
1584
- tslib_1.__metadata("design:paramtypes", [])
1585
- ], ComboBoxComponent.prototype, "dir", null);
1586
- ComboBoxComponent = ComboBoxComponent_1 = tslib_1.__decorate([
1587
- core_1.Component({
1588
- exportAs: 'kendoComboBox',
1589
- providers: [
1590
- exports.COMBOBOX_VALUE_ACCESSOR,
1591
- data_service_1.DataService,
1592
- selection_service_1.SelectionService,
1593
- navigation_service_1.NavigationService,
1594
- disabled_items_service_1.DisabledItemsService,
1595
- kendo_angular_l10n_1.LocalizationService,
1596
- {
1597
- provide: kendo_angular_l10n_1.L10N_PREFIX,
1598
- useValue: 'kendo.combobox'
1599
- },
1600
- {
1601
- provide: filterable_component_1.FilterableComponent, useExisting: core_1.forwardRef(function () { return ComboBoxComponent_1; })
1602
- },
1603
- {
1604
- provide: kendo_angular_common_1.KendoInput, useExisting: core_1.forwardRef(function () { return ComboBoxComponent_1; })
1605
- }
1606
- ],
1607
- selector: 'kendo-combobox',
1608
- 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 <!--header template-->\n <ng-template *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate.templateRef\n }\">\n </ng-template>\n <!--list-->\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 <!--no-data template-->\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 <!--footer template-->\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 "
1609
- }),
1610
- tslib_1.__param(10, core_1.Optional()), tslib_1.__param(10, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
1611
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
1612
- kendo_angular_l10n_1.LocalizationService,
1613
- kendo_angular_popup_1.PopupService,
1614
- selection_service_1.SelectionService,
1615
- navigation_service_1.NavigationService,
1616
- disabled_items_service_1.DisabledItemsService,
1617
- data_service_1.DataService,
1618
- core_1.NgZone,
1619
- core_1.ChangeDetectorRef,
1620
- core_1.Renderer2, Boolean])
1621
- ], ComboBoxComponent);
1622
- return ComboBoxComponent;
1623
- }());
1624
- exports.ComboBoxComponent = ComboBoxComponent;