@tectra-ng/ui 0.3.2 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +2 -2
  2. package/data-view/README.md +9 -1
  3. package/dialog/README.md +3 -0
  4. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
  19. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-table.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
  51. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
  53. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  55. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui.mjs +1 -1
  57. package/fesm2022/tectra-ng-ui.mjs.map +1 -1
  58. package/package.json +4 -4
  59. package/table/README.md +1 -0
  60. package/tree-select/README.md +1 -0
  61. package/types/tectra-ng-ui-accordion.d.ts +96 -65
  62. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  63. package/types/tectra-ng-ui-amount.d.ts +40 -17
  64. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  65. package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
  66. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  67. package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
  68. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  69. package/types/tectra-ng-ui-avatar.d.ts +84 -259
  70. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  71. package/types/tectra-ng-ui-badge.d.ts +18 -61
  72. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  73. package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
  74. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  75. package/types/tectra-ng-ui-button-group.d.ts +4 -0
  76. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  77. package/types/tectra-ng-ui-button.d.ts +45 -266
  78. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  79. package/types/tectra-ng-ui-card.d.ts +14 -16
  80. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  81. package/types/tectra-ng-ui-carousel.d.ts +55 -27
  82. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  83. package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
  84. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  85. package/types/tectra-ng-ui-checkbox.d.ts +79 -119
  86. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  87. package/types/tectra-ng-ui-chip.d.ts +19 -22
  88. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  89. package/types/tectra-ng-ui-chips-input.d.ts +41 -11
  90. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  91. package/types/tectra-ng-ui-color-picker.d.ts +51 -47
  92. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  93. package/types/tectra-ng-ui-confirm.d.ts +45 -0
  94. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  95. package/types/tectra-ng-ui-countdown.d.ts +42 -10
  96. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  97. package/types/tectra-ng-ui-country-select.d.ts +41 -96
  98. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  99. package/types/tectra-ng-ui-country.d.ts +40 -17
  100. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  101. package/types/tectra-ng-ui-data-view.d.ts +92 -34
  102. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  103. package/types/tectra-ng-ui-datepicker.d.ts +186 -147
  104. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  105. package/types/tectra-ng-ui-dialog.d.ts +149 -67
  106. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  107. package/types/tectra-ng-ui-divider.d.ts +17 -12
  108. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  109. package/types/tectra-ng-ui-drawer.d.ts +31 -67
  110. package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
  111. package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
  112. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-export-font.d.ts +1 -0
  114. package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-export.d.ts +238 -0
  116. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  117. package/types/tectra-ng-ui-field.d.ts +24 -11
  118. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-fieldset.d.ts +14 -23
  120. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-file-upload.d.ts +127 -115
  122. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-galleria.d.ts +84 -84
  124. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  125. package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
  126. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  127. package/types/tectra-ng-ui-icon-field.d.ts +20 -0
  128. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  129. package/types/tectra-ng-ui-image.d.ts +60 -36
  130. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-input-group.d.ts +9 -0
  132. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-input-mask.d.ts +39 -0
  134. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  135. package/types/tectra-ng-ui-input-number.d.ts +73 -15
  136. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  137. package/types/tectra-ng-ui-input-otp.d.ts +28 -21
  138. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  139. package/types/tectra-ng-ui-input.d.ts +17 -50
  140. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  141. package/types/tectra-ng-ui-key-filter.d.ts +14 -0
  142. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  143. package/types/tectra-ng-ui-knob.d.ts +38 -18
  144. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  145. package/types/tectra-ng-ui-label.d.ts +19 -0
  146. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  147. package/types/tectra-ng-ui-link.d.ts +39 -34
  148. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  149. package/types/tectra-ng-ui-list-input.d.ts +54 -45
  150. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  151. package/types/tectra-ng-ui-listbox.d.ts +24 -14
  152. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  153. package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
  154. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  155. package/types/tectra-ng-ui-menu.d.ts +92 -166
  156. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  157. package/types/tectra-ng-ui-menubar.d.ts +29 -58
  158. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  159. package/types/tectra-ng-ui-message.d.ts +61 -126
  160. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  161. package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
  162. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-multiselect.d.ts +26 -96
  164. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
  166. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-paginator.d.ts +69 -47
  168. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
  170. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  171. package/types/tectra-ng-ui-panel.d.ts +22 -30
  172. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  173. package/types/tectra-ng-ui-password-generator.d.ts +27 -0
  174. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-password.d.ts +55 -26
  176. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-pill.d.ts +23 -70
  178. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  179. package/types/tectra-ng-ui-popover.d.ts +58 -46
  180. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  181. package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
  182. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
  184. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-radio-button.d.ts +64 -115
  186. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-rating.d.ts +40 -29
  188. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
  190. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-select.d.ts +169 -100
  192. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-skeleton.d.ts +34 -37
  194. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-slider.d.ts +37 -33
  196. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  197. package/types/tectra-ng-ui-sparkline.d.ts +22 -15
  198. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  199. package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
  200. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  201. package/types/tectra-ng-ui-split-button.d.ts +28 -7
  202. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  203. package/types/tectra-ng-ui-splitter.d.ts +47 -23
  204. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  205. package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
  206. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  207. package/types/tectra-ng-ui-status-icon.d.ts +19 -23
  208. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  209. package/types/tectra-ng-ui-stepper.d.ts +106 -133
  210. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  211. package/types/tectra-ng-ui-table.d.ts +415 -183
  212. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  213. package/types/tectra-ng-ui-tabs.d.ts +91 -133
  214. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-tag.d.ts +46 -135
  216. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  217. package/types/tectra-ng-ui-textarea.d.ts +25 -31
  218. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  219. package/types/tectra-ng-ui-timeline.d.ts +39 -27
  220. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  221. package/types/tectra-ng-ui-toast.d.ts +84 -78
  222. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  223. package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
  224. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  225. package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
  226. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  227. package/types/tectra-ng-ui-toolbar.d.ts +15 -14
  228. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  229. package/types/tectra-ng-ui-tooltip.d.ts +72 -22
  230. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  231. package/types/tectra-ng-ui-tree-select.d.ts +65 -104
  232. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  233. package/types/tectra-ng-ui-tree-table.d.ts +30 -0
  234. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  235. package/types/tectra-ng-ui-tree.d.ts +197 -69
  236. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  237. package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
  238. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  239. package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
  240. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  241. package/types/tectra-ng-ui.d.ts +2 -1
  242. package/types/tectra-ng-ui.d.ts.map +1 -1
@@ -1,92 +1,165 @@
1
1
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
2
  import { TxIconName } from "@tectra-ng/icons";
3
- import { TectraDeepPartial } from "@tectra-ng/themes";
3
+ import { TectraDeepPartial, TectraTreeTokens } from "@tectra-ng/themes";
4
4
  import { TxMenuItem } from "@tectra-ng/ui/menu";
5
5
  import * as i0 from "@angular/core";
6
6
  import { TemplateRef } from "@angular/core";
7
+ /** One node of `tx-tree`: a label with optional children and behaviour flags. */
7
8
  export interface TxTreeNode<T = unknown> {
9
+ /** Unique key of the node in the whole tree. */
8
10
  key: string;
11
+ /** Text of the node. */
9
12
  label: string;
13
+ /** Any data of your own; also searchable with `filterBy` like `data.code`. */
10
14
  data?: T;
15
+ /** Icon of the node. */
11
16
  icon?: TxIconName;
17
+ /** Icon while the node is open; replaces `icon`. */
12
18
  expandedIcon?: TxIconName;
19
+ /** Icon while the node is closed; replaces `icon`. */
13
20
  collapsedIcon?: TxIconName;
21
+ /** Child nodes. */
14
22
  children?: TxTreeNode<T>[];
23
+ /** Forces the node to be a leaf (`true`) or a branch whose children load on open (`false`). */
15
24
  leaf?: boolean;
25
+ /** Opens the node when the tree first sees it. */
16
26
  expanded?: boolean;
27
+ /** Name of the node kind; picks the `txTreeNode="type"` template. */
17
28
  type?: string;
29
+ /** `false` keeps the node from being selected or checked. */
18
30
  selectable?: boolean;
31
+ /** Blocks selection, checking and dragging of the node. */
19
32
  disabled?: boolean;
33
+ /** `false` keeps the node in place when dragging is on. */
20
34
  draggable?: boolean;
35
+ /** `false` refuses drops inside the node. */
21
36
  droppable?: boolean;
37
+ /** Shows the loading state on the node. */
22
38
  loading?: boolean;
39
+ /** Extra CSS class of the node. */
23
40
  styleClass?: string;
24
41
  }
42
+ /** How nodes are selected: one, several, or with checkboxes that check a whole branch. */
25
43
  export type TxTreeSelectionMode = 'single' | 'multiple' | 'checkbox';
44
+ /** `lenient` keeps the whole branch under a match, `strict` only the matching descendants. */
26
45
  export type TxTreeFilterMode = 'lenient' | 'strict';
46
+ /** `mask` covers the tree with a spinner, `icon` only spins the togglers of loading nodes. */
27
47
  export type TxTreeLoadingMode = 'mask' | 'icon';
48
+ /** Where a dragged node lands relative to the target: before it, after it or inside it. */
28
49
  export type TxTreeDropPosition = 'before' | 'after' | 'inside';
50
+ /** Name or names that decide which trees accept nodes from each other; empty means any. */
29
51
  export type TxTreeScope = string | readonly string[] | null | undefined;
52
+ /** Selected node, or nodes in `multiple` / `checkbox` mode; `null` when nothing is selected. */
30
53
  export type TxTreeSelection<T = unknown> = TxTreeNode<T> | TxTreeNode<T>[] | null;
54
+ /** Parts of `tx-tree` that `pt` can style. */
31
55
  export type TxTreePart = 'root' | 'header' | 'filter' | 'filterInput' | 'wrapper' | 'list' | 'node' | 'content' | 'toggler' | 'checkbox' | 'icon' | 'label' | 'children' | 'dropPoint' | 'empty' | 'mask' | 'footer';
56
+ /** Event of a node action: the node and the DOM event. */
32
57
  export interface TxTreeNodeEvent<T = unknown> {
58
+ /** The node the event is about. */
33
59
  node: TxTreeNode<T>;
60
+ /** The DOM event that caused it. */
34
61
  originalEvent: Event;
35
62
  }
63
+ /** Event of `nodeDrop`: what was dropped, where, and a way to confirm it. */
36
64
  export interface TxTreeNodeDropEvent<T = unknown> {
65
+ /** The dragged node. */
37
66
  dragNode: TxTreeNode<T>;
67
+ /** The node dropped on; `null` when dropped on the empty root. */
38
68
  dropNode: TxTreeNode<T> | null;
69
+ /** Where the node lands relative to `dropNode`. */
39
70
  position: TxTreeDropPosition;
71
+ /** Position of the node among its new siblings. */
40
72
  index: number;
73
+ /** The DOM event of the drop. */
41
74
  originalEvent: Event;
75
+ /** Applies the drop; call it when `validateDrop` is on. */
42
76
  accept: () => void;
43
77
  }
78
+ /** Event of `filtered`: the search text and the nodes it left. */
44
79
  export interface TxTreeFilterEvent<T = unknown> {
80
+ /** The search text. */
45
81
  filter: string;
82
+ /** Nodes that match the search. */
46
83
  filteredValue: TxTreeNode<T>[];
47
84
  }
85
+ /** Context of the `txTreeNode` template. */
48
86
  export interface TxTreeNodeContext<T = unknown> {
87
+ /** The node. */
49
88
  $implicit: TxTreeNode<T>;
89
+ /** The node. */
50
90
  node: TxTreeNode<T>;
91
+ /** Depth of the node, the first level is 1. */
51
92
  level: number;
93
+ /** Whether the node is open. */
52
94
  expanded: boolean;
95
+ /** Whether the node is selected. */
53
96
  selected: boolean;
97
+ /** Whether the node is checked. */
54
98
  checked: boolean;
99
+ /** Whether some, not all, descendants are checked. */
55
100
  partial: boolean;
56
101
  }
102
+ /** Context of the `txTreeToggleIcon` template. */
57
103
  export interface TxTreeToggleIconContext {
104
+ /** Whether the node is open. */
58
105
  $implicit: boolean;
106
+ /** Whether the node is open. */
59
107
  expanded: boolean;
108
+ /** Whether the node is loading its children. */
60
109
  loading: boolean;
61
110
  }
111
+ /** Context of the `txTreeCheckboxIcon` template. */
62
112
  export interface TxTreeCheckboxIconContext {
113
+ /** Whether the node is checked. */
63
114
  $implicit: boolean;
115
+ /** Whether the node is checked. */
64
116
  checked: boolean;
117
+ /** Whether some, not all, descendants are checked. */
65
118
  partial: boolean;
66
119
  }
120
+ /** Context of the `txTreeFilter` template. */
67
121
  export interface TxTreeFilterContext {
122
+ /** Current search text. */
68
123
  $implicit: string;
124
+ /** Current search text. */
69
125
  query: string;
126
+ /** Searches the tree for the text. */
70
127
  filter: (query: string) => void;
128
+ /** Clears the search. */
71
129
  reset: () => void;
72
130
  }
131
+ /** A tree that can give up a node dragged out of it into another tree. */
73
132
  export interface TxTreeDragSource {
133
+ /** Removes the node with the key from this tree after it was dropped elsewhere. */
74
134
  removeDraggedNode(key: string): void;
75
135
  }
136
+ /** The drag in progress: the node, its scope and the tree it comes from. */
76
137
  export interface TxTreeDragState {
138
+ /** The dragged node. */
77
139
  node: TxTreeNode;
140
+ /** Scope of the dragged node, matched against `droppableScope` of the target tree. */
78
141
  scope: TxTreeScope;
142
+ /** The tree the node is dragged from. */
79
143
  source: TxTreeDragSource;
80
144
  }
145
+ /** Shares the running drag between trees, so a node can move from one `tx-tree` to another. */
81
146
  export declare class TxTreeDragService {
147
+ /** Signal of the running drag; `null` when nothing is dragged. */
82
148
  readonly state: import("@angular/core").WritableSignal<TxTreeDragState | null>;
149
+ /** Records that a drag began. */
83
150
  start(state: TxTreeDragState): void;
151
+ /** Records that the drag ended. */
84
152
  stop(): void;
85
153
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeDragService, never>;
86
154
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
87
155
  }
156
+ /**
157
+ * `<ng-template txTreeNode let-node>` — content of a node; `txTreeNode="type"` only for nodes of that `type`. Context: `node`, `level`, `expanded`, `selected`, `checked`, `partial`
158
+ * @see https://tectra-ng.com/components/tree
159
+ */
88
160
  export declare class TxTreeNodeTemplate {
89
161
  readonly templateRef: TemplateRef<TxTreeNodeContext<unknown>>;
162
+ /** `<ng-template txTreeNode let-node>` — content of a node; `txTreeNode="type"` only for nodes of that `type`. Context: `node`, `level`, `expanded`, `selected`, `checked`, `partial` */
90
163
  readonly txTreeNode: import("@angular/core").InputSignal<string>;
91
164
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeNodeTemplate, never>;
92
165
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeNodeTemplate, "ng-template[txTreeNode]", never, {
@@ -97,173 +170,200 @@ export declare class TxTreeNodeTemplate {
97
170
  };
98
171
  }, {}, never, never, true, never>;
99
172
  }
173
+ /**
174
+ * `<ng-template txTreeHeader>` — content above the tree
175
+ * @see https://tectra-ng.com/components/tree
176
+ */
100
177
  export declare class TxTreeHeader {
101
178
  readonly templateRef: TemplateRef<void>;
102
179
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeHeader, never>;
103
180
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeHeader, "ng-template[txTreeHeader]", never, {}, {}, never, never, true, never>;
104
181
  }
182
+ /**
183
+ * `<ng-template txTreeFooter>` — content below the tree
184
+ * @see https://tectra-ng.com/components/tree
185
+ */
105
186
  export declare class TxTreeFooter {
106
187
  readonly templateRef: TemplateRef<void>;
107
188
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeFooter, never>;
108
189
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeFooter, "ng-template[txTreeFooter]", never, {}, {}, never, never, true, never>;
109
190
  }
191
+ /**
192
+ * `<ng-template txTreeEmpty>` — own empty state
193
+ * @see https://tectra-ng.com/components/tree
194
+ */
110
195
  export declare class TxTreeEmpty {
111
196
  readonly templateRef: TemplateRef<void>;
112
197
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeEmpty, never>;
113
198
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeEmpty, "ng-template[txTreeEmpty]", never, {}, {}, never, never, true, never>;
114
199
  }
200
+ /**
201
+ * `<ng-template txTreeLoading>` — own content of the loading mask
202
+ * @see https://tectra-ng.com/components/tree
203
+ */
115
204
  export declare class TxTreeLoading {
116
205
  readonly templateRef: TemplateRef<void>;
117
206
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeLoading, never>;
118
207
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeLoading, "ng-template[txTreeLoading]", never, {}, {}, never, never, true, never>;
119
208
  }
209
+ /**
210
+ * `<ng-template txTreeFilter let-query let-filter="filter">` — own search field; call `filter(text)`
211
+ * @see https://tectra-ng.com/components/tree
212
+ */
120
213
  export declare class TxTreeFilter {
121
214
  readonly templateRef: TemplateRef<TxTreeFilterContext>;
122
215
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeFilter, never>;
123
216
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeFilter, "ng-template[txTreeFilter]", never, {}, {}, never, never, true, never>;
124
217
  }
218
+ /**
219
+ * `<ng-template txTreeToggleIcon let-expanded>` — own toggler icon (`loading` in the context)
220
+ * @see https://tectra-ng.com/components/tree
221
+ */
125
222
  export declare class TxTreeToggleIcon {
126
223
  readonly templateRef: TemplateRef<TxTreeToggleIconContext>;
127
224
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeToggleIcon, never>;
128
225
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeToggleIcon, "ng-template[txTreeToggleIcon]", never, {}, {}, never, never, true, never>;
129
226
  }
227
+ /**
228
+ * `<ng-template txTreeCheckboxIcon let-checked let-partial="partial">` — own checkbox icon
229
+ * @see https://tectra-ng.com/components/tree
230
+ */
130
231
  export declare class TxTreeCheckboxIcon {
131
232
  readonly templateRef: TemplateRef<TxTreeCheckboxIconContext>;
132
233
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeCheckboxIcon, never>;
133
234
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxTreeCheckboxIcon, "ng-template[txTreeCheckboxIcon]", never, {}, {}, never, never, true, never>;
134
235
  }
236
+ /** One rendered node of `tx-tree` with the state the template needs. */
135
237
  export interface TxTreeRow<T = unknown> {
238
+ /** DOM id of the node element. */
136
239
  id: string;
240
+ /** The node data. */
137
241
  node: TxTreeNode<T>;
242
+ /** Depth of the node, the first level is 1. */
138
243
  level: number;
244
+ /** Number of siblings on this level, for `aria-setsize`. */
139
245
  setSize: number;
246
+ /** Position among the siblings from 1, for `aria-posinset`. */
140
247
  posInSet: number;
248
+ /** Key of the parent node; `null` at the top. */
141
249
  parentKey: string | null;
250
+ /** Whether the node has no children to show. */
142
251
  leaf: boolean;
252
+ /** Whether the node is open. */
143
253
  expanded: boolean;
254
+ /** Whether the node is loading its children. */
144
255
  loading: boolean;
256
+ /** Whether the node is selected. */
145
257
  selected: boolean;
258
+ /** Whether the node is checked. */
146
259
  checked: boolean;
260
+ /** Whether some, not all, descendants are checked. */
147
261
  partial: boolean;
262
+ /** Whether the node can be selected or checked. */
148
263
  selectable: boolean;
264
+ /** Whether the node can be dragged. */
149
265
  draggable: boolean;
266
+ /** Icon shown for the node in its current state; `null` for none. */
150
267
  icon: TxIconName | null;
268
+ /** Rows of the child nodes that are rendered. */
151
269
  children: TxTreeRow<T>[];
152
270
  }
271
+ /** Where a drag would land now. */
153
272
  interface TxTreeDropTarget {
273
+ /** Key of the target node; `null` for the empty root. */
154
274
  key: string | null;
275
+ /** Where the node lands relative to the target. */
155
276
  position: TxTreeDropPosition;
156
277
  }
278
+ /**
279
+ * A hierarchy as a WAI-ARIA tree: open, select, check, search, load lazily, drag and drop,
280
+ * and a context menu.
281
+ */
157
282
  export declare class TxTree<T = unknown> implements TxTreeDragSource {
158
283
  private readonly treeTheme;
284
+ /** Nodes of the tree; two-way with `[(value)]`, drag and drop writes the new order back */
159
285
  readonly value: import("@angular/core").ModelSignal<TxTreeNode<T>[]>;
286
+ /** `single`, `multiple` or `checkbox`; leave empty for a tree without selection */
160
287
  readonly selectionMode: import("@angular/core").InputSignal<TxTreeSelectionMode | null | undefined>;
288
+ /** Selected node, or nodes in `multiple` / `checkbox` mode; two-way with `[(selection)]` */
161
289
  readonly selection: import("@angular/core").ModelSignal<TxTreeSelection<T>>;
290
+ /** Keys of the open nodes; two-way. Nodes with `expanded: true` are added on first sight */
162
291
  readonly expandedKeys: import("@angular/core").ModelSignal<string[]>;
292
+ /** A click replaces the selection, Ctrl / ⌘ + click adds or removes a node */
163
293
  readonly metaKeySelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
294
+ /** A parent is checked when all its children are, partly checked when some are */
164
295
  readonly propagateSelectionUp: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
296
+ /** Checking a parent checks its whole branch */
165
297
  readonly propagateSelectionDown: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
298
+ /** Checked nodes also get the selected background */
166
299
  readonly highlightOnSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
300
+ /** Menu items for a right click or Shift + F10 on a node */
167
301
  readonly contextMenu: import("@angular/core").InputSignal<TxMenuItem<unknown>[] | null | undefined>;
302
+ /** The node the menu was opened for; two-way */
168
303
  readonly contextMenuSelection: import("@angular/core").ModelSignal<TxTreeNode<T> | null>;
304
+ /** Nodes can be dragged (`draggable: false` keeps one in place) */
169
305
  readonly draggableNodes: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
306
+ /** Nodes accept drops before, after or inside (`droppable: false` refuses inside) */
170
307
  readonly droppableNodes: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
308
+ /** Scope of the dragged nodes, matched against the target tree's `droppableScope` */
171
309
  readonly draggableScope: import("@angular/core").InputSignal<TxTreeScope>;
310
+ /** Scopes this tree accepts from other trees */
172
311
  readonly droppableScope: import("@angular/core").InputSignal<TxTreeScope>;
312
+ /** The drop waits until `accept()` of the `nodeDrop` event is called */
173
313
  readonly validateDrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
314
+ /** Shows the loading state */
174
315
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
316
+ /** `mask` covers the tree with a spinner, `icon` only spins the togglers of loading nodes */
175
317
  readonly loadingMode: import("@angular/core").InputSignal<TxTreeLoadingMode>;
318
+ /** Icon of the mask */
176
319
  readonly loadingIcon: import("@angular/core").InputSignal<TxIconName>;
320
+ /** Text when there are no nodes or the search found nothing */
177
321
  readonly emptyMessage: import("@angular/core").InputSignal<string | undefined>;
322
+ /** Search field above the tree */
178
323
  readonly filter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
324
+ /** Fields searched, comma separated (`label`, `data.code`) */
179
325
  readonly filterBy: import("@angular/core").InputSignal<string>;
326
+ /** `lenient` keeps the whole branch under a match, `strict` keeps only matching descendants */
180
327
  readonly filterMode: import("@angular/core").InputSignal<TxTreeFilterMode>;
328
+ /** Own placeholder of the search field */
181
329
  readonly filterPlaceholder: import("@angular/core").InputSignal<string | undefined>;
330
+ /** Focuses the search field on start */
182
331
  readonly filterInputAutoFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
332
+ /** Maximum height of the scroll area; `flex` fills the parent */
183
333
  readonly scrollHeight: import("@angular/core").InputSignal<string | undefined>;
334
+ /** Renders only the visible rows (needs `scrollHeight`) */
184
335
  readonly virtualScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
336
+ /** Height of one row in px with virtual scroll */
185
337
  readonly virtualScrollItemSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
338
+ /** Rows rendered above and below the visible ones */
186
339
  readonly virtualScrollTolerance: import("@angular/core").InputSignalWithTransform<number, unknown>;
340
+ /** Accessible name of the tree */
187
341
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
342
+ /** Id of the element that labels the tree */
188
343
  readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
189
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
190
- root: {
191
- background: string;
192
- color: string;
193
- padding: string;
194
- gap: string;
195
- indent: string;
196
- transitionDuration: string;
197
- };
198
- node: {
199
- padding: string;
200
- borderRadius: string;
201
- hoverBackground: string;
202
- selectedBackground: string;
203
- color: string;
204
- hoverColor: string;
205
- selectedColor: string;
206
- gap: string;
207
- focusRing: {
208
- width: string;
209
- style: string;
210
- color: string;
211
- offset: string;
212
- shadow: string;
213
- };
214
- };
215
- nodeIcon: {
216
- color: string;
217
- hoverColor: string;
218
- selectedColor: string;
219
- };
220
- nodeLabel: {
221
- fontWeight: string;
222
- selectedFontWeight: string;
223
- fontSize: string;
224
- };
225
- nodeToggleButton: {
226
- borderRadius: string;
227
- size: string;
228
- hoverBackground: string;
229
- selectedHoverBackground: string;
230
- color: string;
231
- hoverColor: string;
232
- selectedHoverColor: string;
233
- focusRing: {
234
- width: string;
235
- style: string;
236
- color: string;
237
- offset: string;
238
- };
239
- };
240
- loadingIcon: {
241
- size: string;
242
- };
243
- filter: {
244
- margin: string;
245
- };
246
- mask: {
247
- background: string;
248
- };
249
- dropPoint: {
250
- color: string;
251
- };
252
- expansion: {
253
- duration: string;
254
- easing: string;
255
- };
256
- }> | undefined>;
344
+ /** Design tokens of this instance (`tree`) */
345
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraTreeTokens> | undefined>;
346
+ /** Classes and styles of the parts: `root`, `header`, `filter`, `filterInput`, `wrapper`, `list`, `node`, `content`, `toggler`, `checkbox`, `icon`, `label`, `children`, `dropPoint`, `empty`, `mask`, `footer` */
257
347
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxTreePart, import("@tectra-ng/core/config").TxPassThroughValue<TxTree<T>>>> | undefined>;
348
+ /** How `pt` merges with the global pass-through */
258
349
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
350
+ /** Removes the tectra styles */
259
351
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
352
+ /** A node was selected or checked: `{ node, originalEvent }` */
260
353
  readonly nodeSelect: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
354
+ /** A node was unselected or unchecked */
261
355
  readonly nodeUnselect: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
356
+ /** A node was opened — load its children here when it has `leaf: false` and no `children` */
262
357
  readonly nodeExpand: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
358
+ /** A node was closed */
263
359
  readonly nodeCollapse: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
360
+ /** The menu was opened for a node */
264
361
  readonly nodeContextMenuSelect: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
362
+ /** A node was double clicked */
265
363
  readonly nodeDoubleClick: import("@angular/core").OutputEmitterRef<TxTreeNodeEvent<T>>;
364
+ /** A node was dropped: `{ dragNode, dropNode, position, index, originalEvent, accept }` */
266
365
  readonly nodeDrop: import("@angular/core").OutputEmitterRef<TxTreeNodeDropEvent<T>>;
366
+ /** The search changed: `{ filter, filteredValue }` */
267
367
  readonly filtered: import("@angular/core").OutputEmitterRef<TxTreeFilterEvent<T>>;
268
368
  readonly nodeTemplates: import("@angular/core").Signal<readonly TxTreeNodeTemplate[]>;
269
369
  readonly headerTemplate: import("@angular/core").Signal<TxTreeHeader | undefined>;
@@ -329,9 +429,13 @@ export declare class TxTree<T = unknown> implements TxTreeDragSource {
329
429
  nodeClass(row: TxTreeRow<T>): string;
330
430
  highlighted(row: TxTreeRow<T>): boolean;
331
431
  checkState(row: TxTreeRow<T>): 'true' | 'false' | 'mixed';
432
+ /** Opens every node with children */
332
433
  expandAll(): void;
434
+ /** Closes every node */
333
435
  collapseAll(): void;
436
+ /** Searches the tree */
334
437
  filterNodes(query: string): void;
438
+ /** Clears the search */
335
439
  resetFilter(): void;
336
440
  onFilterInput(event: Event): void;
337
441
  onFilterKeydown(event: KeyboardEvent): void;
@@ -553,20 +657,44 @@ export declare class TxTree<T = unknown> implements TxTreeDragSource {
553
657
  "filtered": "filtered";
554
658
  }, ["nodeTemplates", "headerTemplate", "footerTemplate", "emptyTemplate", "loadingTemplate", "filterTemplate", "toggleIconTemplate", "checkboxIconTemplate"], never, true, never>;
555
659
  }
660
+ /** Visits every node depth-first with its parent (`null` at the top). */
556
661
  export declare function walkTree<T = unknown>(nodes: readonly TxTreeNode<T>[], visit: (node: TxTreeNode<T>, parent: TxTreeNode<T> | null) => void, parent?: TxTreeNode<T> | null): void;
662
+ /** Finds the node with the key anywhere in the tree, or `null`. */
557
663
  export declare function findNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T> | null;
664
+ /** Keys of all selectable, enabled descendants of the node. */
558
665
  export declare function descendantKeys(node: TxTreeNode): string[];
666
+ /** Maps the key of every node to its parent node (`null` at the top). */
559
667
  export declare function parentMap<T = unknown>(nodes: readonly TxTreeNode<T>[]): Map<string, TxTreeNode<T> | null>;
668
+ /**
669
+ * Settles checked keys so a branch is checked exactly when all its selectable children are;
670
+ * returns them in tree order.
671
+ */
560
672
  export declare function normalizeChecked(nodes: readonly TxTreeNode[], keys: readonly string[]): string[];
673
+ /** Whether the node has no children and is not marked `leaf: false`. */
561
674
  export declare function isLeafNode(node: TxTreeNode): boolean;
675
+ /** Whether any of the node fields contains the already folded query. */
562
676
  export declare function nodeMatches(node: TxTreeNode, query: string, fields: readonly string[]): boolean;
677
+ /** Keeps the nodes that match the query in any of the fields; the mode decides what stays under a match. */
563
678
  export declare function filterTree<T = unknown>(nodes: readonly TxTreeNode<T>[], query: string, fields: readonly string[], mode?: TxTreeFilterMode): TxTreeNode<T>[];
679
+ /** Keys of all nodes that have children. */
564
680
  export declare function branchKeys(nodes: readonly TxTreeNode[]): string[];
681
+ /** Whether the node with `key` is somewhere below the node with `ancestorKey`. */
565
682
  export declare function isDescendantOf(nodes: readonly TxTreeNode[], ancestorKey: string, key: string): boolean;
683
+ /** Returns the tree without the node with the key; the input is not changed. */
566
684
  export declare function removeNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): TxTreeNode<T>[];
685
+ /**
686
+ * Returns the tree with the node added before, after or inside the target; `null` as target
687
+ * appends at the top.
688
+ */
567
689
  export declare function insertNode<T = unknown>(nodes: readonly TxTreeNode<T>[], node: TxTreeNode<T>, targetKey: string | null, position: TxTreeDropPosition): TxTreeNode<T>[];
690
+ /**
691
+ * Returns the tree with the node moved next to or into the target; a move into itself or its
692
+ * own branch changes nothing.
693
+ */
568
694
  export declare function moveNode<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string, targetKey: string | null, position: TxTreeDropPosition): TxTreeNode<T>[];
695
+ /** Nodes on the same level as the node with the key, itself included. */
569
696
  export declare function siblingsOf<T = unknown>(nodes: readonly TxTreeNode<T>[], key: string): readonly TxTreeNode<T>[];
697
+ /** Whether a tree with `dropScope` accepts a node of `dragScope`; an empty drop scope accepts any. */
570
698
  export declare function scopesMatch(dragScope: TxTreeScope, dropScope: TxTreeScope): boolean;
571
699
  export {};
572
700
  //# sourceMappingURL=tectra-ng-ui-tree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tree.d.ts","names":[],"sources":["../../../../packages/ui/tree/src/tree.types.ts","../../../../packages/ui/tree/src/tree-drag.service.ts","../../../../packages/ui/tree/src/tree.templates.ts","../../../../packages/ui/tree/src/tree.component.ts","../../../../packages/ui/tree/src/tree.utils.ts"],"mappings":";;;;;;iBAEiB,WAAW;EAC1B;EACA;EACA,OAAO;EACP,OAAO;EACP,eAAe;EACf,gBAAgB;EAChB,WAAW,WAAW;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;YACA;YACA;YACA;YACA;YACA,gBAAgB,eAAe,WAAW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AM,cAAc,WAAW;wBAUhF,eAAe,MAAM;wBAUrB,UAAU,aAAa,gBAAgB,WAAW,OAAO,YAAY,WAAW;wBAMhF,iBAAiB,gBAAgB,cAAc;wBAqB/C,WAAW,MAAM;wBAIjB,YAAY,MAAM,YAAY,eAAe;wBAI7C,WAAW,aAAa,gBAAgB,WAAW,MAAM,eAAe,2BAA2B,OAAM,mBAA+B,WAAW;wBAoBnJ,WAAW,gBAAgB;wBAU3B,eAAe,gBAAgB,cAAc,qBAAqB;wBAclE,WAAW,aAAa,gBAAgB,WAAW,MAAM,cAAc,WAAW;wBAYlF,WAAW,aACzB,gBAAgB,WAAW,MAC3B,MAAM,WAAW,IACjB,0BACA,UAAU,qBACT,WAAW;wBAmBE,SAAS,aAAa,gBAAgB,WAAW,MAAM,aAAa,0BAA0B,UAAU,qBAAqB,WAAW;wBAQxI,WAAW,aAAa,gBAAgB,WAAW,MAAM,uBAAuB,WAAW;wBAK3F,YAAY,WAAW,aAAa,WAAW"}
1
+ {"version":3,"file":"tectra-ng-ui-tree.d.ts","names":[],"sources":["../../../../packages/ui/tree/src/tree.types.ts","../../../../packages/ui/tree/src/tree-drag.service.ts","../../../../packages/ui/tree/src/tree.templates.ts","../../../../packages/ui/tree/src/tree.component.ts","../../../../packages/ui/tree/src/tree.utils.ts"],"mappings":";;;;;;;iBAGiB,WAAW;;EAE1B;;EAEA;;EAEA,OAAO;;EAEP,OAAO;;EAEP,eAAe;;EAEf,gBAAgB;;EAEhB,WAAW,WAAW;;EAEtB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA,gBAAgB,eAAe,WAAW,KAAK,WAAW;;YAG1D;;iBAoBK,gBAAgB;;EAE/B,MAAM,WAAW;;EAEjB,eAAe;;;iBAIA,oBAAoB;;EAEnC,UAAU,WAAW;;EAErB,UAAU,WAAW;;EAErB,UAAU;;EAEV;;EAEA,eAAe;;EAEf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AW;;wBAWhF,eAAe,MAAM;;wBAWrB,UAAU,aAAa,gBAAgB,WAAW,OAAO,YAAY,WAAW;;;;;wBAUhF,iBAAiB,gBAAgB,cAAc;;wBAsB/C,WAAW,MAAM;;wBAKjB,YAAY,MAAM,YAAY,eAAe;;wBAK7C,WAAW,aAAa,gBAAgB,WAAW,MAAM,eAAe,2BAA2B,OAAM,mBAA+B,WAAW;;wBAqBnJ,WAAW,gBAAgB;;wBAW3B,eAAe,gBAAgB,cAAc,qBAAqB;;wBAelE,WAAW,aAAa,gBAAgB,WAAW,MAAM,cAAc,WAAW;;;;;wBAgBlF,WAAW,aACzB,gBAAgB,WAAW,MAC3B,MAAM,WAAW,IACjB,0BACA,UAAU,qBACT,WAAW;;;;;wBAuBE,SAAS,aAAa,gBAAgB,WAAW,MAAM,aAAa,0BAA0B,UAAU,qBAAqB,WAAW;;wBASxI,WAAW,aAAa,gBAAgB,WAAW,MAAM,uBAAuB,WAAW;;wBAM3F,YAAY,WAAW,aAAa,WAAW"}
@@ -1,38 +1,45 @@
1
1
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
2
  import { TxPlacement } from "@tectra-ng/core/overlay";
3
- import { TectraDeepPartial } from "@tectra-ng/themes";
3
+ import { TectraDeepPartial, TectraTruncateTextTokens } from "@tectra-ng/themes";
4
4
  import { TxHighlightTerms } from "@tectra-ng/ui/highlight-text";
5
5
  import * as i0 from "@angular/core";
6
+ /** Parts of `tx-truncate-text` that `pt` can style. */
6
7
  export type TxTruncateTextPart = 'root' | 'text' | 'link' | 'copy';
8
+ /**
9
+ * One line of text cut to a number of characters, with the full value in a tooltip — for long URLs, ids and names in table cells. It can mark search matches, become a link and add a copy button. Screen readers always get the full text.
10
+ * @see https://tectra-ng.com/components/truncate-text
11
+ */
7
12
  export declare class TxTruncateText {
8
13
  private readonly truncateTextTheme;
9
14
  private document;
10
15
  private timer;
16
+ /** The text; a number is shown as text */
11
17
  readonly text: import("@angular/core").InputSignal<string | number | null | undefined>;
18
+ /** How many characters are shown before the text is cut */
12
19
  readonly limit: import("@angular/core").InputSignalWithTransform<number, unknown>;
20
+ /** What follows the cut text (`...` by default) */
13
21
  readonly ellipsis: import("@angular/core").InputSignal<string>;
22
+ /** Makes the text a link to this address */
14
23
  readonly href: import("@angular/core").InputSignal<string | null | undefined>;
24
+ /** Makes the text a link to itself — for a `text` that is a URL; `href` wins when both are set */
15
25
  readonly openLink: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
26
+ /** Where the link opens (`_blank` by default, with `rel="noopener noreferrer"`) */
16
27
  readonly target: import("@angular/core").InputSignal<string>;
28
+ /** Search terms to mark in the shown text */
17
29
  readonly highlight: import("@angular/core").InputSignal<TxHighlightTerms>;
30
+ /** Adds a button before the text that copies the full text */
18
31
  readonly copyable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
32
+ /** Side of the tooltips (`top` by default) */
19
33
  readonly tooltipPlacement: import("@angular/core").InputSignal<TxPlacement>;
20
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
21
- root: {
22
- gap: string;
23
- linkColor: string;
24
- linkHoverColor: string;
25
- copyColor: string;
26
- copyHoverColor: string;
27
- copiedColor: string;
28
- copyIconSize: string;
29
- focusRingColor: string;
30
- transitionDuration: string;
31
- };
32
- }> | undefined>;
34
+ /** Design tokens of this instance (`truncateText`) */
35
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraTruncateTextTokens> | undefined>;
36
+ /** Classes and styles of the parts: `root`, `text`, `link`, `copy` */
33
37
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxTruncateTextPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTruncateText>>> | undefined>;
38
+ /** How `pt` merges with the global pass-through */
34
39
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
40
+ /** Removes the tectra styles */
35
41
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
42
+ /** The text was copied; gives the copied text */
36
43
  readonly copied: import("@angular/core").OutputEmitterRef<string>;
37
44
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
38
45
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-truncate-text.d.ts","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.types.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.ts"],"mappings":";;;;;YAAY;qBC+BC;mBACM;UAET;UACA;WAEC,8BAAI;WACJ,+BAAK;WACL,kCAAQ;WACR,8BAAI;WACJ,kCAAQ;WACR,gCAAM;WACN,mCAAS,YAAA;WACT,kCAAQ;WACR,0CAAgB,YAAA;WAChB,4BAAE,YAAA;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,gCAAM;WAEN,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,kCAAQ;WAER,kCAAQ;WACR,qCAAW;WACX,qCAAW;WACX,iCAAO;WACP,kCAAQ;WACR,kCAAQ;WACR,mCAAS;WACT,mCAAS;;;;EAMlB;SAxCW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-truncate-text.d.ts","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.types.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.ts"],"mappings":";;;;;;YACY;;;;;qBC8BC;mBACM;UAET;UACA;;WAEC,8BAAI;;WACJ,+BAAK;;WACL,kCAAQ;;WACR,8BAAI;;WACJ,kCAAQ;;WACR,gCAAM;;WACN,mCAAS,YAAA;;WACT,kCAAQ;;WACR,0CAAgB,YAAA;;WAChB,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,gCAAM;WAEN,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,kCAAQ;WAER,kCAAQ;WACR,qCAAW;WACX,qCAAW;WACX,iCAAO;WACP,kCAAQ;WACR,kCAAQ;WACR,mCAAS;WACT,mCAAS;;;;EAMlB;SAxCW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}