@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,503 +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 { Component, Input, Output, EventEmitter, ViewChildren, QueryList, ElementRef, ViewChild, ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
7
- import { isChanged } from '@progress/kendo-angular-common';
8
- import { ListItemDirective } from './list-item.directive';
9
- import { ItemTemplateDirective } from './templates/item-template.directive';
10
- import { GroupTemplateDirective } from './templates/group-template.directive';
11
- import { FixedGroupTemplateDirective } from './templates/fixed-group-template.directive';
12
- import { isPresent, getter, closest, getSizeClass, getRoundedClass } from './util';
13
- import { SelectionService } from './selection/selection.service';
14
- import { fromEvent, merge } from 'rxjs';
15
- import { map, tap, auditTime, switchMap, take } from 'rxjs/operators';
16
- import { DisabledItemsService } from './disabled-items/disabled-items.service';
17
- import { DataService } from './data.service';
18
- /**
19
- * @hidden
20
- */
21
- var ListComponent = /** @class */ (function () {
22
- /* tslint:disable:member-ordering */
23
- function ListComponent(dataService, wrapper, selectionService, disabledItemsService, cdr, zone, renderer) {
24
- var _this = this;
25
- this.dataService = dataService;
26
- this.wrapper = wrapper;
27
- this.selectionService = selectionService;
28
- this.disabledItemsService = disabledItemsService;
29
- this.cdr = cdr;
30
- this.zone = zone;
31
- this.renderer = renderer;
32
- this.selected = [];
33
- this.focused = -1;
34
- this.show = true;
35
- this.multipleSelection = false;
36
- this.type = 'list';
37
- this.checkboxes = { enabled: false };
38
- this.rounded = 'medium';
39
- this.onClick = new EventEmitter();
40
- this.pageChange = new EventEmitter();
41
- this.listResize = new EventEmitter();
42
- this.startFrom = 0;
43
- this.lastLoaded = 0;
44
- this.lastScrollTop = 0;
45
- this.scrollToFocused = false;
46
- this._size = 'medium';
47
- this.selectSubscription = merge(this.selectionService.onSelect.pipe(map(function (args) { return args.indices[0]; })), this.selectionService.onFocus)
48
- .pipe(
49
- // handle only the very last onSelect/onFocus emission
50
- switchMap(function (event) { return _this.zone.onStable.pipe(take(1), map(function () { return event; })); }))
51
- .subscribe(this.scrollToItem.bind(this));
52
- this.prepareClasses();
53
- }
54
- Object.defineProperty(ListComponent.prototype, "data", {
55
- get: function () {
56
- return this._data;
57
- },
58
- set: function (data) {
59
- this._data = data[0] && data[0].header ? data.slice(0) : data;
60
- },
61
- enumerable: true,
62
- configurable: true
63
- });
64
- Object.defineProperty(ListComponent.prototype, "size", {
65
- get: function () {
66
- return this._size;
67
- },
68
- set: function (size) {
69
- if (this.type === 'list') {
70
- this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('list', this.size));
71
- if (size) {
72
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('list', size));
73
- }
74
- this._size = size;
75
- }
76
- },
77
- enumerable: true,
78
- configurable: true
79
- });
80
- Object.defineProperty(ListComponent.prototype, "pageSize", {
81
- get: function () {
82
- if (this.virtual.pageSize) {
83
- return this.virtual.pageSize;
84
- }
85
- var size = Math.round(this.height / this.virtual.itemHeight);
86
- return size;
87
- },
88
- enumerable: true,
89
- configurable: true
90
- });
91
- Object.defineProperty(ListComponent.prototype, "scrollHeight", {
92
- get: function () {
93
- return (this.dataService.grouped ? this.virtual.total - 1 : this.virtual.total) * this.virtual.itemHeight;
94
- },
95
- enumerable: true,
96
- configurable: true
97
- });
98
- Object.defineProperty(ListComponent.prototype, "overflowY", {
99
- get: function () {
100
- if (isPresent(this.virtual)) {
101
- var overflow = this.hasVirtualScrollbar() ? 'scroll' : 'hidden';
102
- return overflow;
103
- }
104
- },
105
- enumerable: true,
106
- configurable: true
107
- });
108
- Object.defineProperty(ListComponent.prototype, "checkboxClasses", {
109
- /**
110
- * @hidden
111
- */
112
- get: function () {
113
- return (this.size ? getSizeClass('checkbox', this.size) : '') + " " + (this.rounded ? getRoundedClass(this.rounded) : '');
114
- },
115
- enumerable: true,
116
- configurable: true
117
- });
118
- ListComponent.prototype.ngOnChanges = function (changes) {
119
- if (isChanged('data', changes, false)) {
120
- if (this.lastLoaded <= 0) {
121
- this.lastLoaded = this.data.length - 1;
122
- this.scrollToFocused = !changes.data.isFirstChange();
123
- }
124
- this.setOverflow();
125
- }
126
- if (isChanged('virtual', changes, false)) {
127
- this.setOverflow();
128
- }
129
- if (isChanged('type', changes, false)) {
130
- this.prepareClasses();
131
- }
132
- };
133
- ListComponent.prototype.ngAfterViewInit = function () {
134
- var _this = this;
135
- this.setComponentClasses();
136
- this.zone.runOutsideAngular(function () {
137
- _this.scrollSubscription = fromEvent(_this.content.nativeElement, "scroll").pipe(auditTime(100), tap(_this.prefetchData.bind(_this)), tap(_this.findCurrentGroup.bind(_this))).subscribe(function () {
138
- _this.lastScrollTop = _this.content.nativeElement.scrollTop;
139
- });
140
- });
141
- this.setOverflow();
142
- };
143
- ListComponent.prototype.ngAfterViewChecked = function () {
144
- if (this.virtual) {
145
- this.positionItems();
146
- }
147
- if (this.items && this.scrollToFocused) {
148
- this.scrollToFocused = false;
149
- var scrollTarget = this.items.length && this.selectionService.focused === -1 ? 0 : this.selectionService.focused;
150
- this.scrollToItem(scrollTarget);
151
- }
152
- if (this.dataService.grouped) {
153
- this.findCurrentGroup();
154
- }
155
- };
156
- ListComponent.prototype.ngOnDestroy = function () {
157
- this.selectSubscription.unsubscribe();
158
- if (this.scrollSubscription) {
159
- this.scrollSubscription.unsubscribe();
160
- }
161
- };
162
- ListComponent.prototype.onCheckedChange = function (e, index) {
163
- var isChecked = e.target['checked'];
164
- if (isChecked && !this.selectionService.isSelected(index)) {
165
- this.selectionService.add(index);
166
- }
167
- if (!isChecked && this.selectionService.isSelected(index)) {
168
- this.selectionService.unselect(index);
169
- }
170
- };
171
- ListComponent.prototype.prepareClasses = function () {
172
- if (this.type === 'list') {
173
- this.listContentClass = 'k-list-content';
174
- this.listClass = 'k-list-ul';
175
- this.listItemClass = 'k-list-item';
176
- this.listVirtualClass = 'k-virtual-list';
177
- this.listGroupStickyHeaderClass = 'k-list-group-sticky-header';
178
- this.listGroupStickyHeaderTextClass = 'k-list-header-text';
179
- this.listGroupItemClass = 'k-list-group-item';
180
- this.listGroupItemTextClass = 'k-list-item-text';
181
- }
182
- else {
183
- this.listContentClass = 'k-table-body k-table-scroller';
184
- this.listClass = 'k-table k-table-list';
185
- this.listItemClass = 'k-table-row';
186
- this.listVirtualClass = 'k-virtual-table';
187
- this.listGroupStickyHeaderClass = 'k-table-group-sticky-header';
188
- this.listGroupStickyHeaderTextClass = 'k-table-th';
189
- this.listGroupItemClass = 'k-table-group-row';
190
- this.listGroupItemTextClass = 'k-table-th';
191
- }
192
- };
193
- ListComponent.prototype.isChecked = function (index) {
194
- var normalizedIndex = this.virtual ? index + this.virtual.skip : index;
195
- return this.selectionService.isSelected(normalizedIndex);
196
- };
197
- ListComponent.prototype.firstVisibleItem = function () {
198
- var _this = this;
199
- var content = this.content.nativeElement;
200
- var rect = content.getBoundingClientRect();
201
- // IE9 hack
202
- var disabled = Array.prototype.slice.call(content.querySelectorAll(".k-disabled"));
203
- // This is a workaround for finding elements with pointer-events: none;
204
- disabled.forEach(function (el) { return _this.renderer.setStyle(el, "pointer-events", "auto"); });
205
- var item = document.elementFromPoint(rect.left + 1, rect.top + 1);
206
- disabled.forEach(function (el) { return _this.renderer.setStyle(el, "pointer-events", "none"); });
207
- // return the closest `li` item to cover the custom template scenario
208
- return closest(item, 'li');
209
- };
210
- ListComponent.prototype.findCurrentGroup = function () {
211
- if (!this.dataService.grouped) {
212
- this.currentGroup = undefined;
213
- return;
214
- }
215
- var item = this.firstVisibleItem();
216
- if (item) {
217
- var index = void 0;
218
- if (item.getAttribute("role") === "group") {
219
- index = parseInt(item.getAttribute("group-index"), 10);
220
- this.currentGroup = this.dataService.groupAt(index).value;
221
- }
222
- else {
223
- index = parseInt(item.getAttribute("index"), 10);
224
- this.currentGroup = this.dataService.itemGroup(this.dataService.itemAt(index));
225
- }
226
- }
227
- else {
228
- this.currentGroup = undefined;
229
- }
230
- this.cdr.detectChanges();
231
- };
232
- ListComponent.prototype.prefetchData = function () {
233
- if (!this.virtual) {
234
- return;
235
- }
236
- var visibleItems = Math.trunc(this.content.nativeElement.clientHeight / this.virtual.itemHeight);
237
- var offsetY = this.content.nativeElement.scrollTop;
238
- var start = Math.trunc(offsetY / this.virtual.itemHeight);
239
- var down = offsetY > this.lastScrollTop;
240
- var nextPage = (start + visibleItems >= this.lastLoaded) && this.lastLoaded < this.virtual.total - 1;
241
- var leftOver = this.pageSize - (this.lastLoaded - this.startFrom);
242
- var prevPage = this.lastLoaded - this.pageSize + visibleItems >= start - leftOver;
243
- if (down && nextPage) {
244
- this.changePage(start);
245
- }
246
- if (!down && prevPage) {
247
- this.changePage(start - this.pageSize + visibleItems + 1);
248
- }
249
- };
250
- ListComponent.prototype.changePage = function (start) {
251
- var _this = this;
252
- this.zone.run(function () {
253
- var end = _this.pageSize + start;
254
- if (end > _this.virtual.total) {
255
- start--;
256
- end = _this.virtual.total;
257
- }
258
- if (start < 0) {
259
- start = 0;
260
- }
261
- _this.startFrom = start;
262
- _this.lastLoaded = end;
263
- _this.pageChange.emit({ skip: start, take: _this.pageSize });
264
- });
265
- };
266
- ListComponent.prototype.index = function (groupIndex, itemIndex) {
267
- return groupIndex > 0 ? (this.dataService.groupIndices[groupIndex - 1] + itemIndex) : itemIndex;
268
- };
269
- ListComponent.prototype.getText = function (dataItem) {
270
- return getter(dataItem, this.textField);
271
- };
272
- ListComponent.prototype.getValue = function (dataItem) {
273
- return getter(dataItem, this.valueField);
274
- };
275
- ListComponent.prototype.isDisabled = function (index) {
276
- if (isPresent(this.virtual)) {
277
- index += this.virtual.skip;
278
- }
279
- return this.disabledItemsService.isIndexDisabled(index);
280
- };
281
- ListComponent.prototype.isAltRow = function (index) {
282
- return this.type === 'dropdowngrid' && index % 2 !== 0;
283
- };
284
- ListComponent.prototype.scrollToItem = function (index) {
285
- var flatIndex = index;
286
- if (this.dataService.grouped) {
287
- // takes into account the group header items
288
- flatIndex = this.dataService.flatIndex(index);
289
- /* The first group header item is not rendered in the list (see template), so subtract 1 when calulating the flat index.
290
- With virtualization enabled, the first group header could be in a previous page, in which case don't subtract anything. */
291
- var groupHeaderOffset = this.firstGroupHeaderInTargetedPage(flatIndex) ? -1 : 0;
292
- flatIndex += groupHeaderOffset;
293
- }
294
- if (this.virtual && flatIndex > -1) {
295
- this.scrollToIndex(flatIndex);
296
- return;
297
- }
298
- var items = this.items.toArray();
299
- if (isPresent(items[flatIndex]) && flatIndex !== -1) {
300
- this.scroll(items[flatIndex].element);
301
- }
302
- };
303
- ListComponent.prototype.scrollToIndex = function (index) {
304
- var content = this.content.nativeElement;
305
- var contentScrollTop = content.scrollTop;
306
- var itemOffsetTop = index * this.virtual.itemHeight;
307
- var itemOffsetHeight = this.virtual.itemHeight;
308
- var contentOffsetHeight = content.clientHeight;
309
- var bottomDistance = itemOffsetTop + itemOffsetHeight;
310
- if (contentScrollTop > itemOffsetTop) {
311
- contentScrollTop = itemOffsetTop;
312
- }
313
- else if (bottomDistance > (contentScrollTop + contentOffsetHeight)) {
314
- contentScrollTop = (bottomDistance - contentOffsetHeight);
315
- }
316
- content.scrollTop = contentScrollTop;
317
- };
318
- ListComponent.prototype.scroll = function (item) {
319
- if (!item) {
320
- return;
321
- }
322
- var nativeElement = item.nativeElement;
323
- var content = this.content.nativeElement, itemOffsetTop = nativeElement.offsetTop, itemOffsetHeight = nativeElement.offsetHeight, contentScrollTop = content.scrollTop, contentOffsetHeight = content.clientHeight, bottomDistance = itemOffsetTop + itemOffsetHeight;
324
- if (contentScrollTop > itemOffsetTop) {
325
- contentScrollTop = itemOffsetTop;
326
- }
327
- else if (bottomDistance > (contentScrollTop + contentOffsetHeight)) {
328
- contentScrollTop = (bottomDistance - contentOffsetHeight);
329
- }
330
- content.scrollTop = contentScrollTop;
331
- };
332
- /**
333
- * Indicates whether a scrollbar is currently rendered in the list.
334
- */
335
- ListComponent.prototype.hasScrollbar = function () {
336
- if (!(isPresent(this.items) && this.items.length && isPresent(this.list) && isPresent(this.content))) {
337
- return false;
338
- }
339
- var hasVirtualScroll = isPresent(this.virtual) && this.hasVirtualScrollbar();
340
- return hasVirtualScroll || this.list.nativeElement.scrollHeight > this.content.nativeElement.offsetHeight;
341
- };
342
- /**
343
- * Sets the list's content overflow (hides/shows scrollbar)
344
- */
345
- ListComponent.prototype.setOverflow = function () {
346
- if (this.virtual) {
347
- var overflow = this.hasVirtualScrollbar() ? 'scroll' : 'hidden';
348
- this.renderer.setStyle(this.content.nativeElement, 'overflow-y', overflow);
349
- }
350
- };
351
- /**
352
- * Indicates whether the scrollbar should be visible in virtual mode.
353
- */
354
- ListComponent.prototype.hasVirtualScrollbar = function () {
355
- var contentOffsetHeight = this.content.nativeElement.offsetHeight;
356
- var virtualOffsetHeight = this.virtualContainer && this.virtualContainer.nativeElement.offsetHeight;
357
- return this.virtualContainer && virtualOffsetHeight > contentOffsetHeight;
358
- };
359
- ListComponent.prototype.positionItems = function () {
360
- var _this = this;
361
- this.items.forEach(function (item, index) {
362
- var offsetY = (index + _this.startFrom) * _this.virtual.itemHeight;
363
- _this.renderer.setStyle(item.element.nativeElement, "transform", "translateY(" + offsetY + "px");
364
- });
365
- };
366
- /**
367
- * Indicates whether the first group header from the data set is in the targeted virtual page.
368
- */
369
- ListComponent.prototype.firstGroupHeaderInTargetedPage = function (itemIndex) {
370
- if (!isPresent(this.virtual)) {
371
- return true;
372
- }
373
- return this.virtual.skip === 0 && (this.virtual.pageSize > itemIndex);
374
- };
375
- ListComponent.prototype.setComponentClasses = function () {
376
- if (this.type === 'list') {
377
- this.renderer.addClass(this.wrapper.nativeElement, 'k-list');
378
- if (this.size) {
379
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('list', this.size));
380
- }
381
- }
382
- if (isPresent(this.virtual)) {
383
- this.renderer.addClass(this.wrapper.nativeElement, this.listVirtualClass);
384
- }
385
- };
386
- tslib_1.__decorate([
387
- Input(),
388
- tslib_1.__metadata("design:type", Array)
389
- ], ListComponent.prototype, "selected", void 0);
390
- tslib_1.__decorate([
391
- Input(),
392
- tslib_1.__metadata("design:type", Number)
393
- ], ListComponent.prototype, "focused", void 0);
394
- tslib_1.__decorate([
395
- Input(),
396
- tslib_1.__metadata("design:type", String)
397
- ], ListComponent.prototype, "textField", void 0);
398
- tslib_1.__decorate([
399
- Input(),
400
- tslib_1.__metadata("design:type", String)
401
- ], ListComponent.prototype, "valueField", void 0);
402
- tslib_1.__decorate([
403
- Input(),
404
- tslib_1.__metadata("design:type", Number)
405
- ], ListComponent.prototype, "height", void 0);
406
- tslib_1.__decorate([
407
- Input(),
408
- tslib_1.__metadata("design:type", ItemTemplateDirective)
409
- ], ListComponent.prototype, "template", void 0);
410
- tslib_1.__decorate([
411
- Input(),
412
- tslib_1.__metadata("design:type", GroupTemplateDirective)
413
- ], ListComponent.prototype, "groupTemplate", void 0);
414
- tslib_1.__decorate([
415
- Input(),
416
- tslib_1.__metadata("design:type", FixedGroupTemplateDirective)
417
- ], ListComponent.prototype, "fixedGroupTemplate", void 0);
418
- tslib_1.__decorate([
419
- Input(),
420
- tslib_1.__metadata("design:type", Boolean)
421
- ], ListComponent.prototype, "show", void 0);
422
- tslib_1.__decorate([
423
- Input(),
424
- tslib_1.__metadata("design:type", String)
425
- ], ListComponent.prototype, "id", void 0);
426
- tslib_1.__decorate([
427
- Input(),
428
- tslib_1.__metadata("design:type", String)
429
- ], ListComponent.prototype, "optionPrefix", void 0);
430
- tslib_1.__decorate([
431
- Input(),
432
- tslib_1.__metadata("design:type", Boolean)
433
- ], ListComponent.prototype, "multipleSelection", void 0);
434
- tslib_1.__decorate([
435
- Input(),
436
- tslib_1.__metadata("design:type", Object)
437
- ], ListComponent.prototype, "virtual", void 0);
438
- tslib_1.__decorate([
439
- Input(),
440
- tslib_1.__metadata("design:type", String)
441
- ], ListComponent.prototype, "type", void 0);
442
- tslib_1.__decorate([
443
- Input(),
444
- tslib_1.__metadata("design:type", Object)
445
- ], ListComponent.prototype, "checkboxes", void 0);
446
- tslib_1.__decorate([
447
- Input(),
448
- tslib_1.__metadata("design:type", Array),
449
- tslib_1.__metadata("design:paramtypes", [Array])
450
- ], ListComponent.prototype, "data", null);
451
- tslib_1.__decorate([
452
- Input(),
453
- tslib_1.__metadata("design:type", String),
454
- tslib_1.__metadata("design:paramtypes", [String])
455
- ], ListComponent.prototype, "size", null);
456
- tslib_1.__decorate([
457
- Input(),
458
- tslib_1.__metadata("design:type", String)
459
- ], ListComponent.prototype, "rounded", void 0);
460
- tslib_1.__decorate([
461
- Output(),
462
- tslib_1.__metadata("design:type", EventEmitter)
463
- ], ListComponent.prototype, "onClick", void 0);
464
- tslib_1.__decorate([
465
- Output(),
466
- tslib_1.__metadata("design:type", EventEmitter)
467
- ], ListComponent.prototype, "pageChange", void 0);
468
- tslib_1.__decorate([
469
- Output(),
470
- tslib_1.__metadata("design:type", EventEmitter)
471
- ], ListComponent.prototype, "listResize", void 0);
472
- tslib_1.__decorate([
473
- ViewChildren(ListItemDirective),
474
- tslib_1.__metadata("design:type", QueryList)
475
- ], ListComponent.prototype, "items", void 0);
476
- tslib_1.__decorate([
477
- ViewChild('content', { static: true }),
478
- tslib_1.__metadata("design:type", ElementRef)
479
- ], ListComponent.prototype, "content", void 0);
480
- tslib_1.__decorate([
481
- ViewChild('list', { static: true }),
482
- tslib_1.__metadata("design:type", ElementRef)
483
- ], ListComponent.prototype, "list", void 0);
484
- tslib_1.__decorate([
485
- ViewChild('virtualContainer', { static: false }),
486
- tslib_1.__metadata("design:type", ElementRef)
487
- ], ListComponent.prototype, "virtualContainer", void 0);
488
- ListComponent = tslib_1.__decorate([
489
- Component({
490
- selector: 'kendo-list',
491
- template: "\n <div *ngIf=\"dataService.grouped\"\n [class]=\"listGroupStickyHeaderClass\"\n [ngStyle]=\"{\n 'height.px': virtual?.itemHeight,\n 'minHeight.px' : virtual?.itemHeight,\n 'boxSizing' : virtual ? 'border-box' : 'inherit'}\"\n >\n <ng-template *ngIf=\"fixedGroupTemplate\"\n [templateContext]=\"{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!fixedGroupTemplate\"><span [class]=\"listGroupStickyHeaderTextClass\">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]=\"listContentClass\"\n [style.overscrollBehavior]=\"'none'\"\n [style.maxHeight.px]=\"height\"\n unselectable=\"on\">\n <ul #list\n role=\"listbox\"\n [class]=\"listClass\"\n [attr.id]=\"id\"\n [attr.aria-hidden]=\"!show\">\n <ng-template *ngIf=\"!dataService.grouped && show\" ngFor let-dataItem let-itemIndex=\"index\" [ngForOf]=\"data\">\n <li\n role=\"option\"\n kendoDropDownsSelectable\n [checkboxes]=\"checkboxes\"\n [height]=\"virtual?.itemHeight\"\n [index]=\"itemIndex + startFrom\"\n [multipleSelection]=\"multipleSelection\"\n [attr.id]=\"optionPrefix + '-' + getValue(dataItem)\"\n [attr.tabIndex]=\"-1\"\n [class]=\"listItemClass\"\n [ngClass]=\"{\n 'k-disabled': isDisabled(itemIndex),\n 'k-table-alt-row': isAltRow(itemIndex)\n }\"\n >\n <input\n *ngIf=\"checkboxes.enabled\"\n type=\"checkbox\"\n class=\"k-checkbox\"\n [ngClass]=\"checkboxClasses\"\n (change)=\"onCheckedChange($event, itemIndex)\"\n [checked]=\"isChecked(itemIndex)\"\n />\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: dataItem\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\"><span class=\"k-list-item-text\">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf=\"dataService.grouped\" ngFor let-dataItem let-itemIndex=\"index\" [ngForOf]=\"data\">\n <li\n *ngIf=\"dataItem.header && dataItem.index > 0\"\n role=\"group\"\n [class]=\"listGroupItemClass\"\n [class.k-table-alt-row]=\"isAltRow(itemIndex - 1)\"\n [ngStyle]=\"{\n 'height.px': virtual?.itemHeight,\n 'minHeight.px' : virtual?.itemHeight,\n 'boxSizing' : virtual ? 'border-box' : 'inherit'}\"\n [attr.group-index]=\"dataItem.index\"\n [attr.id]=\"optionPrefix + '-' + getValue(dataItem.value)\"\n [attr.tabIndex]=\"-1\">\n <span [class]=\"listGroupItemTextClass\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf=\"!dataItem.header\"\n role=\"option\"\n kendoDropDownsSelectable\n [height]=\"virtual?.itemHeight\"\n [index]=\"dataItem.offsetIndex\"\n [multipleSelection]=\"multipleSelection\"\n [attr.absolute-index]=\"dataItem.index\"\n [attr.id]=\"optionPrefix + '-' + getValue(dataItem.value)\"\n [attr.tabIndex]=\"-1\"\n [class]=\"listItemClass\"\n [ngClass]=\"{\n 'k-disabled': isDisabled(dataItem.offsetIndex),\n 'k-table-alt-row': isAltRow(itemIndex - 1)\n }\"\n >\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\"><span class=\"k-list-item-text\">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf=\"!virtual\"\n (resize)=\"listResize.emit()\"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf=\"virtual\" #virtualContainer class=\"k-height-container\" role=\"presentation\">\n <div [style.height.px]=\"scrollHeight\">\n <kendo-resize-sensor (resize)=\"listResize.emit()\"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n "
492
- }),
493
- tslib_1.__metadata("design:paramtypes", [DataService,
494
- ElementRef,
495
- SelectionService,
496
- DisabledItemsService,
497
- ChangeDetectorRef,
498
- NgZone,
499
- Renderer2])
500
- ], ListComponent);
501
- return ListComponent;
502
- }());
503
- export { ListComponent };
@@ -1,44 +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 { Component, forwardRef } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { Messages } from './messages';
9
- /**
10
- * Custom component messages override default component messages
11
- * ([see example]({% slug rtl_dropdowns %}#toc-messages)).
12
- */
13
- var CustomMessagesComponent = /** @class */ (function (_super) {
14
- tslib_1.__extends(CustomMessagesComponent, _super);
15
- function CustomMessagesComponent(service) {
16
- var _this = _super.call(this) || this;
17
- _this.service = service;
18
- return _this;
19
- }
20
- CustomMessagesComponent_1 = CustomMessagesComponent;
21
- Object.defineProperty(CustomMessagesComponent.prototype, "override", {
22
- get: function () {
23
- return true;
24
- },
25
- enumerable: true,
26
- configurable: true
27
- });
28
- var CustomMessagesComponent_1;
29
- CustomMessagesComponent = CustomMessagesComponent_1 = tslib_1.__decorate([
30
- Component({
31
- providers: [
32
- {
33
- provide: Messages,
34
- useExisting: forwardRef(function () { return CustomMessagesComponent_1; })
35
- }
36
- ],
37
- selector: 'kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages',
38
- template: ""
39
- }),
40
- tslib_1.__metadata("design:paramtypes", [LocalizationService])
41
- ], CustomMessagesComponent);
42
- return CustomMessagesComponent;
43
- }(Messages));
44
- export { CustomMessagesComponent };
@@ -1,35 +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, forwardRef } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { Messages } from './messages';
9
- /**
10
- * @hidden
11
- */
12
- var LocalizedMessagesDirective = /** @class */ (function (_super) {
13
- tslib_1.__extends(LocalizedMessagesDirective, _super);
14
- function LocalizedMessagesDirective(service) {
15
- var _this = _super.call(this) || this;
16
- _this.service = service;
17
- return _this;
18
- }
19
- LocalizedMessagesDirective_1 = LocalizedMessagesDirective;
20
- var LocalizedMessagesDirective_1;
21
- LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
22
- Directive({
23
- providers: [
24
- {
25
- provide: Messages,
26
- useExisting: forwardRef(function () { return LocalizedMessagesDirective_1; })
27
- }
28
- ],
29
- selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "
30
- }),
31
- tslib_1.__metadata("design:paramtypes", [LocalizationService])
32
- ], LocalizedMessagesDirective);
33
- return LocalizedMessagesDirective;
34
- }(Messages));
35
- export { LocalizedMessagesDirective };
@@ -1,34 +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 { Input } from '@angular/core';
7
- import { ComponentMessages } from '@progress/kendo-angular-l10n';
8
- /**
9
- * @hidden
10
- */
11
- var Messages = /** @class */ (function (_super) {
12
- tslib_1.__extends(Messages, _super);
13
- function Messages() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- tslib_1.__decorate([
17
- Input(),
18
- tslib_1.__metadata("design:type", String)
19
- ], Messages.prototype, "noDataText", void 0);
20
- tslib_1.__decorate([
21
- Input(),
22
- tslib_1.__metadata("design:type", String)
23
- ], Messages.prototype, "clearTitle", void 0);
24
- tslib_1.__decorate([
25
- Input(),
26
- tslib_1.__metadata("design:type", String)
27
- ], Messages.prototype, "checkAllText", void 0);
28
- tslib_1.__decorate([
29
- Input(),
30
- tslib_1.__metadata("design:type", String)
31
- ], Messages.prototype, "selectButtonText", void 0);
32
- return Messages;
33
- }(ComponentMessages));
34
- export { Messages };
@@ -1,15 +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 { isObject } from "../util";
6
- /**
7
- * @hidden
8
- */
9
- export var normalizeCheckboxesSettings = function (settings) {
10
- if (isObject(settings)) {
11
- var defaultSettings = { enabled: true, checkOnClick: true };
12
- return Object.assign({}, defaultSettings, settings);
13
- }
14
- return { enabled: Boolean(settings), checkOnClick: true };
15
- };
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/