@progress/kendo-angular-treelist 17.0.0-develop.4 → 17.0.0-develop.41

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 (394) hide show
  1. package/README.md +48 -19
  2. package/binding-directives/base-binding.directive.d.ts +1 -1
  3. package/binding-directives/flat-binding.directive.d.ts +1 -1
  4. package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
  5. package/column-menu/column-chooser.component.d.ts +1 -1
  6. package/column-menu/column-list.component.d.ts +2 -2
  7. package/column-menu/column-menu-chooser.component.d.ts +1 -1
  8. package/column-menu/column-menu-filter.component.d.ts +1 -1
  9. package/column-menu/column-menu-item-base.d.ts +1 -1
  10. package/column-menu/column-menu-item.component.d.ts +1 -1
  11. package/column-menu/column-menu.component.d.ts +1 -1
  12. package/column-resizing/column-handle.directive.d.ts +1 -1
  13. package/column-resizing/column-resize.interface.d.ts +3 -3
  14. package/column-resizing/table.directive.d.ts +1 -1
  15. package/columns/checkbox-column.component.d.ts +1 -1
  16. package/columns/column-base.d.ts +1 -1
  17. package/columns/column.component.d.ts +1 -1
  18. package/columns/sort-settings.d.ts +2 -2
  19. package/columns/span-column.component.d.ts +13 -13
  20. package/common/create-form-group.d.ts +1 -1
  21. package/{pager → common}/pager-settings.d.ts +1 -1
  22. package/common/provider.service.d.ts +0 -1
  23. package/common/remove-confirmation.d.ts +1 -1
  24. package/data/treelist-item.interface.d.ts +1 -1
  25. package/directives.d.ts +7 -17
  26. package/dragdrop/context-types.d.ts +1 -1
  27. package/dragdrop/draggable-column.directive.d.ts +1 -1
  28. package/dragdrop/drop-target.directive.d.ts +1 -1
  29. package/editing/add-command-tool.directive.d.ts +38 -0
  30. package/editing/add-command.directive.d.ts +1 -1
  31. package/editing/cancel-command.directive.d.ts +1 -1
  32. package/editing/cancel-event-args.interface.d.ts +1 -1
  33. package/editing/edit-command.directive.d.ts +1 -1
  34. package/editing/edit.service.d.ts +3 -3
  35. package/editing/remove-command.directive.d.ts +1 -1
  36. package/editing/save-command.directive.d.ts +1 -1
  37. package/editing-directives/create-form-group-args.interface.d.ts +1 -1
  38. package/editing-directives/editing-directive-base.d.ts +1 -1
  39. package/editing-directives/in-cell-editing.directive.d.ts +1 -1
  40. package/editing-directives/reactive-editing.directive.d.ts +1 -1
  41. package/editing-directives/row-editing-directive-base.d.ts +0 -1
  42. package/editing-directives/template-editing.directive.d.ts +1 -2
  43. package/{esm2020 → esm2022}/binding-directives/base-binding.directive.mjs +17 -13
  44. package/{esm2020 → esm2022}/binding-directives/data-bound-tree-component.mjs +3 -3
  45. package/{esm2020 → esm2022}/binding-directives/flat-binding.directive.mjs +29 -21
  46. package/{esm2020 → esm2022}/binding-directives/hierarchy-binding.directive.mjs +26 -19
  47. package/{esm2020 → esm2022}/column-menu/column-chooser.component.mjs +27 -19
  48. package/{esm2020 → esm2022}/column-menu/column-list.component.mjs +71 -59
  49. package/{esm2020 → esm2022}/column-menu/column-locked-change-event.mjs +4 -0
  50. package/{esm2020 → esm2022}/column-menu/column-menu-chooser.component.mjs +28 -25
  51. package/{esm2020 → esm2022}/column-menu/column-menu-filter.component.mjs +23 -22
  52. package/{esm2020 → esm2022}/column-menu/column-menu-item-base.mjs +9 -6
  53. package/{esm2020 → esm2022}/column-menu/column-menu-item-content-template.directive.mjs +4 -3
  54. package/{esm2020 → esm2022}/column-menu/column-menu-item.component.mjs +67 -42
  55. package/{esm2020 → esm2022}/column-menu/column-menu-lock.component.mjs +9 -6
  56. package/{esm2020 → esm2022}/column-menu/column-menu-sort.component.mjs +8 -6
  57. package/{esm2020 → esm2022}/column-menu/column-menu-template.directive.mjs +4 -3
  58. package/{esm2020 → esm2022}/column-menu/column-menu.component.mjs +49 -25
  59. package/{esm2020 → esm2022}/column-menu/column-menu.service.mjs +23 -9
  60. package/{esm2020 → esm2022}/column-menu/column-visibility-change-event.mjs +4 -0
  61. package/{esm2020 → esm2022}/column-resizing/column-handle.directive.mjs +21 -14
  62. package/{esm2020 → esm2022}/column-resizing/column-resizing.service.mjs +8 -8
  63. package/{esm2020 → esm2022}/column-resizing/table.directive.mjs +17 -8
  64. package/{esm2020 → esm2022}/columns/checkbox-column.component.mjs +27 -12
  65. package/{esm2020 → esm2022}/columns/column-base.mjs +140 -72
  66. package/{esm2020 → esm2022}/columns/column-group.component.mjs +24 -20
  67. package/{esm2020 → esm2022}/columns/column-list.mjs +4 -3
  68. package/{esm2020 → esm2022}/columns/column.component.mjs +56 -38
  69. package/{esm2020 → esm2022}/columns/columns-container.mjs +14 -13
  70. package/{esm2020 → esm2022}/columns/command-column.component.mjs +11 -9
  71. package/{esm2020 → esm2022}/columns/rowreorder-column.component.mjs +13 -12
  72. package/{esm2020 → esm2022}/columns/span-column.component.mjs +64 -29
  73. package/{esm2020 → esm2022}/common/column-info.service.mjs +8 -9
  74. package/esm2022/common/dom-events.service.mjs +24 -0
  75. package/{esm2020 → esm2022}/common/id.service.mjs +4 -3
  76. package/{esm2020 → esm2022}/common/option-changes.service.mjs +5 -7
  77. package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
  78. package/{esm2020 → esm2022}/common/provider.service.mjs +8 -6
  79. package/{esm2020 → esm2022}/common/single-popup.service.mjs +19 -8
  80. package/{esm2020 → esm2022}/common/sort.service.mjs +1 -3
  81. package/{esm2020 → esm2022}/data/change-notification.service.mjs +6 -4
  82. package/{esm2020 → esm2022}/data/data.collection.mjs +45 -23
  83. package/{esm2020 → esm2022}/directives.mjs +8 -25
  84. package/{esm2020 → esm2022}/dragdrop/column-reorder-event.mjs +14 -0
  85. package/{esm2020 → esm2022}/dragdrop/column-reorder.service.mjs +4 -6
  86. package/{esm2020 → esm2022}/dragdrop/drag-and-drop.service.mjs +6 -8
  87. package/{esm2020 → esm2022}/dragdrop/drag-hint.service.mjs +7 -4
  88. package/{esm2020 → esm2022}/dragdrop/draggable-column.directive.mjs +22 -13
  89. package/{esm2020 → esm2022}/dragdrop/drop-cue.service.mjs +4 -3
  90. package/{esm2020 → esm2022}/dragdrop/drop-target.directive.mjs +10 -8
  91. package/esm2022/editing/add-command-tool.directive.mjs +63 -0
  92. package/{esm2020 → esm2022}/editing/add-command.directive.mjs +10 -6
  93. package/{esm2020 → esm2022}/editing/base-command.directive.mjs +9 -8
  94. package/{esm2020 → esm2022}/editing/cancel-command.directive.mjs +10 -6
  95. package/{esm2020 → esm2022}/editing/cell-close-event.mjs +20 -4
  96. package/{esm2020 → esm2022}/editing/edit-command.directive.mjs +10 -6
  97. package/{esm2020 → esm2022}/editing/edit-template.directive.mjs +4 -3
  98. package/{esm2020 → esm2022}/editing/edit.service.mjs +18 -13
  99. package/{esm2020 → esm2022}/editing/remove-command.directive.mjs +10 -6
  100. package/{esm2020 → esm2022}/editing/save-command.directive.mjs +10 -6
  101. package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +17 -7
  102. package/{esm2020 → esm2022}/editing-directives/flat-edit.service.mjs +1 -0
  103. package/{esm2020 → esm2022}/editing-directives/hierarchy-edit.service.mjs +1 -0
  104. package/{esm2020 → esm2022}/editing-directives/in-cell-editing.directive.mjs +8 -3
  105. package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +8 -3
  106. package/{esm2020 → esm2022}/editing-directives/row-editing-directive-base.mjs +3 -3
  107. package/{esm2020 → esm2022}/editing-directives/template-editing.directive.mjs +9 -3
  108. package/esm2022/excel/excel-command-tool.directive.mjs +66 -0
  109. package/{esm2020 → esm2022}/excel/excel-command.directive.mjs +10 -9
  110. package/{esm2020 → esm2022}/excel/excel-export-event.mjs +1 -0
  111. package/{esm2020 → esm2022}/excel/excel.component.mjs +71 -22
  112. package/{esm2020 → esm2022}/excel/excel.module.mjs +5 -4
  113. package/{esm2020 → esm2022}/excel/excel.service.mjs +7 -8
  114. package/{esm2020 → esm2022}/expand-state/expand-event.mjs +12 -0
  115. package/{esm2020 → esm2022}/expand-state/expand-state.service.mjs +5 -7
  116. package/{esm2020 → esm2022}/expand-state/expandable-tree-component.mjs +3 -3
  117. package/{esm2020 → esm2022}/expand-state/expandable.directive.mjs +23 -19
  118. package/{esm2020 → esm2022}/filtering/base-filter-cell.component.mjs +18 -7
  119. package/{esm2020 → esm2022}/filtering/boolean-filter.component.mjs +33 -29
  120. package/{esm2020 → esm2022}/filtering/cell/autocomplete-filter-cell.component.mjs +15 -13
  121. package/{esm2020 → esm2022}/filtering/cell/boolean-filter-cell.component.mjs +5 -4
  122. package/{esm2020 → esm2022}/filtering/cell/date-filter-cell.component.mjs +11 -10
  123. package/{esm2020 → esm2022}/filtering/cell/filter-cell-host.directive.mjs +3 -3
  124. package/{esm2020 → esm2022}/filtering/cell/filter-cell-operators.component.mjs +54 -34
  125. package/{esm2020 → esm2022}/filtering/cell/filter-cell-template.directive.mjs +4 -3
  126. package/{esm2020 → esm2022}/filtering/cell/filter-cell-wrapper.component.mjs +8 -8
  127. package/{esm2020 → esm2022}/filtering/cell/filter-cell.component.mjs +11 -8
  128. package/{esm2020 → esm2022}/filtering/cell/numeric-filter-cell.component.mjs +23 -17
  129. package/{esm2020 → esm2022}/filtering/cell/string-filter-cell.component.mjs +34 -28
  130. package/{esm2020 → esm2022}/filtering/date-filter.component.mjs +64 -39
  131. package/{esm2020 → esm2022}/filtering/filter-host.directive.mjs +8 -3
  132. package/{esm2020 → esm2022}/filtering/filter-input-wrapper.component.mjs +11 -8
  133. package/{esm2020 → esm2022}/filtering/filter-input.directive.mjs +21 -13
  134. package/{esm2020 → esm2022}/filtering/filter-row.component.mjs +11 -8
  135. package/{esm2020 → esm2022}/filtering/filter.service.mjs +7 -9
  136. package/{esm2020 → esm2022}/filtering/menu/boolean-filter-menu.component.mjs +33 -26
  137. package/{esm2020 → esm2022}/filtering/menu/date-filter-menu-input.component.mjs +21 -5
  138. package/{esm2020 → esm2022}/filtering/menu/date-filter-menu.component.mjs +22 -21
  139. package/{esm2020 → esm2022}/filtering/menu/filter-menu-container.component.mjs +28 -16
  140. package/{esm2020 → esm2022}/filtering/menu/filter-menu-host.directive.mjs +4 -3
  141. package/{esm2020 → esm2022}/filtering/menu/filter-menu-input-wrapper.component.mjs +9 -7
  142. package/{esm2020 → esm2022}/filtering/menu/filter-menu-template.directive.mjs +4 -3
  143. package/{esm2020 → esm2022}/filtering/menu/filter-menu.component.mjs +20 -8
  144. package/{esm2020 → esm2022}/filtering/menu/filter-radio-button.directive.mjs +7 -3
  145. package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu-input.component.mjs +43 -17
  146. package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu.component.mjs +32 -31
  147. package/{esm2020 → esm2022}/filtering/menu/string-filter-menu-input.component.mjs +23 -16
  148. package/{esm2020 → esm2022}/filtering/menu/string-filter-menu.component.mjs +32 -21
  149. package/{esm2020 → esm2022}/filtering/numeric-filter.component.mjs +51 -28
  150. package/{esm2020 → esm2022}/filtering/operators/after-eq-filter-operator.component.mjs +8 -8
  151. package/{esm2020 → esm2022}/filtering/operators/after-filter-operator.component.mjs +8 -8
  152. package/{esm2020 → esm2022}/filtering/operators/before-eq-filter-operator.component.mjs +8 -8
  153. package/{esm2020 → esm2022}/filtering/operators/before-filter-operator.component.mjs +8 -8
  154. package/{esm2020 → esm2022}/filtering/operators/contains-filter-operator.component.mjs +8 -8
  155. package/{esm2020 → esm2022}/filtering/operators/ends-with-filter-operator.component.mjs +8 -8
  156. package/{esm2020 → esm2022}/filtering/operators/eq-filter-operator.component.mjs +8 -8
  157. package/{esm2020 → esm2022}/filtering/operators/filter-operator.base.mjs +15 -10
  158. package/{esm2020 → esm2022}/filtering/operators/gt-filter-operator.component.mjs +8 -8
  159. package/{esm2020 → esm2022}/filtering/operators/gte-filter-operator.component.mjs +8 -8
  160. package/{esm2020 → esm2022}/filtering/operators/is-empty-filter-operator.component.mjs +8 -8
  161. package/{esm2020 → esm2022}/filtering/operators/is-not-empty-filter-operator.component.mjs +8 -8
  162. package/{esm2020 → esm2022}/filtering/operators/is-not-null-filter-operator.component.mjs +8 -8
  163. package/{esm2020 → esm2022}/filtering/operators/isnull-filter-operator.component.mjs +8 -8
  164. package/{esm2020 → esm2022}/filtering/operators/lt-filter-operator.component.mjs +8 -8
  165. package/{esm2020 → esm2022}/filtering/operators/lte-filter-operator.component.mjs +8 -8
  166. package/{esm2020 → esm2022}/filtering/operators/neq-filter-operator.component.mjs +8 -8
  167. package/{esm2020 → esm2022}/filtering/operators/not-contains-filter-operator.component.mjs +8 -8
  168. package/{esm2020 → esm2022}/filtering/operators/starts-with-filter-operator.component.mjs +8 -8
  169. package/{esm2020 → esm2022}/filtering/string-filter.component.mjs +20 -15
  170. package/{esm2020 → esm2022}/index.mjs +3 -15
  171. package/{esm2020 → esm2022}/layout/browser-support.service.mjs +7 -4
  172. package/{esm2020 → esm2022}/layout/resizable.directive.mjs +16 -10
  173. package/{esm2020 → esm2022}/layout/resize.service.mjs +6 -8
  174. package/{esm2020 → esm2022}/layout/responsive.service.mjs +7 -9
  175. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  176. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  177. package/esm2022/localization/messages.mjs +416 -0
  178. package/{esm2020 → esm2022}/navigation/default-focusable-element.mjs +10 -6
  179. package/{esm2020 → esm2022}/navigation/focus-group.mjs +12 -11
  180. package/{esm2020 → esm2022}/navigation/focus-root.mjs +5 -4
  181. package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +18 -10
  182. package/{esm2020 → esm2022}/navigation/item-map.mjs +2 -4
  183. package/{esm2020 → esm2022}/navigation/logical-cell.directive.mjs +35 -22
  184. package/{esm2020 → esm2022}/navigation/logical-row.directive.mjs +19 -13
  185. package/{esm2020 → esm2022}/navigation/model-cell.mjs +11 -0
  186. package/{esm2020 → esm2022}/navigation/navigation-cursor.mjs +10 -8
  187. package/{esm2020 → esm2022}/navigation/navigation-metadata.mjs +13 -6
  188. package/{esm2020 → esm2022}/navigation/navigation-model.mjs +1 -3
  189. package/{esm2020 → esm2022}/navigation/navigation.service.mjs +46 -26
  190. package/{esm2020 → esm2022}/navigation/treelist-focusable-element.mjs +1 -0
  191. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  192. package/esm2022/pdf/pdf-command-tool.directive.mjs +66 -0
  193. package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +10 -9
  194. package/{esm2020 → esm2022}/pdf/pdf-margin.component.mjs +3 -3
  195. package/{esm2020 → esm2022}/pdf/pdf-template.directive.mjs +3 -3
  196. package/{esm2020 → esm2022}/pdf/pdf.component.mjs +24 -4
  197. package/{esm2020 → esm2022}/pdf/pdf.module.mjs +6 -5
  198. package/{esm2020 → esm2022}/pdf/pdf.service.mjs +8 -9
  199. package/{esm2020 → esm2022}/pdf/treelist-query.mjs +4 -0
  200. package/{esm2020 → esm2022}/rendering/cell-template.directive.mjs +4 -3
  201. package/{esm2020 → esm2022}/rendering/cell.component.mjs +60 -54
  202. package/{esm2020 → esm2022}/rendering/common/col-group.component.mjs +5 -7
  203. package/{esm2020 → esm2022}/rendering/common/field-accessor.pipe.mjs +4 -3
  204. package/{esm2020 → esm2022}/rendering/common/level-items.pipe.mjs +3 -3
  205. package/{esm2020 → esm2022}/rendering/common/loading.component.mjs +9 -8
  206. package/{esm2020 → esm2022}/rendering/common/spacer.component.mjs +12 -7
  207. package/{esm2020 → esm2022}/rendering/footer-template.directive.mjs +4 -3
  208. package/{esm2020 → esm2022}/rendering/header/header-template.directive.mjs +4 -3
  209. package/{esm2020 → esm2022}/rendering/header/header.component.mjs +62 -44
  210. package/{esm2020 → esm2022}/rendering/list.component.mjs +84 -44
  211. package/{esm2020 → esm2022}/rendering/no-records-template.directive.mjs +4 -3
  212. package/{esm2020 → esm2022}/rendering/table-body.component.mjs +48 -21
  213. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-focusable.directive.mjs +9 -7
  214. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-navigation.service.mjs +9 -8
  215. package/{esm2020 → esm2022}/rendering/toolbar/toolbar-template.directive.mjs +10 -8
  216. package/{esm2020 → esm2022}/rendering/toolbar/toolbar.component.mjs +18 -13
  217. package/{esm2020 → esm2022}/row-reordering/flat-reorder.service.mjs +3 -3
  218. package/{esm2020 → esm2022}/row-reordering/hierarchical-reorder.service.mjs +3 -3
  219. package/{esm2020 → esm2022}/row-reordering/row-reorder.service.mjs +14 -9
  220. package/{esm2020 → esm2022}/scrolling/row-height.service.mjs +2 -0
  221. package/{esm2020 → esm2022}/scrolling/scroll-request.service.mjs +4 -6
  222. package/{esm2020 → esm2022}/scrolling/scroll-sync.service.mjs +10 -8
  223. package/{esm2020 → esm2022}/scrolling/scroller.service.mjs +12 -2
  224. package/{esm2020 → esm2022}/scrolling/suspend.service.mjs +4 -6
  225. package/{esm2020 → esm2022}/selection/marquee.directive.mjs +18 -7
  226. package/{esm2020 → esm2022}/selection/selectable.directive.mjs +23 -17
  227. package/{esm2020 → esm2022}/selection/selection-change-event.mjs +12 -0
  228. package/{esm2020 → esm2022}/selection/selection-state.mjs +2 -6
  229. package/{esm2020 → esm2022}/selection/selection.service.mjs +16 -14
  230. package/{esm2020 → esm2022}/treelist.component.mjs +619 -420
  231. package/esm2022/treelist.module.mjs +173 -0
  232. package/excel/excel-command-tool.directive.d.ts +41 -0
  233. package/excel/excel.component.d.ts +1 -1
  234. package/excel/excel.module.d.ts +3 -2
  235. package/expand-state/expandable.directive.d.ts +1 -1
  236. package/{fesm2020 → fesm2022}/progress-kendo-angular-treelist.mjs +4097 -4025
  237. package/filtering/base-filter-cell.component.d.ts +5 -1
  238. package/filtering/boolean-filter.component.d.ts +2 -7
  239. package/filtering/cell/autocomplete-filter-cell.component.d.ts +2 -7
  240. package/filtering/cell/date-filter-cell.component.d.ts +1 -1
  241. package/filtering/cell/filter-cell-operators.component.d.ts +1 -1
  242. package/filtering/cell/filter-cell-wrapper.component.d.ts +1 -1
  243. package/filtering/cell/filter-cell.component.d.ts +1 -1
  244. package/filtering/cell/numeric-filter-cell.component.d.ts +1 -1
  245. package/filtering/cell/string-filter-cell.component.d.ts +1 -1
  246. package/filtering/date-filter.component.d.ts +2 -11
  247. package/filtering/filter-host.directive.d.ts +2 -2
  248. package/filtering/filter-input-wrapper.component.d.ts +1 -2
  249. package/filtering/filter-input.directive.d.ts +1 -1
  250. package/filtering/filter-row.component.d.ts +1 -2
  251. package/filtering/filterable.d.ts +1 -1
  252. package/filtering/menu/boolean-filter-menu.component.d.ts +1 -1
  253. package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
  254. package/filtering/menu/date-filter-menu.component.d.ts +1 -7
  255. package/filtering/menu/filter-menu-container.component.d.ts +1 -1
  256. package/filtering/menu/filter-menu-host.directive.d.ts +1 -1
  257. package/filtering/menu/filter-menu-input-wrapper.component.d.ts +1 -1
  258. package/filtering/menu/filter-menu.component.d.ts +1 -4
  259. package/filtering/menu/filter-radio-button.directive.d.ts +1 -1
  260. package/filtering/menu/numeric-filter-menu-input.component.d.ts +1 -1
  261. package/filtering/menu/numeric-filter-menu.component.d.ts +1 -7
  262. package/filtering/menu/string-filter-menu-input.component.d.ts +1 -1
  263. package/filtering/menu/string-filter-menu.component.d.ts +1 -7
  264. package/filtering/numeric-filter.component.d.ts +2 -11
  265. package/filtering/operators/filter-operator.base.d.ts +1 -1
  266. package/filtering/string-filter.component.d.ts +2 -11
  267. package/index.d.ts +4 -17
  268. package/layout/resizable.directive.d.ts +1 -1
  269. package/localization/messages.d.ts +6 -2
  270. package/navigation/focusable.directive.d.ts +1 -1
  271. package/navigation/logical-cell.directive.d.ts +1 -1
  272. package/navigation/logical-row.directive.d.ts +1 -1
  273. package/navigation/navigation.service.d.ts +1 -1
  274. package/package.json +27 -32
  275. package/pdf/pdf-command-tool.directive.d.ts +41 -0
  276. package/pdf/pdf-margin.interface.d.ts +1 -1
  277. package/pdf/pdf.component.d.ts +1 -7
  278. package/pdf/pdf.module.d.ts +3 -2
  279. package/rendering/cell.component.d.ts +2 -1
  280. package/rendering/common/col-group.component.d.ts +1 -1
  281. package/rendering/common/row-class.d.ts +2 -2
  282. package/rendering/common/spacer.component.d.ts +1 -1
  283. package/rendering/header/header.component.d.ts +2 -2
  284. package/rendering/list.component.d.ts +1 -1
  285. package/rendering/table-body.component.d.ts +1 -1
  286. package/rendering/toolbar/toolbar-template.directive.d.ts +1 -1
  287. package/rendering/toolbar/toolbar.component.d.ts +1 -1
  288. package/row-reordering/types.d.ts +1 -1
  289. package/schematics/ngAdd/index.js +3 -3
  290. package/scrolling/scroll-sync.service.d.ts +1 -1
  291. package/scrolling/scroller.service.d.ts +1 -1
  292. package/scrolling/scrollmode.d.ts +1 -1
  293. package/selection/is-selected.d.ts +1 -1
  294. package/selection/selectable.directive.d.ts +1 -1
  295. package/treelist.component.d.ts +4 -3
  296. package/treelist.module.d.ts +60 -65
  297. package/utils.d.ts +1 -1
  298. package/constants.d.ts +0 -12
  299. package/esm2020/common/dom-events.service.mjs +0 -26
  300. package/esm2020/constants.mjs +0 -12
  301. package/esm2020/filtering/cell/row-filtering.module.mjs +0 -77
  302. package/esm2020/filtering/menu/filter-menu.module.mjs +0 -80
  303. package/esm2020/filtering/shared-filtering.module.mjs +0 -94
  304. package/esm2020/localization/messages.mjs +0 -138
  305. package/esm2020/pager/pager-context.service.mjs +0 -42
  306. package/esm2020/pager/pager-element.component.mjs +0 -103
  307. package/esm2020/pager/pager-info.component.mjs +0 -75
  308. package/esm2020/pager/pager-input.component.mjs +0 -144
  309. package/esm2020/pager/pager-next-buttons.component.mjs +0 -126
  310. package/esm2020/pager/pager-numeric-buttons.component.mjs +0 -244
  311. package/esm2020/pager/pager-page-sizes.component.mjs +0 -139
  312. package/esm2020/pager/pager-prev-buttons.component.mjs +0 -126
  313. package/esm2020/pager/pager-template.directive.mjs +0 -48
  314. package/esm2020/pager/pager.component.mjs +0 -415
  315. package/esm2020/pager/pager.module.mjs +0 -43
  316. package/esm2020/pager/pagesize-item.interface.mjs +0 -5
  317. package/esm2020/rendering/body.module.mjs +0 -40
  318. package/esm2020/rendering/header/header.module.mjs +0 -94
  319. package/esm2020/shared.module.mjs +0 -41
  320. package/esm2020/treelist.module.mjs +0 -176
  321. package/fesm2015/progress-kendo-angular-treelist.mjs +0 -21537
  322. package/filtering/cell/row-filtering.module.d.ts +0 -57
  323. package/filtering/menu/filter-menu.module.d.ts +0 -60
  324. package/filtering/shared-filtering.module.d.ts +0 -52
  325. package/pager/pager-context.service.d.ts +0 -32
  326. package/pager/pager-element.component.d.ts +0 -74
  327. package/pager/pager-info.component.d.ts +0 -43
  328. package/pager/pager-input.component.d.ts +0 -45
  329. package/pager/pager-next-buttons.component.d.ts +0 -36
  330. package/pager/pager-numeric-buttons.component.d.ts +0 -52
  331. package/pager/pager-page-sizes.component.d.ts +0 -48
  332. package/pager/pager-prev-buttons.component.d.ts +0 -32
  333. package/pager/pager-template.directive.d.ts +0 -38
  334. package/pager/pager.component.d.ts +0 -73
  335. package/pager/pager.module.d.ts +0 -27
  336. package/pager/pagesize-item.interface.d.ts +0 -14
  337. package/rendering/body.module.d.ts +0 -28
  338. package/rendering/header/header.module.d.ts +0 -84
  339. package/shared.module.d.ts +0 -29
  340. /package/{esm2020 → esm2022}/column-menu/column-menu-settings.interface.mjs +0 -0
  341. /package/{esm2020 → esm2022}/column-menu/utils.mjs +0 -0
  342. /package/{esm2020 → esm2022}/column-resizing/column-resize.interface.mjs +0 -0
  343. /package/{esm2020 → esm2022}/columns/column-common.mjs +0 -0
  344. /package/{esm2020 → esm2022}/columns/sort-settings.mjs +0 -0
  345. /package/{esm2020 → esm2022}/common/cell-click-event-args.interface.mjs +0 -0
  346. /package/{esm2020 → esm2022}/common/create-form-group.mjs +0 -0
  347. /package/{esm2020 → esm2022}/common/default-track-by.mjs +0 -0
  348. /package/{esm2020 → esm2022}/common/filter-descriptor-differ.mjs +0 -0
  349. /package/{esm2020 → esm2022}/common/filter-operator.interface.mjs +0 -0
  350. /package/{esm2020/pager → esm2022/common}/pager-settings.mjs +0 -0
  351. /package/{esm2020 → esm2022}/common/remove-confirmation.mjs +0 -0
  352. /package/{esm2020 → esm2022}/data/change-event-args.interface.mjs +0 -0
  353. /package/{esm2020 → esm2022}/data/data-item.interface.mjs +0 -0
  354. /package/{esm2020 → esm2022}/data/treelist-item.interface.mjs +0 -0
  355. /package/{esm2020 → esm2022}/dragdrop/column-reorder-config.mjs +0 -0
  356. /package/{esm2020 → esm2022}/dragdrop/common.mjs +0 -0
  357. /package/{esm2020 → esm2022}/dragdrop/context-types.mjs +0 -0
  358. /package/{esm2020 → esm2022}/editing/add-event-args.interface.mjs +0 -0
  359. /package/{esm2020 → esm2022}/editing/cancel-event-args.interface.mjs +0 -0
  360. /package/{esm2020 → esm2022}/editing/edit-event-args.interface.mjs +0 -0
  361. /package/{esm2020 → esm2022}/editing/remove-event-args.interface.mjs +0 -0
  362. /package/{esm2020 → esm2022}/editing/save-event-args.interface.mjs +0 -0
  363. /package/{esm2020 → esm2022}/editing-directives/create-form-group-args.interface.mjs +0 -0
  364. /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
  365. /package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +0 -0
  366. /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
  367. /package/{esm2020 → esm2022}/excel/excel-export-data.interface.mjs +0 -0
  368. /package/{esm2020 → esm2022}/filtering/cell/filter-cell-component.factory.mjs +0 -0
  369. /package/{esm2020 → esm2022}/filtering/filter-component.interface.mjs +0 -0
  370. /package/{esm2020 → esm2022}/filtering/filterable.mjs +0 -0
  371. /package/{esm2020 → esm2022}/filtering/menu/filter-menu-component.factory.mjs +0 -0
  372. /package/{esm2020 → esm2022}/layout/row-sync.mjs +0 -0
  373. /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
  374. /package/{esm2020 → esm2022}/navigation/logical-cell.interface.mjs +0 -0
  375. /package/{esm2020 → esm2022}/navigation/logical-row.interface.mjs +0 -0
  376. /package/{esm2020 → esm2022}/navigation/navigation-cell.interface.mjs +0 -0
  377. /package/{esm2020 → esm2022}/navigation/navigation-change.interface.mjs +0 -0
  378. /package/{esm2020 → esm2022}/navigation/navigation-mode.mjs +0 -0
  379. /package/{esm2020 → esm2022}/navigation/navigation-row.interface.mjs +0 -0
  380. /package/{esm2020 → esm2022}/pdf/export-element.mjs +0 -0
  381. /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
  382. /package/{esm2020 → esm2022}/pdf/pdf-margin.interface.mjs +0 -0
  383. /package/{esm2020 → esm2022}/progress-kendo-angular-treelist.mjs +0 -0
  384. /package/{esm2020 → esm2022}/rendering/common/dom-queries.mjs +0 -0
  385. /package/{esm2020 → esm2022}/rendering/common/row-class.mjs +0 -0
  386. /package/{esm2020 → esm2022}/rendering/constants.mjs +0 -0
  387. /package/{esm2020 → esm2022}/row-reordering/types.mjs +0 -0
  388. /package/{esm2020 → esm2022}/row-reordering/utils.mjs +0 -0
  389. /package/{esm2020 → esm2022}/scrolling/content-scroll-event.mjs +0 -0
  390. /package/{esm2020 → esm2022}/scrolling/scroll-bottom-event.mjs +0 -0
  391. /package/{esm2020 → esm2022}/scrolling/scrollmode.mjs +0 -0
  392. /package/{esm2020 → esm2022}/selection/is-selected.mjs +0 -0
  393. /package/{esm2020 → esm2022}/selection/selectable-settings.mjs +0 -0
  394. /package/{esm2020 → esm2022}/utils.mjs +0 -0
@@ -33,19 +33,22 @@ import * as i2 from "@progress/kendo-angular-l10n";
33
33
  * ```
34
34
  */
35
35
  export class RemoveCommandDirective extends BaseCommandDirective {
36
+ /**
37
+ * The `cellContext` provided to the template.
38
+ */
39
+ cellContext;
40
+ commandClass = true;
41
+ readVisible = true;
36
42
  constructor(editService, element, renderer, localization, ngZone) {
37
43
  super(editService, element, renderer, localization, ngZone);
38
- this.commandClass = true;
39
- this.readVisible = true;
40
44
  }
41
45
  onClick() {
42
46
  if (this.cellContext) {
43
47
  this.editService.remove(this.dataItem, (this.cellContext.viewItem.parent || {}).data);
44
48
  }
45
49
  }
46
- }
47
- RemoveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
48
- RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RemoveCommandDirective, isStandalone: true, selector: "[kendoTreeListRemoveCommand]", inputs: { cellContext: ["kendoTreeListRemoveCommand", "cellContext"] }, host: { properties: { "class.k-grid-remove-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
51
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RemoveCommandDirective, isStandalone: true, selector: "[kendoTreeListRemoveCommand]", inputs: { cellContext: ["kendoTreeListRemoveCommand", "cellContext"] }, host: { properties: { "class.k-grid-remove-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
49
52
  <kendo-icon-wrapper
50
53
  *ngIf="icon || svgIcon"
51
54
  innerCssClass="k-button-icon"
@@ -57,7 +60,8 @@ RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
57
60
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
58
61
  <span class="k-button-text"><ng-content></ng-content></span>
59
62
  `, 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"] }] });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveCommandDirective, decorators: [{
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RemoveCommandDirective, decorators: [{
61
65
  type: Component,
62
66
  args: [{
63
67
  selector: '[kendoTreeListRemoveCommand]',
@@ -33,19 +33,22 @@ import * as i2 from "@progress/kendo-angular-l10n";
33
33
  * ```
34
34
  */
35
35
  export class SaveCommandDirective extends BaseCommandDirective {
36
+ /**
37
+ * The `cellContext` provided to the template.
38
+ */
39
+ cellContext;
40
+ commandClass = true;
41
+ readVisible = false;
36
42
  constructor(editService, element, renderer, localization, ngZone) {
37
43
  super(editService, element, renderer, localization, ngZone);
38
- this.commandClass = true;
39
- this.readVisible = false;
40
44
  }
41
45
  onClick() {
42
46
  if (this.cellContext) {
43
47
  this.editService.save(this.dataItem, this.cellContext.viewItem.isNew);
44
48
  }
45
49
  }
46
- }
47
- SaveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SaveCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
48
- SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SaveCommandDirective, isStandalone: true, selector: "[kendoTreeListSaveCommand]", inputs: { cellContext: ["kendoTreeListSaveCommand", "cellContext"] }, host: { properties: { "class.k-grid-save-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SaveCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
51
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SaveCommandDirective, isStandalone: true, selector: "[kendoTreeListSaveCommand]", inputs: { cellContext: ["kendoTreeListSaveCommand", "cellContext"] }, host: { properties: { "class.k-grid-save-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
49
52
  <kendo-icon-wrapper
50
53
  *ngIf="icon || svgIcon"
51
54
  innerCssClass="k-button-icon"
@@ -57,7 +60,8 @@ SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
57
60
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
58
61
  <span class="k-button-text"><ng-content></ng-content></span>
59
62
  `, 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"] }] });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SaveCommandDirective, decorators: [{
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SaveCommandDirective, decorators: [{
61
65
  type: Component,
62
66
  args: [{
63
67
  selector: '[kendoTreeListSaveCommand]',
@@ -12,10 +12,7 @@ import * as i1 from "../treelist.component";
12
12
  * @hidden
13
13
  */
14
14
  export class EditingDirectiveBase {
15
- constructor(treelist) {
16
- this.treelist = treelist;
17
- this.subscriptions = new Subscription();
18
- }
15
+ treelist;
19
16
  /**
20
17
  * The edit service that will handle the operations.
21
18
  */
@@ -36,6 +33,19 @@ export class EditingDirectiveBase {
36
33
  get newItemId() {
37
34
  return this.idCallback;
38
35
  }
36
+ /**
37
+ * A function that is called to confirm if the `dataItem` will be removed.
38
+ */
39
+ removeConfirmation;
40
+ subscriptions = new Subscription();
41
+ userEditService;
42
+ isNew;
43
+ parent;
44
+ dataItem;
45
+ idCallback;
46
+ constructor(treelist) {
47
+ this.treelist = treelist;
48
+ }
39
49
  /**
40
50
  * @hidden
41
51
  */
@@ -112,10 +122,10 @@ export class EditingDirectiveBase {
112
122
  onStateChange() {
113
123
  this.closeEditor();
114
124
  }
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditingDirectiveBase, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
126
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditingDirectiveBase, inputs: { editService: "editService", newItemId: "newItemId", removeConfirmation: "removeConfirmation" }, ngImport: i0 });
115
127
  }
116
- EditingDirectiveBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditingDirectiveBase, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
117
- EditingDirectiveBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditingDirectiveBase, inputs: { editService: "editService", newItemId: "newItemId", removeConfirmation: "removeConfirmation" }, ngImport: i0 });
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditingDirectiveBase, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditingDirectiveBase, decorators: [{
119
129
  type: Directive,
120
130
  args: [{}]
121
131
  }], ctorParameters: function () { return [{ type: i1.TreeListComponent }]; }, propDecorators: { editService: [{
@@ -10,6 +10,7 @@ import { insertNewItem } from './utils';
10
10
  * @hidden
11
11
  */
12
12
  export class FlatEditService extends LocalEditService {
13
+ bindingDirective;
13
14
  constructor(bindingDirective) {
14
15
  super();
15
16
  this.bindingDirective = bindingDirective;
@@ -8,6 +8,7 @@ import { insertNewItem } from './utils';
8
8
  * @hidden
9
9
  */
10
10
  export class HierarchyEditService extends LocalEditService {
11
+ bindingDirective;
11
12
  constructor(bindingDirective) {
12
13
  super();
13
14
  this.bindingDirective = bindingDirective;
@@ -13,6 +13,11 @@ import * as i1 from "../treelist.component";
13
13
  * editing with Reactive Forms ([see example](slug:editing_directives_treelist#toc-in-cell-editing-directive)).
14
14
  */
15
15
  export class InCellEditingDirective extends EditingDirectiveBase {
16
+ treelist;
17
+ /**
18
+ * The function that creates the `FormGroup` for the edited model.
19
+ */
20
+ createFormGroup;
16
21
  constructor(treelist) {
17
22
  super(treelist);
18
23
  this.treelist = treelist;
@@ -58,10 +63,10 @@ export class InCellEditingDirective extends EditingDirectiveBase {
58
63
  this.editService.update(dataItem);
59
64
  }
60
65
  }
66
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InCellEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
67
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InCellEditingDirective, isStandalone: true, selector: "[kendoTreeListInCellEditing]", inputs: { createFormGroup: ["kendoTreeListInCellEditing", "createFormGroup"] }, exportAs: ["kendoTreeListInCellEditing"], usesInheritance: true, ngImport: i0 });
61
68
  }
62
- InCellEditingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InCellEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
63
- InCellEditingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: InCellEditingDirective, isStandalone: true, selector: "[kendoTreeListInCellEditing]", inputs: { createFormGroup: ["kendoTreeListInCellEditing", "createFormGroup"] }, exportAs: ["kendoTreeListInCellEditing"], usesInheritance: true, ngImport: i0 });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InCellEditingDirective, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InCellEditingDirective, decorators: [{
65
70
  type: Directive,
66
71
  args: [{
67
72
  exportAs: 'kendoTreeListInCellEditing',
@@ -13,6 +13,11 @@ import * as i1 from "../treelist.component";
13
13
  * Reactive Forms ([see example](slug:editing_directives_treelist#toc-reactive-editing-directive)).
14
14
  */
15
15
  export class ReactiveEditingDirective extends RowEditingDirectiveBase {
16
+ treelist;
17
+ /**
18
+ * The function that creates the `FormGroup` for the edited model.
19
+ */
20
+ createFormGroup;
16
21
  constructor(treelist) {
17
22
  super(treelist);
18
23
  this.treelist = treelist;
@@ -30,10 +35,10 @@ export class ReactiveEditingDirective extends RowEditingDirectiveBase {
30
35
  }
31
36
  markAllAsTouched(formGroup);
32
37
  }
38
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReactiveEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
39
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ReactiveEditingDirective, isStandalone: true, selector: "[kendoTreeListReactiveEditing]", inputs: { createFormGroup: ["kendoTreeListReactiveEditing", "createFormGroup"] }, exportAs: ["kendoTreeListReactiveEditing"], usesInheritance: true, ngImport: i0 });
33
40
  }
34
- ReactiveEditingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReactiveEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
35
- ReactiveEditingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ReactiveEditingDirective, isStandalone: true, selector: "[kendoTreeListReactiveEditing]", inputs: { createFormGroup: ["kendoTreeListReactiveEditing", "createFormGroup"] }, exportAs: ["kendoTreeListReactiveEditing"], usesInheritance: true, ngImport: i0 });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReactiveEditingDirective, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReactiveEditingDirective, decorators: [{
37
42
  type: Directive,
38
43
  args: [{
39
44
  exportAs: 'kendoTreeListReactiveEditing',
@@ -30,10 +30,10 @@ export class RowEditingDirectiveBase extends EditingDirectiveBase {
30
30
  super.saveHandler(args);
31
31
  this.clean();
32
32
  }
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowEditingDirectiveBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
34
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RowEditingDirectiveBase, usesInheritance: true, ngImport: i0 });
33
35
  }
34
- RowEditingDirectiveBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RowEditingDirectiveBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
35
- RowEditingDirectiveBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: RowEditingDirectiveBase, usesInheritance: true, ngImport: i0 });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RowEditingDirectiveBase, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowEditingDirectiveBase, decorators: [{
37
37
  type: Directive,
38
38
  args: [{}]
39
39
  }] });
@@ -12,6 +12,12 @@ import * as i1 from "../treelist.component";
12
12
  * the Template-Driven Angular Forms ([see example](slug:editing_directives_treelist#toc-template-editing-directive)).
13
13
  */
14
14
  export class TemplateEditingDirective extends RowEditingDirectiveBase {
15
+ treelist;
16
+ /**
17
+ * The function that creates the `dataItem` for the new rows.
18
+ */
19
+ createNewItem;
20
+ originalValues;
15
21
  constructor(treelist) {
16
22
  super(treelist);
17
23
  this.treelist = treelist;
@@ -36,10 +42,10 @@ export class TemplateEditingDirective extends RowEditingDirectiveBase {
36
42
  saveModel(args) {
37
43
  return args.dataItem;
38
44
  }
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TemplateEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
46
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TemplateEditingDirective, isStandalone: true, selector: "[kendoTreeListTemplateEditing]", inputs: { createNewItem: ["kendoTreeListTemplateEditing", "createNewItem"] }, exportAs: ["kendoTreeListTemplateEditing"], usesInheritance: true, ngImport: i0 });
39
47
  }
40
- TemplateEditingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TemplateEditingDirective, deps: [{ token: i1.TreeListComponent }], target: i0.ɵɵFactoryTarget.Directive });
41
- TemplateEditingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TemplateEditingDirective, isStandalone: true, selector: "[kendoTreeListTemplateEditing]", inputs: { createNewItem: ["kendoTreeListTemplateEditing", "createNewItem"] }, exportAs: ["kendoTreeListTemplateEditing"], usesInheritance: true, ngImport: i0 });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TemplateEditingDirective, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TemplateEditingDirective, decorators: [{
43
49
  type: Directive,
44
50
  args: [{
45
51
  exportAs: 'kendoTreeListTemplateEditing',
@@ -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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
+ import { Subscription } from 'rxjs';
8
+ import { fileExcelIcon } from '@progress/kendo-svg-icons';
9
+ import { ExcelService } from './excel.service';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./excel.service";
12
+ import * as i2 from "@progress/kendo-angular-toolbar";
13
+ /**
14
+ * Represents the `export-to-Excel` 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 a button associated with the directive, the
19
+ * [excelExport]({% slug api_treelist_treelistcomponent %}#toc-excelexport) event
20
+ * fires ([see example]({% slug excelexport_treelist %})).
21
+ *
22
+ * @example
23
+ * ```html-no-run
24
+ * <kendo-treelist>
25
+ * <kendo-toolbar>
26
+ * <kendo-toolbar-button text="Excel Export" kendoTreeListExcelTool></kendo-toolbar-button>
27
+ * </kendo-toolbar>
28
+ * <kendo-treelist-excel fileName="TreeList.xlsx">
29
+ * </kendo-treelist-excel>
30
+ * </kendo-treelist>
31
+ * ```
32
+ */
33
+ export class ExcelCommandToolbarDirective {
34
+ excelService;
35
+ host;
36
+ clickSub = new Subscription();
37
+ constructor(excelService, host) {
38
+ this.excelService = excelService;
39
+ this.host = host;
40
+ }
41
+ ngOnInit() {
42
+ this.clickSub = this.host.click.subscribe(e => this.onClick(e));
43
+ this.host.className = 'k-grid-excel';
44
+ this.host.svgIcon = fileExcelIcon;
45
+ this.host.icon = 'file-excel';
46
+ }
47
+ ngOnDestroy() {
48
+ this.clickSub.unsubscribe();
49
+ }
50
+ /**
51
+ * @hidden
52
+ */
53
+ onClick(e) {
54
+ e.preventDefault();
55
+ this.excelService.exportClick.emit();
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelCommandToolbarDirective, deps: [{ token: i1.ExcelService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
58
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ExcelCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListExcelTool]", ngImport: i0 });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelCommandToolbarDirective, decorators: [{
61
+ type: Directive,
62
+ args: [{
63
+ selector: '[kendoTreeListExcelTool]',
64
+ standalone: true
65
+ }]
66
+ }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i2.ToolBarButtonComponent }]; } });
@@ -30,11 +30,7 @@ import * as i2 from "@progress/kendo-angular-l10n";
30
30
  * ```
31
31
  */
32
32
  export class ExcelCommandDirective extends Button {
33
- constructor(excelService, element, renderer, localization, ngZone) {
34
- super(element, renderer, null, localization, ngZone);
35
- this.excelService = excelService;
36
- this.ngZone = ngZone;
37
- }
33
+ excelService;
38
34
  /**
39
35
  * @hidden
40
36
  */
@@ -48,9 +44,13 @@ export class ExcelCommandDirective extends Button {
48
44
  get excelClass() {
49
45
  return true;
50
46
  }
51
- }
52
- ExcelCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelCommandDirective, deps: [{ token: i1.ExcelService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
53
- ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExcelCommandDirective, isStandalone: true, selector: "[kendoTreeListExcelCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-excel": "this.excelClass" } }, usesInheritance: true, ngImport: i0, template: `
47
+ constructor(excelService, element, renderer, localization, ngZone) {
48
+ super(element, renderer, null, localization, ngZone);
49
+ this.excelService = excelService;
50
+ this.ngZone = ngZone;
51
+ }
52
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelCommandDirective, deps: [{ token: i1.ExcelService }, { 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: ExcelCommandDirective, isStandalone: true, selector: "[kendoTreeListExcelCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-excel": "this.excelClass" } }, 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 @@ ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
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: ExcelCommandDirective, decorators: [{
65
+ }
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelCommandDirective, decorators: [{
66
67
  type: Component,
67
68
  args: [{
68
69
  selector: '[kendoTreeListExcelCommand]',
@@ -7,6 +7,7 @@ import { PreventableEvent } from '../common/preventable-event';
7
7
  * Arguments for the `excelExport` event. [See example](slug:excelexport_treelist#toc-customizing-generated-workbooks).
8
8
  */
9
9
  export class ExcelExportEvent extends PreventableEvent {
10
+ workbook;
10
11
  constructor(workbook) {
11
12
  super();
12
13
  this.workbook = workbook;
@@ -79,29 +79,78 @@ const componentColumns = (component) => {
79
79
  * Configures the settings for the export of TreeList in Excel ([see example]({% slug excelexport_treelist %})).
80
80
  */
81
81
  export class ExcelComponent {
82
+ excelService;
83
+ localization;
84
+ zone;
85
+ /**
86
+ * Specifies the file name of the exported Excel file.
87
+ * @default "Export.xlsx"
88
+ */
89
+ fileName = 'Export.xlsx';
90
+ /**
91
+ * Enables or disables column filtering in the Excel file. This behavior is different from the filtering feature of the TreeList.
92
+ */
93
+ filterable;
94
+ /**
95
+ * The author of the workbook.
96
+ */
97
+ creator;
98
+ /**
99
+ * The date on which the workbook was created. Defaults to `new Date()`.
100
+ */
101
+ date;
102
+ /**
103
+ * If set to `true`, the content is forwarded to `proxyURL` even if the browser supports the saving of files locally.
104
+ */
105
+ forceProxy;
106
+ /**
107
+ * The URL of the server-side proxy which streams the file to the end user.
108
+ * Using a proxy is required if the browser is not capable of saving files locally.
109
+ *
110
+ * Optionally, set up a proxy to reduce memory usage. This avoids copying the file contents into memory,
111
+ * but transmits it over the network instead. For this use case, set [forceProxy](#toc-forceproxy) to `true`
112
+ * to skip client-side saving even in browsers that support it.
113
+ *
114
+ * In the request body, the proxy receives a POST request with the specific parameters. [See example](slug:server_proxy#toc-implementations).
115
+ * The proxy returns the decoded file with the `"Content-Disposition"` header set to `attachment; filename="<fileName.xslx>"`.
116
+ *
117
+ * For details on the server-side proxy usage and implementation, see the [File Saver]({% slug overview_filesaver %}) documentation.
118
+ *
119
+ */
120
+ proxyURL;
121
+ /**
122
+ * The function that is used to get the exported data options. By default, uses the current data of the TreeList.
123
+ * To export data that is different from the current TreeList data, provide a custom function.
124
+ */
125
+ fetchData;
126
+ /**
127
+ * Specifies if the item levels in the Excel file are collapsible. Applicable only if the treelist has footers.
128
+ */
129
+ collapsible;
130
+ /**
131
+ * Specifies if export should include all pages
132
+ * @default true
133
+ */
134
+ allPages = true;
135
+ /**
136
+ * Specifies if the export should expand all items or should use the current TreeList state.
137
+ * @default true
138
+ */
139
+ expandAll = true;
140
+ /**
141
+ * The options of the cells that are inserted before the data to indicate the hierarchy.
142
+ */
143
+ paddingCellOptions;
144
+ /**
145
+ * @hidden
146
+ */
147
+ columns = new QueryList();
148
+ saveSubscription;
149
+ dataSubscription;
82
150
  constructor(excelService, localization, zone) {
83
151
  this.excelService = excelService;
84
152
  this.localization = localization;
85
153
  this.zone = zone;
86
- /**
87
- * Specifies the file name of the exported Excel file.
88
- * @default "Export.xlsx"
89
- */
90
- this.fileName = 'Export.xlsx';
91
- /**
92
- * Specifies if export should include all pages
93
- * @default true
94
- */
95
- this.allPages = true;
96
- /**
97
- * Specifies if the export should expand all items or should use the current TreeList state.
98
- * @default true
99
- */
100
- this.expandAll = true;
101
- /**
102
- * @hidden
103
- */
104
- this.columns = new QueryList();
105
154
  this.saveSubscription = excelService.saveToExcel.subscribe(this.save.bind(this));
106
155
  }
107
156
  ngOnDestroy() {
@@ -184,10 +233,10 @@ export class ExcelComponent {
184
233
  loaded: new Map(component.view.loaded)
185
234
  };
186
235
  }
236
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelComponent, deps: [{ token: i1.ExcelService }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
237
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ExcelComponent, isStandalone: true, selector: "kendo-treelist-excel", inputs: { fileName: "fileName", filterable: "filterable", creator: "creator", date: "date", forceProxy: "forceProxy", proxyURL: "proxyURL", fetchData: "fetchData", collapsible: "collapsible", allPages: "allPages", expandAll: "expandAll", paddingCellOptions: "paddingCellOptions" }, queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], ngImport: i0, template: ``, isInline: true });
187
238
  }
188
- ExcelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelComponent, deps: [{ token: i1.ExcelService }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
189
- ExcelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExcelComponent, isStandalone: true, selector: "kendo-treelist-excel", inputs: { fileName: "fileName", filterable: "filterable", creator: "creator", date: "date", forceProxy: "forceProxy", proxyURL: "proxyURL", fetchData: "fetchData", collapsible: "collapsible", allPages: "allPages", expandAll: "expandAll", paddingCellOptions: "paddingCellOptions" }, queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], ngImport: i0, template: ``, isInline: true });
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelComponent, decorators: [{
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelComponent, decorators: [{
191
240
  type: Component,
192
241
  args: [{
193
242
  selector: 'kendo-treelist-excel',
@@ -9,6 +9,7 @@ import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "./excel.component";
11
11
  import * as i2 from "./excel-command.directive";
12
+ import * as i3 from "./excel-command-tool.directive";
12
13
  // IMPORTANT: NgModule export kept for backwards compatibility
13
14
  /**
14
15
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -30,11 +31,11 @@ import * as i2 from "./excel-command.directive";
30
31
  * ```
31
32
  */
32
33
  export class ExcelModule {
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ExcelModule, imports: [i1.ExcelComponent, i2.ExcelCommandDirective, i3.ExcelCommandToolbarDirective], exports: [i1.ExcelComponent, i2.ExcelCommandDirective, i3.ExcelCommandToolbarDirective, ExcelExportModule] });
36
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [i2.ExcelCommandDirective, ExcelExportModule] });
33
37
  }
34
- ExcelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
- ExcelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, imports: [i1.ExcelComponent, i2.ExcelCommandDirective], exports: [i1.ExcelComponent, i2.ExcelCommandDirective, ExcelExportModule] });
36
- ExcelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [EXCEL_EXPORTS, ExcelExportModule] });
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelModule, decorators: [{
38
39
  type: NgModule,
39
40
  args: [{
40
41
  imports: [...EXCEL_EXPORTS],
@@ -8,11 +8,10 @@ import * as i0 from "@angular/core";
8
8
  * @hidden
9
9
  */
10
10
  export class ExcelService {
11
- constructor() {
12
- this.saveToExcel = new EventEmitter();
13
- this.exportClick = new EventEmitter();
14
- this.loadingChange = new EventEmitter();
15
- }
11
+ saveToExcel = new EventEmitter();
12
+ exportClick = new EventEmitter();
13
+ loadingChange = new EventEmitter();
14
+ loading;
16
15
  save(component) {
17
16
  if (this.saveToExcel.observers.length === 0) {
18
17
  if (isDevMode()) {
@@ -27,9 +26,9 @@ export class ExcelService {
27
26
  this.loading = value;
28
27
  this.loadingChange.emit();
29
28
  }
29
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
30
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelService });
30
31
  }
31
- ExcelService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
32
- ExcelService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelService });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelService, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelService, decorators: [{
34
33
  type: Injectable
35
34
  }] });
@@ -7,6 +7,18 @@ import { PreventableEvent } from '../common/preventable-event';
7
7
  * Arguments for the TreeList expand and collapse events ([see examples]({% slug treelist_expanded_state %})).
8
8
  */
9
9
  export class ExpandEvent extends PreventableEvent {
10
+ /**
11
+ * The expanded/collapsed data item.
12
+ */
13
+ dataItem;
14
+ /**
15
+ * The TreeList component that triggered the event.
16
+ */
17
+ sender;
18
+ /**
19
+ * @hidden
20
+ */
21
+ expand;
10
22
  /**
11
23
  * @hidden
12
24
  */
@@ -14,10 +14,8 @@ export const defaultExpanded = (_item) => true;
14
14
  * @hidden
15
15
  */
16
16
  export class ExpandStateService {
17
- constructor() {
18
- this.changes = new Subject();
19
- this.isExpanded = defaultExpanded;
20
- }
17
+ changes = new Subject();
18
+ isExpanded = defaultExpanded;
21
19
  toggleState(dataItem) {
22
20
  const isExpanded = this.isExpanded(dataItem);
23
21
  this.changes.next(new ExpandEvent({ dataItem: dataItem, expand: !isExpanded }));
@@ -32,9 +30,9 @@ export class ExpandStateService {
32
30
  this.changes.next(new ExpandEvent({ dataItem: dataItem, expand: false }));
33
31
  }
34
32
  }
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandStateService });
35
35
  }
36
- ExpandStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
37
- ExpandStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandStateService });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandStateService, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandStateService, decorators: [{
39
37
  type: Injectable
40
38
  }] });
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
10
10
  * An injection token used by the expand-directive to interface with the TreeList or the Gantt.
11
11
  */
12
12
  export class ExpandableTreeComponent {
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandableTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandableTreeComponent });
13
15
  }
14
- ExpandableTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandableTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15
- ExpandableTreeComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandableTreeComponent });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandableTreeComponent, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandableTreeComponent, decorators: [{
17
17
  type: Injectable
18
18
  }] });