@progress/kendo-angular-grid 21.4.1-develop.1 → 22.0.0-develop.1

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,717 +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, HostBinding, Input, Inject, Optional, TemplateRef } from '@angular/core';
6
- import { EditService } from '../editing/edit.service';
7
- import { isSpanColumn, isCheckboxColumn, isRowReorderColumn } from '../columns/column-base';
8
- import { CommandColumnComponent } from '../columns/command-column.component';
9
- import { isColumnComponent } from '../columns/column.component';
10
- import { columnsToRender } from "../columns/column-common";
11
- import { ReactiveFormsModule } from '@angular/forms';
12
- import { isPresent, isNullOrEmptyString, extractFormat } from '../utils';
13
- import { CELL_CONTEXT } from './common/cell-context';
14
- import { IdService } from '../common/id.service';
15
- import { minusIcon, plusIcon, reorderIcon } from '@progress/kendo-svg-icons';
16
- import { ContextService } from '../common/provider.service';
17
- import { FieldAccessorPipe } from './common/field-accessor.pipe';
18
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
19
- import { SelectionCheckboxDirective } from '../selection/selection-checkbox.directive';
20
- import { FocusableDirective } from '../navigation/focusable.directive';
21
- import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
22
- import { CheckBoxComponent, NumericTextBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
23
- import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
24
- import { TemplateContextDirective } from '@progress/kendo-angular-common';
25
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
26
- import { DetailTemplateDirective } from './details/detail-template.directive';
27
- import { DetailsService } from './details/details.service';
28
- import { LocalizationService } from '@progress/kendo-angular-l10n';
29
- import * as i0 from "@angular/core";
30
- import * as i1 from "../editing/edit.service";
31
- import * as i2 from "../common/id.service";
32
- import * as i3 from "../common/provider.service";
33
- import * as i4 from "./details/details.service";
34
- import * as i5 from "@progress/kendo-angular-l10n";
35
- import * as i6 from "@angular/forms";
36
- /**
37
- * @hidden
38
- */
39
- export class CellComponent {
40
- editService;
41
- idService;
42
- ctx;
43
- detailsService;
44
- localization;
45
- cellContext;
46
- get commandCellClass() {
47
- return this.isCommand(this.column);
48
- }
49
- get dragHandleCellClass() {
50
- return isRowReorderColumn(this.column);
51
- }
52
- get dragRowHandleLabel() {
53
- return isRowReorderColumn(this.column) ? this.ctx.localization.get('dragRowHandleLabel') : undefined;
54
- }
55
- column;
56
- columns;
57
- columnIndex;
58
- isNew = false;
59
- isLoading = false;
60
- isVirtual = false;
61
- loadingTemplate;
62
- detailTemplate;
63
- item;
64
- set rowIndex(index) {
65
- this._rowIndex = index;
66
- this.updateCellContext();
67
- }
68
- get rowIndex() {
69
- return this._rowIndex;
70
- }
71
- dataItem;
72
- reorderIcon = reorderIcon;
73
- minusIcon = minusIcon;
74
- plusIcon = plusIcon;
75
- detailButtonIconName(viewItem) {
76
- return viewItem.isExpanded ? 'minus' : 'plus';
77
- }
78
- detailButtonSvgIcon(viewItem) {
79
- return viewItem.isExpanded ? this.minusIcon : this.plusIcon;
80
- }
81
- detailButtonText(viewItem) {
82
- return viewItem.isExpanded ? this.localization.get('detailCollapse') : this.localization.get('detailExpand');
83
- }
84
- toggleRow(index, dataItem) {
85
- this.detailsService.toggleRow(index, dataItem);
86
- return false;
87
- }
88
- get stackedRowClass() {
89
- const columnsLength = this.ctx.grid.stackedColumns?.columns.length;
90
- if (this.ctx.grid.stackedColumns.areDefault && columnsLength > 1) {
91
- return `k-grid-cols-${columnsLength}`;
92
- }
93
- }
94
- get stackedRowStyle() {
95
- const columnsWidths = this.ctx.grid.stackedColumns.columns.map(c => c.width).join(' ');
96
- if (!this.ctx.grid.stackedColumns.areDefault && columnsWidths) {
97
- return {
98
- 'grid-template-columns': `${columnsWidths}`
99
- };
100
- }
101
- }
102
- isEdited(column) {
103
- const currentColumn = column || this.column;
104
- if (!(this.editService.isEditing() || this.isNew) || !this.isColumnEditable(column)) {
105
- return false;
106
- }
107
- const editContext = this.editService.columnContext(this.rowIndex, currentColumn);
108
- return this.isFieldEditable(editContext, currentColumn);
109
- }
110
- get showLoading() {
111
- return this.isVirtual && this.isLoading;
112
- }
113
- get formGroup() {
114
- return this.editService.context(this.rowIndex).group;
115
- }
116
- getTemplateContext(column) {
117
- this._templateContext.isNew = this.isNew;
118
- this._templateContext.column = column || this.column;
119
- this._templateContext.dataItem = this.dataItem;
120
- this._templateContext.rowIndex = this.rowIndex;
121
- this._templateContext.columnIndex = this.columnIndex;
122
- this._templateContext.$implicit = this.dataItem;
123
- return this._templateContext;
124
- }
125
- get isStackedLayoutMode() {
126
- return this.ctx.grid?.isStacked;
127
- }
128
- getEditTemplateContext(column) {
129
- this._editTemplateContext.$implicit = this.formGroup;
130
- this._editTemplateContext.isNew = this.isNew;
131
- this._editTemplateContext.column = column || this.column;
132
- this._editTemplateContext.dataItem = this.dataItem;
133
- this._editTemplateContext.formGroup = this.formGroup;
134
- this._editTemplateContext.rowIndex = this.rowIndex;
135
- return this._editTemplateContext;
136
- }
137
- get rowReorderTemplateContext() {
138
- this._rowReorderTemplateContext.$implicit = this.dataItem;
139
- this._rowReorderTemplateContext.columnIndex = this.columnIndex;
140
- this._rowReorderTemplateContext.rowIndex = this.rowIndex;
141
- return this._rowReorderTemplateContext;
142
- }
143
- get format() {
144
- if (isColumnComponent(this.column) && !isNullOrEmptyString(this.column.format)) {
145
- return extractFormat(this.column.format);
146
- }
147
- return undefined;
148
- }
149
- isBoundColumn(column) {
150
- const currentColumn = column || this.column;
151
- return currentColumn.field && !currentColumn.templateRef;
152
- }
153
- isCheckboxColumn(column) {
154
- const currentColumn = column || this.column;
155
- return isCheckboxColumn(currentColumn) && !currentColumn.templateRef;
156
- }
157
- get selectionCheckboxId() {
158
- return this.idService.selectionCheckboxId(this.rowIndex);
159
- }
160
- get selectionCheckboxLabel() {
161
- return this.ctx.localization.get('selectionCheckboxLabel');
162
- }
163
- get isSpanColumn() {
164
- return isSpanColumn(this.column) && !this.column.templateRef;
165
- }
166
- get children() {
167
- return columnsToRender([this.column]);
168
- }
169
- isRowReorderColumn(column) {
170
- const currentColumn = column || this.column;
171
- return isRowReorderColumn(currentColumn) && !currentColumn.templateRef;
172
- }
173
- isRowSelectable(column) {
174
- const currentColumn = column || this.column;
175
- return currentColumn.rowSelectable(this._rowIndex);
176
- }
177
- _rowIndex;
178
- isColumnEditable(column) {
179
- const currentColumn = column || this.column;
180
- if (!currentColumn || this.isCommand(currentColumn)) {
181
- return false;
182
- }
183
- return currentColumn.editable !== false;
184
- }
185
- _templateContext = {};
186
- _editTemplateContext = {};
187
- _rowReorderTemplateContext = {};
188
- constructor(editService, idService, ctx, detailsService, localization, cellContext) {
189
- this.editService = editService;
190
- this.idService = idService;
191
- this.ctx = ctx;
192
- this.detailsService = detailsService;
193
- this.localization = localization;
194
- this.cellContext = cellContext;
195
- }
196
- ngDoCheck() {
197
- this.updateCellContext();
198
- }
199
- isCommand(column) {
200
- return column instanceof CommandColumnComponent;
201
- }
202
- isFieldEditable(editContext, column) {
203
- if (!isPresent(editContext)) {
204
- return false;
205
- }
206
- if (isPresent(column.editTemplate)) {
207
- return true;
208
- }
209
- return isPresent(editContext.group) && isPresent(editContext.group.get(column.field));
210
- }
211
- updateCellContext() {
212
- if (this.cellContext) {
213
- this.cellContext.rowIndex = this._rowIndex;
214
- }
215
- }
216
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.ContextService }, { token: i4.DetailsService }, { token: i5.LocalizationService }, { token: CELL_CONTEXT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
217
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CellComponent, isStandalone: true, selector: "[kendoGridCell]", inputs: { column: "column", columns: "columns", columnIndex: "columnIndex", isNew: "isNew", isLoading: "isLoading", isVirtual: "isVirtual", loadingTemplate: "loadingTemplate", detailTemplate: "detailTemplate", item: "item", rowIndex: "rowIndex", dataItem: "dataItem" }, host: { properties: { "class.k-command-cell": "this.commandCellClass", "class.k-drag-cell": "this.dragHandleCellClass", "class.k-touch-action-none": "this.dragHandleCellClass", "attr.aria-label": "this.dragRowHandleLabel" } }, ngImport: i0, template: `
218
- @if (isStackedLayoutMode) {
219
- <div class="k-grid-stack-row"
220
- [ngClass]="stackedRowClass"
221
- [ngStyle]="stackedRowStyle">
222
- @for (col of columns; track $index) {
223
- <div class="k-grid-stack-cell"
224
- [class.k-grid-stack-edit-cell]="isEdited(col)"
225
- [class.k-drag-cell]="isRowReorderColumn(col) && !isNew"
226
- [class.k-command-cell]="isCommand(col)"
227
- [kendoGridFocusable]="!isCommand(col)">
228
- <div class="k-grid-stack-header">
229
- @if (!col.headerTemplateRef) {
230
- {{col.displayTitle}}
231
- } @else {
232
- <ng-template #headerTemplate
233
- [templateContext]="{
234
- templateRef: col.headerTemplateRef,
235
- columnIndex: col.leafIndex,
236
- column: col,
237
- $implicit: col
238
- }">
239
- </ng-template>
240
- }
241
- </div>
242
- <div class="k-grid-stack-content">
243
- @if (!isEdited(col)) {
244
- @if (!col.templateRef) {
245
- @if (isBoundColumn(col)) {{{ dataItem | valueOf: col.field: col.format}}}
246
- @if (isCheckboxColumn(col) && !isNew) {
247
- @if (isRowSelectable(col)) {
248
- <kendo-checkbox
249
- [kendoGridSelectionCheckbox]="rowIndex"
250
- [attr.id]="selectionCheckboxId"
251
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
252
- [title]="selectionCheckboxLabel">
253
- </kendo-checkbox>
254
- } @else {
255
- @if (col.showDisabledCheckbox) {
256
- <kendo-checkbox
257
- [kendoGridSelectionCheckbox]="rowIndex"
258
- [attr.id]="selectionCheckboxId"
259
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
260
- [title]="selectionCheckboxLabel"
261
- [disabled]="true"
262
- ></kendo-checkbox>
263
- }
264
- }
265
- }
266
- @if (isRowReorderColumn(col) && !isNew) {
267
- @if (!col.dragHandleTemplate?.first) {
268
- <kendo-icon-wrapper
269
- name="reorder"
270
- [svgIcon]="reorderIcon">
271
- </kendo-icon-wrapper>
272
- } @else {
273
- <ng-template
274
- [ngTemplateOutlet]="col.rowDragHandleTemplateRef"
275
- [ngTemplateOutletContext]="rowReorderTemplateContext">
276
- </ng-template>
277
- }
278
- }
279
- } @else {
280
- <ng-template #template
281
- [ngTemplateOutlet]="col.templateRef"
282
- [ngTemplateOutletContext]="getTemplateContext(col)">
283
- </ng-template>
284
- }
285
- }
286
- @if (isEdited(col)) {
287
- @if (!col.editTemplateRef) {
288
- @switch (col.editor) {
289
- @case ('numeric') {
290
- <kendo-numerictextbox
291
- [format]="format"
292
- [formControl]="$any(formGroup.get(col.field))"
293
- kendoGridFocusable
294
- ></kendo-numerictextbox>
295
- }
296
- @case ('date') {
297
- <kendo-datepicker
298
- [format]="format"
299
- [formControl]="$any(formGroup.get(col.field))"
300
- kendoGridFocusable
301
- ></kendo-datepicker>
302
- }
303
- @case ('boolean') {
304
- <kendo-checkbox
305
- [formControl]="$any(formGroup.get(col.field))"
306
- kendoGridFocusable
307
- ></kendo-checkbox>
308
- }
309
- @default {
310
- <kendo-textbox
311
- [formControl]="$any(formGroup.get(col.field))"
312
- kendoGridFocusable
313
- ></kendo-textbox>
314
- }
315
- }
316
- } @else {
317
- <ng-template
318
- [ngTemplateOutlet]="col.editTemplateRef"
319
- [ngTemplateOutletContext]="getEditTemplateContext(col)">
320
- </ng-template>
321
- }
322
- }
323
- </div>
324
- </div>
325
- }
326
- @if (detailTemplate?.showIf(item.data, $any(item).index)) {
327
- <div class="k-grid-stack-cell" [attr.aria-expanded]="item.isExpanded">
328
- <div class="k-grid-stack-content">
329
- <button kendoButton
330
- fillMode="flat"
331
- themeColor="primary"
332
- [icon]="detailButtonIconName(item)"
333
- [svgIcon]="detailButtonSvgIcon(item)"
334
- (click)="toggleRow($any(item).index, item.data)">
335
- {{ detailButtonText(item) }}
336
- </button>
337
- </div>
338
- </div>
339
- }
340
- </div>
341
- }
342
-
343
- @if (!isStackedLayoutMode) {
344
- @switch (isEdited()) {
345
- @case (false) {
346
- @if (!showLoading) {
347
- @if (column.templateRef) {
348
- <ng-template
349
- [ngTemplateOutlet]="column.templateRef"
350
- [ngTemplateOutletContext]="getTemplateContext()">
351
- </ng-template>
352
- }
353
- @if (isSpanColumn) {
354
- @for (childColumn of children; track $index) {
355
- {{ dataItem | valueOf: childColumn.field: childColumn.format}}
356
- }
357
- }
358
- @if (isBoundColumn()) {{{ dataItem | valueOf: column.field: column.format}}}
359
- @if (isCheckboxColumn() && !isNew) {
360
- @if (isRowSelectable()) {
361
- <kendo-checkbox
362
- [kendoGridSelectionCheckbox]="rowIndex"
363
- [attr.id]="selectionCheckboxId"
364
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
365
- [title]="selectionCheckboxLabel">
366
- </kendo-checkbox>
367
- } @else {
368
- @if (column.showDisabledCheckbox) {
369
- <kendo-checkbox
370
- [kendoGridSelectionCheckbox]="rowIndex"
371
- [attr.id]="selectionCheckboxId"
372
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
373
- [title]="selectionCheckboxLabel"
374
- [disabled]="true"
375
- ></kendo-checkbox>
376
- }
377
- }
378
- }
379
- @if (isRowReorderColumn() && !isNew) {
380
- @if (!column.dragHandleTemplate?.first) {
381
- <kendo-icon-wrapper
382
- name="reorder"
383
- [svgIcon]="reorderIcon">
384
- </kendo-icon-wrapper>
385
- } @else {
386
- <ng-template
387
- [ngTemplateOutlet]="column.rowDragHandleTemplateRef"
388
- [ngTemplateOutletContext]="rowReorderTemplateContext">
389
- </ng-template>
390
- }
391
- }
392
- } @else {
393
- @if (loadingTemplate) {
394
- <ng-template
395
- [ngTemplateOutlet]="loadingTemplate"
396
- [ngTemplateOutletContext]="{$implicit: column}">
397
- </ng-template>
398
- } @else {
399
- <div class="k-skeleton-text k-skeleton"></div>
400
- }
401
- }
402
- }
403
- @case (true) {
404
- @if (column.editTemplateRef) {
405
- <ng-template
406
- [ngTemplateOutlet]="column.editTemplateRef"
407
- [ngTemplateOutletContext]="getEditTemplateContext()">
408
- </ng-template>
409
- } @else {
410
- @switch (column.editor) {
411
- @case ('numeric') {
412
- <kendo-numerictextbox
413
- [format]="format"
414
- [formControl]="$any(formGroup.get(column.field))"
415
- kendoGridFocusable
416
- ></kendo-numerictextbox>
417
- }
418
- @case ('date') {
419
- <kendo-datepicker
420
- [format]="format"
421
- [formControl]="$any(formGroup.get(column.field))"
422
- kendoGridFocusable
423
- ></kendo-datepicker>
424
- }
425
- @case ('boolean') {
426
- <kendo-checkbox
427
- [formControl]="$any(formGroup.get(column.field))"
428
- kendoGridFocusable
429
- ></kendo-checkbox>
430
- }
431
- @default {
432
- <kendo-textbox
433
- [formControl]="$any(formGroup.get(column.field))"
434
- kendoGridFocusable
435
- ></kendo-textbox>
436
- }
437
- }
438
- }
439
- }
440
- }
441
- }
442
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "directive", type: SelectionCheckboxDirective, selector: "[kendoGridSelectionCheckbox]", inputs: ["kendoGridSelectionCheckbox"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "component", type: DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "clearButton", "inputAttributes", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "footer", "navigationItemTemplate", "weekDaysFormat", "showOtherMonthDays", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "adaptiveTitle", "adaptiveSubtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close", "escape"], exportAs: ["kendo-datepicker"] }, { kind: "pipe", type: FieldAccessorPipe, name: "valueOf" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }] });
443
- }
444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, decorators: [{
445
- type: Component,
446
- args: [{
447
- selector: '[kendoGridCell]',
448
- template: `
449
- @if (isStackedLayoutMode) {
450
- <div class="k-grid-stack-row"
451
- [ngClass]="stackedRowClass"
452
- [ngStyle]="stackedRowStyle">
453
- @for (col of columns; track $index) {
454
- <div class="k-grid-stack-cell"
455
- [class.k-grid-stack-edit-cell]="isEdited(col)"
456
- [class.k-drag-cell]="isRowReorderColumn(col) && !isNew"
457
- [class.k-command-cell]="isCommand(col)"
458
- [kendoGridFocusable]="!isCommand(col)">
459
- <div class="k-grid-stack-header">
460
- @if (!col.headerTemplateRef) {
461
- {{col.displayTitle}}
462
- } @else {
463
- <ng-template #headerTemplate
464
- [templateContext]="{
465
- templateRef: col.headerTemplateRef,
466
- columnIndex: col.leafIndex,
467
- column: col,
468
- $implicit: col
469
- }">
470
- </ng-template>
471
- }
472
- </div>
473
- <div class="k-grid-stack-content">
474
- @if (!isEdited(col)) {
475
- @if (!col.templateRef) {
476
- @if (isBoundColumn(col)) {{{ dataItem | valueOf: col.field: col.format}}}
477
- @if (isCheckboxColumn(col) && !isNew) {
478
- @if (isRowSelectable(col)) {
479
- <kendo-checkbox
480
- [kendoGridSelectionCheckbox]="rowIndex"
481
- [attr.id]="selectionCheckboxId"
482
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
483
- [title]="selectionCheckboxLabel">
484
- </kendo-checkbox>
485
- } @else {
486
- @if (col.showDisabledCheckbox) {
487
- <kendo-checkbox
488
- [kendoGridSelectionCheckbox]="rowIndex"
489
- [attr.id]="selectionCheckboxId"
490
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
491
- [title]="selectionCheckboxLabel"
492
- [disabled]="true"
493
- ></kendo-checkbox>
494
- }
495
- }
496
- }
497
- @if (isRowReorderColumn(col) && !isNew) {
498
- @if (!col.dragHandleTemplate?.first) {
499
- <kendo-icon-wrapper
500
- name="reorder"
501
- [svgIcon]="reorderIcon">
502
- </kendo-icon-wrapper>
503
- } @else {
504
- <ng-template
505
- [ngTemplateOutlet]="col.rowDragHandleTemplateRef"
506
- [ngTemplateOutletContext]="rowReorderTemplateContext">
507
- </ng-template>
508
- }
509
- }
510
- } @else {
511
- <ng-template #template
512
- [ngTemplateOutlet]="col.templateRef"
513
- [ngTemplateOutletContext]="getTemplateContext(col)">
514
- </ng-template>
515
- }
516
- }
517
- @if (isEdited(col)) {
518
- @if (!col.editTemplateRef) {
519
- @switch (col.editor) {
520
- @case ('numeric') {
521
- <kendo-numerictextbox
522
- [format]="format"
523
- [formControl]="$any(formGroup.get(col.field))"
524
- kendoGridFocusable
525
- ></kendo-numerictextbox>
526
- }
527
- @case ('date') {
528
- <kendo-datepicker
529
- [format]="format"
530
- [formControl]="$any(formGroup.get(col.field))"
531
- kendoGridFocusable
532
- ></kendo-datepicker>
533
- }
534
- @case ('boolean') {
535
- <kendo-checkbox
536
- [formControl]="$any(formGroup.get(col.field))"
537
- kendoGridFocusable
538
- ></kendo-checkbox>
539
- }
540
- @default {
541
- <kendo-textbox
542
- [formControl]="$any(formGroup.get(col.field))"
543
- kendoGridFocusable
544
- ></kendo-textbox>
545
- }
546
- }
547
- } @else {
548
- <ng-template
549
- [ngTemplateOutlet]="col.editTemplateRef"
550
- [ngTemplateOutletContext]="getEditTemplateContext(col)">
551
- </ng-template>
552
- }
553
- }
554
- </div>
555
- </div>
556
- }
557
- @if (detailTemplate?.showIf(item.data, $any(item).index)) {
558
- <div class="k-grid-stack-cell" [attr.aria-expanded]="item.isExpanded">
559
- <div class="k-grid-stack-content">
560
- <button kendoButton
561
- fillMode="flat"
562
- themeColor="primary"
563
- [icon]="detailButtonIconName(item)"
564
- [svgIcon]="detailButtonSvgIcon(item)"
565
- (click)="toggleRow($any(item).index, item.data)">
566
- {{ detailButtonText(item) }}
567
- </button>
568
- </div>
569
- </div>
570
- }
571
- </div>
572
- }
573
-
574
- @if (!isStackedLayoutMode) {
575
- @switch (isEdited()) {
576
- @case (false) {
577
- @if (!showLoading) {
578
- @if (column.templateRef) {
579
- <ng-template
580
- [ngTemplateOutlet]="column.templateRef"
581
- [ngTemplateOutletContext]="getTemplateContext()">
582
- </ng-template>
583
- }
584
- @if (isSpanColumn) {
585
- @for (childColumn of children; track $index) {
586
- {{ dataItem | valueOf: childColumn.field: childColumn.format}}
587
- }
588
- }
589
- @if (isBoundColumn()) {{{ dataItem | valueOf: column.field: column.format}}}
590
- @if (isCheckboxColumn() && !isNew) {
591
- @if (isRowSelectable()) {
592
- <kendo-checkbox
593
- [kendoGridSelectionCheckbox]="rowIndex"
594
- [attr.id]="selectionCheckboxId"
595
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
596
- [title]="selectionCheckboxLabel">
597
- </kendo-checkbox>
598
- } @else {
599
- @if (column.showDisabledCheckbox) {
600
- <kendo-checkbox
601
- [kendoGridSelectionCheckbox]="rowIndex"
602
- [attr.id]="selectionCheckboxId"
603
- [inputAttributes]="{'aria-label': selectionCheckboxLabel}"
604
- [title]="selectionCheckboxLabel"
605
- [disabled]="true"
606
- ></kendo-checkbox>
607
- }
608
- }
609
- }
610
- @if (isRowReorderColumn() && !isNew) {
611
- @if (!column.dragHandleTemplate?.first) {
612
- <kendo-icon-wrapper
613
- name="reorder"
614
- [svgIcon]="reorderIcon">
615
- </kendo-icon-wrapper>
616
- } @else {
617
- <ng-template
618
- [ngTemplateOutlet]="column.rowDragHandleTemplateRef"
619
- [ngTemplateOutletContext]="rowReorderTemplateContext">
620
- </ng-template>
621
- }
622
- }
623
- } @else {
624
- @if (loadingTemplate) {
625
- <ng-template
626
- [ngTemplateOutlet]="loadingTemplate"
627
- [ngTemplateOutletContext]="{$implicit: column}">
628
- </ng-template>
629
- } @else {
630
- <div class="k-skeleton-text k-skeleton"></div>
631
- }
632
- }
633
- }
634
- @case (true) {
635
- @if (column.editTemplateRef) {
636
- <ng-template
637
- [ngTemplateOutlet]="column.editTemplateRef"
638
- [ngTemplateOutletContext]="getEditTemplateContext()">
639
- </ng-template>
640
- } @else {
641
- @switch (column.editor) {
642
- @case ('numeric') {
643
- <kendo-numerictextbox
644
- [format]="format"
645
- [formControl]="$any(formGroup.get(column.field))"
646
- kendoGridFocusable
647
- ></kendo-numerictextbox>
648
- }
649
- @case ('date') {
650
- <kendo-datepicker
651
- [format]="format"
652
- [formControl]="$any(formGroup.get(column.field))"
653
- kendoGridFocusable
654
- ></kendo-datepicker>
655
- }
656
- @case ('boolean') {
657
- <kendo-checkbox
658
- [formControl]="$any(formGroup.get(column.field))"
659
- kendoGridFocusable
660
- ></kendo-checkbox>
661
- }
662
- @default {
663
- <kendo-textbox
664
- [formControl]="$any(formGroup.get(column.field))"
665
- kendoGridFocusable
666
- ></kendo-textbox>
667
- }
668
- }
669
- }
670
- }
671
- }
672
- }
673
- `,
674
- standalone: true,
675
- imports: [NgTemplateOutlet, FocusableDirective, SelectionCheckboxDirective, TemplateContextDirective,
676
- IconWrapperComponent, NumericTextBoxComponent, DatePickerComponent, FieldAccessorPipe, ReactiveFormsModule, CheckBoxComponent, TextBoxComponent, NgClass, NgStyle, ButtonComponent]
677
- }]
678
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.ContextService }, { type: i4.DetailsService }, { type: i5.LocalizationService }, { type: undefined, decorators: [{
679
- type: Optional
680
- }, {
681
- type: Inject,
682
- args: [CELL_CONTEXT]
683
- }] }], propDecorators: { commandCellClass: [{
684
- type: HostBinding,
685
- args: ['class.k-command-cell']
686
- }], dragHandleCellClass: [{
687
- type: HostBinding,
688
- args: ['class.k-drag-cell']
689
- }, {
690
- type: HostBinding,
691
- args: ['class.k-touch-action-none']
692
- }], dragRowHandleLabel: [{
693
- type: HostBinding,
694
- args: ['attr.aria-label']
695
- }], column: [{
696
- type: Input
697
- }], columns: [{
698
- type: Input
699
- }], columnIndex: [{
700
- type: Input
701
- }], isNew: [{
702
- type: Input
703
- }], isLoading: [{
704
- type: Input
705
- }], isVirtual: [{
706
- type: Input
707
- }], loadingTemplate: [{
708
- type: Input
709
- }], detailTemplate: [{
710
- type: Input
711
- }], item: [{
712
- type: Input
713
- }], rowIndex: [{
714
- type: Input
715
- }], dataItem: [{
716
- type: Input
717
- }] } });