@progress/kendo-angular-treelist 17.0.0-develop.9 → 17.0.0

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 (393) hide show
  1. package/binding-directives/base-binding.directive.d.ts +1 -1
  2. package/binding-directives/flat-binding.directive.d.ts +1 -1
  3. package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
  4. package/column-menu/column-chooser.component.d.ts +1 -1
  5. package/column-menu/column-list.component.d.ts +2 -2
  6. package/column-menu/column-menu-chooser.component.d.ts +1 -1
  7. package/column-menu/column-menu-filter.component.d.ts +1 -1
  8. package/column-menu/column-menu-item-base.d.ts +1 -1
  9. package/column-menu/column-menu-item.component.d.ts +1 -1
  10. package/column-menu/column-menu.component.d.ts +1 -1
  11. package/column-resizing/column-handle.directive.d.ts +1 -1
  12. package/column-resizing/column-resize.interface.d.ts +3 -3
  13. package/column-resizing/table.directive.d.ts +1 -1
  14. package/columns/checkbox-column.component.d.ts +1 -1
  15. package/columns/column-base.d.ts +1 -1
  16. package/columns/column.component.d.ts +1 -1
  17. package/columns/sort-settings.d.ts +2 -2
  18. package/columns/span-column.component.d.ts +13 -13
  19. package/common/create-form-group.d.ts +1 -1
  20. package/{pager → common}/pager-settings.d.ts +1 -1
  21. package/common/provider.service.d.ts +0 -1
  22. package/common/remove-confirmation.d.ts +1 -1
  23. package/data/treelist-item.interface.d.ts +1 -1
  24. package/directives.d.ts +7 -17
  25. package/dragdrop/context-types.d.ts +1 -1
  26. package/dragdrop/draggable-column.directive.d.ts +1 -1
  27. package/dragdrop/drop-target.directive.d.ts +1 -1
  28. package/editing/add-command-tool.directive.d.ts +38 -0
  29. package/editing/add-command.directive.d.ts +1 -1
  30. package/editing/cancel-command.directive.d.ts +1 -1
  31. package/editing/cancel-event-args.interface.d.ts +1 -1
  32. package/editing/edit-command.directive.d.ts +1 -1
  33. package/editing/edit.service.d.ts +3 -3
  34. package/editing/remove-command.directive.d.ts +1 -1
  35. package/editing/save-command.directive.d.ts +1 -1
  36. package/editing-directives/create-form-group-args.interface.d.ts +1 -1
  37. package/editing-directives/editing-directive-base.d.ts +1 -1
  38. package/editing-directives/in-cell-editing.directive.d.ts +1 -1
  39. package/editing-directives/reactive-editing.directive.d.ts +1 -1
  40. package/editing-directives/row-editing-directive-base.d.ts +0 -1
  41. package/editing-directives/template-editing.directive.d.ts +1 -2
  42. package/{esm2020 → esm2022}/binding-directives/base-binding.directive.mjs +17 -13
  43. package/{esm2020 → esm2022}/binding-directives/data-bound-tree-component.mjs +3 -3
  44. package/{esm2020 → esm2022}/binding-directives/flat-binding.directive.mjs +29 -21
  45. package/{esm2020 → esm2022}/binding-directives/hierarchy-binding.directive.mjs +26 -19
  46. package/{esm2020 → esm2022}/column-menu/column-chooser.component.mjs +26 -18
  47. package/{esm2020 → esm2022}/column-menu/column-list.component.mjs +71 -59
  48. package/{esm2020 → esm2022}/column-menu/column-locked-change-event.mjs +4 -0
  49. package/{esm2020 → esm2022}/column-menu/column-menu-chooser.component.mjs +28 -25
  50. package/{esm2020 → esm2022}/column-menu/column-menu-filter.component.mjs +23 -22
  51. package/{esm2020 → esm2022}/column-menu/column-menu-item-base.mjs +9 -6
  52. package/{esm2020 → esm2022}/column-menu/column-menu-item-content-template.directive.mjs +4 -3
  53. package/{esm2020 → esm2022}/column-menu/column-menu-item.component.mjs +67 -42
  54. package/{esm2020 → esm2022}/column-menu/column-menu-lock.component.mjs +9 -6
  55. package/{esm2020 → esm2022}/column-menu/column-menu-sort.component.mjs +8 -6
  56. package/{esm2020 → esm2022}/column-menu/column-menu-template.directive.mjs +4 -3
  57. package/{esm2020 → esm2022}/column-menu/column-menu.component.mjs +49 -25
  58. package/{esm2020 → esm2022}/column-menu/column-menu.service.mjs +23 -9
  59. package/{esm2020 → esm2022}/column-menu/column-visibility-change-event.mjs +4 -0
  60. package/{esm2020 → esm2022}/column-resizing/column-handle.directive.mjs +21 -14
  61. package/{esm2020 → esm2022}/column-resizing/column-resizing.service.mjs +8 -8
  62. package/{esm2020 → esm2022}/column-resizing/table.directive.mjs +17 -8
  63. package/{esm2020 → esm2022}/columns/checkbox-column.component.mjs +27 -12
  64. package/{esm2020 → esm2022}/columns/column-base.mjs +140 -72
  65. package/{esm2020 → esm2022}/columns/column-group.component.mjs +24 -20
  66. package/{esm2020 → esm2022}/columns/column-list.mjs +4 -3
  67. package/{esm2020 → esm2022}/columns/column.component.mjs +56 -38
  68. package/{esm2020 → esm2022}/columns/columns-container.mjs +14 -13
  69. package/{esm2020 → esm2022}/columns/command-column.component.mjs +11 -9
  70. package/{esm2020 → esm2022}/columns/rowreorder-column.component.mjs +13 -12
  71. package/{esm2020 → esm2022}/columns/span-column.component.mjs +64 -29
  72. package/{esm2020 → esm2022}/common/column-info.service.mjs +8 -9
  73. package/esm2022/common/dom-events.service.mjs +24 -0
  74. package/{esm2020 → esm2022}/common/id.service.mjs +4 -3
  75. package/{esm2020 → esm2022}/common/option-changes.service.mjs +5 -7
  76. package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
  77. package/{esm2020 → esm2022}/common/provider.service.mjs +8 -6
  78. package/{esm2020 → esm2022}/common/single-popup.service.mjs +19 -8
  79. package/{esm2020 → esm2022}/common/sort.service.mjs +1 -3
  80. package/{esm2020 → esm2022}/data/change-notification.service.mjs +6 -4
  81. package/{esm2020 → esm2022}/data/data.collection.mjs +45 -23
  82. package/{esm2020 → esm2022}/directives.mjs +8 -25
  83. package/{esm2020 → esm2022}/dragdrop/column-reorder-event.mjs +14 -0
  84. package/{esm2020 → esm2022}/dragdrop/column-reorder.service.mjs +4 -6
  85. package/{esm2020 → esm2022}/dragdrop/drag-and-drop.service.mjs +6 -8
  86. package/{esm2020 → esm2022}/dragdrop/drag-hint.service.mjs +7 -4
  87. package/{esm2020 → esm2022}/dragdrop/draggable-column.directive.mjs +22 -13
  88. package/{esm2020 → esm2022}/dragdrop/drop-cue.service.mjs +4 -3
  89. package/{esm2020 → esm2022}/dragdrop/drop-target.directive.mjs +10 -8
  90. package/esm2022/editing/add-command-tool.directive.mjs +63 -0
  91. package/{esm2020 → esm2022}/editing/add-command.directive.mjs +10 -6
  92. package/{esm2020 → esm2022}/editing/base-command.directive.mjs +9 -8
  93. package/{esm2020 → esm2022}/editing/cancel-command.directive.mjs +10 -6
  94. package/{esm2020 → esm2022}/editing/cell-close-event.mjs +20 -4
  95. package/{esm2020 → esm2022}/editing/edit-command.directive.mjs +10 -6
  96. package/{esm2020 → esm2022}/editing/edit-template.directive.mjs +4 -3
  97. package/{esm2020 → esm2022}/editing/edit.service.mjs +18 -13
  98. package/{esm2020 → esm2022}/editing/remove-command.directive.mjs +10 -6
  99. package/{esm2020 → esm2022}/editing/save-command.directive.mjs +10 -6
  100. package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +17 -7
  101. package/{esm2020 → esm2022}/editing-directives/flat-edit.service.mjs +1 -0
  102. package/{esm2020 → esm2022}/editing-directives/hierarchy-edit.service.mjs +1 -0
  103. package/{esm2020 → esm2022}/editing-directives/in-cell-editing.directive.mjs +8 -3
  104. package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +8 -3
  105. package/{esm2020 → esm2022}/editing-directives/row-editing-directive-base.mjs +3 -3
  106. package/{esm2020 → esm2022}/editing-directives/template-editing.directive.mjs +9 -3
  107. package/esm2022/excel/excel-command-tool.directive.mjs +66 -0
  108. package/{esm2020 → esm2022}/excel/excel-command.directive.mjs +10 -9
  109. package/{esm2020 → esm2022}/excel/excel-export-event.mjs +1 -0
  110. package/{esm2020 → esm2022}/excel/excel.component.mjs +71 -22
  111. package/{esm2020 → esm2022}/excel/excel.module.mjs +5 -4
  112. package/{esm2020 → esm2022}/excel/excel.service.mjs +7 -8
  113. package/{esm2020 → esm2022}/expand-state/expand-event.mjs +12 -0
  114. package/{esm2020 → esm2022}/expand-state/expand-state.service.mjs +5 -7
  115. package/{esm2020 → esm2022}/expand-state/expandable-tree-component.mjs +3 -3
  116. package/{esm2020 → esm2022}/expand-state/expandable.directive.mjs +23 -19
  117. package/{esm2020 → esm2022}/filtering/base-filter-cell.component.mjs +18 -7
  118. package/{esm2020 → esm2022}/filtering/boolean-filter.component.mjs +33 -29
  119. package/{esm2020 → esm2022}/filtering/cell/autocomplete-filter-cell.component.mjs +15 -13
  120. package/{esm2020 → esm2022}/filtering/cell/boolean-filter-cell.component.mjs +5 -4
  121. package/{esm2020 → esm2022}/filtering/cell/date-filter-cell.component.mjs +11 -10
  122. package/{esm2020 → esm2022}/filtering/cell/filter-cell-host.directive.mjs +3 -3
  123. package/{esm2020 → esm2022}/filtering/cell/filter-cell-operators.component.mjs +53 -33
  124. package/{esm2020 → esm2022}/filtering/cell/filter-cell-template.directive.mjs +4 -3
  125. package/{esm2020 → esm2022}/filtering/cell/filter-cell-wrapper.component.mjs +8 -8
  126. package/{esm2020 → esm2022}/filtering/cell/filter-cell.component.mjs +11 -8
  127. package/{esm2020 → esm2022}/filtering/cell/numeric-filter-cell.component.mjs +23 -17
  128. package/{esm2020 → esm2022}/filtering/cell/string-filter-cell.component.mjs +34 -28
  129. package/{esm2020 → esm2022}/filtering/date-filter.component.mjs +64 -39
  130. package/{esm2020 → esm2022}/filtering/filter-host.directive.mjs +8 -3
  131. package/{esm2020 → esm2022}/filtering/filter-input-wrapper.component.mjs +11 -8
  132. package/{esm2020 → esm2022}/filtering/filter-input.directive.mjs +21 -13
  133. package/{esm2020 → esm2022}/filtering/filter-row.component.mjs +11 -8
  134. package/{esm2020 → esm2022}/filtering/filter.service.mjs +7 -9
  135. package/{esm2020 → esm2022}/filtering/menu/boolean-filter-menu.component.mjs +33 -26
  136. package/{esm2020 → esm2022}/filtering/menu/date-filter-menu-input.component.mjs +21 -5
  137. package/{esm2020 → esm2022}/filtering/menu/date-filter-menu.component.mjs +22 -21
  138. package/{esm2020 → esm2022}/filtering/menu/filter-menu-container.component.mjs +28 -16
  139. package/{esm2020 → esm2022}/filtering/menu/filter-menu-host.directive.mjs +4 -3
  140. package/{esm2020 → esm2022}/filtering/menu/filter-menu-input-wrapper.component.mjs +9 -7
  141. package/{esm2020 → esm2022}/filtering/menu/filter-menu-template.directive.mjs +4 -3
  142. package/{esm2020 → esm2022}/filtering/menu/filter-menu.component.mjs +20 -8
  143. package/{esm2020 → esm2022}/filtering/menu/filter-radio-button.directive.mjs +7 -3
  144. package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu-input.component.mjs +43 -17
  145. package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu.component.mjs +32 -31
  146. package/{esm2020 → esm2022}/filtering/menu/string-filter-menu-input.component.mjs +23 -16
  147. package/{esm2020 → esm2022}/filtering/menu/string-filter-menu.component.mjs +32 -21
  148. package/{esm2020 → esm2022}/filtering/numeric-filter.component.mjs +51 -28
  149. package/{esm2020 → esm2022}/filtering/operators/after-eq-filter-operator.component.mjs +8 -8
  150. package/{esm2020 → esm2022}/filtering/operators/after-filter-operator.component.mjs +8 -8
  151. package/{esm2020 → esm2022}/filtering/operators/before-eq-filter-operator.component.mjs +8 -8
  152. package/{esm2020 → esm2022}/filtering/operators/before-filter-operator.component.mjs +8 -8
  153. package/{esm2020 → esm2022}/filtering/operators/contains-filter-operator.component.mjs +8 -8
  154. package/{esm2020 → esm2022}/filtering/operators/ends-with-filter-operator.component.mjs +8 -8
  155. package/{esm2020 → esm2022}/filtering/operators/eq-filter-operator.component.mjs +8 -8
  156. package/{esm2020 → esm2022}/filtering/operators/filter-operator.base.mjs +15 -10
  157. package/{esm2020 → esm2022}/filtering/operators/gt-filter-operator.component.mjs +8 -8
  158. package/{esm2020 → esm2022}/filtering/operators/gte-filter-operator.component.mjs +8 -8
  159. package/{esm2020 → esm2022}/filtering/operators/is-empty-filter-operator.component.mjs +8 -8
  160. package/{esm2020 → esm2022}/filtering/operators/is-not-empty-filter-operator.component.mjs +8 -8
  161. package/{esm2020 → esm2022}/filtering/operators/is-not-null-filter-operator.component.mjs +8 -8
  162. package/{esm2020 → esm2022}/filtering/operators/isnull-filter-operator.component.mjs +8 -8
  163. package/{esm2020 → esm2022}/filtering/operators/lt-filter-operator.component.mjs +8 -8
  164. package/{esm2020 → esm2022}/filtering/operators/lte-filter-operator.component.mjs +8 -8
  165. package/{esm2020 → esm2022}/filtering/operators/neq-filter-operator.component.mjs +8 -8
  166. package/{esm2020 → esm2022}/filtering/operators/not-contains-filter-operator.component.mjs +8 -8
  167. package/{esm2020 → esm2022}/filtering/operators/starts-with-filter-operator.component.mjs +8 -8
  168. package/{esm2020 → esm2022}/filtering/string-filter.component.mjs +20 -15
  169. package/{esm2020 → esm2022}/index.mjs +3 -15
  170. package/{esm2020 → esm2022}/layout/browser-support.service.mjs +7 -4
  171. package/{esm2020 → esm2022}/layout/resizable.directive.mjs +16 -10
  172. package/{esm2020 → esm2022}/layout/resize.service.mjs +6 -8
  173. package/{esm2020 → esm2022}/layout/responsive.service.mjs +7 -9
  174. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  175. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  176. package/esm2022/localization/messages.mjs +416 -0
  177. package/{esm2020 → esm2022}/navigation/default-focusable-element.mjs +10 -6
  178. package/{esm2020 → esm2022}/navigation/focus-group.mjs +12 -11
  179. package/{esm2020 → esm2022}/navigation/focus-root.mjs +5 -4
  180. package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +18 -10
  181. package/{esm2020 → esm2022}/navigation/item-map.mjs +2 -4
  182. package/{esm2020 → esm2022}/navigation/logical-cell.directive.mjs +35 -22
  183. package/{esm2020 → esm2022}/navigation/logical-row.directive.mjs +19 -13
  184. package/{esm2020 → esm2022}/navigation/model-cell.mjs +11 -0
  185. package/{esm2020 → esm2022}/navigation/navigation-cursor.mjs +10 -8
  186. package/{esm2020 → esm2022}/navigation/navigation-metadata.mjs +13 -6
  187. package/{esm2020 → esm2022}/navigation/navigation-model.mjs +1 -3
  188. package/{esm2020 → esm2022}/navigation/navigation.service.mjs +46 -26
  189. package/{esm2020 → esm2022}/navigation/treelist-focusable-element.mjs +1 -0
  190. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  191. package/esm2022/pdf/pdf-command-tool.directive.mjs +66 -0
  192. package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +10 -9
  193. package/{esm2020 → esm2022}/pdf/pdf-margin.component.mjs +3 -3
  194. package/{esm2020 → esm2022}/pdf/pdf-template.directive.mjs +3 -3
  195. package/{esm2020 → esm2022}/pdf/pdf.component.mjs +24 -4
  196. package/{esm2020 → esm2022}/pdf/pdf.module.mjs +6 -5
  197. package/{esm2020 → esm2022}/pdf/pdf.service.mjs +8 -9
  198. package/{esm2020 → esm2022}/pdf/treelist-query.mjs +4 -0
  199. package/{esm2020 → esm2022}/rendering/cell-template.directive.mjs +4 -3
  200. package/{esm2020 → esm2022}/rendering/cell.component.mjs +60 -54
  201. package/{esm2020 → esm2022}/rendering/common/col-group.component.mjs +5 -7
  202. package/{esm2020 → esm2022}/rendering/common/field-accessor.pipe.mjs +4 -3
  203. package/{esm2020 → esm2022}/rendering/common/level-items.pipe.mjs +3 -3
  204. package/{esm2020 → esm2022}/rendering/common/loading.component.mjs +9 -8
  205. package/{esm2020 → esm2022}/rendering/common/spacer.component.mjs +12 -7
  206. package/{esm2020 → esm2022}/rendering/footer-template.directive.mjs +4 -3
  207. package/{esm2020 → esm2022}/rendering/header/header-template.directive.mjs +4 -3
  208. package/{esm2020 → esm2022}/rendering/header/header.component.mjs +62 -44
  209. package/{esm2020 → esm2022}/rendering/list.component.mjs +85 -45
  210. package/{esm2020 → esm2022}/rendering/no-records-template.directive.mjs +4 -3
  211. package/{esm2020 → esm2022}/rendering/table-body.component.mjs +48 -21
  212. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-focusable.directive.mjs +9 -7
  213. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-navigation.service.mjs +9 -8
  214. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-template.directive.mjs +10 -8
  215. package/{esm2020 → esm2022}/rendering/toolbar/toolbar.component.mjs +18 -13
  216. package/{esm2020 → esm2022}/row-reordering/flat-reorder.service.mjs +3 -3
  217. package/{esm2020 → esm2022}/row-reordering/hierarchical-reorder.service.mjs +3 -3
  218. package/{esm2020 → esm2022}/row-reordering/row-reorder.service.mjs +14 -9
  219. package/{esm2020 → esm2022}/scrolling/row-height.service.mjs +2 -0
  220. package/{esm2020 → esm2022}/scrolling/scroll-request.service.mjs +4 -6
  221. package/{esm2020 → esm2022}/scrolling/scroll-sync.service.mjs +10 -8
  222. package/{esm2020 → esm2022}/scrolling/scroller.service.mjs +12 -2
  223. package/{esm2020 → esm2022}/scrolling/suspend.service.mjs +4 -6
  224. package/{esm2020 → esm2022}/selection/marquee.directive.mjs +18 -7
  225. package/{esm2020 → esm2022}/selection/selectable.directive.mjs +23 -17
  226. package/{esm2020 → esm2022}/selection/selection-change-event.mjs +12 -0
  227. package/{esm2020 → esm2022}/selection/selection-state.mjs +2 -6
  228. package/{esm2020 → esm2022}/selection/selection.service.mjs +15 -14
  229. package/{esm2020 → esm2022}/treelist.component.mjs +619 -420
  230. package/esm2022/treelist.module.mjs +173 -0
  231. package/excel/excel-command-tool.directive.d.ts +41 -0
  232. package/excel/excel.component.d.ts +1 -1
  233. package/excel/excel.module.d.ts +3 -2
  234. package/expand-state/expandable.directive.d.ts +1 -1
  235. package/{fesm2020 → fesm2022}/progress-kendo-angular-treelist.mjs +4095 -4024
  236. package/filtering/base-filter-cell.component.d.ts +5 -1
  237. package/filtering/boolean-filter.component.d.ts +2 -7
  238. package/filtering/cell/autocomplete-filter-cell.component.d.ts +2 -7
  239. package/filtering/cell/date-filter-cell.component.d.ts +1 -1
  240. package/filtering/cell/filter-cell-operators.component.d.ts +1 -1
  241. package/filtering/cell/filter-cell-wrapper.component.d.ts +1 -1
  242. package/filtering/cell/filter-cell.component.d.ts +1 -1
  243. package/filtering/cell/numeric-filter-cell.component.d.ts +1 -1
  244. package/filtering/cell/string-filter-cell.component.d.ts +1 -1
  245. package/filtering/date-filter.component.d.ts +2 -11
  246. package/filtering/filter-host.directive.d.ts +2 -2
  247. package/filtering/filter-input-wrapper.component.d.ts +1 -2
  248. package/filtering/filter-input.directive.d.ts +1 -1
  249. package/filtering/filter-row.component.d.ts +1 -2
  250. package/filtering/filterable.d.ts +1 -1
  251. package/filtering/menu/boolean-filter-menu.component.d.ts +1 -1
  252. package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
  253. package/filtering/menu/date-filter-menu.component.d.ts +1 -7
  254. package/filtering/menu/filter-menu-container.component.d.ts +1 -1
  255. package/filtering/menu/filter-menu-host.directive.d.ts +1 -1
  256. package/filtering/menu/filter-menu-input-wrapper.component.d.ts +1 -1
  257. package/filtering/menu/filter-menu.component.d.ts +1 -4
  258. package/filtering/menu/filter-radio-button.directive.d.ts +1 -1
  259. package/filtering/menu/numeric-filter-menu-input.component.d.ts +1 -1
  260. package/filtering/menu/numeric-filter-menu.component.d.ts +1 -7
  261. package/filtering/menu/string-filter-menu-input.component.d.ts +1 -1
  262. package/filtering/menu/string-filter-menu.component.d.ts +1 -7
  263. package/filtering/numeric-filter.component.d.ts +2 -11
  264. package/filtering/operators/filter-operator.base.d.ts +1 -1
  265. package/filtering/string-filter.component.d.ts +2 -11
  266. package/index.d.ts +4 -17
  267. package/layout/resizable.directive.d.ts +1 -1
  268. package/localization/messages.d.ts +6 -2
  269. package/navigation/focusable.directive.d.ts +1 -1
  270. package/navigation/logical-cell.directive.d.ts +1 -1
  271. package/navigation/logical-row.directive.d.ts +1 -1
  272. package/navigation/navigation.service.d.ts +1 -1
  273. package/package.json +27 -32
  274. package/pdf/pdf-command-tool.directive.d.ts +41 -0
  275. package/pdf/pdf-margin.interface.d.ts +1 -1
  276. package/pdf/pdf.component.d.ts +1 -7
  277. package/pdf/pdf.module.d.ts +3 -2
  278. package/rendering/cell.component.d.ts +2 -1
  279. package/rendering/common/col-group.component.d.ts +1 -1
  280. package/rendering/common/row-class.d.ts +2 -2
  281. package/rendering/common/spacer.component.d.ts +1 -1
  282. package/rendering/header/header.component.d.ts +2 -2
  283. package/rendering/list.component.d.ts +1 -1
  284. package/rendering/table-body.component.d.ts +1 -1
  285. package/rendering/toolbar/toolbar-template.directive.d.ts +1 -1
  286. package/rendering/toolbar/toolbar.component.d.ts +1 -1
  287. package/row-reordering/types.d.ts +1 -1
  288. package/schematics/ngAdd/index.js +4 -4
  289. package/scrolling/scroll-sync.service.d.ts +1 -1
  290. package/scrolling/scroller.service.d.ts +1 -1
  291. package/scrolling/scrollmode.d.ts +1 -1
  292. package/selection/is-selected.d.ts +1 -1
  293. package/selection/selectable.directive.d.ts +1 -1
  294. package/treelist.component.d.ts +4 -3
  295. package/treelist.module.d.ts +60 -65
  296. package/utils.d.ts +1 -1
  297. package/constants.d.ts +0 -12
  298. package/esm2020/common/dom-events.service.mjs +0 -26
  299. package/esm2020/constants.mjs +0 -12
  300. package/esm2020/filtering/cell/row-filtering.module.mjs +0 -77
  301. package/esm2020/filtering/menu/filter-menu.module.mjs +0 -80
  302. package/esm2020/filtering/shared-filtering.module.mjs +0 -94
  303. package/esm2020/localization/messages.mjs +0 -138
  304. package/esm2020/pager/pager-context.service.mjs +0 -42
  305. package/esm2020/pager/pager-element.component.mjs +0 -103
  306. package/esm2020/pager/pager-info.component.mjs +0 -75
  307. package/esm2020/pager/pager-input.component.mjs +0 -144
  308. package/esm2020/pager/pager-next-buttons.component.mjs +0 -126
  309. package/esm2020/pager/pager-numeric-buttons.component.mjs +0 -244
  310. package/esm2020/pager/pager-page-sizes.component.mjs +0 -139
  311. package/esm2020/pager/pager-prev-buttons.component.mjs +0 -126
  312. package/esm2020/pager/pager-template.directive.mjs +0 -48
  313. package/esm2020/pager/pager.component.mjs +0 -415
  314. package/esm2020/pager/pager.module.mjs +0 -43
  315. package/esm2020/pager/pagesize-item.interface.mjs +0 -5
  316. package/esm2020/rendering/body.module.mjs +0 -40
  317. package/esm2020/rendering/header/header.module.mjs +0 -94
  318. package/esm2020/shared.module.mjs +0 -41
  319. package/esm2020/treelist.module.mjs +0 -176
  320. package/fesm2015/progress-kendo-angular-treelist.mjs +0 -21537
  321. package/filtering/cell/row-filtering.module.d.ts +0 -57
  322. package/filtering/menu/filter-menu.module.d.ts +0 -60
  323. package/filtering/shared-filtering.module.d.ts +0 -52
  324. package/pager/pager-context.service.d.ts +0 -32
  325. package/pager/pager-element.component.d.ts +0 -74
  326. package/pager/pager-info.component.d.ts +0 -43
  327. package/pager/pager-input.component.d.ts +0 -45
  328. package/pager/pager-next-buttons.component.d.ts +0 -36
  329. package/pager/pager-numeric-buttons.component.d.ts +0 -52
  330. package/pager/pager-page-sizes.component.d.ts +0 -48
  331. package/pager/pager-prev-buttons.component.d.ts +0 -32
  332. package/pager/pager-template.directive.d.ts +0 -38
  333. package/pager/pager.component.d.ts +0 -73
  334. package/pager/pager.module.d.ts +0 -27
  335. package/pager/pagesize-item.interface.d.ts +0 -14
  336. package/rendering/body.module.d.ts +0 -28
  337. package/rendering/header/header.module.d.ts +0 -84
  338. package/shared.module.d.ts +0 -29
  339. /package/{esm2020 → esm2022}/column-menu/column-menu-settings.interface.mjs +0 -0
  340. /package/{esm2020 → esm2022}/column-menu/utils.mjs +0 -0
  341. /package/{esm2020 → esm2022}/column-resizing/column-resize.interface.mjs +0 -0
  342. /package/{esm2020 → esm2022}/columns/column-common.mjs +0 -0
  343. /package/{esm2020 → esm2022}/columns/sort-settings.mjs +0 -0
  344. /package/{esm2020 → esm2022}/common/cell-click-event-args.interface.mjs +0 -0
  345. /package/{esm2020 → esm2022}/common/create-form-group.mjs +0 -0
  346. /package/{esm2020 → esm2022}/common/default-track-by.mjs +0 -0
  347. /package/{esm2020 → esm2022}/common/filter-descriptor-differ.mjs +0 -0
  348. /package/{esm2020 → esm2022}/common/filter-operator.interface.mjs +0 -0
  349. /package/{esm2020/pager → esm2022/common}/pager-settings.mjs +0 -0
  350. /package/{esm2020 → esm2022}/common/remove-confirmation.mjs +0 -0
  351. /package/{esm2020 → esm2022}/data/change-event-args.interface.mjs +0 -0
  352. /package/{esm2020 → esm2022}/data/data-item.interface.mjs +0 -0
  353. /package/{esm2020 → esm2022}/data/treelist-item.interface.mjs +0 -0
  354. /package/{esm2020 → esm2022}/dragdrop/column-reorder-config.mjs +0 -0
  355. /package/{esm2020 → esm2022}/dragdrop/common.mjs +0 -0
  356. /package/{esm2020 → esm2022}/dragdrop/context-types.mjs +0 -0
  357. /package/{esm2020 → esm2022}/editing/add-event-args.interface.mjs +0 -0
  358. /package/{esm2020 → esm2022}/editing/cancel-event-args.interface.mjs +0 -0
  359. /package/{esm2020 → esm2022}/editing/edit-event-args.interface.mjs +0 -0
  360. /package/{esm2020 → esm2022}/editing/remove-event-args.interface.mjs +0 -0
  361. /package/{esm2020 → esm2022}/editing/save-event-args.interface.mjs +0 -0
  362. /package/{esm2020 → esm2022}/editing-directives/create-form-group-args.interface.mjs +0 -0
  363. /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
  364. /package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +0 -0
  365. /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
  366. /package/{esm2020 → esm2022}/excel/excel-export-data.interface.mjs +0 -0
  367. /package/{esm2020 → esm2022}/filtering/cell/filter-cell-component.factory.mjs +0 -0
  368. /package/{esm2020 → esm2022}/filtering/filter-component.interface.mjs +0 -0
  369. /package/{esm2020 → esm2022}/filtering/filterable.mjs +0 -0
  370. /package/{esm2020 → esm2022}/filtering/menu/filter-menu-component.factory.mjs +0 -0
  371. /package/{esm2020 → esm2022}/layout/row-sync.mjs +0 -0
  372. /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
  373. /package/{esm2020 → esm2022}/navigation/logical-cell.interface.mjs +0 -0
  374. /package/{esm2020 → esm2022}/navigation/logical-row.interface.mjs +0 -0
  375. /package/{esm2020 → esm2022}/navigation/navigation-cell.interface.mjs +0 -0
  376. /package/{esm2020 → esm2022}/navigation/navigation-change.interface.mjs +0 -0
  377. /package/{esm2020 → esm2022}/navigation/navigation-mode.mjs +0 -0
  378. /package/{esm2020 → esm2022}/navigation/navigation-row.interface.mjs +0 -0
  379. /package/{esm2020 → esm2022}/pdf/export-element.mjs +0 -0
  380. /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
  381. /package/{esm2020 → esm2022}/pdf/pdf-margin.interface.mjs +0 -0
  382. /package/{esm2020 → esm2022}/progress-kendo-angular-treelist.mjs +0 -0
  383. /package/{esm2020 → esm2022}/rendering/common/dom-queries.mjs +0 -0
  384. /package/{esm2020 → esm2022}/rendering/common/row-class.mjs +0 -0
  385. /package/{esm2020 → esm2022}/rendering/constants.mjs +0 -0
  386. /package/{esm2020 → esm2022}/row-reordering/types.mjs +0 -0
  387. /package/{esm2020 → esm2022}/row-reordering/utils.mjs +0 -0
  388. /package/{esm2020 → esm2022}/scrolling/content-scroll-event.mjs +0 -0
  389. /package/{esm2020 → esm2022}/scrolling/scroll-bottom-event.mjs +0 -0
  390. /package/{esm2020 → esm2022}/scrolling/scrollmode.mjs +0 -0
  391. /package/{esm2020 → esm2022}/selection/is-selected.mjs +0 -0
  392. /package/{esm2020 → esm2022}/selection/selectable-settings.mjs +0 -0
  393. /package/{esm2020 → esm2022}/utils.mjs +0 -0
@@ -18,16 +18,17 @@ function nextId() {
18
18
  * @hidden
19
19
  */
20
20
  export class LogicalRowDirective {
21
- constructor(idService, navigation) {
22
- this.idService = idService;
23
- this.navigation = navigation;
24
- this.logicalSlaveRow = false;
25
- this.logicalSlaveCellsCount = 0;
26
- this.dataRowIndex = -1;
27
- this.isNew = false;
28
- this.uid = nextId();
29
- this.tableRowClass = true;
30
- }
21
+ idService;
22
+ navigation;
23
+ logicalRowIndex;
24
+ logicalSlaveRow = false;
25
+ logicalCellsCount;
26
+ logicalSlaveCellsCount = 0;
27
+ dataRowIndex = -1;
28
+ dataItem;
29
+ isNew = false;
30
+ totalColumns;
31
+ uid = nextId();
31
32
  get hostRole() {
32
33
  return this.logicalSlaveRow ? 'presentation' : 'row';
33
34
  }
@@ -64,6 +65,11 @@ export class LogicalRowDirective {
64
65
  }
65
66
  return ids.join(' ');
66
67
  }
68
+ tableRowClass = true;
69
+ constructor(idService, navigation) {
70
+ this.idService = idService;
71
+ this.navigation = navigation;
72
+ }
67
73
  ngOnChanges(changes) {
68
74
  if (!this.navigation.enabled || this.logicalSlaveRow) {
69
75
  return;
@@ -86,10 +92,10 @@ export class LogicalRowDirective {
86
92
  get columnsArray() {
87
93
  return this.totalColumns?.allColumns.toArray() || [];
88
94
  }
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogicalRowDirective, deps: [{ token: i1.IdService }, { token: i2.NavigationService }], target: i0.ɵɵFactoryTarget.Directive });
96
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LogicalRowDirective, isStandalone: true, selector: "[kendoTreeListLogicalRow]", inputs: { logicalRowIndex: "logicalRowIndex", logicalSlaveRow: "logicalSlaveRow", logicalCellsCount: "logicalCellsCount", logicalSlaveCellsCount: "logicalSlaveCellsCount", dataRowIndex: "dataRowIndex", dataItem: "dataItem", isNew: "isNew", totalColumns: "totalColumns" }, host: { properties: { "attr.role": "this.hostRole", "attr.aria-rowindex": "this.ariaRowIndex", "attr.data-kendo-treelist-row-index": "this.rowIndex", "attr.aria-owns": "this.ariaOwns", "class.k-table-row": "this.tableRowClass" } }, usesOnChanges: true, ngImport: i0 });
89
97
  }
90
- LogicalRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LogicalRowDirective, deps: [{ token: i1.IdService }, { token: i2.NavigationService }], target: i0.ɵɵFactoryTarget.Directive });
91
- LogicalRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LogicalRowDirective, isStandalone: true, selector: "[kendoTreeListLogicalRow]", inputs: { logicalRowIndex: "logicalRowIndex", logicalSlaveRow: "logicalSlaveRow", logicalCellsCount: "logicalCellsCount", logicalSlaveCellsCount: "logicalSlaveCellsCount", dataRowIndex: "dataRowIndex", dataItem: "dataItem", isNew: "isNew", totalColumns: "totalColumns" }, host: { properties: { "attr.role": "this.hostRole", "attr.aria-rowindex": "this.ariaRowIndex", "attr.data-kendo-treelist-row-index": "this.rowIndex", "attr.aria-owns": "this.ariaOwns", "class.k-table-row": "this.tableRowClass" } }, usesOnChanges: true, ngImport: i0 });
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LogicalRowDirective, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogicalRowDirective, decorators: [{
93
99
  type: Directive,
94
100
  args: [{
95
101
  selector: '[kendoTreeListLogicalRow]',
@@ -6,6 +6,17 @@
6
6
  * @hidden
7
7
  */
8
8
  export class ModelCell {
9
+ uid;
10
+ column;
11
+ colIndex;
12
+ rowIndex;
13
+ colSpan;
14
+ rowSpan;
15
+ dataRowIndex;
16
+ dataItem;
17
+ parent;
18
+ focusGroup;
19
+ expandable;
9
20
  constructor(modelRow, cell) {
10
21
  this.uid = cell.uid;
11
22
  this.column = cell.column;
@@ -7,14 +7,13 @@ import { Subject } from 'rxjs';
7
7
  * @hidden
8
8
  */
9
9
  export class NavigationCursor {
10
- constructor(model) {
11
- this.model = model;
12
- this.changes = new Subject();
13
- this.activeRow = 0;
14
- this.activeCol = 0;
15
- this.virtualCol = 0;
16
- this.virtualRow = 0;
17
- }
10
+ model;
11
+ changes = new Subject();
12
+ metadata;
13
+ activeRow = 0;
14
+ activeCol = 0;
15
+ virtualCol = 0;
16
+ virtualRow = 0;
18
17
  get row() {
19
18
  return this.model.findRow(this.activeRow);
20
19
  }
@@ -31,6 +30,9 @@ export class NavigationCursor {
31
30
  }
32
31
  return -1;
33
32
  }
33
+ constructor(model) {
34
+ this.model = model;
35
+ }
34
36
  /**
35
37
  * Assumes and announces a new cursor position.
36
38
  */
@@ -6,6 +6,19 @@
6
6
  * @hidden
7
7
  */
8
8
  export class NavigationMetadata {
9
+ view;
10
+ headerRows;
11
+ isVirtual;
12
+ hasPager;
13
+ treelistElement;
14
+ virtualColumns;
15
+ columns;
16
+ get maxLogicalRowIndex() {
17
+ return this.headerRows + this.dataRows - 1;
18
+ }
19
+ get dataRows() {
20
+ return this.view.totalRows;
21
+ }
9
22
  constructor(view, headerRows, isVirtual, hasPager, treelistElement, virtualColumns, columns) {
10
23
  this.view = view;
11
24
  this.headerRows = headerRows;
@@ -15,10 +28,4 @@ export class NavigationMetadata {
15
28
  this.virtualColumns = virtualColumns;
16
29
  this.columns = columns;
17
30
  }
18
- get maxLogicalRowIndex() {
19
- return this.headerRows + this.dataRows - 1;
20
- }
21
- get dataRows() {
22
- return this.view.totalRows;
23
- }
24
31
  }
@@ -10,9 +10,7 @@ import { ModelCell } from './model-cell';
10
10
  * Contains information for the currently rendered rows and cells.
11
11
  */
12
12
  export class NavigationModel {
13
- constructor() {
14
- this.rows = new ItemMap();
15
- }
13
+ rows = new ItemMap();
16
14
  get firstRow() {
17
15
  return this.rows.first;
18
16
  }
@@ -16,13 +16,13 @@ import { DomEventsService } from '../common/dom-events.service';
16
16
  import { CellCloseEvent } from '../editing/cell-close-event';
17
17
  import { EditService } from '../editing/edit.service';
18
18
  import { ExpandStateService } from '../expand-state/expand-state.service';
19
- import { PagerContextService } from '../pager/pager-context.service';
20
19
  import { closest, contains, findFocusableChild, isVisible, matchesNodeName } from '../rendering/common/dom-queries';
21
20
  import { ScrollRequestService } from '../scrolling/scroll-request.service';
22
21
  import { SelectionService } from '../selection/selection.service';
22
+ import { PagerContextService } from '@progress/kendo-angular-pager';
23
23
  import * as i0 from "@angular/core";
24
24
  import * as i1 from "../common/dom-events.service";
25
- import * as i2 from "../pager/pager-context.service";
25
+ import * as i2 from "@progress/kendo-angular-pager";
26
26
  import * as i3 from "../scrolling/scroll-request.service";
27
27
  import * as i4 from "./focus-root";
28
28
  import * as i5 from "../editing/edit.service";
@@ -66,6 +66,8 @@ const isPrintableCharacter = (str) => str.length === 1 && str.match(/\S/);
66
66
  * @hidden
67
67
  */
68
68
  export class NavigationViewport {
69
+ firstItemIndex;
70
+ lastItemIndex;
69
71
  constructor(firstItemIndex, lastItemIndex) {
70
72
  this.firstItemIndex = firstItemIndex;
71
73
  this.lastItemIndex = lastItemIndex;
@@ -84,27 +86,19 @@ export class NavigationViewport {
84
86
  * @hidden
85
87
  */
86
88
  export class NavigationService {
87
- constructor(zone, domEvents, pagerContextService, scrollRequestService, focusRoot, editService, localization, expandState, selectionService, changeDetector, focusableParent) {
88
- this.zone = zone;
89
- this.domEvents = domEvents;
90
- this.pagerContextService = pagerContextService;
91
- this.scrollRequestService = scrollRequestService;
92
- this.focusRoot = focusRoot;
93
- this.editService = editService;
94
- this.localization = localization;
95
- this.expandState = expandState;
96
- this.selectionService = selectionService;
97
- this.changeDetector = changeDetector;
98
- this.focusableParent = focusableParent;
99
- this.cellKeydown = new EventEmitter();
100
- this.activeRowIndex = 0;
101
- this.alive = false;
102
- this.active = true;
103
- this.mode = 0 /* NavigationMode.Standby */;
104
- this.model = new NavigationModel();
105
- this.cursor = new NavigationCursor(this.model);
106
- this.changes = this.cursor.changes;
107
- }
89
+ zone;
90
+ domEvents;
91
+ pagerContextService;
92
+ scrollRequestService;
93
+ focusRoot;
94
+ editService;
95
+ localization;
96
+ expandState;
97
+ selectionService;
98
+ changeDetector;
99
+ focusableParent;
100
+ changes;
101
+ cellKeydown = new EventEmitter();
108
102
  set metadata(value) {
109
103
  this.meta = value;
110
104
  this.cursor.metadata = value;
@@ -127,9 +121,35 @@ export class NavigationService {
127
121
  });
128
122
  }
129
123
  }
124
+ viewport;
125
+ columnViewport;
126
+ activeRowIndex = 0;
127
+ alive = false;
128
+ active = true;
129
+ mode = 0 /* NavigationMode.Standby */;
130
+ model = new NavigationModel();
131
+ cursor = new NavigationCursor(this.model);
132
+ meta;
133
+ subs;
134
+ pendingRowIndex;
135
+ virtualCell;
130
136
  get activeDataRow() {
131
137
  return Math.max(0, this.activeRowIndex - this.meta.headerRows);
132
138
  }
139
+ constructor(zone, domEvents, pagerContextService, scrollRequestService, focusRoot, editService, localization, expandState, selectionService, changeDetector, focusableParent) {
140
+ this.zone = zone;
141
+ this.domEvents = domEvents;
142
+ this.pagerContextService = pagerContextService;
143
+ this.scrollRequestService = scrollRequestService;
144
+ this.focusRoot = focusRoot;
145
+ this.editService = editService;
146
+ this.localization = localization;
147
+ this.expandState = expandState;
148
+ this.selectionService = selectionService;
149
+ this.changeDetector = changeDetector;
150
+ this.focusableParent = focusableParent;
151
+ this.changes = this.cursor.changes;
152
+ }
133
153
  init(meta) {
134
154
  this.alive = true;
135
155
  this.focusRoot.active = true;
@@ -608,10 +628,10 @@ export class NavigationService {
608
628
  this.leaveCell();
609
629
  this.cursor.reset();
610
630
  }
631
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i1.DomEventsService }, { token: i2.PagerContextService }, { token: i3.ScrollRequestService }, { token: i4.FocusRoot }, { token: i5.EditService }, { token: i6.LocalizationService }, { token: i7.ExpandStateService }, { token: i8.SelectionService }, { token: i0.ChangeDetectorRef }, { token: i9.FocusableDirective, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
632
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService });
611
633
  }
612
- NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i1.DomEventsService }, { token: i2.PagerContextService }, { token: i3.ScrollRequestService }, { token: i4.FocusRoot }, { token: i5.EditService }, { token: i6.LocalizationService }, { token: i7.ExpandStateService }, { token: i8.SelectionService }, { token: i0.ChangeDetectorRef }, { token: i9.FocusableDirective, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
613
- NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService });
614
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, decorators: [{
634
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, decorators: [{
615
635
  type: Injectable
616
636
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.DomEventsService }, { type: i2.PagerContextService }, { type: i3.ScrollRequestService }, { type: i4.FocusRoot }, { type: i5.EditService }, { type: i6.LocalizationService }, { type: i7.ExpandStateService }, { type: i8.SelectionService }, { type: i0.ChangeDetectorRef }, { type: i9.FocusableDirective, decorators: [{
617
637
  type: Optional
@@ -6,6 +6,7 @@
6
6
  * @hidden
7
7
  */
8
8
  export class TreeListFocusableElement {
9
+ navigationService;
9
10
  constructor(navigationService) {
10
11
  this.navigationService = navigationService;
11
12
  }
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-treelist',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1729174651,
13
- version: '17.0.0-develop.9',
12
+ publishDate: 1731414122,
13
+ version: '17.0.0',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -0,0 +1,66 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive } from '@angular/core';
6
+ import { PDFService } from './pdf.service';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { Subscription } from 'rxjs';
9
+ import { filePdfIcon } from '@progress/kendo-svg-icons';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./pdf.service";
12
+ import * as i2 from "@progress/kendo-angular-toolbar";
13
+ /**
14
+ * Represents the `export-to-PDF` toolbar tool of the TreeList.
15
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
16
+ * ToolbarComponent used in the TreeList.
17
+ *
18
+ * When the user clicks the toolbar button that is associated with the directive, the
19
+ * [pdfExport]({% slug api_treelist_treelistcomponent %}#toc-pdfexport) event
20
+ * fires ([see example]({% slug pdfexport_treelist %})).
21
+ *
22
+ * @example
23
+ * ```html-no-run
24
+ * <kendo-treelist>
25
+ * <kendo-toolbar>
26
+ * <kendo-toolbar-button text="PDF Export" kendoTreeListPDFTool></kendo-toolbar-button>
27
+ * </kendo-toolbar>
28
+ * <kendo-treelist-pdf fileName="TreeList.pdf">
29
+ * </kendo-treelist-pdf>
30
+ * </kendo-treelist>
31
+ * ```
32
+ */
33
+ export class PDFCommandToolbarDirective {
34
+ pdfService;
35
+ host;
36
+ clickSub = new Subscription();
37
+ constructor(pdfService, host) {
38
+ this.pdfService = pdfService;
39
+ this.host = host;
40
+ }
41
+ ngOnInit() {
42
+ this.clickSub = this.host.click.subscribe(e => this.onClick(e));
43
+ this.host.className = 'k-grid-pdf';
44
+ this.host.svgIcon = filePdfIcon;
45
+ this.host.icon = 'file-pdf';
46
+ }
47
+ ngOnDestroy() {
48
+ this.clickSub.unsubscribe();
49
+ }
50
+ /**
51
+ * @hidden
52
+ */
53
+ onClick(e) {
54
+ e.preventDefault();
55
+ this.pdfService.exportClick.emit();
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandToolbarDirective, deps: [{ token: i1.PDFService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
58
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PDFCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListPDFTool]", ngImport: i0 });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandToolbarDirective, decorators: [{
61
+ type: Directive,
62
+ args: [{
63
+ selector: '[kendoTreeListPDFTool]',
64
+ standalone: true
65
+ }]
66
+ }], ctorParameters: function () { return [{ type: i1.PDFService }, { type: i2.ToolBarButtonComponent }]; } });
@@ -30,11 +30,7 @@ import * as i2 from "@progress/kendo-angular-l10n";
30
30
  * ```
31
31
  */
32
32
  export class PDFCommandDirective extends Button {
33
- constructor(pdfService, element, renderer, localization, ngZone) {
34
- super(element, renderer, null, localization, ngZone);
35
- this.pdfService = pdfService;
36
- this.ngZone = ngZone;
37
- }
33
+ pdfService;
38
34
  /**
39
35
  * @hidden
40
36
  */
@@ -48,9 +44,13 @@ export class PDFCommandDirective extends Button {
48
44
  get pdfClass() {
49
45
  return true;
50
46
  }
51
- }
52
- PDFCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFCommandDirective, deps: [{ token: i1.PDFService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
53
- PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFCommandDirective, isStandalone: true, selector: "[kendoTreeListPDFCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-pdf": "this.pdfClass" } }, usesInheritance: true, ngImport: i0, template: `
47
+ constructor(pdfService, element, renderer, localization, ngZone) {
48
+ super(element, renderer, null, localization, ngZone);
49
+ this.pdfService = pdfService;
50
+ this.ngZone = ngZone;
51
+ }
52
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandDirective, deps: [{ token: i1.PDFService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
53
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PDFCommandDirective, isStandalone: true, selector: "[kendoTreeListPDFCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-pdf": "this.pdfClass" } }, usesInheritance: true, ngImport: i0, template: `
54
54
  <kendo-icon-wrapper
55
55
  *ngIf="icon || svgIcon"
56
56
  innerCssClass="k-button-icon"
@@ -62,7 +62,8 @@ PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
62
62
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
63
63
  <span class="k-button-text"><ng-content></ng-content></span>
64
64
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFCommandDirective, decorators: [{
65
+ }
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandDirective, decorators: [{
66
67
  type: Component,
67
68
  args: [{
68
69
  selector: '[kendoTreeListPDFCommand]',
@@ -15,10 +15,10 @@ import * as i0 from "@angular/core";
15
15
  * Numbers are considered to be points (`"pt"`).
16
16
  */
17
17
  export class PDFMarginComponent extends PDFExportMarginComponent {
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PDFMarginComponent, isStandalone: true, selector: "kendo-treelist-pdf-margin", usesInheritance: true, ngImport: i0, template: '', isInline: true });
18
20
  }
19
- PDFMarginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
20
- PDFMarginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFMarginComponent, isStandalone: true, selector: "kendo-treelist-pdf-margin", usesInheritance: true, ngImport: i0, template: '', isInline: true });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFMarginComponent, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFMarginComponent, decorators: [{
22
22
  type: Component,
23
23
  args: [{
24
24
  selector: 'kendo-treelist-pdf-margin',
@@ -31,10 +31,10 @@ export class PDFTemplateDirective extends PDFExportTemplateDirective {
31
31
  constructor(templateRef) {
32
32
  super(templateRef);
33
33
  }
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
35
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PDFTemplateDirective, isStandalone: true, selector: "[kendoTreeListPDFTemplate]", usesInheritance: true, ngImport: i0 });
34
36
  }
35
- PDFTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
36
- PDFTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PDFTemplateDirective, isStandalone: true, selector: "[kendoTreeListPDFTemplate]", usesInheritance: true, ngImport: i0 });
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFTemplateDirective, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFTemplateDirective, decorators: [{
38
38
  type: Directive,
39
39
  args: [{
40
40
  selector: '[kendoTreeListPDFTemplate]',
@@ -33,12 +33,32 @@ const createDiv = (className) => {
33
33
  * Configures the settings for the export of TreeList in PDF ([see example]({% slug pdfexport_treelist %})).
34
34
  */
35
35
  export class PDFComponent extends PDFExportComponent {
36
+ pdfService;
37
+ suspendService;
38
+ ngZone;
39
+ /**
40
+ * Exports all TreeList pages, starting from the first one.
41
+ */
42
+ allPages;
43
+ columns = new QueryList();
44
+ marginComponent;
45
+ pageTemplateDirective;
46
+ progress;
47
+ component;
48
+ container;
49
+ skip;
50
+ pageSize;
51
+ originalHeight;
52
+ originalOverflow;
53
+ saveSubscription;
54
+ drawSubscription;
55
+ renderAllPages;
56
+ originalColumns;
36
57
  constructor(pdfService, suspendService, ngZone, element) {
37
58
  super(element);
38
59
  this.pdfService = pdfService;
39
60
  this.suspendService = suspendService;
40
61
  this.ngZone = ngZone;
41
- this.columns = new QueryList();
42
62
  this.saveSubscription = pdfService.savePDF.subscribe(this.savePDF.bind(this));
43
63
  this.drawSubscription = pdfService.drawPDF.subscribe(this.drawPDF.bind(this));
44
64
  this.reset = this.reset.bind(this);
@@ -210,10 +230,10 @@ export class PDFComponent extends PDFExportComponent {
210
230
  onStable(callback) {
211
231
  this.ngZone.onStable.asObservable().pipe(take(1)).subscribe(callback);
212
232
  }
233
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFComponent, deps: [{ token: i1.PDFService }, { token: i2.SuspendService }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
234
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PDFComponent, isStandalone: true, selector: "kendo-treelist-pdf", inputs: { allPages: "allPages" }, queries: [{ propertyName: "marginComponent", first: true, predicate: PDFMarginComponent, descendants: true }, { propertyName: "pageTemplateDirective", first: true, predicate: PDFTemplateDirective, descendants: true }, { propertyName: "columns", predicate: ColumnBase }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
213
235
  }
214
- PDFComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFComponent, deps: [{ token: i1.PDFService }, { token: i2.SuspendService }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
215
- PDFComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFComponent, isStandalone: true, selector: "kendo-treelist-pdf", inputs: { allPages: "allPages" }, queries: [{ propertyName: "marginComponent", first: true, predicate: PDFMarginComponent, descendants: true }, { propertyName: "pageTemplateDirective", first: true, predicate: PDFTemplateDirective, descendants: true }, { propertyName: "columns", predicate: ColumnBase }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFComponent, decorators: [{
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFComponent, decorators: [{
217
237
  type: Component,
218
238
  args: [{
219
239
  selector: 'kendo-treelist-pdf',
@@ -10,7 +10,8 @@ import * as i1 from "./pdf.component";
10
10
  import * as i2 from "./pdf-margin.component";
11
11
  import * as i3 from "./pdf-command.directive";
12
12
  import * as i4 from "./pdf-template.directive";
13
- import * as i5 from "@progress/kendo-angular-icons";
13
+ import * as i5 from "./pdf-command-tool.directive";
14
+ import * as i6 from "@progress/kendo-angular-icons";
14
15
  // IMPORTANT: NgModule export kept for backwards compatibility
15
16
  /**
16
17
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -33,11 +34,11 @@ import * as i5 from "@progress/kendo-angular-icons";
33
34
  * ```
34
35
  */
35
36
  export class PDFModule {
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.PDFCommandToolbarDirective, i6.IconComponent, i6.SVGIconComponent], exports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.PDFCommandToolbarDirective] });
39
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [i3.PDFCommandDirective, KENDO_ICONS] });
36
40
  }
37
- PDFModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
- PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.IconComponent, i5.SVGIconComponent], exports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective] });
39
- PDFModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, KENDO_ICONS] });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, decorators: [{
41
42
  type: NgModule,
42
43
  args: [{
43
44
  imports: [...PDF_EXPORTS, ...KENDO_ICONS],
@@ -8,12 +8,11 @@ import * as i0 from "@angular/core";
8
8
  * @hidden
9
9
  */
10
10
  export class PDFService {
11
- constructor() {
12
- this.savePDF = new EventEmitter();
13
- this.drawPDF = new EventEmitter();
14
- this.exportClick = new EventEmitter();
15
- this.dataChanged = new EventEmitter();
16
- }
11
+ savePDF = new EventEmitter();
12
+ drawPDF = new EventEmitter();
13
+ exportClick = new EventEmitter();
14
+ dataChanged = new EventEmitter();
15
+ exporting;
17
16
  save(component) {
18
17
  this.emitEvent(this.savePDF, component);
19
18
  }
@@ -33,9 +32,9 @@ export class PDFService {
33
32
  emitter.emit(args);
34
33
  }
35
34
  }
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
36
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService });
36
37
  }
37
- PDFService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
38
- PDFService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFService });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFService, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService, decorators: [{
40
39
  type: Injectable
41
40
  }] });
@@ -20,6 +20,10 @@ const suffix = (locked) => locked ? 'locked' : 'wrap';
20
20
  * @hidden
21
21
  */
22
22
  export class TreeListQuery {
23
+ element;
24
+ headerWrap;
25
+ list;
26
+ footerWrap;
23
27
  constructor(element) {
24
28
  this.element = element;
25
29
  this.list = findElement(element, matchesList);
@@ -32,13 +32,14 @@ import * as i0 from "@angular/core";
32
32
  *```
33
33
  */
34
34
  export class CellTemplateDirective {
35
+ templateRef;
35
36
  constructor(templateRef) {
36
37
  this.templateRef = templateRef;
37
38
  }
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
40
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CellTemplateDirective, isStandalone: true, selector: "[kendoTreeListCellTemplate]", ngImport: i0 });
38
41
  }
39
- CellTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CellTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
40
- CellTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CellTemplateDirective, isStandalone: true, selector: "[kendoTreeListCellTemplate]", ngImport: i0 });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CellTemplateDirective, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellTemplateDirective, decorators: [{
42
43
  type: Directive,
43
44
  args: [{
44
45
  selector: '[kendoTreeListCellTemplate]',