@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,29 +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
- /**
6
- * @hidden
7
- */
8
- var PreventableEvent = /** @class */ (function () {
9
- function PreventableEvent() {
10
- this.prevented = false;
11
- }
12
- /**
13
- * Prevents the default action for a specified event.
14
- * In this way, the source component suppresses the built-in behavior that follows the event.
15
- */
16
- PreventableEvent.prototype.preventDefault = function () {
17
- this.prevented = true;
18
- };
19
- /**
20
- * If the event is prevented by any of its subscribers, returns `true`.
21
- *
22
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
23
- */
24
- PreventableEvent.prototype.isDefaultPrevented = function () {
25
- return this.prevented;
26
- };
27
- return PreventableEvent;
28
- }());
29
- export { PreventableEvent };
@@ -1,24 +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
- import * as tslib_1 from "tslib";
6
- import { PreventableEvent } from './preventable-event';
7
- /**
8
- * Arguments for the `removeTag` event. The `removeTag` event fires when a tag is about
9
- * to the removed. If you cancel the event, the removal is prevented.
10
- */
11
- var RemoveTagEvent = /** @class */ (function (_super) {
12
- tslib_1.__extends(RemoveTagEvent, _super);
13
- /**
14
- * Constructs the event arguments for the `remove` event.
15
- * @param dataItem - The data item or an array of data items that will be removed.
16
- */
17
- function RemoveTagEvent(dataItem) {
18
- var _this = _super.call(this) || this;
19
- _this.dataItem = dataItem;
20
- return _this;
21
- }
22
- return RemoveTagEvent;
23
- }(PreventableEvent));
24
- export { RemoveTagEvent };
@@ -1,25 +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
- import * as tslib_1 from "tslib";
6
- /**
7
- * @hidden
8
- */
9
- var DEFAULTS = {
10
- pageSize: 50,
11
- itemHeight: 28
12
- };
13
- /**
14
- * @hidden
15
- */
16
- export var normalizeVirtualizationSettings = function (settings, defaultOverrides) {
17
- var defaults = Object.assign({}, DEFAULTS, defaultOverrides);
18
- if (settings === true) {
19
- return defaults;
20
- }
21
- if (!settings) {
22
- return null;
23
- }
24
- return tslib_1.__assign({ pageSize: DEFAULTS.pageSize }, settings);
25
- };
@@ -1,147 +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
- import * as tslib_1 from "tslib";
6
- import { Injectable, EventEmitter } from '@angular/core';
7
- import { isPresent } from '../util';
8
- import { Keys } from '@progress/kendo-angular-common';
9
- import { NavigationAction } from './navigation-action';
10
- import { DisabledItemsService } from '../disabled-items/disabled-items.service';
11
- import { SelectionService } from '../selection/selection.service';
12
- var MIN_INDEX = 0;
13
- /**
14
- * @hidden
15
- */
16
- var NavigationEvent = /** @class */ (function () {
17
- /**
18
- * The index of the item to which the user navigated.
19
- */
20
- function NavigationEvent(index, originalEvent) {
21
- this.index = index;
22
- this.originalEvent = originalEvent;
23
- }
24
- return NavigationEvent;
25
- }());
26
- export { NavigationEvent };
27
- /**
28
- * @hidden
29
- */
30
- var NavigationService = /** @class */ (function () {
31
- function NavigationService(disabledItemsService, selectionService) {
32
- this.disabledItemsService = disabledItemsService;
33
- this.selectionService = selectionService;
34
- this.open = new EventEmitter();
35
- this.close = new EventEmitter();
36
- this.enter = new EventEmitter();
37
- this.tab = new EventEmitter();
38
- this.esc = new EventEmitter();
39
- this.up = new EventEmitter();
40
- this.right = new EventEmitter();
41
- this.down = new EventEmitter();
42
- this.left = new EventEmitter();
43
- this.delete = new EventEmitter();
44
- this.backspace = new EventEmitter();
45
- this.home = new EventEmitter();
46
- this.end = new EventEmitter();
47
- }
48
- NavigationService.prototype.process = function (args) {
49
- var keyCode = args.originalEvent.keyCode;
50
- var altKey = args.originalEvent.altKey;
51
- var index;
52
- var action = NavigationAction.Undefined;
53
- if (altKey && keyCode === Keys.ArrowDown) {
54
- action = NavigationAction.Open;
55
- }
56
- else if (altKey && keyCode === Keys.ArrowUp) {
57
- action = NavigationAction.Close;
58
- }
59
- else if (keyCode === Keys.Enter) {
60
- action = NavigationAction.Enter;
61
- }
62
- else if (keyCode === Keys.Escape) {
63
- action = NavigationAction.Esc;
64
- }
65
- else if (keyCode === Keys.Tab) {
66
- action = NavigationAction.Tab;
67
- }
68
- else if (keyCode === Keys.ArrowUp) {
69
- index = this.next({ current: args.current, start: args.min, end: args.max, step: -1 });
70
- action = NavigationAction.Up;
71
- }
72
- else if (keyCode === Keys.ArrowLeft) {
73
- index = this.next({ current: args.current, start: args.min, end: args.max, step: -1 });
74
- action = NavigationAction.Left;
75
- }
76
- else if (keyCode === Keys.ArrowDown) {
77
- index = this.next({ current: args.current, start: args.min, end: args.max, step: 1 });
78
- action = NavigationAction.Down;
79
- }
80
- else if (keyCode === Keys.ArrowRight) {
81
- index = this.next({ current: args.current, start: args.min, end: args.max, step: 1 });
82
- action = NavigationAction.Right;
83
- }
84
- else if (keyCode === Keys.Home) {
85
- index = this.isDisabled(MIN_INDEX) ? args.current : MIN_INDEX;
86
- action = NavigationAction.Home;
87
- }
88
- else if (keyCode === Keys.End) {
89
- index = this.isDisabled(args.max) ? args.current : args.max;
90
- action = NavigationAction.End;
91
- }
92
- else if (keyCode === Keys.Delete) {
93
- action = NavigationAction.Delete;
94
- }
95
- else if (keyCode === Keys.Backspace) {
96
- action = NavigationAction.Backspace;
97
- }
98
- var eventData = new NavigationEvent(index, args.originalEvent);
99
- if (action !== NavigationAction.Undefined) {
100
- this[NavigationAction[action].toLowerCase()].emit(eventData);
101
- }
102
- return action;
103
- };
104
- NavigationService.prototype.next = function (args) {
105
- var current = args.current, start = args.start, end = args.end, step = args.step;
106
- var nextIndex = !isPresent(current) ? start : this.clampIndex(current + step, start, end);
107
- var firstFocusableIndex = this.firstFocusableIndex(nextIndex, start, end, step);
108
- if (isPresent(firstFocusableIndex)) {
109
- return firstFocusableIndex;
110
- }
111
- if (this.selectionService.isSelected(current) && current >= start) {
112
- return current;
113
- }
114
- var inversedStep = -1 * step;
115
- return this.firstFocusableIndex(nextIndex, start, end, inversedStep);
116
- };
117
- NavigationService.prototype.clampIndex = function (index, min, max) {
118
- if (!isPresent(index) || index < min) {
119
- return min;
120
- }
121
- if (index > max) {
122
- return max;
123
- }
124
- return index;
125
- };
126
- NavigationService.prototype.firstFocusableIndex = function (startIndex, min, max, step) {
127
- while (min <= startIndex && startIndex <= max) {
128
- if (!this.isDisabled(startIndex)) {
129
- return startIndex;
130
- }
131
- startIndex += step;
132
- }
133
- return undefined;
134
- };
135
- NavigationService.prototype.isDisabled = function (index) {
136
- if (this.disabledItemsService) {
137
- return this.disabledItemsService.isIndexDisabled(index);
138
- }
139
- };
140
- NavigationService = tslib_1.__decorate([
141
- Injectable(),
142
- tslib_1.__metadata("design:paramtypes", [DisabledItemsService,
143
- SelectionService])
144
- ], NavigationService);
145
- return NavigationService;
146
- }());
147
- export { NavigationService };
@@ -1,253 +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, Input, Output, EventEmitter, ViewChild, ElementRef, HostBinding } from '@angular/core';
8
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
9
- import { Keys } from '@progress/kendo-angular-common';
10
- import { combineStr } from './util';
11
- import { LocalizationService } from '@progress/kendo-angular-l10n';
12
- /**
13
- * @hidden
14
- */
15
- var SearchBarComponent = /** @class */ (function () {
16
- function SearchBarComponent(localization, renderer) {
17
- this.localization = localization;
18
- this.valueChange = new EventEmitter();
19
- this.onBlur = new EventEmitter();
20
- this.onFocus = new EventEmitter();
21
- this.onClick = new EventEmitter();
22
- this.onNavigate = new EventEmitter();
23
- this.searchBarClass = true;
24
- this._userInput = "";
25
- this._previousValue = "";
26
- this._placeholder = "";
27
- this.direction = localization.rtl ? 'rtl' : 'ltr';
28
- this.renderer = renderer;
29
- }
30
- Object.defineProperty(SearchBarComponent.prototype, "userInput", {
31
- get: function () {
32
- return this._userInput;
33
- },
34
- set: function (userInput) {
35
- this._userInput = userInput || "";
36
- },
37
- enumerable: true,
38
- configurable: true
39
- });
40
- Object.defineProperty(SearchBarComponent.prototype, "value", {
41
- get: function () {
42
- return this.input.nativeElement.value;
43
- },
44
- enumerable: true,
45
- configurable: true
46
- });
47
- Object.defineProperty(SearchBarComponent.prototype, "placeholder", {
48
- get: function () {
49
- return this._placeholder;
50
- },
51
- set: function (text) {
52
- this._placeholder = text || '';
53
- this.setInputSize();
54
- },
55
- enumerable: true,
56
- configurable: true
57
- });
58
- Object.defineProperty(SearchBarComponent.prototype, "ariaExpanded", {
59
- get: function () {
60
- return this.role === 'combobox' ? this.popupOpen : null;
61
- },
62
- enumerable: true,
63
- configurable: true
64
- });
65
- SearchBarComponent.prototype.ngOnInit = function () {
66
- var _this = this;
67
- this.localizationChangeSubscription = this.localization
68
- .changes.subscribe(function (_a) {
69
- var rtl = _a.rtl;
70
- return _this.direction = rtl ? 'rtl' : 'ltr';
71
- });
72
- };
73
- SearchBarComponent.prototype.ngOnChanges = function (changes) {
74
- var previousUserInput;
75
- if (this.input && (changes.userInput || changes.suggestedText)) {
76
- if (changes.userInput && changes.userInput.previousValue) {
77
- if (this._previousValue === changes.userInput.previousValue) {
78
- previousUserInput = this._previousValue;
79
- }
80
- else {
81
- previousUserInput = changes.userInput.currentValue || "";
82
- }
83
- }
84
- else {
85
- previousUserInput = this._previousValue;
86
- }
87
- var caretIndex = this.input.nativeElement.selectionStart;
88
- var caretAtEnd = previousUserInput.length === caretIndex;
89
- this.writeInputValue(this.suggestedText ? combineStr(this.userInput, this.suggestedText) : this.userInput);
90
- if (this.suggestedText) {
91
- this.setInputSelection(this.userInput.length, this.suggestedText.length);
92
- }
93
- else if (caretAtEnd) {
94
- this.setInputSelection(this.userInput.length, this.userInput.length);
95
- }
96
- else {
97
- this.setInputSelection(caretIndex, caretIndex);
98
- }
99
- this._previousValue = this.userInput;
100
- }
101
- };
102
- SearchBarComponent.prototype.ngOnDestroy = function () {
103
- if (this.localizationChangeSubscription) {
104
- this.localizationChangeSubscription.unsubscribe();
105
- }
106
- };
107
- SearchBarComponent.prototype.writeInputValue = function (text) {
108
- if (isDocumentAvailable()) {
109
- this.renderer.setProperty(this.input.nativeElement, 'value', text);
110
- }
111
- };
112
- SearchBarComponent.prototype.setInputSelection = function (start, end) {
113
- if (isDocumentAvailable() && this.input.nativeElement === document.activeElement) {
114
- try {
115
- this.input.nativeElement.setSelectionRange(start, end);
116
- }
117
- catch (e) {
118
- //Make sure that the element is in the DOM before you invoke its methods
119
- }
120
- }
121
- };
122
- SearchBarComponent.prototype.handleInput = function (event) {
123
- var value = event.target.value;
124
- if (value !== this.userInput) {
125
- this._previousValue = value;
126
- this.valueChange.emit(value);
127
- }
128
- };
129
- SearchBarComponent.prototype.handleFocus = function (event) {
130
- this.onFocus.emit(event);
131
- };
132
- SearchBarComponent.prototype.handleBlur = function (event) {
133
- this.onBlur.emit(event);
134
- };
135
- SearchBarComponent.prototype.handleKeydown = function (event) {
136
- var keyCode = event.keyCode;
137
- var keys = [Keys.ArrowUp, Keys.ArrowDown, Keys.ArrowLeft, Keys.ArrowRight, Keys.Enter,
138
- Keys.Escape, Keys.Delete, Keys.Backspace, Keys.Home, Keys.End];
139
- if (keys.indexOf(keyCode) > -1) {
140
- this.onNavigate.emit(event);
141
- }
142
- };
143
- SearchBarComponent.prototype.focus = function () {
144
- if (isDocumentAvailable()) {
145
- this.input.nativeElement.focus();
146
- }
147
- };
148
- SearchBarComponent.prototype.blur = function () {
149
- if (isDocumentAvailable()) {
150
- this.input.nativeElement.blur();
151
- }
152
- };
153
- SearchBarComponent.prototype.setInputSize = function () {
154
- var lengthOf = function (x) { return x ? x.length : 0; };
155
- var input = this.input.nativeElement;
156
- var placeholderLength = lengthOf(this.placeholder);
157
- var textLength = lengthOf(this.value);
158
- var size = Math.max(placeholderLength, textLength, 1);
159
- this.renderer.setAttribute(input, 'size', size.toString());
160
- };
161
- tslib_1.__decorate([
162
- Input(),
163
- tslib_1.__metadata("design:type", String)
164
- ], SearchBarComponent.prototype, "id", void 0);
165
- tslib_1.__decorate([
166
- Input(),
167
- tslib_1.__metadata("design:type", String)
168
- ], SearchBarComponent.prototype, "listId", void 0);
169
- tslib_1.__decorate([
170
- Input(),
171
- tslib_1.__metadata("design:type", String)
172
- ], SearchBarComponent.prototype, "tagListId", void 0);
173
- tslib_1.__decorate([
174
- Input(),
175
- tslib_1.__metadata("design:type", String)
176
- ], SearchBarComponent.prototype, "activeDescendant", void 0);
177
- tslib_1.__decorate([
178
- Input(),
179
- tslib_1.__metadata("design:type", String)
180
- ], SearchBarComponent.prototype, "noDataLabel", void 0);
181
- tslib_1.__decorate([
182
- Input(),
183
- tslib_1.__metadata("design:type", Boolean)
184
- ], SearchBarComponent.prototype, "disabled", void 0);
185
- tslib_1.__decorate([
186
- Input(),
187
- tslib_1.__metadata("design:type", Boolean)
188
- ], SearchBarComponent.prototype, "readonly", void 0);
189
- tslib_1.__decorate([
190
- Input(),
191
- tslib_1.__metadata("design:type", Number)
192
- ], SearchBarComponent.prototype, "tabIndex", void 0);
193
- tslib_1.__decorate([
194
- Input(),
195
- tslib_1.__metadata("design:type", Boolean)
196
- ], SearchBarComponent.prototype, "popupOpen", void 0);
197
- tslib_1.__decorate([
198
- Input(),
199
- tslib_1.__metadata("design:type", String)
200
- ], SearchBarComponent.prototype, "role", void 0);
201
- tslib_1.__decorate([
202
- Input(),
203
- tslib_1.__metadata("design:type", String),
204
- tslib_1.__metadata("design:paramtypes", [String])
205
- ], SearchBarComponent.prototype, "userInput", null);
206
- tslib_1.__decorate([
207
- Input(),
208
- tslib_1.__metadata("design:type", String)
209
- ], SearchBarComponent.prototype, "suggestedText", void 0);
210
- tslib_1.__decorate([
211
- Output(),
212
- tslib_1.__metadata("design:type", EventEmitter)
213
- ], SearchBarComponent.prototype, "valueChange", void 0);
214
- tslib_1.__decorate([
215
- Output(),
216
- tslib_1.__metadata("design:type", EventEmitter)
217
- ], SearchBarComponent.prototype, "onBlur", void 0);
218
- tslib_1.__decorate([
219
- Output(),
220
- tslib_1.__metadata("design:type", EventEmitter)
221
- ], SearchBarComponent.prototype, "onFocus", void 0);
222
- tslib_1.__decorate([
223
- Output(),
224
- tslib_1.__metadata("design:type", EventEmitter)
225
- ], SearchBarComponent.prototype, "onClick", void 0);
226
- tslib_1.__decorate([
227
- Output(),
228
- tslib_1.__metadata("design:type", EventEmitter)
229
- ], SearchBarComponent.prototype, "onNavigate", void 0);
230
- tslib_1.__decorate([
231
- ViewChild('input', { static: true }),
232
- tslib_1.__metadata("design:type", ElementRef)
233
- ], SearchBarComponent.prototype, "input", void 0);
234
- tslib_1.__decorate([
235
- HostBinding('class.k-searchbar'),
236
- tslib_1.__metadata("design:type", Boolean)
237
- ], SearchBarComponent.prototype, "searchBarClass", void 0);
238
- tslib_1.__decorate([
239
- Input(),
240
- tslib_1.__metadata("design:type", String),
241
- tslib_1.__metadata("design:paramtypes", [String])
242
- ], SearchBarComponent.prototype, "placeholder", null);
243
- SearchBarComponent = tslib_1.__decorate([
244
- Component({
245
- selector: 'kendo-searchbar',
246
- template: "\n <input #input\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [class]=\"'k-input-inner'\"\n (input)=\"handleInput($event)\"\n (keydown)=\"handleKeydown($event)\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [attr.tabIndex]=\"tabIndex\"\n [attr.dir]=\"direction\"\n [attr.role]=\"role\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-readonly]=\"readonly\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-owns]=\"listId\"\n [attr.aria-describedby]=\"tagListId\"\n [attr.aria-activedescendant]=\"activeDescendant\"\n [attr.aria-label]=\"noDataLabel\"\n />\n "
247
- }),
248
- tslib_1.__metadata("design:paramtypes", [LocalizationService,
249
- Renderer2])
250
- ], SearchBarComponent);
251
- return SearchBarComponent;
252
- }());
253
- export { SearchBarComponent };
@@ -1,93 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Input, HostBinding, HostListener } from '@angular/core';
7
- import { SelectionService } from './selection.service';
8
- /**
9
- * @hidden
10
- */
11
- var SelectableDirective = /** @class */ (function () {
12
- function SelectableDirective(selectionService) {
13
- this.checkboxes = { enabled: false };
14
- // @HostBinding('attr.offset-index')
15
- // @Input() public offsetIndex: number;
16
- this.multipleSelection = false;
17
- this.selectionService = selectionService;
18
- }
19
- Object.defineProperty(SelectableDirective.prototype, "focusedClassName", {
20
- get: function () {
21
- return this.selectionService.isFocused(this.index);
22
- },
23
- enumerable: true,
24
- configurable: true
25
- });
26
- Object.defineProperty(SelectableDirective.prototype, "selectedClassName", {
27
- get: function () {
28
- return !this.checkboxes.enabled && this.selectionService.isSelected(this.index);
29
- },
30
- enumerable: true,
31
- configurable: true
32
- });
33
- SelectableDirective.prototype.onClick = function (event) {
34
- event.stopPropagation();
35
- if (this.checkboxes.enabled && !this.checkboxes.checkOnClick) {
36
- return;
37
- }
38
- if (this.multipleSelection) {
39
- if (this.selectionService.isSelected(this.index)) {
40
- this.selectionService.unselect(this.index);
41
- }
42
- else {
43
- this.selectionService.add(this.index);
44
- }
45
- }
46
- else {
47
- this.selectionService.change(this.index);
48
- }
49
- };
50
- tslib_1.__decorate([
51
- HostBinding('attr.index'),
52
- Input(),
53
- tslib_1.__metadata("design:type", Number)
54
- ], SelectableDirective.prototype, "index", void 0);
55
- tslib_1.__decorate([
56
- Input(),
57
- tslib_1.__metadata("design:type", Object)
58
- ], SelectableDirective.prototype, "checkboxes", void 0);
59
- tslib_1.__decorate([
60
- HostBinding('style.height.px'),
61
- HostBinding('style.minHeight.px'),
62
- Input(),
63
- tslib_1.__metadata("design:type", Number)
64
- ], SelectableDirective.prototype, "height", void 0);
65
- tslib_1.__decorate([
66
- Input(),
67
- tslib_1.__metadata("design:type", Boolean)
68
- ], SelectableDirective.prototype, "multipleSelection", void 0);
69
- tslib_1.__decorate([
70
- HostBinding('class.k-focus'),
71
- tslib_1.__metadata("design:type", Boolean),
72
- tslib_1.__metadata("design:paramtypes", [])
73
- ], SelectableDirective.prototype, "focusedClassName", null);
74
- tslib_1.__decorate([
75
- HostBinding('class.k-selected'),
76
- tslib_1.__metadata("design:type", Boolean),
77
- tslib_1.__metadata("design:paramtypes", [])
78
- ], SelectableDirective.prototype, "selectedClassName", null);
79
- tslib_1.__decorate([
80
- HostListener('click', ['$event']),
81
- tslib_1.__metadata("design:type", Function),
82
- tslib_1.__metadata("design:paramtypes", [Object]),
83
- tslib_1.__metadata("design:returntype", void 0)
84
- ], SelectableDirective.prototype, "onClick", null);
85
- SelectableDirective = tslib_1.__decorate([
86
- Directive({
87
- selector: '[kendoDropDownsSelectable]'
88
- }),
89
- tslib_1.__metadata("design:paramtypes", [SelectionService])
90
- ], SelectableDirective);
91
- return SelectableDirective;
92
- }());
93
- export { SelectableDirective };
@@ -1,107 +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
- import * as tslib_1 from "tslib";
6
- import { Injectable, EventEmitter } from '@angular/core';
7
- import { isPresent } from '../util';
8
- /**
9
- * @hidden
10
- */
11
- var SelectionService = /** @class */ (function () {
12
- function SelectionService() {
13
- this.onSelect = new EventEmitter();
14
- this.onChange = new EventEmitter();
15
- this.onFocus = new EventEmitter();
16
- this.total = 0;
17
- this.selectedIndices = [];
18
- }
19
- SelectionService.prototype.getTotal = function () {
20
- return this.total;
21
- };
22
- SelectionService.prototype.isSelected = function (index) {
23
- return isPresent(this.selectedIndices.find(function (current) { return current === index; }));
24
- };
25
- SelectionService.prototype.isFocused = function (index) {
26
- return index === this.focused;
27
- };
28
- SelectionService.prototype.focus = function (index) {
29
- if (this.isFocused(index)) {
30
- return;
31
- }
32
- this.focused = index;
33
- this.onFocus.emit(index);
34
- };
35
- SelectionService.prototype.select = function (index) {
36
- if (this.isSelected(index)) {
37
- return;
38
- }
39
- this.selectedIndices = [index];
40
- this.focused = index;
41
- this.onSelect.emit({
42
- indices: [index],
43
- newSelection: isPresent(index)
44
- });
45
- };
46
- SelectionService.prototype.add = function (index) {
47
- if (this.isSelected(index)) {
48
- return;
49
- }
50
- this.selectedIndices.push(index);
51
- this.focused = index;
52
- this.onChange.emit({
53
- added: index,
54
- indices: this.selectedIndices.slice()
55
- });
56
- };
57
- SelectionService.prototype.unselect = function (index) {
58
- if (!this.isSelected(index)) {
59
- return;
60
- }
61
- var position = this.selectedIndices.indexOf(index);
62
- this.selectedIndices.splice(position, 1);
63
- this.focused = index;
64
- this.onChange.emit({
65
- indices: this.selectedIndices.slice(),
66
- removed: index
67
- });
68
- };
69
- SelectionService.prototype.change = function (index) {
70
- var newSelection = isPresent(index) && !this.isSelected(index);
71
- this.selectedIndices = [index];
72
- this.focused = index;
73
- this.onChange.emit({
74
- indices: [index],
75
- newSelection: newSelection
76
- });
77
- };
78
- SelectionService.prototype.resetSelection = function (index) {
79
- this.selectedIndices = index instanceof Array ? index : [index];
80
- this.focused = this.selectedIndices[this.selectedIndices.length - 1];
81
- };
82
- Object.defineProperty(SelectionService.prototype, "selected", {
83
- get: function () {
84
- return this.selectedIndices.slice();
85
- },
86
- enumerable: true,
87
- configurable: true
88
- });
89
- Object.defineProperty(SelectionService.prototype, "focused", {
90
- get: function () {
91
- return this.focusedIndex;
92
- },
93
- set: function (index) {
94
- if (this.focusedIndex !== index) {
95
- this.focusedIndex = index;
96
- this.onFocus.emit(index);
97
- }
98
- },
99
- enumerable: true,
100
- configurable: true
101
- });
102
- SelectionService = tslib_1.__decorate([
103
- Injectable()
104
- ], SelectionService);
105
- return SelectionService;
106
- }());
107
- export { SelectionService };