@tectra-ng/charts 0.3.1 → 0.4.0

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 (80) hide show
  1. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -1
  2. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -1
  3. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-charts-core.mjs +3 -16
  8. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-charts-pie.mjs +1 -1
  15. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-charts-treemap.mjs +5 -5
  24. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-charts.mjs +1 -1
  27. package/fesm2022/tectra-ng-charts.mjs.map +1 -1
  28. package/package.json +9 -9
  29. package/pie/README.md +1 -1
  30. package/treemap/README.md +1 -1
  31. package/types/tectra-ng-charts-bar-list.d.ts +32 -634
  32. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -1
  33. package/types/tectra-ng-charts-boxplot.d.ts +77 -634
  34. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -1
  35. package/types/tectra-ng-charts-bullet.d.ts +66 -634
  36. package/types/tectra-ng-charts-bullet.d.ts.map +1 -1
  37. package/types/tectra-ng-charts-candlestick.d.ts +62 -634
  38. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  39. package/types/tectra-ng-charts-column.d.ts +81 -634
  40. package/types/tectra-ng-charts-column.d.ts.map +1 -1
  41. package/types/tectra-ng-charts-combo.d.ts +98 -634
  42. package/types/tectra-ng-charts-combo.d.ts.map +1 -1
  43. package/types/tectra-ng-charts-core.d.ts +451 -6
  44. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  45. package/types/tectra-ng-charts-funnel.d.ts +73 -634
  46. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  47. package/types/tectra-ng-charts-gantt.d.ts +97 -634
  48. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  49. package/types/tectra-ng-charts-gauge.d.ts +56 -634
  50. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  51. package/types/tectra-ng-charts-heatmap.d.ts +102 -634
  52. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
  53. package/types/tectra-ng-charts-line.d.ts +74 -634
  54. package/types/tectra-ng-charts-line.d.ts.map +1 -1
  55. package/types/tectra-ng-charts-org-chart.d.ts +161 -634
  56. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  57. package/types/tectra-ng-charts-pie.d.ts +91 -634
  58. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  59. package/types/tectra-ng-charts-radar.d.ts +82 -634
  60. package/types/tectra-ng-charts-radar.d.ts.map +1 -1
  61. package/types/tectra-ng-charts-radial-bar.d.ts +69 -634
  62. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  63. package/types/tectra-ng-charts-range-area.d.ts +61 -634
  64. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  65. package/types/tectra-ng-charts-rank-line.d.ts +55 -634
  66. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-sankey.d.ts +85 -634
  68. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  69. package/types/tectra-ng-charts-scatter.d.ts +98 -634
  70. package/types/tectra-ng-charts-scatter.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-segmented-bar.d.ts +39 -634
  72. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-sunburst.d.ts +57 -634
  74. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-treemap.d.ts +77 -634
  76. package/types/tectra-ng-charts-treemap.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-waterfall.d.ts +69 -634
  78. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  79. package/types/tectra-ng-charts.d.ts +2 -1
  80. package/types/tectra-ng-charts.d.ts.map +1 -1
@@ -2,156 +2,290 @@ import { TxPillTone } from "@tectra-ng/ui/pill";
2
2
  import * as i0 from "@angular/core";
3
3
  import { OnDestroy, TemplateRef } from "@angular/core";
4
4
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
5
- import { TectraDeepPartial } from "@tectra-ng/themes";
5
+ import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
6
+ /** Shade of a node in the minimap. */
6
7
  export type TxOrgChartMinimapTone = 'primary' | 'accent' | 'muted' | 'default';
8
+ /** Picture of a node: an image, or the initials of a name when there is no image. */
7
9
  export interface TxOrgChartAvatar {
10
+ /** Address of the image. */
8
11
  src?: string | null;
12
+ /** Name the initials are taken from and the image is described with. */
9
13
  name?: string | null;
10
14
  }
15
+ /** A small badge on a node card. */
11
16
  export interface TxOrgChartPill {
17
+ /** Text of the badge. */
12
18
  label: string;
19
+ /** Color of the badge. */
13
20
  tone?: TxPillTone;
21
+ /** Name of an icon in front of the label. */
14
22
  icon?: string;
15
23
  }
24
+ /** One node of `tx-org-chart`: a card with its own children. */
16
25
  export interface TxOrgChartNode {
26
+ /** Unique id of the node. */
17
27
  id: string;
28
+ /**
29
+ * Free type of the node, such as `person` or `team`; `pathKinds` picks the kinds that draw the path to the root.
30
+ */
18
31
  kind?: string;
32
+ /** Main text of the card. */
19
33
  title: string;
34
+ /** Second line of the card. */
20
35
  subtitle?: string;
36
+ /** Picture on the card; it replaces `icon`. */
21
37
  avatar?: TxOrgChartAvatar;
38
+ /** Name of an icon on the card. */
22
39
  icon?: string;
40
+ /** Badges under the text. */
23
41
  pills?: TxOrgChartPill[];
42
+ /** Child nodes, drawn under the card. */
24
43
  children?: TxOrgChartNode[];
44
+ /** Adds a chevron that opens and closes the children. */
25
45
  collapsible?: boolean;
46
+ /** `true` when a collapsible node shows its children. */
26
47
  expanded?: boolean;
48
+ /** Shows a skeleton card instead of the children while they load. */
27
49
  loading?: boolean;
50
+ /** Text drawn under an open node that has no children. */
28
51
  childrenEmptyText?: string;
52
+ /** Shade of the node in the minimap. */
29
53
  minimapTone?: TxOrgChartMinimapTone;
54
+ /** Any data you want back in `nodeClick` and the `txOrgChartNode` template. */
30
55
  data?: unknown;
31
56
  }
57
+ /** Context of the `txOrgChartNode` template. */
32
58
  export interface TxOrgChartNodeContext {
59
+ /** The node; what `let-node` binds to. */
33
60
  $implicit: TxOrgChartNode;
61
+ /** The node. */
34
62
  node: TxOrgChartNode;
63
+ /** `true` for a node listed in `highlightIds`. */
35
64
  highlighted: boolean;
65
+ /** `true` when the node is on the path to the root drawn for the hovered node. */
36
66
  inPath: boolean;
67
+ /** Opens or closes the children; emits `nodeToggle`. */
37
68
  toggle: () => void;
38
69
  }
70
+ /** Texts of the toolbar and the cards of `tx-org-chart`, for translation. */
39
71
  export interface TxOrgChartLabels {
72
+ /** Title of the chart. */
40
73
  title: string;
74
+ /** Hint on how to move and zoom the canvas. */
41
75
  hint: string;
76
+ /** Placeholder of the search field. */
42
77
  search: string;
78
+ /** Count of found nodes; `{count}` stands for the number. */
43
79
  matches: string;
80
+ /** Text when the search finds nothing. */
44
81
  noMatches: string;
82
+ /** Name of the zoom in button. */
45
83
  zoomIn: string;
84
+ /** Name of the zoom out button. */
46
85
  zoomOut: string;
86
+ /** Name of the button that resets the zoom to 100%. */
47
87
  resetZoom: string;
88
+ /** Name of the button that fits the tree into the canvas. */
48
89
  fit: string;
90
+ /** Name of the expand all button. */
49
91
  expandAll: string;
92
+ /** Name of the collapse all button. */
50
93
  collapseAll: string;
94
+ /** Name of the full screen button. */
51
95
  fullscreen: string;
96
+ /** Name of the button that leaves full screen. */
52
97
  exitFullscreen: string;
98
+ /** Name of the chevron of a closed node. */
53
99
  expand: string;
100
+ /** Name of the chevron of an open node. */
54
101
  collapse: string;
102
+ /** Name of the button that holds the actions on a narrow toolbar. */
55
103
  more: string;
56
104
  }
105
+ /** What is drawn under a node: nothing, its children, a loading skeleton or the empty text. */
57
106
  export type TxOrgChartChildrenKind = 'none' | 'nodes' | 'loading' | 'empty';
107
+ /** What `orgChartChildren` decides to draw under a node. */
58
108
  export interface TxOrgChartChildrenView {
109
+ /** What is drawn. */
59
110
  kind: TxOrgChartChildrenKind;
111
+ /** Child nodes to draw; empty unless `kind` is `nodes`. */
60
112
  nodes: TxOrgChartNode[];
113
+ /** Text for an open node without children. */
61
114
  emptyText: string;
62
115
  }
116
+ /** Whether the collapsible nodes of a tree are open, for the expand and collapse all buttons. */
63
117
  export interface TxOrgChartExpandState {
118
+ /** `true` when the tree has any collapsible node. */
64
119
  hasCollapsible: boolean;
120
+ /** `true` when every collapsible node is open. */
65
121
  allExpanded: boolean;
122
+ /** `true` when every collapsible node is closed. */
66
123
  noneExpanded: boolean;
67
124
  }
125
+ /** What the toolbar needs to show and enable its controls. */
68
126
  export interface TxOrgChartToolbarState {
127
+ /** Current zoom in percent. */
69
128
  zoomPercent: number;
129
+ /** `false` at the biggest zoom. */
70
130
  canZoomIn: boolean;
131
+ /** `false` at the smallest zoom. */
71
132
  canZoomOut: boolean;
133
+ /** `true` when the search field has text. */
72
134
  hasQuery: boolean;
135
+ /** Number of found nodes. */
73
136
  matchCount: number;
137
+ /** `true` in full screen. */
74
138
  isFullscreen: boolean;
139
+ /** `true` when the chart has nodes. */
75
140
  hasContent: boolean;
141
+ /** `true` when every collapsible node is open. */
76
142
  allExpanded: boolean;
143
+ /** `true` when every collapsible node is closed. */
77
144
  noneExpanded: boolean;
78
145
  }
146
+ /** A point on the canvas or in the viewport, in px. */
79
147
  export interface TxOrgChartPoint {
148
+ /** Horizontal position. */
80
149
  x: number;
150
+ /** Vertical position. */
81
151
  y: number;
82
152
  }
153
+ /** Where the canvas is: its offset in px and the zoom factor. */
83
154
  export interface TxOrgChartView extends TxOrgChartPoint {
155
+ /** Zoom factor; 1 is 100%. */
84
156
  zoom: number;
85
157
  }
158
+ /** Width and height in px. */
86
159
  export interface TxOrgChartSize {
160
+ /** Width in px. */
87
161
  width: number;
162
+ /** Height in px. */
88
163
  height: number;
89
164
  }
165
+ /** A rectangle in px: its top left corner and its size. */
90
166
  export interface TxOrgChartRect extends TxOrgChartPoint {
167
+ /** Width in px. */
91
168
  width: number;
169
+ /** Height in px. */
92
170
  height: number;
93
171
  }
172
+ /** A node drawn in the minimap. */
94
173
  export interface TxOrgChartMinimapItem extends TxOrgChartRect {
174
+ /** Id of the node. */
95
175
  id: string;
176
+ /** Shade of the node. */
96
177
  tone: TxOrgChartMinimapTone;
97
178
  }
179
+ /** The minimap scaled to its box. */
98
180
  export interface TxOrgChartMinimapLayout {
181
+ /** Width of the minimap in px. */
99
182
  width: number;
183
+ /** Height of the minimap in px. */
100
184
  height: number;
185
+ /** Nodes drawn in it. */
101
186
  items: TxOrgChartMinimapItem[];
102
187
  }
188
+ /** State shared by all nodes of the tree: which are highlighted or on the path, and the texts. */
103
189
  export interface TxOrgChartTreeState {
190
+ /** Ids of the nodes that get the match outline. */
104
191
  highlightIds: ReadonlySet<string>;
192
+ /** Ids of the nodes on the path to the root of the hovered node. */
105
193
  pathIds: ReadonlySet<string>;
194
+ /** Node kinds that draw the path; `null` for every node. */
106
195
  pathKinds: readonly string[] | null;
196
+ /** Texts of the chevrons and the toolbar. */
107
197
  labels: TxOrgChartLabels;
198
+ /** `true` when the tectra styles are off. */
108
199
  unstyled: boolean;
109
200
  }
201
+ /** Parts of `tx-org-chart` that `pt` can style. */
110
202
  export type TxOrgChartPart = 'root' | 'bar' | 'canvas' | 'stage' | 'card' | 'minimap' | 'toolbar' | 'hint';
203
+ /** Distance in px between a card and the horizontal line of its connectors. */
111
204
  export declare const TX_ORG_CHART_CONNECTOR_GAP = 24;
205
+ /**
206
+ * Decides what is drawn under a node: nothing for a closed one, a skeleton while loading, its children, or the empty text.
207
+ */
112
208
  export declare function orgChartChildren(node: TxOrgChartNode): TxOrgChartChildrenView;
209
+ /** Tells whether all, none or some collapsible nodes of the tree are open. */
113
210
  export declare function orgChartExpandState(nodes: readonly TxOrgChartNode[]): TxOrgChartExpandState;
211
+ /**
212
+ * SVG path of the connectors along a chain of rectangles, each parent to the next child; `radius` rounds the corners.
213
+ */
114
214
  export declare function orgChartPathLine(rects: readonly TxOrgChartRect[], gap?: number, radius?: number, offset?: number, inset?: number): string;
215
+ /**
216
+ * Returns the tree with the node `id` opened or closed; `expanded` sets it, otherwise it flips. The input is not changed.
217
+ */
115
218
  export declare function orgChartToggle(nodes: readonly TxOrgChartNode[], id: string, expanded?: boolean): TxOrgChartNode[];
219
+ /** Returns the tree with every collapsible node open or closed. The input is not changed. */
116
220
  export declare function orgChartExpandAll(nodes: readonly TxOrgChartNode[], expanded: boolean): TxOrgChartNode[];
221
+ /** Ids of the nodes whose title or subtitle contains the text, ignoring case; empty for an empty query. */
117
222
  export declare function orgChartSearch(nodes: readonly TxOrgChartNode[], query: string): string[];
223
+ /** Ids from a root down to the node `id`, both included; empty when the node is not in the tree. */
118
224
  export declare function orgChartPathTo(nodes: readonly TxOrgChartNode[], id: string): string[];
225
+ /** Returns the tree with the collapsible ancestors of the given nodes open. The input is not changed. */
119
226
  export declare function orgChartReveal(nodes: readonly TxOrgChartNode[], ids: Iterable<string>): TxOrgChartNode[];
227
+ /** Zoom limits (`min`, `max`), the factor of one button press (`step`) and the starting zoom (`initial`). */
120
228
  export declare const TX_ORG_CHART_ZOOM: {
121
229
  readonly min: 0.2;
122
230
  readonly max: 2;
123
231
  readonly step: 1.2;
124
232
  readonly initial: 1;
125
233
  };
234
+ /** Smallest zoom when the chart focuses a node (`focusId`). */
126
235
  export declare const TX_ORG_CHART_FOCUS_ZOOM = 1.25;
236
+ /** How fast the wheel changes the zoom. */
127
237
  export declare const TX_ORG_CHART_WHEEL_SPEED = 0.0015;
238
+ /** Largest wheel step taken into account at once. */
128
239
  export declare const TX_ORG_CHART_WHEEL_MAX_DELTA = 120;
240
+ /** Space in px kept around the tree when it is fitted. */
129
241
  export declare const TX_ORG_CHART_PADDING = 40;
242
+ /** Size in px of the minimap; its height shrinks to the tree down to `minHeight`. */
130
243
  export declare const TX_ORG_CHART_MINIMAP: {
131
244
  readonly width: 240;
132
245
  readonly height: 170;
133
246
  readonly minHeight: 56;
134
247
  };
248
+ /** Size in px of the minimap on a narrow canvas. */
135
249
  export declare const TX_ORG_CHART_MINIMAP_COMPACT: {
136
250
  readonly width: 140;
137
251
  readonly height: 100;
138
252
  readonly minHeight: 40;
139
253
  };
254
+ /** Canvas width in px under which the compact minimap is used. */
140
255
  export declare const TX_ORG_CHART_COMPACT_WIDTH = 480;
256
+ /** Keeps a zoom factor between the smallest and the biggest allowed. */
141
257
  export declare function clampZoom(zoom: number): number;
258
+ /** Zooms the view around a point so that the point stays under the cursor. */
142
259
  export declare function zoomAt(view: TxOrgChartView, zoom: number, at: TxOrgChartPoint): TxOrgChartView;
260
+ /**
261
+ * Moves the view so that a point of the canvas is in the middle of the viewport, optionally at a new zoom.
262
+ */
143
263
  export declare function centerOn(view: TxOrgChartView, viewport: TxOrgChartSize, point: TxOrgChartPoint, zoom?: number): TxOrgChartView;
264
+ /**
265
+ * View that fits the whole stage into the viewport, at most at 100% and centered; `top` leaves room for the toolbar. `null` when sizes are not known yet.
266
+ */
144
267
  export declare function fitView(viewport: TxOrgChartSize, stage: TxOrgChartSize, top?: number): TxOrgChartView | null;
268
+ /** Tells a mouse wheel from a trackpad scroll: a mouse sends big whole steps along Y only. */
145
269
  export declare function wheelIsMouse(event: Pick<WheelEvent, 'deltaMode' | 'deltaX' | 'deltaY'>): boolean;
270
+ /** New zoom after a wheel step; a pinch gesture changes it faster. */
146
271
  export declare function wheelZoom(zoom: number, deltaY: number, pinch: boolean): number;
272
+ /** Part of the tree in px that always stays inside the viewport when panning. */
147
273
  export declare const TX_ORG_CHART_KEEP_VISIBLE = 64;
274
+ /** Limits the offset of the view so that at least `keep` px of the stage stay in the viewport. */
148
275
  export declare function boundView(view: TxOrgChartView, viewport: TxOrgChartSize, stage: TxOrgChartSize, keep?: number): TxOrgChartView;
276
+ /**
277
+ * `<ng-template txOrgChartNode let-node let-highlighted="highlighted" let-inPath="inPath" let-toggle="toggle">` — own card; `<tx-org-chart-card [node]="node">` is the default card for reuse
278
+ * @see https://tectra-ng.com/components/org-chart
279
+ */
149
280
  export declare class TxOrgChartNodeTemplate {
150
281
  readonly template: TemplateRef<TxOrgChartNodeContext>;
151
282
  static ngTemplateContextGuard(_directive: TxOrgChartNodeTemplate, context: unknown): context is TxOrgChartNodeContext;
152
283
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOrgChartNodeTemplate, never>;
153
284
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxOrgChartNodeTemplate, "ng-template[txOrgChartNode]", never, {}, {}, never, never, true, never>;
154
285
  }
286
+ /**
287
+ * The default card of `tx-org-chart`: avatar or icon, title, subtitle, pills and the chevron; reuse it inside your own `txOrgChartNode` template.
288
+ */
155
289
  export declare class TxOrgChartCard {
156
290
  private readonly orgChartTheme;
157
291
  private readonly translations;
@@ -160,6 +294,7 @@ export declare class TxOrgChartCard {
160
294
  readonly inPath: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
161
295
  readonly expandLabel: import("@angular/core").InputSignal<string | undefined>;
162
296
  readonly collapseLabel: import("@angular/core").InputSignal<string | undefined>;
297
+ /** Removes the tectra styles and keeps the behaviour */
163
298
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
164
299
  readonly toggleNode: import("@angular/core").OutputEmitterRef<void>;
165
300
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
@@ -201,8 +336,10 @@ export declare class TxOrgChartCard {
201
336
  "toggleNode": "toggleNode";
202
337
  }, never, never, true, never>;
203
338
  }
339
+ /** Placeholder card shown in place of the children of a node while they load. */
204
340
  export declare class TxOrgChartNodeSkeleton {
205
341
  private readonly orgChartTheme;
342
+ /** Removes the tectra styles and keeps the behaviour */
206
343
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
207
344
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
208
345
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOrgChartNodeSkeleton, never>;
@@ -214,6 +351,10 @@ export declare class TxOrgChartNodeSkeleton {
214
351
  };
215
352
  }, {}, never, never, true, never>;
216
353
  }
354
+ /**
355
+ * `<tx-org-chart>` — a hierarchy as a tree of cards on a pan and zoom canvas: drag to move, wheel or pinch to zoom at the cursor, trackpad scroll to pan; a toolbar with search, zoom − / % / +, fit, expand / collapse all and full screen (with an overlay fallback), a minimap with click and drag navigation, hotkeys, the path to the root on hover, focus on a found node and a fit on the first render. Cards have an avatar or an icon, a title, a subtitle, pills and a chevron for collapsible nodes; a template draws your own cards.
356
+ * @see https://tectra-ng.com/components/org-chart
357
+ */
217
358
  export declare class TxOrgChart implements OnDestroy {
218
359
  private readonly orgChartTheme;
219
360
  private document;
@@ -222,655 +363,41 @@ export declare class TxOrgChart implements OnDestroy {
222
363
  private readonly translations;
223
364
  private readonly canvas;
224
365
  private readonly stage;
366
+ /** `{ id, title, kind?, subtitle?, avatar?: { src?, name? }, icon?, pills?: { label, tone?, icon? }[], children?, collapsible?, expanded?, loading?, childrenEmptyText?, minimapTone?, data? }[]` — the roots of the tree */
225
367
  readonly nodes: import("@angular/core").InputSignal<readonly TxOrgChartNode[] | null | undefined>;
368
+ /** Ids of the matching nodes; they get the match outline and their count shows next to the search */
226
369
  readonly highlightIds: import("@angular/core").InputSignal<Iterable<string> | null | undefined>;
370
+ /** Id of a node to centre and zoom to (at least 125%) after it renders */
227
371
  readonly focusId: import("@angular/core").InputSignal<string | null | undefined>;
372
+ /** Own texts: `title`, `hint`, `search`, `matches` (`{count} found`), `noMatches`, `zoomIn`, `zoomOut`, `resetZoom`, `fit`, `expandAll`, `collapseAll`, `fullscreen`, `exitFullscreen`, `expand`, `collapse`, `more` (the button that holds the actions on a narrow toolbar); default — the tectra locale */
228
373
  readonly labels: import("@angular/core").InputSignal<Partial<TxOrgChartLabels>>;
374
+ /** Shows the toolbar; on a narrow chart (under 56rem) expand / collapse all and full screen move into a menu button, under 30rem the zoom buttons too */
229
375
  readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
376
+ /** Shows the minimap in the corner of the canvas (smaller on a canvas under 480px) */
230
377
  readonly minimap: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
378
+ /** Height of the canvas (`calc(100vh - 15rem)`) */
231
379
  readonly height: import("@angular/core").InputSignal<string>;
380
+ /** Dims the canvas and blocks it while data loads */
232
381
  readonly busy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
382
+ /** Node `kind`s that draw the path to the root on hover; `null` — every node */
233
383
  readonly pathKinds: import("@angular/core").InputSignal<readonly string[] | null>;
234
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
235
- root: {
236
- fontFamily: string;
237
- color: string;
238
- background: string;
239
- };
240
- series: {
241
- color1: string;
242
- color2: string;
243
- color3: string;
244
- color4: string;
245
- color5: string;
246
- color6: string;
247
- color7: string;
248
- };
249
- toolbar: {
250
- rowHeight: string;
251
- reserve: string;
252
- disabledOpacity: string;
253
- };
254
- grid: {
255
- color: string;
256
- width: string;
257
- dash: string;
258
- };
259
- zeroLine: {
260
- color: string;
261
- width: string;
262
- };
263
- axis: {
264
- labelColor: string;
265
- labelFontSize: string;
266
- labelFontWeight: string;
267
- titleColor: string;
268
- titleFontSize: string;
269
- titleFontWeight: string;
270
- lineColor: string;
271
- };
272
- legend: {
273
- gap: string;
274
- itemGap: string;
275
- color: string;
276
- mutedColor: string;
277
- fontSize: string;
278
- fontWeight: string;
279
- markerSize: string;
280
- markerRadius: string;
281
- markerGap: string;
282
- lineWidth: string;
283
- lineHeight: string;
284
- hiddenOpacity: string;
285
- borderRadius: string;
286
- hoverBackground: string;
287
- paddingX: string;
288
- paddingY: string;
289
- sideWidth: string;
290
- valueColor: string;
291
- valueGap: string;
292
- percentGap: string;
293
- listGap: string;
294
- pillBorderColor: string;
295
- pillRadius: string;
296
- pillPaddingX: string;
297
- pillPaddingY: string;
298
- pillTint: string;
299
- statLabelFontSize: string;
300
- statValueFontSize: string;
301
- statValueFontWeight: string;
302
- statPaddingX: string;
303
- statPaddingY: string;
304
- statRadius: string;
305
- statMinWidth: string;
306
- };
307
- tooltip: {
308
- background: string;
309
- borderColor: string;
310
- borderWidth: string;
311
- borderRadius: string;
312
- shadow: string;
313
- color: string;
314
- mutedColor: string;
315
- fontSize: string;
316
- titleFontSize: string;
317
- titleFontWeight: string;
318
- valueFontWeight: string;
319
- padding: string;
320
- rowGap: string;
321
- markerSize: string;
322
- markerGap: string;
323
- valueGap: string;
324
- minWidth: string;
325
- arrowSize: string;
326
- offset: string;
327
- totalBorderColor: string;
328
- noteColor: string;
329
- };
330
- hoverBand: {
331
- color: string;
332
- radius: string;
333
- };
334
- annotation: {
335
- neutralColor: string;
336
- primaryColor: string;
337
- successColor: string;
338
- infoColor: string;
339
- warnColor: string;
340
- dangerColor: string;
341
- lineWidth: string;
342
- lineDash: string;
343
- bandStrength: string;
344
- pointRadius: string;
345
- labelFontSize: string;
346
- labelFontWeight: string;
347
- labelColor: string;
348
- labelStrength: string;
349
- labelBase: string;
350
- labelBorderWidth: string;
351
- labelRadius: string;
352
- };
353
- brush: {
354
- trackBackground: string;
355
- maskColor: string;
356
- areaOpacity: string;
357
- lineWidth: string;
358
- windowBorderColor: string;
359
- windowBorderWidth: string;
360
- handleColor: string;
361
- handleBorderColor: string;
362
- handleRadius: string;
363
- radius: string;
364
- };
365
- crosshair: {
366
- color: string;
367
- width: string;
368
- dash: string;
369
- };
370
- marker: {
371
- radius: string;
372
- strokeColor: string;
373
- strokeWidth: string;
374
- haloRadius: string;
375
- haloOpacity: string;
376
- };
377
- line: {
378
- strokeWidth: string;
379
- areaOpacityFrom: string;
380
- areaOpacityTo: string;
381
- stackedAreaOpacity: string;
382
- pointRadius: string;
383
- dimmedOpacity: string;
384
- };
385
- bar: {
386
- radius: string;
387
- width: string;
388
- horizontalWidth: string;
389
- groupGap: string;
390
- segmentGap: string;
391
- segmentGapColor: string;
392
- dimmedStrength: string;
393
- dimmedBase: string;
394
- labelColor: string;
395
- labelFontSize: string;
396
- labelFontWeight: string;
397
- outsideLabelColor: string;
398
- };
399
- scatter: {
400
- pointRadius: string;
401
- bubbleMinRadius: string;
402
- bubbleMaxRadius: string;
403
- fillOpacity: string;
404
- bubbleFillOpacity: string;
405
- strokeColor: string;
406
- strokeWidth: string;
407
- activeStrokeWidth: string;
408
- dimmedOpacity: string;
409
- trendWidth: string;
410
- trendDash: string;
411
- };
412
- radar: {
413
- strokeWidth: string;
414
- fillOpacity: string;
415
- activeFillOpacity: string;
416
- pointRadius: string;
417
- labelGap: string;
418
- labelColor: string;
419
- labelFontSize: string;
420
- labelFontWeight: string;
421
- activeLabelColor: string;
422
- tickColor: string;
423
- tickFontSize: string;
424
- dimmedOpacity: string;
425
- };
426
- radialBar: {
427
- trackColor: string;
428
- thickness: string;
429
- dimmedOpacity: string;
430
- valueColor: string;
431
- valueFontWeight: string;
432
- labelColor: string;
433
- labelFontWeight: string;
434
- };
435
- gauge: {
436
- thickness: string;
437
- trackColor: string;
438
- bandGap: string;
439
- progressColor: string;
440
- needleColor: string;
441
- needleWidth: string;
442
- hubRadius: string;
443
- hubColor: string;
444
- hubStrokeWidth: string;
445
- tickColor: string;
446
- tickLength: string;
447
- tickLabelColor: string;
448
- tickLabelFontSize: string;
449
- valueColor: string;
450
- valueFontWeight: string;
451
- labelColor: string;
452
- labelFontWeight: string;
453
- primaryColor: string;
454
- successColor: string;
455
- infoColor: string;
456
- warnColor: string;
457
- dangerColor: string;
458
- neutralColor: string;
459
- };
460
- waterfall: {
461
- upColor: string;
462
- downColor: string;
463
- totalColor: string;
464
- connectorColor: string;
465
- connectorWidth: string;
466
- connectorDash: string;
467
- dimmedOpacity: string;
468
- };
469
- funnel: {
470
- rowGap: string;
471
- radius: string;
472
- labelColor: string;
473
- labelFontSize: string;
474
- labelFontWeight: string;
475
- valueColor: string;
476
- valueFontSize: string;
477
- valueFontWeight: string;
478
- outsideValueColor: string;
479
- connectorOpacity: string;
480
- conversionColor: string;
481
- conversionFontSize: string;
482
- labelWidth: string;
483
- dimmedOpacity: string;
484
- };
485
- bullet: {
486
- rowHeight: string;
487
- trackHeight: string;
488
- barHeight: string;
489
- rangeColor1: string;
490
- rangeColor2: string;
491
- rangeColor3: string;
492
- barColor: string;
493
- barRadius: string;
494
- targetColor: string;
495
- targetWidth: string;
496
- targetHeight: string;
497
- dimmedOpacity: string;
498
- };
499
- candlestick: {
500
- upColor: string;
501
- downColor: string;
502
- bodyWidth: string;
503
- bodyRadius: string;
504
- wickWidth: string;
505
- volumeHeight: string;
506
- volumeOpacity: string;
507
- dimmedOpacity: string;
508
- };
509
- boxplot: {
510
- boxWidth: string;
511
- groupGap: string;
512
- fillOpacity: string;
513
- strokeWidth: string;
514
- medianWidth: string;
515
- whiskerWidth: string;
516
- outlierRadius: string;
517
- radius: string;
518
- dimmedOpacity: string;
519
- };
520
- rangeArea: {
521
- fillOpacity: string;
522
- edgeWidth: string;
523
- edgeOpacity: string;
524
- lineWidth: string;
525
- dimmedOpacity: string;
526
- };
527
- gantt: {
528
- rowHeight: string;
529
- headerRowHeight: string;
530
- labelWidth: string;
531
- labelPaddingX: string;
532
- barHeight: string;
533
- barRadius: string;
534
- trackStrength: string;
535
- barBorderStrength: string;
536
- trackBase: string;
537
- barLabelGap: string;
538
- barLabelColor: string;
539
- insideLabelColor: string;
540
- insideStrength: string;
541
- insideAccentWidth: string;
542
- fontSize: string;
543
- labelColor: string;
544
- groupColor: string;
545
- groupFontWeight: string;
546
- groupBackground: string;
547
- summaryHeight: string;
548
- summaryColor: string;
549
- headerColor: string;
550
- headerFontSize: string;
551
- headerTopColor: string;
552
- headerTopFontWeight: string;
553
- headerBackground: string;
554
- background: string;
555
- borderColor: string;
556
- weekendBackground: string;
557
- rowHoverBackground: string;
558
- foldDuration: string;
559
- foldEasing: string;
560
- todayColor: string;
561
- todayWidth: string;
562
- milestoneSize: string;
563
- milestoneColor: string;
564
- milestoneRadius: string;
565
- toolbarGap: string;
566
- maxHeight: string;
567
- radius: string;
568
- };
569
- sankey: {
570
- nodeWidth: string;
571
- nodePadding: string;
572
- nodeRadius: string;
573
- linkStrength: string;
574
- linkActiveStrength: string;
575
- linkDimmedStrength: string;
576
- linkBase: string;
577
- linkEdgeColor: string;
578
- linkEdgeWidth: string;
579
- nodeDimmedOpacity: string;
580
- labelGap: string;
581
- labelColor: string;
582
- labelFontSize: string;
583
- labelFontWeight: string;
584
- valueColor: string;
585
- };
586
- sunburst: {
587
- hole: string;
588
- gap: string;
589
- gapColor: string;
590
- cornerRadius: string;
591
- levelFade: string;
592
- fadeBase: string;
593
- dimmedOpacity: string;
594
- labelColor: string;
595
- labelFontSize: string;
596
- labelFontWeight: string;
597
- labelShadow: string;
598
- centerValueColor: string;
599
- centerValueFontWeight: string;
600
- centerLabelColor: string;
601
- centerHoverBackground: string;
602
- };
603
- pie: {
604
- segmentGap: string;
605
- segmentRadius: string;
606
- hoverOffset: string;
607
- dimmedStrength: string;
608
- dimmedBase: string;
609
- labelColor: string;
610
- labelFontSize: string;
611
- labelFontWeight: string;
612
- labelShadow: string;
613
- nameColor: string;
614
- nameFontSize: string;
615
- nameFontWeight: string;
616
- valueColor: string;
617
- valueFontSize: string;
618
- valueFontWeight: string;
619
- totalLabelColor: string;
620
- };
621
- treemap: {
622
- radius: string;
623
- gap: string;
624
- gapColor: string;
625
- labelColor: string;
626
- labelFontSize: string;
627
- labelFontWeight: string;
628
- valueFontSize: string;
629
- valueFontWeight: string;
630
- labelShadow: string;
631
- labelPadding: string;
632
- labelGap: string;
633
- groupBackground: string;
634
- groupLabelColor: string;
635
- groupLabelFontSize: string;
636
- groupLabelFontWeight: string;
637
- dimmedStrength: string;
638
- dimmedBase: string;
639
- };
640
- barList: {
641
- gap: string;
642
- columnGap: string;
643
- fontSize: string;
644
- rowHeight: string;
645
- rowPaddingX: string;
646
- rowRadius: string;
647
- rowHoverBackground: string;
648
- barBackground: string;
649
- barRadius: string;
650
- labelPaddingX: string;
651
- labelColor: string;
652
- valueColor: string;
653
- valueFontWeight: string;
654
- percentWidth: string;
655
- percentColor: string;
656
- emptyPaddingY: string;
657
- emptyColor: string;
658
- duration: string;
659
- };
660
- rankLine: {
661
- strokeWidth: string;
662
- markerRadius: string;
663
- markerHoverRadius: string;
664
- color1: string;
665
- color2: string;
666
- color3: string;
667
- color4: string;
668
- color5: string;
669
- color6: string;
670
- color7: string;
671
- color8: string;
672
- color9: string;
673
- color10: string;
674
- color11: string;
675
- color12: string;
676
- };
677
- orgChart: {
678
- gap: string;
679
- canvasMinHeight: string;
680
- canvasRadius: string;
681
- canvasBackground: string;
682
- canvasBorderColor: string;
683
- canvasDotColor: string;
684
- canvasDotGap: string;
685
- busyOpacity: string;
686
- stagePadding: string;
687
- stageDuration: string;
688
- forestGap: string;
689
- nodePaddingX: string;
690
- connectorHeight: string;
691
- connectorColor: string;
692
- connectorRadius: string;
693
- pathColor: string;
694
- pathWidth: string;
695
- cardWidth: string;
696
- cardPaddingX: string;
697
- cardPaddingY: string;
698
- cardGap: string;
699
- cardRadius: string;
700
- cardBackground: string;
701
- cardBorderColor: string;
702
- cardOpenBorderColor: string;
703
- cardMatchBorderColor: string;
704
- cardMatchBackground: string;
705
- cardPathGlow: string;
706
- iconSize: string;
707
- iconFontSize: string;
708
- iconRadius: string;
709
- iconColor: string;
710
- iconBackground: string;
711
- avatarSize: string;
712
- headingGap: string;
713
- titleFontSize: string;
714
- titleFontWeight: string;
715
- titleColor: string;
716
- subtitleFontSize: string;
717
- subtitleColor: string;
718
- pillsGap: string;
719
- emptyPadding: string;
720
- emptyFontSize: string;
721
- emptyColor: string;
722
- emptyBackground: string;
723
- toolbarGap: string;
724
- toolbarGroupGap: string;
725
- searchWidth: string;
726
- hintFontSize: string;
727
- hintColor: string;
728
- fullscreenInset: string;
729
- fullscreenRadius: string;
730
- fullscreenShadow: string;
731
- fullscreenLayer: string;
732
- backdrop: string;
733
- backdropBlur: string;
734
- floatingPadding: string;
735
- floatingBackground: string;
736
- floatingTitleFontSize: string;
737
- floatingTitleFontWeight: string;
738
- minimapInset: string;
739
- minimapPadding: string;
740
- minimapRadius: string;
741
- minimapMapRadius: string;
742
- minimapBackground: string;
743
- minimapMapBackground: string;
744
- minimapShadow: string;
745
- minimapItemColor: string;
746
- minimapItemRadius: string;
747
- minimapPrimaryColor: string;
748
- minimapAccentColor: string;
749
- minimapMutedColor: string;
750
- minimapViewportColor: string;
751
- minimapViewportBackground: string;
752
- };
753
- segmentedBar: {
754
- gap: string;
755
- largeGap: string;
756
- trackHeight: string;
757
- largeTrackHeight: string;
758
- trackGap: string;
759
- trackBackground: string;
760
- trackRadius: string;
761
- largeTrackRadius: string;
762
- segmentMinWidth: string;
763
- largeSegmentMinWidth: string;
764
- largeSegmentFontSize: string;
765
- largeSegmentFontWeight: string;
766
- legendGapX: string;
767
- largeLegendGapX: string;
768
- legendGapY: string;
769
- legendFontSize: string;
770
- largeLegendFontSize: string;
771
- legendItemGap: string;
772
- dotSize: string;
773
- largeDotSize: string;
774
- labelColor: string;
775
- largeLabelColor: string;
776
- monoFontFamily: string;
777
- valueColor: string;
778
- valueFontWeight: string;
779
- percentColor: string;
780
- asideColor: string;
781
- duration: string;
782
- primaryColor: string;
783
- primaryText: string;
784
- secondaryColor: string;
785
- secondaryText: string;
786
- successColor: string;
787
- successText: string;
788
- infoColor: string;
789
- infoText: string;
790
- warnColor: string;
791
- warnText: string;
792
- dangerColor: string;
793
- dangerText: string;
794
- neutralColor: string;
795
- neutralText: string;
796
- };
797
- heatmap: {
798
- maxHeight: string;
799
- background: string;
800
- scrollPaddingBottom: string;
801
- scrollRadius: string;
802
- rowGap: string;
803
- rowPaddingY: string;
804
- rowBorderColor: string;
805
- headPaddingBottom: string;
806
- leadWidth: string;
807
- leadPaddingEnd: string;
808
- leadFontSize: string;
809
- leadColor: string;
810
- valueWidth: string;
811
- headFontSize: string;
812
- headFontWeight: string;
813
- headColor: string;
814
- groupGap: string;
815
- groupLabelGap: string;
816
- groupLabelFontSize: string;
817
- groupLabelFontWeight: string;
818
- groupLabelColor: string;
819
- columnsMinWidth: string;
820
- columnGap: string;
821
- columnFontSize: string;
822
- columnColor: string;
823
- cellSize: string;
824
- cellRadius: string;
825
- cellHoverScale: string;
826
- cellDuration: string;
827
- legendCellSize: string;
828
- legendGapX: string;
829
- legendGapY: string;
830
- legendMarginTop: string;
831
- legendItemGap: string;
832
- legendFontSize: string;
833
- legendColor: string;
834
- successColor: string;
835
- dangerColor: string;
836
- warnColor: string;
837
- infoColor: string;
838
- infoTint: string;
839
- pendingBorderColor: string;
840
- neutralColor: string;
841
- emptyColor: string;
842
- scaleColor: string;
843
- scaleBase: string;
844
- };
845
- empty: {
846
- gap: string;
847
- color: string;
848
- fontSize: string;
849
- iconSize: string;
850
- iconFontSize: string;
851
- iconColor: string;
852
- iconBackground: string;
853
- };
854
- focusRing: {
855
- color: string;
856
- width: string;
857
- offset: string;
858
- };
859
- motion: {
860
- enterDuration: string;
861
- updateDuration: string;
862
- hoverDuration: string;
863
- easing: string;
864
- stagger: string;
865
- };
866
- }> | undefined>;
384
+ /** Design tokens of this chart (`chart`, group `orgChart`) */
385
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
386
+ /** Classes and styles of the parts: `root`, `bar`, `toolbar`, `canvas`, `stage`, `minimap`, `hint` */
867
387
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxOrgChartPart, import("@tectra-ng/core/config").TxPassThroughValue<TxOrgChart>>> | undefined>;
388
+ /** How `pt` merges with the global pass-through */
868
389
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
390
+ /** Removes the tectra styles and keeps the behaviour */
869
391
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
392
+ /** The chevron of a node was pressed: the node id */
870
393
  readonly nodeToggle: import("@angular/core").OutputEmitterRef<string>;
394
+ /** A card was clicked or pressed with Enter / Space (not after a drag): the node */
871
395
  readonly nodeClick: import("@angular/core").OutputEmitterRef<TxOrgChartNode>;
396
+ /** The search text, 400ms after typing stops */
872
397
  readonly searchChange: import("@angular/core").OutputEmitterRef<string>;
398
+ /** "Expand all" was pressed */
873
399
  readonly expandAll: import("@angular/core").OutputEmitterRef<void>;
400
+ /** "Collapse all" was pressed */
874
401
  readonly collapseAll: import("@angular/core").OutputEmitterRef<void>;
875
402
  readonly nodeTemplate: import("@angular/core").Signal<TxOrgChartNodeTemplate | undefined>;
876
403
  readonly isUnstyled: import("@angular/core").Signal<boolean>;