@progress/kendo-angular-treelist 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 (272) hide show
  1. package/binding-directives/base-binding.directive.d.ts +1 -1
  2. package/column-menu/column-menu-item-base.d.ts +1 -1
  3. package/columns/column-base.d.ts +1 -1
  4. package/editing-directives/editing-directive-base.d.ts +1 -1
  5. package/editing-directives/row-editing-directive-base.d.ts +1 -1
  6. package/fesm2022/progress-kendo-angular-treelist.mjs +519 -519
  7. package/filtering/base-filter-cell.component.d.ts +1 -1
  8. package/filtering/boolean-filter.component.d.ts +1 -1
  9. package/filtering/date-filter.component.d.ts +1 -1
  10. package/filtering/filter-host.directive.d.ts +1 -1
  11. package/filtering/filter-input-wrapper.component.d.ts +1 -1
  12. package/filtering/numeric-filter.component.d.ts +1 -1
  13. package/filtering/operators/filter-operator.base.d.ts +1 -1
  14. package/filtering/string-filter.component.d.ts +1 -1
  15. package/localization/messages.d.ts +1 -1
  16. package/package.json +23 -31
  17. package/schematics/ngAdd/index.js +3 -3
  18. package/esm2022/binding-directives/base-binding.directive.mjs +0 -180
  19. package/esm2022/binding-directives/data-bound-tree-component.mjs +0 -18
  20. package/esm2022/binding-directives/flat-binding.directive.mjs +0 -130
  21. package/esm2022/binding-directives/hierarchy-binding.directive.mjs +0 -109
  22. package/esm2022/column-menu/column-chooser-item-checked.directive.mjs +0 -45
  23. package/esm2022/column-menu/column-chooser.component.mjs +0 -221
  24. package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
  25. package/esm2022/column-menu/column-list.component.mjs +0 -380
  26. package/esm2022/column-menu/column-locked-change-event.mjs +0 -21
  27. package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -78
  28. package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -86
  29. package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -164
  30. package/esm2022/column-menu/column-menu-container.component.mjs +0 -58
  31. package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
  32. package/esm2022/column-menu/column-menu-filter.component.mjs +0 -141
  33. package/esm2022/column-menu/column-menu-item-base.mjs +0 -41
  34. package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -43
  35. package/esm2022/column-menu/column-menu-item.component.mjs +0 -329
  36. package/esm2022/column-menu/column-menu-item.directive.mjs +0 -147
  37. package/esm2022/column-menu/column-menu-lock.component.mjs +0 -112
  38. package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
  39. package/esm2022/column-menu/column-menu-sort.component.mjs +0 -115
  40. package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
  41. package/esm2022/column-menu/column-menu.component.mjs +0 -470
  42. package/esm2022/column-menu/column-menu.service.mjs +0 -70
  43. package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
  44. package/esm2022/column-menu/utils.mjs +0 -44
  45. package/esm2022/column-resizing/column-handle.directive.mjs +0 -226
  46. package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
  47. package/esm2022/column-resizing/column-resizing.service.mjs +0 -143
  48. package/esm2022/column-resizing/table.directive.mjs +0 -130
  49. package/esm2022/columns/checkbox-column.component.mjs +0 -88
  50. package/esm2022/columns/column-base.mjs +0 -319
  51. package/esm2022/columns/column-common.mjs +0 -73
  52. package/esm2022/columns/column-group.component.mjs +0 -115
  53. package/esm2022/columns/column-list.mjs +0 -94
  54. package/esm2022/columns/column.component.mjs +0 -165
  55. package/esm2022/columns/columns-container.mjs +0 -90
  56. package/esm2022/columns/command-column.component.mjs +0 -77
  57. package/esm2022/columns/rowreorder-column.component.mjs +0 -57
  58. package/esm2022/columns/sort-settings.mjs +0 -17
  59. package/esm2022/columns/span-column.component.mjs +0 -201
  60. package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
  61. package/esm2022/common/column-info.service.mjs +0 -54
  62. package/esm2022/common/create-form-group.mjs +0 -5
  63. package/esm2022/common/default-track-by.mjs +0 -13
  64. package/esm2022/common/dom-events.service.mjs +0 -24
  65. package/esm2022/common/error-messages.mjs +0 -15
  66. package/esm2022/common/filter-descriptor-differ.mjs +0 -69
  67. package/esm2022/common/filter-operator.interface.mjs +0 -5
  68. package/esm2022/common/id.service.mjs +0 -34
  69. package/esm2022/common/option-changes.service.mjs +0 -24
  70. package/esm2022/common/pager-settings.mjs +0 -19
  71. package/esm2022/common/preventable-event.mjs +0 -28
  72. package/esm2022/common/provider.service.mjs +0 -34
  73. package/esm2022/common/remove-confirmation.mjs +0 -5
  74. package/esm2022/common/single-popup.service.mjs +0 -132
  75. package/esm2022/common/sort.service.mjs +0 -14
  76. package/esm2022/data/change-event-args.interface.mjs +0 -5
  77. package/esm2022/data/change-notification.service.mjs +0 -30
  78. package/esm2022/data/data-item.interface.mjs +0 -5
  79. package/esm2022/data/data.collection.mjs +0 -503
  80. package/esm2022/data/treelist-item.interface.mjs +0 -5
  81. package/esm2022/directives.mjs +0 -291
  82. package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
  83. package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
  84. package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
  85. package/esm2022/dragdrop/common.mjs +0 -69
  86. package/esm2022/dragdrop/context-types.mjs +0 -5
  87. package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
  88. package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
  89. package/esm2022/dragdrop/draggable-column.directive.mjs +0 -141
  90. package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
  91. package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
  92. package/esm2022/editing/add-command-tool.directive.mjs +0 -60
  93. package/esm2022/editing/add-command.directive.mjs +0 -96
  94. package/esm2022/editing/add-event-args.interface.mjs +0 -5
  95. package/esm2022/editing/base-command.directive.mjs +0 -95
  96. package/esm2022/editing/cancel-command.directive.mjs +0 -97
  97. package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
  98. package/esm2022/editing/cell-close-event.mjs +0 -34
  99. package/esm2022/editing/edit-command.directive.mjs +0 -96
  100. package/esm2022/editing/edit-event-args.interface.mjs +0 -5
  101. package/esm2022/editing/edit-template.directive.mjs +0 -45
  102. package/esm2022/editing/edit.service.mjs +0 -174
  103. package/esm2022/editing/remove-command.directive.mjs +0 -96
  104. package/esm2022/editing/remove-event-args.interface.mjs +0 -5
  105. package/esm2022/editing/save-command.directive.mjs +0 -96
  106. package/esm2022/editing/save-event-args.interface.mjs +0 -5
  107. package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
  108. package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
  109. package/esm2022/editing-directives/editing-directive-base.mjs +0 -137
  110. package/esm2022/editing-directives/flat-edit.service.mjs +0 -52
  111. package/esm2022/editing-directives/hierarchy-edit.service.mjs +0 -48
  112. package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -89
  113. package/esm2022/editing-directives/local-edit.service.mjs +0 -28
  114. package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -61
  115. package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -39
  116. package/esm2022/editing-directives/template-editing.directive.mjs +0 -68
  117. package/esm2022/editing-directives/utils.mjs +0 -41
  118. package/esm2022/excel/excel-command-tool.directive.mjs +0 -64
  119. package/esm2022/excel/excel-command.directive.mjs +0 -97
  120. package/esm2022/excel/excel-export-data.interface.mjs +0 -5
  121. package/esm2022/excel/excel-export-event.mjs +0 -15
  122. package/esm2022/excel/excel.component.mjs +0 -277
  123. package/esm2022/excel/excel.module.mjs +0 -45
  124. package/esm2022/excel/excel.service.mjs +0 -34
  125. package/esm2022/expand-state/expand-event.mjs +0 -30
  126. package/esm2022/expand-state/expand-state.service.mjs +0 -38
  127. package/esm2022/expand-state/expandable-tree-component.mjs +0 -18
  128. package/esm2022/expand-state/expandable.directive.mjs +0 -119
  129. package/esm2022/filtering/base-filter-cell.component.mjs +0 -172
  130. package/esm2022/filtering/boolean-filter.component.mjs +0 -91
  131. package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -113
  132. package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -107
  133. package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -132
  134. package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
  135. package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
  136. package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -235
  137. package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
  138. package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
  139. package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
  140. package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -143
  141. package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -115
  142. package/esm2022/filtering/date-filter.component.mjs +0 -176
  143. package/esm2022/filtering/filter-component.interface.mjs +0 -5
  144. package/esm2022/filtering/filter-host.directive.mjs +0 -56
  145. package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
  146. package/esm2022/filtering/filter-input.directive.mjs +0 -114
  147. package/esm2022/filtering/filter-row.component.mjs +0 -79
  148. package/esm2022/filtering/filter.service.mjs +0 -42
  149. package/esm2022/filtering/filterable.mjs +0 -16
  150. package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -168
  151. package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -174
  152. package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -207
  153. package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
  154. package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -299
  155. package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
  156. package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
  157. package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -136
  158. package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -43
  159. package/esm2022/filtering/menu/filter-menu.component.mjs +0 -202
  160. package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
  161. package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
  162. package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -152
  163. package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -224
  164. package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -105
  165. package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -183
  166. package/esm2022/filtering/numeric-filter.component.mjs +0 -144
  167. package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
  168. package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
  169. package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
  170. package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
  171. package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -64
  172. package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -64
  173. package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -112
  174. package/esm2022/filtering/operators/filter-operator.base.mjs +0 -98
  175. package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
  176. package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
  177. package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -64
  178. package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -64
  179. package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -112
  180. package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -112
  181. package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
  182. package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
  183. package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -112
  184. package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -64
  185. package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -64
  186. package/esm2022/filtering/string-filter.component.mjs +0 -89
  187. package/esm2022/index.mjs +0 -146
  188. package/esm2022/layout/browser-support.service.mjs +0 -85
  189. package/esm2022/layout/resizable.directive.mjs +0 -83
  190. package/esm2022/layout/resize.service.mjs +0 -29
  191. package/esm2022/layout/responsive.service.mjs +0 -34
  192. package/esm2022/layout/row-sync.mjs +0 -47
  193. package/esm2022/localization/custom-messages.component.mjs +0 -53
  194. package/esm2022/localization/localized-messages.directive.mjs +0 -39
  195. package/esm2022/localization/messages.mjs +0 -510
  196. package/esm2022/navigation/default-focusable-element.mjs +0 -47
  197. package/esm2022/navigation/focus-group.mjs +0 -105
  198. package/esm2022/navigation/focus-root.mjs +0 -50
  199. package/esm2022/navigation/focusable-element.interface.mjs +0 -5
  200. package/esm2022/navigation/focusable.directive.mjs +0 -174
  201. package/esm2022/navigation/item-map.mjs +0 -59
  202. package/esm2022/navigation/logical-cell.directive.mjs +0 -187
  203. package/esm2022/navigation/logical-cell.interface.mjs +0 -5
  204. package/esm2022/navigation/logical-row.directive.mjs +0 -135
  205. package/esm2022/navigation/logical-row.interface.mjs +0 -5
  206. package/esm2022/navigation/model-cell.mjs +0 -37
  207. package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
  208. package/esm2022/navigation/navigation-change.interface.mjs +0 -5
  209. package/esm2022/navigation/navigation-cursor.mjs +0 -176
  210. package/esm2022/navigation/navigation-metadata.mjs +0 -31
  211. package/esm2022/navigation/navigation-mode.mjs +0 -5
  212. package/esm2022/navigation/navigation-model.mjs +0 -126
  213. package/esm2022/navigation/navigation-row.interface.mjs +0 -5
  214. package/esm2022/navigation/navigation.service.mjs +0 -695
  215. package/esm2022/navigation/treelist-focusable-element.mjs +0 -28
  216. package/esm2022/package-metadata.mjs +0 -16
  217. package/esm2022/pdf/export-element.mjs +0 -129
  218. package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -68
  219. package/esm2022/pdf/pdf-command.directive.mjs +0 -101
  220. package/esm2022/pdf/pdf-export-event.mjs +0 -18
  221. package/esm2022/pdf/pdf-margin.component.mjs +0 -33
  222. package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
  223. package/esm2022/pdf/pdf-template.directive.mjs +0 -45
  224. package/esm2022/pdf/pdf.component.mjs +0 -269
  225. package/esm2022/pdf/pdf.module.mjs +0 -48
  226. package/esm2022/pdf/pdf.service.mjs +0 -40
  227. package/esm2022/pdf/treelist-query.mjs +0 -45
  228. package/esm2022/progress-kendo-angular-treelist.mjs +0 -8
  229. package/esm2022/rendering/cell-template.directive.mjs +0 -49
  230. package/esm2022/rendering/cell.component.mjs +0 -383
  231. package/esm2022/rendering/common/col-group.component.mjs +0 -39
  232. package/esm2022/rendering/common/dom-queries.mjs +0 -158
  233. package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
  234. package/esm2022/rendering/common/level-items.pipe.mjs +0 -30
  235. package/esm2022/rendering/common/loading.component.mjs +0 -42
  236. package/esm2022/rendering/common/row-class.mjs +0 -5
  237. package/esm2022/rendering/common/spacer.component.mjs +0 -61
  238. package/esm2022/rendering/constants.mjs +0 -28
  239. package/esm2022/rendering/footer-template.directive.mjs +0 -45
  240. package/esm2022/rendering/header/header-template.directive.mjs +0 -45
  241. package/esm2022/rendering/header/header.component.mjs +0 -978
  242. package/esm2022/rendering/header/select-all-checkbox.directive.mjs +0 -90
  243. package/esm2022/rendering/list.component.mjs +0 -850
  244. package/esm2022/rendering/no-records-template.directive.mjs +0 -40
  245. package/esm2022/rendering/table-body.component.mjs +0 -665
  246. package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -77
  247. package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -54
  248. package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -58
  249. package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -110
  250. package/esm2022/row-reordering/flat-reorder.service.mjs +0 -48
  251. package/esm2022/row-reordering/hierarchical-reorder.service.mjs +0 -55
  252. package/esm2022/row-reordering/row-reorder.service.mjs +0 -273
  253. package/esm2022/row-reordering/types.mjs +0 -5
  254. package/esm2022/row-reordering/utils.mjs +0 -128
  255. package/esm2022/scrolling/content-scroll-event.mjs +0 -5
  256. package/esm2022/scrolling/row-height.service.mjs +0 -30
  257. package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
  258. package/esm2022/scrolling/scroll-request.service.mjs +0 -21
  259. package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
  260. package/esm2022/scrolling/scroller.service.mjs +0 -112
  261. package/esm2022/scrolling/scrollmode.mjs +0 -5
  262. package/esm2022/scrolling/suspend.service.mjs +0 -17
  263. package/esm2022/selection/is-selected.mjs +0 -5
  264. package/esm2022/selection/marquee.directive.mjs +0 -196
  265. package/esm2022/selection/selectable-settings.mjs +0 -5
  266. package/esm2022/selection/selectable.directive.mjs +0 -223
  267. package/esm2022/selection/selection-change-event.mjs +0 -28
  268. package/esm2022/selection/selection-state.mjs +0 -104
  269. package/esm2022/selection/selection.service.mjs +0 -264
  270. package/esm2022/treelist.component.mjs +0 -3111
  271. package/esm2022/treelist.module.mjs +0 -183
  272. package/esm2022/utils.mjs +0 -113
@@ -1,141 +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, EventEmitter, Host, Input, NgZone, Output, Renderer2, HostBinding } from '@angular/core';
6
- import { Subscription, of } from 'rxjs';
7
- import { DraggableDirective } from '@progress/kendo-angular-common';
8
- import { DragAndDropService } from './drag-and-drop.service';
9
- import { DragHintService } from './drag-hint.service';
10
- import { DropCueService } from './drop-cue.service';
11
- import { and, not, or } from '../utils';
12
- import { NavigationService } from '../navigation/navigation.service';
13
- import { takeUntil, delay, filter, tap, switchMap, switchMapTo, map } from 'rxjs/operators';
14
- import { isFocusableWithTabKey, matchesNodeName } from '../rendering/common/dom-queries';
15
- import * as i0 from "@angular/core";
16
- import * as i1 from "@progress/kendo-angular-common";
17
- import * as i2 from "./drag-and-drop.service";
18
- import * as i3 from "./drag-hint.service";
19
- import * as i4 from "./drop-cue.service";
20
- import * as i5 from "../navigation/navigation.service";
21
- /**
22
- * @hidden
23
- */
24
- const preventOnDblClick = release => mouseDown => of(mouseDown).pipe(delay(150), takeUntil(release));
25
- const hasClass = className => el => new RegExp(`(^| )${className}( |$)`).test(el.className);
26
- const isDeleteButton = or(hasClass('k-i-x'), hasClass('k-svg-i-x'), hasClass('k-icon-button'));
27
- const isSortIcon = or(hasClass('k-i-sort-asc-small'), hasClass('k-i-sort-desc-small'), hasClass('k-svg-i-sort-asc-small'), hasClass('k-svg-i-sort-desc-small'));
28
- const skipButtons = and(not(isDeleteButton), not(isSortIcon), not(isFocusableWithTabKey), not(matchesNodeName('label')));
29
- const elementUnderCursor = ({ clientX, clientY }) => document.elementFromPoint(clientX, clientY);
30
- const hideThenShow = (element, cont) => {
31
- element.style.display = 'none';
32
- const result = cont();
33
- element.style.display = 'block';
34
- return result;
35
- };
36
- /**
37
- * @hidden
38
- */
39
- export class DraggableColumnDirective {
40
- draggable;
41
- element;
42
- zone;
43
- service;
44
- hint;
45
- cue;
46
- nav;
47
- renderer;
48
- context = {};
49
- set enableDrag(enabled) {
50
- this.enabled = enabled;
51
- this.updateTouchAction();
52
- }
53
- drag = new EventEmitter();
54
- get hostClass() {
55
- return this.enabled;
56
- }
57
- subscriptions = new Subscription();
58
- enabled;
59
- constructor(draggable, element, zone, service, hint, cue, nav, renderer) {
60
- this.draggable = draggable;
61
- this.element = element;
62
- this.zone = zone;
63
- this.service = service;
64
- this.hint = hint;
65
- this.cue = cue;
66
- this.nav = nav;
67
- this.renderer = renderer;
68
- }
69
- ngOnInit() {
70
- this.subscriptions.add(this.zone.runOutsideAngular(() => this.draggable.kendoPress.pipe(filter(_ => this.enabled), filter(({ originalEvent: { target } }) => target === this.element.nativeElement || skipButtons(target)), tap((e) => {
71
- const originalEvent = e.originalEvent;
72
- if (!e.isTouch) {
73
- originalEvent.preventDefault();
74
- }
75
- this.nav.navigateTo(originalEvent.target);
76
- }), switchMap(preventOnDblClick(this.draggable.kendoRelease)), tap(() => {
77
- this.hint.create(this.context.hint);
78
- this.cue.create();
79
- }), switchMap(down => this.draggable.kendoDrag.pipe(tap((e) => {
80
- if (e.isTouch) {
81
- e.originalEvent.preventDefault();
82
- }
83
- }), tap(this.hint.attach()), tap(this.cue.attach()), takeUntil(this.draggable.kendoRelease), map(move => ({ move, down })))), tap(this.performDrag.bind(this)), switchMapTo(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))));
84
- }
85
- ngOnDestroy() {
86
- if (this.subscriptions) {
87
- this.subscriptions.unsubscribe();
88
- }
89
- }
90
- drop(upEvent) {
91
- this.hint.remove();
92
- this.cue.remove();
93
- this.service.notifyDrop(this, upEvent);
94
- }
95
- performDrag({ move }) {
96
- this.hint.move(move);
97
- const cursorElement = this.elementUnderCursor(move);
98
- if (cursorElement) {
99
- this.service.notifyDrag(this, cursorElement, move);
100
- }
101
- this.drag.emit({
102
- draggable: this,
103
- mouseEvent: move
104
- });
105
- }
106
- elementUnderCursor(mouseEvent) {
107
- this.hint.hide();
108
- let target = elementUnderCursor(mouseEvent);
109
- if (target && /k-grouping-dropclue/.test(target.className)) {
110
- target = hideThenShow(target, elementUnderCursor.bind(this, mouseEvent));
111
- }
112
- this.hint.show();
113
- return target;
114
- }
115
- updateTouchAction() {
116
- if (!this.element) {
117
- return;
118
- }
119
- this.renderer.setStyle(this.element.nativeElement, 'touch-action', this.enabled ? 'none' : '');
120
- }
121
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DraggableColumnDirective, deps: [{ token: i1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i2.DragAndDropService }, { token: i3.DragHintService }, { token: i4.DropCueService }, { token: i5.NavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
122
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DraggableColumnDirective, isStandalone: true, selector: "[kendoDraggableColumn]", inputs: { context: "context", enableDrag: "enableDrag" }, outputs: { drag: "drag" }, host: { properties: { "class.k-grid-draggable-header": "this.hostClass" } }, ngImport: i0 });
123
- }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DraggableColumnDirective, decorators: [{
125
- type: Directive,
126
- args: [{
127
- selector: '[kendoDraggableColumn]',
128
- standalone: true
129
- }]
130
- }], ctorParameters: () => [{ type: i1.DraggableDirective, decorators: [{
131
- type: Host
132
- }] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i2.DragAndDropService }, { type: i3.DragHintService }, { type: i4.DropCueService }, { type: i5.NavigationService }, { type: i0.Renderer2 }], propDecorators: { context: [{
133
- type: Input
134
- }], enableDrag: [{
135
- type: Input
136
- }], drag: [{
137
- type: Output
138
- }], hostClass: [{
139
- type: HostBinding,
140
- args: ['class.k-grid-draggable-header']
141
- }] } });
@@ -1,46 +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 } from '@angular/core';
6
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
- import { append } from './common';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * @hidden
11
- */
12
- export class DropCueService {
13
- dom;
14
- create() {
15
- if (!isDocumentAvailable()) {
16
- return;
17
- }
18
- this.dom = document.createElement("div");
19
- this.dom.className = 'k-grouping-dropclue';
20
- this.hide();
21
- }
22
- attach() {
23
- return append(this.dom);
24
- }
25
- remove() {
26
- if (this.dom && this.dom.parentElement) {
27
- document.body.removeChild(this.dom);
28
- this.dom = null;
29
- }
30
- }
31
- hide() {
32
- this.dom.style.display = "none";
33
- }
34
- position({ left, top, height }) {
35
- this.dom.style.display = 'block';
36
- this.dom.style.height = height + 'px';
37
- this.dom.style.top = top + 'px';
38
- const width = this.dom.offsetWidth / 2;
39
- this.dom.style.left = left - width + 'px';
40
- }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService });
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService, decorators: [{
45
- type: Injectable
46
- }] });
@@ -1,71 +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, EventEmitter, Input, Output } from '@angular/core';
6
- import { Subscription } from 'rxjs';
7
- import { DragAndDropService } from './drag-and-drop.service';
8
- import { filter } from 'rxjs/operators';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "./drag-and-drop.service";
11
- /**
12
- * @hidden
13
- */
14
- export class DropTargetDirective {
15
- element;
16
- service;
17
- context = {};
18
- enter = new EventEmitter();
19
- leave = new EventEmitter();
20
- drop = new EventEmitter();
21
- subscriptions = new Subscription();
22
- constructor(element, service) {
23
- this.element = element;
24
- this.service = service;
25
- }
26
- ngOnInit() {
27
- this.service.add(this);
28
- const changes = this.service.changes.pipe(filter(({ target }) => target === this));
29
- this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'leave'))
30
- .subscribe(e => {
31
- this.leave.next(this.eventArgs(e));
32
- }));
33
- this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'enter'))
34
- .subscribe(e => {
35
- this.enter.next(this.eventArgs(e));
36
- }));
37
- this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'drop'))
38
- .subscribe(e => {
39
- this.drop.next(this.eventArgs(e));
40
- }));
41
- }
42
- ngOnDestroy() {
43
- if (this.subscriptions) {
44
- this.subscriptions.unsubscribe();
45
- }
46
- }
47
- eventArgs(e) {
48
- return {
49
- target: this,
50
- mouseEvent: e.mouseEvent,
51
- draggable: e.draggable
52
- };
53
- }
54
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, deps: [{ token: i0.ElementRef }, { token: i1.DragAndDropService }], target: i0.ɵɵFactoryTarget.Directive });
55
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", inputs: { context: "context" }, outputs: { enter: "enter", leave: "leave", drop: "drop" }, ngImport: i0 });
56
- }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, decorators: [{
58
- type: Directive,
59
- args: [{
60
- selector: '[kendoDropTarget]',
61
- standalone: true
62
- }]
63
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.DragAndDropService }], propDecorators: { context: [{
64
- type: Input
65
- }], enter: [{
66
- type: Output
67
- }], leave: [{
68
- type: Output
69
- }], drop: [{
70
- type: Output
71
- }] } });
@@ -1,60 +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 } from '@angular/core';
6
- import { EditService } from './edit.service';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { Subscription } from 'rxjs';
9
- import { plusIcon } from '@progress/kendo-svg-icons';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "./edit.service";
12
- import * as i2 from "@progress/kendo-angular-toolbar";
13
- /**
14
- * Represents the command for adding a new item to the TreeList. Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent. When the user clicks the toolbar button associated with the directive, the [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
15
- *
16
- * @example
17
- * ```html
18
- * <kendo-treelist>
19
- * <kendo-toolbar>
20
- * <kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
21
- * </kendo-toolbar>
22
- * </kendo-treelist>
23
- * ```
24
- * @remarks
25
- * Applied to: {@link ToolBarButtonComponent}
26
- */
27
- export class AddCommandToolbarDirective {
28
- editService;
29
- host;
30
- clickSub = new Subscription();
31
- constructor(editService, host) {
32
- this.editService = editService;
33
- this.host = host;
34
- }
35
- ngOnInit() {
36
- this.clickSub = this.host.click.subscribe(e => this.onClick(e));
37
- this.host.className = 'k-grid-add-command';
38
- this.host.svgIcon = plusIcon;
39
- this.host.icon = 'plus';
40
- }
41
- ngOnDestroy() {
42
- this.clickSub.unsubscribe();
43
- }
44
- /**
45
- * @hidden
46
- */
47
- onClick(e) {
48
- e.preventDefault();
49
- this.editService.beginAdd();
50
- }
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
52
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: AddCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListAddTool]", ngImport: i0 });
53
- }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandToolbarDirective, decorators: [{
55
- type: Directive,
56
- args: [{
57
- selector: '[kendoTreeListAddTool]',
58
- standalone: true
59
- }]
60
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }] });
@@ -1,96 +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, ElementRef, Renderer2, NgZone, HostBinding, Input } from '@angular/core';
6
- import { NgClass } from '@angular/common';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
9
- import { EditService } from './edit.service';
10
- import { BaseCommandDirective } from './base-command.directive';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./edit.service";
13
- import * as i2 from "@progress/kendo-angular-l10n";
14
- /**
15
- * Represents the command for adding a new item to the TreeList. Apply this directive to any `button` element inside a [`ToolbarTemplate`](slug:toolbartemplate_treelist) or inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
16
- *
17
- * When the user clicks a button with this directive, the [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered ([see example](slug:custom_editors_editing_treelist)).
18
- *
19
- * The button with `kendoTreeListAddCommand` is automatically hidden when the row is in edit mode.
20
- *
21
- * When used in the command column, the directive takes the `cellContext` from the cell template as input.
22
- *
23
- * @example
24
- * ```html
25
- * <kendo-treelist ...>
26
- * <kendo-treelist-command-column title="command">
27
- * <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
28
- * <button [kendoTreeListAddCommand]="cellContext" class="k-primary">Edit</button>
29
- * </ng-template>
30
- * </kendo-treelist-command-column>
31
- * </kendo-treelist>
32
- * ```
33
- */
34
- export class AddCommandDirective extends BaseCommandDirective {
35
- /**
36
- * Provides the `cellContext` to the template.
37
- */
38
- cellContext;
39
- commandClass = true;
40
- readVisible = true;
41
- constructor(editService, element, renderer, localization, ngZone) {
42
- super(editService, element, renderer, localization, ngZone);
43
- }
44
- onClick() {
45
- this.editService.beginAdd(this.dataItem);
46
- }
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
48
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AddCommandDirective, isStandalone: true, selector: "[kendoTreeListAddCommand]", inputs: { cellContext: ["kendoTreeListAddCommand", "cellContext"] }, host: { properties: { "class.k-grid-add-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
49
- @if (icon || svgIcon) {
50
- <kendo-icon-wrapper
51
- innerCssClass="k-button-icon"
52
- [name]="icon"
53
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
54
- }
55
- @if (imageUrl) {
56
- <span class="k-button-icon k-icon">
57
- <img [src]="imageUrl" class="k-image" role="presentation" />
58
- </span>
59
- }
60
- @if (iconClass) {
61
- <span class="k-button-icon" [ngClass]="iconClass"></span>
62
- }
63
- <span class="k-button-text"><ng-content></ng-content></span>
64
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
65
- }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, decorators: [{
67
- type: Component,
68
- args: [{
69
- selector: '[kendoTreeListAddCommand]',
70
- template: `
71
- @if (icon || svgIcon) {
72
- <kendo-icon-wrapper
73
- innerCssClass="k-button-icon"
74
- [name]="icon"
75
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
76
- }
77
- @if (imageUrl) {
78
- <span class="k-button-icon k-icon">
79
- <img [src]="imageUrl" class="k-image" role="presentation" />
80
- </span>
81
- }
82
- @if (iconClass) {
83
- <span class="k-button-icon" [ngClass]="iconClass"></span>
84
- }
85
- <span class="k-button-text"><ng-content></ng-content></span>
86
- `,
87
- standalone: true,
88
- imports: [IconWrapperComponent, NgClass]
89
- }]
90
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { cellContext: [{
91
- type: Input,
92
- args: ['kendoTreeListAddCommand']
93
- }], commandClass: [{
94
- type: HostBinding,
95
- args: ['class.k-grid-add-command']
96
- }] } });
@@ -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,95 +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 { HostListener, HostBinding, ElementRef, Renderer2, NgZone, Component } from '@angular/core';
6
- import { NgClass } from '@angular/common';
7
- import { Button } from '@progress/kendo-angular-buttons';
8
- import { LocalizationService } from '@progress/kendo-angular-l10n';
9
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
10
- import { EditService } from './edit.service';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./edit.service";
13
- import * as i2 from "@progress/kendo-angular-l10n";
14
- /**
15
- * @hidden
16
- */
17
- export class BaseCommandDirective extends Button {
18
- editService;
19
- /**
20
- * @hidden
21
- */
22
- get visible() {
23
- if (this.cellContext) {
24
- return this.isEdited !== this.readVisible ? '' : 'none';
25
- }
26
- }
27
- get isEdited() {
28
- return Boolean(this.cellContext && this.editService.isEdited(this.dataItem) && !this.editService.isEditingCell());
29
- }
30
- get dataItem() {
31
- if (this.cellContext) {
32
- return this.cellContext.viewItem.data;
33
- }
34
- }
35
- /**
36
- * @hidden
37
- */
38
- clickHandler(e) {
39
- e.preventDefault();
40
- this.onClick();
41
- }
42
- constructor(editService, element, renderer, localization, ngZone) {
43
- super(element, renderer, null, localization, ngZone);
44
- this.editService = editService;
45
- }
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
47
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: BaseCommandDirective, isStandalone: true, selector: "[kendoTreeListBaseCommand]", host: { listeners: { "click": "clickHandler($event)" }, properties: { "style.display": "this.visible" } }, usesInheritance: true, ngImport: i0, template: `
48
- @if (icon || svgIcon) {
49
- <kendo-icon-wrapper
50
- innerCssClass="k-button-icon"
51
- [name]="icon"
52
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
53
- }
54
- @if (imageUrl) {
55
- <span class="k-button-icon k-icon">
56
- <img [src]="imageUrl" class="k-image" role="presentation" />
57
- </span>
58
- }
59
- @if (iconClass) {
60
- <span class="k-button-icon" [ngClass]="iconClass"></span>
61
- }
62
- <span class="k-button-text"><ng-content></ng-content></span>
63
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
64
- }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseCommandDirective, decorators: [{
66
- type: Component,
67
- args: [{
68
- selector: '[kendoTreeListBaseCommand]',
69
- template: `
70
- @if (icon || svgIcon) {
71
- <kendo-icon-wrapper
72
- innerCssClass="k-button-icon"
73
- [name]="icon"
74
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
75
- }
76
- @if (imageUrl) {
77
- <span class="k-button-icon k-icon">
78
- <img [src]="imageUrl" class="k-image" role="presentation" />
79
- </span>
80
- }
81
- @if (iconClass) {
82
- <span class="k-button-icon" [ngClass]="iconClass"></span>
83
- }
84
- <span class="k-button-text"><ng-content></ng-content></span>
85
- `,
86
- standalone: true,
87
- imports: [IconWrapperComponent, NgClass]
88
- }]
89
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { visible: [{
90
- type: HostBinding,
91
- args: ['style.display']
92
- }], clickHandler: [{
93
- type: HostListener,
94
- args: ['click', ['$event']]
95
- }] } });
@@ -1,97 +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, ElementRef, Renderer2, NgZone, HostBinding, Input } from '@angular/core';
6
- import { NgClass } from '@angular/common';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
9
- import { EditService } from './edit.service';
10
- import { BaseCommandDirective } from './base-command.directive';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./edit.service";
13
- import * as i2 from "@progress/kendo-angular-l10n";
14
- /**
15
- * Represents the `cancel` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
16
- *
17
- * When the user clicks a button with this directive, the [`cancel`]({% slug api_treelist_treelistcomponent %}#toc-cancel) event is triggered ([see example](slug:custom_editors_editing_treelist)).
18
- *
19
- * The button with `kendoTreeListCancelCommand` is automatically hidden when the row is not in edit mode. The directive takes the `cellContext` from the cell template as input.
20
- *
21
- * @example
22
- * ```html
23
- * <kendo-treelist ...>
24
- * <kendo-treelist-command-column title="command">
25
- * <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
26
- * <button [kendoTreeListCancelCommand]="cellContext">Cancel changes</button>
27
- * </ng-template>
28
- * </kendo-treelist-command-column>
29
- * </kendo-treelist>
30
- * ```
31
- */
32
- export class CancelCommandDirective extends BaseCommandDirective {
33
- /**
34
- * Provides the `cellContext` to the template.
35
- */
36
- cellContext;
37
- commandClass = true;
38
- readVisible = false;
39
- constructor(editService, element, renderer, localization, ngZone) {
40
- super(editService, element, renderer, localization, ngZone);
41
- }
42
- onClick() {
43
- if (this.cellContext) {
44
- const viewItem = this.cellContext.viewItem;
45
- this.editService.endEdit(viewItem.data, viewItem.isNew);
46
- }
47
- }
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
49
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CancelCommandDirective, isStandalone: true, selector: "[kendoTreeListCancelCommand]", inputs: { cellContext: ["kendoTreeListCancelCommand", "cellContext"] }, host: { properties: { "class.k-grid-cancel-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
50
- @if (icon || svgIcon) {
51
- <kendo-icon-wrapper
52
- innerCssClass="k-button-icon"
53
- [name]="icon"
54
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
55
- }
56
- @if (imageUrl) {
57
- <span class="k-button-icon k-icon">
58
- <img [src]="imageUrl" class="k-image" role="presentation" />
59
- </span>
60
- }
61
- @if (iconClass) {
62
- <span class="k-button-icon" [ngClass]="iconClass"></span>
63
- }
64
- <span class="k-button-text"><ng-content></ng-content></span>
65
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
66
- }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, decorators: [{
68
- type: Component,
69
- args: [{
70
- selector: '[kendoTreeListCancelCommand]',
71
- template: `
72
- @if (icon || svgIcon) {
73
- <kendo-icon-wrapper
74
- innerCssClass="k-button-icon"
75
- [name]="icon"
76
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
77
- }
78
- @if (imageUrl) {
79
- <span class="k-button-icon k-icon">
80
- <img [src]="imageUrl" class="k-image" role="presentation" />
81
- </span>
82
- }
83
- @if (iconClass) {
84
- <span class="k-button-icon" [ngClass]="iconClass"></span>
85
- }
86
- <span class="k-button-text"><ng-content></ng-content></span>
87
- `,
88
- standalone: true,
89
- imports: [IconWrapperComponent, NgClass]
90
- }]
91
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { cellContext: [{
92
- type: Input,
93
- args: ['kendoTreeListCancelCommand']
94
- }], commandClass: [{
95
- type: HostBinding,
96
- args: ['class.k-grid-cancel-command']
97
- }] } });
@@ -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,34 +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 { PreventableEvent } from '../common/preventable-event';
6
- /**
7
- * Provides arguments for the `cellClose` event.
8
- *
9
- */
10
- export class CellCloseEvent extends PreventableEvent {
11
- isNew;
12
- dataItem;
13
- sender;
14
- /**
15
- * @hidden
16
- */
17
- action = 'cellClose';
18
- /**
19
- * Specifies the TreeList column that will be closed.
20
- */
21
- column;
22
- /**
23
- * Provides the [`FormGroup`](link:site.data.urls.angular['formgroupapi']) used to edit the cell that will be closed.
24
- */
25
- formGroup;
26
- /**
27
- * Provides the DOM event that caused the `cellClose` event. May not be present if `cellClose` was caused by an API call.
28
- */
29
- originalEvent;
30
- constructor(options) {
31
- super();
32
- Object.assign(this, options);
33
- }
34
- }