@progress/kendo-angular-grid 21.4.1 → 22.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 (354) hide show
  1. package/column-menu/column-menu-item-base.d.ts +1 -1
  2. package/columns/column-base.d.ts +1 -1
  3. package/common/toolbar-tool-base.directive.d.ts +1 -1
  4. package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
  5. package/editing-directives/editing-directive-base.d.ts +1 -1
  6. package/editing-directives/row-editing-directive-base.d.ts +1 -1
  7. package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
  8. package/filtering/base-filter-cell.component.d.ts +1 -1
  9. package/filtering/boolean-filter.component.d.ts +1 -1
  10. package/filtering/date-filter.component.d.ts +1 -1
  11. package/filtering/filter-host.directive.d.ts +1 -1
  12. package/filtering/filter-input-wrapper.component.d.ts +1 -1
  13. package/filtering/numeric-filter.component.d.ts +1 -1
  14. package/filtering/operators/filter-operator.base.d.ts +1 -1
  15. package/filtering/string-filter.component.d.ts +1 -1
  16. package/localization/messages.d.ts +1 -1
  17. package/package.json +28 -36
  18. package/schematics/ngAdd/index.js +7 -7
  19. package/selection/selection-default.d.ts +1 -1
  20. package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
  21. package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
  22. package/esm2022/aggregates/aggregate-types.mjs +0 -5
  23. package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
  24. package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
  25. package/esm2022/aggregates/status-bar.component.mjs +0 -70
  26. package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
  27. package/esm2022/column-menu/column-chooser.component.mjs +0 -230
  28. package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
  29. package/esm2022/column-menu/column-list.component.mjs +0 -478
  30. package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
  31. package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
  32. package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
  33. package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
  34. package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
  35. package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
  36. package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
  37. package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
  38. package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
  39. package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
  40. package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
  41. package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
  42. package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
  43. package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
  44. package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
  45. package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
  46. package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
  47. package/esm2022/column-menu/column-menu.component.mjs +0 -839
  48. package/esm2022/column-menu/column-menu.service.mjs +0 -71
  49. package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
  50. package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
  51. package/esm2022/column-menu/utils.mjs +0 -52
  52. package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
  53. package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
  54. package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
  55. package/esm2022/column-resizing/table.directive.mjs +0 -141
  56. package/esm2022/columns/cell-rowspan.mjs +0 -5
  57. package/esm2022/columns/checkbox-column.component.mjs +0 -106
  58. package/esm2022/columns/column-base.mjs +0 -432
  59. package/esm2022/columns/column-common.mjs +0 -73
  60. package/esm2022/columns/column-group.component.mjs +0 -135
  61. package/esm2022/columns/column-list.mjs +0 -94
  62. package/esm2022/columns/column.component.mjs +0 -198
  63. package/esm2022/columns/columns-container.mjs +0 -101
  64. package/esm2022/columns/command-column.component.mjs +0 -80
  65. package/esm2022/columns/reorder-column.component.mjs +0 -114
  66. package/esm2022/columns/sort-settings.mjs +0 -18
  67. package/esm2022/columns/span-column.component.mjs +0 -195
  68. package/esm2022/common/adaptiveness.service.mjs +0 -72
  69. package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
  70. package/esm2022/common/clipboard-types.mjs +0 -5
  71. package/esm2022/common/clipboard.directive.mjs +0 -197
  72. package/esm2022/common/clipboard.service.mjs +0 -221
  73. package/esm2022/common/column-info.service.mjs +0 -92
  74. package/esm2022/common/create-form-group.mjs +0 -5
  75. package/esm2022/common/data-layout-mode.mjs +0 -5
  76. package/esm2022/common/default-track-by.mjs +0 -13
  77. package/esm2022/common/dom-events.service.mjs +0 -27
  78. package/esm2022/common/error-messages.mjs +0 -64
  79. package/esm2022/common/event-emitter.mjs +0 -39
  80. package/esm2022/common/fetch-data-callback.mjs +0 -5
  81. package/esm2022/common/field-datatype.mjs +0 -5
  82. package/esm2022/common/filter-descriptor-differ.mjs +0 -69
  83. package/esm2022/common/filter-operator.interface.mjs +0 -5
  84. package/esm2022/common/grid-col-size.mjs +0 -5
  85. package/esm2022/common/id.service.mjs +0 -59
  86. package/esm2022/common/pager-settings.mjs +0 -20
  87. package/esm2022/common/preventable-event.mjs +0 -24
  88. package/esm2022/common/provider.service.mjs +0 -42
  89. package/esm2022/common/remove-confirmation.mjs +0 -5
  90. package/esm2022/common/resizable-settings.mjs +0 -9
  91. package/esm2022/common/single-popup.service.mjs +0 -158
  92. package/esm2022/common/size-options.mjs +0 -5
  93. package/esm2022/common/sort.service.mjs +0 -14
  94. package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
  95. package/esm2022/constants.mjs +0 -16
  96. package/esm2022/data/change-event-args.interface.mjs +0 -5
  97. package/esm2022/data/change-notification.service.mjs +0 -30
  98. package/esm2022/data/data-item.interface.mjs +0 -5
  99. package/esm2022/data/data-mapping.service.mjs +0 -136
  100. package/esm2022/data/data.collection.mjs +0 -87
  101. package/esm2022/data/data.iterators.mjs +0 -221
  102. package/esm2022/data/grid-item.interface.mjs +0 -5
  103. package/esm2022/data/group-footer-item.interface.mjs +0 -5
  104. package/esm2022/data/group-item.interface.mjs +0 -5
  105. package/esm2022/databinding.directive.mjs +0 -233
  106. package/esm2022/directives.mjs +0 -504
  107. package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
  108. package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
  109. package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
  110. package/esm2022/dragdrop/common.mjs +0 -69
  111. package/esm2022/dragdrop/context-types.mjs +0 -5
  112. package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
  113. package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
  114. package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
  115. package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
  116. package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
  117. package/esm2022/editing/add-command-tool.directive.mjs +0 -59
  118. package/esm2022/editing/add-command.directive.mjs +0 -93
  119. package/esm2022/editing/add-event-args.interface.mjs +0 -5
  120. package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
  121. package/esm2022/editing/cancel-command.directive.mjs +0 -127
  122. package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
  123. package/esm2022/editing/cell-close-event.mjs +0 -38
  124. package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
  125. package/esm2022/editing/edit-command.directive.mjs +0 -124
  126. package/esm2022/editing/edit-event-args.interface.mjs +0 -5
  127. package/esm2022/editing/edit-row-options.interface.mjs +0 -5
  128. package/esm2022/editing/edit-template.directive.mjs +0 -43
  129. package/esm2022/editing/edit.service.mjs +0 -182
  130. package/esm2022/editing/form/dialog-form.component.mjs +0 -102
  131. package/esm2022/editing/form/form-formfield.component.mjs +0 -188
  132. package/esm2022/editing/form/form.component.mjs +0 -169
  133. package/esm2022/editing/form/index.mjs +0 -8
  134. package/esm2022/editing/form/models.mjs +0 -5
  135. package/esm2022/editing/local-data-changes.service.mjs +0 -18
  136. package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
  137. package/esm2022/editing/remove-command.directive.mjs +0 -123
  138. package/esm2022/editing/remove-event-args.interface.mjs +0 -5
  139. package/esm2022/editing/save-command-tool.directive.mjs +0 -65
  140. package/esm2022/editing/save-command.directive.mjs +0 -126
  141. package/esm2022/editing/save-event-args.interface.mjs +0 -5
  142. package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
  143. package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
  144. package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
  145. package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
  146. package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
  147. package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
  148. package/esm2022/editing-directives/local-edit.service.mjs +0 -64
  149. package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
  150. package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
  151. package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
  152. package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
  153. package/esm2022/editing-directives/utils.mjs +0 -18
  154. package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
  155. package/esm2022/excel/excel-command.directive.mjs +0 -98
  156. package/esm2022/excel/excel-export-event.mjs +0 -18
  157. package/esm2022/excel/excel.component.mjs +0 -223
  158. package/esm2022/excel/excel.module.mjs +0 -45
  159. package/esm2022/excel/excel.service.mjs +0 -29
  160. package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
  161. package/esm2022/filtering/boolean-filter.component.mjs +0 -83
  162. package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
  163. package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
  164. package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
  165. package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
  166. package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
  167. package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
  168. package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
  169. package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
  170. package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
  171. package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
  172. package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
  173. package/esm2022/filtering/date-filter.component.mjs +0 -172
  174. package/esm2022/filtering/filter-component.interface.mjs +0 -5
  175. package/esm2022/filtering/filter-host.directive.mjs +0 -58
  176. package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
  177. package/esm2022/filtering/filter-input.directive.mjs +0 -123
  178. package/esm2022/filtering/filter-row.component.mjs +0 -131
  179. package/esm2022/filtering/filter.service.mjs +0 -44
  180. package/esm2022/filtering/filterable.mjs +0 -16
  181. package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
  182. package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
  183. package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
  184. package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
  185. package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
  186. package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
  187. package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
  188. package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
  189. package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
  190. package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
  191. package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
  192. package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
  193. package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
  194. package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
  195. package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
  196. package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
  197. package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
  198. package/esm2022/filtering/numeric-filter.component.mjs +0 -145
  199. package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
  200. package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
  201. package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
  202. package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
  203. package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
  204. package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
  205. package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
  206. package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
  207. package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
  208. package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
  209. package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
  210. package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
  211. package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
  212. package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
  213. package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
  214. package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
  215. package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
  216. package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
  217. package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
  218. package/esm2022/filtering/string-filter.component.mjs +0 -90
  219. package/esm2022/grid.component.mjs +0 -4598
  220. package/esm2022/grid.module.mjs +0 -241
  221. package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
  222. package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
  223. package/esm2022/grouping/group-header-template.directive.mjs +0 -46
  224. package/esm2022/grouping/group-header.component.mjs +0 -351
  225. package/esm2022/grouping/group-info.service.mjs +0 -43
  226. package/esm2022/grouping/group-key.interface.mjs +0 -5
  227. package/esm2022/grouping/group-panel.component.mjs +0 -487
  228. package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
  229. package/esm2022/grouping/group-settings.mjs +0 -5
  230. package/esm2022/grouping/groups.service.mjs +0 -69
  231. package/esm2022/grouping/utils.mjs +0 -14
  232. package/esm2022/highlight/highlight-item.mjs +0 -5
  233. package/esm2022/highlight/highlight.directive.mjs +0 -132
  234. package/esm2022/index.mjs +0 -221
  235. package/esm2022/layout/browser-support.service.mjs +0 -94
  236. package/esm2022/layout/resizable.directive.mjs +0 -83
  237. package/esm2022/layout/resize.service.mjs +0 -29
  238. package/esm2022/layout/responsive.service.mjs +0 -34
  239. package/esm2022/layout/row-sync.mjs +0 -47
  240. package/esm2022/layout/sizing-options.service.mjs +0 -18
  241. package/esm2022/localization/custom-messages.component.mjs +0 -54
  242. package/esm2022/localization/localized-messages.directive.mjs +0 -39
  243. package/esm2022/localization/messages.mjs +0 -895
  244. package/esm2022/navigation/default-focusable-element.mjs +0 -50
  245. package/esm2022/navigation/focus-group.mjs +0 -73
  246. package/esm2022/navigation/focus-root.mjs +0 -50
  247. package/esm2022/navigation/focusable-element.interface.mjs +0 -5
  248. package/esm2022/navigation/focusable.directive.mjs +0 -150
  249. package/esm2022/navigation/grid-focusable-element.mjs +0 -28
  250. package/esm2022/navigation/item-map.mjs +0 -59
  251. package/esm2022/navigation/logical-cell.directive.mjs +0 -224
  252. package/esm2022/navigation/logical-cell.interface.mjs +0 -5
  253. package/esm2022/navigation/logical-row.directive.mjs +0 -131
  254. package/esm2022/navigation/logical-row.interface.mjs +0 -5
  255. package/esm2022/navigation/navigable-settings.mjs +0 -5
  256. package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
  257. package/esm2022/navigation/navigation-change.interface.mjs +0 -5
  258. package/esm2022/navigation/navigation-cursor.mjs +0 -224
  259. package/esm2022/navigation/navigation-metadata.mjs +0 -35
  260. package/esm2022/navigation/navigation-mode.mjs +0 -5
  261. package/esm2022/navigation/navigation-model.mjs +0 -138
  262. package/esm2022/navigation/navigation-row.interface.mjs +0 -5
  263. package/esm2022/navigation/navigation.service.mjs +0 -998
  264. package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
  265. package/esm2022/package-metadata.mjs +0 -16
  266. package/esm2022/pdf/export-element.mjs +0 -135
  267. package/esm2022/pdf/grid-query.mjs +0 -45
  268. package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
  269. package/esm2022/pdf/pdf-command.directive.mjs +0 -98
  270. package/esm2022/pdf/pdf-export-event.mjs +0 -16
  271. package/esm2022/pdf/pdf-margin.component.mjs +0 -38
  272. package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
  273. package/esm2022/pdf/pdf-template.directive.mjs +0 -43
  274. package/esm2022/pdf/pdf.component.mjs +0 -331
  275. package/esm2022/pdf/pdf.module.mjs +0 -47
  276. package/esm2022/pdf/pdf.service.mjs +0 -42
  277. package/esm2022/progress-kendo-angular-grid.mjs +0 -8
  278. package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
  279. package/esm2022/rendering/cell-template.directive.mjs +0 -44
  280. package/esm2022/rendering/cell.component.mjs +0 -717
  281. package/esm2022/rendering/common/cell-context.mjs +0 -13
  282. package/esm2022/rendering/common/col-group.component.mjs +0 -98
  283. package/esm2022/rendering/common/dom-queries.mjs +0 -162
  284. package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
  285. package/esm2022/rendering/common/format.pipe.mjs +0 -37
  286. package/esm2022/rendering/common/loading.component.mjs +0 -60
  287. package/esm2022/rendering/common/row-args.mjs +0 -5
  288. package/esm2022/rendering/common/row-class.mjs +0 -5
  289. package/esm2022/rendering/common/spacer.component.mjs +0 -62
  290. package/esm2022/rendering/constants.mjs +0 -20
  291. package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
  292. package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
  293. package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
  294. package/esm2022/rendering/details/details.service.mjs +0 -56
  295. package/esm2022/rendering/details-expand.directive.mjs +0 -136
  296. package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
  297. package/esm2022/rendering/footer/footer.component.mjs +0 -266
  298. package/esm2022/rendering/grid-table.directive.mjs +0 -52
  299. package/esm2022/rendering/groups-expand.directive.mjs +0 -149
  300. package/esm2022/rendering/header/header-template.directive.mjs +0 -45
  301. package/esm2022/rendering/header/header.component.mjs +0 -1055
  302. package/esm2022/rendering/list.component.mjs +0 -1176
  303. package/esm2022/rendering/loading-template.directive.mjs +0 -38
  304. package/esm2022/rendering/no-records-template.directive.mjs +0 -38
  305. package/esm2022/rendering/rowspan.service.mjs +0 -24
  306. package/esm2022/rendering/table-body.component.mjs +0 -1250
  307. package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
  308. package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
  309. package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
  310. package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
  311. package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
  312. package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
  313. package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
  314. package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
  315. package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
  316. package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
  317. package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
  318. package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
  319. package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
  320. package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
  321. package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
  322. package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
  323. package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
  324. package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
  325. package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
  326. package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
  327. package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
  328. package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
  329. package/esm2022/row-reordering/types.mjs +0 -5
  330. package/esm2022/row-reordering/utils.mjs +0 -88
  331. package/esm2022/scrolling/content-scroll-event.mjs +0 -5
  332. package/esm2022/scrolling/row-height.service.mjs +0 -55
  333. package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
  334. package/esm2022/scrolling/scroll-request.service.mjs +0 -24
  335. package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
  336. package/esm2022/scrolling/scroller.service.mjs +0 -254
  337. package/esm2022/scrolling/scrollmode.mjs +0 -5
  338. package/esm2022/scrolling/suspend.service.mjs +0 -17
  339. package/esm2022/selection/cell-selection.service.mjs +0 -349
  340. package/esm2022/selection/marquee.directive.mjs +0 -188
  341. package/esm2022/selection/pair-set.mjs +0 -158
  342. package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
  343. package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
  344. package/esm2022/selection/selection-default.mjs +0 -208
  345. package/esm2022/selection/selection.directive.mjs +0 -53
  346. package/esm2022/selection/selection.service.mjs +0 -466
  347. package/esm2022/selection/types.mjs +0 -5
  348. package/esm2022/state-management/grid-state.models.mjs +0 -26
  349. package/esm2022/state-management/redo-command-tool.mjs +0 -74
  350. package/esm2022/state-management/undo-command-tool.mjs +0 -74
  351. package/esm2022/state-management/undo-redo.directive.mjs +0 -249
  352. package/esm2022/state-management/undo-redo.service.mjs +0 -21
  353. package/esm2022/state-management/undo-redo.stack.mjs +0 -238
  354. package/esm2022/utils.mjs +0 -216
@@ -1,83 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, ElementRef } from '@angular/core';
6
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
- import { ContextService } from '../../common/provider.service';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../../common/provider.service";
10
- /**
11
- * Adds keyboard navigation support to toolbar elements in the Grid.
12
- *
13
- * Apply this directive to toolbar elements that should be focusable and navigable with the keyboard.
14
- *
15
- * @example
16
- * ```html
17
- * <kendo-toolbar>
18
- * <button kendoGridToolbarFocusable>Button</button>
19
- * </kendo-toolbar>
20
- * ```
21
- */
22
- export class GridToolbarFocusableDirective {
23
- host;
24
- ctx;
25
- /**
26
- * @hidden
27
- */
28
- get element() {
29
- return this.host.nativeElement;
30
- }
31
- /**
32
- * @hidden
33
- */
34
- get toolbarPosition() {
35
- return isDocumentAvailable() && this.host.nativeElement.closest('.k-toolbar')?.getAttribute('position');
36
- }
37
- constructor(host, ctx) {
38
- this.host = host;
39
- this.ctx = ctx;
40
- }
41
- ngAfterViewInit() {
42
- if (!isDocumentAvailable() || !this.toolbarPosition || !this.isToolbarNavigable) {
43
- return;
44
- }
45
- this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.navigableElements.push(this.element);
46
- this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.notify();
47
- }
48
- ngOnDestroy() {
49
- if (!isDocumentAvailable() || !this.toolbarPosition) {
50
- return;
51
- }
52
- const elements = this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements;
53
- this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements = elements.filter(el => el !== this.element);
54
- this.ctx[`${this.toolbarPosition}ToolbarNavigation`].notify();
55
- }
56
- get isToolbarNavigable() {
57
- if (typeof this.ctx.grid.navigable === 'boolean') {
58
- return this.ctx.grid.navigable;
59
- }
60
- if (Array.isArray(this.ctx.grid.navigable)) {
61
- return this.ctx.grid.navigable.includes('toolbar');
62
- }
63
- return false;
64
- }
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Directive });
66
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GridToolbarFocusableDirective, isStandalone: true, selector: "\n [kendoGridToolbarFocusable],\n [kendoGridAddCommand],\n [kendoGridCancelCommand],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridExcelCommand],\n [kendoGridPDFCommand]\n ", ngImport: i0 });
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridToolbarFocusableDirective, decorators: [{
69
- type: Directive,
70
- args: [{
71
- selector: `
72
- [kendoGridToolbarFocusable],
73
- [kendoGridAddCommand],
74
- [kendoGridCancelCommand],
75
- [kendoGridEditCommand],
76
- [kendoGridRemoveCommand],
77
- [kendoGridSaveCommand],
78
- [kendoGridExcelCommand],
79
- [kendoGridPDFCommand]
80
- `,
81
- standalone: true
82
- }]
83
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.ContextService }] });
@@ -1,58 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Injectable, Renderer2 } from '@angular/core';
6
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class GridToolbarNavigationService {
12
- renderer;
13
- toolbarElement;
14
- navigableElements = [];
15
- currentActiveIndex = 0;
16
- defaultFocusableSelector = `
17
- [kendogridtoolbarfocusable],
18
- [kendogridaddcommand],
19
- [kendogridcancelcommand],
20
- [kendogrideditcommand],
21
- [kendogridremovecommand],
22
- [kendogridsavecommand],
23
- [kendogridexcelcommand],
24
- [kendogridpdfcommand]
25
- `;
26
- constructor(renderer) {
27
- this.renderer = renderer;
28
- }
29
- notify() {
30
- // ensure focusable elements are in the same order as in the DOM
31
- this.navigableElements = this.findNavigableElements();
32
- this.currentActiveIndex = 0;
33
- this.updateFocus();
34
- }
35
- findNavigableElements() {
36
- return Array.from(this.toolbarElement.querySelectorAll(this.defaultFocusableSelector) || []);
37
- }
38
- focus() {
39
- this.navigableElements[this.currentActiveIndex]?.focus();
40
- }
41
- updateFocus() {
42
- if (!this.navigableElements.length) {
43
- return;
44
- }
45
- this.navigableElements.forEach(el => {
46
- this.renderer.setAttribute(el, 'tabindex', '-1');
47
- });
48
- this.renderer.setAttribute(this.navigableElements[this.currentActiveIndex], 'tabindex', '0');
49
- if (isDocumentAvailable() && document.activeElement.closest('.k-toolbar')) {
50
- this.navigableElements[this.currentActiveIndex].focus();
51
- }
52
- }
53
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridToolbarNavigationService, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable });
54
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridToolbarNavigationService });
55
- }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridToolbarNavigationService, decorators: [{
57
- type: Injectable
58
- }], ctorParameters: () => [{ type: i0.Renderer2 }] });
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,55 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, Input } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents the toolbar template of the Grid.
9
- *
10
- * The template context provides:
11
- * - `position`&mdash;The position where the toolbar template renders. Possible values: `top`, `bottom`, and `both`.
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-grid [data]="gridData" style="height: 200px">
16
- * <ng-template kendoGridToolbarTemplate [position]="position" let-position="position">
17
- * <button (click)="onClick()">Custom action</button>
18
- * </ng-template>
19
- * <kendo-grid-column field="ProductName">
20
- * </kendo-grid-column>
21
- * </kendo-grid>
22
- * ```
23
- */
24
- export class ToolbarTemplateDirective {
25
- templateRef;
26
- _position = 'top';
27
- /**
28
- * Sets the position of the toolbar. ([See example]({% slug toolbartemplate_grid %}#toc-setting-the-toolbar-position)).
29
- *
30
- * @default 'top'
31
- */
32
- set position(position) {
33
- this._position = position;
34
- }
35
- get position() {
36
- return this._position;
37
- }
38
- constructor(templateRef) {
39
- this.templateRef = templateRef;
40
- }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
42
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ToolbarTemplateDirective, isStandalone: true, selector: "[kendoGridToolbarTemplate]", inputs: { position: "position" }, ngImport: i0 });
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarTemplateDirective, decorators: [{
45
- type: Directive,
46
- args: [{
47
- selector: '[kendoGridToolbarTemplate]',
48
- standalone: true
49
- }]
50
- }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
51
- type: Optional
52
- }] }], propDecorators: { position: [{
53
- type: Input,
54
- args: ["position"]
55
- }] } });
@@ -1,159 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, Input, ElementRef, HostBinding, HostListener } from '@angular/core';
6
- import { closestInScope, isDocumentAvailable, isFocusable } from '@progress/kendo-angular-common';
7
- import { ContextService } from './../../common/provider.service';
8
- import { NgTemplateOutlet } from '@angular/common';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "./../../common/provider.service";
11
- /**
12
- * @hidden
13
- */
14
- export class ToolbarComponent {
15
- ctx;
16
- wrapper;
17
- context = {};
18
- role = 'toolbar';
19
- hostClasses = true;
20
- get sizeSmallClass() {
21
- return this.size === 'small';
22
- }
23
- get sizeMediumClass() {
24
- return this.size === 'medium' || !this.size;
25
- }
26
- set position(value) {
27
- this.context.position = value;
28
- }
29
- set size(size) {
30
- this._size = size;
31
- if (size === 'none') {
32
- this.wrapper.nativeElement.classList.remove('k-toolbar-sm', 'k-toolbar-md');
33
- }
34
- }
35
- get size() {
36
- return this._size;
37
- }
38
- clickHandler(ev) {
39
- if (this.navigable && isDocumentAvailable()) {
40
- const closestFocusableElement = closestInScope(ev.target, isFocusable, this.wrapper.nativeElement)?.closest('[kendoGridToolbarFocusable]');
41
- const targetIndex = this.navigationService.navigableElements.indexOf(closestFocusableElement);
42
- if (targetIndex > -1) {
43
- this.navigationService.currentActiveIndex = targetIndex;
44
- }
45
- this.navigationService.updateFocus();
46
- if (ev.target === this.wrapper.nativeElement) {
47
- this.navigationService.focus();
48
- }
49
- }
50
- }
51
- arrowLeftListener() {
52
- if (this.navigable && isDocumentAvailable() && this.navigationService.navigableElements.length) {
53
- this.navigationService.currentActiveIndex--;
54
- if (this.navigationService.currentActiveIndex < 0) {
55
- this.navigationService.currentActiveIndex = this.navigationService.navigableElements.length - 1;
56
- }
57
- this.navigationService.updateFocus();
58
- }
59
- }
60
- arrowRightListener() {
61
- if (this.navigable && isDocumentAvailable() && this.navigationService.navigableElements.length) {
62
- this.navigationService.currentActiveIndex++;
63
- if (this.navigationService.currentActiveIndex >= this.navigationService.navigableElements.length) {
64
- this.navigationService.currentActiveIndex = 0;
65
- }
66
- this.navigationService.updateFocus();
67
- }
68
- }
69
- homeKeyListener(e) {
70
- if (this.navigable && isDocumentAvailable() && this.navigationService.navigableElements.length) {
71
- e.preventDefault();
72
- this.navigationService.currentActiveIndex = 0;
73
- this.navigationService.updateFocus();
74
- }
75
- }
76
- endKeyListener(e) {
77
- if (this.navigable && isDocumentAvailable() && this.navigationService.navigableElements.length) {
78
- e.preventDefault();
79
- this.navigationService.currentActiveIndex = this.navigationService.navigableElements.length - 1;
80
- this.navigationService.updateFocus();
81
- }
82
- }
83
- navigable;
84
- get toolbarTemplateRef() {
85
- return this.ctx.grid.toolbarTemplate ? this.ctx.grid.toolbarTemplate.templateRef : undefined;
86
- }
87
- _size = 'medium';
88
- navigationService;
89
- constructor(ctx, wrapper) {
90
- this.ctx = ctx;
91
- this.wrapper = wrapper;
92
- this.navigationService = this.ctx[`${this.wrapper.nativeElement.getAttribute('position')}ToolbarNavigation`];
93
- if (this.navigationService) {
94
- this.navigationService.toolbarElement = this.wrapper.nativeElement;
95
- }
96
- }
97
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
98
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarComponent, isStandalone: true, selector: "kendo-grid-toolbar", inputs: { position: "position", size: "size", navigable: "navigable" }, host: { listeners: { "click": "clickHandler($event)", "keydown.arrowleft": "arrowLeftListener($event)", "keydown.arrowright": "arrowRightListener($event)", "keydown.home": "homeKeyListener($event)", "keydown.end": "endKeyListener($event)" }, properties: { "attr.role": "this.role", "class.k-toolbar": "this.hostClasses", "class.k-grid-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-sm": "this.sizeSmallClass", "class.k-toolbar-md": "this.sizeMediumClass" } }, ngImport: i0, template: `
99
- @if (toolbarTemplateRef) {
100
- <ng-template
101
- [ngTemplateOutlet]="toolbarTemplateRef"
102
- [ngTemplateOutletContext]="context"></ng-template>
103
- }
104
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
105
- }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
107
- type: Component,
108
- args: [{
109
- selector: 'kendo-grid-toolbar',
110
- template: `
111
- @if (toolbarTemplateRef) {
112
- <ng-template
113
- [ngTemplateOutlet]="toolbarTemplateRef"
114
- [ngTemplateOutletContext]="context"></ng-template>
115
- }
116
- `,
117
- standalone: true,
118
- imports: [NgTemplateOutlet]
119
- }]
120
- }], ctorParameters: () => [{ type: i1.ContextService }, { type: i0.ElementRef }], propDecorators: { role: [{
121
- type: HostBinding,
122
- args: ['attr.role']
123
- }], hostClasses: [{
124
- type: HostBinding,
125
- args: ['class.k-toolbar']
126
- }, {
127
- type: HostBinding,
128
- args: ['class.k-grid-toolbar']
129
- }, {
130
- type: HostBinding,
131
- args: ['class.k-toolbar-solid']
132
- }], sizeSmallClass: [{
133
- type: HostBinding,
134
- args: ['class.k-toolbar-sm']
135
- }], sizeMediumClass: [{
136
- type: HostBinding,
137
- args: ['class.k-toolbar-md']
138
- }], position: [{
139
- type: Input
140
- }], size: [{
141
- type: Input
142
- }], clickHandler: [{
143
- type: HostListener,
144
- args: ['click', ['$event']]
145
- }], arrowLeftListener: [{
146
- type: HostListener,
147
- args: ['keydown.arrowleft', ['$event']]
148
- }], arrowRightListener: [{
149
- type: HostListener,
150
- args: ['keydown.arrowright', ['$event']]
151
- }], homeKeyListener: [{
152
- type: HostListener,
153
- args: ['keydown.home', ['$event']]
154
- }], endKeyListener: [{
155
- type: HostListener,
156
- args: ['keydown.end', ['$event']]
157
- }], navigable: [{
158
- type: Input
159
- }] } });
@@ -1,272 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ViewChild, NgZone } from '@angular/core';
6
- import { AIPromptComponent, OutputViewComponent, PromptViewComponent, AIPromptCustomMessagesComponent, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective } from '@progress/kendo-angular-conversational-ui';
7
- import { HttpClient, HttpRequest } from '@angular/common/http';
8
- import { ContextService } from './../../../../common/provider.service';
9
- import { ColumnInfoService } from './../../../../common/column-info.service';
10
- import { GridAIAssistantResponseSuccessEvent, GridAIAssistantResponseErrorEvent } from './models';
11
- import { GridAIRequestResponseService } from './ai-request-response.service';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/common/http";
14
- import * as i2 from "./../../../../common/provider.service";
15
- import * as i3 from "./../../../../common/column-info.service";
16
- import * as i4 from "./ai-request-response.service";
17
- /**
18
- * @hidden
19
- */
20
- export class AiAssistantComponent {
21
- http;
22
- ctx;
23
- columnInfoService;
24
- zone;
25
- aiRequestResponseService;
26
- aiPrompt;
27
- activeView = 0;
28
- requestUrl;
29
- requestOptions;
30
- aiPromptSettings;
31
- aiToolDirective;
32
- streaming = false;
33
- disabledGenerateButton = false;
34
- lastMessage;
35
- requestData;
36
- currentRequestSubscription = null;
37
- //Remove this when the AI Assistant has a built-in loading indicator
38
- loadingOutput = { id: 'k-loading-item', output: '', prompt: '' };
39
- // flat columns used for highlight utilities (expects { field })
40
- columns = [];
41
- leafColumns = [];
42
- idCounter = 0;
43
- constructor(http, ctx, columnInfoService, zone, aiRequestResponseService) {
44
- this.http = http;
45
- this.ctx = ctx;
46
- this.columnInfoService = columnInfoService;
47
- this.zone = zone;
48
- this.aiRequestResponseService = aiRequestResponseService;
49
- }
50
- ngAfterViewInit() {
51
- // Preserve a flat columns array (fields) for highlight utilities.
52
- // Use leafNamedColumns as the canonical list of leaf columns with display titles.
53
- this.leafColumns = this.columnInfoService.leafNamedColumns || [];
54
- this.columns = this.leafColumns.map((col) => ({ field: col.field }));
55
- }
56
- ngOnDestroy() {
57
- this.unsubscribeCurrentRequest();
58
- }
59
- message(message) {
60
- return this.ctx.localization.get(message);
61
- }
62
- cancelRequest() {
63
- this.aiToolDirective.cancelRequest.emit();
64
- this.unsubscribeCurrentRequest();
65
- this.streaming = false;
66
- }
67
- onPromptRequest(ev) {
68
- if (this.aiToolDirective.promptOutputs.length === 0) {
69
- this.aiToolDirective.promptOutputs.push(this.loadingOutput);
70
- }
71
- this.unsubscribeCurrentRequest();
72
- this.streaming = true;
73
- this.activeView = 1;
74
- if (ev.prompt) {
75
- this.lastMessage = ev.prompt;
76
- }
77
- this.requestData = {
78
- columns: [], // Will be populated by service
79
- promptMessage: ev.prompt,
80
- url: this.requestUrl,
81
- requestOptions: {
82
- ...this.requestOptions
83
- }
84
- };
85
- if (!this.requestOptions.body) {
86
- this.requestData.requestOptions.body = this.aiRequestResponseService.buildRequestBody(this.requestData.promptMessage, this.requestData.requestOptions.role);
87
- }
88
- this.aiToolDirective.promptRequest.emit({ requestData: this.requestData, isRetry: ev.isRetry });
89
- if (!this.requestUrl) {
90
- return;
91
- }
92
- this.currentRequestSubscription = this.sendPromptRequest().subscribe((res) => {
93
- if (res.body) {
94
- this.processResponse(res);
95
- this.streaming = false;
96
- }
97
- this.currentRequestSubscription = null;
98
- }, (error) => {
99
- this.handleError(error);
100
- this.streaming = false;
101
- this.currentRequestSubscription = null;
102
- });
103
- }
104
- sendPromptRequest() {
105
- const request = new HttpRequest(this.requestData.requestOptions.method, this.requestData.url, this.requestData.requestOptions.body, this.requestData.requestOptions);
106
- return this.http.request(request);
107
- }
108
- processResponse(response) {
109
- if (this.aiToolDirective.autoClose) {
110
- this.aiToolDirective.emitOpenClose = true;
111
- this.aiToolDirective.toggleWindow();
112
- }
113
- const responseBody = response.body || { commands: [] };
114
- const responseSuccessEvent = new GridAIAssistantResponseSuccessEvent(response);
115
- this.aiToolDirective.responseSuccess.emit(responseSuccessEvent);
116
- if (responseSuccessEvent.isDefaultPrevented()) {
117
- this.deleteLoadingOutput();
118
- return;
119
- }
120
- const messages = [];
121
- if (responseBody.message) {
122
- messages.push(responseBody.message);
123
- }
124
- const commandMessages = this.aiRequestResponseService.processCommands(responseBody.commands || [], this.columns, this.leafColumns);
125
- messages.push(...commandMessages);
126
- const responseContentStart = [`${this.ctx.localization.get('aiAssistantOutputCardBodyContent')} \n`];
127
- const responseContentBody = messages
128
- .map((output, idx) => `${idx + 1} ${output}`)
129
- .join('\n');
130
- const output = {
131
- id: this.idCounter++,
132
- title: this.ctx.localization.get('aiAssistantOutputCardTitle'),
133
- prompt: this.lastMessage,
134
- output: responseContentStart.concat(responseContentBody).join(''),
135
- };
136
- this.deleteLoadingOutput();
137
- this.aiToolDirective.promptOutputs.unshift(output);
138
- }
139
- handleError(error) {
140
- const responseErrorEvent = new GridAIAssistantResponseErrorEvent(error);
141
- this.aiToolDirective.responseError.emit(responseErrorEvent);
142
- if (responseErrorEvent.isDefaultPrevented()) {
143
- this.deleteLoadingOutput();
144
- return;
145
- }
146
- const output = {
147
- id: this.idCounter++,
148
- prompt: this.lastMessage,
149
- output: error.message
150
- };
151
- this.deleteLoadingOutput();
152
- this.aiToolDirective.promptOutputs.unshift(output);
153
- }
154
- deleteLoadingOutput() {
155
- if (this.aiToolDirective.promptOutputs[0]?.id === this.loadingOutput.id) {
156
- this.aiToolDirective.promptOutputs.splice(0, 1);
157
- }
158
- }
159
- unsubscribeCurrentRequest() {
160
- if (this.currentRequestSubscription) {
161
- this.currentRequestSubscription.unsubscribe();
162
- this.currentRequestSubscription = null;
163
- }
164
- }
165
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiAssistantComponent, deps: [{ token: i1.HttpClient }, { token: i2.ContextService }, { token: i3.ColumnInfoService }, { token: i0.NgZone }, { token: i4.GridAIRequestResponseService }], target: i0.ɵɵFactoryTarget.Component });
166
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AiAssistantComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "aiPrompt", first: true, predicate: AIPromptComponent, descendants: true }], ngImport: i0, template: `
167
- <kendo-aiprompt
168
- #aiPrompt
169
- [promptSuggestions]="aiPromptSettings?.promptSuggestions"
170
- [showOutputRating]="aiPromptSettings?.showOutputRating"
171
- [streaming]="streaming"
172
- [speechToTextButton]="aiPromptSettings?.speechToTextButton"
173
- [(activeView)]="activeView"
174
- [generateButtonSVGIcon]="aiPromptSettings?.generateButtonSVGIcon"
175
- [generateButtonIcon]="aiPromptSettings?.generateButtonIcon"
176
- [disabledGenerateButton]="disabledGenerateButton || promptView.textAreaValue?.length === 0"
177
- [promptOutputs]="aiPromptSettings?.promptOutputs"
178
- [textAreaSettings]="aiPromptSettings?.textAreaSettings"
179
- (promptRequest)="onPromptRequest($event)"
180
- (promptRequestCancel)="cancelRequest()"
181
- >
182
- <kendo-aiprompt-prompt-view #promptView></kendo-aiprompt-prompt-view>
183
- <kendo-aiprompt-output-view></kendo-aiprompt-output-view>
184
- @if (streaming && aiPrompt.streaming; as output) {
185
- <ng-template kendoAIPromptOutputTemplate let-output>
186
- <div class="k-card">
187
- <div class="k-card-header">
188
- <div class="k-card-title">
189
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" [style.width.px]="200"></span>
190
- </div>
191
- <div class="k-card-subtitle">
192
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" style="width: 100%;"></span>
193
- </div>
194
- </div>
195
- <div class="k-card-body">
196
- <span class="k-skeleton k-skeleton-rect k-skeleton-pulse" style="height: 80px;"></span>
197
- </div>
198
- <div class="k-card-actions">
199
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" style="width: 100%;"></span>
200
- </div>
201
- </div>
202
- </ng-template>
203
- }
204
- @if (!(streaming && aiPrompt.streaming); as output) {
205
- <ng-template kendoAIPromptOutputBodyTemplate let-output>
206
- <p>{{output.output}}</p>
207
- </ng-template>
208
- }
209
- <kendo-aiprompt-messages
210
- [generateOutput]="message('aiAssistantApplyButtonText')"
211
- ></kendo-aiprompt-messages>
212
- </kendo-aiprompt>
213
- `, isInline: true, dependencies: [{ kind: "component", type: AIPromptComponent, selector: "kendo-aiprompt", inputs: ["activeView", "promptCommands", "promptSuggestions", "promptOutputs", "showOutputRating", "streaming", "speechToTextButton", "textAreaSettings", "generateButtonSVGIcon", "generateButtonIcon", "disabledGenerateButton"], outputs: ["activeViewChange", "promptRequest", "commandExecute", "outputCopy", "outputRatingChange", "promptRequestCancel"], exportAs: ["kendoAIPrompt"] }, { kind: "component", type: AIPromptCustomMessagesComponent, selector: "kendo-aiprompt-messages" }, { kind: "component", type: PromptViewComponent, selector: "kendo-aiprompt-prompt-view" }, { kind: "component", type: OutputViewComponent, selector: "kendo-aiprompt-output-view" }, { kind: "directive", type: AIPromptOutputTemplateDirective, selector: "[kendoAIPromptOutputTemplate]" }, { kind: "directive", type: AIPromptOutputBodyTemplateDirective, selector: "[kendoAIPromptOutputBodyTemplate]" }] });
214
- }
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiAssistantComponent, decorators: [{
216
- type: Component,
217
- args: [{
218
- standalone: true,
219
- imports: [AIPromptComponent, AIPromptCustomMessagesComponent, PromptViewComponent, OutputViewComponent, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective],
220
- template: `
221
- <kendo-aiprompt
222
- #aiPrompt
223
- [promptSuggestions]="aiPromptSettings?.promptSuggestions"
224
- [showOutputRating]="aiPromptSettings?.showOutputRating"
225
- [streaming]="streaming"
226
- [speechToTextButton]="aiPromptSettings?.speechToTextButton"
227
- [(activeView)]="activeView"
228
- [generateButtonSVGIcon]="aiPromptSettings?.generateButtonSVGIcon"
229
- [generateButtonIcon]="aiPromptSettings?.generateButtonIcon"
230
- [disabledGenerateButton]="disabledGenerateButton || promptView.textAreaValue?.length === 0"
231
- [promptOutputs]="aiPromptSettings?.promptOutputs"
232
- [textAreaSettings]="aiPromptSettings?.textAreaSettings"
233
- (promptRequest)="onPromptRequest($event)"
234
- (promptRequestCancel)="cancelRequest()"
235
- >
236
- <kendo-aiprompt-prompt-view #promptView></kendo-aiprompt-prompt-view>
237
- <kendo-aiprompt-output-view></kendo-aiprompt-output-view>
238
- @if (streaming && aiPrompt.streaming; as output) {
239
- <ng-template kendoAIPromptOutputTemplate let-output>
240
- <div class="k-card">
241
- <div class="k-card-header">
242
- <div class="k-card-title">
243
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" [style.width.px]="200"></span>
244
- </div>
245
- <div class="k-card-subtitle">
246
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" style="width: 100%;"></span>
247
- </div>
248
- </div>
249
- <div class="k-card-body">
250
- <span class="k-skeleton k-skeleton-rect k-skeleton-pulse" style="height: 80px;"></span>
251
- </div>
252
- <div class="k-card-actions">
253
- <span class="k-skeleton k-skeleton-text k-skeleton-pulse" style="width: 100%;"></span>
254
- </div>
255
- </div>
256
- </ng-template>
257
- }
258
- @if (!(streaming && aiPrompt.streaming); as output) {
259
- <ng-template kendoAIPromptOutputBodyTemplate let-output>
260
- <p>{{output.output}}</p>
261
- </ng-template>
262
- }
263
- <kendo-aiprompt-messages
264
- [generateOutput]="message('aiAssistantApplyButtonText')"
265
- ></kendo-aiprompt-messages>
266
- </kendo-aiprompt>
267
- `
268
- }]
269
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ContextService }, { type: i3.ColumnInfoService }, { type: i0.NgZone }, { type: i4.GridAIRequestResponseService }], propDecorators: { aiPrompt: [{
270
- type: ViewChild,
271
- args: [AIPromptComponent]
272
- }] } });