@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,383 +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 } from '@angular/core';
6
- import { ReactiveFormsModule } from '@angular/forms';
7
- import { NgTemplateOutlet } from '@angular/common';
8
- import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, reorderIcon } from '@progress/kendo-svg-icons';
9
- import { LocalizationService } from "@progress/kendo-angular-l10n";
10
- import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
11
- import { CheckBoxComponent, NumericTextBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
12
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
13
- import { EditService } from '../editing/edit.service';
14
- import { isSpanColumn, isCheckboxColumn, isRowReorderColumn } from '../columns/column-base';
15
- import { isColumnComponent } from '../columns/column.component';
16
- import { columnsToRender } from "../columns/column-common";
17
- import { isNullOrEmptyString, extractFormat, isColumnEditable } from '../utils';
18
- import { FocusGroup } from '../navigation/focus-group';
19
- import { LevelItemsPipe } from './common/level-items.pipe';
20
- import { FieldAccessorPipe } from './common/field-accessor.pipe';
21
- import { FocusableDirective } from '../navigation/focusable.directive';
22
- import * as i0 from "@angular/core";
23
- import * as i1 from "../editing/edit.service";
24
- import * as i2 from "@progress/kendo-angular-l10n";
25
- import * as i3 from "../navigation/focus-group";
26
- import * as i4 from "@angular/forms";
27
- /**
28
- * @hidden
29
- */
30
- export class CellComponent {
31
- editService;
32
- localization;
33
- focusGroup;
34
- get commandCellClass() {
35
- return this.column.isCommand;
36
- }
37
- get isCheckboxColumn() {
38
- return isCheckboxColumn(this.column);
39
- }
40
- get textNoWrapClass() {
41
- return this.column.expandable;
42
- }
43
- get dragHandleCellClass() {
44
- return isRowReorderColumn(this.column);
45
- }
46
- get dragRowHandleLabel() {
47
- return isRowReorderColumn(this.column) ? this.localization.get('dragRowHandleLabel') : undefined;
48
- }
49
- column;
50
- columnIndex;
51
- isNew = false;
52
- level = 0;
53
- hasChildren;
54
- isExpanded;
55
- loading;
56
- expandIcons;
57
- rowIndex;
58
- selected;
59
- dataItem;
60
- set viewItem(value) {
61
- this._viewItem = value;
62
- this.cellContext.viewItem = this.viewItem;
63
- }
64
- get viewItem() {
65
- return this._viewItem;
66
- }
67
- get formGroup() {
68
- return this.viewItem.isNew ? this.editService.newItemGroup :
69
- this.viewItem.editContext ? this.viewItem.editContext.group : null;
70
- }
71
- get isEdited() {
72
- return Boolean((this.viewItem.isNew && isColumnEditable(this.column, this.editService.newItemGroup)) ||
73
- (isColumnEditable(this.column, this.formGroup) &&
74
- this.viewItem.editContext &&
75
- this.editService.isEditedColumn(this.column)));
76
- }
77
- get templateContext() {
78
- return this._templateContext;
79
- }
80
- get editTemplateContext() {
81
- this._editTemplateContext.$implicit = this.formGroup;
82
- this._editTemplateContext.cellContext = this.cellContext;
83
- this._editTemplateContext.column = this.column;
84
- this._editTemplateContext.dataItem = this.dataItem;
85
- this._editTemplateContext.formGroup = this.formGroup;
86
- this._editTemplateContext.isNew = this.isNew;
87
- this._editTemplateContext.rowIndex = this.isNew ? -1 : this.rowIndex;
88
- return this._editTemplateContext;
89
- }
90
- get format() {
91
- if (isColumnComponent(this.column) && !isNullOrEmptyString(this.column.format)) {
92
- return extractFormat(this.column.format);
93
- }
94
- return undefined;
95
- }
96
- get isBoundColumn() {
97
- return this.column.field && !this.column.templateRef;
98
- }
99
- get isSpanColumn() {
100
- return isSpanColumn(this.column) && !this.column.templateRef;
101
- }
102
- get childColumns() {
103
- return columnsToRender([this.column]);
104
- }
105
- caretAltDownIcon = caretAltDownIcon;
106
- caretAltRightIcon = caretAltRightIcon;
107
- caretAltLeftIcon = caretAltLeftIcon;
108
- reorderIcon = reorderIcon;
109
- noneIcon = {
110
- name: 'none',
111
- content: '',
112
- viewBox: '0 0 24 24'
113
- };
114
- cellContext = {};
115
- _templateContext = {};
116
- _editTemplateContext = {};
117
- _viewItem;
118
- constructor(editService, localization, focusGroup) {
119
- this.editService = editService;
120
- this.localization = localization;
121
- this.focusGroup = focusGroup;
122
- this.templateContext.cellContext = this.cellContext;
123
- this.cellContext.focusGroup = focusGroup;
124
- }
125
- ngDoCheck() {
126
- this.updateTemplateContext();
127
- }
128
- ngAfterContentChecked() {
129
- this.updateTemplateContext();
130
- }
131
- updateTemplateContext() {
132
- if (!this.column.templateRef) {
133
- return;
134
- }
135
- const context = this._templateContext;
136
- context.$implicit = this.dataItem;
137
- context.column = this.column;
138
- context.columnIndex = this.columnIndex;
139
- context.dataItem = this.dataItem;
140
- context.hasChildren = this.hasChildren;
141
- context.isExpanded = this.isExpanded;
142
- context.isNew = this.isNew;
143
- context.level = this.level;
144
- context.loading = this.loading;
145
- context.rowIndex = this.viewItem.rowIndex;
146
- }
147
- get arrowIcon() {
148
- const icon = !this.isExpanded ?
149
- !this.localization.rtl ?
150
- 'caret-alt-right' :
151
- 'caret-alt-left' :
152
- 'caret-alt-down';
153
- return icon;
154
- }
155
- get arrowSVGIcon() {
156
- const icon = !this.isExpanded ?
157
- !this.localization.rtl ?
158
- this.caretAltRightIcon :
159
- this.caretAltLeftIcon :
160
- this.caretAltDownIcon;
161
- return icon;
162
- }
163
- messageFor(token) {
164
- return this.localization.get(token);
165
- }
166
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.LocalizationService }, { token: i3.FocusGroup }], target: i0.ɵɵFactoryTarget.Component });
167
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CellComponent, isStandalone: true, selector: "[kendoTreeListCell]", inputs: { column: "column", columnIndex: "columnIndex", isNew: "isNew", level: "level", hasChildren: "hasChildren", isExpanded: "isExpanded", loading: "loading", expandIcons: "expandIcons", rowIndex: "rowIndex", selected: "selected", dataItem: "dataItem", viewItem: "viewItem" }, host: { properties: { "class.k-command-cell": "this.commandCellClass", "class.k-checkbox-cell": "this.isCheckboxColumn", "class.k-text-nowrap": "this.textNoWrapClass", "class.k-drag-cell": "this.dragHandleCellClass", "class.k-touch-action-none": "this.dragHandleCellClass", "attr.aria-label": "this.dragRowHandleLabel" } }, ngImport: i0, template: `
168
- @switch (isEdited) {
169
- @case (false) {
170
- @if (column.expandable) {
171
- @for (item of level | levelItems : hasChildren && expandIcons; track $index) {
172
- <kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon"></kendo-icon-wrapper>
173
- }
174
- @if (hasChildren && expandIcons && !loading) {
175
- <kendo-icon-wrapper innerCssClass="k-treelist-toggle"
176
- aria-hidden="true"
177
- [name]="arrowIcon"
178
- [svgIcon]="arrowSVGIcon"></kendo-icon-wrapper>
179
- }
180
- @if (hasChildren && expandIcons && loading) {
181
- <span class="k-icon k-i-loading"></span>
182
- }
183
- }
184
- @if (column.templateRef) {
185
- <ng-container
186
- [ngTemplateOutlet]="column.templateRef"
187
- [ngTemplateOutletContext]="templateContext">
188
- </ng-container>
189
- }
190
- @if (isSpanColumn) {
191
- @for (childColumn of childColumns; track $index) {
192
- {{ dataItem | valueOf: childColumn.field: childColumn.format}}
193
- }
194
- }
195
- @if (isBoundColumn) {{{ dataItem | valueOf: column.field: column.format}}}
196
- @if (column.isCheckboxColumn && !isNew) {
197
- <kendo-checkbox
198
- kendoTreeListFocusable
199
- [inputAttributes]="{'aria-label': messageFor('selectRowCheckboxLabel')}"
200
- [checkedState]="selected"
201
- ></kendo-checkbox>
202
- }
203
- @if (column.isRowReorderColumn && !isNew) {
204
- <kendo-icon-wrapper
205
- name="reorder"
206
- [svgIcon]="reorderIcon">
207
- </kendo-icon-wrapper>
208
- }
209
- }
210
- @case (true) {
211
- @if (column.editTemplateRef) {
212
- <ng-container
213
- [ngTemplateOutlet]="column.editTemplateRef"
214
- [ngTemplateOutletContext]="editTemplateContext">
215
- </ng-container>
216
- }
217
- @if (!column.editTemplateRef) {
218
- @switch (column.editor) {
219
- @case ('numeric') {
220
- <kendo-numerictextbox
221
- [format]="format"
222
- [formControl]="$any(formGroup.get(column.field))"
223
- kendoTreeListFocusable
224
- ></kendo-numerictextbox>
225
- }
226
- @case ('date') {
227
- <kendo-datepicker
228
- [format]="format"
229
- [formControl]="$any(formGroup.get(column.field))"
230
- kendoTreeListFocusable
231
- ></kendo-datepicker>
232
- }
233
- @case ('boolean') {
234
- <kendo-checkbox
235
- [formControl]="$any(formGroup.get(column.field))"
236
- kendoTreeListFocusable
237
- ></kendo-checkbox>
238
- }
239
- @default {
240
- <kendo-textbox
241
- [formControl]="$any(formGroup.get(column.field))"
242
- kendoTreeListFocusable
243
- ></kendo-textbox>
244
- }
245
- }
246
- }
247
- }
248
- }
249
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "component", type: 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: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "pipe", type: LevelItemsPipe, name: "levelItems" }, { 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"] }] });
250
- }
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, decorators: [{
252
- type: Component,
253
- args: [{
254
- selector: '[kendoTreeListCell]',
255
- template: `
256
- @switch (isEdited) {
257
- @case (false) {
258
- @if (column.expandable) {
259
- @for (item of level | levelItems : hasChildren && expandIcons; track $index) {
260
- <kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon"></kendo-icon-wrapper>
261
- }
262
- @if (hasChildren && expandIcons && !loading) {
263
- <kendo-icon-wrapper innerCssClass="k-treelist-toggle"
264
- aria-hidden="true"
265
- [name]="arrowIcon"
266
- [svgIcon]="arrowSVGIcon"></kendo-icon-wrapper>
267
- }
268
- @if (hasChildren && expandIcons && loading) {
269
- <span class="k-icon k-i-loading"></span>
270
- }
271
- }
272
- @if (column.templateRef) {
273
- <ng-container
274
- [ngTemplateOutlet]="column.templateRef"
275
- [ngTemplateOutletContext]="templateContext">
276
- </ng-container>
277
- }
278
- @if (isSpanColumn) {
279
- @for (childColumn of childColumns; track $index) {
280
- {{ dataItem | valueOf: childColumn.field: childColumn.format}}
281
- }
282
- }
283
- @if (isBoundColumn) {{{ dataItem | valueOf: column.field: column.format}}}
284
- @if (column.isCheckboxColumn && !isNew) {
285
- <kendo-checkbox
286
- kendoTreeListFocusable
287
- [inputAttributes]="{'aria-label': messageFor('selectRowCheckboxLabel')}"
288
- [checkedState]="selected"
289
- ></kendo-checkbox>
290
- }
291
- @if (column.isRowReorderColumn && !isNew) {
292
- <kendo-icon-wrapper
293
- name="reorder"
294
- [svgIcon]="reorderIcon">
295
- </kendo-icon-wrapper>
296
- }
297
- }
298
- @case (true) {
299
- @if (column.editTemplateRef) {
300
- <ng-container
301
- [ngTemplateOutlet]="column.editTemplateRef"
302
- [ngTemplateOutletContext]="editTemplateContext">
303
- </ng-container>
304
- }
305
- @if (!column.editTemplateRef) {
306
- @switch (column.editor) {
307
- @case ('numeric') {
308
- <kendo-numerictextbox
309
- [format]="format"
310
- [formControl]="$any(formGroup.get(column.field))"
311
- kendoTreeListFocusable
312
- ></kendo-numerictextbox>
313
- }
314
- @case ('date') {
315
- <kendo-datepicker
316
- [format]="format"
317
- [formControl]="$any(formGroup.get(column.field))"
318
- kendoTreeListFocusable
319
- ></kendo-datepicker>
320
- }
321
- @case ('boolean') {
322
- <kendo-checkbox
323
- [formControl]="$any(formGroup.get(column.field))"
324
- kendoTreeListFocusable
325
- ></kendo-checkbox>
326
- }
327
- @default {
328
- <kendo-textbox
329
- [formControl]="$any(formGroup.get(column.field))"
330
- kendoTreeListFocusable
331
- ></kendo-textbox>
332
- }
333
- }
334
- }
335
- }
336
- }
337
- `,
338
- standalone: true,
339
- imports: [IconWrapperComponent, NgTemplateOutlet, FocusableDirective, NumericTextBoxComponent, ReactiveFormsModule, DatePickerComponent, FieldAccessorPipe, LevelItemsPipe, CheckBoxComponent, TextBoxComponent]
340
- }]
341
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i2.LocalizationService }, { type: i3.FocusGroup }], propDecorators: { commandCellClass: [{
342
- type: HostBinding,
343
- args: ['class.k-command-cell']
344
- }], isCheckboxColumn: [{
345
- type: HostBinding,
346
- args: ['class.k-checkbox-cell']
347
- }], textNoWrapClass: [{
348
- type: HostBinding,
349
- args: ['class.k-text-nowrap']
350
- }], dragHandleCellClass: [{
351
- type: HostBinding,
352
- args: ['class.k-drag-cell']
353
- }, {
354
- type: HostBinding,
355
- args: ['class.k-touch-action-none']
356
- }], dragRowHandleLabel: [{
357
- type: HostBinding,
358
- args: ['attr.aria-label']
359
- }], column: [{
360
- type: Input
361
- }], columnIndex: [{
362
- type: Input
363
- }], isNew: [{
364
- type: Input
365
- }], level: [{
366
- type: Input
367
- }], hasChildren: [{
368
- type: Input
369
- }], isExpanded: [{
370
- type: Input
371
- }], loading: [{
372
- type: Input
373
- }], expandIcons: [{
374
- type: Input
375
- }], rowIndex: [{
376
- type: Input
377
- }], selected: [{
378
- type: Input
379
- }], dataItem: [{
380
- type: Input
381
- }], viewItem: [{
382
- type: Input
383
- }] } });
@@ -1,39 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, Input } from '@angular/core';
6
- import { columnsToRender } from '../../columns/column-common';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class ColGroupComponent {
12
- columns = [];
13
- get columnsToRender() {
14
- return columnsToRender(this.columns);
15
- }
16
- trackBy(index, _item) {
17
- return index;
18
- }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColGroupComponent, isStandalone: true, selector: "[kendoTreeListColGroup]", inputs: { columns: "columns" }, ngImport: i0, template: `
21
- @for (column of columnsToRender; track trackBy($index, column)) {
22
- <col [style.width.px]="column.width"/>
23
- }
24
- `, isInline: true });
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColGroupComponent, decorators: [{
27
- type: Component,
28
- args: [{
29
- selector: '[kendoTreeListColGroup]',
30
- template: `
31
- @for (column of columnsToRender; track trackBy($index, column)) {
32
- <col [style.width.px]="column.width"/>
33
- }
34
- `,
35
- standalone: true
36
- }]
37
- }], propDecorators: { columns: [{
38
- type: Input
39
- }] } });
@@ -1,158 +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
- const focusableRegex = /^(?:a|input|select|option|textarea|button|object)$/i;
6
- const NODE_NAME_PREDICATES = {};
7
- const toClassList = (classNames) => String(classNames).trim().split(' ');
8
- /**
9
- * @hidden
10
- */
11
- export const hasClasses = (element, classNames) => {
12
- const namesList = toClassList(classNames);
13
- return Boolean(toClassList(element.className).find((className) => namesList.indexOf(className) >= 0));
14
- };
15
- /**
16
- * @hidden
17
- */
18
- export const matchesClasses = (classNames) => (element) => hasClasses(element, classNames);
19
- /**
20
- * @hidden
21
- */
22
- export const matchesNodeName = (nodeName) => {
23
- if (!NODE_NAME_PREDICATES[nodeName]) {
24
- NODE_NAME_PREDICATES[nodeName] = (element) => String(element.nodeName).toLowerCase() === nodeName.toLowerCase();
25
- }
26
- return NODE_NAME_PREDICATES[nodeName];
27
- };
28
- /**
29
- * @hidden
30
- */
31
- export const closest = (node, predicate) => {
32
- while (node && !predicate(node)) {
33
- node = node.parentNode;
34
- }
35
- return node;
36
- };
37
- /**
38
- * @hidden
39
- */
40
- export const closestInScope = (node, predicate, scope) => {
41
- while (node && node !== scope && !predicate(node)) {
42
- node = node.parentNode;
43
- }
44
- if (node !== scope) {
45
- return node;
46
- }
47
- };
48
- /**
49
- * @hidden
50
- */
51
- export const contains = (parent, node, matchSelf = false) => {
52
- const outside = !closest(node, (child) => child === parent);
53
- if (outside) {
54
- return false;
55
- }
56
- const el = closest(node, (child) => child === node);
57
- return el && (matchSelf || el !== parent);
58
- };
59
- /**
60
- * @hidden
61
- */
62
- export const isVisible = (element) => {
63
- const rect = element.getBoundingClientRect();
64
- const hasSize = rect.width > 0 && rect.height > 0;
65
- const hasPosition = rect.x !== 0 && rect.y !== 0;
66
- // Elements can have zero size due to styling, but they will still count as visible.
67
- // For example, the selection checkbox has no size, but is made visible through styling.
68
- return (hasSize || hasPosition) && window.getComputedStyle(element).visibility !== 'hidden';
69
- };
70
- /**
71
- * @hidden
72
- */
73
- export const isFocusable = (element) => {
74
- if (!element.tagName) {
75
- return false;
76
- }
77
- const tagName = element.tagName.toLowerCase();
78
- const hasTabIndex = Boolean(element.getAttribute('tabIndex'));
79
- const focusable = !element.disabled && focusableRegex.test(tagName);
80
- return focusable || hasTabIndex;
81
- };
82
- /**
83
- * @hidden
84
- */
85
- export const isFocusableWithTabKey = (element, checkVisibility = true) => {
86
- if (!isFocusable(element)) {
87
- return false;
88
- }
89
- const tabIndex = element.getAttribute('tabIndex');
90
- const ariaHidden = element.getAttribute('aria-hidden') === 'true';
91
- const visible = !checkVisibility || isVisible(element);
92
- return visible && !ariaHidden && tabIndex !== '-1';
93
- };
94
- /**
95
- * @hidden
96
- */
97
- export const findElement = (node, predicate, matchSelf = true) => {
98
- if (!node) {
99
- return;
100
- }
101
- if (matchSelf && predicate(node)) {
102
- return node;
103
- }
104
- node = node.firstChild;
105
- while (node) {
106
- if (node.nodeType === 1) {
107
- const element = findElement(node, predicate);
108
- if (element) {
109
- return element;
110
- }
111
- }
112
- node = node.nextSibling;
113
- }
114
- };
115
- /**
116
- * @hidden
117
- */
118
- export const findLastElement = (node, predicate, matchSelf = true) => {
119
- let last = null;
120
- findElement(node, (node) => {
121
- if (predicate(node)) {
122
- last = node;
123
- }
124
- return false;
125
- }, matchSelf);
126
- return last;
127
- };
128
- /**
129
- * @hidden
130
- */
131
- export const findFocusable = (element, checkVisibility = true) => {
132
- return findElement(element, (node) => isFocusableWithTabKey(node, checkVisibility));
133
- };
134
- /**
135
- * @hidden
136
- */
137
- export const findFocusableChild = (element, checkVisibility = true) => {
138
- return findElement(element, (node) => isFocusableWithTabKey(node, checkVisibility), false);
139
- };
140
- /**
141
- * @hidden
142
- */
143
- export const findLastFocusableChild = (element, checkVisibility = true) => {
144
- return findLastElement(element, (node) => isFocusableWithTabKey(node, checkVisibility), false);
145
- };
146
- /**
147
- * @hidden
148
- */
149
- export function rtlScrollPosition(position, element, initial) {
150
- let result = position;
151
- if (initial < 0) {
152
- result = -position;
153
- }
154
- else if (initial > 0) {
155
- result = element.scrollWidth - element.offsetWidth - position;
156
- }
157
- return result;
158
- }
@@ -1,48 +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 { Pipe } from '@angular/core';
6
- import { getter } from '@progress/kendo-common';
7
- import { isString, isNullOrEmptyString } from '../../utils';
8
- import { IntlService } from '@progress/kendo-angular-intl';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@progress/kendo-angular-intl";
11
- const FORMAT_REGEX = /\{\d+:?/;
12
- /**
13
- * @hidden
14
- */
15
- export class FieldAccessorPipe {
16
- intlService;
17
- constructor(intlService) {
18
- this.intlService = intlService;
19
- }
20
- transform(dataItem, fieldName, format) {
21
- if (!isNullOrEmptyString(fieldName)) {
22
- const value = getter(fieldName)(dataItem);
23
- if (!isNullOrEmptyString(format)) {
24
- return this.formatValue(format, value);
25
- }
26
- return value;
27
- }
28
- return dataItem;
29
- }
30
- formatValue(format, value) {
31
- const intl = this.intlService;
32
- if (isString(format) && format.match(FORMAT_REGEX)) {
33
- return intl.format(format, value);
34
- }
35
- return intl.toString(value, format);
36
- }
37
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldAccessorPipe, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
38
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: FieldAccessorPipe, isStandalone: true, name: "valueOf", pure: false });
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldAccessorPipe, decorators: [{
41
- type: Pipe,
42
- args: [{
43
- // eslint-disable-next-line @angular-eslint/pipe-prefix
44
- name: 'valueOf',
45
- pure: false,
46
- standalone: true
47
- }]
48
- }], ctorParameters: () => [{ type: i1.IntlService }] });
@@ -1,30 +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
- /* eslint-disable @angular-eslint/pipe-prefix */
6
- import { Pipe } from '@angular/core';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class LevelItemsPipe {
12
- transform(level, hasChildren) {
13
- const result = [];
14
- const count = level + 1 - (hasChildren ? 1 : 0);
15
- for (let idx = 0; idx < count; idx++) {
16
- result.push(idx);
17
- }
18
- return result;
19
- }
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LevelItemsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: LevelItemsPipe, isStandalone: true, name: "levelItems" });
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LevelItemsPipe, decorators: [{
24
- type: Pipe,
25
- args: [{
26
- name: 'levelItems',
27
- pure: true,
28
- standalone: true
29
- }]
30
- }] });