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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +47 -35
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +53 -39
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +1 -7
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +4 -1
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +1 -8
  34. package/common/models/size.d.ts +8 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +61 -48
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +10 -2
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +6 -4
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +10 -2
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +6 -4
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +62 -45
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +70 -52
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +296 -258
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +321 -281
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +393 -325
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +39 -46
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +51 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +69 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +50 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +47 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +410 -343
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +474 -378
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +15 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +367 -314
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +8066 -7210
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +16 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +54 -39
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +34 -112
  160. package/schematics/ngAdd/index.js +7 -4
  161. package/schematics/ngAdd/index.js.map +1 -1
  162. package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
  163. package/dist/cdn/main.js +0 -5
  164. package/dist/es/autocomplete/autocomplete.component.js +0 -1201
  165. package/dist/es/autocomplete/autocomplete.module.js +0 -36
  166. package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
  167. package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
  168. package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
  169. package/dist/es/comboboxes/combobox-column/util.js +0 -57
  170. package/dist/es/comboboxes/combobox.component.js +0 -1622
  171. package/dist/es/comboboxes/combobox.module.js +0 -52
  172. package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
  173. package/dist/es/common/constants/error-messages.js +0 -62
  174. package/dist/es/common/constants/touch-enabled.js +0 -9
  175. package/dist/es/common/data.service.js +0 -250
  176. package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
  177. package/dist/es/common/disabled-items/item-disabled.js +0 -4
  178. package/dist/es/common/filter-input.directive.js +0 -37
  179. package/dist/es/common/filtering/filter-settings.js +0 -4
  180. package/dist/es/common/filtering/filter.directive.js +0 -141
  181. package/dist/es/common/filtering/filterable-component.js +0 -17
  182. package/dist/es/common/list-item.directive.js +0 -22
  183. package/dist/es/common/list.component.js +0 -503
  184. package/dist/es/common/localization/custom-messages.component.js +0 -44
  185. package/dist/es/common/localization/localized-messages.directive.js +0 -35
  186. package/dist/es/common/localization/messages.js +0 -34
  187. package/dist/es/common/models/checkboxes-settings.js +0 -15
  188. package/dist/es/common/models/direction.js +0 -4
  189. package/dist/es/common/models/preventable-event.js +0 -29
  190. package/dist/es/common/models/remove-tag-event.js +0 -24
  191. package/dist/es/common/models/virtualization-settings.js +0 -25
  192. package/dist/es/common/navigation/navigation.service.js +0 -147
  193. package/dist/es/common/searchbar.component.js +0 -253
  194. package/dist/es/common/selection/selectable.directive.js +0 -93
  195. package/dist/es/common/selection/selection.service.js +0 -107
  196. package/dist/es/common/shared-directives.module.js +0 -60
  197. package/dist/es/common/shared.module.js +0 -45
  198. package/dist/es/common/taglist.component.js +0 -179
  199. package/dist/es/common/templates/custom-item-template.directive.js +0 -47
  200. package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
  201. package/dist/es/common/templates/footer-template.directive.js +0 -47
  202. package/dist/es/common/templates/group-tag-template.directive.js +0 -46
  203. package/dist/es/common/templates/group-template.directive.js +0 -54
  204. package/dist/es/common/templates/header-template.directive.js +0 -47
  205. package/dist/es/common/templates/item-template.directive.js +0 -46
  206. package/dist/es/common/templates/no-data-template.directive.js +0 -48
  207. package/dist/es/common/templates/tag-template.directive.js +0 -45
  208. package/dist/es/common/templates/template-context.directive.js +0 -40
  209. package/dist/es/common/templates/value-template.directive.js +0 -49
  210. package/dist/es/common/util.js +0 -337
  211. package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
  212. package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
  213. package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
  214. package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
  215. package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
  216. package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
  217. package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
  218. package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
  219. package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
  220. package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
  221. package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
  222. package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
  223. package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
  224. package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
  225. package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
  226. package/dist/es/index.js +0 -30
  227. package/dist/es/multiselect/multiselect.component.js +0 -1734
  228. package/dist/es/multiselect/multiselect.module.js +0 -50
  229. package/dist/es/multiselect/summary-tag.directive.js +0 -65
  230. package/dist/es/package-metadata.js +0 -15
  231. package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
  232. package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
  233. package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
  234. package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
  235. package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
  236. package/dist/es2015/common/filter-input.directive.js +0 -35
  237. package/dist/es2015/common/list-item.directive.js +0 -21
  238. package/dist/es2015/common/localization/custom-messages.component.js +0 -36
  239. package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
  240. package/dist/es2015/common/localization/messages.js +0 -28
  241. package/dist/es2015/common/models/fillmode.js +0 -4
  242. package/dist/es2015/common/models/list-type.js +0 -4
  243. package/dist/es2015/common/models/page-change-event.js +0 -4
  244. package/dist/es2015/common/models/popup-settings.js +0 -4
  245. package/dist/es2015/common/models/rounded.js +0 -4
  246. package/dist/es2015/common/models/size.d.ts +0 -14
  247. package/dist/es2015/common/models/size.js +0 -4
  248. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  249. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  250. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  251. package/dist/es2015/common/shared.module.js +0 -42
  252. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  253. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  254. package/dist/es2015/dropdowns.module.js +0 -50
  255. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  256. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  258. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  260. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  262. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  263. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  264. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  265. package/dist/es2015/index.d.ts +0 -30
  266. package/dist/es2015/index.js +0 -30
  267. package/dist/es2015/index.metadata.json +0 -1
  268. package/dist/es2015/main.js +0 -44
  269. package/dist/fesm5/index.js +0 -13097
  270. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  271. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  272. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  273. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  274. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  275. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  276. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  277. package/dist/npm/comboboxes/combobox.module.js +0 -54
  278. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  279. package/dist/npm/common/constants/error-messages.js +0 -64
  280. package/dist/npm/common/constants/touch-enabled.js +0 -11
  281. package/dist/npm/common/data.service.js +0 -252
  282. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  283. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  284. package/dist/npm/common/filter-input.directive.js +0 -39
  285. package/dist/npm/common/filtering/filter-settings.js +0 -6
  286. package/dist/npm/common/filtering/filter.directive.js +0 -143
  287. package/dist/npm/common/filtering/filterable-component.js +0 -19
  288. package/dist/npm/common/list-item.directive.js +0 -24
  289. package/dist/npm/common/list.component.js +0 -505
  290. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  291. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  292. package/dist/npm/common/localization/messages.js +0 -36
  293. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  294. package/dist/npm/common/models/direction.js +0 -6
  295. package/dist/npm/common/models/fillmode.js +0 -6
  296. package/dist/npm/common/models/list-type.js +0 -6
  297. package/dist/npm/common/models/page-change-event.js +0 -6
  298. package/dist/npm/common/models/popup-settings.js +0 -6
  299. package/dist/npm/common/models/preventable-event.js +0 -31
  300. package/dist/npm/common/models/remove-tag-event.js +0 -26
  301. package/dist/npm/common/models/rounded.js +0 -6
  302. package/dist/npm/common/models/size.js +0 -6
  303. package/dist/npm/common/models/virtualization-settings.js +0 -27
  304. package/dist/npm/common/navigation/navigation-action.js +0 -26
  305. package/dist/npm/common/navigation/navigation.service.js +0 -149
  306. package/dist/npm/common/searchbar.component.js +0 -255
  307. package/dist/npm/common/selection/selectable.directive.js +0 -95
  308. package/dist/npm/common/selection/selection.service.js +0 -109
  309. package/dist/npm/common/shared-directives.module.js +0 -62
  310. package/dist/npm/common/shared.module.js +0 -47
  311. package/dist/npm/common/taglist.component.js +0 -181
  312. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  313. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  314. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  315. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  316. package/dist/npm/common/templates/group-template.directive.js +0 -56
  317. package/dist/npm/common/templates/header-template.directive.js +0 -49
  318. package/dist/npm/common/templates/item-template.directive.js +0 -48
  319. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  320. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  321. package/dist/npm/common/templates/template-context.directive.js +0 -42
  322. package/dist/npm/common/templates/value-template.directive.js +0 -51
  323. package/dist/npm/common/util.js +0 -339
  324. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  325. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  326. package/dist/npm/dropdowns.module.js +0 -55
  327. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  328. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  329. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  330. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  331. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  333. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  335. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  336. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  337. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  338. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  339. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  340. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  341. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  342. package/dist/npm/index.js +0 -55
  343. package/dist/npm/main.js +0 -86
  344. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  345. package/dist/npm/multiselect/multiselect.module.js +0 -52
  346. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  347. package/dist/npm/package-metadata.js +0 -17
  348. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,49 +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
- /**
10
- * Renders the header content of the list. To define the header template, nest an `<ng-template>` tag
11
- * with the `kendo<ComponentName>HeaderTemplate` directive inside the component tag.
12
- *
13
- * - [Using `HeaderTemplate` with the AutoComplete]({% slug templates_autocomplete %}#toc-header-template)
14
- * - [Using `HeaderTemplate` with the ComboBox]({% slug templates_combobox %}#toc-header-template)
15
- * - [Using `HeaderTemplate` with the MultiColumnComboBox]({% slug templates_multicolumncombobox %}#toc-header-template)
16
- * - [Using `HeaderTemplate` with the DropDownList]({% slug templates_ddl %}#toc-header-template)
17
- * - [Using `HeaderTemplate` with the DropDownTree]({% slug templates_ddt %}#toc-header-template)
18
- * - [Using `HeaderTemplate` with the MultiSelect]({% slug templates_multiselect %}#toc-header-template)
19
- *
20
- * @example
21
- * ```ts
22
- * _@Component({
23
- * selector: 'my-app',
24
- * template: `
25
- * <kendo-combobox [data]="listItems">
26
- * <ng-template kendoComboBoxHeaderTemplate>
27
- * <h4>Header template</h4>
28
- * </ng-template>
29
- * </kendo-combobox>
30
- * `
31
- * })
32
- * class AppComponent {
33
- * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
34
- * }
35
- * ```
36
- */
37
- var HeaderTemplateDirective = /** @class */ (function () {
38
- function HeaderTemplateDirective(templateRef) {
39
- this.templateRef = templateRef;
40
- }
41
- HeaderTemplateDirective = tslib_1.__decorate([
42
- core_1.Directive({
43
- selector: '[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]'
44
- }),
45
- tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
46
- ], HeaderTemplateDirective);
47
- return HeaderTemplateDirective;
48
- }());
49
- exports.HeaderTemplateDirective = HeaderTemplateDirective;
@@ -1,48 +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
- /**
10
- * Renders the list item content. To define the item template, nest an `<ng-template>` tag
11
- * with the `kendo<ComponentName>ItemTemplate` directive inside the component tag. The template context is
12
- * set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
13
- *
14
- * - [Using `ItemTemplate` with the AutoComplete]({% slug templates_autocomplete %}#toc-item-template)
15
- * - [Using `ItemTemplate` with the ComboBox]({% slug templates_combobox %}#toc-item-template)
16
- * - [Using `ItemTemplate` with the DropDownList]({% slug templates_ddl %}#toc-item-template)
17
- * - [Using `ItemTemplate` with the MultiSelect]({% slug templates_multiselect %}#toc-item-template)
18
- *
19
- * @example
20
- * ```ts
21
- * _@Component({
22
- * selector: 'my-app',
23
- * template: `
24
- * <kendo-combobox [data]="listItems">
25
- * <ng-template kendoComboBoxItemTemplate let-dataItem>
26
- * <span>{{dataItem}} option</span>
27
- * </ng-template>
28
- * </kendo-combobox>
29
- * `
30
- * })
31
- * class AppComponent {
32
- * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
33
- * }
34
- * ```
35
- */
36
- var ItemTemplateDirective = /** @class */ (function () {
37
- function ItemTemplateDirective(templateRef) {
38
- this.templateRef = templateRef;
39
- }
40
- ItemTemplateDirective = tslib_1.__decorate([
41
- core_1.Directive({
42
- selector: '[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]'
43
- }),
44
- tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
45
- ], ItemTemplateDirective);
46
- return ItemTemplateDirective;
47
- }());
48
- exports.ItemTemplateDirective = ItemTemplateDirective;
@@ -1,50 +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
- /* tslint:disable:max-line-length */
9
- var core_1 = require("@angular/core");
10
- /**
11
- * Renders content when no data is available. To define the no-data template, nest a `<ng-template>` tag
12
- * with the `kendo<ComponentName>NoDataTemplate` directive inside the component tag.
13
- *
14
- * - [Using `NoDataTemplate` with the AutoComplete]({% slug templates_autocomplete %}#toc-no-data-template)
15
- * - [Using `NoDataTemplate` with the ComboBox]({% slug templates_combobox %}#toc-no-data-template)
16
- * - [Using `NoDataTemplate` with the MultiColumnComboBox]({% slug templates_multicolumncombobox %}#toc-no-data-template)
17
- * - [Using `NoDataTemplate` with the DropDownList]({% slug templates_ddl %}#toc-no-data-template)
18
- * - [Using `NoDataTemplate` with the DropDownTree]({% slug templates_ddt %}#toc-no-data-template)
19
- * - [Using `NoDataTemplate` with the MultiSelect]({% slug templates_multiselect %}#toc-no-data-template)
20
- *
21
- * @example
22
- * ```ts
23
- * _@Component({
24
- * selector: 'my-app',
25
- * template: `
26
- * <kendo-combobox [data]="listItems">
27
- * <ng-template kendoComboBoxNoDataTemplate>
28
- * <h4>No data!</h4>
29
- * </ng-template>
30
- * </kendo-combobox>
31
- * `
32
- * })
33
- * class AppComponent {
34
- * public listItems: Array<string> = [];
35
- * }
36
- * ```
37
- */
38
- var NoDataTemplateDirective = /** @class */ (function () {
39
- function NoDataTemplateDirective(templateRef) {
40
- this.templateRef = templateRef;
41
- }
42
- NoDataTemplateDirective = tslib_1.__decorate([
43
- core_1.Directive({
44
- selector: '[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]'
45
- }),
46
- tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
47
- ], NoDataTemplateDirective);
48
- return NoDataTemplateDirective;
49
- }());
50
- exports.NoDataTemplateDirective = NoDataTemplateDirective;
@@ -1,47 +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
- /* tslint:disable:max-line-length */
9
- var core_1 = require("@angular/core");
10
- /**
11
- * Renders the selected tag value of the MultiSelect
12
- * ([see example]({% slug templates_multiselect %}#toc-tag-template)).
13
- * The template context is set to the current component.
14
- * To get a reference to the current data item, use the `let-dataItem` directive.
15
- *
16
- * > The `TagTemplate` directive can only be used with the MultiSelect and MultiSelectTree components.
17
- *
18
- * @example
19
- * ```ts
20
- * _@Component({
21
- * selector: 'my-app',
22
- * template: `
23
- * <kendo-multiselect [data]="items">
24
- * <ng-template kendoMultiSelectTagTemplate let-dataItem>
25
- * <span>{{dataItem}} option</span>
26
- * </ng-template>
27
- * </kendo-multiselect>
28
- * `
29
- * })
30
- * class AppComponent {
31
- * public items: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
32
- * }
33
- * ```
34
- */
35
- var TagTemplateDirective = /** @class */ (function () {
36
- function TagTemplateDirective(templateRef) {
37
- this.templateRef = templateRef;
38
- }
39
- TagTemplateDirective = tslib_1.__decorate([
40
- core_1.Directive({
41
- selector: '[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]'
42
- }),
43
- tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
44
- ], TagTemplateDirective);
45
- return TagTemplateDirective;
46
- }());
47
- exports.TagTemplateDirective = TagTemplateDirective;
@@ -1,42 +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
- /**
10
- * @hidden
11
- */
12
- var TemplateContextDirective = /** @class */ (function () {
13
- function TemplateContextDirective(viewContainerRef) {
14
- this.viewContainerRef = viewContainerRef;
15
- }
16
- Object.defineProperty(TemplateContextDirective.prototype, "templateContext", {
17
- set: function (context) {
18
- if (this.insertedViewRef) {
19
- this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef));
20
- this.insertedViewRef = undefined;
21
- }
22
- if (context.templateRef) {
23
- this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
24
- }
25
- },
26
- enumerable: true,
27
- configurable: true
28
- });
29
- tslib_1.__decorate([
30
- core_1.Input(),
31
- tslib_1.__metadata("design:type", Object),
32
- tslib_1.__metadata("design:paramtypes", [Object])
33
- ], TemplateContextDirective.prototype, "templateContext", null);
34
- TemplateContextDirective = tslib_1.__decorate([
35
- core_1.Directive({
36
- selector: '[templateContext]' // tslint:disable-line
37
- }),
38
- tslib_1.__metadata("design:paramtypes", [core_1.ViewContainerRef])
39
- ], TemplateContextDirective);
40
- return TemplateContextDirective;
41
- }());
42
- exports.TemplateContextDirective = TemplateContextDirective;
@@ -1,51 +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
- /* tslint:disable:max-line-length */
9
- var core_1 = require("@angular/core");
10
- /**
11
- * Renders the selected value of the dropdown. To define the header template, nest an `<ng-template>` tag
12
- * with the `kendo<ComponentName>ValueTemplate` directive inside the component tag.
13
- *
14
- * The template context is set to the current component.
15
- * To get a reference to the current data item, use the `let-dataItem` directive.
16
- *
17
- * > The `ValueTemplate` directive can only be used with the DropDownList and DropDownTree components.
18
- *
19
- * - [Using `ValueTemplate` with the DropDownList]({% slug templates_ddl %}#toc-value-template)
20
- * - [Using `ValueTemplate` with the DropDownTree]({% slug templates_ddt %}#toc-value-template)
21
- *
22
- * @example
23
- * ```ts
24
- * _@Component({
25
- * selector: 'my-app',
26
- * template: `
27
- * <kendo-dropdownlist [data]="listItems">
28
- * <ng-template kendoDropDownListValueTemplate let-dataItem>
29
- * <span>{{dataItem}} option</span>
30
- * </ng-template>
31
- * </kendo-dropdownlist>
32
- * `
33
- * })
34
- * class AppComponent {
35
- * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
36
- * }
37
- * ```
38
- */
39
- var ValueTemplateDirective = /** @class */ (function () {
40
- function ValueTemplateDirective(templateRef) {
41
- this.templateRef = templateRef;
42
- }
43
- ValueTemplateDirective = tslib_1.__decorate([
44
- core_1.Directive({
45
- selector: '[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]'
46
- }),
47
- tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
48
- ], ValueTemplateDirective);
49
- return ValueTemplateDirective;
50
- }());
51
- exports.ValueTemplateDirective = ValueTemplateDirective;
@@ -1,339 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- /* tslint:disable:no-bitwise */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
9
- var kendo_common_1 = require("@progress/kendo-common");
10
- /**
11
- * @hidden
12
- */
13
- exports.isPresent = function (value) { return value !== null && value !== undefined; };
14
- /**
15
- * @hidden
16
- */
17
- exports.isNumber = function (value) { return !isNaN(value); };
18
- /**
19
- * @hidden
20
- */
21
- exports.guid = function () {
22
- var id = "";
23
- var i;
24
- var random;
25
- for (i = 0; i < 32; i++) {
26
- random = Math.random() * 16 | 0;
27
- if (i === 8 || i === 12 || i === 16 || i === 20) {
28
- id += "-";
29
- }
30
- id += (i === 12 ? 4 : (i === 16 ? (random & 3 | 8) : random)).toString(16);
31
- }
32
- return id;
33
- };
34
- /**
35
- * @hidden
36
- */
37
- exports.combineStr = function (begin, end) {
38
- return begin.concat(end.substr(end.toLowerCase().indexOf(begin.toLowerCase()) + begin.length));
39
- };
40
- /**
41
- * @hidden
42
- */
43
- exports.isWindowAvailable = function () { return typeof window !== 'undefined'; };
44
- /**
45
- * @hidden
46
- */
47
- exports.isArray = function (value) { return Array.isArray(value); };
48
- /**
49
- * @hidden
50
- */
51
- exports.isObject = function (value) { return exports.isPresent(value) && typeof value === 'object'; };
52
- /**
53
- * @hidden
54
- */
55
- exports.isEmptyString = function (value) { return typeof value === 'string' && value.length === 0; };
56
- /**
57
- * @hidden
58
- */
59
- exports.resolveValuesInArray = function (values, data, valueField) {
60
- if (data === void 0) { data = []; }
61
- return values
62
- .map(function (value) {
63
- return data.find(function (item) { return exports.getter(item, valueField) === value; });
64
- })
65
- .filter(function (value) { return value !== undefined; });
66
- };
67
- /**
68
- * @hidden
69
- */
70
- exports.validateComplexValues = function (values, valueField) {
71
- return exports.isArray(values) && values.filter(function (item) {
72
- return exports.isObject(item) && exports.isPresent(exports.getter(item, valueField));
73
- });
74
- };
75
- /**
76
- * @hidden
77
- */
78
- exports.resolveAllValues = function (value, data, valueField) {
79
- var customValues = exports.validateComplexValues(value, valueField) || [];
80
- var resolvedValues = exports.resolveValuesInArray(value, data, valueField) || [];
81
- return resolvedValues.concat(customValues);
82
- };
83
- /**
84
- * @hidden
85
- */
86
- exports.isObjectArray = function (values) {
87
- return exports.isArray(values) && values.every(function (item) { return exports.isObject(item); });
88
- };
89
- /**
90
- * @hidden
91
- */
92
- exports.selectedIndices = function (values, data, valueField) {
93
- var extractedValues = data.map(function (item) {
94
- return exports.isPresent(item) && exports.isPresent(exports.getter(item, valueField)) ? exports.getter(item, valueField) : item;
95
- });
96
- return values.reduce(function (arr, item) {
97
- var value = exports.isPresent(item) && exports.isPresent(exports.getter(item, valueField)) ? exports.getter(item, valueField) : item;
98
- var index = extractedValues.indexOf(value);
99
- if (index !== -1) {
100
- arr.push(index);
101
- }
102
- return arr;
103
- }, []);
104
- };
105
- /**
106
- * @hidden
107
- */
108
- exports.getter = function (dataItem, field) {
109
- if (!exports.isPresent(dataItem)) {
110
- return null;
111
- }
112
- if (!exports.isPresent(field) || !exports.isObject(dataItem)) {
113
- return dataItem;
114
- }
115
- // creates a field accessor supporting nested fields processing
116
- var valueFrom = kendo_common_1.getter(field);
117
- return valueFrom(dataItem);
118
- };
119
- /**
120
- * @hidden
121
- */
122
- exports.resolveValue = function (args) {
123
- var dataItem;
124
- if (exports.isPresent(args.value)) {
125
- var data = [args.defaultItem].concat(args.data);
126
- dataItem = data.find(function (element) { return exports.getter(element, args.valueField) === args.value; });
127
- return {
128
- dataItem: dataItem,
129
- focused: args.data.indexOf(dataItem),
130
- selected: args.data.indexOf(dataItem)
131
- };
132
- }
133
- else if (args.index) {
134
- dataItem = args.data[args.index];
135
- return {
136
- dataItem: args.data[args.index],
137
- focused: args.index,
138
- selected: args.index
139
- };
140
- }
141
- return {
142
- dataItem: args.defaultItem,
143
- focused: -1,
144
- selected: -1
145
- };
146
- };
147
- /**
148
- * @hidden
149
- */
150
- exports.sameCharsOnly = function (word, character) {
151
- for (var idx = 0; idx < word.length; idx++) {
152
- if (word.charAt(idx) !== character) {
153
- return false;
154
- }
155
- }
156
- return true;
157
- };
158
- /**
159
- * @hidden
160
- */
161
- exports.shuffleData = function (data, splitIndex, defaultItem) {
162
- var result = data;
163
- if (defaultItem) {
164
- result = [defaultItem].concat(result);
165
- }
166
- return result.slice(splitIndex).concat(result.slice(0, splitIndex));
167
- };
168
- /**
169
- * @hidden
170
- */
171
- exports.matchText = function (text, word, ignoreCase) {
172
- if (!exports.isPresent(text)) {
173
- return false;
174
- }
175
- var temp = String(text);
176
- if (ignoreCase) {
177
- temp = temp.toLowerCase();
178
- }
179
- return temp.indexOf(word) === 0;
180
- };
181
- /**
182
- * @hidden
183
- */
184
- exports.elementFromPoint = function (x, y) {
185
- if (!kendo_angular_common_1.isDocumentAvailable()) {
186
- return;
187
- }
188
- return document.elementFromPoint(x, y);
189
- };
190
- /**
191
- * @hidden
192
- *
193
- * Checks whether the passed object has all of the listed properties.
194
- */
195
- exports.hasProps = function (obj, props) {
196
- if (!exports.isPresent(obj)) {
197
- return false;
198
- }
199
- return props.every(function (prop) { return obj.hasOwnProperty(prop); });
200
- };
201
- /**
202
- * @hidden
203
- *
204
- * Checks whether an element is untouched by looking for the ng-untouched css class
205
- */
206
- exports.isUntouched = function (element) { return element.className.includes('ng-untouched'); };
207
- /**
208
- * @hidden
209
- */
210
- exports.noop = function (_) { };
211
- /**
212
- * IE element `matches` polyfill.
213
- * https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
214
- */
215
- var matches = function (element, selector) {
216
- var matcher = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
217
- if (!matcher) {
218
- return false;
219
- }
220
- return matcher.call(element, selector);
221
- };
222
- var ɵ0 = matches;
223
- exports.ɵ0 = ɵ0;
224
- /**
225
- * @hidden
226
- *
227
- * IE element `closest` polyfill.
228
- * https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
229
- */
230
- exports.closest = function (element, selector) {
231
- var parent = element;
232
- while (parent !== null && parent.nodeType === 1) {
233
- if (matches(parent, selector)) {
234
- return parent;
235
- }
236
- parent = parent.parentElement || parent.parentNode;
237
- }
238
- return null;
239
- };
240
- /**
241
- * @hidden
242
- *
243
- * Parses a provided value to its type 'number' representation.
244
- * If the parsed value (via Number(value)) is NaN, the provided default value is returned.
245
- * Uses 0 as default value if a second param is not provided.
246
- */
247
- exports.parseNumber = function (num, defaultValue) {
248
- if (defaultValue === void 0) { defaultValue = 0; }
249
- var normalizedValue = Number(num);
250
- return isNaN(normalizedValue) ? defaultValue : normalizedValue;
251
- };
252
- /**
253
- * @hidden
254
- *
255
- * Checks whether the passed target element is inside the provided host or popupRef.
256
- */
257
- exports.inDropDown = function (host, target, popupRef) {
258
- return host.nativeElement.contains(target) || (popupRef && popupRef.popupElement.contains(target));
259
- };
260
- /**
261
- * @hidden
262
- *
263
- * Calculates the hierarchical level of an item, based on the provided index.
264
- * The result level is zero-based (starts from 0).
265
- */
266
- exports.getHierarchicalItemLevel = function (index) {
267
- return (index || '').split('_').length - 1;
268
- };
269
- /**
270
- * @hidden
271
- *
272
- * Retrieves all descendant nodes' lookups which are currently registered in the provided lookup item as a flat array.
273
- */
274
- exports.fetchDescendentNodes = function (lookup, filterExpression) {
275
- if (!exports.isPresent(lookup) || lookup.children.length === 0) {
276
- return [];
277
- }
278
- var descendants = lookup.children;
279
- if (exports.isPresent(filterExpression)) {
280
- descendants = descendants.filter(function (descendent) { return filterExpression(descendent.item); });
281
- }
282
- descendants.forEach(function (child) {
283
- return descendants = descendants.concat(exports.fetchDescendentNodes(child, filterExpression));
284
- });
285
- return descendants;
286
- };
287
- /**
288
- * @hidden
289
- *
290
- * Retrieves the correct value based on the item's level and the provided value field/s.
291
- * Used in the MultiSelectTree component.
292
- */
293
- exports.valueFrom = function (_a, valueField) {
294
- var dataItem = _a.dataItem, index = _a.index, level = _a.level;
295
- var fields = Array.isArray(valueField) ? valueField : [valueField];
296
- // either use the explicitly provided value level, or infer it from the item index
297
- var valueLevel = exports.isPresent(level) ? level : exports.getHierarchicalItemLevel(index);
298
- // fall-back to the last available one, if the current node is in a deeper level
299
- var normalizedLevel = Math.min(valueLevel, fields.length - 1);
300
- var field = fields[normalizedLevel];
301
- return kendo_common_1.getter(field)(dataItem);
302
- };
303
- /**
304
- * @hidden
305
- * Returns the size class based on the component and size input.
306
- */
307
- exports.getSizeClass = function (component, size) {
308
- var SIZE_CLASSES = {
309
- 'small': "k-" + component + "-sm",
310
- 'medium': "k-" + component + "-md",
311
- 'large': "k-" + component + "-lg"
312
- };
313
- return SIZE_CLASSES[size];
314
- };
315
- /**
316
- * @hidden
317
- * Returns the rounded class based on the rounded input.
318
- */
319
- exports.getRoundedClass = function (rounded) {
320
- var ROUNDED_CLASSES = {
321
- 'small': 'k-rounded-sm',
322
- 'medium': 'k-rounded-md',
323
- 'large': 'k-rounded-lg',
324
- 'full': 'k-rounded-full'
325
- };
326
- return ROUNDED_CLASSES[rounded];
327
- };
328
- /**
329
- * @hidden
330
- * Return the fillMode class based on the component and fillMode input.
331
- */
332
- exports.getFillModeClass = function (component, fillMode) {
333
- var FILLMODE_CLASSES = {
334
- 'solid': "k-" + component + "-solid",
335
- 'flat': "k-" + component + "-flat",
336
- 'outline': "k-" + component + "-outline"
337
- };
338
- return FILLMODE_CLASSES[fillMode];
339
- };