@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
@@ -1,244 +0,0 @@
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
- /* eslint-disable @typescript-eslint/no-inferrable-types */
6
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewChild } from '@angular/core';
7
- import { NgIf, NgFor, NgClass } from '@angular/common';
8
- import { LocalizationService } from '@progress/kendo-angular-l10n';
9
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
10
- import { PagerContextService } from './pager-context.service';
11
- import { PagerElementComponent } from './pager-element.component';
12
- import { FocusableDirective } from '../navigation/focusable.directive';
13
- import * as i0 from "@angular/core";
14
- import * as i1 from "@progress/kendo-angular-l10n";
15
- import * as i2 from "./pager-context.service";
16
- /**
17
- * Displays numeric buttons to enable navigation between the pages ([see example](slug:pager_template_treelist)).
18
- */
19
- export class PagerNumericButtonsComponent extends PagerElementComponent {
20
- constructor(localization, cd, pagerContext) {
21
- super(localization, pagerContext, cd);
22
- this.pagerContext = pagerContext;
23
- }
24
- /**
25
- * @hidden
26
- *
27
- * @readonly
28
- * @type {number[]}
29
- * @memberOf PagerNumericButtonsComponent
30
- */
31
- get buttons() {
32
- const result = [];
33
- for (let idx = this.start; idx <= this.end; idx++) {
34
- result.push(idx);
35
- }
36
- return result;
37
- }
38
- /**
39
- * @hidden
40
- */
41
- get end() {
42
- return Math.min((this.start + this.buttonCount) - 1, this.totalPages);
43
- }
44
- /**
45
- * @hidden
46
- */
47
- get start() {
48
- const page = this.currentPage;
49
- const buttonCount = this.buttonCount;
50
- if (page > buttonCount) {
51
- const reminder = (page % buttonCount);
52
- return (reminder === 0) ? (page - buttonCount) + 1 : (page - reminder) + 1;
53
- }
54
- return 1;
55
- }
56
- /**
57
- * @hidden
58
- */
59
- pageLabel(num) {
60
- const pageText = this.textFor('pagerPage');
61
- if (pageText) {
62
- return pageText + ' ' + num;
63
- }
64
- return num.toString();
65
- }
66
- /**
67
- * @hidden
68
- */
69
- onSelectChange(e) {
70
- const target = e.target;
71
- const valueAsNumber = Number(target.value);
72
- if (!Number.isNaN(valueAsNumber)) {
73
- this.changePage(valueAsNumber - 1);
74
- }
75
- else {
76
- if (target.value === 'previousButtons') {
77
- this.changePage(this.start - 2);
78
- }
79
- else {
80
- this.changePage(this.end);
81
- }
82
- }
83
- }
84
- onChanges({ total, skip, pageSize }) {
85
- this.total = total;
86
- this.skip = skip;
87
- this.pageSize = pageSize;
88
- this.cd.markForCheck();
89
- }
90
- }
91
- PagerNumericButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
92
- PagerNumericButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerNumericButtonsComponent, isStandalone: true, selector: "kendo-treelist-pager-numeric-buttons", inputs: { buttonCount: "buttonCount" }, viewQueries: [{ propertyName: "selectElement", first: true, predicate: ["select"], descendants: true, read: ElementRef }, { propertyName: "numbersElement", first: true, predicate: ["numbers"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
93
- <select
94
- class="k-dropdown-list k-dropdown k-picker k-picker-solid k-picker-md k-rounded-md"
95
- kendoTreeListFocusable
96
- [style.display]="'none'"
97
- #select
98
- [attr.title]="textFor('selectPage')"
99
- [attr.aria-label]="textFor('selectPage')"
100
- (change)="onSelectChange($event)">
101
- <option *ngIf="start > 1"
102
- value="previousButtons"
103
- [selected]="false"
104
- [attr.aria-label]="pageLabel(start - 1)">...
105
- </option>
106
- <option *ngFor="let num of buttons"
107
- [value]="num.toString()"
108
- [selected]="num === currentPage"
109
- [attr.aria-label]="pageLabel(num)"
110
- [attr.aria-current]="currentPage === num ? 'page' : undefined"
111
- [ngClass]="{'k-selected':currentPage === num}">
112
- {{num}}
113
- </option>
114
- <option *ngIf="end < totalPages"
115
- value="nextButtons"
116
- [selected]="false"
117
- [attr.aria-label]="pageLabel(end + 1)">...
118
- </option>
119
- </select>
120
- <div class="k-pager-numbers" #numbers>
121
- <button *ngIf="start > 1"
122
- type="button"
123
- kendoTreeListFocusable
124
- kendoButton
125
- fillMode="flat"
126
- themeColor="primary"
127
- class="k-pager-nav"
128
- rounded="none"
129
- [attr.aria-label]="pageLabel(start - 1)"
130
- [attr.title]="pageLabel(start - 1)"
131
- (click)="changePage(start - 2)">...</button>
132
- <button *ngFor="let num of buttons"
133
- type="button"
134
- kendoTreeListFocusable
135
- kendoButton
136
- fillMode="flat"
137
- themeColor="primary"
138
- class="k-pager-nav"
139
- rounded="none"
140
- [attr.aria-label]="pageLabel(num)"
141
- [attr.title]="pageLabel(num)"
142
- [attr.aria-current]="currentPage === num ? 'page' : undefined"
143
- [selected]="currentPage === num"
144
- (click)="changePage(num - 1)">
145
- {{num}}
146
- </button>
147
- <button *ngIf="end < totalPages"
148
- type="button"
149
- kendoTreeListFocusable
150
- kendoButton
151
- class="k-pager-nav"
152
- fillMode="flat"
153
- themeColor="primary"
154
- rounded="none"
155
- [attr.aria-label]="pageLabel(end + 1)"
156
- [attr.title]="pageLabel(end + 1)"
157
- (click)="changePage(end)">...</button>
158
- </div>
159
- `, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNumericButtonsComponent, decorators: [{
161
- type: Component,
162
- args: [{
163
- changeDetection: ChangeDetectionStrategy.OnPush,
164
- selector: 'kendo-treelist-pager-numeric-buttons',
165
- template: `
166
- <select
167
- class="k-dropdown-list k-dropdown k-picker k-picker-solid k-picker-md k-rounded-md"
168
- kendoTreeListFocusable
169
- [style.display]="'none'"
170
- #select
171
- [attr.title]="textFor('selectPage')"
172
- [attr.aria-label]="textFor('selectPage')"
173
- (change)="onSelectChange($event)">
174
- <option *ngIf="start > 1"
175
- value="previousButtons"
176
- [selected]="false"
177
- [attr.aria-label]="pageLabel(start - 1)">...
178
- </option>
179
- <option *ngFor="let num of buttons"
180
- [value]="num.toString()"
181
- [selected]="num === currentPage"
182
- [attr.aria-label]="pageLabel(num)"
183
- [attr.aria-current]="currentPage === num ? 'page' : undefined"
184
- [ngClass]="{'k-selected':currentPage === num}">
185
- {{num}}
186
- </option>
187
- <option *ngIf="end < totalPages"
188
- value="nextButtons"
189
- [selected]="false"
190
- [attr.aria-label]="pageLabel(end + 1)">...
191
- </option>
192
- </select>
193
- <div class="k-pager-numbers" #numbers>
194
- <button *ngIf="start > 1"
195
- type="button"
196
- kendoTreeListFocusable
197
- kendoButton
198
- fillMode="flat"
199
- themeColor="primary"
200
- class="k-pager-nav"
201
- rounded="none"
202
- [attr.aria-label]="pageLabel(start - 1)"
203
- [attr.title]="pageLabel(start - 1)"
204
- (click)="changePage(start - 2)">...</button>
205
- <button *ngFor="let num of buttons"
206
- type="button"
207
- kendoTreeListFocusable
208
- kendoButton
209
- fillMode="flat"
210
- themeColor="primary"
211
- class="k-pager-nav"
212
- rounded="none"
213
- [attr.aria-label]="pageLabel(num)"
214
- [attr.title]="pageLabel(num)"
215
- [attr.aria-current]="currentPage === num ? 'page' : undefined"
216
- [selected]="currentPage === num"
217
- (click)="changePage(num - 1)">
218
- {{num}}
219
- </button>
220
- <button *ngIf="end < totalPages"
221
- type="button"
222
- kendoTreeListFocusable
223
- kendoButton
224
- class="k-pager-nav"
225
- fillMode="flat"
226
- themeColor="primary"
227
- rounded="none"
228
- [attr.aria-label]="pageLabel(end + 1)"
229
- [attr.title]="pageLabel(end + 1)"
230
- (click)="changePage(end)">...</button>
231
- </div>
232
- `,
233
- standalone: true,
234
- imports: [FocusableDirective, NgIf, NgFor, NgClass, ButtonComponent]
235
- }]
236
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { selectElement: [{
237
- type: ViewChild,
238
- args: ['select', { read: ElementRef }]
239
- }], numbersElement: [{
240
- type: ViewChild,
241
- args: ['numbers', { read: ElementRef }]
242
- }], buttonCount: [{
243
- type: Input
244
- }] } });
@@ -1,139 +0,0 @@
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
- // eslint-disable no-access-missing-member
6
- import { Component, ChangeDetectorRef, ChangeDetectionStrategy, HostBinding, Input, ElementRef } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { LabelComponent } from '@progress/kendo-angular-label';
9
- import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
10
- import { PagerElementComponent } from './pager-element.component';
11
- import { PagerContextService } from "./pager-context.service";
12
- import { FocusableDirective } from '../navigation/focusable.directive';
13
- import * as i0 from "@angular/core";
14
- import * as i1 from "@progress/kendo-angular-l10n";
15
- import * as i2 from "./pager-context.service";
16
- /**
17
- * Displays a drop-down list for the page size selection ([see example](slug:pager_template_treelist)).
18
- */
19
- export class PagerPageSizesComponent extends PagerElementComponent {
20
- constructor(elem, localization, cd, pagerContext) {
21
- super(localization, pagerContext, cd);
22
- this.elem = elem;
23
- this.pagerContext = pagerContext;
24
- this._pageSizes = [];
25
- }
26
- /**
27
- * The page sizes collection. Can be an Array of numbers and/or PageSizeItem objects.
28
- * [More information and example]({% slug api_treelist_pagerpagesizescomponent %})
29
- */
30
- set pageSizes(pageSizes) {
31
- let normalizedItems = [];
32
- pageSizes.forEach(item => {
33
- if (typeof item === 'number') {
34
- normalizedItems.push({
35
- text: item.toString(),
36
- value: item
37
- });
38
- }
39
- else {
40
- normalizedItems.push(item);
41
- }
42
- });
43
- if (this.pageSize && !normalizedItems.some(item => item.value === this.pageSize)) {
44
- normalizedItems = [{ text: this.pageSize.toString(), value: this.pageSize }, ...normalizedItems];
45
- }
46
- this._pageSizes = normalizedItems;
47
- }
48
- get pageSizes() {
49
- return this._pageSizes;
50
- }
51
- /**
52
- * @hidden
53
- *
54
- * @readonly
55
- */
56
- get classes() {
57
- return true;
58
- }
59
- /**
60
- * @hidden
61
- *
62
- * @readonly
63
- */
64
- get showInitialPageSize() {
65
- return this.pageSizes
66
- .filter(item => {
67
- if (typeof item.value === 'number') {
68
- return item.value === Number(this.pageSize);
69
- }
70
- return this.total === Number(this.pageSize);
71
- })
72
- .length === 0;
73
- }
74
- /**
75
- * @hidden
76
- */
77
- pageSizeChange(value) {
78
- this.pageSize = typeof value === 'number' ? value : this.total;
79
- this.pagerContext.changePageSize(this.pageSize);
80
- }
81
- /**
82
- * @hidden
83
- */
84
- getValue(page) {
85
- return typeof page.value === 'number' ? page.value : this.total;
86
- }
87
- onChanges({ total, skip, pageSize }) {
88
- this.total = total;
89
- this.skip = skip;
90
- this.pageSize = typeof pageSize === 'number' ? pageSize : this.total;
91
- this.cd.markForCheck();
92
- }
93
- }
94
- PagerPageSizesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
95
- PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerPageSizesComponent, isStandalone: true, selector: "kendo-treelist-pager-page-sizes", inputs: { pageSizes: "pageSizes" }, host: { properties: { "class.k-pager-sizes": "this.classes", "class.k-label": "this.classes" } }, usesInheritance: true, ngImport: i0, template: `
96
- <kendo-dropdownlist
97
- #dropdownlist
98
- class="k-dropdown"
99
- [data]="pageSizes"
100
- textField="text"
101
- valueField="value"
102
- kendoTreeListFocusable
103
- [valuePrimitive]="true"
104
- [value]="pageSize"
105
- [attr.aria-label]="textFor('pagerItemsPerPage')"
106
- (valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
107
- <kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
108
- `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
110
- type: Component,
111
- args: [{
112
- changeDetection: ChangeDetectionStrategy.OnPush,
113
- selector: 'kendo-treelist-pager-page-sizes',
114
- template: `
115
- <kendo-dropdownlist
116
- #dropdownlist
117
- class="k-dropdown"
118
- [data]="pageSizes"
119
- textField="text"
120
- valueField="value"
121
- kendoTreeListFocusable
122
- [valuePrimitive]="true"
123
- [value]="pageSize"
124
- [attr.aria-label]="textFor('pagerItemsPerPage')"
125
- (valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
126
- <kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
127
- `,
128
- standalone: true,
129
- imports: [DropDownListComponent, FocusableDirective, LabelComponent]
130
- }]
131
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { pageSizes: [{
132
- type: Input
133
- }], classes: [{
134
- type: HostBinding,
135
- args: ["class.k-pager-sizes"]
136
- }, {
137
- type: HostBinding,
138
- args: ["class.k-label"]
139
- }] } });
@@ -1,126 +0,0 @@
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
- // eslint-disable no-access-missing-member
6
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
9
- import { PagerContextService } from "./pager-context.service";
10
- import { PagerElementComponent } from './pager-element.component';
11
- import { NavigationService } from '../navigation/navigation.service';
12
- import { FocusableDirective } from '../navigation/focusable.directive';
13
- import * as i0 from "@angular/core";
14
- import * as i1 from "@progress/kendo-angular-l10n";
15
- import * as i2 from "./pager-context.service";
16
- import * as i3 from "../navigation/navigation.service";
17
- /**
18
- * Displays buttons for navigating to the first and to the previous page ([see example](slug:pager_template_treelist)).
19
- */
20
- export class PagerPrevButtonsComponent extends PagerElementComponent {
21
- constructor(localization, pagerContext, cd, navigationService) {
22
- super(localization, pagerContext, cd);
23
- this.navigationService = navigationService;
24
- }
25
- /**
26
- * @hidden
27
- *
28
- * @readonly
29
- * @type {boolean}
30
- * @memberOf PagerPrevButtonsComponent
31
- */
32
- get disabled() {
33
- return this.currentPage === 1 || !this.total;
34
- }
35
- /**
36
- * @hidden
37
- */
38
- onButtonClick(buttonName) {
39
- if (this.currentPage !== 1) {
40
- const skipToPage = buttonName === 'prevPage' ? this.currentPage - 2 : 0;
41
- this.changePage(skipToPage);
42
- }
43
- }
44
- onChanges({ total, skip, pageSize }) {
45
- this.total = total;
46
- this.skip = skip;
47
- this.pageSize = pageSize;
48
- this.cd.markForCheck();
49
- }
50
- }
51
- PagerPrevButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPrevButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
52
- PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerPrevButtonsComponent, isStandalone: true, selector: "kendo-treelist-pager-prev-buttons", usesInheritance: true, ngImport: i0, template: `
53
- <button
54
- kendoButton
55
- type="button"
56
- kendoTreeListFocusable
57
- [enabled]="!disabled"
58
- [title]="textFor('pagerFirstPage')"
59
- [attr.aria-label]="textFor('pagerFirstPage')"
60
- (click)="onButtonClick('firstPage')"
61
- role="button"
62
- [icon]="prevArrowIcons[0]"
63
- [svgIcon]="prevArrowSVGIcons[0]"
64
- class="k-pager-nav k-pager-first"
65
- [disabled]="disabled"
66
- fillMode="flat"
67
- rounded="none">
68
- </button>
69
- <button
70
- kendoButton
71
- type="button"
72
- kendoTreeListFocusable
73
- [enabled]="!disabled"
74
- class="k-pager-nav"
75
- [disabled]="disabled"
76
- [icon]="prevArrowIcons[1]"
77
- [svgIcon]="prevArrowSVGIcons[1]"
78
- fillMode="flat"
79
- rounded="none"
80
- [title]="textFor('pagerPreviousPage')"
81
- [attr.aria-label]="textFor('pagerPreviousPage')"
82
- (click)="onButtonClick('prevPage')">
83
- </button>
84
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPrevButtonsComponent, decorators: [{
86
- type: Component,
87
- args: [{
88
- changeDetection: ChangeDetectionStrategy.OnPush,
89
- selector: 'kendo-treelist-pager-prev-buttons',
90
- template: `
91
- <button
92
- kendoButton
93
- type="button"
94
- kendoTreeListFocusable
95
- [enabled]="!disabled"
96
- [title]="textFor('pagerFirstPage')"
97
- [attr.aria-label]="textFor('pagerFirstPage')"
98
- (click)="onButtonClick('firstPage')"
99
- role="button"
100
- [icon]="prevArrowIcons[0]"
101
- [svgIcon]="prevArrowSVGIcons[0]"
102
- class="k-pager-nav k-pager-first"
103
- [disabled]="disabled"
104
- fillMode="flat"
105
- rounded="none">
106
- </button>
107
- <button
108
- kendoButton
109
- type="button"
110
- kendoTreeListFocusable
111
- [enabled]="!disabled"
112
- class="k-pager-nav"
113
- [disabled]="disabled"
114
- [icon]="prevArrowIcons[1]"
115
- [svgIcon]="prevArrowSVGIcons[1]"
116
- fillMode="flat"
117
- rounded="none"
118
- [title]="textFor('pagerPreviousPage')"
119
- [attr.aria-label]="textFor('pagerPreviousPage')"
120
- (click)="onButtonClick('prevPage')">
121
- </button>
122
- `,
123
- standalone: true,
124
- imports: [ButtonComponent, FocusableDirective]
125
- }]
126
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PagerContextService }, { type: i0.ChangeDetectorRef }, { type: i3.NavigationService }]; } });
@@ -1,48 +0,0 @@
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, TemplateRef, Optional } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents the pager template which helps to customize the pager appearance in the TreeList. To define a pager
9
- * template, nest an `<ng-template>` tag with the `kendoTreeListPagerTemplate` directive inside `<kendo-treelist>`. [See example](slug:pager_template_treelist).
10
- *
11
- * The template context provides the following fields:
12
- * * `currentPage`&mdash;The index of the displayed page.
13
- * * `pageSize`&mdash;The value of the current `pageSize`.
14
- * * `skip`&mdash;The current skip value.
15
- * * `total`&mdash;The total number of records.
16
- * * `totalPages`&mdash;The total number of available pages.
17
- *
18
- * @example
19
- * ```html
20
- * <kendo-treelist ...>
21
- * <kendo-treelist-column field="type"></kendo-treelist-column>
22
- * <ng-template
23
- * kendoTreeListPagerTemplate
24
- * let-totalPages="totalPages"
25
- * let-currentPage="currentPage">
26
- * <kendo-treelist-pager-prev-buttons></kendo-treelist-pager-prev-buttons>
27
- * <kendo-treelist-pager-next-buttons></kendo-treelist-pager-next-buttons>
28
- * <kendo-treelist-pager-info></kendo-treelist-pager-info>
29
- * </ng-template>
30
- * </kendo-treelist>
31
- * ```
32
- */
33
- export class PagerTemplateDirective {
34
- constructor(templateRef) {
35
- this.templateRef = templateRef;
36
- }
37
- }
38
- PagerTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
39
- PagerTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PagerTemplateDirective, isStandalone: true, selector: "[kendoTreeListPagerTemplate]", ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerTemplateDirective, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: '[kendoTreeListPagerTemplate]',
44
- standalone: true
45
- }]
46
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
47
- type: Optional
48
- }] }]; } });