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

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