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

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