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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +47 -35
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +53 -39
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +1 -7
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +4 -1
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +1 -8
  34. package/common/models/size.d.ts +8 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +61 -48
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +10 -2
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +6 -4
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +10 -2
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +6 -4
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +62 -45
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +70 -52
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +296 -258
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +321 -281
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +393 -325
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +39 -46
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +51 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +69 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +50 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +47 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +410 -343
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +474 -378
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +15 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +367 -314
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +8066 -7210
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +16 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +54 -39
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +38 -114
  160. package/schematics/ngAdd/index.js +5 -2
  161. package/schematics/ngAdd/index.js.map +1 -1
  162. package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
  163. package/dist/cdn/main.js +0 -5
  164. package/dist/es/autocomplete/autocomplete.component.js +0 -1201
  165. package/dist/es/autocomplete/autocomplete.module.js +0 -36
  166. package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
  167. package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
  168. package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
  169. package/dist/es/comboboxes/combobox-column/util.js +0 -57
  170. package/dist/es/comboboxes/combobox.component.js +0 -1622
  171. package/dist/es/comboboxes/combobox.module.js +0 -52
  172. package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
  173. package/dist/es/common/constants/error-messages.js +0 -62
  174. package/dist/es/common/constants/touch-enabled.js +0 -9
  175. package/dist/es/common/data.service.js +0 -250
  176. package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
  177. package/dist/es/common/disabled-items/item-disabled.js +0 -4
  178. package/dist/es/common/filter-input.directive.js +0 -37
  179. package/dist/es/common/filtering/filter-settings.js +0 -4
  180. package/dist/es/common/filtering/filter.directive.js +0 -141
  181. package/dist/es/common/filtering/filterable-component.js +0 -17
  182. package/dist/es/common/list-item.directive.js +0 -22
  183. package/dist/es/common/list.component.js +0 -503
  184. package/dist/es/common/localization/custom-messages.component.js +0 -44
  185. package/dist/es/common/localization/localized-messages.directive.js +0 -35
  186. package/dist/es/common/localization/messages.js +0 -34
  187. package/dist/es/common/models/checkboxes-settings.js +0 -15
  188. package/dist/es/common/models/direction.js +0 -4
  189. package/dist/es/common/models/preventable-event.js +0 -29
  190. package/dist/es/common/models/remove-tag-event.js +0 -24
  191. package/dist/es/common/models/virtualization-settings.js +0 -25
  192. package/dist/es/common/navigation/navigation.service.js +0 -147
  193. package/dist/es/common/searchbar.component.js +0 -253
  194. package/dist/es/common/selection/selectable.directive.js +0 -93
  195. package/dist/es/common/selection/selection.service.js +0 -107
  196. package/dist/es/common/shared-directives.module.js +0 -60
  197. package/dist/es/common/shared.module.js +0 -45
  198. package/dist/es/common/taglist.component.js +0 -179
  199. package/dist/es/common/templates/custom-item-template.directive.js +0 -47
  200. package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
  201. package/dist/es/common/templates/footer-template.directive.js +0 -47
  202. package/dist/es/common/templates/group-tag-template.directive.js +0 -46
  203. package/dist/es/common/templates/group-template.directive.js +0 -54
  204. package/dist/es/common/templates/header-template.directive.js +0 -47
  205. package/dist/es/common/templates/item-template.directive.js +0 -46
  206. package/dist/es/common/templates/no-data-template.directive.js +0 -48
  207. package/dist/es/common/templates/tag-template.directive.js +0 -45
  208. package/dist/es/common/templates/template-context.directive.js +0 -40
  209. package/dist/es/common/templates/value-template.directive.js +0 -49
  210. package/dist/es/common/util.js +0 -337
  211. package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
  212. package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
  213. package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
  214. package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
  215. package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
  216. package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
  217. package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
  218. package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
  219. package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
  220. package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
  221. package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
  222. package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
  223. package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
  224. package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
  225. package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
  226. package/dist/es/index.js +0 -30
  227. package/dist/es/multiselect/multiselect.component.js +0 -1734
  228. package/dist/es/multiselect/multiselect.module.js +0 -50
  229. package/dist/es/multiselect/summary-tag.directive.js +0 -65
  230. package/dist/es/package-metadata.js +0 -15
  231. package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
  232. package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
  233. package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
  234. package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
  235. package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
  236. package/dist/es2015/common/filter-input.directive.js +0 -35
  237. package/dist/es2015/common/list-item.directive.js +0 -21
  238. package/dist/es2015/common/localization/custom-messages.component.js +0 -36
  239. package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
  240. package/dist/es2015/common/localization/messages.js +0 -28
  241. package/dist/es2015/common/models/fillmode.js +0 -4
  242. package/dist/es2015/common/models/list-type.js +0 -4
  243. package/dist/es2015/common/models/page-change-event.js +0 -4
  244. package/dist/es2015/common/models/popup-settings.js +0 -4
  245. package/dist/es2015/common/models/rounded.js +0 -4
  246. package/dist/es2015/common/models/size.d.ts +0 -14
  247. package/dist/es2015/common/models/size.js +0 -4
  248. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  249. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  250. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  251. package/dist/es2015/common/shared.module.js +0 -42
  252. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  253. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  254. package/dist/es2015/dropdowns.module.js +0 -50
  255. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  256. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  258. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  260. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  262. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  263. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  264. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  265. package/dist/es2015/index.d.ts +0 -30
  266. package/dist/es2015/index.js +0 -30
  267. package/dist/es2015/index.metadata.json +0 -1
  268. package/dist/es2015/main.js +0 -44
  269. package/dist/fesm5/index.js +0 -13097
  270. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  271. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  272. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  273. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  274. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  275. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  276. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  277. package/dist/npm/comboboxes/combobox.module.js +0 -54
  278. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  279. package/dist/npm/common/constants/error-messages.js +0 -64
  280. package/dist/npm/common/constants/touch-enabled.js +0 -11
  281. package/dist/npm/common/data.service.js +0 -252
  282. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  283. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  284. package/dist/npm/common/filter-input.directive.js +0 -39
  285. package/dist/npm/common/filtering/filter-settings.js +0 -6
  286. package/dist/npm/common/filtering/filter.directive.js +0 -143
  287. package/dist/npm/common/filtering/filterable-component.js +0 -19
  288. package/dist/npm/common/list-item.directive.js +0 -24
  289. package/dist/npm/common/list.component.js +0 -505
  290. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  291. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  292. package/dist/npm/common/localization/messages.js +0 -36
  293. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  294. package/dist/npm/common/models/direction.js +0 -6
  295. package/dist/npm/common/models/fillmode.js +0 -6
  296. package/dist/npm/common/models/list-type.js +0 -6
  297. package/dist/npm/common/models/page-change-event.js +0 -6
  298. package/dist/npm/common/models/popup-settings.js +0 -6
  299. package/dist/npm/common/models/preventable-event.js +0 -31
  300. package/dist/npm/common/models/remove-tag-event.js +0 -26
  301. package/dist/npm/common/models/rounded.js +0 -6
  302. package/dist/npm/common/models/size.js +0 -6
  303. package/dist/npm/common/models/virtualization-settings.js +0 -27
  304. package/dist/npm/common/navigation/navigation-action.js +0 -26
  305. package/dist/npm/common/navigation/navigation.service.js +0 -149
  306. package/dist/npm/common/searchbar.component.js +0 -255
  307. package/dist/npm/common/selection/selectable.directive.js +0 -95
  308. package/dist/npm/common/selection/selection.service.js +0 -109
  309. package/dist/npm/common/shared-directives.module.js +0 -62
  310. package/dist/npm/common/shared.module.js +0 -47
  311. package/dist/npm/common/taglist.component.js +0 -181
  312. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  313. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  314. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  315. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  316. package/dist/npm/common/templates/group-template.directive.js +0 -56
  317. package/dist/npm/common/templates/header-template.directive.js +0 -49
  318. package/dist/npm/common/templates/item-template.directive.js +0 -48
  319. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  320. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  321. package/dist/npm/common/templates/template-context.directive.js +0 -42
  322. package/dist/npm/common/templates/value-template.directive.js +0 -51
  323. package/dist/npm/common/util.js +0 -339
  324. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  325. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  326. package/dist/npm/dropdowns.module.js +0 -55
  327. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  328. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  329. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  330. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  331. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  333. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  335. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  336. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  337. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  338. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  339. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  340. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  341. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  342. package/dist/npm/index.js +0 -55
  343. package/dist/npm/main.js +0 -86
  344. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  345. package/dist/npm/multiselect/multiselect.module.js +0 -52
  346. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  347. package/dist/npm/package-metadata.js +0 -17
  348. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,52 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { NgModule } from '@angular/core';
7
- import { touchEnabled } from '@progress/kendo-common';
8
- import { ComboBoxComponent } from './combobox.component';
9
- import { MultiColumnComboBoxComponent } from './multicolumncombobox.component';
10
- import { ComboBoxColumnComponent } from './combobox-column/combobox-column.component';
11
- import { SharedModule } from '../common/shared.module';
12
- import { SharedDirectivesModule } from '../common/shared-directives.module';
13
- import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
14
- import { ColumnHeaderTemplateDirective } from './combobox-column/column-header-template.directive';
15
- import { ColumnCellTemplateDirective } from './combobox-column/column-cell-template.directive';
16
- var COMBOBOX_DIRECTIVES = [
17
- ComboBoxComponent,
18
- MultiColumnComboBoxComponent,
19
- ComboBoxColumnComponent,
20
- ColumnHeaderTemplateDirective,
21
- ColumnCellTemplateDirective
22
- ];
23
- var ɵ0 = touchEnabled;
24
- /**
25
- * @hidden
26
- *
27
- * The exported package module.
28
- *
29
- * The package exports:
30
- * - `ComboBoxComponent`—The ComboBox component class.
31
- * - `MultiColumnComboBoxComponent`—The MultiColumnComboBox component class.
32
- * - `ItemTemplateDirective`—The item template directive.
33
- * - `HeaderTemplateDirective`—The header template directive.
34
- * - `FooterTemplateDirective`—The footer template directive.
35
- * - `ColumnHeaderTemplateDirective`—The column header template directive.
36
- * - `ColumnCellTemplateDirective`—The column cell template directive.
37
- */
38
- var ComboBoxModule = /** @class */ (function () {
39
- function ComboBoxModule() {
40
- }
41
- ComboBoxModule = tslib_1.__decorate([
42
- NgModule({
43
- declarations: [COMBOBOX_DIRECTIVES],
44
- exports: [COMBOBOX_DIRECTIVES, SharedDirectivesModule],
45
- imports: [SharedModule],
46
- providers: [{ provide: TOUCH_ENABLED, useValue: ɵ0 }]
47
- })
48
- ], ComboBoxModule);
49
- return ComboBoxModule;
50
- }());
51
- export { ComboBoxModule };
52
- export { ɵ0 };
@@ -1,230 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { ChangeDetectorRef, Component, ContentChildren, ElementRef, forwardRef, HostBinding, Inject, isDevMode, NgZone, QueryList, Renderer2, ViewChild } from '@angular/core';
7
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
- import { isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
9
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
10
- import { PopupService } from '@progress/kendo-angular-popup';
11
- import { ComboBoxComponent } from './combobox.component';
12
- import { ComboBoxColumnComponent } from './combobox-column/combobox-column.component';
13
- import { DataService } from '../common/data.service';
14
- import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
15
- import { NavigationService } from '../common/navigation/navigation.service';
16
- import { SelectionService } from '../common/selection/selection.service';
17
- import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
18
- import { getSizeClass, getter, isObject, isPresent, noop } from '../common/util';
19
- import { getRowWidthFromColumnsMeta, scrollbarWidth } from './combobox-column/util';
20
- import { FilterableComponent } from '../common/filtering/filterable-component';
21
- import { MultiColumnComboBoxMessages } from '../common/constants/error-messages';
22
- /**
23
- * Represents the [Kendo UI MultiColumnComboBox component for Angular]({% slug overview_multicolumncombobox %}).
24
- */
25
- var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
26
- tslib_1.__extends(MultiColumnComboBoxComponent, _super);
27
- function MultiColumnComboBoxComponent(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, wrapper, touchEnabled) {
28
- var _this = _super.call(this, wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, touchEnabled) || this;
29
- /**
30
- * @hidden
31
- */
32
- _this.hostClasses = true;
33
- _this.removeWindowResizeListener = noop;
34
- // the row height in @progress/kendo-theme-default
35
- _this.defaultVirtualItemHeight = 36;
36
- // use a smaller virtual page size as columns with multiple cells can cause poor performance
37
- _this.defaultVirtualPageSize = 30;
38
- return _this;
39
- }
40
- MultiColumnComboBoxComponent_1 = MultiColumnComboBoxComponent;
41
- Object.defineProperty(MultiColumnComboBoxComponent.prototype, "isDisabled", {
42
- /**
43
- * @hidden
44
- */
45
- get: function () {
46
- return this.disabled;
47
- },
48
- enumerable: true,
49
- configurable: true
50
- });
51
- Object.defineProperty(MultiColumnComboBoxComponent.prototype, "header", {
52
- /**
53
- * @hidden
54
- */
55
- set: function (header) {
56
- // updates the header padding on initial render as the resize senzor doesn't kick in as early
57
- this.updateHeaderPadding(header && header.nativeElement);
58
- },
59
- enumerable: true,
60
- configurable: true
61
- });
62
- Object.defineProperty(MultiColumnComboBoxComponent.prototype, "popupWidth", {
63
- get: function () {
64
- var wrapperOffsetWidth = this.wrapper.nativeElement.offsetWidth;
65
- var min = wrapperOffsetWidth + "px";
66
- var width = this.popupSettings.width || getRowWidthFromColumnsMeta(this.columns) || wrapperOffsetWidth;
67
- var max = isNaN(width) ? width : width + "px";
68
- return { min: min, max: max };
69
- },
70
- enumerable: true,
71
- configurable: true
72
- });
73
- Object.defineProperty(MultiColumnComboBoxComponent.prototype, "tableSizeClass", {
74
- /**
75
- * @hidden
76
- */
77
- get: function () {
78
- return "" + (this.size ? getSizeClass('table', this.size) : '');
79
- },
80
- enumerable: true,
81
- configurable: true
82
- });
83
- Object.defineProperty(MultiColumnComboBoxComponent.prototype, "listContainerClasses", {
84
- /**
85
- * @hidden
86
- */
87
- get: function () {
88
- return [
89
- 'k-popup',
90
- 'k-dropdowngrid-popup'
91
- ].concat(this.popupSettings.popupClass || []);
92
- },
93
- enumerable: true,
94
- configurable: true
95
- });
96
- MultiColumnComboBoxComponent.prototype.ngAfterViewInit = function () {
97
- this.updateColumnsMediaState();
98
- this.addWindowResizeListener();
99
- };
100
- MultiColumnComboBoxComponent.prototype.ngOnDestroy = function () {
101
- _super.prototype.ngOnDestroy.call(this);
102
- this.removeWindowResizeListener();
103
- };
104
- /**
105
- * @hidden
106
- */
107
- MultiColumnComboBoxComponent.prototype.textFrom = function (dataItem, field) {
108
- return getter(dataItem, field);
109
- };
110
- /**
111
- * @hidden
112
- *
113
- * Adds or removes a padding value at the end of the header container equal to the size of the scrollbar.
114
- * As when the items container has a scrollbar, the column headers and the cells are misaligned.
115
- * When the container has a scrollbar, the padding style is added, and when there is none - it is removed.
116
- */
117
- MultiColumnComboBoxComponent.prototype.updateHeaderPadding = function (header) {
118
- if (!isPresent(header)) {
119
- return;
120
- }
121
- // the scrollbar is rendered on the left in rtl
122
- var headerPaddingPosition = this.localization.rtl ? 'padding-left' : 'padding-right';
123
- if (this.optionsList.hasScrollbar() && scrollbarWidth() > 0) {
124
- this.renderer.setStyle(header, headerPaddingPosition, scrollbarWidth() + "px");
125
- }
126
- else {
127
- this.renderer.removeStyle(header, headerPaddingPosition);
128
- }
129
- };
130
- MultiColumnComboBoxComponent.prototype.verifySettings = function () {
131
- if (!isDevMode()) {
132
- return;
133
- }
134
- if (isPresent(this.data) && this.data.length > 0 && this.data.some(function (item) { return !isObject(item); })) {
135
- throw new Error(MultiColumnComboBoxMessages.data);
136
- }
137
- if (!isPresent(this.valueField) || !isPresent(this.textField)) {
138
- throw new Error(MultiColumnComboBoxMessages.textAndValue);
139
- }
140
- _super.prototype.verifySettings.call(this);
141
- };
142
- MultiColumnComboBoxComponent.prototype.addWindowResizeListener = function () {
143
- var _this = this;
144
- if (!isDocumentAvailable()) {
145
- return;
146
- }
147
- this.zone.runOutsideAngular(function () {
148
- return _this.removeWindowResizeListener = _this.renderer.listen(window, 'resize', _this.updateColumnsMediaState.bind(_this));
149
- });
150
- };
151
- MultiColumnComboBoxComponent.prototype.updateColumnsMediaState = function () {
152
- var _this = this;
153
- if (!(isPresent(this.columns) && isDocumentAvailable())) {
154
- return;
155
- }
156
- this.columns.forEach(function (column) {
157
- var matchesMedia = !column.media || window.matchMedia(column.media).matches;
158
- if (column.matchesMedia !== matchesMedia) {
159
- column.matchesMedia = matchesMedia;
160
- if (_this.isOpen) {
161
- // enter the zone only if the popup is actually open
162
- // update its width in case it's dependent on the columns' width
163
- _this.zone.run(function () { return _this.popupRef.popupElement.style.width = _this.popupWidth.max; });
164
- }
165
- }
166
- });
167
- };
168
- var MultiColumnComboBoxComponent_1;
169
- tslib_1.__decorate([
170
- HostBinding('class.k-dropdowngrid'),
171
- tslib_1.__metadata("design:type", Boolean)
172
- ], MultiColumnComboBoxComponent.prototype, "hostClasses", void 0);
173
- tslib_1.__decorate([
174
- HostBinding('class.k-disabled'),
175
- tslib_1.__metadata("design:type", Boolean),
176
- tslib_1.__metadata("design:paramtypes", [])
177
- ], MultiColumnComboBoxComponent.prototype, "isDisabled", null);
178
- tslib_1.__decorate([
179
- ContentChildren(ComboBoxColumnComponent),
180
- tslib_1.__metadata("design:type", QueryList)
181
- ], MultiColumnComboBoxComponent.prototype, "columns", void 0);
182
- tslib_1.__decorate([
183
- ViewChild('header', { static: false }),
184
- tslib_1.__metadata("design:type", ElementRef),
185
- tslib_1.__metadata("design:paramtypes", [ElementRef])
186
- ], MultiColumnComboBoxComponent.prototype, "header", null);
187
- MultiColumnComboBoxComponent = MultiColumnComboBoxComponent_1 = tslib_1.__decorate([
188
- Component({
189
- providers: [
190
- SelectionService,
191
- DataService,
192
- NavigationService,
193
- DisabledItemsService,
194
- LocalizationService,
195
- {
196
- provide: L10N_PREFIX,
197
- useValue: 'kendo.multicolumncombobox'
198
- },
199
- {
200
- multi: true,
201
- provide: NG_VALUE_ACCESSOR,
202
- useExisting: forwardRef(function () { return MultiColumnComboBoxComponent_1; })
203
- },
204
- {
205
- provide: KendoInput,
206
- useExisting: forwardRef(function () { return MultiColumnComboBoxComponent_1; })
207
- },
208
- {
209
- provide: FilterableComponent,
210
- useExisting: forwardRef(function () { return MultiColumnComboBoxComponent_1; })
211
- }
212
- ],
213
- selector: 'kendo-multicolumncombobox',
214
- template: "\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText=\"kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.multicolumncombobox.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"getSuggestion()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n >\n </kendo-searchbar>\n\n <span\n *ngIf=\"clearButton && !loading && !disabled && !readonly && text?.length\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n aria-hidden=\"true\"\n [attr.title]=\"messageFor('clearTitle')\"\n (click)=\"clearValue($event)\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n\n <button\n #select\n tabindex=\"-1\"\n aria-hidden=\"true\"\n unselectable=\"on\"\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [ngClass]=\"selectButtonClasses\"\n [attr.aria-label]=\"messageFor('selectButtonText')\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-button-icon k-icon\" [ngClass]=\"buttonClasses\"></span>\n </button>\n\n <ng-template #popupTemplate>\n <!--user-defined header template -->\n <ng-template\n *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate?.templateRef\n }\"\n >\n </ng-template>\n\n <!--data table-->\n <div class=\"k-data-table\" [ngClass]=\"tableSizeClass\">\n\n <!--grid header-->\n <div\n #header\n class=\"k-table-header\"\n >\n <div class=\"k-table-header-wrap\">\n <table class=\"k-table\" role=\"presentation\">\n <colgroup>\n <ng-container *ngFor=\"let column of columns\">\n <col\n *ngIf=\"!column.hidden && column.matchesMedia\"\n [style.width.px]=\"column.width\"\n />\n </ng-container>\n </colgroup>\n <thead class=\"k-table-thead\">\n <tr class=\"k-table-row\">\n <ng-container *ngFor=\"let column of columns\">\n <th\n *ngIf=\"!column.hidden && column.matchesMedia\"\n class=\"k-table-th\"\n [ngStyle]=\"column.headerStyle\"\n [ngClass]=\"column.headerClass\"\n >\n <ng-container *ngIf=\"!column.headerTemplate\">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf=\"column.headerTemplate\"\n [templateContext]=\"{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }\"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n <!-- item template -->\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor=\"let column of columns\">\n <span\n *ngIf=\"!column.hidden && column.matchesMedia\"\n class=\"k-table-td\"\n [ngClass]=\"column.class\"\n [style.width.px]=\"column.width\"\n [ngStyle]=\"column.style\"\n >\n <ng-container *ngIf=\"!column.cellTemplate\">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf=\"column.cellTemplate\"\n [templateContext]=\"{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }\"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n <!--list-->\n <kendo-list\n #optionsList\n [id]=\"listBoxId\"\n [optionPrefix]=\"optionPrefix\"\n [data]=\"data\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [template]=\"{ templateRef: rowTemplate }\"\n [groupTemplate]=\"groupTemplate\"\n [fixedGroupTemplate]=\"fixedGroupTemplate\"\n [height]=\"listHeight\"\n [show]=\"isOpen\"\n [virtual]=\"virtual\"\n [type]=\"'dropdowngrid'\"\n (pageChange)=\"pageChange($event)\"\n (listResize)=\"updateHeaderPadding(header)\"\n >\n </kendo-list>\n\n <!--no-data template-->\n <div\n class=\"k-no-data\"\n *ngIf=\"data.length === 0\"\n >\n <ng-template\n [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\"\n >\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ messageFor('noDataText') }}</div>\n </ng-template>\n </div>\n\n <!--user-defined footer template-->\n <ng-container *ngIf=\"footerTemplate\">\n <div class=\"k-table-footer\">\n <table class=\"k-table\">\n <tfoot class=\"k-table-tfoot\">\n <tr class=\"k-table-row\">\n <td class=\"k-table-td\">\n <ng-template\n [templateContext]=\"{\n templateRef: footerTemplate.templateRef\n }\"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf=\"isOpen\"\n (resize)=\"onResize()\"\n >\n </kendo-resize-sensor>\n\n <!-- when the popupSettings.appendTo value is set to 'component', this container is used -->\n <ng-container #container></ng-container>\n "
215
- }),
216
- tslib_1.__param(10, Inject(TOUCH_ENABLED)),
217
- tslib_1.__metadata("design:paramtypes", [LocalizationService,
218
- PopupService,
219
- SelectionService,
220
- NavigationService,
221
- DisabledItemsService,
222
- DataService,
223
- NgZone,
224
- ChangeDetectorRef,
225
- Renderer2,
226
- ElementRef, Boolean])
227
- ], MultiColumnComboBoxComponent);
228
- return MultiColumnComboBoxComponent;
229
- }(ComboBoxComponent));
230
- export { MultiColumnComboBoxComponent };
@@ -1,62 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /* tslint:disable:variable-name */
6
- /**
7
- * @hidden
8
- */
9
- export var MultiselectMessages = {
10
- 'array': 'Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection',
11
- 'object': 'Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection',
12
- 'primitive': 'Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection',
13
- 'textAndValue': 'Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data'
14
- };
15
- /**
16
- * @hidden
17
- */
18
- export var MultiSelectTreeMessages = {
19
- 'array': 'Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection',
20
- 'primitive': 'Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values',
21
- 'object': 'Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values',
22
- 'dataItems': 'Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems',
23
- 'dataItemsLength': 'Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems',
24
- 'textAndValue': 'Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding',
25
- 'valueDepth': 'Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth',
26
- 'valueDepthLength': 'Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth'
27
- };
28
- /**
29
- * @hidden
30
- */
31
- export var ComboBoxMessages = {
32
- 'object': 'Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection',
33
- 'primitive': 'Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection',
34
- 'textAndValue': 'Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data',
35
- 'noItemHeight': 'Expected virtual.itemHeight of type number.'
36
- };
37
- /**
38
- * @hidden
39
- */
40
- export var MultiColumnComboBoxMessages = {
41
- 'data': 'Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/',
42
- 'textAndValue': 'Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration'
43
- };
44
- /**
45
- * @hidden
46
- */
47
- export var DropDownListMessages = {
48
- 'defaultItem': 'defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem',
49
- 'object': 'Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection',
50
- 'primitive': 'Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection',
51
- 'textAndValue': 'Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data'
52
- };
53
- /**
54
- * @hidden
55
- */
56
- export var DropDownTreeMessages = {
57
- 'primitive': 'Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values',
58
- 'object': 'Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values',
59
- 'dataItem': 'Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem',
60
- 'textAndValue': 'Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding',
61
- 'valueDepth': 'Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth'
62
- };
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { InjectionToken } from '@angular/core';
6
- /**
7
- * @hidden
8
- */
9
- export var TOUCH_ENABLED = new InjectionToken('dropdowns-touch-enabled');
@@ -1,250 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Injectable } from '@angular/core';
7
- import { isPresent, hasProps, getter } from './util';
8
- /**
9
- * @hidden
10
- */
11
- var DataService = /** @class */ (function () {
12
- function DataService() {
13
- this.grouped = false;
14
- this.groupIndices = [];
15
- }
16
- Object.defineProperty(DataService.prototype, "data", {
17
- get: function () {
18
- if (this.grouped) {
19
- return this._flatData;
20
- }
21
- return this._data;
22
- },
23
- set: function (data) {
24
- this._data = data;
25
- this.grouped = this.isGrouped(data);
26
- if (this.grouped) {
27
- this.groupIndices = this.getGroupIndices(data);
28
- this._flatData = this.flatten(data);
29
- }
30
- },
31
- enumerable: true,
32
- configurable: true
33
- });
34
- Object.defineProperty(DataService.prototype, "itemsCount", {
35
- /**
36
- * @hidden
37
- * Used to get the actual items count, i.e. excluding the header items in case of grouping.
38
- */
39
- get: function () {
40
- if (!isPresent(this.data) || this.data.length === 0) {
41
- return 0;
42
- }
43
- var items = this.grouped ? this._flatData.filter(function (item) { return !item.header; }) : this.data;
44
- return items.length;
45
- },
46
- enumerable: true,
47
- configurable: true
48
- });
49
- /**
50
- * @hidden
51
- * Used to determine if the component received grouped data.
52
- */
53
- DataService.prototype.isGrouped = function (data) {
54
- // GroupResult { aggregates: AggregateResult, field: string, items: object[], value: any }
55
- // https://www.telerik.com/kendo-angular-ui/components/dataquery/api/GroupResult/
56
- return (isPresent(data) && data.length !== 0) && isPresent(data[0]) && hasProps(data[0], ['aggregates', 'field', 'items', 'value']);
57
- };
58
- /**
59
- * @hidden
60
- * Used to calculate the last item index of each group.
61
- */
62
- DataService.prototype.getGroupIndices = function (data) {
63
- var groupIndices = [];
64
- for (var i = 0; i <= data.length - 1; i++) {
65
- groupIndices[i] = (groupIndices[i - 1] || 0) + data[i].items.length;
66
- }
67
- return groupIndices;
68
- };
69
- /**
70
- * @hidden
71
- * Used to get a flat array containing all items matching certain criteria.
72
- */
73
- DataService.prototype.filter = function (predicate) {
74
- var result = [];
75
- if (this.isGrouped(this.data)) {
76
- for (var i = 0; i <= this.groupIndices.length - 1; i++) {
77
- var matches = this.data[i].items.filter(predicate);
78
- if (matches) {
79
- result = result.concat(matches);
80
- }
81
- }
82
- }
83
- else {
84
- result = this.data.filter(predicate);
85
- }
86
- return result;
87
- };
88
- /**
89
- * @hidden
90
- * Used to get the index of a given data item.
91
- */
92
- DataService.prototype.indexOf = function (item, startFrom) {
93
- if (startFrom === void 0) { startFrom = 0; }
94
- var predicate = function (element) {
95
- return element === item;
96
- };
97
- if (this.grouped) {
98
- predicate = function (element) {
99
- return element.value === item;
100
- };
101
- }
102
- return this.findIndex(predicate, startFrom);
103
- };
104
- /**
105
- * @hidden
106
- * Used to get the index of a data item based on an expression.
107
- */
108
- DataService.prototype.findIndex = function (predicate, startFrom) {
109
- if (startFrom === void 0) { startFrom = 0; }
110
- var index = -1;
111
- if (this.grouped) {
112
- var data = this._flatData.filter(function (item) { return !item.header && item.offsetIndex >= startFrom; });
113
- index = data.findIndex(predicate);
114
- index = data[index] ? data[index].offsetIndex : -1;
115
- }
116
- else {
117
- var data = this.data.slice(startFrom);
118
- var itemIndex = data.findIndex(predicate);
119
- index = itemIndex !== -1 ? itemIndex + startFrom : -1;
120
- }
121
- return index;
122
- };
123
- /**
124
- * @hidden
125
- * Used to get the closest group header prior to an item index.
126
- */
127
- DataService.prototype.closestGroup = function (index) {
128
- for (var i = index; i >= 0; i--) {
129
- if (this._flatData[i].header) {
130
- return this._flatData[i];
131
- }
132
- }
133
- };
134
- /**
135
- * @hidden
136
- * Used to get the first item matching the criteria.
137
- */
138
- DataService.prototype.find = function (predicate) {
139
- var index = this.findIndex(predicate);
140
- return this.itemAt(index);
141
- };
142
- /**
143
- * @hidden
144
- * Used to get the true index in a flattened data array.
145
- */
146
- DataService.prototype.flatIndex = function (index) {
147
- if (this.itemsCount === 0) {
148
- return -1;
149
- }
150
- if (this.grouped) {
151
- var match = this._flatData.find(function (item) { return !item.header && item.offsetIndex === index; });
152
- if (match) {
153
- return match.index;
154
- }
155
- }
156
- else {
157
- return index;
158
- }
159
- return -1;
160
- };
161
- /**
162
- * @hidden
163
- * Used to get the item at the provided index.
164
- */
165
- DataService.prototype.itemAt = function (index) {
166
- var dataItem;
167
- if (this.itemsCount === 0) {
168
- return dataItem;
169
- }
170
- if (this.grouped) {
171
- var match = this._flatData.find(function (item) { return !item.header && item.offsetIndex === index; });
172
- if (match) {
173
- dataItem = match.value;
174
- }
175
- }
176
- else {
177
- dataItem = this.data[index];
178
- }
179
- return dataItem;
180
- };
181
- /**
182
- * @hidden
183
- * Used to get the group at the provided index.
184
- */
185
- DataService.prototype.groupAt = function (index) {
186
- if (this.itemsCount === 0 || !this.isGrouped) {
187
- return;
188
- }
189
- return this._flatData.find(function (item) { return item.header && item.index === index; });
190
- };
191
- /**
192
- * @hidden
193
- * Used to get the field by which the data is grouped.
194
- */
195
- DataService.prototype.groupField = function () {
196
- if (this.itemsCount === 0 || !this.isGrouped) {
197
- return null;
198
- }
199
- return this._data[0].field;
200
- };
201
- /**
202
- * @hidden
203
- * Used to get the group to which a dataItem belongs.
204
- */
205
- DataService.prototype.itemGroup = function (item) {
206
- if (!item || this.itemsCount === 0 || !this.isGrouped) {
207
- return;
208
- }
209
- var fieldName = this.groupField();
210
- if (fieldName) {
211
- return getter(item, fieldName);
212
- }
213
- };
214
- DataService.prototype.flatten = function (data, group, offset, groupIndex) {
215
- if (group === void 0) { group = undefined; }
216
- if (offset === void 0) { offset = 0; }
217
- if (groupIndex === void 0) { groupIndex = 0; }
218
- var flat = [];
219
- if (isPresent(group)) {
220
- flat.push({
221
- header: true,
222
- index: groupIndex + offset,
223
- offsetIndex: groupIndex,
224
- value: group
225
- });
226
- }
227
- for (var i = 0; i < data.length; i++) {
228
- var result = [];
229
- if (data[i].items) {
230
- result = this.flatten(data[i].items, data[i].value, offset, i);
231
- offset = offset + data[i].items.length;
232
- }
233
- else {
234
- result.push({
235
- header: false,
236
- index: groupIndex + offset + i + 1,
237
- offsetIndex: offset + i,
238
- value: data[i]
239
- });
240
- }
241
- flat = flat.concat(result);
242
- }
243
- return flat;
244
- };
245
- DataService = tslib_1.__decorate([
246
- Injectable()
247
- ], DataService);
248
- return DataService;
249
- }());
250
- export { DataService };
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Injectable } from '@angular/core';
7
- import { isPresent } from '../util';
8
- import { DataService } from '../data.service';
9
- /**
10
- * @hidden
11
- */
12
- var DisabledItemsService = /** @class */ (function () {
13
- function DisabledItemsService(dataService) {
14
- this.dataService = dataService;
15
- this.itemDisabled = null;
16
- }
17
- DisabledItemsService.prototype.isIndexDisabled = function (index) {
18
- if (this.itemDisabled) {
19
- var item = this.dataService.itemAt(index);
20
- if (isPresent(item)) {
21
- return this.itemDisabled({ dataItem: item, index: index });
22
- }
23
- else if (isPresent(this.defaultItem)) {
24
- return this.itemDisabled({ dataItem: this.defaultItem, index: -1 });
25
- }
26
- }
27
- };
28
- DisabledItemsService.prototype.isItemDisabled = function (item) {
29
- if (this.itemDisabled) {
30
- var index = this.dataService.indexOf(item);
31
- if (index !== -1) {
32
- return this.itemDisabled({ dataItem: item, index: index });
33
- }
34
- else if (isPresent(this.defaultItem)) {
35
- return this.itemDisabled({ dataItem: this.defaultItem, index: -1 });
36
- }
37
- }
38
- };
39
- DisabledItemsService = tslib_1.__decorate([
40
- Injectable(),
41
- tslib_1.__metadata("design:paramtypes", [DataService])
42
- ], DisabledItemsService);
43
- return DisabledItemsService;
44
- }());
45
- export { DisabledItemsService };