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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +34 -22
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +40 -26
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +0 -0
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +0 -0
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
  34. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +48 -35
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +5 -5
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +4 -10
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +5 -5
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +4 -10
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +49 -32
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +57 -39
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +264 -232
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +289 -255
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +362 -300
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +28 -42
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +39 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +35 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +38 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +35 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +373 -315
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +427 -346
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +11 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +335 -288
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +7873 -7141
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +12 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +41 -26
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +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.js +0 -4
  247. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  248. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  249. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  250. package/dist/es2015/common/shared.module.js +0 -42
  251. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  252. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  253. package/dist/es2015/dropdowns.module.js +0 -50
  254. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  255. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  256. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  258. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  260. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  262. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  263. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  264. package/dist/es2015/index.d.ts +0 -30
  265. package/dist/es2015/index.js +0 -30
  266. package/dist/es2015/index.metadata.json +0 -1
  267. package/dist/es2015/main.js +0 -44
  268. package/dist/fesm5/index.js +0 -13097
  269. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  270. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  271. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  272. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  273. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  274. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  275. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  276. package/dist/npm/comboboxes/combobox.module.js +0 -54
  277. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  278. package/dist/npm/common/constants/error-messages.js +0 -64
  279. package/dist/npm/common/constants/touch-enabled.js +0 -11
  280. package/dist/npm/common/data.service.js +0 -252
  281. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  282. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  283. package/dist/npm/common/filter-input.directive.js +0 -39
  284. package/dist/npm/common/filtering/filter-settings.js +0 -6
  285. package/dist/npm/common/filtering/filter.directive.js +0 -143
  286. package/dist/npm/common/filtering/filterable-component.js +0 -19
  287. package/dist/npm/common/list-item.directive.js +0 -24
  288. package/dist/npm/common/list.component.js +0 -505
  289. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  290. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  291. package/dist/npm/common/localization/messages.js +0 -36
  292. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  293. package/dist/npm/common/models/direction.js +0 -6
  294. package/dist/npm/common/models/fillmode.js +0 -6
  295. package/dist/npm/common/models/list-type.js +0 -6
  296. package/dist/npm/common/models/page-change-event.js +0 -6
  297. package/dist/npm/common/models/popup-settings.js +0 -6
  298. package/dist/npm/common/models/preventable-event.js +0 -31
  299. package/dist/npm/common/models/remove-tag-event.js +0 -26
  300. package/dist/npm/common/models/rounded.js +0 -6
  301. package/dist/npm/common/models/size.js +0 -6
  302. package/dist/npm/common/models/virtualization-settings.js +0 -27
  303. package/dist/npm/common/navigation/navigation-action.js +0 -26
  304. package/dist/npm/common/navigation/navigation.service.js +0 -149
  305. package/dist/npm/common/searchbar.component.js +0 -255
  306. package/dist/npm/common/selection/selectable.directive.js +0 -95
  307. package/dist/npm/common/selection/selection.service.js +0 -109
  308. package/dist/npm/common/shared-directives.module.js +0 -62
  309. package/dist/npm/common/shared.module.js +0 -47
  310. package/dist/npm/common/taglist.component.js +0 -181
  311. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  312. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  313. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  314. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  315. package/dist/npm/common/templates/group-template.directive.js +0 -56
  316. package/dist/npm/common/templates/header-template.directive.js +0 -49
  317. package/dist/npm/common/templates/item-template.directive.js +0 -48
  318. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  319. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  320. package/dist/npm/common/templates/template-context.directive.js +0 -42
  321. package/dist/npm/common/templates/value-template.directive.js +0 -51
  322. package/dist/npm/common/util.js +0 -339
  323. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  324. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  325. package/dist/npm/dropdowns.module.js +0 -55
  326. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  327. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  328. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  329. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  330. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  331. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  333. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  335. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  336. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  337. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  338. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  339. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  340. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  341. package/dist/npm/index.js +0 -55
  342. package/dist/npm/main.js +0 -86
  343. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  344. package/dist/npm/multiselect/multiselect.module.js +0 -52
  345. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  346. package/dist/npm/package-metadata.js +0 -17
  347. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,1688 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var forms_1 = require("@angular/forms");
10
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
11
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
12
- var navigation_service_1 = require("../common/navigation/navigation.service");
13
- var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
14
- var kendo_angular_treeview_1 = require("@progress/kendo-angular-treeview");
15
- var data_service_1 = require("../common/data.service");
16
- var disabled_items_service_1 = require("../common/disabled-items/disabled-items.service");
17
- var selection_service_1 = require("../common/selection/selection.service");
18
- var preventable_event_1 = require("../common/models/preventable-event");
19
- var navigation_action_1 = require("../common/navigation/navigation-action");
20
- var util_1 = require("../common/util");
21
- var remove_tag_event_1 = require("../common/models/remove-tag-event");
22
- var error_messages_1 = require("../common/constants/error-messages");
23
- var header_template_directive_1 = require("../common/templates/header-template.directive");
24
- var footer_template_directive_1 = require("../common/templates/footer-template.directive");
25
- var node_template_directive_1 = require("./templates/node-template.directive");
26
- var no_data_template_directive_1 = require("../common/templates/no-data-template.directive");
27
- var tag_template_directive_1 = require("../common/templates/tag-template.directive");
28
- var group_tag_template_directive_1 = require("../common/templates/group-tag-template.directive");
29
- var touch_enabled_1 = require("../common/constants/touch-enabled");
30
- var rxjs_1 = require("rxjs");
31
- var operators_1 = require("rxjs/operators");
32
- /* tslint:disable:member-ordering */
33
- var DEFAULT_POPUP_SETTINGS = { animate: true };
34
- var DEFAULT_CHECKABLE_SETTINGS = { checkChildren: true, checkOnClick: true };
35
- var hasChildren = function () { return false; };
36
- var ɵ0 = hasChildren;
37
- exports.ɵ0 = ɵ0;
38
- var fetchChildren = function () { return rxjs_1.of([]); };
39
- var ɵ1 = fetchChildren;
40
- exports.ɵ1 = ɵ1;
41
- var itemDisabled = function () { return false; };
42
- var ɵ2 = itemDisabled;
43
- exports.ɵ2 = ɵ2;
44
- var isNodeVisible = function () { return true; };
45
- var ɵ3 = isNodeVisible;
46
- exports.ɵ3 = ɵ3;
47
- /**
48
- * Represents the [Kendo UI MultiSelectTree component for Angular]({% slug overview_multiselecttree %}).
49
- */
50
- var MultiSelectTreeComponent = /** @class */ (function () {
51
- function MultiSelectTreeComponent(wrapper, popupService, renderer, navigationService, _zone, localization, cdr, touchEnabled) {
52
- this.wrapper = wrapper;
53
- this.popupService = popupService;
54
- this.renderer = renderer;
55
- this.navigationService = navigationService;
56
- this._zone = _zone;
57
- this.localization = localization;
58
- this.cdr = cdr;
59
- this.touchEnabled = touchEnabled;
60
- this.hostClasses = true;
61
- this.role = 'combobox';
62
- this.ariaHasPopup = 'tree';
63
- /**
64
- * Sets the levels in the data set where the values can be found when `valueField` is an Array.
65
- * The field serves to correctly allocate a data item used when the MultiSelectTree is initialized with a value.
66
- */
67
- this.valueDepth = [];
68
- /**
69
- * The hint which is displayed when the component is empty.
70
- */
71
- this.placeholder = "";
72
- /**
73
- * Sets the height of the options list. By default, `listHeight` is 200px.
74
- *
75
- * > The `listHeight` property affects only the list of options and not the whole popup container.
76
- * > To set the height of the popup container, use `popupSettings.height`.
77
- */
78
- this.listHeight = 200;
79
- /**
80
- * Sets the disabled state of the component.
81
- */
82
- this.disabled = false;
83
- /**
84
- * Sets the read-only state of the component.
85
- */
86
- this.readonly = false;
87
- /**
88
- * Specifies the type of the selected value
89
- * ([more information and example]({% slug valuebinding_multiselecttree %}#toc-primitive-values)).
90
- * If set to `true`, the selected value has to be a primitive one.
91
- */
92
- this.valuePrimitive = false;
93
- /**
94
- * Indicates whether the child nodes will be fetched on node expand or will be initially prefetched.
95
- * @default false
96
- */
97
- this.loadOnDemand = false;
98
- /**
99
- * @hidden
100
- *
101
- * Used by the kendo-label and kendo-floatinglabel to access and associate the focusable element with the provided label via aria-labelledby.
102
- */
103
- this.focusableId = "k-" + kendo_angular_common_1.guid();
104
- /**
105
- * If set to `true`, renders a button on hovering over the component.
106
- * Clicking this button resets the value of the component to `undefined` and triggers the `change` event.
107
- * @default true
108
- */
109
- this.clearButton = true;
110
- /**
111
- * Renders the built-in input element for filtering the MultiSelectTree.
112
- * If set to `true`, the component emits the `filterChange` event, which can be used to [filter the MultiSelectTree manually]({% slug filtering_multiselecttree %}#toc-manual-filtering).
113
- * A built-in filtering implementation is available to use with the [`kendoMultiSelectTreeHierarchyBinding`]({% slug api_dropdowns_multiselecttreehierarchybindingdirective %}) and [`kendoMultiSelectTreeFlatBinding`]({% slug api_dropdowns_multiselecttreeflatbindingdirective %}) directives.
114
- * @default false
115
- */
116
- this.filterable = false;
117
- /**
118
- * If `checkАll` is set to `true` and the checkboxes are enabled, a tri-state checkbox appears above the embedded treeview.
119
- * Clicking the checkbox checks or unchecks all enabled items of the treeview that are loaded.
120
- * @default false
121
- */
122
- this.checkAll = false;
123
- /**
124
- * A function which determines if a specific node has child nodes.
125
- */
126
- this.hasChildren = hasChildren;
127
- /**
128
- * A function which provides the child nodes for a given parent node.
129
- */
130
- this.fetchChildren = fetchChildren;
131
- /**
132
- * A callback which determines whether a tree node should be rendered as hidden. The utility .k-display-none class is used to hide the nodes.
133
- * Useful for custom filtering implementations.
134
- */
135
- this.isNodeVisible = isNodeVisible;
136
- /**
137
- * A function that is executed for each data item and determines if a specific item is disabled.
138
- */
139
- this.itemDisabled = itemDisabled;
140
- /**
141
- * A user-defined callback function which receives an array of selected data items and maps them to an array of tags.
142
- *
143
- * @param { Any[] } dataItems - The selected data items from the list.
144
- * @returns { Any[] } - The tags that will be rendered by the component.
145
- */
146
- this.tagMapper = function (tags) { return tags || []; };
147
- /**
148
- * Fires each time the user focuses the MultiSelectTree.
149
- */
150
- this.onFocus = new core_1.EventEmitter();
151
- /**
152
- * Fires each time the MultiSelectTree gets blurred.
153
- */
154
- this.onBlur = new core_1.EventEmitter();
155
- /**
156
- * Fires each time the popup is about to open
157
- * ([see example]({% slug openstate_multiselecttree %})).
158
- * This event is preventable. If you cancel it, the popup will remain closed.
159
- */
160
- this.open = new core_1.EventEmitter();
161
- /**
162
- * Fires after the popup has been opened.
163
- */
164
- this.opened = new core_1.EventEmitter();
165
- /**
166
- * Fires each time the popup is about to close
167
- * ([see example]({% slug openstate_multiselecttree %})).
168
- * This event is preventable. If you cancel it, the popup will remain open.
169
- */
170
- this.close = new core_1.EventEmitter();
171
- /**
172
- * Fires after the popup has been closed.
173
- */
174
- this.closed = new core_1.EventEmitter();
175
- /**
176
- * Fires when the user expands a node in the popup TreeView.
177
- */
178
- this.nodeExpand = new core_1.EventEmitter();
179
- /**
180
- * Fires when the user collapses a node in the popup TreeView.
181
- */
182
- this.nodeCollapse = new core_1.EventEmitter();
183
- /**
184
- * Fires each time the value is changed
185
- * ([see example]({% slug overview_multiselecttree %}#toc-events)).
186
- */
187
- this.valueChange = new core_1.EventEmitter();
188
- /**
189
- * Fires each time a tag is about to be removed.
190
- * This event is preventable. If you cancel it, the tag will not be removed.
191
- */
192
- this.removeTag = new core_1.EventEmitter();
193
- /**
194
- * Fires when the value of the built-in filter input element changes.
195
- */
196
- this.filterChange = new core_1.EventEmitter();
197
- /**
198
- * @hidden
199
- */
200
- this.filterStateChange = new core_1.EventEmitter();
201
- /**
202
- * @hidden
203
- */
204
- this.checkedItems = [];
205
- /**
206
- * @hidden
207
- */
208
- this.checkBy = function (item) { return item; };
209
- /**
210
- * @hidden
211
- */
212
- this.showAfter = 0;
213
- /**
214
- * @hidden
215
- */
216
- this.allNodesHidden = false;
217
- this.tagListId = kendo_angular_common_1.guid();
218
- this.tagPrefix = "tag-" + kendo_angular_common_1.guid();
219
- this.focusedTagIndex = undefined;
220
- this._value = [];
221
- this._tabindex = 0;
222
- this._popupSettings = DEFAULT_POPUP_SETTINGS;
223
- this._checkableSettings = DEFAULT_CHECKABLE_SETTINGS;
224
- this._isFocused = false;
225
- this._size = 'medium';
226
- this._rounded = 'medium';
227
- this._fillMode = 'solid';
228
- this.subscriptions = [];
229
- this.lastAction = 'check';
230
- this.onTouchedCallback = util_1.noop;
231
- this.onChangeCallback = util_1.noop;
232
- this.direction = localization.rtl ? 'rtl' : 'ltr';
233
- this.subscribeEvents();
234
- this.subscribeFocusEvents();
235
- }
236
- MultiSelectTreeComponent_1 = MultiSelectTreeComponent;
237
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isDisabled", {
238
- get: function () {
239
- return this.disabled;
240
- },
241
- enumerable: true,
242
- configurable: true
243
- });
244
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isLoading", {
245
- get: function () {
246
- return this.loading;
247
- },
248
- enumerable: true,
249
- configurable: true
250
- });
251
- Object.defineProperty(MultiSelectTreeComponent.prototype, "id", {
252
- get: function () {
253
- return this.focusableId;
254
- },
255
- enumerable: true,
256
- configurable: true
257
- });
258
- Object.defineProperty(MultiSelectTreeComponent.prototype, "hostTabIndex", {
259
- get: function () {
260
- return this.tabindex;
261
- },
262
- enumerable: true,
263
- configurable: true
264
- });
265
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isAriaExpanded", {
266
- get: function () {
267
- return this.isOpen;
268
- },
269
- enumerable: true,
270
- configurable: true
271
- });
272
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isReadonly", {
273
- get: function () {
274
- return this.readonly;
275
- },
276
- enumerable: true,
277
- configurable: true
278
- });
279
- Object.defineProperty(MultiSelectTreeComponent.prototype, "ariaDescribedBy", {
280
- get: function () {
281
- return this.tagListId;
282
- },
283
- enumerable: true,
284
- configurable: true
285
- });
286
- Object.defineProperty(MultiSelectTreeComponent.prototype, "ariaActiveDescendant", {
287
- get: function () {
288
- return this.focusedTagId;
289
- },
290
- enumerable: true,
291
- configurable: true
292
- });
293
- /**
294
- * @hidden
295
- */
296
- MultiSelectTreeComponent.prototype.handleClick = function () {
297
- this.togglePopup(!this.isOpen);
298
- };
299
- /**
300
- * @hidden
301
- */
302
- MultiSelectTreeComponent.prototype.handleKeydown = function (event) {
303
- var deleteTag = this.isWrapperActive && event.keyCode === kendo_angular_common_1.Keys.Backspace && this.tags.length > 0;
304
- if (deleteTag) {
305
- this.handleBackspace();
306
- return;
307
- }
308
- if (this.disabled || this.readonly) {
309
- return;
310
- }
311
- var eventData = event;
312
- var action = this.navigationService.process({
313
- originalEvent: eventData
314
- });
315
- if (action === navigation_action_1.NavigationAction.Open) {
316
- eventData.preventDefault();
317
- }
318
- };
319
- Object.defineProperty(MultiSelectTreeComponent.prototype, "treeview", {
320
- get: function () {
321
- return this._treeview;
322
- },
323
- set: function (treeview) {
324
- var _this = this;
325
- this._treeview = treeview;
326
- if (treeview) {
327
- // If filtering is enabled, focus the TreeView on mobile devices instead of the filter input
328
- if (this.isFocused && !this.filterable && !this.checkAll || this.touchEnabled) {
329
- treeview.focus();
330
- }
331
- /**
332
- * the treeview animations are initially disabled (we don't want expand animations during popup opening)
333
- * re-enables the animations for user interaction
334
- * The Promise is required to properly change the `animate` property when
335
- * the popup is appended to a container and opened upon initialization.
336
- * Otherwise, the "Expression has changed..." type error will be thrown.
337
- */
338
- Promise.resolve(null).then(function () { return _this.treeview.animate = true; });
339
- }
340
- },
341
- enumerable: true,
342
- configurable: true
343
- });
344
- Object.defineProperty(MultiSelectTreeComponent.prototype, "tabindex", {
345
- get: function () {
346
- return this.disabled ? -1 : this._tabindex;
347
- },
348
- /**
349
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
350
- */
351
- set: function (value) {
352
- var providedTabIndex = util_1.parseNumber(value);
353
- var defaultTabIndex = 0;
354
- this._tabindex = !isNaN(providedTabIndex) ? providedTabIndex : defaultTabIndex;
355
- },
356
- enumerable: true,
357
- configurable: true
358
- });
359
- Object.defineProperty(MultiSelectTreeComponent.prototype, "size", {
360
- get: function () {
361
- return this._size;
362
- },
363
- /**
364
- * Sets the size of the component.
365
- *
366
- * The possible values are:
367
- * * `'small'`
368
- * * `'medium'` (default)
369
- * * `'large'`
370
- * * `null`
371
- *
372
- */
373
- set: function (size) {
374
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
375
- if (size) {
376
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
377
- }
378
- this._size = size;
379
- },
380
- enumerable: true,
381
- configurable: true
382
- });
383
- Object.defineProperty(MultiSelectTreeComponent.prototype, "rounded", {
384
- get: function () {
385
- return this._rounded;
386
- },
387
- /**
388
- * Sets the border radius of the component.
389
- *
390
- * The possible values are:
391
- * * `'small'`
392
- * * `'medium'` (default)
393
- * * `'large'`
394
- * * `'full'`
395
- * * `null`
396
- *
397
- */
398
- set: function (rounded) {
399
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
400
- if (rounded) {
401
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
402
- }
403
- this._rounded = rounded;
404
- },
405
- enumerable: true,
406
- configurable: true
407
- });
408
- Object.defineProperty(MultiSelectTreeComponent.prototype, "fillMode", {
409
- get: function () {
410
- return this._fillMode;
411
- },
412
- /**
413
- * Sets the fillMode of the component.
414
- *
415
- * The possible values are:
416
- * * `'flat'`
417
- * * `'solid'` (default)
418
- * * `'outline'`
419
- * * `null`
420
- *
421
- */
422
- set: function (fillMode) {
423
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
424
- if (fillMode) {
425
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
426
- }
427
- this._fillMode = fillMode;
428
- },
429
- enumerable: true,
430
- configurable: true
431
- });
432
- Object.defineProperty(MultiSelectTreeComponent.prototype, "popupSettings", {
433
- get: function () {
434
- return this._popupSettings;
435
- },
436
- /**
437
- * Configures the popup of the MultiSelectTree.
438
- *
439
- * The available options are:
440
- * - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
441
- * - `width: Number | String`—Sets the width of the popup container. By default, the width of the host element is used. If set to `auto`, the component automatically adjusts the width of the popup and no item labels are wrapped.
442
- * - `height: Number`—Sets the height of the popup container.
443
- * - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
444
- * - `appendTo: "root" | "component" | ViewContainerRef`—Specifies the component to which the popup will be appended.
445
- */
446
- set: function (settings) {
447
- this._popupSettings = Object.assign({}, DEFAULT_POPUP_SETTINGS, settings);
448
- // `detectChanges` needed, otherwise upon value initialization and `appendTo` property
449
- // an error is thrown => ExpressionChangedAfterItHasBeenCheckedError
450
- this.cdr.detectChanges();
451
- },
452
- enumerable: true,
453
- configurable: true
454
- });
455
- Object.defineProperty(MultiSelectTreeComponent.prototype, "checkableSettings", {
456
- get: function () {
457
- return this._checkableSettings;
458
- },
459
- /**
460
- * Defines the checkable settings of the MultiSelecTree nodes.
461
- * If no value is provided, the default [`CheckableSettings`]({% slug api_dropdowns_multiselecttreecheckablesettings %}) are applied.
462
- */
463
- set: function (settings) {
464
- this._checkableSettings = Object.assign({}, DEFAULT_CHECKABLE_SETTINGS, settings);
465
- },
466
- enumerable: true,
467
- configurable: true
468
- });
469
- Object.defineProperty(MultiSelectTreeComponent.prototype, "data", {
470
- get: function () {
471
- return this._nodes;
472
- },
473
- /**
474
- * Sets the data of the MultiSelectTree.
475
- *
476
- * > The data has to be provided in an array-like list with objects.
477
- */
478
- set: function (data) {
479
- this._nodes = data;
480
- this.setState();
481
- },
482
- enumerable: true,
483
- configurable: true
484
- });
485
- Object.defineProperty(MultiSelectTreeComponent.prototype, "value", {
486
- get: function () {
487
- return this._value;
488
- },
489
- /**
490
- * Sets the value of the MultiSelectTree.
491
- * It can either be of the primitive (string, numbers) or of the complex (objects) type.
492
- * To define the type, use the `valuePrimitive` option.
493
- *
494
- */
495
- set: function (value) {
496
- this._value = value ? value : [];
497
- this.setState();
498
- },
499
- enumerable: true,
500
- configurable: true
501
- });
502
- Object.defineProperty(MultiSelectTreeComponent.prototype, "dataItems", {
503
- get: function () {
504
- var _this = this;
505
- return this._dataItems || this.value.map(function (value, index) { return ({
506
- dataItem: value,
507
- index: null,
508
- level: _this.valueDepth[index] || 0
509
- }); });
510
- },
511
- /**
512
- * Keeps the current `dataItems` object in order to resolve selection.
513
- * Needs to be provided when when programmatically setting a `value` and `valuePrimitive` is set to `true`.
514
- */
515
- set: function (items) {
516
- var _this = this;
517
- this._dataItems = (items || []).map(function (item, index) {
518
- if (util_1.hasProps(item, ['dataItem', 'index', 'level'])) {
519
- return item;
520
- }
521
- return {
522
- dataItem: item,
523
- index: null,
524
- level: _this.valueDepth[index] || 0
525
- };
526
- });
527
- this.setState();
528
- },
529
- enumerable: true,
530
- configurable: true
531
- });
532
- Object.defineProperty(MultiSelectTreeComponent.prototype, "focusedTagId", {
533
- /**
534
- * @hidden
535
- */
536
- get: function () {
537
- if (!util_1.isPresent(this.focusedTagIndex) || this.isOpen) {
538
- return null;
539
- }
540
- var dataItem = this.tags[this.focusedTagIndex];
541
- return this.tagPrefix + "-" + util_1.valueFrom({ dataItem: dataItem }, this.valueField);
542
- },
543
- enumerable: true,
544
- configurable: true
545
- });
546
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isFocused", {
547
- get: function () {
548
- return this._isFocused;
549
- },
550
- set: function (isFocused) {
551
- this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, 'k-focus');
552
- this._isFocused = isFocused;
553
- },
554
- enumerable: true,
555
- configurable: true
556
- });
557
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isOpen", {
558
- /**
559
- * Returns the current open state of the popup.
560
- */
561
- get: function () {
562
- return util_1.isPresent(this.popupRef);
563
- },
564
- enumerable: true,
565
- configurable: true
566
- });
567
- Object.defineProperty(MultiSelectTreeComponent.prototype, "width", {
568
- get: function () {
569
- var wrapperWidth = this.wrapper.nativeElement.offsetWidth;
570
- var width = this.popupSettings.width || wrapperWidth;
571
- var minWidth = isNaN(wrapperWidth) ? wrapperWidth : wrapperWidth + "px";
572
- var maxWidth = isNaN(width) ? width : width + "px";
573
- return { min: minWidth, max: maxWidth };
574
- },
575
- enumerable: true,
576
- configurable: true
577
- });
578
- Object.defineProperty(MultiSelectTreeComponent.prototype, "height", {
579
- get: function () {
580
- var popupHeight = this.popupSettings.height;
581
- return util_1.isPresent(popupHeight) ? popupHeight + "px" : 'auto';
582
- },
583
- enumerable: true,
584
- configurable: true
585
- });
586
- Object.defineProperty(MultiSelectTreeComponent.prototype, "appendTo", {
587
- get: function () {
588
- var appendTo = this.popupSettings.appendTo;
589
- if (!appendTo || appendTo === 'root') {
590
- return undefined;
591
- }
592
- return appendTo === 'component' ? this.container : appendTo;
593
- },
594
- enumerable: true,
595
- configurable: true
596
- });
597
- Object.defineProperty(MultiSelectTreeComponent.prototype, "popupContainerClasses", {
598
- /**
599
- * @hidden
600
- */
601
- get: function () {
602
- var containerClasses = ['k-popup-dropdowntree'];
603
- if (this.popupSettings.popupClass) {
604
- containerClasses.push(this.popupSettings.popupClass);
605
- }
606
- return containerClasses;
607
- },
608
- enumerable: true,
609
- configurable: true
610
- });
611
- Object.defineProperty(MultiSelectTreeComponent.prototype, "nodes", {
612
- get: function () {
613
- return this.data;
614
- },
615
- /**
616
- * @hidden
617
- *
618
- * Alias for `data`. Used for compatibility with the `DataBoundComponent` interface.
619
- * Required for the data-binding directives.
620
- */
621
- set: function (nodes) {
622
- this.data = nodes;
623
- },
624
- enumerable: true,
625
- configurable: true
626
- });
627
- Object.defineProperty(MultiSelectTreeComponent.prototype, "children", {
628
- get: function () {
629
- return this.fetchChildren;
630
- },
631
- /**
632
- * @hidden
633
- *
634
- * Alias for `fetchChildren`. Used for compatibility with the `DataBoundComponent` interface.
635
- * Required for the data-binding directives
636
- */
637
- set: function (callback) {
638
- this.fetchChildren = callback;
639
- },
640
- enumerable: true,
641
- configurable: true
642
- });
643
- Object.defineProperty(MultiSelectTreeComponent.prototype, "expand", {
644
- /**
645
- * @hidden
646
- *
647
- * Alias for `nodeExpand`. Used for compatibility with the `ExpandableComponent` interface.
648
- * Required for the expand-directive.
649
- */
650
- get: function () {
651
- return this.nodeExpand;
652
- },
653
- enumerable: true,
654
- configurable: true
655
- });
656
- Object.defineProperty(MultiSelectTreeComponent.prototype, "collapse", {
657
- /**
658
- * @hidden
659
- *
660
- * Alias for `nodeCollapse`. Used for compatibility with the `ExpandableComponent` interface.
661
- * Required for the expand-directive.
662
- */
663
- get: function () {
664
- return this.nodeCollapse;
665
- },
666
- enumerable: true,
667
- configurable: true
668
- });
669
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isExpanded", {
670
- get: function () {
671
- return this.isNodeExpanded;
672
- },
673
- /**
674
- * @hidden
675
- *
676
- * Alias for `isNodeExpanded`. Used for compatibility with the `ExpandableComponent` interface.
677
- * Required for the expand-directive.
678
- */
679
- set: function (callback) {
680
- this.isNodeExpanded = callback;
681
- },
682
- enumerable: true,
683
- configurable: true
684
- });
685
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isVisible", {
686
- get: function () {
687
- return this.isNodeVisible;
688
- },
689
- /**
690
- * @hidden
691
- *
692
- * Alias for `isNodeVisible`. Used for compatibility with the `DataBoundComponent` interface.
693
- * The `DataBoundComponent` interface is used in the data-binding directives.
694
- */
695
- set: function (callback) {
696
- this.isNodeVisible = callback;
697
- },
698
- enumerable: true,
699
- configurable: true
700
- });
701
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isTagFocused", {
702
- get: function () {
703
- return !this.isOpen && this.focusedTagIndex !== undefined;
704
- },
705
- enumerable: true,
706
- configurable: true
707
- });
708
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isTreeViewActive", {
709
- get: function () {
710
- return this.treeview && this.treeview.isActive;
711
- },
712
- enumerable: true,
713
- configurable: true
714
- });
715
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isWrapperActive", {
716
- get: function () {
717
- return document.activeElement === this.wrapper.nativeElement;
718
- },
719
- enumerable: true,
720
- configurable: true
721
- });
722
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isFilterActive", {
723
- get: function () {
724
- return this.filterInput && document.activeElement === this.filterInput.nativeElement;
725
- },
726
- enumerable: true,
727
- configurable: true
728
- });
729
- Object.defineProperty(MultiSelectTreeComponent.prototype, "isCheckAllActive", {
730
- get: function () {
731
- return this.checkAllInput && document.activeElement === this.checkAllInput.nativeElement;
732
- },
733
- enumerable: true,
734
- configurable: true
735
- });
736
- MultiSelectTreeComponent.prototype.ngOnInit = function () {
737
- var _this = this;
738
- this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
739
- this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', String(this.isOpen));
740
- this.subscriptions.push(this.localization
741
- .changes.subscribe(function (_a) {
742
- var rtl = _a.rtl;
743
- _this.direction = rtl ? 'rtl' : 'ltr';
744
- _this.cdr.markForCheck();
745
- }));
746
- this.setComponentClasses();
747
- };
748
- /**
749
- * @hidden
750
- */
751
- MultiSelectTreeComponent.prototype.ngOnDestroy = function () {
752
- this.destroyPopup();
753
- this.unsubscribeEvents();
754
- };
755
- /**
756
- * @hidden
757
- */
758
- MultiSelectTreeComponent.prototype.ngOnChanges = function (changes) {
759
- var _this = this;
760
- if (kendo_angular_common_1.anyChanged(['textField', 'valueField', 'valuePrimitive'], changes, false)) {
761
- this.setState();
762
- }
763
- if (kendo_angular_common_1.anyChanged(['valueDepth', 'value', 'dataItems'], changes, false)) {
764
- if (changes.value && !changes.dataItems && !this.valuePrimitive) {
765
- // Update the dataItems if the value is updated programmatically (non-primitive values only)
766
- // In the primitive case, the client should update the dataItems as well
767
- this.dataItems = this.value;
768
- }
769
- else {
770
- // Re-map the dataItems because `valueDepth` is not yet available when the check directive parses the items
771
- this.dataItems = this.dataItems.map(function (item, index) { return (tslib_1.__assign({}, item, { level: _this.valueDepth[index] || 0 })); });
772
- }
773
- }
774
- };
775
- /**
776
- * @hidden
777
- */
778
- MultiSelectTreeComponent.prototype.ngAfterContentChecked = function () {
779
- this.verifySettings();
780
- };
781
- /**
782
- * @hidden
783
- *
784
- * Used by the kendo-floatinglabel component to determine if the floating label
785
- * should be rendered inside the input when the component is not focused.
786
- */
787
- MultiSelectTreeComponent.prototype.isEmpty = function () {
788
- return !Boolean(this.placeholder) && (!util_1.isPresent(this.value) || this.value.length === 0);
789
- };
790
- /**
791
- * Focuses the MultiSelectTree.
792
- */
793
- MultiSelectTreeComponent.prototype.focus = function () {
794
- if (!this.disabled) {
795
- this.wrapper.nativeElement.focus();
796
- }
797
- };
798
- /**
799
- * Blurs the MultiSelectTree.
800
- */
801
- MultiSelectTreeComponent.prototype.blur = function () {
802
- if (!this.disabled) {
803
- this.wrapper.nativeElement.blur();
804
- }
805
- };
806
- /**
807
- * Focuses a specific item of the MultiSelectTree based on a provided index in the format of `1_1`.
808
- * The targeted item should be expanded in order for it to be focused.
809
- * If null or invalid index is provided the focus will be set on the first item.
810
- */
811
- MultiSelectTreeComponent.prototype.focusItemAt = function (index) {
812
- if (this.treeview) {
813
- var lookup = this.treeview.itemLookup(index);
814
- var isItemDisabled = !util_1.isPresent(lookup) || this.treeview.isDisabled(lookup.item.dataItem, lookup.item.index);
815
- if (!isItemDisabled) {
816
- this.treeview.focus(index);
817
- }
818
- }
819
- };
820
- /**
821
- * Resets the value of the MultiSelectTree.
822
- * If you use the `reset` method to clear the value of the component,
823
- * the model will not update automatically and the `valueChange` event will not be fired.
824
- */
825
- MultiSelectTreeComponent.prototype.reset = function () {
826
- this.value = [];
827
- this.dataItems = [];
828
- this.valueDepth = [];
829
- };
830
- /**
831
- * Toggles the visibility of the popup
832
- * ([see example]({% slug openstate_multiselecttree %})).
833
- * If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
834
- *
835
- * @param open - The state of the popup.
836
- */
837
- MultiSelectTreeComponent.prototype.toggle = function (open) {
838
- var _this = this;
839
- // The Promise is required to open the popup on load.
840
- // Otherwise, the "ViewContainerRef not found..." error will be thrown.
841
- Promise.resolve(null).then(function () {
842
- var shouldOpen = util_1.isPresent(open) ? open : !util_1.isPresent(_this.popupRef);
843
- _this.destroyPopup();
844
- if (shouldOpen) {
845
- _this.createPopup();
846
- }
847
- });
848
- };
849
- /**
850
- * @hidden
851
- */
852
- MultiSelectTreeComponent.prototype.handleFocus = function (event) {
853
- var _this = this;
854
- if (event.target !== this.wrapper.nativeElement) {
855
- return;
856
- }
857
- event.stopImmediatePropagation();
858
- if (!this.isFocused) {
859
- this.isFocused = true;
860
- if (kendo_angular_common_1.hasObservers(this.onFocus)) {
861
- this._zone.run(function () {
862
- _this.onFocus.emit();
863
- });
864
- }
865
- // Re-focus the treeview if `close` is prevented
866
- if (this.isOpen && this.treeview) {
867
- if (this.lastNodeOnFocus) {
868
- this.lastNodeOnFocus.setAttribute('tabindex', '0');
869
- }
870
- this.treeview.focus();
871
- }
872
- }
873
- };
874
- /**
875
- * @hidden
876
- */
877
- MultiSelectTreeComponent.prototype.handleBlur = function (e) {
878
- var _this = this;
879
- var relatedTarget = e && e.relatedTarget;
880
- if (this.wrapper.nativeElement.contains(relatedTarget) ||
881
- (this.isOpen && this.popupRef.popupElement.contains(relatedTarget))) {
882
- return;
883
- }
884
- this.isFocused = false;
885
- this.togglePopup(false);
886
- if (kendo_angular_common_1.hasObservers(this.onBlur) ||
887
- util_1.isUntouched(this.wrapper.nativeElement)) {
888
- this._zone.run(function () {
889
- _this.onBlur.emit();
890
- _this.onTouchedCallback();
891
- });
892
- }
893
- };
894
- /**
895
- * @hidden
896
- */
897
- MultiSelectTreeComponent.prototype.handleNodeClick = function (node) {
898
- if (!this.isFocused) {
899
- // Re-focus the MultiSelectTree when popup close is prevented and a node is clicked
900
- // On click the focus should be on the clicked element which is why we need to update the lastNodeOnFocus
901
- var parent_1 = node.originalEvent.target.parentElement.parentElement;
902
- this.lastNodeOnFocus = parent_1;
903
- this.focus();
904
- }
905
- };
906
- /**
907
- * @hidden
908
- */
909
- MultiSelectTreeComponent.prototype.togglePopup = function (open) {
910
- var _this = this;
911
- var isDisabled = this.disabled || this.readonly;
912
- var sameState = this.isOpen === open;
913
- this._zone.run(function () {
914
- _this.focusedTagIndex = undefined;
915
- });
916
- if (isDisabled || sameState) {
917
- return;
918
- }
919
- var togglePrevented = this.triggerPopupEvents(open);
920
- if (!togglePrevented) {
921
- open ?
922
- this.createPopup() :
923
- this.destroyPopup();
924
- }
925
- else {
926
- this.removeTreeViewFromTabOrder();
927
- }
928
- };
929
- /**
930
- * @hidden
931
- */
932
- MultiSelectTreeComponent.prototype.messageFor = function (key) {
933
- return this.localization.get(key);
934
- };
935
- /**
936
- * @hidden
937
- */
938
- MultiSelectTreeComponent.prototype.handleCheckedItemsChange = function (items) {
939
- this.valueDepth = items.map(function (item) { return item.level; });
940
- this.lastAction = items.length > this.dataItems.length ? 'check' : 'uncheck';
941
- this.dataItems = items.slice();
942
- this.updateValue(this.dataItems);
943
- };
944
- /**
945
- * @hidden
946
- */
947
- MultiSelectTreeComponent.prototype.handleRemoveTag = function (_a) {
948
- var _this = this;
949
- var tag = _a.tag, index = _a.index;
950
- if (this.disabled || this.readonly) {
951
- return;
952
- }
953
- var eventArgs = new remove_tag_event_1.RemoveTagEvent(tag);
954
- this.removeTag.emit(eventArgs);
955
- if (eventArgs.isDefaultPrevented()) {
956
- return;
957
- }
958
- // Remove tags based on their position index
959
- if (tag instanceof Array) {
960
- // Remove group tag
961
- this.dataItems = this.dataItems.filter(function (_item, i) { return i < _this.showAfter || _this.disabledIndices.has(i); });
962
- this.valueDepth = this.valueDepth.filter(function (_item, i) { return i < _this.showAfter || _this.disabledIndices.has(i); });
963
- }
964
- else {
965
- // Remove single tag
966
- this.dataItems = this.dataItems.filter(function (_item, i) { return i !== index || _this.disabledIndices.has(i); });
967
- this.valueDepth = this.valueDepth.filter(function (_item, i) { return i !== index || _this.disabledIndices.has(i); });
968
- }
969
- this.updateValue(this.dataItems);
970
- // focus the wrapper if the component is not focused - the floating label reacts to focus/blur
971
- if (!this.isFocused) {
972
- this.focus();
973
- }
974
- };
975
- /**
976
- * @hidden
977
- */
978
- MultiSelectTreeComponent.prototype.handleTagMapperChange = function (showAfter) {
979
- this.showAfter = util_1.parseNumber(showAfter);
980
- this.setTags();
981
- };
982
- /**
983
- * @hidden
984
- */
985
- MultiSelectTreeComponent.prototype.clearAll = function (event) {
986
- var _this = this;
987
- event.stopImmediatePropagation();
988
- event.preventDefault();
989
- this.focus();
990
- this.value = this.value.filter(function (_item, index) { return _this.disabledIndices.has(index); });
991
- this.dataItems = this.dataItems.filter(function (_item, index) { return _this.disabledIndices.has(index); });
992
- this.valueDepth = this.valueDepth.filter(function (_depth, index) { return _this.disabledIndices.has(index); });
993
- this.emitValueChange(this.value);
994
- };
995
- /**
996
- * @hidden
997
- */
998
- MultiSelectTreeComponent.prototype.writeValue = function (value) {
999
- this.value = value || [];
1000
- // Update the dataItems if the value is updated programmatically (non-primitive values only)
1001
- // In the primitive case, the client should update the dataItems as well
1002
- if (!this.valuePrimitive) {
1003
- this.dataItems = this.value;
1004
- }
1005
- };
1006
- /**
1007
- * @hidden
1008
- */
1009
- MultiSelectTreeComponent.prototype.registerOnChange = function (fn) {
1010
- this.onChangeCallback = fn;
1011
- };
1012
- /**
1013
- * @hidden
1014
- */
1015
- MultiSelectTreeComponent.prototype.registerOnTouched = function (fn) {
1016
- this.onTouchedCallback = fn;
1017
- };
1018
- /**
1019
- * @hidden
1020
- */
1021
- MultiSelectTreeComponent.prototype.setDisabledState = function (isDisabled) {
1022
- this.disabled = isDisabled;
1023
- this.cdr.markForCheck();
1024
- };
1025
- /**
1026
- * @hidden
1027
- */
1028
- MultiSelectTreeComponent.prototype.handleFilterInputChange = function (term) {
1029
- var _this = this;
1030
- this.filterChange.next(term);
1031
- this.allNodesHidden = this.nodes.every(function (node, index) { return !_this.isVisible(node, String(index)); });
1032
- };
1033
- Object.defineProperty(MultiSelectTreeComponent.prototype, "filterInputClasses", {
1034
- /**
1035
- * @hidden
1036
- */
1037
- get: function () {
1038
- return (this.size ? util_1.getSizeClass('input', this.size) : '') + " " + (this.fillMode ? 'k-input-' + this.fillMode : '') + " " + (this.rounded ? util_1.getRoundedClass(this.rounded) : '');
1039
- },
1040
- enumerable: true,
1041
- configurable: true
1042
- });
1043
- Object.defineProperty(MultiSelectTreeComponent.prototype, "checkAllCheckboxClasses", {
1044
- /**
1045
- * @hidden
1046
- */
1047
- get: function () {
1048
- return "" + (this.size ? util_1.getSizeClass('checkbox', this.size) : '');
1049
- },
1050
- enumerable: true,
1051
- configurable: true
1052
- });
1053
- /**
1054
- * @hidden
1055
- */
1056
- MultiSelectTreeComponent.prototype.toggleCheckAll = function () {
1057
- this.checkAllInput.nativeElement.focus();
1058
- this.checkAllInput.nativeElement.click();
1059
- };
1060
- MultiSelectTreeComponent.prototype.verifySettings = function () {
1061
- if (!core_1.isDevMode()) {
1062
- return;
1063
- }
1064
- if (!util_1.isPresent(this.valueField) || !util_1.isPresent(this.textField)) {
1065
- throw new Error(error_messages_1.MultiSelectTreeMessages.textAndValue);
1066
- }
1067
- if (!util_1.isArray(this.value)) {
1068
- throw new Error(error_messages_1.MultiSelectTreeMessages.array);
1069
- }
1070
- if (this.value.length > 0) {
1071
- if (this.valuePrimitive && this.value.some(function (item) { return util_1.isObject(item); })) {
1072
- throw new Error(error_messages_1.MultiSelectTreeMessages.primitive);
1073
- }
1074
- var isEveryDataItemObject = this.dataItems.every(function (item) { return util_1.isObject(item.dataItem); });
1075
- if (this.valuePrimitive && !util_1.isArray(this.dataItems)) {
1076
- throw new Error(error_messages_1.MultiSelectTreeMessages.dataItems);
1077
- }
1078
- if (this.valuePrimitive && !isEveryDataItemObject) {
1079
- throw new Error(error_messages_1.MultiSelectTreeMessages.dataItems);
1080
- }
1081
- if (this.valuePrimitive && this.dataItems.length !== this.value.length) {
1082
- throw new Error(error_messages_1.MultiSelectTreeMessages.dataItemsLength);
1083
- }
1084
- if (!this.valuePrimitive && !util_1.isObjectArray(this.value)) {
1085
- throw new Error(error_messages_1.MultiSelectTreeMessages.object);
1086
- }
1087
- if ((util_1.isArray(this.valueField) || util_1.isArray(this.textField)) && !util_1.isArray(this.valueDepth)) {
1088
- throw new Error(error_messages_1.MultiSelectTreeMessages.valueDepth);
1089
- }
1090
- if ((util_1.isArray(this.valueField) || util_1.isArray(this.textField)) && this.valueDepth.length === 0) {
1091
- throw new Error(error_messages_1.MultiSelectTreeMessages.valueDepth);
1092
- }
1093
- if ((util_1.isArray(this.valueField) || util_1.isArray(this.textField)) && this.valueDepth.length !== this.value.length) {
1094
- throw new Error(error_messages_1.MultiSelectTreeMessages.valueDepthLength);
1095
- }
1096
- }
1097
- };
1098
- MultiSelectTreeComponent.prototype.emitValueChange = function (value) {
1099
- this.onChangeCallback(value);
1100
- this.valueChange.emit(value);
1101
- };
1102
- MultiSelectTreeComponent.prototype.triggerPopupEvents = function (open) {
1103
- var eventArgs = new preventable_event_1.PreventableEvent();
1104
- open ?
1105
- this.open.emit(eventArgs) :
1106
- this.close.emit(eventArgs);
1107
- return eventArgs.isDefaultPrevented();
1108
- };
1109
- MultiSelectTreeComponent.prototype.createPopup = function () {
1110
- var _this = this;
1111
- var horizontalAlign = this.direction === "rtl" ? "right" : "left";
1112
- var anchorPosition = { horizontal: horizontalAlign, vertical: 'bottom' };
1113
- var popupPosition = { horizontal: horizontalAlign, vertical: 'top' };
1114
- this.popupRef = this.popupService.open({
1115
- anchor: this.wrapper,
1116
- appendTo: this.appendTo,
1117
- anchorAlign: anchorPosition,
1118
- content: this.popupTemplate,
1119
- popupAlign: popupPosition,
1120
- positionMode: 'absolute',
1121
- popupClass: this.popupContainerClasses
1122
- });
1123
- var popupWrapper = this.popupRef.popupElement;
1124
- var _a = this.width, min = _a.min, max = _a.max;
1125
- popupWrapper.style.minWidth = min;
1126
- popupWrapper.style.width = max;
1127
- popupWrapper.style.height = this.height;
1128
- this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
1129
- this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
1130
- this.popupRef.popupOpen.subscribe(function () {
1131
- _this.cdr.detectChanges();
1132
- _this.opened.emit();
1133
- });
1134
- this.popupRef.popupClose.subscribe(function () {
1135
- _this.closed.emit();
1136
- });
1137
- };
1138
- MultiSelectTreeComponent.prototype.destroyPopup = function () {
1139
- var _this = this;
1140
- if (this.popupRef) {
1141
- this.popupRef.close();
1142
- this.popupRef = null;
1143
- this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'false');
1144
- if (this.filter !== "") {
1145
- this.filter = "";
1146
- this.allNodesHidden = false;
1147
- if (kendo_angular_common_1.hasObservers(this.filterChange)) {
1148
- this._zone.run(function () {
1149
- _this.filterChange.emit("");
1150
- });
1151
- }
1152
- }
1153
- }
1154
- };
1155
- MultiSelectTreeComponent.prototype.subscribeEvents = function () {
1156
- var _this = this;
1157
- this.subscriptions.push(this.navigationService.open.subscribe(function () { return _this.togglePopup(true); }), this.navigationService.enter
1158
- .pipe(operators_1.tap(function (event) { return event.originalEvent.preventDefault(); }))
1159
- .subscribe(function () { return _this.togglePopup(true); }), rxjs_1.merge(this.navigationService.close, this.navigationService.esc).subscribe(function () {
1160
- _this.focus();
1161
- _this.togglePopup(false);
1162
- }), this.navigationService.tab.subscribe(this.handleTabKey.bind(this)), this.navigationService.up.subscribe(this.handleUpKey.bind(this)), this.navigationService.down.subscribe(this.handleDownKey.bind(this)), this.navigationService.left
1163
- .pipe(operators_1.filter(function () { return !_this.isTreeViewActive; }))
1164
- .subscribe(this.direction === 'rtl' ? this.handleRightKey.bind(this) : this.handleLeftKey.bind(this)), this.navigationService.right
1165
- .pipe(operators_1.filter(function () { return !_this.isTreeViewActive; }))
1166
- .subscribe(this.direction === 'rtl' ? this.handleLeftKey.bind(this) : this.handleRightKey.bind(this)), this.navigationService.home.pipe(operators_1.filter(function () { return !_this.isOpen; })).subscribe(this.handleHome.bind(this)), this.navigationService.end.pipe(operators_1.filter(function () { return !_this.isOpen; })).subscribe(this.handleEnd.bind(this)), this.navigationService.backspace.pipe(operators_1.filter(function () { return _this.isTagFocused; })).subscribe(this.handleBackspace.bind(this)), this.navigationService.delete.pipe(operators_1.filter(function () { return _this.isTagFocused; })).subscribe(this.handleDelete.bind(this)));
1167
- };
1168
- MultiSelectTreeComponent.prototype.subscribeFocusEvents = function () {
1169
- var _this = this;
1170
- if (kendo_angular_common_1.isDocumentAvailable()) {
1171
- this.handleFocus = this.handleFocus.bind(this);
1172
- this.handleDocumentBlur = this.handleDocumentBlur.bind(this);
1173
- this._zone.runOutsideAngular(function () {
1174
- var useCapture = true;
1175
- document.addEventListener('focus', _this.handleFocus, useCapture);
1176
- document.addEventListener('blur', _this.handleDocumentBlur, useCapture);
1177
- });
1178
- }
1179
- };
1180
- MultiSelectTreeComponent.prototype.unSubscribeFocusEvents = function () {
1181
- if (kendo_angular_common_1.isDocumentAvailable()) {
1182
- var useCapture = true;
1183
- document.removeEventListener('focus', this.handleFocus, useCapture);
1184
- document.removeEventListener('blur', this.handleDocumentBlur, useCapture);
1185
- }
1186
- };
1187
- MultiSelectTreeComponent.prototype.handleDocumentBlur = function (event) {
1188
- if (event.target !== this.wrapper.nativeElement) {
1189
- return;
1190
- }
1191
- event.stopImmediatePropagation();
1192
- this.handleBlur(event);
1193
- };
1194
- MultiSelectTreeComponent.prototype.handleTabKey = function () {
1195
- this.focus();
1196
- if (this.isOpen) {
1197
- this.treeview.blur();
1198
- this.removeTreeViewFromTabOrder();
1199
- }
1200
- };
1201
- MultiSelectTreeComponent.prototype.handleUpKey = function (event) {
1202
- if (!this.treeview) {
1203
- return;
1204
- }
1205
- event.originalEvent.preventDefault();
1206
- // Prevent toggling the focus between the filterInput and the wrapper elements with `up` key
1207
- if (this.isWrapperActive) {
1208
- return;
1209
- }
1210
- var isFirstNodeActive = this.treeview['navigationService']['activeIndex'] === '0';
1211
- // Current focus is on the filter input => should focus the wrapper
1212
- if (this.filterable && this.isFilterActive) {
1213
- this.focus();
1214
- // Current focus is on the treeview first node => should focus the check all checkbox if enabled
1215
- }
1216
- else if (this.checkAll && !this.isCheckAllActive && isFirstNodeActive) {
1217
- this.checkAllInput.nativeElement.focus();
1218
- // Current focus is either on the check all checkbox or the treeview's first node
1219
- // => should focus either the filter input (if enabled) or the wrapper
1220
- }
1221
- else if (this.isCheckAllActive || isFirstNodeActive) {
1222
- this.filterable ?
1223
- this.filterInput.nativeElement.focus() :
1224
- this.focus();
1225
- }
1226
- };
1227
- MultiSelectTreeComponent.prototype.handleDownKey = function (event) {
1228
- if (!this.treeview) {
1229
- return;
1230
- }
1231
- event.originalEvent.preventDefault();
1232
- // Current focus is on the wrapper => should focus the filter input
1233
- if (this.filterable && this.isWrapperActive) {
1234
- this.filterInput.nativeElement.focus();
1235
- // Current focus is on the wrapper/filter input => should focus check all checkbox if enabled
1236
- }
1237
- else if (this.checkAll && (this.isWrapperActive || this.isFilterActive)) {
1238
- this.checkAllInput.nativeElement.focus();
1239
- // Should focus the treeview if filterable and check all are disabled
1240
- }
1241
- else if (!this.treeview.isActive) {
1242
- this.treeview.focus();
1243
- }
1244
- this.focusedTagIndex = undefined;
1245
- };
1246
- MultiSelectTreeComponent.prototype.handleRightKey = function (event) {
1247
- event.originalEvent.preventDefault();
1248
- var last = this.tags.length - 1;
1249
- if (this.focusedTagIndex === last) {
1250
- this.focusedTagIndex = undefined;
1251
- }
1252
- else if (this.focusedTagIndex < last) {
1253
- this.focusedTagIndex++;
1254
- }
1255
- else if (!this.focusedTagIndex) {
1256
- this.focusedTagIndex = 0;
1257
- }
1258
- };
1259
- MultiSelectTreeComponent.prototype.handleLeftKey = function (event) {
1260
- event.originalEvent.preventDefault();
1261
- if (this.focusedTagIndex === undefined || this.focusedTagIndex < 0) {
1262
- this.focusedTagIndex = this.tags.length - 1;
1263
- }
1264
- else if (this.focusedTagIndex !== 0) {
1265
- this.focusedTagIndex--;
1266
- }
1267
- };
1268
- MultiSelectTreeComponent.prototype.handleEnd = function (event) {
1269
- event.originalEvent.preventDefault();
1270
- this.focusedTagIndex = this.tags.length - 1;
1271
- };
1272
- MultiSelectTreeComponent.prototype.handleHome = function (event) {
1273
- event.originalEvent.preventDefault();
1274
- this.focusedTagIndex = 0;
1275
- };
1276
- MultiSelectTreeComponent.prototype.handleBackspace = function () {
1277
- if (this.focusedTagIndex !== undefined) {
1278
- this.handleDelete();
1279
- }
1280
- else {
1281
- var tag = this.tags[this.tags.length - 1];
1282
- var index = this.tags.length - 1;
1283
- this.handleRemoveTag({ tag: tag, index: index });
1284
- }
1285
- };
1286
- MultiSelectTreeComponent.prototype.handleDelete = function () {
1287
- var tag = this.tags[this.focusedTagIndex];
1288
- var index = this.focusedTagIndex;
1289
- this.handleRemoveTag({ tag: tag, index: index });
1290
- if (this.focusedTagIndex === this.tags.length) {
1291
- this.focusedTagIndex = undefined;
1292
- }
1293
- };
1294
- MultiSelectTreeComponent.prototype.unsubscribeEvents = function () {
1295
- this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
1296
- this.unSubscribeFocusEvents();
1297
- };
1298
- /**
1299
- * Remove the `TreeView` from the tab order, otherwise a focus loop between the page elements will occur
1300
- * and the user will not be able to tab to the rest of the browser elements
1301
- */
1302
- MultiSelectTreeComponent.prototype.removeTreeViewFromTabOrder = function () {
1303
- var _this = this;
1304
- var nodes = this.treeview.element.nativeElement.querySelectorAll('li');
1305
- nodes.forEach(function (item) {
1306
- if (item.getAttribute('tabindex') === '0') {
1307
- _this.lastNodeOnFocus = item;
1308
- _this.lastNodeOnFocus.setAttribute('tabindex', '-1');
1309
- }
1310
- });
1311
- };
1312
- MultiSelectTreeComponent.prototype.setState = function () {
1313
- if (util_1.isPresent(this.dataItems) && util_1.isPresent(this.valueField)) {
1314
- this.setTags();
1315
- this.checkedItems = this.dataItems.slice();
1316
- }
1317
- this.cdr.markForCheck();
1318
- };
1319
- MultiSelectTreeComponent.prototype.setTags = function () {
1320
- var source = this.dataItems.map(function (item) { return item.dataItem; });
1321
- this.tags = this.tagMapper(source);
1322
- this.disabledIndices = this.disabledItemsMapper();
1323
- };
1324
- MultiSelectTreeComponent.prototype.updateValue = function (value) {
1325
- var _this = this;
1326
- var newValue = this.valuePrimitive ?
1327
- value.map(function (item) { return util_1.valueFrom(item, _this.valueField); }) :
1328
- value.map(function (item) { return item.dataItem; });
1329
- this.value = newValue;
1330
- this.emitValueChange(this.value);
1331
- };
1332
- /**
1333
- * @hidden
1334
- *
1335
- * Determines which of the provided tags should be disabled and stores their position indices
1336
- */
1337
- MultiSelectTreeComponent.prototype.disabledItemsMapper = function () {
1338
- var _this = this;
1339
- return new Set(this.dataItems.reduce(function (indices, item, index) {
1340
- if (_this.itemDisabled(item.dataItem, item.index)) {
1341
- indices.push(index);
1342
- }
1343
- return indices;
1344
- }, []));
1345
- };
1346
- MultiSelectTreeComponent.prototype.setComponentClasses = function () {
1347
- if (this.size) {
1348
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
1349
- }
1350
- if (this.rounded) {
1351
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
1352
- }
1353
- if (this.fillMode) {
1354
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
1355
- }
1356
- };
1357
- var MultiSelectTreeComponent_1;
1358
- tslib_1.__decorate([
1359
- core_1.HostBinding('class.k-dropdowntree'),
1360
- core_1.HostBinding('class.k-input'),
1361
- tslib_1.__metadata("design:type", Boolean)
1362
- ], MultiSelectTreeComponent.prototype, "hostClasses", void 0);
1363
- tslib_1.__decorate([
1364
- core_1.HostBinding('class.k-disabled'),
1365
- core_1.HostBinding('attr.aria-disabled'),
1366
- tslib_1.__metadata("design:type", Boolean),
1367
- tslib_1.__metadata("design:paramtypes", [])
1368
- ], MultiSelectTreeComponent.prototype, "isDisabled", null);
1369
- tslib_1.__decorate([
1370
- core_1.HostBinding('class.k-loading'),
1371
- tslib_1.__metadata("design:type", Boolean),
1372
- tslib_1.__metadata("design:paramtypes", [])
1373
- ], MultiSelectTreeComponent.prototype, "isLoading", null);
1374
- tslib_1.__decorate([
1375
- core_1.HostBinding('attr.id'),
1376
- tslib_1.__metadata("design:type", String),
1377
- tslib_1.__metadata("design:paramtypes", [])
1378
- ], MultiSelectTreeComponent.prototype, "id", null);
1379
- tslib_1.__decorate([
1380
- core_1.HostBinding('attr.dir'),
1381
- tslib_1.__metadata("design:type", String)
1382
- ], MultiSelectTreeComponent.prototype, "direction", void 0);
1383
- tslib_1.__decorate([
1384
- core_1.HostBinding('attr.tabindex'),
1385
- tslib_1.__metadata("design:type", Number),
1386
- tslib_1.__metadata("design:paramtypes", [])
1387
- ], MultiSelectTreeComponent.prototype, "hostTabIndex", null);
1388
- tslib_1.__decorate([
1389
- core_1.HostBinding('attr.role'),
1390
- tslib_1.__metadata("design:type", String)
1391
- ], MultiSelectTreeComponent.prototype, "role", void 0);
1392
- tslib_1.__decorate([
1393
- core_1.HostBinding('attr.aria-expanded'),
1394
- tslib_1.__metadata("design:type", Boolean),
1395
- tslib_1.__metadata("design:paramtypes", [])
1396
- ], MultiSelectTreeComponent.prototype, "isAriaExpanded", null);
1397
- tslib_1.__decorate([
1398
- core_1.HostBinding('attr.aria-haspopup'),
1399
- tslib_1.__metadata("design:type", String)
1400
- ], MultiSelectTreeComponent.prototype, "ariaHasPopup", void 0);
1401
- tslib_1.__decorate([
1402
- core_1.HostBinding('attr.readonly'),
1403
- core_1.HostBinding('attr.aria-readonly'),
1404
- tslib_1.__metadata("design:type", Boolean),
1405
- tslib_1.__metadata("design:paramtypes", [])
1406
- ], MultiSelectTreeComponent.prototype, "isReadonly", null);
1407
- tslib_1.__decorate([
1408
- core_1.HostBinding('attr.aria-describedby'),
1409
- tslib_1.__metadata("design:type", String),
1410
- tslib_1.__metadata("design:paramtypes", [])
1411
- ], MultiSelectTreeComponent.prototype, "ariaDescribedBy", null);
1412
- tslib_1.__decorate([
1413
- core_1.HostBinding('attr.aria-activedescendant'),
1414
- tslib_1.__metadata("design:type", String),
1415
- tslib_1.__metadata("design:paramtypes", [])
1416
- ], MultiSelectTreeComponent.prototype, "ariaActiveDescendant", null);
1417
- tslib_1.__decorate([
1418
- core_1.HostListener('click'),
1419
- tslib_1.__metadata("design:type", Function),
1420
- tslib_1.__metadata("design:paramtypes", []),
1421
- tslib_1.__metadata("design:returntype", void 0)
1422
- ], MultiSelectTreeComponent.prototype, "handleClick", null);
1423
- tslib_1.__decorate([
1424
- core_1.HostListener('keydown', ['$event']),
1425
- tslib_1.__metadata("design:type", Function),
1426
- tslib_1.__metadata("design:paramtypes", [Object]),
1427
- tslib_1.__metadata("design:returntype", void 0)
1428
- ], MultiSelectTreeComponent.prototype, "handleKeydown", null);
1429
- tslib_1.__decorate([
1430
- core_1.ContentChild(header_template_directive_1.HeaderTemplateDirective, { static: false }),
1431
- tslib_1.__metadata("design:type", header_template_directive_1.HeaderTemplateDirective)
1432
- ], MultiSelectTreeComponent.prototype, "headerTemplate", void 0);
1433
- tslib_1.__decorate([
1434
- core_1.ContentChild(footer_template_directive_1.FooterTemplateDirective, { static: false }),
1435
- tslib_1.__metadata("design:type", footer_template_directive_1.FooterTemplateDirective)
1436
- ], MultiSelectTreeComponent.prototype, "footerTemplate", void 0);
1437
- tslib_1.__decorate([
1438
- core_1.ContentChild(node_template_directive_1.NodeTemplateDirective, { static: false }),
1439
- tslib_1.__metadata("design:type", node_template_directive_1.NodeTemplateDirective)
1440
- ], MultiSelectTreeComponent.prototype, "nodeTemplate", void 0);
1441
- tslib_1.__decorate([
1442
- core_1.ContentChild(no_data_template_directive_1.NoDataTemplateDirective, { static: false }),
1443
- tslib_1.__metadata("design:type", no_data_template_directive_1.NoDataTemplateDirective)
1444
- ], MultiSelectTreeComponent.prototype, "noDataTemplate", void 0);
1445
- tslib_1.__decorate([
1446
- core_1.ContentChild(tag_template_directive_1.TagTemplateDirective, { static: false }),
1447
- tslib_1.__metadata("design:type", tag_template_directive_1.TagTemplateDirective)
1448
- ], MultiSelectTreeComponent.prototype, "tagTemplate", void 0);
1449
- tslib_1.__decorate([
1450
- core_1.ContentChild(group_tag_template_directive_1.GroupTagTemplateDirective, { static: false }),
1451
- tslib_1.__metadata("design:type", group_tag_template_directive_1.GroupTagTemplateDirective)
1452
- ], MultiSelectTreeComponent.prototype, "groupTagTemplate", void 0);
1453
- tslib_1.__decorate([
1454
- core_1.ViewChild('popupTemplate', { static: true }),
1455
- tslib_1.__metadata("design:type", core_1.TemplateRef)
1456
- ], MultiSelectTreeComponent.prototype, "popupTemplate", void 0);
1457
- tslib_1.__decorate([
1458
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: true }),
1459
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
1460
- ], MultiSelectTreeComponent.prototype, "container", void 0);
1461
- tslib_1.__decorate([
1462
- core_1.ViewChild('treeview', { static: false }),
1463
- tslib_1.__metadata("design:type", kendo_angular_treeview_1.TreeViewComponent),
1464
- tslib_1.__metadata("design:paramtypes", [kendo_angular_treeview_1.TreeViewComponent])
1465
- ], MultiSelectTreeComponent.prototype, "treeview", null);
1466
- tslib_1.__decorate([
1467
- core_1.ViewChild('filterInput', { static: false }),
1468
- tslib_1.__metadata("design:type", core_1.ElementRef)
1469
- ], MultiSelectTreeComponent.prototype, "filterInput", void 0);
1470
- tslib_1.__decorate([
1471
- core_1.ViewChild('checkAllInput', { static: false }),
1472
- tslib_1.__metadata("design:type", core_1.ElementRef)
1473
- ], MultiSelectTreeComponent.prototype, "checkAllInput", void 0);
1474
- tslib_1.__decorate([
1475
- core_1.Input(),
1476
- tslib_1.__metadata("design:type", Number),
1477
- tslib_1.__metadata("design:paramtypes", [Number])
1478
- ], MultiSelectTreeComponent.prototype, "tabindex", null);
1479
- tslib_1.__decorate([
1480
- core_1.Input(),
1481
- tslib_1.__metadata("design:type", String),
1482
- tslib_1.__metadata("design:paramtypes", [String])
1483
- ], MultiSelectTreeComponent.prototype, "size", null);
1484
- tslib_1.__decorate([
1485
- core_1.Input(),
1486
- tslib_1.__metadata("design:type", String),
1487
- tslib_1.__metadata("design:paramtypes", [String])
1488
- ], MultiSelectTreeComponent.prototype, "rounded", null);
1489
- tslib_1.__decorate([
1490
- core_1.Input(),
1491
- tslib_1.__metadata("design:type", String),
1492
- tslib_1.__metadata("design:paramtypes", [String])
1493
- ], MultiSelectTreeComponent.prototype, "fillMode", null);
1494
- tslib_1.__decorate([
1495
- core_1.Input(),
1496
- tslib_1.__metadata("design:type", Object),
1497
- tslib_1.__metadata("design:paramtypes", [Object])
1498
- ], MultiSelectTreeComponent.prototype, "popupSettings", null);
1499
- tslib_1.__decorate([
1500
- core_1.Input(),
1501
- tslib_1.__metadata("design:type", Object),
1502
- tslib_1.__metadata("design:paramtypes", [Object])
1503
- ], MultiSelectTreeComponent.prototype, "checkableSettings", null);
1504
- tslib_1.__decorate([
1505
- core_1.Input(),
1506
- tslib_1.__metadata("design:type", Array),
1507
- tslib_1.__metadata("design:paramtypes", [Array])
1508
- ], MultiSelectTreeComponent.prototype, "data", null);
1509
- tslib_1.__decorate([
1510
- core_1.Input(),
1511
- tslib_1.__metadata("design:type", Array),
1512
- tslib_1.__metadata("design:paramtypes", [Array])
1513
- ], MultiSelectTreeComponent.prototype, "value", null);
1514
- tslib_1.__decorate([
1515
- core_1.Input(),
1516
- tslib_1.__metadata("design:type", Array),
1517
- tslib_1.__metadata("design:paramtypes", [Array])
1518
- ], MultiSelectTreeComponent.prototype, "dataItems", null);
1519
- tslib_1.__decorate([
1520
- core_1.Input(),
1521
- tslib_1.__metadata("design:type", Object)
1522
- ], MultiSelectTreeComponent.prototype, "textField", void 0);
1523
- tslib_1.__decorate([
1524
- core_1.Input(),
1525
- tslib_1.__metadata("design:type", Object)
1526
- ], MultiSelectTreeComponent.prototype, "valueField", void 0);
1527
- tslib_1.__decorate([
1528
- core_1.Input(),
1529
- tslib_1.__metadata("design:type", Array)
1530
- ], MultiSelectTreeComponent.prototype, "valueDepth", void 0);
1531
- tslib_1.__decorate([
1532
- core_1.Input(),
1533
- tslib_1.__metadata("design:type", Boolean)
1534
- ], MultiSelectTreeComponent.prototype, "loading", void 0);
1535
- tslib_1.__decorate([
1536
- core_1.Input(),
1537
- tslib_1.__metadata("design:type", String)
1538
- ], MultiSelectTreeComponent.prototype, "placeholder", void 0);
1539
- tslib_1.__decorate([
1540
- core_1.Input(),
1541
- tslib_1.__metadata("design:type", Number)
1542
- ], MultiSelectTreeComponent.prototype, "listHeight", void 0);
1543
- tslib_1.__decorate([
1544
- core_1.Input(),
1545
- tslib_1.__metadata("design:type", Boolean)
1546
- ], MultiSelectTreeComponent.prototype, "disabled", void 0);
1547
- tslib_1.__decorate([
1548
- core_1.Input(),
1549
- tslib_1.__metadata("design:type", Boolean)
1550
- ], MultiSelectTreeComponent.prototype, "readonly", void 0);
1551
- tslib_1.__decorate([
1552
- core_1.Input(),
1553
- tslib_1.__metadata("design:type", Boolean)
1554
- ], MultiSelectTreeComponent.prototype, "valuePrimitive", void 0);
1555
- tslib_1.__decorate([
1556
- core_1.Input(),
1557
- tslib_1.__metadata("design:type", Boolean)
1558
- ], MultiSelectTreeComponent.prototype, "loadOnDemand", void 0);
1559
- tslib_1.__decorate([
1560
- core_1.Input(),
1561
- tslib_1.__metadata("design:type", String)
1562
- ], MultiSelectTreeComponent.prototype, "focusableId", void 0);
1563
- tslib_1.__decorate([
1564
- core_1.Input(),
1565
- tslib_1.__metadata("design:type", Boolean)
1566
- ], MultiSelectTreeComponent.prototype, "clearButton", void 0);
1567
- tslib_1.__decorate([
1568
- core_1.Input(),
1569
- tslib_1.__metadata("design:type", Boolean)
1570
- ], MultiSelectTreeComponent.prototype, "filterable", void 0);
1571
- tslib_1.__decorate([
1572
- core_1.Input(),
1573
- tslib_1.__metadata("design:type", Boolean)
1574
- ], MultiSelectTreeComponent.prototype, "checkAll", void 0);
1575
- tslib_1.__decorate([
1576
- core_1.Input(),
1577
- tslib_1.__metadata("design:type", Function)
1578
- ], MultiSelectTreeComponent.prototype, "hasChildren", void 0);
1579
- tslib_1.__decorate([
1580
- core_1.Input(),
1581
- tslib_1.__metadata("design:type", Function)
1582
- ], MultiSelectTreeComponent.prototype, "fetchChildren", void 0);
1583
- tslib_1.__decorate([
1584
- core_1.Input(),
1585
- tslib_1.__metadata("design:type", Function)
1586
- ], MultiSelectTreeComponent.prototype, "isNodeExpanded", void 0);
1587
- tslib_1.__decorate([
1588
- core_1.Input(),
1589
- tslib_1.__metadata("design:type", Function)
1590
- ], MultiSelectTreeComponent.prototype, "isNodeVisible", void 0);
1591
- tslib_1.__decorate([
1592
- core_1.Input(),
1593
- tslib_1.__metadata("design:type", Function)
1594
- ], MultiSelectTreeComponent.prototype, "itemDisabled", void 0);
1595
- tslib_1.__decorate([
1596
- core_1.Input(),
1597
- tslib_1.__metadata("design:type", Object)
1598
- ], MultiSelectTreeComponent.prototype, "tagMapper", void 0);
1599
- tslib_1.__decorate([
1600
- core_1.Output('focus'),
1601
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1602
- ], MultiSelectTreeComponent.prototype, "onFocus", void 0);
1603
- tslib_1.__decorate([
1604
- core_1.Output('blur'),
1605
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1606
- ], MultiSelectTreeComponent.prototype, "onBlur", void 0);
1607
- tslib_1.__decorate([
1608
- core_1.Output(),
1609
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1610
- ], MultiSelectTreeComponent.prototype, "open", void 0);
1611
- tslib_1.__decorate([
1612
- core_1.Output(),
1613
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1614
- ], MultiSelectTreeComponent.prototype, "opened", void 0);
1615
- tslib_1.__decorate([
1616
- core_1.Output(),
1617
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1618
- ], MultiSelectTreeComponent.prototype, "close", void 0);
1619
- tslib_1.__decorate([
1620
- core_1.Output(),
1621
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1622
- ], MultiSelectTreeComponent.prototype, "closed", void 0);
1623
- tslib_1.__decorate([
1624
- core_1.Output(),
1625
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1626
- ], MultiSelectTreeComponent.prototype, "nodeExpand", void 0);
1627
- tslib_1.__decorate([
1628
- core_1.Output(),
1629
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1630
- ], MultiSelectTreeComponent.prototype, "nodeCollapse", void 0);
1631
- tslib_1.__decorate([
1632
- core_1.Output(),
1633
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1634
- ], MultiSelectTreeComponent.prototype, "valueChange", void 0);
1635
- tslib_1.__decorate([
1636
- core_1.Output(),
1637
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1638
- ], MultiSelectTreeComponent.prototype, "removeTag", void 0);
1639
- tslib_1.__decorate([
1640
- core_1.Output(),
1641
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1642
- ], MultiSelectTreeComponent.prototype, "filterChange", void 0);
1643
- MultiSelectTreeComponent = MultiSelectTreeComponent_1 = tslib_1.__decorate([
1644
- core_1.Component({
1645
- exportAs: 'kendoMultiSelectTree',
1646
- providers: [
1647
- kendo_angular_l10n_1.LocalizationService,
1648
- navigation_service_1.NavigationService,
1649
- data_service_1.DataService,
1650
- disabled_items_service_1.DisabledItemsService,
1651
- selection_service_1.SelectionService,
1652
- {
1653
- provide: kendo_angular_l10n_1.L10N_PREFIX,
1654
- useValue: 'kendo.multiselecttree'
1655
- },
1656
- {
1657
- multi: true,
1658
- provide: forms_1.NG_VALUE_ACCESSOR,
1659
- useExisting: core_1.forwardRef(function () { return MultiSelectTreeComponent_1; })
1660
- },
1661
- {
1662
- provide: kendo_angular_treeview_1.DataBoundComponent,
1663
- useExisting: core_1.forwardRef(function () { return MultiSelectTreeComponent_1; })
1664
- },
1665
- {
1666
- provide: kendo_angular_treeview_1.ExpandableComponent,
1667
- useExisting: core_1.forwardRef(function () { return MultiSelectTreeComponent_1; })
1668
- },
1669
- {
1670
- provide: kendo_angular_common_1.KendoInput,
1671
- useExisting: core_1.forwardRef(function () { return MultiSelectTreeComponent_1; })
1672
- }
1673
- ],
1674
- selector: 'kendo-multiselecttree',
1675
- template: "\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText=\"kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.multiselecttree.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n\n i18n-checkAllText=\"kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox\"\n checkAllText=\"Check all\"\n >\n </ng-container>\n <kendo-taglist\n [size]=\"size\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [id]=\"tagListId\"\n [tags]=\"tags\"\n [focused]=\"focusedTagIndex\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [valueDepth]=\"valueDepth\"\n [disabled]=\"disabled\"\n [tagPrefix]=\"tagPrefix\"\n [template]=\"tagTemplate\"\n [groupTemplate]=\"groupTagTemplate\"\n [disabledIndices]=\"disabledIndices\"\n (removeTag)=\"handleRemoveTag($event)\"\n >\n <span *ngIf=\"!tags || !tags.length\"\n class=\"k-input-inner k-readonly\"\n >\n <span class=\"k-input-value-text\">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf=\"!disabled && !loading && !readonly && clearButton && tags?.length\"\n class=\"k-clear-value\"\n [attr.title]=\"messageFor('clearTitle')\"\n role=\"button\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n <span\n *ngIf=\"loading\"\n class=\"k-icon k-i-loading\"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf=\"filterable\"\n class=\"k-list-filter\"\n >\n <span\n class=\"k-textbox k-input\"\n [ngClass]=\"filterInputClasses\"\n >\n <span class=\"k-input-prefix\">\n <span class=\"k-input-icon k-icon k-i-search\"></span>\n </span>\n <input\n #filterInput\n (input)=\"handleFilterInputChange($event.target.value)\"\n [filterInput]=\"filterable && !touchEnabled\"\n (keydown)=\"handleKeydown($event)\"\n [(ngModel)]=\"filter\"\n class=\"k-input-inner\"\n role=\"textbox\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n tabindex=\"0\"\n aria-disabled=\"false\"\n aria-readonly=\"false\"\n [kendoEventsOutsideAngular]=\"{\n blur: handleBlur\n }\"\n [scope]=\"this\"\n >\n </span>\n </span>\n <!--header template-->\n <ng-template\n *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate?.templateRef\n }\">\n </ng-template>\n <div *ngIf=\"checkAll\" class=\"k-check-all\">\n <input\n #checkAllInput\n [checkAll]=\"!filterable && !touchEnabled\"\n type=\"checkbox\"\n class=\"k-checkbox\"\n [ngClass]=\"checkAllCheckboxClasses\"\n role=\"checkbox\"\n tabindex=\"0\"\n aria-disabled=\"false\"\n aria-readonly=\"false\"\n [treeview]=\"treeview\"\n [checkedItems]=\"checkedItems\"\n [valueField]=\"valueField\"\n [lastAction]=\"lastAction\"\n (checkedItemsChange)=\"handleCheckedItemsChange($event)\"\n (keydown)=\"handleKeydown($event)\"\n [kendoEventsOutsideAngular]=\"{\n blur: handleBlur\n }\"\n [scope]=\"this\"\n >\n <span\n class=\"k-checkbox-label\"\n (click)=\"toggleCheckAll()\"\n (mousedown)=\"$event.preventDefault()\"\n >\n {{ messageFor('checkAllText') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]=\"size\"\n [nodes]=\"data\"\n [style.maxHeight.px]=\"listHeight\"\n [animate]=\"false\"\n kendoMultiSelectTreeCheckable\n [checkable]=\"checkableSettings\"\n [checkedItems]=\"checkedItems\"\n [valueField]=\"valueField\"\n [textField]=\"textField\"\n [children]=\"children\"\n [hasChildren]=\"hasChildren\"\n [isExpanded]=\"isNodeExpanded\"\n [isDisabled]=\"itemDisabled\"\n [nodeTemplate]=\"nodeTemplate\"\n [loadOnDemand]=\"loadOnDemand\"\n [filter]=\"filter\"\n [isVisible]=\"isNodeVisible\"\n (keydown)=\"handleKeydown($event)\"\n (nodeClick)=\"handleNodeClick($event)\"\n (expand)=\"nodeExpand.emit($event)\"\n (collapse)=\"nodeCollapse.emit($event)\"\n (checkedItemsChange)=\"handleCheckedItemsChange($event)\"\n [kendoEventsOutsideAngular]=\"{\n focusout: handleBlur\n }\"\n [scope]=\"this\"\n >\n </kendo-treeview>\n <!--footer template-->\n <ng-template\n *ngIf=\"footerTemplate\"\n [templateContext]=\"{\n templateRef: footerTemplate?.templateRef\n }\">\n </ng-template>\n <!--no-data template-->\n <div class=\"k-no-data\" *ngIf=\"data?.length === 0 || allNodesHidden\">\n <ng-template [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ messageFor('noDataText') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n "
1676
- }),
1677
- tslib_1.__param(7, core_1.Optional()), tslib_1.__param(7, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
1678
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
1679
- kendo_angular_popup_1.PopupService,
1680
- core_1.Renderer2,
1681
- navigation_service_1.NavigationService,
1682
- core_1.NgZone,
1683
- kendo_angular_l10n_1.LocalizationService,
1684
- core_1.ChangeDetectorRef, Boolean])
1685
- ], MultiSelectTreeComponent);
1686
- return MultiSelectTreeComponent;
1687
- }());
1688
- exports.MultiSelectTreeComponent = MultiSelectTreeComponent;