@tectra-ng/ui 0.4.1 → 0.4.2

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 (178) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/README.md +1 -1
  3. package/avatar/README.md +1 -1
  4. package/breadcrumb/README.md +1 -1
  5. package/carousel/README.md +7 -0
  6. package/color-swatches/README.md +53 -0
  7. package/data-view/README.md +8 -0
  8. package/fesm2022/tectra-ng-ui-autocomplete.mjs +17 -6
  9. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-avatar.mjs +11 -4
  11. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +5 -5
  13. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-card.mjs +4 -2
  15. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-carousel.mjs +21 -2
  17. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  19. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-checkbox.mjs +7 -4
  21. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-chips-input.mjs +5 -2
  23. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  25. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-color-swatches.mjs +378 -0
  27. package/fesm2022/tectra-ng-ui-color-swatches.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-ui-country-select.mjs +4 -2
  29. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-data-view.mjs +50 -7
  31. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-datepicker.mjs +12 -0
  33. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-dialog.mjs +7 -2
  35. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-export.mjs +5 -1
  37. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-file-upload.mjs +44 -30
  39. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-galleria.mjs +63 -6
  41. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-image.mjs +6 -2
  43. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-knob.mjs +3 -0
  47. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-list-input.mjs +2 -2
  49. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-menu.mjs +110 -10
  51. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-message.mjs +61 -18
  53. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-multiselect.mjs +14 -6
  55. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-paginator.mjs +8 -2
  57. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-panel-menu.mjs +15 -8
  59. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  60. package/fesm2022/tectra-ng-ui-panel.mjs +2 -0
  61. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
  62. package/fesm2022/tectra-ng-ui-password.mjs +9 -0
  63. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
  64. package/fesm2022/tectra-ng-ui-popover.mjs +16 -9
  65. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -1
  66. package/fesm2022/tectra-ng-ui-progress-bar.mjs +3 -0
  67. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -1
  68. package/fesm2022/tectra-ng-ui-radio-button.mjs +28 -8
  69. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-rating.mjs +6 -0
  71. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
  72. package/fesm2022/tectra-ng-ui-select.mjs +193 -10
  73. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  74. package/fesm2022/tectra-ng-ui-split-button.mjs +6 -3
  75. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
  76. package/fesm2022/tectra-ng-ui-table.mjs +245 -49
  77. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  78. package/fesm2022/tectra-ng-ui-tabs.mjs +10 -7
  79. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  80. package/fesm2022/tectra-ng-ui-timeline.mjs +87 -10
  81. package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -1
  82. package/fesm2022/tectra-ng-ui-toast.mjs +24 -7
  83. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  84. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +7 -4
  85. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  86. package/fesm2022/tectra-ng-ui-tooltip.mjs +5 -4
  87. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  88. package/fesm2022/tectra-ng-ui-tree-select.mjs +14 -6
  89. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  90. package/fesm2022/tectra-ng-ui-tree-table.mjs +3 -1
  91. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  92. package/fesm2022/tectra-ng-ui-tree.mjs +47 -14
  93. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  94. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +45 -4
  95. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  96. package/fesm2022/tectra-ng-ui.mjs +1 -1
  97. package/file-upload/README.md +2 -1
  98. package/galleria/README.md +9 -0
  99. package/menu/README.md +10 -2
  100. package/message/README.md +4 -3
  101. package/multiselect/README.md +1 -1
  102. package/package.json +8 -4
  103. package/popover/README.md +2 -2
  104. package/select/README.md +9 -0
  105. package/split-button/README.md +1 -1
  106. package/table/README.md +15 -2
  107. package/tabs/README.md +1 -1
  108. package/timeline/README.md +10 -2
  109. package/tree/README.md +7 -0
  110. package/tree-select/README.md +1 -1
  111. package/types/tectra-ng-ui-autocomplete.d.ts +2 -1
  112. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-avatar.d.ts +4 -2
  114. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-breadcrumb.d.ts +3 -3
  116. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  117. package/types/tectra-ng-ui-carousel.d.ts +14 -5
  118. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-checkbox.d.ts +1 -0
  120. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-chips-input.d.ts +1 -0
  122. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-color-swatches.d.ts +141 -0
  124. package/types/tectra-ng-ui-color-swatches.d.ts.map +1 -0
  125. package/types/tectra-ng-ui-data-view.d.ts +31 -12
  126. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  127. package/types/tectra-ng-ui-datepicker.d.ts +6 -0
  128. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  129. package/types/tectra-ng-ui-dialog.d.ts +1 -0
  130. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-file-upload.d.ts +10 -7
  132. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-galleria.d.ts +42 -15
  134. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  135. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  136. package/types/tectra-ng-ui-knob.d.ts +1 -0
  137. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  138. package/types/tectra-ng-ui-menu.d.ts +35 -12
  139. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  140. package/types/tectra-ng-ui-message.d.ts +15 -6
  141. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  142. package/types/tectra-ng-ui-multiselect.d.ts +2 -2
  143. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  144. package/types/tectra-ng-ui-paginator.d.ts +2 -0
  145. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  146. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  147. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  148. package/types/tectra-ng-ui-password.d.ts +3 -0
  149. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  150. package/types/tectra-ng-ui-popover.d.ts +4 -2
  151. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  152. package/types/tectra-ng-ui-progress-bar.d.ts +1 -0
  153. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  154. package/types/tectra-ng-ui-radio-button.d.ts +3 -1
  155. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  156. package/types/tectra-ng-ui-rating.d.ts +2 -0
  157. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  158. package/types/tectra-ng-ui-select.d.ts +85 -20
  159. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  160. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  161. package/types/tectra-ng-ui-table.d.ts +121 -46
  162. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-tabs.d.ts +6 -4
  164. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-timeline.d.ts +46 -9
  166. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-toast.d.ts +3 -0
  168. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-toggle-switch.d.ts +1 -0
  170. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  171. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  172. package/types/tectra-ng-ui-tree-select.d.ts +1 -1
  173. package/types/tectra-ng-ui-tree.d.ts +18 -7
  174. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-virtual-scroller.d.ts +29 -10
  176. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  177. package/types/tectra-ng-ui.d.ts +1 -1
  178. package/virtual-scroller/README.md +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tree.mjs","names":[],"sources":["../../../../packages/ui/tree/src/tree-drag.service.ts","../../../../packages/ui/tree/src/tree.templates.ts","../../../../packages/ui/tree/src/tree.utils.ts","../../../../packages/ui/tree/src/tree.icons.ts","../../../../packages/ui/tree/src/tree.theme.ts","../../../../packages/ui/tree/src/tree.component.ts","../../../../packages/ui/tree/src/tree.component.html"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\nimport { TxTreeNode, TxTreeScope } from './tree.types';\n\n/** A tree that can give up a node dragged out of it into another tree. */\nexport interface TxTreeDragSource {\n /** Removes the node with the key from this tree after it was dropped elsewhere. */\n removeDraggedNode(key: string): void;\n}\n\n/** The drag in progress: the node, its scope and the tree it comes from. */\nexport interface TxTreeDragState {\n /** The dragged node. */\n node: TxTreeNode;\n /** Scope of the dragged node, matched against `droppableScope` of the target tree. */\n scope: TxTreeScope;\n /** The tree the node is dragged from. */\n source: TxTreeDragSource;\n}\n\n/** Shares the running drag between trees, so a node can move from one `tx-tree` to another. */\n@Injectable({ providedIn: 'root' })\nexport class TxTreeDragService {\n /** Signal of the running drag; `null` when nothing is dragged. */\n readonly state = signal<TxTreeDragState | null>(null);\n\n /** Records that a drag began. */\n start(state: TxTreeDragState): void {\n this.state.set(state);\n }\n\n /** Records that the drag ended. */\n stop(): void {\n this.state.set(null);\n }\n}\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\nimport { TxTreeCheckboxIconContext, TxTreeFilterContext, TxTreeNodeContext, TxTreeToggleIconContext } from './tree.types';\n\n@Directive({ selector: 'ng-template[txTreeNode]' })\nexport class TxTreeNodeTemplate {\n readonly templateRef = inject<TemplateRef<TxTreeNodeContext>>(TemplateRef);\n readonly txTreeNode = input<string>('');\n}\n\n@Directive({ selector: 'ng-template[txTreeHeader]' })\nexport class TxTreeHeader {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeFooter]' })\nexport class TxTreeFooter {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeEmpty]' })\nexport class TxTreeEmpty {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeLoading]' })\nexport class TxTreeLoading {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeFilter]' })\nexport class TxTreeFilter {\n readonly templateRef = inject<TemplateRef<TxTreeFilterContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeToggleIcon]' })\nexport class TxTreeToggleIcon {\n readonly templateRef = inject<TemplateRef<TxTreeToggleIconContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeCheckboxIcon]' })\nexport class TxTreeCheckboxIcon {\n readonly templateRef = inject<TemplateRef<TxTreeCheckboxIconContext>>(TemplateRef);\n}\n","import { foldText, readOptionField } from '@tectra-ng/ui/select';\nimport { TxTreeDropPosition, TxTreeFilterMode, TxTreeNode, TxTreeScope } from './tree.types';\n\n/** Visits every node depth-first with its parent (`null` at the top). */\nexport function walkTree<T = unknown>(\n nodes: readonly TxTreeNode<T>[],\n visit: (node: TxTreeNode<T>, parent: TxTreeNode<T> | null) => void,\n parent: TxTreeNode<T> | null = null,\n): void {\n for (const node of nodes) {\n visit(node, parent);\n walkTree(node.children ?? [], visit, node);\n }\n}\n\n/** Finds the node with the key anywhere in the tree, or `null`. */\nexport function findNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T> | null {\n let found: TxTreeNode<T> | null = null;\n walkTree(nodes, (node) => {\n if (!found && node.key === key) {\n found = node;\n }\n });\n return found;\n}\n\n/** Keys of all selectable, enabled descendants of the node. */\nexport function descendantKeys(node: TxTreeNode): string[] {\n const keys: string[] = [];\n walkTree(node.children ?? [], (child) => {\n if (!child.disabled && child.selectable !== false) {\n keys.push(child.key);\n }\n });\n return keys;\n}\n\n/** Maps the key of every node to its parent node (`null` at the top). */\nexport function parentMap<T = unknown>(nodes: readonly TxTreeNode<T>[]): Map<string, TxTreeNode<T> | null> {\n const parents = new Map<string, TxTreeNode<T> | null>();\n walkTree(nodes, (node, parent) => parents.set(node.key, parent));\n return parents;\n}\n\n/**\n * Settles checked keys so a branch is checked exactly when all its selectable children are;\n * returns them in tree order.\n */\nexport function normalizeChecked(nodes: readonly TxTreeNode[], keys: readonly string[]): string[] {\n const checked = new Set(keys);\n const settle = (node: TxTreeNode): boolean => {\n const children = (node.children ?? []).filter((child) => !child.disabled && child.selectable !== false);\n if (!children.length) {\n return checked.has(node.key);\n }\n const all = children.map(settle).every(Boolean);\n if (all) {\n checked.add(node.key);\n } else {\n checked.delete(node.key);\n }\n return all;\n };\n nodes.forEach(settle);\n const order: string[] = [];\n walkTree(nodes, (node) => checked.has(node.key) && order.push(node.key));\n return order;\n}\n\n/** Whether the node has no children and is not marked `leaf: false`. */\nexport function isLeafNode(node: TxTreeNode): boolean {\n return node.leaf === false ? false : !node.children?.length;\n}\n\n/** Whether any of the node fields contains the already folded query. */\nexport function nodeMatches(node: TxTreeNode, query: string, fields: readonly string[]): boolean {\n return fields.some((field) => foldText(String(readOptionField(node, field) ?? '')).includes(query));\n}\n\n/** Keeps the nodes that match the query in any of the fields; the mode decides what stays under a match. */\nexport function filterTree<T = unknown>(nodes: readonly TxTreeNode<T>[], query: string, fields: readonly string[], mode: TxTreeFilterMode = 'lenient'): TxTreeNode<T>[] {\n const folded = foldText(query.trim());\n if (!folded) {\n return [...nodes];\n }\n const visit = (node: TxTreeNode<T>): TxTreeNode<T> | null => {\n const own = nodeMatches(node, folded, fields);\n const children = node.children ?? [];\n if (own && (mode === 'lenient' || !children.length)) {\n return node;\n }\n const kept = children.map(visit).filter((child): child is TxTreeNode<T> => child !== null);\n if (kept.length) {\n return { ...node, children: kept };\n }\n return own ? { ...node, children: [] } : null;\n };\n return nodes.map(visit).filter((node): node is TxTreeNode<T> => node !== null);\n}\n\n/** Keys of all nodes that have children. */\nexport function branchKeys(nodes: readonly TxTreeNode[]): string[] {\n const keys: string[] = [];\n walkTree(nodes, (node) => {\n if (node.children?.length) {\n keys.push(node.key);\n }\n });\n return keys;\n}\n\n/** Whether the node with `key` is somewhere below the node with `ancestorKey`. */\nexport function isDescendantOf(nodes: readonly TxTreeNode[], ancestorKey: string, key: string): boolean {\n const ancestor = findNode(nodes, ancestorKey);\n if (!ancestor) {\n return false;\n }\n let found = false;\n walkTree(ancestor.children ?? [], (node) => {\n if (node.key === key) {\n found = true;\n }\n });\n return found;\n}\n\n/** Returns the tree without the node with the key; the input is not changed. */\nexport function removeNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T>[] {\n return nodes\n .filter((node) => node.key !== key)\n .map((node) => {\n if (!node.children?.length) {\n return node;\n }\n const children = removeNode(node.children, key);\n return children.length === node.children.length && children.every((child, index) => child === node.children?.[index]) ? node : { ...node, children };\n });\n}\n\n/**\n * Returns the tree with the node added before, after or inside the target; `null` as target\n * appends at the top.\n */\nexport function insertNode<T = unknown>(\n nodes: readonly TxTreeNode<T>[],\n node: TxTreeNode<T>,\n targetKey: string | null,\n position: TxTreeDropPosition,\n): TxTreeNode<T>[] {\n if (targetKey === null) {\n return [...nodes, node];\n }\n const index = nodes.findIndex((item) => item.key === targetKey);\n if (index >= 0) {\n if (position === 'inside') {\n const target = nodes[index];\n const result = [...nodes];\n result[index] = { ...target, children: [...(target.children ?? []), node] };\n return result;\n }\n const result = [...nodes];\n result.splice(position === 'before' ? index : index + 1, 0, node);\n return result;\n }\n return nodes.map((item) => (item.children?.length ? { ...item, children: insertNode(item.children, node, targetKey, position) } : item));\n}\n\n/**\n * Returns the tree with the node moved next to or into the target; a move into itself or its\n * own branch changes nothing.\n */\nexport function moveNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string, targetKey: string | null, position: TxTreeDropPosition): TxTreeNode<T>[] {\n const node = findNode(nodes, key);\n if (!node || key === targetKey || (targetKey !== null && isDescendantOf(nodes, key, targetKey))) {\n return [...nodes];\n }\n return insertNode(removeNode(nodes, key), node, targetKey, position);\n}\n\n/** Nodes on the same level as the node with the key, itself included. */\nexport function siblingsOf<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): readonly TxTreeNode<T>[] {\n const parent = parentMap(nodes).get(key);\n return parent ? (parent.children ?? []) : nodes;\n}\n\n/** Whether a tree with `dropScope` accepts a node of `dragScope`; an empty drop scope accepts any. */\nexport function scopesMatch(dragScope: TxTreeScope, dropScope: TxTreeScope): boolean {\n if (dropScope === null || dropScope === undefined) {\n return true;\n }\n if (dragScope === null || dragScope === undefined) {\n return false;\n }\n const drag = typeof dragScope === 'string' ? [dragScope] : dragScope;\n const drop = typeof dropScope === 'string' ? [dropScope] : dropScope;\n return drag.some((scope) => drop.includes(scope));\n}\n","import { TxIconSet, txIconCheck, txIconChevronRight, txIconFilter, txIconList, txIconMinus, txIconSearch, txIconSpinner } from '@tectra-ng/icons';\n\nexport const TREE_ICON_DEFAULTS: TxIconSet = {\n check: txIconCheck,\n 'chevron-right': txIconChevronRight,\n filter: txIconFilter,\n list: txIconList,\n minus: txIconMinus,\n search: txIconSearch,\n spinner: txIconSpinner,\n};\n","import { checkboxTokens, iconTokens, treeTokens } from '@tectra-ng/themes';\n\nexport const TREE_THEME = {\n checkbox: checkboxTokens,\n icon: iconTokens,\n tree: treeTokens,\n};\n","import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { TxTypeahead, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTreeTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxIconField, TxInputIcon } from '@tectra-ng/ui/icon-field';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxMenu, TxMenuItem } from '@tectra-ng/ui/menu';\nimport { TxTreeDragService, TxTreeDragSource } from './tree-drag.service';\nimport { TxTreeCheckboxIcon, TxTreeEmpty, TxTreeFilter, TxTreeFooter, TxTreeHeader, TxTreeLoading, TxTreeNodeTemplate, TxTreeToggleIcon } from './tree.templates';\nimport {\n TxTreeDropPosition,\n TxTreeFilterContext,\n TxTreeFilterEvent,\n TxTreeFilterMode,\n TxTreeLoadingMode,\n TxTreeNode,\n TxTreeNodeContext,\n TxTreeNodeDropEvent,\n TxTreeNodeEvent,\n TxTreePart,\n TxTreeScope,\n TxTreeSelection,\n TxTreeSelectionMode,\n} from './tree.types';\nimport {\n branchKeys,\n descendantKeys,\n filterTree,\n findNode,\n insertNode,\n isDescendantOf,\n isLeafNode,\n moveNode,\n normalizeChecked,\n removeNode,\n scopesMatch,\n siblingsOf,\n walkTree,\n} from './tree.utils';\nimport { TREE_ICON_DEFAULTS } from './tree.icons';\nimport { TREE_THEME } from './tree.theme';\n\n/** One rendered node of `tx-tree` with the state the template needs. */\nexport interface TxTreeRow<T = unknown> {\n /** DOM id of the node element. */\n id: string;\n /** The node data. */\n node: TxTreeNode<T>;\n /** Depth of the node, the first level is 1. */\n level: number;\n /** Number of siblings on this level, for `aria-setsize`. */\n setSize: number;\n /** Position among the siblings from 1, for `aria-posinset`. */\n posInSet: number;\n /** Key of the parent node; `null` at the top. */\n parentKey: string | null;\n /** Whether the node has no children to show. */\n leaf: boolean;\n /** Whether the node is open. */\n expanded: boolean;\n /** Whether the node is loading its children. */\n loading: boolean;\n /** Whether the node is selected. */\n selected: boolean;\n /** Whether the node is checked. */\n checked: boolean;\n /** Whether some, not all, descendants are checked. */\n partial: boolean;\n /** Whether the node can be selected or checked. */\n selectable: boolean;\n /** Whether the node can be dragged. */\n draggable: boolean;\n /** Icon shown for the node in its current state; `null` for none. */\n icon: TxIconName | null;\n /** Rows of the child nodes that are rendered. */\n children: TxTreeRow<T>[];\n}\n\n/** Where a drag would land now. */\ninterface TxTreeDropTarget {\n /** Key of the target node; `null` for the empty root. */\n key: string | null;\n /** Where the node lands relative to the target. */\n position: TxTreeDropPosition;\n}\n\n/**\n * A hierarchy as a WAI-ARIA tree: open, select, check, search, load lazily, drag and drop,\n * and a context menu.\n */\n@Component({\n selector: 'tx-tree',\n imports: [NgTemplateOutlet, TxIcon, TxIconField, TxInputIcon, TxInput, TxMenu],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tree',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-tree--loading]': 'loading()',\n '[class.tx-tree--scrollable]': 'scrollHeight() === \"flex\"',\n },\n viewProviders: [provideTxIconDefaults(TREE_ICON_DEFAULTS)],\n})\nexport class TxTree<T = unknown> implements TxTreeDragSource {\n private readonly treeTheme = injectTokens(TREE_THEME);\n\n readonly value = model<TxTreeNode<T>[]>([]);\n readonly selectionMode = input<TxTreeSelectionMode | null | undefined>(undefined);\n readonly selection = model<TxTreeSelection<T>>(null);\n readonly expandedKeys = model<string[]>([]);\n readonly metaKeySelection = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly propagateSelectionUp = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly propagateSelectionDown = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly highlightOnSelect = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly contextMenu = input<TxMenuItem[] | null | undefined>(undefined);\n readonly contextMenuSelection = model<TxTreeNode<T> | null>(null);\n readonly draggableNodes = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly droppableNodes = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly draggableScope = input<TxTreeScope>(undefined);\n readonly droppableScope = input<TxTreeScope>(undefined);\n readonly validateDrop = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingMode = input<TxTreeLoadingMode>('mask');\n readonly loadingIcon = input<TxIconName>('spinner');\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly filter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filterBy = input('label');\n readonly filterMode = input<TxTreeFilterMode>('lenient');\n readonly filterPlaceholder = input<string | undefined>(undefined);\n readonly filterInputAutoFocus = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly scrollHeight = input<string | undefined>(undefined);\n readonly virtualScroll = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly virtualScrollItemSize = input(30, { transform: numberAttribute });\n readonly virtualScrollTolerance = input(10, { transform: numberAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTreeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTreePart, TxTree<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly nodeSelect = output<TxTreeNodeEvent<T>>();\n readonly nodeUnselect = output<TxTreeNodeEvent<T>>();\n readonly nodeExpand = output<TxTreeNodeEvent<T>>();\n readonly nodeCollapse = output<TxTreeNodeEvent<T>>();\n readonly nodeContextMenuSelect = output<TxTreeNodeEvent<T>>();\n readonly nodeDoubleClick = output<TxTreeNodeEvent<T>>();\n readonly nodeDrop = output<TxTreeNodeDropEvent<T>>();\n readonly filtered = output<TxTreeFilterEvent<T>>();\n\n readonly nodeTemplates = contentChildren(TxTreeNodeTemplate);\n readonly headerTemplate = contentChild(TxTreeHeader);\n readonly footerTemplate = contentChild(TxTreeFooter);\n readonly emptyTemplate = contentChild(TxTreeEmpty);\n readonly loadingTemplate = contentChild(TxTreeLoading);\n readonly filterTemplate = contentChild(TxTreeFilter);\n readonly toggleIconTemplate = contentChild(TxTreeToggleIcon);\n readonly checkboxIconTemplate = contentChild(TxTreeCheckboxIcon);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly dragService = inject(TxTreeDragService);\n private readonly typeahead = new TxTypeahead();\n private readonly menu = viewChild<TxMenu>('nodeMenu');\n private readonly wrapper = viewChild<ElementRef<HTMLElement>>('wrapper');\n private readonly filterInput = viewChild<ElementRef<HTMLInputElement>>('filterInput');\n private readonly seenKeys = new Set<string>();\n private anchor: HTMLElement | null = null;\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tree', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tree'), ...this.passThrough().root?.style }));\n readonly treeId = uniqueId('tx-tree');\n\n readonly query = signal('');\n readonly focusedKey = signal<string | null>(null);\n readonly pendingKeys = signal<ReadonlySet<string>>(new Set());\n readonly mountedKeys = signal<ReadonlySet<string>>(new Set());\n readonly draggingKey = signal<string | null>(null);\n readonly dropTarget = signal<TxTreeDropTarget | null>(null);\n readonly menuOpen = signal(false);\n readonly menuItems = signal<TxMenuItem[]>([]);\n readonly scrollTop = signal(0);\n readonly viewportHeight = signal(0);\n\n readonly filtering = computed(() => this.filter() && this.query().trim().length > 0);\n readonly filterFields = computed(() =>\n this.filterBy()\n .split(',')\n .map((field) => field.trim())\n .filter(Boolean),\n );\n readonly filteredValue = computed(() => (this.filtering() ? filterTree(this.value(), this.query(), this.filterFields(), this.filterMode()) : this.value()));\n readonly filterExpanded = linkedSignal<ReadonlySet<string>>(() => new Set(this.filtering() ? branchKeys(this.filteredValue()) : []));\n readonly expandedSet = computed<ReadonlySet<string>>(() => (this.filtering() ? this.filterExpanded() : new Set(this.expandedKeys())));\n readonly selectedKeys = computed<ReadonlySet<string>>(() => {\n const selection = this.selection();\n if (!selection) return new Set();\n return new Set((Array.isArray(selection) ? selection : [selection]).map((node) => node.key));\n });\n readonly templatesByType = computed(() => new Map(this.nodeTemplates().map((template) => [template.txTreeNode(), template.templateRef])));\n readonly multiselectable = computed(() => this.selectionMode() === 'multiple' || this.selectionMode() === 'checkbox');\n readonly checkboxMode = computed(() => this.selectionMode() === 'checkbox');\n\n readonly tree = computed<TxTreeRow<T>[]>(() => {\n const expanded = this.expandedSet();\n const mounted = this.virtualScroll() ? new Set<string>() : this.mountedKeys();\n const selected = this.selectedKeys();\n const pending = this.pendingKeys();\n const checkbox = this.checkboxMode();\n const up = this.propagateSelectionUp();\n const draggable = this.draggableNodes();\n const build = (nodes: readonly TxTreeNode<T>[], level: number, parentKey: string | null): TxTreeRow<T>[] =>\n nodes.map((node, index) => {\n const leaf = isLeafNode(node);\n const open = !leaf && expanded.has(node.key);\n const children = (open || mounted.has(node.key)) && node.children?.length ? build(node.children, level + 1, node.key) : [];\n const checked = selected.has(node.key);\n const icon = (open ? node.expandedIcon : node.collapsedIcon) ?? node.icon ?? null;\n return {\n id: `${this.treeId}-${node.key}`,\n node,\n level,\n setSize: nodes.length,\n posInSet: index + 1,\n parentKey,\n leaf,\n expanded: open,\n loading: !!node.loading || (pending.has(node.key) && node.children === undefined),\n selected: checked,\n checked,\n partial: checkbox && up && !checked && this.hasCheckedDescendant(node, selected),\n selectable: !!this.selectionMode() && !node.disabled && node.selectable !== false,\n draggable: draggable && !node.disabled && node.draggable !== false,\n icon,\n children,\n };\n });\n return build(this.filteredValue(), 1, null);\n });\n readonly rows = computed<TxTreeRow<T>[]>(() => {\n const rows: TxTreeRow<T>[] = [];\n const walk = (items: TxTreeRow<T>[]) =>\n items.forEach((item) => {\n rows.push(item);\n if (item.expanded) walk(item.children);\n });\n walk(this.tree());\n return rows;\n });\n readonly tabKey = computed(() => {\n const rows = this.rows();\n const focused = this.focusedKey();\n if (focused && rows.some((row) => row.node.key === focused)) return focused;\n return (rows.find((row) => row.selected) ?? rows[0])?.node.key ?? null;\n });\n readonly windowRange = computed(() => {\n const count = this.rows().length;\n if (!this.virtualScroll()) return { start: 0, end: count };\n const size = this.virtualScrollItemSize();\n const tolerance = this.virtualScrollTolerance();\n const viewport = this.viewportHeight() || size * 10;\n const start = Math.max(0, Math.floor(this.scrollTop() / size) - tolerance);\n const end = Math.min(count, Math.ceil((this.scrollTop() + viewport) / size) + tolerance);\n return { start, end };\n });\n readonly visibleRows = computed(() => {\n const { start, end } = this.windowRange();\n return this.rows().slice(start, end);\n });\n readonly spacerBefore = computed(() => this.windowRange().start * this.virtualScrollItemSize());\n readonly spacerAfter = computed(() => (this.rows().length - this.windowRange().end) * this.virtualScrollItemSize());\n readonly emptyText = computed(() => this.emptyMessage() ?? this.translations().emptyMessage);\n readonly showMask = computed(() => this.loading() && this.loadingMode() === 'mask');\n readonly rootDrop = computed(() => this.dropTarget()?.key === null);\n readonly filterContext = computed<TxTreeFilterContext>(() => ({\n $implicit: this.query(),\n query: this.query(),\n filter: (query: string) => this.filterNodes(query),\n reset: () => this.resetFilter(),\n }));\n\n constructor() {\n effect(() => {\n const fresh: string[] = [];\n walkTree(this.value(), (node) => {\n if (this.seenKeys.has(node.key)) return;\n this.seenKeys.add(node.key);\n if (node.expanded) fresh.push(node.key);\n });\n if (fresh.length) {\n untracked(() => this.expandedKeys.update((keys) => [...keys, ...fresh.filter((key) => !keys.includes(key))]));\n }\n });\n\n effect(() => {\n if (!this.filtering()) return;\n const filter = this.query();\n const filteredValue = this.filteredValue();\n untracked(() => this.filtered.emit({ filter, filteredValue }));\n });\n\n afterNextRender(() => {\n if (this.filterInputAutoFocus()) this.filterInput()?.nativeElement.focus();\n this.measure();\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.anchor?.remove();\n if (this.dragService.state()?.source === this) this.dragService.stop();\n });\n }\n\n templateFor(node: TxTreeNode<T>) {\n const templates = this.templatesByType();\n return templates.get(node.type ?? '') ?? templates.get('') ?? null;\n }\n\n nodeContext(row: TxTreeRow<T>): TxTreeNodeContext<T> {\n return { $implicit: row.node, node: row.node, level: row.level, expanded: row.expanded, selected: row.selected, checked: row.checked, partial: row.partial };\n }\n\n nodeClass(row: TxTreeRow<T>): string {\n return [row.node.styleClass, this.passThrough().node?.class].filter(Boolean).join(' ');\n }\n\n highlighted(row: TxTreeRow<T>): boolean {\n return row.selected && (!this.checkboxMode() || this.highlightOnSelect());\n }\n\n checkState(row: TxTreeRow<T>): 'true' | 'false' | 'mixed' {\n return row.checked ? 'true' : row.partial ? 'mixed' : 'false';\n }\n\n expandAll(): void {\n this.expandedKeys.set(branchKeys(this.value()));\n }\n\n collapseAll(): void {\n this.expandedKeys.set([]);\n }\n\n filterNodes(query: string): void {\n this.query.set(query);\n }\n\n resetFilter(): void {\n this.query.set('');\n const input = this.filterInput()?.nativeElement;\n if (input) input.value = '';\n }\n\n onFilterInput(event: Event): void {\n this.query.set((event.target as HTMLInputElement).value);\n }\n\n onFilterKeydown(event: KeyboardEvent): void {\n if (event.key === 'Enter') {\n event.preventDefault();\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n const key = this.tabKey();\n if (key) this.focusKey(key);\n }\n }\n\n toggle(row: TxTreeRow<T>, event: Event): void {\n event.stopPropagation();\n if (row.leaf) return;\n if (row.expanded) this.collapse(row, event);\n else this.expand(row, event);\n }\n\n expand(row: TxTreeRow<T>, event: Event): void {\n if (row.leaf || row.expanded) return;\n if (this.filtering()) {\n this.filterExpanded.update((keys) => new Set([...keys, row.node.key]));\n } else {\n this.expandedKeys.update((keys) => [...keys, row.node.key]);\n }\n if (row.node.leaf === false && row.node.children === undefined) {\n this.pendingKeys.update((keys) => new Set([...keys, row.node.key]));\n }\n this.nodeExpand.emit({ node: row.node, originalEvent: event });\n }\n\n onCollapseEnd(row: TxTreeRow<T>, event: TransitionEvent): void {\n if (event.target !== event.currentTarget || event.propertyName !== 'grid-template-rows' || row.expanded) return;\n this.mountedKeys.update((keys) => new Set([...keys].filter((key) => key !== row.node.key)));\n }\n\n collapse(row: TxTreeRow<T>, event: Event): void {\n if (!row.expanded) return;\n this.mountedKeys.update((keys) => new Set([...keys, row.node.key]));\n if (this.filtering()) {\n this.filterExpanded.update((keys) => new Set([...keys].filter((key) => key !== row.node.key)));\n } else {\n this.expandedKeys.update((keys) => keys.filter((key) => key !== row.node.key));\n }\n this.nodeCollapse.emit({ node: row.node, originalEvent: event });\n }\n\n onNodeClick(row: TxTreeRow<T>, event: MouseEvent | KeyboardEvent): void {\n this.focusedKey.set(row.node.key);\n if (!row.selectable) return;\n if (this.checkboxMode()) {\n this.toggleCheck(row, event);\n return;\n }\n const metaKey = event.metaKey || event.ctrlKey;\n const useMeta = this.metaKeySelection();\n if (this.selectionMode() === 'single') {\n if (row.selected) {\n if (!useMeta || metaKey) {\n this.selection.set(null);\n this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n }\n return;\n }\n this.selection.set(row.node);\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n return;\n }\n const current = this.currentSelection();\n if (useMeta && !metaKey) {\n const only = current.length === 1 && current[0].key === row.node.key;\n if (only) return;\n this.selection.set([row.node]);\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n return;\n }\n if (row.selected) {\n this.selection.set(current.filter((node) => node.key !== row.node.key));\n this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n } else {\n this.selection.set(this.inTreeOrder([...current.map((node) => node.key), row.node.key]));\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n }\n }\n\n onNodeDoubleClick(row: TxTreeRow<T>, event: MouseEvent): void {\n this.nodeDoubleClick.emit({ node: row.node, originalEvent: event });\n }\n\n onNodeContextMenu(row: TxTreeRow<T>, event: MouseEvent | KeyboardEvent): void {\n const items = this.contextMenu();\n if (!items?.length) return;\n event.preventDefault();\n event.stopPropagation();\n this.focusedKey.set(row.node.key);\n this.contextMenuSelection.set(row.node);\n this.nodeContextMenuSelect.emit({ node: row.node, originalEvent: event });\n this.menuItems.set(items);\n this.openMenuAt(event);\n }\n\n onMenuClosed(): void {\n this.menuOpen.set(false);\n this.anchor?.remove();\n this.anchor = null;\n const key = this.focusedKey();\n if (key && !this.host.nativeElement.contains(this.document.activeElement)) this.focusKey(key);\n }\n\n onTreeFocusIn(event: FocusEvent): void {\n const key = (event.target as HTMLElement).dataset['treeKey'];\n if (key !== undefined && key !== this.focusedKey()) this.focusedKey.set(key);\n }\n\n onTreeKeydown(event: KeyboardEvent): void {\n const target = event.target as HTMLElement;\n if (target.getAttribute('role') !== 'treeitem' || event.target !== event.currentTarget) return;\n const focused = target.dataset['treeKey'] ?? null;\n if (focused !== this.focusedKey()) this.focusedKey.set(focused);\n const rows = this.rows();\n const index = rows.findIndex((row) => row.node.key === focused);\n const row = rows[index];\n if (!row) return;\n if (event.altKey && this.draggableNodes() && this.droppableNodes() && this.moveByKey(row, event)) {\n event.preventDefault();\n return;\n }\n switch (event.key) {\n case 'ArrowDown':\n this.focusIndex(index + 1, event);\n return;\n case 'ArrowUp':\n this.focusIndex(index - 1, event);\n return;\n case 'Home':\n this.focusIndex(0, event);\n return;\n case 'End':\n this.focusIndex(rows.length - 1, event);\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (!row.leaf && !row.expanded) this.expand(row, event);\n else if (row.children.length) this.focusKey(row.children[0].node.key);\n return;\n case 'ArrowLeft':\n event.preventDefault();\n if (row.expanded) this.collapse(row, event);\n else if (row.parentKey) this.focusKey(row.parentKey);\n return;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.onNodeClick(row, event);\n return;\n case '*': {\n event.preventDefault();\n const siblings = rows.filter((item) => item.parentKey === row.parentKey && item.level === row.level && !item.leaf && !item.expanded);\n siblings.forEach((item) => this.expand(item, event));\n return;\n }\n case 'ContextMenu':\n this.onNodeContextMenu(row, event);\n return;\n case 'F10':\n if (event.shiftKey) this.onNodeContextMenu(row, event);\n return;\n }\n if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n const found = this.typeahead.search(\n event.key,\n rows.map((item) => item.node.label),\n index,\n );\n if (found !== null) {\n event.preventDefault();\n this.focusKey(rows[found].node.key);\n }\n }\n }\n\n onScroll(event: Event): void {\n if (!this.virtualScroll()) return;\n const element = event.target as HTMLElement;\n this.scrollTop.set(element.scrollTop);\n this.viewportHeight.set(element.clientHeight);\n }\n\n onDragStart(row: TxTreeRow<T>, event: DragEvent): void {\n if (!row.draggable) {\n event.preventDefault();\n return;\n }\n event.stopPropagation();\n event.dataTransfer?.setData('text/plain', row.node.label);\n if (event.dataTransfer) event.dataTransfer.effectAllowed = 'move';\n this.draggingKey.set(row.node.key);\n this.dragService.start({ node: row.node, scope: this.draggableScope(), source: this });\n }\n\n onDragOver(row: TxTreeRow<T>, event: DragEvent): void {\n const state = this.dragService.state();\n if (!state || !this.droppableNodes()) return;\n event.stopPropagation();\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const ratio = rect.height ? (event.clientY - rect.top) / rect.height : 0.5;\n const inside = row.node.droppable !== false;\n const position: TxTreeDropPosition = ratio < 0.25 || (!inside && ratio < 0.5) ? 'before' : ratio > 0.75 || !inside ? 'after' : 'inside';\n if (!this.canDrop(state.node, state.source === this, state.scope, row.node.key)) {\n this.dropTarget.set(null);\n return;\n }\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n const current = this.dropTarget();\n if (current?.key !== row.node.key || current.position !== position) this.dropTarget.set({ key: row.node.key, position });\n }\n\n onDragLeave(row: TxTreeRow<T>, event: DragEvent): void {\n const related = event.relatedTarget as Node | null;\n if (related && (event.currentTarget as HTMLElement).contains(related)) return;\n if (this.dropTarget()?.key === row.node.key) this.dropTarget.set(null);\n }\n\n onRootDragOver(event: DragEvent): void {\n const state = this.dragService.state();\n if (!state || !this.droppableNodes() || !this.canDrop(state.node, state.source === this, state.scope, null)) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n if (this.dropTarget()?.key !== null) this.dropTarget.set({ key: null, position: 'inside' });\n }\n\n onRootDragLeave(event: DragEvent): void {\n const related = event.relatedTarget as Node | null;\n if (related && (event.currentTarget as HTMLElement).contains(related)) return;\n this.dropTarget.set(null);\n }\n\n onDrop(event: DragEvent): void {\n const state = this.dragService.state();\n const target = this.dropTarget();\n this.dropTarget.set(null);\n if (!state || !target) return;\n event.preventDefault();\n event.stopPropagation();\n this.drop(state.node, state.source, target.key, target.position, event);\n this.dragService.stop();\n }\n\n onDragEnd(): void {\n this.draggingKey.set(null);\n this.dropTarget.set(null);\n if (this.dragService.state()?.source === this) this.dragService.stop();\n }\n\n removeDraggedNode(key: string): void {\n this.value.set(removeNode(this.value(), key));\n }\n\n private canDrop(node: TxTreeNode, sameTree: boolean, scope: TxTreeScope, targetKey: string | null): boolean {\n if (!scopesMatch(sameTree ? (scope ?? this.droppableScope()) : scope, this.droppableScope())) return false;\n if (targetKey === null) return true;\n if (targetKey === node.key) return false;\n return !(sameTree && isDescendantOf(this.value(), node.key, targetKey));\n }\n\n private drop(node: TxTreeNode, source: TxTreeDragSource, targetKey: string | null, position: TxTreeDropPosition, event: Event): void {\n const dragNode = node as TxTreeNode<T>;\n const sameTree = source === this;\n const base = this.value();\n const next = sameTree ? moveNode(base, dragNode.key, targetKey, position) : insertNode(removeNode(base, dragNode.key), dragNode, targetKey, position);\n const index = siblingsOf(next, dragNode.key).findIndex((item) => item.key === dragNode.key);\n const dropNode = targetKey === null ? null : findNode(base, targetKey);\n const accept = () => {\n if (!sameTree) source.removeDraggedNode(dragNode.key);\n this.value.set(next);\n if (position === 'inside' && targetKey !== null && !this.expandedKeys().includes(targetKey)) {\n this.expandedKeys.update((keys) => [...keys, targetKey]);\n }\n };\n this.nodeDrop.emit({ dragNode, dropNode, position, index, originalEvent: event, accept });\n if (!this.validateDrop()) accept();\n }\n\n private moveByKey(row: TxTreeRow<T>, event: KeyboardEvent): boolean {\n if (!row.draggable) return false;\n const siblings = this.rows().filter((item) => item.parentKey === row.parentKey && item.level === row.level);\n const position = siblings.findIndex((item) => item.node.key === row.node.key);\n let target: TxTreeDropTarget | null = null;\n if (event.key === 'ArrowUp' && position > 0) target = { key: siblings[position - 1].node.key, position: 'before' };\n else if (event.key === 'ArrowDown' && position < siblings.length - 1) target = { key: siblings[position + 1].node.key, position: 'after' };\n else if (event.key === 'ArrowRight' && position > 0 && siblings[position - 1].node.droppable !== false) target = { key: siblings[position - 1].node.key, position: 'inside' };\n else if (event.key === 'ArrowLeft' && row.parentKey) target = { key: row.parentKey, position: 'after' };\n if (!target) return false;\n this.drop(row.node, this, target.key, target.position, event);\n this.focusKey(row.node.key);\n return true;\n }\n\n private toggleCheck(row: TxTreeRow<T>, event: Event): void {\n const keys = new Set(this.selectedKeys());\n const check = !row.checked;\n const affected = this.propagateSelectionDown() ? [row.node.key, ...descendantKeys(row.node)] : [row.node.key];\n affected.forEach((key) => (check ? keys.add(key) : keys.delete(key)));\n const ordered = this.propagateSelectionUp() ? normalizeChecked(this.value(), [...keys]) : [...keys];\n this.selection.set(this.inTreeOrder(ordered));\n if (check) this.nodeSelect.emit({ node: row.node, originalEvent: event });\n else this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n }\n\n private hasCheckedDescendant(node: TxTreeNode<T>, selected: ReadonlySet<string>): boolean {\n return (node.children ?? []).some((child) => selected.has(child.key) || this.hasCheckedDescendant(child, selected));\n }\n\n private currentSelection(): TxTreeNode<T>[] {\n const selection = this.selection();\n return selection ? (Array.isArray(selection) ? selection : [selection]) : [];\n }\n\n private inTreeOrder(keys: readonly string[]): TxTreeNode<T>[] {\n const wanted = new Set(keys);\n const nodes: TxTreeNode<T>[] = [];\n walkTree(this.value(), (node) => {\n if (wanted.has(node.key)) nodes.push(node);\n });\n return nodes;\n }\n\n private focusIndex(index: number, event: Event): void {\n event.preventDefault();\n const rows = this.rows();\n const row = rows[Math.max(0, Math.min(rows.length - 1, index))];\n if (row) this.focusKey(row.node.key);\n }\n\n focusKey(key: string): void {\n this.focusedKey.set(key);\n if (this.virtualScroll()) this.scrollToKey(key);\n afterNextRender(\n () => {\n const element = Array.from(this.host.nativeElement.querySelectorAll<HTMLElement>('[data-tree-key]')).find((item) => item.dataset['treeKey'] === key);\n element?.focus({ preventScroll: this.virtualScroll() });\n if (!this.virtualScroll()) element?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n private scrollToKey(key: string): void {\n const wrapper = this.wrapper()?.nativeElement;\n const index = this.rows().findIndex((row) => row.node.key === key);\n if (!wrapper || index < 0) return;\n const size = this.virtualScrollItemSize();\n const top = index * size;\n const height = wrapper.clientHeight;\n let next = wrapper.scrollTop;\n if (top < next) next = top;\n else if (top + size > next + height) next = top + size - height;\n wrapper.scrollTop = next;\n this.scrollTop.set(next);\n this.viewportHeight.set(height);\n }\n\n private measure(): void {\n const wrapper = this.wrapper()?.nativeElement;\n if (wrapper) this.viewportHeight.set(wrapper.clientHeight);\n }\n\n private openMenuAt(event: MouseEvent | KeyboardEvent): void {\n const menu = this.menu();\n if (!menu) return;\n const point =\n event instanceof MouseEvent && (event.clientX || event.clientY)\n ? { x: event.clientX, y: event.clientY }\n : (() => {\n const rect = (event.target as HTMLElement).getBoundingClientRect();\n return { x: rect.left + 16, y: rect.bottom };\n })();\n menu.hide();\n this.anchor?.remove();\n const anchor = this.document.createElement('div');\n Object.assign(anchor.style, { position: 'fixed', left: `${point.x}px`, top: `${point.y}px`, width: '0', height: '0', pointerEvents: 'none' });\n this.document.body.appendChild(anchor);\n this.anchor = anchor;\n this.menuOpen.set(true);\n menu.show(anchor, 'first', true);\n }\n}\n","@if (showMask()) {\n <div class=\"tx-tree__mask\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-icon class=\"tx-tree__loading-icon\" role=\"img\" [name]=\"loadingIcon()\" [attr.aria-label]=\"translations().loading\" />\n }\n </div>\n}\n\n@if (headerTemplate(); as headerTemplate) {\n <div class=\"tx-tree__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate.templateRef\" />\n </div>\n}\n\n@if (filterTemplate(); as filterTemplate) {\n <div class=\"tx-tree__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <ng-container [ngTemplateOutlet]=\"filterTemplate.templateRef\" [ngTemplateOutletContext]=\"filterContext()\" />\n </div>\n} @else if (filter()) {\n <tx-icon-field class=\"tx-tree__filter\" fluid [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <input\n #filterInput\n txInput\n type=\"search\"\n autocomplete=\"off\"\n class=\"tx-tree__filter-input\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"treeId\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [unstyled]=\"isUnstyled()\"\n [value]=\"query()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n <tx-input-icon icon=\"search\" position=\"end\" />\n </tx-icon-field>\n}\n\n<div\n #wrapper\n class=\"tx-tree__wrapper\"\n [class.tx-tree__wrapper--drop]=\"rootDrop()\"\n [style.max-height]=\"scrollHeight() && scrollHeight() !== 'flex' ? scrollHeight() : null\"\n [class]=\"passThrough().wrapper?.class\"\n [style]=\"passThrough().wrapper?.style\"\n (scroll)=\"onScroll($event)\"\n (dragover)=\"onRootDragOver($event)\"\n (dragleave)=\"onRootDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n @if (rows().length) {\n <ul\n class=\"tx-tree__list\"\n role=\"tree\"\n [id]=\"treeId\"\n [class.tx-tree__list--virtual]=\"virtualScroll()\"\n [attr.aria-multiselectable]=\"multiselectable() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-busy]=\"loading() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n >\n @if (virtualScroll()) {\n @if (spacerBefore()) {\n <li class=\"tx-tree__spacer\" role=\"none\" aria-hidden=\"true\" [style.height.px]=\"spacerBefore()\"></li>\n }\n @for (row of visibleRows(); track row.node.key) {\n <ng-container [ngTemplateOutlet]=\"nodeItem\" [ngTemplateOutletContext]=\"{ $implicit: row, flat: true }\" />\n }\n @if (spacerAfter()) {\n <li class=\"tx-tree__spacer\" role=\"none\" aria-hidden=\"true\" [style.height.px]=\"spacerAfter()\"></li>\n }\n } @else {\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: tree() }\" />\n }\n </ul>\n } @else {\n <div class=\"tx-tree__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyText() }}\n }\n </div>\n }\n</div>\n\n@if (footerTemplate(); as footerTemplate) {\n <div class=\"tx-tree__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate.templateRef\" />\n </div>\n}\n\n<tx-tiered-menu\n #nodeMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().nodeActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n/>\n\n<ng-template #branch let-rows>\n @for (row of rows; track row.node.key) {\n <ng-container [ngTemplateOutlet]=\"nodeItem\" [ngTemplateOutletContext]=\"{ $implicit: row, flat: false }\" />\n }\n</ng-template>\n\n<ng-template #nodeItem let-row let-flat=\"flat\">\n <li\n class=\"tx-tree__node\"\n role=\"none\"\n [class.tx-tree__node--leaf]=\"row.leaf\"\n [style.height.px]=\"flat ? virtualScrollItemSize() : null\"\n [style.--tx-tree-level]=\"row.level - 1\"\n [class]=\"nodeClass(row)\"\n [style]=\"passThrough().node?.style\"\n >\n <div\n class=\"tx-tree__content\"\n role=\"treeitem\"\n [id]=\"row.id\"\n [attr.data-tree-key]=\"row.node.key\"\n [attr.tabindex]=\"row.node.key === tabKey() ? 0 : -1\"\n [attr.aria-label]=\"row.node.label\"\n [attr.aria-level]=\"row.level\"\n [attr.aria-setsize]=\"row.setSize\"\n [attr.aria-posinset]=\"row.posInSet\"\n [attr.aria-expanded]=\"row.leaf ? null : row.expanded\"\n [attr.aria-selected]=\"selectionMode() && !checkboxMode() ? row.selected : null\"\n [attr.aria-checked]=\"checkboxMode() ? checkState(row) : null\"\n [attr.aria-disabled]=\"row.node.disabled || null\"\n [attr.aria-busy]=\"row.loading || null\"\n [attr.aria-owns]=\"!flat && row.expanded && row.children.length ? row.id + '-group' : null\"\n [class.tx-tree__content--selectable]=\"row.selectable\"\n [class.tx-tree__content--selected]=\"highlighted(row)\"\n [class.tx-tree__content--disabled]=\"row.node.disabled\"\n [class.tx-tree__content--dragging]=\"draggingKey() === row.node.key\"\n [class.tx-tree__content--drop-inside]=\"dropTarget()?.key === row.node.key && dropTarget()?.position === 'inside'\"\n [class.tx-tree__content--context]=\"menuOpen() && contextMenuSelection()?.key === row.node.key\"\n [class.tx-tree__content--flat]=\"flat\"\n [attr.draggable]=\"row.draggable || null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n (click)=\"onNodeClick(row, $event)\"\n (keydown)=\"onTreeKeydown($event)\"\n (focus)=\"onTreeFocusIn($event)\"\n (dblclick)=\"onNodeDoubleClick(row, $event)\"\n (contextmenu)=\"onNodeContextMenu(row, $event)\"\n (dragstart)=\"onDragStart(row, $event)\"\n (dragover)=\"onDragOver(row, $event)\"\n (dragleave)=\"onDragLeave(row, $event)\"\n (drop)=\"onDrop($event)\"\n (dragend)=\"onDragEnd()\"\n >\n @if (dropTarget()?.key === row.node.key && dropTarget()?.position !== 'inside') {\n <span\n class=\"tx-tree__drop-point\"\n aria-hidden=\"true\"\n [class.tx-tree__drop-point--after]=\"dropTarget()?.position === 'after'\"\n [class]=\"passThrough().dropPoint?.class\"\n [style]=\"passThrough().dropPoint?.style\"\n ></span>\n }\n <button\n type=\"button\"\n class=\"tx-tree__toggler\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.tx-tree__toggler--hidden]=\"row.leaf\"\n [class]=\"passThrough().toggler?.class\"\n [style]=\"passThrough().toggler?.style\"\n (click)=\"toggle(row, $event)\"\n >\n @if (toggleIconTemplate(); as toggleIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"toggleIconTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row.expanded, expanded: row.expanded, loading: row.loading }\"\n />\n } @else if (row.loading) {\n <tx-icon class=\"tx-tree__toggler-icon tx-tree__toggler-icon--loading\" [name]=\"'spinner'\" />\n } @else {\n <tx-icon class=\"tx-tree__toggler-icon\" [class.tx-tree__toggler-icon--open]=\"row.expanded\" [name]=\"'chevron-right'\" />\n }\n </button>\n @if (checkboxMode()) {\n <span\n class=\"tx-tree__checkbox\"\n aria-hidden=\"true\"\n [class.tx-tree__checkbox--checked]=\"row.checked\"\n [class.tx-tree__checkbox--partial]=\"row.partial\"\n [class.tx-tree__checkbox--disabled]=\"!row.selectable\"\n [class]=\"passThrough().checkbox?.class\"\n [style]=\"passThrough().checkbox?.style\"\n >\n @if (checkboxIconTemplate(); as checkboxIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"checkboxIconTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row.checked, checked: row.checked, partial: row.partial }\"\n />\n } @else if (row.checked) {\n <tx-icon [name]=\"'check'\" />\n } @else if (row.partial) {\n <tx-icon [name]=\"'minus'\" />\n }\n </span>\n }\n @if (row.icon) {\n <tx-icon class=\"tx-tree__icon\" aria-hidden=\"true\" [name]=\"row.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n }\n <span class=\"tx-tree__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (templateFor(row.node); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"nodeContext(row)\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </div>\n @if (!flat && row.node.children?.length) {\n <div\n class=\"tx-tree__collapse\"\n [class.tx-tree__collapse--open]=\"row.expanded\"\n [attr.inert]=\"row.expanded ? null : ''\"\n (transitionend)=\"onCollapseEnd(row, $event)\"\n >\n <div class=\"tx-tree__collapse-inner\">\n @if (row.children.length) {\n <ul class=\"tx-tree__children\" role=\"group\" [id]=\"row.id + '-group'\" [class]=\"passThrough().children?.class\" [style]=\"passThrough().children?.style\">\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: row.children }\" />\n </ul>\n }\n </div>\n </div>\n }\n </li>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAqBA,IAAa,oBAAb,MAAa,kBAAiB;CAEnB,QAAQ,OAA+B,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAGrD,MAAM,OAAsB;EAC1B,KAAK,MAAM,IAAI,KAAK;CACtB;CAGA,OAAI;EACF,KAAK,MAAM,IAAI,IAAI;CACrB;CAZW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAjB,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiB,YADJ;CAAM,CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAD7B,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;AChBlC,IAAa,qBAAb,MAAa,mBAAkB;CACpB,cAAc,OAAuC,WAAW;CAChE,aAAa,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAF5B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,MAAA,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AA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACpB,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACZ,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACb,WAAW,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACT,aAAa,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACd,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,oBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACR,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,sBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACd,kBAAkB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAOrB,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACU,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACA,eAAa,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-tree.mjs","names":[],"sources":["../../../../packages/ui/tree/src/tree-drag.service.ts","../../../../packages/ui/tree/src/tree.templates.ts","../../../../packages/ui/tree/src/tree.utils.ts","../../../../packages/ui/tree/src/tree.icons.ts","../../../../packages/ui/tree/src/tree.theme.ts","../../../../packages/ui/tree/src/tree.component.ts","../../../../packages/ui/tree/src/tree.component.html"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\nimport { TxTreeNode, TxTreeScope } from './tree.types';\n\n/** A tree that can give up a node dragged out of it into another tree. */\nexport interface TxTreeDragSource {\n /** Removes the node with the key from this tree after it was dropped elsewhere. */\n removeDraggedNode(key: string): void;\n}\n\n/** The drag in progress: the node, its scope and the tree it comes from. */\nexport interface TxTreeDragState {\n /** The dragged node. */\n node: TxTreeNode;\n /** Scope of the dragged node, matched against `droppableScope` of the target tree. */\n scope: TxTreeScope;\n /** The tree the node is dragged from. */\n source: TxTreeDragSource;\n}\n\n/** Shares the running drag between trees, so a node can move from one `tx-tree` to another. */\n@Injectable({ providedIn: 'root' })\nexport class TxTreeDragService {\n /** Signal of the running drag; `null` when nothing is dragged. */\n readonly state = signal<TxTreeDragState | null>(null);\n\n /** Records that a drag began. */\n start(state: TxTreeDragState): void {\n this.state.set(state);\n }\n\n /** Records that the drag ended. */\n stop(): void {\n this.state.set(null);\n }\n}\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\nimport { TxTreeCheckboxIconContext, TxTreeFilterContext, TxTreeNode, TxTreeNodeContext, TxTreeToggleIconContext } from './tree.types';\n\n@Directive({ selector: 'ng-template[txTreeNode]' })\nexport class TxTreeNodeTemplate<T> {\n readonly templateRef = inject<TemplateRef<TxTreeNodeContext<T>>>(TemplateRef);\n readonly txTreeNode = input<string>('');\n readonly txTreeNodeOf = input<readonly TxTreeNode<T>[] | null | undefined>(undefined);\n\n static ngTemplateContextGuard<T>(_directive: TxTreeNodeTemplate<T>, context: unknown): context is TxTreeNodeContext<T> {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txTreeHeader]' })\nexport class TxTreeHeader {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeFooter]' })\nexport class TxTreeFooter {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeEmpty]' })\nexport class TxTreeEmpty {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeLoading]' })\nexport class TxTreeLoading {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTreeFilter]' })\nexport class TxTreeFilter {\n readonly templateRef = inject<TemplateRef<TxTreeFilterContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxTreeFilter, context: unknown): context is TxTreeFilterContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txTreeToggleIcon]' })\nexport class TxTreeToggleIcon {\n readonly templateRef = inject<TemplateRef<TxTreeToggleIconContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxTreeToggleIcon, context: unknown): context is TxTreeToggleIconContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txTreeCheckboxIcon]' })\nexport class TxTreeCheckboxIcon {\n readonly templateRef = inject<TemplateRef<TxTreeCheckboxIconContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxTreeCheckboxIcon, context: unknown): context is TxTreeCheckboxIconContext {\n return !!context;\n }\n}\n","import { foldText, readOptionField } from '@tectra-ng/ui/select';\nimport { TxTreeDropPosition, TxTreeFilterMode, TxTreeNode, TxTreeScope } from './tree.types';\n\n/** Visits every node depth-first with its parent (`null` at the top). */\nexport function walkTree<T = unknown>(\n nodes: readonly TxTreeNode<T>[],\n visit: (node: TxTreeNode<T>, parent: TxTreeNode<T> | null) => void,\n parent: TxTreeNode<T> | null = null,\n): void {\n for (const node of nodes) {\n visit(node, parent);\n walkTree(node.children ?? [], visit, node);\n }\n}\n\n/** Finds the node with the key anywhere in the tree, or `null`. */\nexport function findNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T> | null {\n let found: TxTreeNode<T> | null = null;\n walkTree(nodes, (node) => {\n if (!found && node.key === key) {\n found = node;\n }\n });\n return found;\n}\n\n/** Keys of all selectable, enabled descendants of the node. */\nexport function descendantKeys(node: TxTreeNode): string[] {\n const keys: string[] = [];\n walkTree(node.children ?? [], (child) => {\n if (!child.disabled && child.selectable !== false) {\n keys.push(child.key);\n }\n });\n return keys;\n}\n\n/** Maps the key of every node to its parent node (`null` at the top). */\nexport function parentMap<T = unknown>(nodes: readonly TxTreeNode<T>[]): Map<string, TxTreeNode<T> | null> {\n const parents = new Map<string, TxTreeNode<T> | null>();\n walkTree(nodes, (node, parent) => parents.set(node.key, parent));\n return parents;\n}\n\n/**\n * Settles checked keys so a branch is checked exactly when all its selectable children are;\n * returns them in tree order.\n */\nexport function normalizeChecked(nodes: readonly TxTreeNode[], keys: readonly string[]): string[] {\n const checked = new Set(keys);\n const settle = (node: TxTreeNode): boolean => {\n const children = (node.children ?? []).filter((child) => !child.disabled && child.selectable !== false);\n if (!children.length) {\n return checked.has(node.key);\n }\n const all = children.map(settle).every(Boolean);\n if (all) {\n checked.add(node.key);\n } else {\n checked.delete(node.key);\n }\n return all;\n };\n nodes.forEach(settle);\n const order: string[] = [];\n walkTree(nodes, (node) => checked.has(node.key) && order.push(node.key));\n return order;\n}\n\n/** Whether the node has no children and is not marked `leaf: false`. */\nexport function isLeafNode(node: TxTreeNode): boolean {\n return node.leaf === false ? false : !node.children?.length;\n}\n\n/** Whether any of the node fields contains the already folded query. */\nexport function nodeMatches(node: TxTreeNode, query: string, fields: readonly string[]): boolean {\n return fields.some((field) => foldText(String(readOptionField(node, field) ?? '')).includes(query));\n}\n\n/** Keeps the nodes that match the query in any of the fields; the mode decides what stays under a match. */\nexport function filterTree<T = unknown>(nodes: readonly TxTreeNode<T>[], query: string, fields: readonly string[], mode: TxTreeFilterMode = 'lenient'): TxTreeNode<T>[] {\n const folded = foldText(query.trim());\n if (!folded) {\n return [...nodes];\n }\n const visit = (node: TxTreeNode<T>): TxTreeNode<T> | null => {\n const own = nodeMatches(node, folded, fields);\n const children = node.children ?? [];\n if (own && (mode === 'lenient' || !children.length)) {\n return node;\n }\n const kept = children.map(visit).filter((child): child is TxTreeNode<T> => child !== null);\n if (kept.length) {\n return { ...node, children: kept };\n }\n return own ? { ...node, children: [] } : null;\n };\n return nodes.map(visit).filter((node): node is TxTreeNode<T> => node !== null);\n}\n\n/** Keys of all nodes that have children. */\nexport function branchKeys(nodes: readonly TxTreeNode[]): string[] {\n const keys: string[] = [];\n walkTree(nodes, (node) => {\n if (node.children?.length) {\n keys.push(node.key);\n }\n });\n return keys;\n}\n\n/** Whether the node with `key` is somewhere below the node with `ancestorKey`. */\nexport function isDescendantOf(nodes: readonly TxTreeNode[], ancestorKey: string, key: string): boolean {\n const ancestor = findNode(nodes, ancestorKey);\n if (!ancestor) {\n return false;\n }\n let found = false;\n walkTree(ancestor.children ?? [], (node) => {\n if (node.key === key) {\n found = true;\n }\n });\n return found;\n}\n\n/** Returns the tree without the node with the key; the input is not changed. */\nexport function removeNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T>[] {\n return nodes\n .filter((node) => node.key !== key)\n .map((node) => {\n if (!node.children?.length) {\n return node;\n }\n const children = removeNode(node.children, key);\n return children.length === node.children.length && children.every((child, index) => child === node.children?.[index]) ? node : { ...node, children };\n });\n}\n\n/**\n * Returns the tree with the node added before, after or inside the target; `null` as target\n * appends at the top.\n */\nexport function insertNode<T = unknown>(\n nodes: readonly TxTreeNode<T>[],\n node: TxTreeNode<T>,\n targetKey: string | null,\n position: TxTreeDropPosition,\n): TxTreeNode<T>[] {\n if (targetKey === null) {\n return [...nodes, node];\n }\n const index = nodes.findIndex((item) => item.key === targetKey);\n if (index >= 0) {\n if (position === 'inside') {\n const target = nodes[index];\n const result = [...nodes];\n result[index] = { ...target, children: [...(target.children ?? []), node] };\n return result;\n }\n const result = [...nodes];\n result.splice(position === 'before' ? index : index + 1, 0, node);\n return result;\n }\n return nodes.map((item) => (item.children?.length ? { ...item, children: insertNode(item.children, node, targetKey, position) } : item));\n}\n\n/**\n * Returns the tree with the node moved next to or into the target; a move into itself or its\n * own branch changes nothing.\n */\nexport function moveNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string, targetKey: string | null, position: TxTreeDropPosition): TxTreeNode<T>[] {\n const node = findNode(nodes, key);\n if (!node || key === targetKey || (targetKey !== null && isDescendantOf(nodes, key, targetKey))) {\n return [...nodes];\n }\n return insertNode(removeNode(nodes, key), node, targetKey, position);\n}\n\n/** Nodes on the same level as the node with the key, itself included. */\nexport function siblingsOf<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): readonly TxTreeNode<T>[] {\n const parent = parentMap(nodes).get(key);\n return parent ? (parent.children ?? []) : nodes;\n}\n\n/** Whether a tree with `dropScope` accepts a node of `dragScope`; an empty drop scope accepts any. */\nexport function scopesMatch(dragScope: TxTreeScope, dropScope: TxTreeScope): boolean {\n if (dropScope === null || dropScope === undefined) {\n return true;\n }\n if (dragScope === null || dragScope === undefined) {\n return false;\n }\n const drag = typeof dragScope === 'string' ? [dragScope] : dragScope;\n const drop = typeof dropScope === 'string' ? [dropScope] : dropScope;\n return drag.some((scope) => drop.includes(scope));\n}\n","import { TxIconSet, txIconCheck, txIconChevronRight, txIconFilter, txIconList, txIconMinus, txIconSearch, txIconSpinner } from '@tectra-ng/icons';\n\nexport const TREE_ICON_DEFAULTS: TxIconSet = {\n check: txIconCheck,\n 'chevron-right': txIconChevronRight,\n filter: txIconFilter,\n list: txIconList,\n minus: txIconMinus,\n search: txIconSearch,\n spinner: txIconSpinner,\n};\n","import { checkboxTokens, iconTokens, treeTokens } from '@tectra-ng/themes';\n\nexport const TREE_THEME = {\n checkbox: checkboxTokens,\n icon: iconTokens,\n tree: treeTokens,\n};\n","import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { TxTypeahead, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTreeTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxIconField, TxInputIcon } from '@tectra-ng/ui/icon-field';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxMenu, TxMenuItem } from '@tectra-ng/ui/menu';\nimport { TxTreeDragService, TxTreeDragSource } from './tree-drag.service';\nimport { TxTreeCheckboxIcon, TxTreeEmpty, TxTreeFilter, TxTreeFooter, TxTreeHeader, TxTreeLoading, TxTreeNodeTemplate, TxTreeToggleIcon } from './tree.templates';\nimport {\n TxTreeDropPosition,\n TxTreeFilterContext,\n TxTreeFilterEvent,\n TxTreeFilterMode,\n TxTreeLoadingMode,\n TxTreeNode,\n TxTreeNodeContext,\n TxTreeNodeDropEvent,\n TxTreeNodeEvent,\n TxTreePart,\n TxTreeScope,\n TxTreeSelection,\n TxTreeSelectionMode,\n} from './tree.types';\nimport {\n branchKeys,\n descendantKeys,\n filterTree,\n findNode,\n insertNode,\n isDescendantOf,\n isLeafNode,\n moveNode,\n normalizeChecked,\n removeNode,\n scopesMatch,\n siblingsOf,\n walkTree,\n} from './tree.utils';\nimport { TREE_ICON_DEFAULTS } from './tree.icons';\nimport { TREE_THEME } from './tree.theme';\n\n/** One rendered node of `tx-tree` with the state the template needs. */\nexport interface TxTreeRow<T = unknown> {\n /** DOM id of the node element. */\n id: string;\n /** The node data. */\n node: TxTreeNode<T>;\n /** Depth of the node, the first level is 1. */\n level: number;\n /** Number of siblings on this level, for `aria-setsize`. */\n setSize: number;\n /** Position among the siblings from 1, for `aria-posinset`. */\n posInSet: number;\n /** Key of the parent node; `null` at the top. */\n parentKey: string | null;\n /** Whether the node has no children to show. */\n leaf: boolean;\n /** Whether the node is open. */\n expanded: boolean;\n /** Whether the node is loading its children. */\n loading: boolean;\n /** Whether the node is selected. */\n selected: boolean;\n /** Whether the node is checked. */\n checked: boolean;\n /** Whether some, not all, descendants are checked. */\n partial: boolean;\n /** Whether the node can be selected or checked. */\n selectable: boolean;\n /** Whether the node can be dragged. */\n draggable: boolean;\n /** Icon shown for the node in its current state; `null` for none. */\n icon: TxIconName | null;\n /** Rows of the child nodes that are rendered. */\n children: TxTreeRow<T>[];\n}\n\n/** Where a drag would land now. */\ninterface TxTreeDropTarget {\n /** Key of the target node; `null` for the empty root. */\n key: string | null;\n /** Where the node lands relative to the target. */\n position: TxTreeDropPosition;\n}\n\n/**\n * A hierarchy as a WAI-ARIA tree: open, select, check, search, load lazily, drag and drop,\n * and a context menu.\n */\n@Component({\n selector: 'tx-tree',\n imports: [NgTemplateOutlet, TxIcon, TxIconField, TxInputIcon, TxInput, TxMenu],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tree',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-tree--loading]': 'loading()',\n '[class.tx-tree--scrollable]': 'scrollHeight() === \"flex\"',\n },\n viewProviders: [provideTxIconDefaults(TREE_ICON_DEFAULTS)],\n})\nexport class TxTree<T = unknown> implements TxTreeDragSource {\n private readonly treeTheme = injectTokens(TREE_THEME);\n\n readonly value = model<TxTreeNode<T>[]>([]);\n readonly selectionMode = input<TxTreeSelectionMode | null | undefined>(undefined);\n readonly selection = model<TxTreeSelection<T>>(null);\n readonly expandedKeys = model<string[]>([]);\n readonly metaKeySelection = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly propagateSelectionUp = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly propagateSelectionDown = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly highlightOnSelect = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly contextMenu = input<TxMenuItem[] | null | undefined>(undefined);\n readonly contextMenuSelection = model<TxTreeNode<T> | null>(null);\n readonly draggableNodes = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly droppableNodes = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly draggableScope = input<TxTreeScope>(undefined);\n readonly droppableScope = input<TxTreeScope>(undefined);\n readonly validateDrop = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingMode = input<TxTreeLoadingMode>('mask');\n readonly loadingIcon = input<TxIconName>('spinner');\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly filter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filterBy = input('label');\n readonly filterMode = input<TxTreeFilterMode>('lenient');\n readonly filterPlaceholder = input<string | undefined>(undefined);\n readonly filterInputAutoFocus = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly scrollHeight = input<string | undefined>(undefined);\n readonly virtualScroll = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly virtualScrollItemSize = input(30, { transform: numberAttribute });\n readonly virtualScrollTolerance = input(10, { transform: numberAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTreeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTreePart, TxTree<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly nodeSelect = output<TxTreeNodeEvent<T>>();\n readonly nodeUnselect = output<TxTreeNodeEvent<T>>();\n readonly nodeExpand = output<TxTreeNodeEvent<T>>();\n readonly nodeCollapse = output<TxTreeNodeEvent<T>>();\n readonly nodeContextMenuSelect = output<TxTreeNodeEvent<T>>();\n readonly nodeDoubleClick = output<TxTreeNodeEvent<T>>();\n readonly nodeDrop = output<TxTreeNodeDropEvent<T>>();\n readonly filtered = output<TxTreeFilterEvent<T>>();\n\n readonly nodeTemplates = contentChildren(TxTreeNodeTemplate);\n readonly headerTemplate = contentChild(TxTreeHeader);\n readonly footerTemplate = contentChild(TxTreeFooter);\n readonly emptyTemplate = contentChild(TxTreeEmpty);\n readonly loadingTemplate = contentChild(TxTreeLoading);\n readonly filterTemplate = contentChild(TxTreeFilter);\n readonly toggleIconTemplate = contentChild(TxTreeToggleIcon);\n readonly checkboxIconTemplate = contentChild(TxTreeCheckboxIcon);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly dragService = inject(TxTreeDragService);\n private readonly typeahead = new TxTypeahead();\n private readonly menu = viewChild<TxMenu>('nodeMenu');\n private readonly wrapper = viewChild<ElementRef<HTMLElement>>('wrapper');\n private readonly filterInput = viewChild<ElementRef<HTMLInputElement>>('filterInput');\n private readonly seenKeys = new Set<string>();\n private anchor: HTMLElement | null = null;\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tree', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tree'), ...this.passThrough().root?.style }));\n readonly treeId = uniqueId('tx-tree');\n\n readonly query = signal('');\n readonly focusedKey = signal<string | null>(null);\n readonly pendingKeys = signal<ReadonlySet<string>>(new Set());\n readonly mountedKeys = signal<ReadonlySet<string>>(new Set());\n readonly draggingKey = signal<string | null>(null);\n readonly dropTarget = signal<TxTreeDropTarget | null>(null);\n readonly menuOpen = signal(false);\n readonly menuItems = signal<TxMenuItem[]>([]);\n readonly scrollTop = signal(0);\n readonly viewportHeight = signal(0);\n\n readonly filtering = computed(() => this.filter() && this.query().trim().length > 0);\n readonly filterFields = computed(() =>\n this.filterBy()\n .split(',')\n .map((field) => field.trim())\n .filter(Boolean),\n );\n readonly filteredValue = computed(() => (this.filtering() ? filterTree(this.value(), this.query(), this.filterFields(), this.filterMode()) : this.value()));\n readonly filterExpanded = linkedSignal<ReadonlySet<string>>(() => new Set(this.filtering() ? branchKeys(this.filteredValue()) : []));\n readonly expandedSet = computed<ReadonlySet<string>>(() => (this.filtering() ? this.filterExpanded() : new Set(this.expandedKeys())));\n readonly selectedKeys = computed<ReadonlySet<string>>(() => {\n const selection = this.selection();\n if (!selection) return new Set();\n return new Set((Array.isArray(selection) ? selection : [selection]).map((node) => node.key));\n });\n readonly templatesByType = computed(() => new Map(this.nodeTemplates().map((template) => [template.txTreeNode(), template.templateRef])));\n readonly multiselectable = computed(() => this.selectionMode() === 'multiple' || this.selectionMode() === 'checkbox');\n readonly checkboxMode = computed(() => this.selectionMode() === 'checkbox');\n\n readonly tree = computed<TxTreeRow<T>[]>(() => {\n const expanded = this.expandedSet();\n const mounted = this.virtualScroll() ? new Set<string>() : this.mountedKeys();\n const selected = this.selectedKeys();\n const pending = this.pendingKeys();\n const checkbox = this.checkboxMode();\n const up = this.propagateSelectionUp();\n const draggable = this.draggableNodes();\n const build = (nodes: readonly TxTreeNode<T>[], level: number, parentKey: string | null): TxTreeRow<T>[] =>\n nodes.map((node, index) => {\n const leaf = isLeafNode(node);\n const open = !leaf && expanded.has(node.key);\n const children = (open || mounted.has(node.key)) && node.children?.length ? build(node.children, level + 1, node.key) : [];\n const checked = selected.has(node.key);\n const icon = (open ? node.expandedIcon : node.collapsedIcon) ?? node.icon ?? null;\n return {\n id: `${this.treeId}-${node.key}`,\n node,\n level,\n setSize: nodes.length,\n posInSet: index + 1,\n parentKey,\n leaf,\n expanded: open,\n loading: !!node.loading || (pending.has(node.key) && node.children === undefined),\n selected: checked,\n checked,\n partial: checkbox && up && !checked && this.hasCheckedDescendant(node, selected),\n selectable: !!this.selectionMode() && !node.disabled && node.selectable !== false,\n draggable: draggable && !node.disabled && node.draggable !== false,\n icon,\n children,\n };\n });\n return build(this.filteredValue(), 1, null);\n });\n readonly rows = computed<TxTreeRow<T>[]>(() => {\n const rows: TxTreeRow<T>[] = [];\n const walk = (items: TxTreeRow<T>[]) =>\n items.forEach((item) => {\n rows.push(item);\n if (item.expanded) walk(item.children);\n });\n walk(this.tree());\n return rows;\n });\n readonly tabKey = computed(() => {\n const rows = this.rows();\n const focused = this.focusedKey();\n if (focused && rows.some((row) => row.node.key === focused)) return focused;\n return (rows.find((row) => row.selected) ?? rows[0])?.node.key ?? null;\n });\n readonly windowRange = computed(() => {\n const count = this.rows().length;\n if (!this.virtualScroll()) return { start: 0, end: count };\n const size = this.virtualScrollItemSize();\n const tolerance = this.virtualScrollTolerance();\n const viewport = this.viewportHeight() || size * 10;\n const start = Math.max(0, Math.floor(this.scrollTop() / size) - tolerance);\n const end = Math.min(count, Math.ceil((this.scrollTop() + viewport) / size) + tolerance);\n return { start, end };\n });\n readonly visibleRows = computed(() => {\n const { start, end } = this.windowRange();\n return this.rows().slice(start, end);\n });\n readonly spacerBefore = computed(() => this.windowRange().start * this.virtualScrollItemSize());\n readonly spacerAfter = computed(() => (this.rows().length - this.windowRange().end) * this.virtualScrollItemSize());\n readonly emptyText = computed(() => this.emptyMessage() ?? this.translations().emptyMessage);\n readonly showMask = computed(() => this.loading() && this.loadingMode() === 'mask');\n readonly rootDrop = computed(() => this.dropTarget()?.key === null);\n readonly filterContext = computed<TxTreeFilterContext>(() => ({\n $implicit: this.query(),\n query: this.query(),\n filter: (query: string) => this.filterNodes(query),\n reset: () => this.resetFilter(),\n }));\n\n constructor() {\n effect(() => {\n const fresh: string[] = [];\n walkTree(this.value(), (node) => {\n if (this.seenKeys.has(node.key)) return;\n this.seenKeys.add(node.key);\n if (node.expanded) fresh.push(node.key);\n });\n if (fresh.length) {\n untracked(() => this.expandedKeys.update((keys) => [...keys, ...fresh.filter((key) => !keys.includes(key))]));\n }\n });\n\n effect(() => {\n if (!this.filtering()) return;\n const filter = this.query();\n const filteredValue = this.filteredValue();\n untracked(() => this.filtered.emit({ filter, filteredValue }));\n });\n\n afterNextRender(() => {\n if (this.filterInputAutoFocus()) this.filterInput()?.nativeElement.focus();\n this.measure();\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.anchor?.remove();\n if (this.dragService.state()?.source === this) this.dragService.stop();\n });\n }\n\n templateFor(node: TxTreeNode<T>) {\n const templates = this.templatesByType();\n return templates.get(node.type ?? '') ?? templates.get('') ?? null;\n }\n\n nodeContext(row: TxTreeRow<T>): TxTreeNodeContext<T> {\n return { $implicit: row.node, node: row.node, level: row.level, expanded: row.expanded, selected: row.selected, checked: row.checked, partial: row.partial };\n }\n\n nodeClass(row: TxTreeRow<T>): string {\n return [row.node.styleClass, this.passThrough().node?.class].filter(Boolean).join(' ');\n }\n\n highlighted(row: TxTreeRow<T>): boolean {\n return row.selected && (!this.checkboxMode() || this.highlightOnSelect());\n }\n\n checkState(row: TxTreeRow<T>): 'true' | 'false' | 'mixed' {\n return row.checked ? 'true' : row.partial ? 'mixed' : 'false';\n }\n\n expandAll(): void {\n this.expandedKeys.set(branchKeys(this.value()));\n }\n\n collapseAll(): void {\n this.expandedKeys.set([]);\n }\n\n filterNodes(query: string): void {\n this.query.set(query);\n }\n\n resetFilter(): void {\n this.query.set('');\n const input = this.filterInput()?.nativeElement;\n if (input) input.value = '';\n }\n\n onFilterInput(event: Event): void {\n this.query.set((event.target as HTMLInputElement).value);\n }\n\n onFilterKeydown(event: KeyboardEvent): void {\n if (event.key === 'Enter') {\n event.preventDefault();\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n const key = this.tabKey();\n if (key) this.focusKey(key);\n }\n }\n\n toggle(row: TxTreeRow<T>, event: Event): void {\n event.stopPropagation();\n if (row.leaf) return;\n if (row.expanded) this.collapse(row, event);\n else this.expand(row, event);\n }\n\n expand(row: TxTreeRow<T>, event: Event): void {\n if (row.leaf || row.expanded) return;\n if (this.filtering()) {\n this.filterExpanded.update((keys) => new Set([...keys, row.node.key]));\n } else {\n this.expandedKeys.update((keys) => [...keys, row.node.key]);\n }\n if (row.node.leaf === false && row.node.children === undefined) {\n this.pendingKeys.update((keys) => new Set([...keys, row.node.key]));\n }\n this.nodeExpand.emit({ node: row.node, originalEvent: event });\n }\n\n onCollapseEnd(row: TxTreeRow<T>, event: TransitionEvent): void {\n if (event.target !== event.currentTarget || event.propertyName !== 'grid-template-rows' || row.expanded) return;\n this.mountedKeys.update((keys) => new Set([...keys].filter((key) => key !== row.node.key)));\n }\n\n collapse(row: TxTreeRow<T>, event: Event): void {\n if (!row.expanded) return;\n this.mountedKeys.update((keys) => new Set([...keys, row.node.key]));\n if (this.filtering()) {\n this.filterExpanded.update((keys) => new Set([...keys].filter((key) => key !== row.node.key)));\n } else {\n this.expandedKeys.update((keys) => keys.filter((key) => key !== row.node.key));\n }\n this.nodeCollapse.emit({ node: row.node, originalEvent: event });\n }\n\n onNodeClick(row: TxTreeRow<T>, event: MouseEvent | KeyboardEvent): void {\n this.focusedKey.set(row.node.key);\n if (!row.selectable) return;\n if (this.checkboxMode()) {\n this.toggleCheck(row, event);\n return;\n }\n const metaKey = event.metaKey || event.ctrlKey;\n const useMeta = this.metaKeySelection();\n if (this.selectionMode() === 'single') {\n if (row.selected) {\n if (!useMeta || metaKey) {\n this.selection.set(null);\n this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n }\n return;\n }\n this.selection.set(row.node);\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n return;\n }\n const current = this.currentSelection();\n if (useMeta && !metaKey) {\n const only = current.length === 1 && current[0].key === row.node.key;\n if (only) return;\n this.selection.set([row.node]);\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n return;\n }\n if (row.selected) {\n this.selection.set(current.filter((node) => node.key !== row.node.key));\n this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n } else {\n this.selection.set(this.inTreeOrder([...current.map((node) => node.key), row.node.key]));\n this.nodeSelect.emit({ node: row.node, originalEvent: event });\n }\n }\n\n onNodeDoubleClick(row: TxTreeRow<T>, event: MouseEvent): void {\n this.nodeDoubleClick.emit({ node: row.node, originalEvent: event });\n }\n\n onNodeContextMenu(row: TxTreeRow<T>, event: MouseEvent | KeyboardEvent): void {\n const items = this.contextMenu();\n if (!items?.length) return;\n event.preventDefault();\n event.stopPropagation();\n this.focusedKey.set(row.node.key);\n this.contextMenuSelection.set(row.node);\n this.nodeContextMenuSelect.emit({ node: row.node, originalEvent: event });\n this.menuItems.set(items);\n this.openMenuAt(event);\n }\n\n onMenuClosed(): void {\n this.menuOpen.set(false);\n this.anchor?.remove();\n this.anchor = null;\n const key = this.focusedKey();\n if (key && !this.host.nativeElement.contains(this.document.activeElement)) this.focusKey(key);\n }\n\n onTreeFocusIn(event: FocusEvent): void {\n const key = (event.target as HTMLElement).dataset['treeKey'];\n if (key !== undefined && key !== this.focusedKey()) this.focusedKey.set(key);\n }\n\n onTreeKeydown(event: KeyboardEvent): void {\n const target = event.target as HTMLElement;\n if (target.getAttribute('role') !== 'treeitem' || event.target !== event.currentTarget) return;\n const focused = target.dataset['treeKey'] ?? null;\n if (focused !== this.focusedKey()) this.focusedKey.set(focused);\n const rows = this.rows();\n const index = rows.findIndex((row) => row.node.key === focused);\n const row = rows[index];\n if (!row) return;\n if (event.altKey && this.draggableNodes() && this.droppableNodes() && this.moveByKey(row, event)) {\n event.preventDefault();\n return;\n }\n switch (event.key) {\n case 'ArrowDown':\n this.focusIndex(index + 1, event);\n return;\n case 'ArrowUp':\n this.focusIndex(index - 1, event);\n return;\n case 'Home':\n this.focusIndex(0, event);\n return;\n case 'End':\n this.focusIndex(rows.length - 1, event);\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (!row.leaf && !row.expanded) this.expand(row, event);\n else if (row.children.length) this.focusKey(row.children[0].node.key);\n return;\n case 'ArrowLeft':\n event.preventDefault();\n if (row.expanded) this.collapse(row, event);\n else if (row.parentKey) this.focusKey(row.parentKey);\n return;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.onNodeClick(row, event);\n return;\n case '*': {\n event.preventDefault();\n const siblings = rows.filter((item) => item.parentKey === row.parentKey && item.level === row.level && !item.leaf && !item.expanded);\n siblings.forEach((item) => this.expand(item, event));\n return;\n }\n case 'ContextMenu':\n this.onNodeContextMenu(row, event);\n return;\n case 'F10':\n if (event.shiftKey) this.onNodeContextMenu(row, event);\n return;\n }\n if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n const found = this.typeahead.search(\n event.key,\n rows.map((item) => item.node.label),\n index,\n );\n if (found !== null) {\n event.preventDefault();\n this.focusKey(rows[found].node.key);\n }\n }\n }\n\n onScroll(event: Event): void {\n if (!this.virtualScroll()) return;\n const element = event.target as HTMLElement;\n this.scrollTop.set(element.scrollTop);\n this.viewportHeight.set(element.clientHeight);\n }\n\n onDragStart(row: TxTreeRow<T>, event: DragEvent): void {\n if (!row.draggable) {\n event.preventDefault();\n return;\n }\n event.stopPropagation();\n event.dataTransfer?.setData('text/plain', row.node.label);\n if (event.dataTransfer) event.dataTransfer.effectAllowed = 'move';\n this.draggingKey.set(row.node.key);\n this.dragService.start({ node: row.node, scope: this.draggableScope(), source: this });\n }\n\n onDragOver(row: TxTreeRow<T>, event: DragEvent): void {\n const state = this.dragService.state();\n if (!state || !this.droppableNodes()) return;\n event.stopPropagation();\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const ratio = rect.height ? (event.clientY - rect.top) / rect.height : 0.5;\n const inside = row.node.droppable !== false;\n const position: TxTreeDropPosition = ratio < 0.25 || (!inside && ratio < 0.5) ? 'before' : ratio > 0.75 || !inside ? 'after' : 'inside';\n if (!this.canDrop(state.node, state.source === this, state.scope, row.node.key)) {\n this.dropTarget.set(null);\n return;\n }\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n const current = this.dropTarget();\n if (current?.key !== row.node.key || current.position !== position) this.dropTarget.set({ key: row.node.key, position });\n }\n\n onDragLeave(row: TxTreeRow<T>, event: DragEvent): void {\n const related = event.relatedTarget as Node | null;\n if (related && (event.currentTarget as HTMLElement).contains(related)) return;\n if (this.dropTarget()?.key === row.node.key) this.dropTarget.set(null);\n }\n\n onRootDragOver(event: DragEvent): void {\n const state = this.dragService.state();\n if (!state || !this.droppableNodes() || !this.canDrop(state.node, state.source === this, state.scope, null)) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n if (this.dropTarget()?.key !== null) this.dropTarget.set({ key: null, position: 'inside' });\n }\n\n onRootDragLeave(event: DragEvent): void {\n const related = event.relatedTarget as Node | null;\n if (related && (event.currentTarget as HTMLElement).contains(related)) return;\n this.dropTarget.set(null);\n }\n\n onDrop(event: DragEvent): void {\n const state = this.dragService.state();\n const target = this.dropTarget();\n this.dropTarget.set(null);\n if (!state || !target) return;\n event.preventDefault();\n event.stopPropagation();\n this.drop(state.node, state.source, target.key, target.position, event);\n this.dragService.stop();\n }\n\n onDragEnd(): void {\n this.draggingKey.set(null);\n this.dropTarget.set(null);\n if (this.dragService.state()?.source === this) this.dragService.stop();\n }\n\n removeDraggedNode(key: string): void {\n this.value.set(removeNode(this.value(), key));\n }\n\n private canDrop(node: TxTreeNode, sameTree: boolean, scope: TxTreeScope, targetKey: string | null): boolean {\n if (!scopesMatch(sameTree ? (scope ?? this.droppableScope()) : scope, this.droppableScope())) return false;\n if (targetKey === null) return true;\n if (targetKey === node.key) return false;\n return !(sameTree && isDescendantOf(this.value(), node.key, targetKey));\n }\n\n private drop(node: TxTreeNode, source: TxTreeDragSource, targetKey: string | null, position: TxTreeDropPosition, event: Event): void {\n const dragNode = node as TxTreeNode<T>;\n const sameTree = source === this;\n const base = this.value();\n const next = sameTree ? moveNode(base, dragNode.key, targetKey, position) : insertNode(removeNode(base, dragNode.key), dragNode, targetKey, position);\n const index = siblingsOf(next, dragNode.key).findIndex((item) => item.key === dragNode.key);\n const dropNode = targetKey === null ? null : findNode(base, targetKey);\n const accept = () => {\n if (!sameTree) source.removeDraggedNode(dragNode.key);\n this.value.set(next);\n if (position === 'inside' && targetKey !== null && !this.expandedKeys().includes(targetKey)) {\n this.expandedKeys.update((keys) => [...keys, targetKey]);\n }\n };\n this.nodeDrop.emit({ dragNode, dropNode, position, index, originalEvent: event, accept });\n if (!this.validateDrop()) accept();\n }\n\n private moveByKey(row: TxTreeRow<T>, event: KeyboardEvent): boolean {\n if (!row.draggable) return false;\n const siblings = this.rows().filter((item) => item.parentKey === row.parentKey && item.level === row.level);\n const position = siblings.findIndex((item) => item.node.key === row.node.key);\n let target: TxTreeDropTarget | null = null;\n if (event.key === 'ArrowUp' && position > 0) target = { key: siblings[position - 1].node.key, position: 'before' };\n else if (event.key === 'ArrowDown' && position < siblings.length - 1) target = { key: siblings[position + 1].node.key, position: 'after' };\n else if (event.key === 'ArrowRight' && position > 0 && siblings[position - 1].node.droppable !== false) target = { key: siblings[position - 1].node.key, position: 'inside' };\n else if (event.key === 'ArrowLeft' && row.parentKey) target = { key: row.parentKey, position: 'after' };\n if (!target) return false;\n this.drop(row.node, this, target.key, target.position, event);\n this.focusKey(row.node.key);\n return true;\n }\n\n private toggleCheck(row: TxTreeRow<T>, event: Event): void {\n const keys = new Set(this.selectedKeys());\n const check = !row.checked;\n const affected = this.propagateSelectionDown() ? [row.node.key, ...descendantKeys(row.node)] : [row.node.key];\n affected.forEach((key) => (check ? keys.add(key) : keys.delete(key)));\n const ordered = this.propagateSelectionUp() ? normalizeChecked(this.value(), [...keys]) : [...keys];\n this.selection.set(this.inTreeOrder(ordered));\n if (check) this.nodeSelect.emit({ node: row.node, originalEvent: event });\n else this.nodeUnselect.emit({ node: row.node, originalEvent: event });\n }\n\n private hasCheckedDescendant(node: TxTreeNode<T>, selected: ReadonlySet<string>): boolean {\n return (node.children ?? []).some((child) => selected.has(child.key) || this.hasCheckedDescendant(child, selected));\n }\n\n private currentSelection(): TxTreeNode<T>[] {\n const selection = this.selection();\n return selection ? (Array.isArray(selection) ? selection : [selection]) : [];\n }\n\n private inTreeOrder(keys: readonly string[]): TxTreeNode<T>[] {\n const wanted = new Set(keys);\n const nodes: TxTreeNode<T>[] = [];\n walkTree(this.value(), (node) => {\n if (wanted.has(node.key)) nodes.push(node);\n });\n return nodes;\n }\n\n private focusIndex(index: number, event: Event): void {\n event.preventDefault();\n const rows = this.rows();\n const row = rows[Math.max(0, Math.min(rows.length - 1, index))];\n if (row) this.focusKey(row.node.key);\n }\n\n focusKey(key: string): void {\n this.focusedKey.set(key);\n if (this.virtualScroll()) this.scrollToKey(key);\n afterNextRender(\n () => {\n const element = Array.from(this.host.nativeElement.querySelectorAll<HTMLElement>('[data-tree-key]')).find((item) => item.dataset['treeKey'] === key);\n element?.focus({ preventScroll: this.virtualScroll() });\n if (!this.virtualScroll()) element?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n private scrollToKey(key: string): void {\n const wrapper = this.wrapper()?.nativeElement;\n const index = this.rows().findIndex((row) => row.node.key === key);\n if (!wrapper || index < 0) return;\n const size = this.virtualScrollItemSize();\n const top = index * size;\n const height = wrapper.clientHeight;\n let next = wrapper.scrollTop;\n if (top < next) next = top;\n else if (top + size > next + height) next = top + size - height;\n wrapper.scrollTop = next;\n this.scrollTop.set(next);\n this.viewportHeight.set(height);\n }\n\n private measure(): void {\n const wrapper = this.wrapper()?.nativeElement;\n if (wrapper) this.viewportHeight.set(wrapper.clientHeight);\n }\n\n private openMenuAt(event: MouseEvent | KeyboardEvent): void {\n const menu = this.menu();\n if (!menu) return;\n const point =\n event instanceof MouseEvent && (event.clientX || event.clientY)\n ? { x: event.clientX, y: event.clientY }\n : (() => {\n const rect = (event.target as HTMLElement).getBoundingClientRect();\n return { x: rect.left + 16, y: rect.bottom };\n })();\n menu.hide();\n this.anchor?.remove();\n const anchor = this.document.createElement('div');\n Object.assign(anchor.style, { position: 'fixed', left: `${point.x}px`, top: `${point.y}px`, width: '0', height: '0', pointerEvents: 'none' });\n this.document.body.appendChild(anchor);\n this.anchor = anchor;\n this.menuOpen.set(true);\n menu.show(anchor, 'first', true);\n }\n}\n","@if (showMask()) {\n <div class=\"tx-tree__mask\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-icon class=\"tx-tree__loading-icon\" role=\"img\" [name]=\"loadingIcon()\" [attr.aria-label]=\"translations().loading\" />\n }\n </div>\n}\n\n@if (headerTemplate(); as headerTemplate) {\n <div class=\"tx-tree__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate.templateRef\" />\n </div>\n}\n\n@if (filterTemplate(); as filterTemplate) {\n <div class=\"tx-tree__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <ng-container [ngTemplateOutlet]=\"filterTemplate.templateRef\" [ngTemplateOutletContext]=\"filterContext()\" />\n </div>\n} @else if (filter()) {\n <tx-icon-field class=\"tx-tree__filter\" fluid [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <input\n #filterInput\n txInput\n type=\"search\"\n autocomplete=\"off\"\n class=\"tx-tree__filter-input\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"treeId\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [unstyled]=\"isUnstyled()\"\n [value]=\"query()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n <tx-input-icon icon=\"search\" position=\"end\" />\n </tx-icon-field>\n}\n\n<div\n #wrapper\n class=\"tx-tree__wrapper\"\n [class.tx-tree__wrapper--drop]=\"rootDrop()\"\n [style.max-height]=\"scrollHeight() && scrollHeight() !== 'flex' ? scrollHeight() : null\"\n [class]=\"passThrough().wrapper?.class\"\n [style]=\"passThrough().wrapper?.style\"\n (scroll)=\"onScroll($event)\"\n (dragover)=\"onRootDragOver($event)\"\n (dragleave)=\"onRootDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n @if (rows().length) {\n <ul\n class=\"tx-tree__list\"\n role=\"tree\"\n [id]=\"treeId\"\n [class.tx-tree__list--virtual]=\"virtualScroll()\"\n [attr.aria-multiselectable]=\"multiselectable() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-busy]=\"loading() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n >\n @if (virtualScroll()) {\n @if (spacerBefore()) {\n <li class=\"tx-tree__spacer\" role=\"none\" aria-hidden=\"true\" [style.height.px]=\"spacerBefore()\"></li>\n }\n @for (row of visibleRows(); track row.node.key) {\n <ng-container [ngTemplateOutlet]=\"nodeItem\" [ngTemplateOutletContext]=\"{ $implicit: row, flat: true }\" />\n }\n @if (spacerAfter()) {\n <li class=\"tx-tree__spacer\" role=\"none\" aria-hidden=\"true\" [style.height.px]=\"spacerAfter()\"></li>\n }\n } @else {\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: tree() }\" />\n }\n </ul>\n } @else {\n <div class=\"tx-tree__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyText() }}\n }\n </div>\n }\n</div>\n\n@if (footerTemplate(); as footerTemplate) {\n <div class=\"tx-tree__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate.templateRef\" />\n </div>\n}\n\n<tx-tiered-menu\n #nodeMenu\n popup\n variant=\"context\"\n placement=\"bottom-start\"\n [offset]=\"0\"\n [model]=\"menuItems()\"\n [ariaLabel]=\"translations().nodeActions\"\n [unstyled]=\"isUnstyled()\"\n (closed)=\"onMenuClosed()\"\n/>\n\n<ng-template #branch let-rows>\n @for (row of rows; track row.node.key) {\n <ng-container [ngTemplateOutlet]=\"nodeItem\" [ngTemplateOutletContext]=\"{ $implicit: row, flat: false }\" />\n }\n</ng-template>\n\n<ng-template #nodeItem let-row let-flat=\"flat\">\n <li\n class=\"tx-tree__node\"\n role=\"none\"\n [class.tx-tree__node--leaf]=\"row.leaf\"\n [style.height.px]=\"flat ? virtualScrollItemSize() : null\"\n [style.--tx-tree-level]=\"row.level - 1\"\n [class]=\"nodeClass(row)\"\n [style]=\"passThrough().node?.style\"\n >\n <div\n class=\"tx-tree__content\"\n role=\"treeitem\"\n [id]=\"row.id\"\n [attr.data-tree-key]=\"row.node.key\"\n [attr.tabindex]=\"row.node.key === tabKey() ? 0 : -1\"\n [attr.aria-label]=\"row.node.label\"\n [attr.aria-level]=\"row.level\"\n [attr.aria-setsize]=\"row.setSize\"\n [attr.aria-posinset]=\"row.posInSet\"\n [attr.aria-expanded]=\"row.leaf ? null : row.expanded\"\n [attr.aria-selected]=\"selectionMode() && !checkboxMode() ? row.selected : null\"\n [attr.aria-checked]=\"checkboxMode() ? checkState(row) : null\"\n [attr.aria-disabled]=\"row.node.disabled || null\"\n [attr.aria-busy]=\"row.loading || null\"\n [attr.aria-owns]=\"!flat && row.expanded && row.children.length ? row.id + '-group' : null\"\n [class.tx-tree__content--selectable]=\"row.selectable\"\n [class.tx-tree__content--selected]=\"highlighted(row)\"\n [class.tx-tree__content--disabled]=\"row.node.disabled\"\n [class.tx-tree__content--dragging]=\"draggingKey() === row.node.key\"\n [class.tx-tree__content--drop-inside]=\"dropTarget()?.key === row.node.key && dropTarget()?.position === 'inside'\"\n [class.tx-tree__content--context]=\"menuOpen() && contextMenuSelection()?.key === row.node.key\"\n [class.tx-tree__content--flat]=\"flat\"\n [attr.draggable]=\"row.draggable || null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n (click)=\"onNodeClick(row, $event)\"\n (keydown)=\"onTreeKeydown($event)\"\n (focus)=\"onTreeFocusIn($event)\"\n (dblclick)=\"onNodeDoubleClick(row, $event)\"\n (contextmenu)=\"onNodeContextMenu(row, $event)\"\n (dragstart)=\"onDragStart(row, $event)\"\n (dragover)=\"onDragOver(row, $event)\"\n (dragleave)=\"onDragLeave(row, $event)\"\n (drop)=\"onDrop($event)\"\n (dragend)=\"onDragEnd()\"\n >\n @if (dropTarget()?.key === row.node.key && dropTarget()?.position !== 'inside') {\n <span\n class=\"tx-tree__drop-point\"\n aria-hidden=\"true\"\n [class.tx-tree__drop-point--after]=\"dropTarget()?.position === 'after'\"\n [class]=\"passThrough().dropPoint?.class\"\n [style]=\"passThrough().dropPoint?.style\"\n ></span>\n }\n <button\n type=\"button\"\n class=\"tx-tree__toggler\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.tx-tree__toggler--hidden]=\"row.leaf\"\n [class]=\"passThrough().toggler?.class\"\n [style]=\"passThrough().toggler?.style\"\n (click)=\"toggle(row, $event)\"\n >\n @if (toggleIconTemplate(); as toggleIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"toggleIconTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row.expanded, expanded: row.expanded, loading: row.loading }\"\n />\n } @else if (row.loading) {\n <tx-icon class=\"tx-tree__toggler-icon tx-tree__toggler-icon--loading\" [name]=\"'spinner'\" />\n } @else {\n <tx-icon class=\"tx-tree__toggler-icon\" [class.tx-tree__toggler-icon--open]=\"row.expanded\" [name]=\"'chevron-right'\" />\n }\n </button>\n @if (checkboxMode()) {\n <span\n class=\"tx-tree__checkbox\"\n aria-hidden=\"true\"\n [class.tx-tree__checkbox--checked]=\"row.checked\"\n [class.tx-tree__checkbox--partial]=\"row.partial\"\n [class.tx-tree__checkbox--disabled]=\"!row.selectable\"\n [class]=\"passThrough().checkbox?.class\"\n [style]=\"passThrough().checkbox?.style\"\n >\n @if (checkboxIconTemplate(); as checkboxIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"checkboxIconTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row.checked, checked: row.checked, partial: row.partial }\"\n />\n } @else if (row.checked) {\n <tx-icon [name]=\"'check'\" />\n } @else if (row.partial) {\n <tx-icon [name]=\"'minus'\" />\n }\n </span>\n }\n @if (row.icon) {\n <tx-icon class=\"tx-tree__icon\" aria-hidden=\"true\" [name]=\"row.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n }\n <span class=\"tx-tree__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (templateFor(row.node); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"nodeContext(row)\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </div>\n @if (!flat && row.node.children?.length) {\n <div\n class=\"tx-tree__collapse\"\n [class.tx-tree__collapse--open]=\"row.expanded\"\n [attr.inert]=\"row.expanded ? null : ''\"\n (transitionend)=\"onCollapseEnd(row, $event)\"\n >\n <div class=\"tx-tree__collapse-inner\">\n @if (row.children.length) {\n <ul class=\"tx-tree__children\" role=\"group\" [id]=\"row.id + '-group'\" [class]=\"passThrough().children?.class\" [style]=\"passThrough().children?.style\">\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: row.children }\" />\n </ul>\n }\n </div>\n </div>\n }\n </li>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAqBA,IAAa,oBAAb,MAAa,kBAAiB;CAEnB,QAAQ,OAA+B,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAGrD,MAAM,OAAsB;EAC1B,KAAK,MA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EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACZ,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACb,WAAW,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACT,aAAa,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACd,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,oBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACR,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,sBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACd,kBAAkB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAOrB,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACU,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACA,eAAa,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -8,6 +8,10 @@ import { TxIcon, provideTxIconDefaults, txIconSpinner } from "@tectra-ng/icons";
8
8
  import { toStyleObject, virtualScrollerTokens } from "@tectra-ng/themes";
9
9
  var TxVirtualScrollerItem = class TxVirtualScrollerItem {
10
10
  templateRef = inject(TemplateRef);
11
+ txVirtualScrollerItemOf = input(void 0, ...ngDevMode ? [{ debugName: "txVirtualScrollerItemOf" }] : /* istanbul ignore next */ []);
12
+ static ngTemplateContextGuard(_directive, context) {
13
+ return !!context;
14
+ }
11
15
  static ɵfac = i0.ɵɵngDeclareFactory({
12
16
  minVersion: "12.0.0",
13
17
  version: "22.2.5",
@@ -17,11 +21,18 @@ var TxVirtualScrollerItem = class TxVirtualScrollerItem {
17
21
  target: i0.ɵɵFactoryTarget.Directive
18
22
  });
19
23
  static ɵdir = i0.ɵɵngDeclareDirective({
20
- minVersion: "14.0.0",
24
+ minVersion: "17.1.0",
21
25
  version: "22.2.5",
22
26
  type: TxVirtualScrollerItem,
23
27
  isStandalone: true,
24
28
  selector: "ng-template[txVirtualScrollerItem]",
29
+ inputs: { txVirtualScrollerItemOf: {
30
+ classPropertyName: "txVirtualScrollerItemOf",
31
+ publicName: "txVirtualScrollerItemOf",
32
+ isSignal: true,
33
+ isRequired: false,
34
+ transformFunction: null
35
+ } },
25
36
  ngImport: i0
26
37
  });
27
38
  };
@@ -33,10 +44,21 @@ i0.ɵɵngDeclareClassMetadata({
33
44
  decorators: [{
34
45
  type: Directive,
35
46
  args: [{ selector: "ng-template[txVirtualScrollerItem]" }]
36
- }]
47
+ }],
48
+ propDecorators: { txVirtualScrollerItemOf: [{
49
+ type: i0.Input,
50
+ args: [{
51
+ isSignal: true,
52
+ alias: "txVirtualScrollerItemOf",
53
+ required: false
54
+ }]
55
+ }] }
37
56
  });
38
57
  var TxVirtualScrollerLoader = class TxVirtualScrollerLoader {
39
58
  templateRef = inject(TemplateRef);
59
+ static ngTemplateContextGuard(_directive, context) {
60
+ return !!context;
61
+ }
40
62
  static ɵfac = i0.ɵɵngDeclareFactory({
41
63
  minVersion: "12.0.0",
42
64
  version: "22.2.5",
@@ -95,6 +117,10 @@ i0.ɵɵngDeclareClassMetadata({
95
117
  });
96
118
  var TxVirtualScrollerContent = class TxVirtualScrollerContent {
97
119
  templateRef = inject(TemplateRef);
120
+ txVirtualScrollerContentOf = input(void 0, ...ngDevMode ? [{ debugName: "txVirtualScrollerContentOf" }] : /* istanbul ignore next */ []);
121
+ static ngTemplateContextGuard(_directive, context) {
122
+ return !!context;
123
+ }
98
124
  static ɵfac = i0.ɵɵngDeclareFactory({
99
125
  minVersion: "12.0.0",
100
126
  version: "22.2.5",
@@ -104,11 +130,18 @@ var TxVirtualScrollerContent = class TxVirtualScrollerContent {
104
130
  target: i0.ɵɵFactoryTarget.Directive
105
131
  });
106
132
  static ɵdir = i0.ɵɵngDeclareDirective({
107
- minVersion: "14.0.0",
133
+ minVersion: "17.1.0",
108
134
  version: "22.2.5",
109
135
  type: TxVirtualScrollerContent,
110
136
  isStandalone: true,
111
137
  selector: "ng-template[txVirtualScrollerContent]",
138
+ inputs: { txVirtualScrollerContentOf: {
139
+ classPropertyName: "txVirtualScrollerContentOf",
140
+ publicName: "txVirtualScrollerContentOf",
141
+ isSignal: true,
142
+ isRequired: false,
143
+ transformFunction: null
144
+ } },
112
145
  ngImport: i0
113
146
  });
114
147
  };
@@ -120,7 +153,15 @@ i0.ɵɵngDeclareClassMetadata({
120
153
  decorators: [{
121
154
  type: Directive,
122
155
  args: [{ selector: "ng-template[txVirtualScrollerContent]" }]
123
- }]
156
+ }],
157
+ propDecorators: { txVirtualScrollerContentOf: [{
158
+ type: i0.Input,
159
+ args: [{
160
+ isSignal: true,
161
+ alias: "txVirtualScrollerContentOf",
162
+ required: false
163
+ }]
164
+ }] }
124
165
  });
125
166
  const VIRTUAL_SCROLLER_ICON_DEFAULTS = { spinner: txIconSpinner };
126
167
  const VIRTUAL_SCROLLER_THEME = { virtualScroller: virtualScrollerTokens };