@progress/kendo-angular-dropdowns 6.0.3-dev.202203091003 → 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,1201 +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, Renderer2, forwardRef, ElementRef, Input, Output, EventEmitter, ContentChild, ViewChild, ViewContainerRef, TemplateRef, HostBinding, isDevMode, ChangeDetectorRef, NgZone, Optional, Inject } from '@angular/core';
8
- import { isDocumentAvailable, KendoInput, hasObservers } from '@progress/kendo-angular-common';
9
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
10
- import { validatePackage } from '@progress/kendo-licensing';
11
- import { packageMetadata } from '../package-metadata';
12
- import { SearchBarComponent } from '../common/searchbar.component';
13
- import { ItemTemplateDirective } from '../common/templates/item-template.directive';
14
- import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
15
- import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
16
- import { GroupTemplateDirective } from '../common/templates/group-template.directive';
17
- import { FixedGroupTemplateDirective } from '../common/templates/fixed-group-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 { Subject, merge } from 'rxjs';
22
- import { isPresent, guid, getter, isUntouched, noop, inDropDown, getSizeClass, getRoundedClass, getFillModeClass } from '../common/util';
23
- import { NavigationAction } from '../common/navigation/navigation-action';
24
- import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
25
- import { PreventableEvent } from '../common/models/preventable-event';
26
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
27
- import { PopupService } from '@progress/kendo-angular-popup';
28
- import { FilterableComponent } from '../common/filtering/filterable-component';
29
- import { DataService } from '../common/data.service';
30
- import { ListComponent } from '../common/list.component';
31
- import { normalizeVirtualizationSettings } from '../common/models/virtualization-settings';
32
- import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
33
- var NO_VALUE = "";
34
- /**
35
- * @hidden
36
- */
37
- export var AUTOCOMPLETE_VALUE_ACCESSOR = {
38
- multi: true,
39
- provide: NG_VALUE_ACCESSOR,
40
- useExisting: forwardRef(function () { return AutoCompleteComponent; })
41
- };
42
- /**
43
- * Represents the [Kendo UI AutoComplete component for Angular]({% slug overview_autocomplete %}).
44
- *
45
- * @example
46
- * ```ts
47
- * _@Component({
48
- * selector: 'my-app',
49
- * template: `
50
- * <kendo-autocomplete
51
- * [data]="listItems"
52
- * [placeholder]="placeholder"
53
- * >
54
- * `
55
- * })
56
- * class AppComponent {
57
- * public placeholder: string = 'Type "it" for suggestions';
58
- * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
59
- * }
60
- * ```
61
- */
62
- var AutoCompleteComponent = /** @class */ (function () {
63
- function AutoCompleteComponent(localization, dataService, popupService, selectionService, navigationService, disabledItemsService, _zone, cdr, renderer, hostElement, touchEnabled) {
64
- this.localization = localization;
65
- this.dataService = dataService;
66
- this.popupService = popupService;
67
- this.selectionService = selectionService;
68
- this.navigationService = navigationService;
69
- this.disabledItemsService = disabledItemsService;
70
- this._zone = _zone;
71
- this.cdr = cdr;
72
- this.renderer = renderer;
73
- this.hostElement = hostElement;
74
- this.touchEnabled = touchEnabled;
75
- /**
76
- * Defines whether the first match from the suggestions list will be automatically focused.
77
- * By default, `highlightFirst` is set to `true`.
78
- */
79
- this.highlightFirst = true;
80
- /**
81
- * @hidden
82
- */
83
- this.focusableId = "k-" + guid();
84
- /**
85
- * The hint which is displayed when the component is empty.
86
- */
87
- this.placeholder = "";
88
- /**
89
- * Sets the height of the suggestions list. By default, `listHeight` is 200px.
90
- *
91
- * > The `listHeight` property affects only the list of suggestions and not the whole popup container.
92
- * > To set the height of the popup container, use `popupSettings.height`.
93
- */
94
- this.listHeight = 200;
95
- /**
96
- * @hidden
97
- *
98
- * If set to `true`, renders a button on hovering over the component.
99
- * Clicking this button resets the value of the component to `undefined` and triggers the `change` event.
100
- */
101
- this.clearButton = true;
102
- /**
103
- * Sets the disabled state of the component.
104
- */
105
- this.disabled = false;
106
- /**
107
- * Sets the read-only state of the component.
108
- */
109
- this.readonly = false;
110
- /**
111
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
112
- */
113
- this.tabindex = 0;
114
- /**
115
- * Enables the [filtering]({% slug filtering_autocomplete %}) functionality.
116
- * If set to `true`, the component emits the `filterChange` event.
117
- */
118
- this.filterable = false;
119
- /**
120
- * Fires each time the value is changed&mdash;
121
- * when the component is blurred or the value is cleared through the **Clear** button
122
- * ([see example]({% slug overview_autocomplete %}#toc-events)).
123
- * When the value of the component is programmatically changed to `ngModel` or `formControl`
124
- * through its API or form binding, the `valueChange` event is not triggered because it
125
- * might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
126
- */
127
- this.valueChange = new EventEmitter();
128
- /**
129
- * Fires each time the user types in the input field.
130
- * You can filter the source based on the passed filtration value
131
- * ([see example]({% slug overview_autocomplete %}#toc-events)).
132
- */
133
- this.filterChange = new EventEmitter();
134
- /**
135
- * Fires each time the popup is about to open.
136
- * This event is preventable. If you cancel it, the popup will remain closed.
137
- */
138
- this.open = new EventEmitter();
139
- /**
140
- * Fires after the popup has been opened.
141
- */
142
- this.opened = new EventEmitter();
143
- /**
144
- * Fires each time the popup is about to close.
145
- * This event is preventable. If you cancel it, the popup will remain open.
146
- */
147
- this.close = new EventEmitter();
148
- /**
149
- * Fires after the popup has been closed.
150
- */
151
- this.closed = new EventEmitter();
152
- /**
153
- * Fires each time the user focuses the AutoComplete.
154
- */
155
- this.onFocus = new EventEmitter();
156
- /**
157
- * Fires each time the AutoComplete gets blurred.
158
- */
159
- this.onBlur = new EventEmitter();
160
- this.widgetClasses = true;
161
- this.listBoxId = guid();
162
- this.optionPrefix = guid();
163
- this.onChangeCallback = noop;
164
- this.onTouchedCallback = noop;
165
- this.popupMouseDownHandler = function (event) { return event.preventDefault(); };
166
- this._popupSettings = { animate: true };
167
- this._open = false;
168
- this._value = "";
169
- this.valueChangeSubject = new Subject();
170
- this._isFocused = false;
171
- this._size = 'medium';
172
- this._rounded = 'medium';
173
- this._fillMode = 'solid';
174
- validatePackage(packageMetadata);
175
- this.direction = localization.rtl ? 'rtl' : 'ltr';
176
- this.wrapper = this.hostElement.nativeElement;
177
- this.data = [];
178
- this.subscribeEvents();
179
- this.subscribeTouchEvents();
180
- this.selectionService.resetSelection([-1]);
181
- }
182
- AutoCompleteComponent_1 = AutoCompleteComponent;
183
- Object.defineProperty(AutoCompleteComponent.prototype, "width", {
184
- get: function () {
185
- var wrapperOffsetWidth = 0;
186
- if (isDocumentAvailable()) {
187
- wrapperOffsetWidth = this.wrapper.offsetWidth;
188
- }
189
- var width = this.popupSettings.width || wrapperOffsetWidth;
190
- var minWidth = isNaN(wrapperOffsetWidth) ? wrapperOffsetWidth : wrapperOffsetWidth + "px";
191
- var maxWidth = isNaN(width) ? width : width + "px";
192
- return { min: minWidth, max: maxWidth };
193
- },
194
- enumerable: true,
195
- configurable: true
196
- });
197
- Object.defineProperty(AutoCompleteComponent.prototype, "height", {
198
- get: function () {
199
- var popupHeight = this.popupSettings.height;
200
- return isPresent(popupHeight) ? popupHeight + "px" : 'auto';
201
- },
202
- enumerable: true,
203
- configurable: true
204
- });
205
- Object.defineProperty(AutoCompleteComponent.prototype, "listContainerClasses", {
206
- get: function () {
207
- var containerClasses = ['k-list-container', 'k-reset'];
208
- if (this.popupSettings.popupClass) {
209
- containerClasses.push(this.popupSettings.popupClass);
210
- }
211
- return containerClasses;
212
- },
213
- enumerable: true,
214
- configurable: true
215
- });
216
- Object.defineProperty(AutoCompleteComponent.prototype, "suggestion", {
217
- get: function () {
218
- if (!this.text || !this.suggestedText) {
219
- this.suggestedText = undefined;
220
- return;
221
- }
222
- var hasMatch = this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());
223
- var shouldSuggest = this.suggest && !this.backspacePressed;
224
- if (shouldSuggest && hasMatch) {
225
- return this.suggestedText;
226
- }
227
- },
228
- enumerable: true,
229
- configurable: true
230
- });
231
- Object.defineProperty(AutoCompleteComponent.prototype, "appendTo", {
232
- get: function () {
233
- var appendTo = this.popupSettings.appendTo;
234
- if (!appendTo || appendTo === 'root') {
235
- return undefined;
236
- }
237
- return appendTo === 'component' ? this.container : appendTo;
238
- },
239
- enumerable: true,
240
- configurable: true
241
- });
242
- Object.defineProperty(AutoCompleteComponent.prototype, "clearButtonVisiblity", {
243
- get: function () {
244
- if (this.touchEnabled) {
245
- return 'visible';
246
- }
247
- },
248
- enumerable: true,
249
- configurable: true
250
- });
251
- /**
252
- * Toggles the visibility of the popup.
253
- * If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
254
- *
255
- * @param open - The state of the popup.
256
- */
257
- AutoCompleteComponent.prototype.toggle = function (open) {
258
- var _this = this;
259
- Promise.resolve(null).then(function () {
260
- var shouldOpen = isPresent(open) ? open : !_this._open;
261
- _this._toggle(shouldOpen);
262
- });
263
- };
264
- Object.defineProperty(AutoCompleteComponent.prototype, "isOpen", {
265
- /**
266
- * Returns the current open state of the popup.
267
- */
268
- get: function () {
269
- return this._open;
270
- },
271
- enumerable: true,
272
- configurable: true
273
- });
274
- /**
275
- * @hidden
276
- */
277
- AutoCompleteComponent.prototype.togglePopup = function (open) {
278
- var isDisabled = this.disabled || this.readonly;
279
- var sameState = this.isOpen === open;
280
- if (isDisabled || sameState) {
281
- return;
282
- }
283
- var isDefaultPrevented = this.triggerPopupEvents(open);
284
- if (!isDefaultPrevented) {
285
- this._toggle(open);
286
- }
287
- };
288
- Object.defineProperty(AutoCompleteComponent.prototype, "activeDescendant", {
289
- get: function () {
290
- if (!this.isOpen || !isPresent(this.selectionService.focused) || this.selectionService.focused === -1) {
291
- return null;
292
- }
293
- var dataItem = this.dataService.itemAt(this.selectionService.focused);
294
- return this.optionPrefix + "-" + getter(dataItem, this.valueField);
295
- },
296
- enumerable: true,
297
- configurable: true
298
- });
299
- Object.defineProperty(AutoCompleteComponent.prototype, "noDataLabel", {
300
- get: function () {
301
- if (this.data.length === 0) {
302
- return this.messageFor('noDataText');
303
- }
304
- },
305
- enumerable: true,
306
- configurable: true
307
- });
308
- Object.defineProperty(AutoCompleteComponent.prototype, "data", {
309
- get: function () {
310
- var virtual = this.virtual;
311
- if (virtual) {
312
- var start = virtual.skip || 0;
313
- var end = start + virtual.pageSize;
314
- // Use length instead of itemsCount because of the grouping.
315
- virtual.total = this.dataService.data.length;
316
- return this.dataService.data.slice(start, end);
317
- }
318
- return this.dataService.data;
319
- },
320
- /**
321
- * Sets the data of the AutoComplete.
322
- *
323
- * > The data has to be provided in an array-like list.
324
- */
325
- set: function (data) {
326
- this.dataService.data = data || [];
327
- if (this.virtual) {
328
- this.virtual.skip = 0;
329
- }
330
- if (this.filterable) {
331
- this.selectionService.focused = this.isOpen && this.data.length && this.highlightFirst ? this.firstFocusableIndex(0) : -1;
332
- }
333
- if (this.suggest && this.dataService.itemsCount > 0) {
334
- this.suggestedText = getter(this.dataService.itemAt(0), this.valueField);
335
- }
336
- },
337
- enumerable: true,
338
- configurable: true
339
- });
340
- Object.defineProperty(AutoCompleteComponent.prototype, "value", {
341
- get: function () {
342
- return this._value || NO_VALUE;
343
- },
344
- /**
345
- * Sets the value of the AutoComplete.
346
- */
347
- set: function (newValue) {
348
- this.verifySettings(newValue);
349
- this._value = newValue || NO_VALUE;
350
- this.text = this.value;
351
- this.cdr.markForCheck();
352
- },
353
- enumerable: true,
354
- configurable: true
355
- });
356
- Object.defineProperty(AutoCompleteComponent.prototype, "popupSettings", {
357
- get: function () {
358
- return this._popupSettings;
359
- },
360
- /**
361
- * Configures the popup of the AutoComplete.
362
- *
363
- * The available options are:
364
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
365
- * - `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.
366
- * - `height: Number`&mdash;Sets the height of the popup container.
367
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
368
- * - `appendTo: "root" | "component" | ViewContainerRef`&mdash;Specifies the component to which the popup will be appended.
369
- */
370
- set: function (settings) {
371
- this._popupSettings = Object.assign({ animate: true }, settings);
372
- },
373
- enumerable: true,
374
- configurable: true
375
- });
376
- Object.defineProperty(AutoCompleteComponent.prototype, "itemDisabled", {
377
- /**
378
- * Defines a Boolean function that is executed for each data item in the component
379
- * ([see examples]({% slug disableditems_autocomplete %})).
380
- * Determines whether the item will be disabled.
381
- */
382
- set: function (fn) {
383
- if (typeof fn !== 'function') {
384
- throw new Error("itemDisabled must be a function, but received " + JSON.stringify(fn) + ".");
385
- }
386
- this.disabledItemsService.itemDisabled = fn;
387
- },
388
- enumerable: true,
389
- configurable: true
390
- });
391
- Object.defineProperty(AutoCompleteComponent.prototype, "tabIndex", {
392
- get: function () {
393
- return this.tabindex;
394
- },
395
- /**
396
- * @hidden
397
- */
398
- set: function (tabIndex) {
399
- this.tabindex = tabIndex;
400
- },
401
- enumerable: true,
402
- configurable: true
403
- });
404
- Object.defineProperty(AutoCompleteComponent.prototype, "virtual", {
405
- get: function () {
406
- return this._virtualSettings;
407
- },
408
- /**
409
- * Enables the [virtualization]({% slug virtualization_autocomplete %}) functionality.
410
- */
411
- set: function (settings) {
412
- this._virtualSettings = normalizeVirtualizationSettings(settings);
413
- },
414
- enumerable: true,
415
- configurable: true
416
- });
417
- Object.defineProperty(AutoCompleteComponent.prototype, "size", {
418
- get: function () {
419
- return this._size;
420
- },
421
- /**
422
- * Sets the size of the component.
423
- *
424
- * The possible values are:
425
- * * `'small'`
426
- * * `'medium'` (default)
427
- * * `'large'`
428
- * * `null`
429
- *
430
- */
431
- set: function (size) {
432
- this.renderer.removeClass(this.wrapper, getSizeClass('input', this.size));
433
- if (size) {
434
- this.renderer.addClass(this.wrapper, getSizeClass('input', size));
435
- }
436
- this._size = size;
437
- },
438
- enumerable: true,
439
- configurable: true
440
- });
441
- Object.defineProperty(AutoCompleteComponent.prototype, "rounded", {
442
- get: function () {
443
- return this._rounded;
444
- },
445
- /**
446
- * Sets the border radius of the component.
447
- *
448
- * The possible values are:
449
- * * `'small'`
450
- * * `'medium'` (default)
451
- * * `'large'`
452
- * * `'full'`
453
- * * `null`
454
- *
455
- */
456
- set: function (rounded) {
457
- this.renderer.removeClass(this.wrapper, getRoundedClass(this.rounded));
458
- if (rounded) {
459
- this.renderer.addClass(this.wrapper, getRoundedClass(rounded));
460
- }
461
- this._rounded = rounded;
462
- },
463
- enumerable: true,
464
- configurable: true
465
- });
466
- Object.defineProperty(AutoCompleteComponent.prototype, "fillMode", {
467
- get: function () {
468
- return this._fillMode;
469
- },
470
- /**
471
- * Sets the fillMode of the component.
472
- *
473
- * The possible values are:
474
- * * `'flat'`
475
- * * `'solid'` (default)
476
- * * `'outline'`
477
- * * `null`
478
- *
479
- */
480
- set: function (fillMode) {
481
- this.renderer.removeClass(this.wrapper, getFillModeClass('input', this.fillMode));
482
- if (fillMode) {
483
- this.renderer.addClass(this.wrapper, getFillModeClass('input', fillMode));
484
- }
485
- this._fillMode = fillMode;
486
- },
487
- enumerable: true,
488
- configurable: true
489
- });
490
- Object.defineProperty(AutoCompleteComponent.prototype, "isFocused", {
491
- get: function () {
492
- return this._isFocused;
493
- },
494
- set: function (isFocused) {
495
- this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper, "k-focus");
496
- this._isFocused = isFocused;
497
- },
498
- enumerable: true,
499
- configurable: true
500
- });
501
- Object.defineProperty(AutoCompleteComponent.prototype, "isDisabled", {
502
- get: function () {
503
- return this.disabled;
504
- },
505
- enumerable: true,
506
- configurable: true
507
- });
508
- Object.defineProperty(AutoCompleteComponent.prototype, "isLoading", {
509
- get: function () {
510
- return this.loading;
511
- },
512
- enumerable: true,
513
- configurable: true
514
- });
515
- Object.defineProperty(AutoCompleteComponent.prototype, "dir", {
516
- get: function () {
517
- return this.direction;
518
- },
519
- enumerable: true,
520
- configurable: true
521
- });
522
- AutoCompleteComponent.prototype.ngOnInit = function () {
523
- var _this = this;
524
- this.renderer.removeAttribute(this.wrapper, "tabindex");
525
- this.localizationChangeSubscription = this.localization
526
- .changes
527
- .subscribe(function (_a) {
528
- var rtl = _a.rtl;
529
- _this.direction = rtl ? 'rtl' : 'ltr';
530
- _this.cdr.detectChanges();
531
- });
532
- this.setComponentClasses();
533
- };
534
- AutoCompleteComponent.prototype.ngOnDestroy = function () {
535
- this.destroyPopup();
536
- this.unsubscribeEvents();
537
- if (this.localizationChangeSubscription) {
538
- this.localizationChangeSubscription.unsubscribe();
539
- }
540
- };
541
- AutoCompleteComponent.prototype.ngOnChanges = function (changes) {
542
- var virtual = this.virtual;
543
- var requestInitialData = virtual && changes.data && changes.data.isFirstChange();
544
- if (requestInitialData) {
545
- this.pageChange({ skip: 0, take: virtual.pageSize });
546
- }
547
- };
548
- /**
549
- * Resets the value of the AutoComplete.
550
- * If you use the `reset` method to clear the value of the component,
551
- * the model will not update automatically and the `selectionChange` and `valueChange` events will not be fired.
552
- */
553
- AutoCompleteComponent.prototype.reset = function () {
554
- this.value = NO_VALUE;
555
- };
556
- /**
557
- * @hidden
558
- */
559
- AutoCompleteComponent.prototype.messageFor = function (key) {
560
- return this.localization.get(key);
561
- };
562
- /**
563
- * @hidden
564
- */
565
- AutoCompleteComponent.prototype.clearValue = function (event) {
566
- event.stopImmediatePropagation();
567
- this.focus();
568
- this.change(NO_VALUE);
569
- if (this.filterable) {
570
- this.filterChange.emit('');
571
- }
572
- this.selectionService.resetSelection([]);
573
- };
574
- /**
575
- * @hidden
576
- */
577
- AutoCompleteComponent.prototype.writeValue = function (value) {
578
- this.value = value;
579
- };
580
- /**
581
- * @hidden
582
- */
583
- AutoCompleteComponent.prototype.registerOnChange = function (fn) {
584
- this.onChangeCallback = fn;
585
- };
586
- /**
587
- * @hidden
588
- */
589
- AutoCompleteComponent.prototype.registerOnTouched = function (fn) {
590
- this.onTouchedCallback = fn;
591
- };
592
- /**
593
- * @hidden
594
- */
595
- AutoCompleteComponent.prototype.setDisabledState = function (isDisabled) {
596
- this.disabled = isDisabled;
597
- };
598
- /**
599
- * Focuses a specific item of the AutoComplete based on a provided index.
600
- * If null or invalid index is provided the focus will be removed.
601
- */
602
- AutoCompleteComponent.prototype.focusItemAt = function (index) {
603
- var isInRange = index >= 0 && index < this.data.length;
604
- if (isPresent(index) && isInRange && !this.disabledItemsService.isIndexDisabled(index)) {
605
- this.selectionService.focus(index);
606
- }
607
- else {
608
- this.selectionService.focus(-1);
609
- }
610
- };
611
- /**
612
- * Focuses the AutoComplete.
613
- */
614
- AutoCompleteComponent.prototype.focus = function () {
615
- if (!this.disabled) {
616
- this.searchbar.focus();
617
- }
618
- };
619
- /**
620
- * Blurs the AutoComplete.
621
- */
622
- AutoCompleteComponent.prototype.blur = function () {
623
- if (!this.disabled) {
624
- this.searchbar.blur();
625
- }
626
- };
627
- /**
628
- * @hidden
629
- */
630
- AutoCompleteComponent.prototype.onResize = function () {
631
- if (this._open) {
632
- var popupWrapper = this.popupRef.popupElement;
633
- var _a = this.width, min = _a.min, max = _a.max;
634
- popupWrapper.style.minWidth = min;
635
- popupWrapper.style.width = max;
636
- }
637
- };
638
- AutoCompleteComponent.prototype.emitChange = function (value) {
639
- this.onChangeCallback(value);
640
- this.valueChange.emit(value);
641
- };
642
- AutoCompleteComponent.prototype.verifySettings = function (newValue) {
643
- if (!isDevMode()) {
644
- return;
645
- }
646
- if (isPresent(newValue) && typeof newValue !== "string") {
647
- throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/");
648
- }
649
- };
650
- AutoCompleteComponent.prototype.search = function (text, startFrom) {
651
- if (startFrom === void 0) { startFrom = 0; }
652
- var index;
653
- if (text.length && this.dataService.itemsCount) {
654
- index = this.dataService.findIndex(this.findIndexPredicate(text), startFrom);
655
- }
656
- else {
657
- index = -1;
658
- }
659
- if (this.disabledItemsService.isIndexDisabled(index)) {
660
- if (index + 1 < this.dataService.itemsCount) {
661
- this.search(text, index + 1);
662
- }
663
- else {
664
- this.selectionService.focus(-1);
665
- }
666
- }
667
- else {
668
- this.selectionService.focus(index);
669
- if (this.suggest) {
670
- this.suggestedText = getter(this.dataService.itemAt(index), this.valueField);
671
- }
672
- }
673
- };
674
- AutoCompleteComponent.prototype.navigate = function (index) {
675
- if (!this.isOpen) {
676
- return;
677
- }
678
- this.selectionService.focus(index);
679
- };
680
- /**
681
- * @hidden
682
- */
683
- AutoCompleteComponent.prototype.handleNavigate = function (event) {
684
- var focused = isNaN(this.selectionService.focused) ? this.firstFocusableIndex(0) : this.selectionService.focused;
685
- if (this.disabled || this.readonly || isNaN(focused)) {
686
- return;
687
- }
688
- var action = this.navigationService.process({
689
- current: focused,
690
- max: this.dataService.itemsCount - 1,
691
- min: 0,
692
- originalEvent: event
693
- });
694
- if (action !== NavigationAction.Undefined &&
695
- action !== NavigationAction.Backspace &&
696
- action !== NavigationAction.Delete &&
697
- action !== NavigationAction.Home &&
698
- action !== NavigationAction.End &&
699
- action !== NavigationAction.Left &&
700
- action !== NavigationAction.Right &&
701
- ((action === NavigationAction.Enter && this.isOpen) || action !== NavigationAction.Enter)) {
702
- event.preventDefault();
703
- }
704
- };
705
- AutoCompleteComponent.prototype.handleEnter = function (event) {
706
- var focused = this.selectionService.focused;
707
- var value;
708
- if (this.isOpen) {
709
- event.originalEvent.preventDefault();
710
- }
711
- if (focused >= 0) {
712
- value = getter(this.dataService.itemAt(focused), this.valueField);
713
- }
714
- else {
715
- var match = this.suggest && this.suggestedText && this.data.length &&
716
- getter(this.dataService.itemAt(0), this.valueField).toLowerCase() === this.searchbar.value.toLowerCase();
717
- if (this.isOpen && match) {
718
- value = this.suggestedText;
719
- }
720
- else {
721
- value = this.searchbar.value;
722
- }
723
- }
724
- this.change(value);
725
- };
726
- AutoCompleteComponent.prototype.handleEscape = function () {
727
- this.togglePopup(false);
728
- this.selectionService.focused = -1;
729
- this.suggestedText = null;
730
- };
731
- /**
732
- * @hidden
733
- */
734
- AutoCompleteComponent.prototype.searchBarChange = function (text) {
735
- var currentTextLength = isPresent(this.text) ? this.text.length : 0;
736
- this.backspacePressed = (text.length < currentTextLength) ? true : false;
737
- this.text = text;
738
- this.togglePopup(text.length > 0);
739
- if (!this.highlightFirst) {
740
- this.selectionService.focused = -1;
741
- }
742
- if (this.filterable) {
743
- this.filterChange.emit(text);
744
- }
745
- else if (this.highlightFirst) {
746
- this.search(text);
747
- }
748
- };
749
- /**
750
- * @hidden
751
- */
752
- AutoCompleteComponent.prototype.handleFocus = function () {
753
- var _this = this;
754
- this.isFocused = true;
755
- if (hasObservers(this.onFocus)) {
756
- this._zone.run(function () {
757
- _this.onFocus.emit();
758
- });
759
- }
760
- };
761
- /**
762
- * @hidden
763
- */
764
- AutoCompleteComponent.prototype.handleBlur = function () {
765
- var _this = this;
766
- var focused = this.filterable ? this.selectionService.focused : -1;
767
- this.searchbar.input.nativeElement.scrollLeft = 0; // Firefox doesn't auto-scroll to the left on blur like other browsers
768
- var dataItem;
769
- var text;
770
- if (focused !== -1) {
771
- dataItem = this.dataService.itemAt(focused);
772
- text = getter(dataItem, this.valueField) || "";
773
- }
774
- else {
775
- text = this.searchbar.value;
776
- }
777
- var exactMatch = text === this.searchbar.value;
778
- var insensitiveMatch = text.toLowerCase() === this.searchbar.value.toLowerCase();
779
- if (!exactMatch && insensitiveMatch) {
780
- this.selectionService.resetSelection([]);
781
- }
782
- this.isFocused = false;
783
- var valueHasChanged = this.value !== this.text;
784
- var runInZone = hasObservers(this.onBlur) || hasObservers(this.close) || isUntouched(this.wrapper) || valueHasChanged;
785
- if (runInZone) {
786
- this._zone.run(function () {
787
- if (valueHasChanged) {
788
- _this.change(_this.searchbar.value);
789
- }
790
- _this.onBlur.emit();
791
- _this.onTouchedCallback();
792
- _this.togglePopup(false);
793
- });
794
- }
795
- else {
796
- this.togglePopup(false);
797
- }
798
- };
799
- /**
800
- * @hidden
801
- */
802
- AutoCompleteComponent.prototype.pageChange = function (event) {
803
- var virtual = this.virtual;
804
- virtual.skip = event.skip;
805
- };
806
- AutoCompleteComponent.prototype.change = function (value) {
807
- this.togglePopup(false);
808
- this.valueChangeSubject.next(value);
809
- };
810
- AutoCompleteComponent.prototype.subscribeEvents = function () {
811
- var _this = this;
812
- if (!isDocumentAvailable()) {
813
- return;
814
- }
815
- this.valueChangeSubscription = this.valueChangeSubject
816
- .subscribe(function (value) {
817
- var hasChange = _this.value !== value;
818
- _this.value = value;
819
- _this.text = value;
820
- // emit change after assigning `this.value` => allows the user to modify the component value on `valueChange`
821
- if (hasChange) {
822
- _this.emitChange(value);
823
- }
824
- });
825
- this.changeSubscription = this.selectionService.onChange.subscribe(this.handleItemChange.bind(this));
826
- this.focusSubscription = this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this));
827
- this.navigationSubscription = merge(this.navigationService.up, this.navigationService.down).subscribe(function (event) { return _this.navigate(event.index); });
828
- this.closeSubscription = this.navigationService.close.subscribe(function () { return _this.togglePopup(false); });
829
- this.enterSubscription = this.navigationService.enter.subscribe(this.handleEnter.bind(this));
830
- this.escSubscription = this.navigationService.esc.subscribe(this.handleEscape.bind(this));
831
- };
832
- AutoCompleteComponent.prototype.subscribeTouchEvents = function () {
833
- var _this = this;
834
- if (!isDocumentAvailable() || !this.touchEnabled) {
835
- return;
836
- }
837
- this._zone.runOutsideAngular(function () {
838
- // Roll up AutoComplete on iOS when tapped outside
839
- return _this.touchstartDisposeHandler = _this.renderer.listen(document, 'touchstart', function (e) {
840
- var target = e.target;
841
- if (_this.isFocused && !inDropDown(_this.hostElement, target, _this.popupRef)) {
842
- _this._zone.run(function () { return _this.blur(); });
843
- }
844
- });
845
- });
846
- };
847
- AutoCompleteComponent.prototype.unsubscribeEvents = function () {
848
- if (!isDocumentAvailable()) {
849
- return;
850
- }
851
- this.changeSubscription.unsubscribe();
852
- this.navigationSubscription.unsubscribe();
853
- this.closeSubscription.unsubscribe();
854
- this.enterSubscription.unsubscribe();
855
- this.escSubscription.unsubscribe();
856
- this.valueChangeSubscription.unsubscribe();
857
- this.focusSubscription.unsubscribe();
858
- if (this.touchstartDisposeHandler) {
859
- this.touchstartDisposeHandler();
860
- }
861
- };
862
- AutoCompleteComponent.prototype.handleItemChange = function (event) {
863
- var index = event.indices.length ? event.indices[0] : undefined;
864
- this.selectionService.resetSelection([-1]);
865
- if (!isPresent(index)) {
866
- return;
867
- }
868
- var text = getter(this.dataService.itemAt(index), this.valueField);
869
- this.change(text);
870
- };
871
- AutoCompleteComponent.prototype.handleItemFocus = function (_event) {
872
- var focused = this.selectionService.focused;
873
- var shouldSuggest = Boolean(this.suggest && this.data && this.data.length && focused >= 0);
874
- if (shouldSuggest) {
875
- this.suggestedText = getter(this.dataService.itemAt(focused), this.valueField);
876
- }
877
- };
878
- AutoCompleteComponent.prototype.createPopup = function () {
879
- var _this = this;
880
- if (this.virtual) {
881
- this.virtual.skip = 0;
882
- }
883
- var horizontalAlign = this.direction === "rtl" ? "right" : "left";
884
- var anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
885
- var popupPosition = { horizontal: horizontalAlign, vertical: "top" };
886
- this.popupRef = this.popupService.open({
887
- anchor: this.wrapper,
888
- animate: this.popupSettings.animate,
889
- appendTo: this.appendTo,
890
- content: this.popupTemplate,
891
- popupClass: this.listContainerClasses,
892
- positionMode: 'absolute',
893
- popupAlign: popupPosition,
894
- anchorAlign: anchorPosition
895
- });
896
- var popupWrapper = this.popupRef.popupElement;
897
- var _a = this.width, min = _a.min, max = _a.max;
898
- popupWrapper.addEventListener('mousedown', this.popupMouseDownHandler);
899
- popupWrapper.style.minWidth = min;
900
- popupWrapper.style.width = max;
901
- popupWrapper.style.height = this.height;
902
- popupWrapper.setAttribute("dir", this.direction);
903
- this.popupRef.popupOpen.subscribe(function () {
904
- _this.cdr.detectChanges();
905
- _this.optionsList.scrollToItem(_this.selectionService.focused);
906
- _this.opened.emit();
907
- });
908
- this.popupRef.popupClose.subscribe(function () {
909
- _this.closed.emit();
910
- });
911
- this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.togglePopup(false); });
912
- };
913
- AutoCompleteComponent.prototype.destroyPopup = function () {
914
- if (this.popupRef) {
915
- this.popupRef.popupElement
916
- .removeEventListener('mousedown', this.popupMouseDownHandler);
917
- this.popupRef.close();
918
- this.popupRef = null;
919
- }
920
- };
921
- AutoCompleteComponent.prototype._toggle = function (open) {
922
- this._open = open;
923
- this.destroyPopup();
924
- if (this._open) {
925
- this.createPopup();
926
- }
927
- };
928
- AutoCompleteComponent.prototype.triggerPopupEvents = function (open) {
929
- var eventArgs = new PreventableEvent();
930
- if (open) {
931
- this.open.emit(eventArgs);
932
- }
933
- else {
934
- this.close.emit(eventArgs);
935
- }
936
- return eventArgs.isDefaultPrevented();
937
- };
938
- AutoCompleteComponent.prototype.firstFocusableIndex = function (index) {
939
- var maxIndex = this.data.length - 1;
940
- if (this.disabledItemsService.isIndexDisabled(index)) {
941
- return (index < maxIndex) ? this.firstFocusableIndex(index + 1) : undefined;
942
- }
943
- else {
944
- return index;
945
- }
946
- };
947
- AutoCompleteComponent.prototype.findIndexPredicate = function (text) {
948
- var _this = this;
949
- if (this.dataService.grouped) {
950
- return function (item) {
951
- var itemText = getter(item.value, _this.valueField);
952
- itemText = !isPresent(itemText) ? "" : itemText.toString().toLowerCase();
953
- return itemText.startsWith(text.toLowerCase());
954
- };
955
- }
956
- else {
957
- return function (item) {
958
- var itemText = getter(item, _this.valueField);
959
- itemText = !isPresent(itemText) ? "" : itemText.toString().toLowerCase();
960
- return itemText.startsWith(text.toLowerCase());
961
- };
962
- }
963
- };
964
- AutoCompleteComponent.prototype.setComponentClasses = function () {
965
- if (this.size) {
966
- this.renderer.addClass(this.wrapper, getSizeClass('input', this.size));
967
- }
968
- if (this.rounded) {
969
- this.renderer.addClass(this.wrapper, getRoundedClass(this.rounded));
970
- }
971
- if (this.fillMode) {
972
- this.renderer.addClass(this.wrapper, getFillModeClass('input', this.fillMode));
973
- }
974
- };
975
- var AutoCompleteComponent_1;
976
- tslib_1.__decorate([
977
- Input(),
978
- tslib_1.__metadata("design:type", Boolean)
979
- ], AutoCompleteComponent.prototype, "highlightFirst", void 0);
980
- tslib_1.__decorate([
981
- Input(),
982
- tslib_1.__metadata("design:type", String)
983
- ], AutoCompleteComponent.prototype, "focusableId", void 0);
984
- tslib_1.__decorate([
985
- Input(),
986
- tslib_1.__metadata("design:type", Object),
987
- tslib_1.__metadata("design:paramtypes", [Object])
988
- ], AutoCompleteComponent.prototype, "data", null);
989
- tslib_1.__decorate([
990
- Input(),
991
- tslib_1.__metadata("design:type", String),
992
- tslib_1.__metadata("design:paramtypes", [String])
993
- ], AutoCompleteComponent.prototype, "value", null);
994
- tslib_1.__decorate([
995
- Input(),
996
- tslib_1.__metadata("design:type", String)
997
- ], AutoCompleteComponent.prototype, "valueField", void 0);
998
- tslib_1.__decorate([
999
- Input(),
1000
- tslib_1.__metadata("design:type", String)
1001
- ], AutoCompleteComponent.prototype, "placeholder", void 0);
1002
- tslib_1.__decorate([
1003
- Input(),
1004
- tslib_1.__metadata("design:type", Object),
1005
- tslib_1.__metadata("design:paramtypes", [Object])
1006
- ], AutoCompleteComponent.prototype, "popupSettings", null);
1007
- tslib_1.__decorate([
1008
- Input(),
1009
- tslib_1.__metadata("design:type", Number)
1010
- ], AutoCompleteComponent.prototype, "listHeight", void 0);
1011
- tslib_1.__decorate([
1012
- Input(),
1013
- tslib_1.__metadata("design:type", Boolean)
1014
- ], AutoCompleteComponent.prototype, "loading", void 0);
1015
- tslib_1.__decorate([
1016
- Input(),
1017
- tslib_1.__metadata("design:type", Boolean)
1018
- ], AutoCompleteComponent.prototype, "clearButton", void 0);
1019
- tslib_1.__decorate([
1020
- Input(),
1021
- tslib_1.__metadata("design:type", Boolean)
1022
- ], AutoCompleteComponent.prototype, "suggest", void 0);
1023
- tslib_1.__decorate([
1024
- Input(),
1025
- tslib_1.__metadata("design:type", Boolean)
1026
- ], AutoCompleteComponent.prototype, "disabled", void 0);
1027
- tslib_1.__decorate([
1028
- Input(),
1029
- tslib_1.__metadata("design:type", Function),
1030
- tslib_1.__metadata("design:paramtypes", [Function])
1031
- ], AutoCompleteComponent.prototype, "itemDisabled", null);
1032
- tslib_1.__decorate([
1033
- Input(),
1034
- tslib_1.__metadata("design:type", Boolean)
1035
- ], AutoCompleteComponent.prototype, "readonly", void 0);
1036
- tslib_1.__decorate([
1037
- Input(),
1038
- tslib_1.__metadata("design:type", Number)
1039
- ], AutoCompleteComponent.prototype, "tabindex", void 0);
1040
- tslib_1.__decorate([
1041
- Input("tabIndex"),
1042
- tslib_1.__metadata("design:type", Number),
1043
- tslib_1.__metadata("design:paramtypes", [Number])
1044
- ], AutoCompleteComponent.prototype, "tabIndex", null);
1045
- tslib_1.__decorate([
1046
- Input(),
1047
- tslib_1.__metadata("design:type", Boolean)
1048
- ], AutoCompleteComponent.prototype, "filterable", void 0);
1049
- tslib_1.__decorate([
1050
- Input(),
1051
- tslib_1.__metadata("design:type", Object),
1052
- tslib_1.__metadata("design:paramtypes", [Object])
1053
- ], AutoCompleteComponent.prototype, "virtual", null);
1054
- tslib_1.__decorate([
1055
- Input(),
1056
- tslib_1.__metadata("design:type", String),
1057
- tslib_1.__metadata("design:paramtypes", [String])
1058
- ], AutoCompleteComponent.prototype, "size", null);
1059
- tslib_1.__decorate([
1060
- Input(),
1061
- tslib_1.__metadata("design:type", String),
1062
- tslib_1.__metadata("design:paramtypes", [String])
1063
- ], AutoCompleteComponent.prototype, "rounded", null);
1064
- tslib_1.__decorate([
1065
- Input(),
1066
- tslib_1.__metadata("design:type", String),
1067
- tslib_1.__metadata("design:paramtypes", [String])
1068
- ], AutoCompleteComponent.prototype, "fillMode", null);
1069
- tslib_1.__decorate([
1070
- Output(),
1071
- tslib_1.__metadata("design:type", EventEmitter)
1072
- ], AutoCompleteComponent.prototype, "valueChange", void 0);
1073
- tslib_1.__decorate([
1074
- Output(),
1075
- tslib_1.__metadata("design:type", EventEmitter)
1076
- ], AutoCompleteComponent.prototype, "filterChange", void 0);
1077
- tslib_1.__decorate([
1078
- Output(),
1079
- tslib_1.__metadata("design:type", EventEmitter)
1080
- ], AutoCompleteComponent.prototype, "open", void 0);
1081
- tslib_1.__decorate([
1082
- Output(),
1083
- tslib_1.__metadata("design:type", EventEmitter)
1084
- ], AutoCompleteComponent.prototype, "opened", void 0);
1085
- tslib_1.__decorate([
1086
- Output(),
1087
- tslib_1.__metadata("design:type", EventEmitter)
1088
- ], AutoCompleteComponent.prototype, "close", void 0);
1089
- tslib_1.__decorate([
1090
- Output(),
1091
- tslib_1.__metadata("design:type", EventEmitter)
1092
- ], AutoCompleteComponent.prototype, "closed", void 0);
1093
- tslib_1.__decorate([
1094
- Output('focus'),
1095
- tslib_1.__metadata("design:type", EventEmitter)
1096
- ], AutoCompleteComponent.prototype, "onFocus", void 0);
1097
- tslib_1.__decorate([
1098
- Output('blur'),
1099
- tslib_1.__metadata("design:type", EventEmitter)
1100
- ], AutoCompleteComponent.prototype, "onBlur", void 0);
1101
- tslib_1.__decorate([
1102
- ContentChild(ItemTemplateDirective, { static: false }),
1103
- tslib_1.__metadata("design:type", ItemTemplateDirective)
1104
- ], AutoCompleteComponent.prototype, "template", void 0);
1105
- tslib_1.__decorate([
1106
- ContentChild(HeaderTemplateDirective, { static: false }),
1107
- tslib_1.__metadata("design:type", HeaderTemplateDirective)
1108
- ], AutoCompleteComponent.prototype, "headerTemplate", void 0);
1109
- tslib_1.__decorate([
1110
- ContentChild(FooterTemplateDirective, { static: false }),
1111
- tslib_1.__metadata("design:type", FooterTemplateDirective)
1112
- ], AutoCompleteComponent.prototype, "footerTemplate", void 0);
1113
- tslib_1.__decorate([
1114
- ContentChild(NoDataTemplateDirective, { static: false }),
1115
- tslib_1.__metadata("design:type", NoDataTemplateDirective)
1116
- ], AutoCompleteComponent.prototype, "noDataTemplate", void 0);
1117
- tslib_1.__decorate([
1118
- ContentChild(GroupTemplateDirective, { static: false }),
1119
- tslib_1.__metadata("design:type", GroupTemplateDirective)
1120
- ], AutoCompleteComponent.prototype, "groupTemplate", void 0);
1121
- tslib_1.__decorate([
1122
- ContentChild(FixedGroupTemplateDirective, { static: false }),
1123
- tslib_1.__metadata("design:type", FixedGroupTemplateDirective)
1124
- ], AutoCompleteComponent.prototype, "fixedGroupTemplate", void 0);
1125
- tslib_1.__decorate([
1126
- ViewChild('container', { read: ViewContainerRef, static: true }),
1127
- tslib_1.__metadata("design:type", ViewContainerRef)
1128
- ], AutoCompleteComponent.prototype, "container", void 0);
1129
- tslib_1.__decorate([
1130
- ViewChild('popupTemplate', { static: true }),
1131
- tslib_1.__metadata("design:type", TemplateRef)
1132
- ], AutoCompleteComponent.prototype, "popupTemplate", void 0);
1133
- tslib_1.__decorate([
1134
- ViewChild(SearchBarComponent, { static: true }),
1135
- tslib_1.__metadata("design:type", SearchBarComponent)
1136
- ], AutoCompleteComponent.prototype, "searchbar", void 0);
1137
- tslib_1.__decorate([
1138
- ViewChild('optionsList', { static: false }),
1139
- tslib_1.__metadata("design:type", ListComponent)
1140
- ], AutoCompleteComponent.prototype, "optionsList", void 0);
1141
- tslib_1.__decorate([
1142
- HostBinding('class.k-autocomplete'),
1143
- HostBinding('class.k-input'),
1144
- tslib_1.__metadata("design:type", Boolean)
1145
- ], AutoCompleteComponent.prototype, "widgetClasses", void 0);
1146
- tslib_1.__decorate([
1147
- HostBinding('class.k-disabled'),
1148
- tslib_1.__metadata("design:type", Boolean),
1149
- tslib_1.__metadata("design:paramtypes", [])
1150
- ], AutoCompleteComponent.prototype, "isDisabled", null);
1151
- tslib_1.__decorate([
1152
- HostBinding('class.k-loading'),
1153
- tslib_1.__metadata("design:type", Boolean),
1154
- tslib_1.__metadata("design:paramtypes", [])
1155
- ], AutoCompleteComponent.prototype, "isLoading", null);
1156
- tslib_1.__decorate([
1157
- HostBinding('attr.dir'),
1158
- tslib_1.__metadata("design:type", Object),
1159
- tslib_1.__metadata("design:paramtypes", [])
1160
- ], AutoCompleteComponent.prototype, "dir", null);
1161
- AutoCompleteComponent = AutoCompleteComponent_1 = tslib_1.__decorate([
1162
- Component({
1163
- exportAs: 'kendoAutoComplete',
1164
- providers: [
1165
- AUTOCOMPLETE_VALUE_ACCESSOR,
1166
- DataService,
1167
- SelectionService,
1168
- NavigationService,
1169
- DisabledItemsService,
1170
- LocalizationService,
1171
- {
1172
- provide: L10N_PREFIX,
1173
- useValue: 'kendo.autocomplete'
1174
- },
1175
- {
1176
- provide: FilterableComponent,
1177
- useExisting: forwardRef(function () { return AutoCompleteComponent_1; })
1178
- },
1179
- {
1180
- provide: KendoInput,
1181
- useExisting: forwardRef(function () { return AutoCompleteComponent_1; })
1182
- }
1183
- ],
1184
- selector: 'kendo-autocomplete',
1185
- template: "\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText=\"kendo.autocomplete.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.autocomplete.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"suggestion\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n ></kendo-searchbar>\n <span\n *ngIf=\"!loading && !readonly && (clearButton && text?.length)\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n [attr.title]=\"messageFor('clearTitle')\"\n role=\"button\"\n tabindex=\"-1\"\n (click)=\"clearValue($event)\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n <span *ngIf=\"loading\" class=\"k-icon k-i-loading\"></span>\n <ng-template #popupTemplate>\n <!--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]=\"valueField\"\n [valueField]=\"valueField\"\n [template]=\"template\"\n [groupTemplate]=\"groupTemplate\"\n [fixedGroupTemplate]=\"fixedGroupTemplate\"\n [height]=\"listHeight\"\n [show]=\"isOpen\"\n [virtual]=\"virtual\"\n (pageChange)=\"pageChange($event)\"\n >\n </kendo-list>\n <!--no-data template-->\n <div class=\"k-no-data\" *ngIf=\"data.length === 0\">\n <ng-template [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ messageFor('noDataText') }}</div>\n </ng-template>\n </div>\n <!--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 "
1186
- }),
1187
- tslib_1.__param(10, Optional()), tslib_1.__param(10, Inject(TOUCH_ENABLED)),
1188
- tslib_1.__metadata("design:paramtypes", [LocalizationService,
1189
- DataService,
1190
- PopupService,
1191
- SelectionService,
1192
- NavigationService,
1193
- DisabledItemsService,
1194
- NgZone,
1195
- ChangeDetectorRef,
1196
- Renderer2,
1197
- ElementRef, Boolean])
1198
- ], AutoCompleteComponent);
1199
- return AutoCompleteComponent;
1200
- }());
1201
- export { AutoCompleteComponent };