@tectra-ng/charts 0.4.1 → 0.4.3

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 (90) hide show
  1. package/bar-list/README.md +1 -1
  2. package/boxplot/README.md +1 -1
  3. package/bullet/README.md +1 -1
  4. package/candlestick/README.md +1 -1
  5. package/column/README.md +3 -3
  6. package/combo/README.md +1 -1
  7. package/core/README.md +8 -6
  8. package/fesm2022/tectra-ng-charts-candlestick.mjs +23 -7
  9. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-charts-column.mjs +1 -1
  11. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-charts-core.mjs +81 -18
  13. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-charts-funnel.mjs +29 -7
  15. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-charts-gantt.mjs +487 -27
  17. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-gauge.mjs +79 -34
  19. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-org-chart.mjs +36 -8
  21. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-pie.mjs +27 -9
  23. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-charts-radial-bar.mjs +5 -4
  25. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-charts-range-area.mjs +113 -58
  27. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-charts-rank-line.mjs +79 -31
  29. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-charts-sankey.mjs +99 -18
  31. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +53 -7
  33. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-charts-sunburst.mjs +31 -3
  35. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-charts-waterfall.mjs +57 -20
  37. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-charts.mjs +1 -1
  39. package/funnel/README.md +2 -2
  40. package/gantt/README.md +12 -8
  41. package/gauge/README.md +3 -3
  42. package/line/README.md +1 -1
  43. package/org-chart/README.md +1 -0
  44. package/package.json +5 -5
  45. package/pie/README.md +5 -4
  46. package/radar/README.md +1 -1
  47. package/radial-bar/README.md +2 -2
  48. package/range-area/README.md +2 -1
  49. package/rank-line/README.md +3 -2
  50. package/sankey/README.md +1 -1
  51. package/segmented-bar/README.md +2 -1
  52. package/treemap/README.md +1 -1
  53. package/types/tectra-ng-charts-bar-list.d.ts +1 -1
  54. package/types/tectra-ng-charts-boxplot.d.ts +1 -1
  55. package/types/tectra-ng-charts-bullet.d.ts +1 -1
  56. package/types/tectra-ng-charts-candlestick.d.ts +7 -3
  57. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  58. package/types/tectra-ng-charts-column.d.ts +3 -3
  59. package/types/tectra-ng-charts-combo.d.ts +1 -1
  60. package/types/tectra-ng-charts-core.d.ts +45 -10
  61. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  62. package/types/tectra-ng-charts-funnel.d.ts +8 -2
  63. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  64. package/types/tectra-ng-charts-gantt.d.ts +166 -10
  65. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  66. package/types/tectra-ng-charts-gauge.d.ts +21 -6
  67. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  68. package/types/tectra-ng-charts-line.d.ts +1 -1
  69. package/types/tectra-ng-charts-org-chart.d.ts +13 -2
  70. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-pie.d.ts +13 -4
  72. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-radar.d.ts +1 -1
  74. package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
  75. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  76. package/types/tectra-ng-charts-range-area.d.ts +12 -3
  77. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  78. package/types/tectra-ng-charts-rank-line.d.ts +28 -10
  79. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  80. package/types/tectra-ng-charts-sankey.d.ts +36 -9
  81. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  82. package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
  83. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  84. package/types/tectra-ng-charts-sunburst.d.ts +10 -0
  85. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  86. package/types/tectra-ng-charts-treemap.d.ts +1 -1
  87. package/types/tectra-ng-charts-waterfall.d.ts +25 -6
  88. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  89. package/types/tectra-ng-charts.d.ts +1 -1
  90. package/waterfall/README.md +5 -5
@@ -92,8 +92,18 @@ export interface TxChartSeries {
92
92
  }
93
93
  /** Turns a value into the text shown for it. */
94
94
  export type TxChartValueFormatter = (value: number) => string;
95
- /** How values are written: `number`, `integer`, `compact`, `percent` or an own formatter function. */
96
- export type TxChartValueFormat = 'number' | 'integer' | 'compact' | 'percent' | TxChartValueFormatter;
95
+ /** Money format of chart values in the active locale: compact on the axes, in full in tooltips and labels. */
96
+ export interface TxChartCurrencyFormat {
97
+ /** ISO 4217 code of the currency, like `USD` or `EUR`. */
98
+ currency: string;
99
+ /** How the currency is written: `symbol` (default, `$`), `narrowSymbol`, `code` (`USD`) or `name` (`US dollars`). */
100
+ currencyDisplay?: Intl.NumberFormatOptions['currencyDisplay'];
101
+ }
102
+ /**
103
+ * How values are written: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`)
104
+ * or an own formatter function.
105
+ */
106
+ export type TxChartValueFormat = 'number' | 'integer' | 'compact' | 'percent' | TxChartCurrencyFormat | TxChartValueFormatter;
97
107
  /** Which point a tooltip value belongs to. */
98
108
  export interface TxChartTooltipContext {
99
109
  /** Index of the series. */
@@ -338,15 +348,18 @@ export interface TxChartKeyEvent {
338
348
  }
339
349
  /**
340
350
  * Round step (1, 2, 5 times a power of ten) that gives about `count` ticks between two numbers; `0`
341
- * when it cannot.
351
+ * when it cannot. With `integer` the step is a whole number, at least 1.
342
352
  */
343
- export declare function tickStep(start: number, stop: number, count: number): number;
353
+ export declare function tickStep(start: number, stop: number, count: number, integer?: boolean): number;
344
354
  /** Number of decimals a step needs to be written exactly. */
345
355
  export declare function decimalsOf(step: number): number;
346
- /** Widens a range to round numbers, for example `[3, 97]` to `[0, 100]`. */
347
- export declare function niceDomain(min: number, max: number, count?: number): TxRange;
348
- /** Round tick values between `min` and `max`, about `count` of them. */
349
- export declare function linearTicks(min: number, max: number, count?: number): number[];
356
+ /**
357
+ * Widens a range to round numbers, for example `[3, 97]` to `[0, 100]`; with `integer` the tick step
358
+ * is a whole number.
359
+ */
360
+ export declare function niceDomain(min: number, max: number, count?: number, integer?: boolean): TxRange;
361
+ /** Round tick values between `min` and `max`, about `count` of them; with `integer` only whole numbers. */
362
+ export declare function linearTicks(min: number, max: number, count?: number, integer?: boolean): number[];
350
363
  /** Linear scale from a value domain to a pixel range. */
351
364
  export declare function linearScale(domain: TxRange, range: TxRange): TxContinuousScale;
352
365
  /** Widens a range to whole powers of ten for a logarithmic scale. */
@@ -390,14 +403,19 @@ export declare function numberFormat(intl: string, options?: Intl.NumberFormatOp
390
403
  export declare function dateFormat(intl: string, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
391
404
  /**
392
405
  * Builds the value formatter of a chart for a locale and a `TxChartValueFormat`; `percent` takes
393
- * values already in percent.
406
+ * values already in percent, a currency is written in full (`$36,400`).
394
407
  */
395
408
  export declare function chartNumberFormatter(intl: string, format?: TxChartValueFormat): TxChartValueFormatter;
396
409
  /**
397
410
  * Like `chartNumberFormatter` but writes `number` and `integer` ticks with as many decimals as the
398
- * tick step needs.
411
+ * tick step needs, and a currency in compact form (`$36K`).
399
412
  */
400
413
  export declare function tickFormatter(intl: string, ticks: readonly number[], format?: TxChartValueFormat): TxChartValueFormatter;
414
+ /**
415
+ * Short formatter for axes and tight labels: a currency in compact form (`$36K`), `percent` and
416
+ * `integer` as they are, other formats as `compact`.
417
+ */
418
+ export declare function compactValueFormatter(intl: string, format?: TxChartValueFormat): TxChartValueFormatter;
401
419
  /** Writes a number in compact form, for example `1234567` as `1.2M`. */
402
420
  export declare function compactNumber(value: number, intl?: string): string;
403
421
  /** `Intl.DateTimeFormat` options for tick labels of a time step over a time span in ms. */
@@ -653,6 +671,23 @@ export declare function chartHeightValue(height: TxChartHeight, fallback?: numbe
653
671
  export declare function chartBoxHeight(height: TxChartHeight, legend: TxChartLegendPosition | null, toolbar?: boolean): number;
654
672
  /** Size of the plot box for the first render, before the chart is measured. */
655
673
  export declare function initialChartSize(height: TxChartHeight, legend: TxChartLegendPosition | null, width?: number, toolbar?: boolean): TxChartSize;
674
+ /** Width of a chart below which a legend on the left or right moves under the plot, in px. */
675
+ export declare const TX_CHART_NARROW_WIDTH = 420;
676
+ /**
677
+ * Where a legend goes for the chart width: a `left` or `right` legend moves to the `bottom` when the
678
+ * chart is narrower than `narrowWidth`; an unknown width keeps the asked position.
679
+ */
680
+ export declare function chartLegendPlace(position: TxChartLegendPosition, width: number | null, narrowWidth?: number): TxChartLegendPosition;
681
+ /**
682
+ * Width of the host element of the current component, measured in the browser after the first render
683
+ * and on every resize; `null` on the server and before the first measure.
684
+ */
685
+ export declare function injectHostWidth(): Signal<number | null>;
686
+ /**
687
+ * Legend position of the chart in the current injection context that follows its width: a side legend
688
+ * moves under the plot on a narrow chart (see `chartLegendPlace`).
689
+ */
690
+ export declare function injectLegendPlace(position: () => TxChartLegendPosition): Signal<TxChartLegendPosition>;
656
691
  /** Length of the entrance animation of a chart, in ms. */
657
692
  export declare const TX_CHART_ENTER_MS = 1100;
658
693
  /** Entrance animation state of a chart. */
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-core.d.ts","names":[],"sources":["../../../../packages/charts/core/src/chart.types.ts","../../../../packages/charts/core/src/scale.ts","../../../../packages/charts/core/src/format.ts","../../../../packages/charts/core/src/curve.ts","../../../../packages/charts/core/src/polar.ts","../../../../packages/charts/core/src/stack.ts","../../../../packages/charts/core/src/decimate.ts","../../../../packages/charts/core/src/palette.ts","../../../../packages/charts/core/src/cartesian.ts","../../../../packages/charts/core/src/chart-size.ts","../../../../packages/charts/core/src/chart-motion.ts","../../../../packages/charts/core/src/chart-templates.directive.ts","../../../../packages/charts/core/src/chart-legend.component.ts","../../../../packages/charts/core/src/chart-axes.component.ts","../../../../packages/charts/core/src/chart-hover-band.component.ts","../../../../packages/charts/core/src/chart-annotations.ts","../../../../packages/charts/core/src/chart-annotations.component.ts","../../../../packages/charts/core/src/chart-export.ts","../../../../packages/charts/core/src/chart-menu.component.ts","../../../../packages/charts/core/src/chart-frame.component.ts","../../../../packages/charts/core/src/series-data.ts","../../../../packages/charts/core/src/chart-interaction.ts","../../../../packages/charts/core/src/chart-token.ts"],"mappings":";;;;;;YACY;;iBAGK;;EAEf;;EAEA,QAAQ;;EAER,OAAO;;EAEP,IAAI;;EAEJ,OAAO;;EAEP,MAAM;;;YAII;;iBAGK;;EAEf,MAAM;;EAEN;;EAEA;;;iBAIe,oBAAoB;;EAEnC;;EAEA,SAAS,iBAAiB;;;iBAIX;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA,MAAM;;EAEN,OAAO;;EAEP,QAAQ;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BAAiB,yCAAwC,SAAc,OAAM,eAA4B;;wBA+D1I,aAAa;;;;;wBAQb,aACd,cAAc,gBACd,cACA,cACA,qBACA,oBACA;;qBAOW;;wBAGG,UAAU,eAAe;;wBASzB,WACd,2BACA;EAAmB;EAAc;KACjC,SAAS,eAAe,gCACxB,iBACC;;iBC1Ic;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,UAAU,MAAM,qBAAqB,cAAc;;wBAWnD,UAAU,aAAa,eAAe,eAAe,kBAAwB;;wBAa7E,WAAW,eAAe,cAAc;;;;;wBCjCxC,gBAAgB,SAAS,4BAA4B,cAAc;;;;;wBAanE,WAAW,yCAAyC"}
1
+ {"version":3,"file":"tectra-ng-charts-core.d.ts","names":[],"sources":["../../../../packages/charts/core/src/chart.types.ts","../../../../packages/charts/core/src/scale.ts","../../../../packages/charts/core/src/format.ts","../../../../packages/charts/core/src/curve.ts","../../../../packages/charts/core/src/polar.ts","../../../../packages/charts/core/src/stack.ts","../../../../packages/charts/core/src/decimate.ts","../../../../packages/charts/core/src/palette.ts","../../../../packages/charts/core/src/cartesian.ts","../../../../packages/charts/core/src/chart-size.ts","../../../../packages/charts/core/src/chart-legend-place.ts","../../../../packages/charts/core/src/chart-motion.ts","../../../../packages/charts/core/src/chart-templates.directive.ts","../../../../packages/charts/core/src/chart-legend.component.ts","../../../../packages/charts/core/src/chart-axes.component.ts","../../../../packages/charts/core/src/chart-hover-band.component.ts","../../../../packages/charts/core/src/chart-annotations.ts","../../../../packages/charts/core/src/chart-annotations.component.ts","../../../../packages/charts/core/src/chart-export.ts","../../../../packages/charts/core/src/chart-menu.component.ts","../../../../packages/charts/core/src/chart-frame.component.ts","../../../../packages/charts/core/src/series-data.ts","../../../../packages/charts/core/src/chart-interaction.ts","../../../../packages/charts/core/src/chart-token.ts"],"mappings":";;;;;;YACY;;iBAGK;;EAEf;;EAEA,QAAQ;;EAER,OAAO;;EAEP,IAAI;;EAEJ,OAAO;;EAEP,MAAM;;;YAII;;iBA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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;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;;;;YC5Eb;;iBAGK;;EAEf;;EAEA;;EAEA;;;;;;wBAuBc,gBAAgB,iBAAiB,iBAAiB,yCAAwC,SAAc,OAAM,eAA4B;;wBA+D1I,aAAa;;;;;wBAQb,aACd,cAAc,gBACd,cACA,cACA,qBACA,oBACA;;qBAOW;;wBAGG,UAAU,eAAe;;wBASzB,WACd,2BACA;EAAmB;EAAc;KACjC,SAAS,eAAe,gCACxB,iBACC;;iBC1Ic;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,UAAU,MAAM,qBAAqB,cAAc;;wBAWnD,UAAU,aAAa,eAAe,eAAe,kBAAwB;;wBAa7E,WAAW,eAAe,cAAc;;;;;wBCjCxC,gBAAgB,SAAS,4BAA4B,cAAc;;;;;wBAanE,WAAW,yCAAyC"}
@@ -108,6 +108,11 @@ export declare function funnelConnectorPath(upper: TxFunnelBox, lower: TxFunnelB
108
108
  export declare function funnelRate(value: number, base: number): number;
109
109
  /** Index of the box at a vertical position, counting the gaps to the nearest box; -1 outside the funnel. */
110
110
  export declare function funnelIndexAt(boxes: readonly TxFunnelBox[], y: number): number;
111
+ /**
112
+ * Splits a step name into at most `maxLines` lines that fit `maxWidth` at a font size, breaking
113
+ * between words; the last line is shortened with an ellipsis when the rest still does not fit.
114
+ */
115
+ export declare function funnelLabelLines(text: string, maxWidth: number, fontSize: number, maxLines?: number): string[];
111
116
  /**
112
117
  * `<tx-funnel-chart>` — how many pass each step of a process: visits, sign-ups, trials, purchases. Centred bars sized by value, soft connectors between them and the conversion from the step before. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
113
118
  * @see https://tectra-ng.com/components/funnel-chart
@@ -123,7 +128,7 @@ export declare class TxFunnelChart {
123
128
  readonly height: import("@angular/core").InputSignal<TxChartHeight>;
124
129
  /** Gives every step its own palette colour; by default the funnel is one colour */
125
130
  readonly colorful: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
126
- /** Writes the step names in a column on the left (on by default) */
131
+ /** Writes the step names in a column on the left (on by default), as wide as the longest name up to 40% of the chart (`chart.funnel.labelWidth`); a longer name wraps onto two lines between words, then is cut with the full name in a hint */
127
132
  readonly showLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
128
133
  /** Writes the values on the bars, or beside a bar that is too narrow (on by default) */
129
134
  readonly showValues: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -133,7 +138,7 @@ export declare class TxFunnelChart {
133
138
  readonly connectors: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
134
139
  /** Shows the value, the share of the first step and the conversion on hover and keyboard focus */
135
140
  readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
136
- /** Format of the values: `number`, `integer`, `compact`, `percent` or a function */
141
+ /** Format of the values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
137
142
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
138
143
  /** Shows the chart menu: download SVG, PNG or CSV (the file is named after `ariaLabel`) */
139
144
  readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -184,6 +189,7 @@ export declare class TxFunnelChart {
184
189
  key: string;
185
190
  index: number;
186
191
  label: string;
192
+ lines: string[];
187
193
  full: string;
188
194
  labelX: number;
189
195
  y: number;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-funnel.d.ts","names":[],"sources":["../../../../packages/charts/funnel/src/funnel-chart.types.ts","../../../../packages/charts/funnel/src/funnel-layout.ts","../../../../packages/charts/funnel/src/funnel-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;YAIU,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBCrEe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;wBAMc,YAAY,OAAO,sBAAsB;;wBAczC,oBAAoB,OAAO,aAAa,OAAO;;wBAM/C,WAAW,eAAe;;wBAK1B,cAAc,gBAAgB,eAAe;;;;;qBCIhD;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,+BAAK,qBAAA;;WACL,gCAAM,YAAA;;WACN,kCAAQ;;WACR,oCAAU;;WACV,oCAAU;;WACV,wCAAc;;WACd,oCAAU;;WACV,qCAAW;;WACX,qCAAW,YAAA;;WACX,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,oCAAU,iBAAA;WAEV,yCAAe,OAAA;mBACP;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ;WACR,+BAAK;WACL,gCAAM;WACN,kCAAQ;;;;;;;mBAEA;WACR,8BAAI,gBAAA;WACJ,gCAAM;WACN,iCAAO;WACP,8BAAI,gDAAA;WAEJ,wCAAc,wCAAA;WACd,0CAAgB,wCAAA;WAEhB,qCAAW;WAOX,gCAAM,OAAA;WAgBN,yCAAe,OAAA;WAgBf,mCAAS;WAKT,gCAAM;;;;;;;;;;;WAoBN,uCAAa,QAAA;WAKb,iCAAO,OAAA;WAeP,iCAAO;WASP,mCAAS;;;;;;;;;;;EAwBlB,UAAU,OAAO;EAajB,WAAW,OAAO;UAeV;SAhMG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-funnel.d.ts","names":[],"sources":["../../../../packages/charts/funnel/src/funnel-chart.types.ts","../../../../packages/charts/funnel/src/funnel-layout.ts","../../../../packages/charts/funnel/src/funnel-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;YAIU,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBCnEe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;wBAMc,YAAY,OAAO,sBAAsB;;wBAczC,oBAAoB,OAAO,aAAa,OAAO;;wBAM/C,WAAW,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A;;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"}
@@ -21,13 +21,69 @@ export interface TxGanttTask {
21
21
  milestone?: boolean;
22
22
  /** Color of the bar; by default the color of its group. */
23
23
  color?: string;
24
+ /** Tasks this one waits for: ids (finish-to-start) or `{ id, type }`. Unknown ids, self links and links that close a cycle are left out. */
25
+ dependsOn?: readonly (string | TxGanttDependency)[] | null;
26
+ }
27
+ /**
28
+ * How a task waits for its predecessor: `finish-to-start` (default) — starts after it ends, `start-to-start` — starts after it
29
+ * starts, `finish-to-finish` — ends after it ends, `start-to-finish` — ends after it starts.
30
+ */
31
+ export type TxGanttDependencyType = 'finish-to-start' | 'start-to-start' | 'finish-to-finish' | 'start-to-finish';
32
+ /** A predecessor of a task with the kind of link. */
33
+ export interface TxGanttDependency {
34
+ /** Id of the predecessor task. */
35
+ id: string;
36
+ /** Kind of link; `finish-to-start` by default. */
37
+ type?: TxGanttDependencyType;
38
+ }
39
+ /** A checked dependency: both tasks exist, no self link, no duplicate and no cycle. */
40
+ export interface TxGanttLink {
41
+ /** Id of the predecessor. */
42
+ from: string;
43
+ /** Id of the task that waits for it. */
44
+ to: string;
45
+ /** Kind of link. */
46
+ type: TxGanttDependencyType;
47
+ }
48
+ /** A point of a dependency route: x in px, y in rows from the top of the body. */
49
+ export type TxGanttPoint = [x: number, y: number];
50
+ /** A box a dependency route keeps out of: x in px, y in rows. */
51
+ export interface TxGanttBox {
52
+ /** Left edge in px. */
53
+ x1: number;
54
+ /** Right edge in px. */
55
+ x2: number;
56
+ /** Top edge in rows. */
57
+ y1: number;
58
+ /** Bottom edge in rows. */
59
+ y2: number;
60
+ }
61
+ /** One end of a dependency route: a point on the left (`start`) or right (`finish`) edge of a bar. */
62
+ export interface TxGanttLinkEnd {
63
+ /** Horizontal position in px. */
64
+ x: number;
65
+ /** Vertical position in rows. */
66
+ y: number;
67
+ /** Edge of the bar the route leaves or enters. */
68
+ side: 'start' | 'finish';
69
+ }
70
+ /** A dependency arrow ready to draw; x in px, y in rows. */
71
+ export interface TxGanttLinkPath {
72
+ /** Stable key of the arrow. */
73
+ key: string;
74
+ /** Indexes of the links in the list of `ganttLinks` that the arrow stands for; several when they meet on a folded group. */
75
+ links: number[];
76
+ /** SVG path of the line. */
77
+ path: string;
78
+ /** SVG path of the arrowhead. */
79
+ head: string;
24
80
  }
25
81
  /** Width of a day on the scale: `day`, `week`, `month` or `quarter`. */
26
82
  export type TxGanttZoom = 'day' | 'week' | 'month' | 'quarter';
27
83
  /** `tasks` gives a row per task under its group; `timeline` gives a lane per group with all its tasks. */
28
84
  export type TxGanttLayout = 'tasks' | 'timeline';
29
85
  /** Parts of `tx-gantt-chart` that `pt` can style. */
30
- export type TxGanttPart = 'root' | 'toolbar' | 'scroll' | 'head' | 'corner' | 'scale' | 'row' | 'group' | 'label' | 'lane' | 'bar' | 'milestone' | 'today' | 'empty';
86
+ export type TxGanttPart = 'root' | 'toolbar' | 'scroll' | 'head' | 'corner' | 'scale' | 'row' | 'group' | 'label' | 'lane' | 'bar' | 'milestone' | 'dependency' | 'today' | 'empty';
31
87
  /** A cell of the date scale in the header. */
32
88
  export interface TxGanttTick {
33
89
  /** Stable key of the cell. */
@@ -57,6 +113,8 @@ export interface TxGanttSpan {
57
113
  width: number;
58
114
  /** Color of the bar. */
59
115
  color: string;
116
+ /** Sub-row of the bar inside its row, from 0; overlapping tasks of a timeline lane get their own sub-rows. */
117
+ lane: number;
60
118
  }
61
119
  /** A row of `tx-gantt-chart`: a group header, a task or a lane. */
62
120
  export interface TxGanttRow {
@@ -79,6 +137,8 @@ export interface TxGanttRow {
79
137
  collapsed: boolean;
80
138
  /** How many tasks the row holds. */
81
139
  count: number;
140
+ /** Number of sub-rows the row needs for its overlapping bars; 1 for a single bar. */
141
+ lanes: number;
82
142
  }
83
143
  /** A group header with the rows it folds, or a run of rows without a group. */
84
144
  export interface TxGanttFold {
@@ -111,6 +171,8 @@ export interface TxGanttGroupToggle {
111
171
  export declare const TX_GANTT_DAY = 86400000;
112
172
  /** Width of one day in px on each zoom level. */
113
173
  export declare const TX_GANTT_DAY_WIDTH: Record<TxGanttZoom, number>;
174
+ /** Length in px of the stub a dependency arrow draws out of a bar edge; a name drawn beside that edge moves this much aside. */
175
+ export declare const TX_GANTT_LINK_STUB = 8;
114
176
  /** Midnight of the local day that contains the time, in ms. */
115
177
  export declare function startOfDay(time: number): number;
116
178
  /**
@@ -125,15 +187,29 @@ export declare function ganttTaskRange(task: TxGanttTask): [number, number] | nu
125
187
  * Range of the scale in ms: from `from` or the earliest task to `to` or the latest one, widened by `padding` days on both sides.
126
188
  */
127
189
  export declare function ganttRange(tasks: readonly TxGanttTask[], padding: number, from?: TxGanttDate | null, to?: TxGanttDate | null): [number, number];
190
+ /** First day after the end of the header cell that contains `end - 1 ms`: the next Monday, month or quarter for those zooms. */
191
+ export declare function ganttCellEnd(end: number, zoom: TxGanttZoom): number;
192
+ /**
193
+ * Widens a range so the scale is at least `minWidth` px wide at the zoom level and ends on the edge of a whole header cell.
194
+ */
195
+ export declare function ganttFitRange(range: [number, number], zoom: TxGanttZoom, minWidth: number): [number, number];
128
196
  /** Horizontal position in px of a time on the scale that starts at `rangeStart`. */
129
197
  export declare function ganttX(time: number, rangeStart: number, dayWidth: number): number;
130
198
  /**
131
199
  * Cells of the two header lines of the scale for a zoom level: months over days or weeks, years over months or quarters.
132
200
  */
133
- export declare function ganttTicks(range: [number, number], zoom: TxGanttZoom, intl: string): {
201
+ export declare function ganttTicks(range: [number, number], zoom: TxGanttZoom, intl: string, fontSize?: number): {
134
202
  top: TxGanttTick[];
135
203
  bottom: TxGanttTick[];
136
204
  };
205
+ /**
206
+ * Puts overlapping bars on separate sub-rows: each bar takes the first sub-row whose last bar ends at or before its start.
207
+ * Bars keep their order; a milestone takes the width of its diamond.
208
+ */
209
+ export declare function ganttPack(spans: readonly TxGanttSpan[]): {
210
+ spans: TxGanttSpan[];
211
+ lanes: number;
212
+ };
137
213
  /**
138
214
  * Builds the rows for a layout: a row per task and a header per group (`tasks`), or a lane per group (`timeline`).
139
215
  */
@@ -142,34 +218,71 @@ export declare function ganttRows(tasks: readonly TxGanttTask[], layout: TxGantt
142
218
  export declare function ganttFolds(rows: readonly TxGanttRow[]): TxGanttFold[];
143
219
  /** Number of days between two times, never negative. */
144
220
  export declare function ganttDays(start: number, end: number): number;
221
+ /**
222
+ * Checks the `dependsOn` lists of the tasks: drops unknown ids, self links, repeated pairs and every link that would close a cycle
223
+ * (found depth-first in task order), so the result is always a graph without loops.
224
+ */
225
+ export declare function ganttLinks(tasks: readonly TxGanttTask[]): TxGanttLink[];
226
+ /**
227
+ * The dependency chain of a task: every task it waits for and every task that waits for it, directly or through others,
228
+ * with the indexes of the links between them.
229
+ */
230
+ export declare function ganttChain(links: readonly TxGanttLink[], id: string): {
231
+ tasks: Set<string>;
232
+ links: Set<number>;
233
+ };
234
+ /**
235
+ * Orthogonal route of a dependency arrow from one bar edge to another: a short stub out of the source, a vertical run and a stub
236
+ * into the target, which shrinks to fit a narrow gap. When the target edge lies behind the source the route goes around through
237
+ * the gap between rows. Among
238
+ * the possible routes the one that crosses the fewest `boxes` wins, then the one with fewer turns.
239
+ */
240
+ export declare function ganttRoute(from: TxGanttLinkEnd, to: TxGanttLinkEnd, boxes?: readonly TxGanttBox[]): TxGanttPoint[];
241
+ /** SVG path of a route with its corners rounded by `rx` px across and `ry` rows down. */
242
+ export declare function ganttLinkPath(points: readonly TxGanttPoint[], rx?: number, ry?: number): string;
243
+ /** SVG path of the arrowhead at the end of a route, pointing along its last segment. */
244
+ export declare function ganttArrowHead(points: readonly TxGanttPoint[], length?: number, half?: number): string;
245
+ /** Ids of the tasks with a dependency arrow on the right (`finish`) edge; their names beside the bar move aside for it. */
246
+ export declare function ganttFinishLinked(links: readonly TxGanttLink[]): Set<string>;
247
+ /**
248
+ * Dependency arrows for the folds as drawn: y in rows from the top of the body, folded rows take no height. A task of a folded
249
+ * group hands its arrows to the group summary bar; arrows inside one folded group are left out and arrows that meet on the same
250
+ * ends are drawn once. Routes keep out of other bars and, with `labelWidth`, out of the names drawn beside the bars. `height` is
251
+ * the body height in rows.
252
+ */
253
+ export declare function ganttLinkPaths(links: readonly TxGanttLink[], folds: readonly TxGanttFold[], labelWidth?: (task: TxGanttTask) => number): {
254
+ paths: TxGanttLinkPath[];
255
+ height: number;
256
+ };
145
257
  /**
146
258
  * Where task names go: beside the bar, inside it, or nowhere; `auto` picks beside for `tasks` and inside for `timeline`.
147
259
  */
148
260
  export type TxGanttBarLabels = 'auto' | 'outside' | 'inside' | 'none';
149
261
  /**
150
- * `<tx-gantt-chart>` — tasks as bars on a calendar: groups that fold, progress, milestones, a line for today, a scale from days to quarters with horizontal scrolling and zoom. The `timeline` layout puts all tasks of a group on one lane — bookings, shifts, releases. Built in HTML on the design tokens, rendered on the server.
262
+ * `<tx-gantt-chart>` — tasks as bars on a calendar: groups that fold, progress, milestones, dependency arrows, a line for today, a scale from days to quarters with horizontal scrolling and zoom. The `timeline` layout puts all tasks of a group on one lane — bookings, shifts, releases. Built in HTML on the design tokens, rendered on the server.
151
263
  * @see https://tectra-ng.com/components/gantt-chart
152
264
  */
153
265
  export declare class TxGanttChart {
154
266
  private readonly ganttTheme;
155
267
  private locale;
156
268
  private injector;
269
+ private destroyRef;
157
270
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
158
- /** `{ id, label, start, end?, group?, progress?, milestone?, color? }[]`; dates are `Date`, timestamps or ISO strings. A date-only `end` (`'2026-03-06'`) includes that day; without `end` a task lasts one day. `milestone: true` draws a diamond at `start`. An empty list shows "No data" */
271
+ /** `{ id, label, start, end?, group?, progress?, milestone?, color?, dependsOn? }[]`; dates are `Date`, timestamps or ISO strings. A date-only `end` (`'2026-03-06'`) includes that day; without `end` a task lasts one day. `milestone: true` draws a diamond at `start`. `dependsOn` lists the tasks it waits for: ids (finish-to-start) or `{ id, type }` with `finish-to-start`, `start-to-start`, `finish-to-finish` or `start-to-finish`; unknown ids, self links and links that close a cycle are left out. An empty list shows "No data" */
159
272
  readonly tasks: import("@angular/core").InputSignal<readonly TxGanttTask[] | null | undefined>;
160
- /** `tasks` (default) — a row per task under its group, groups fold; `timeline` — a lane per group with all its tasks */
273
+ /** `tasks` (default) — a row per task under its group, groups fold; `timeline` — a lane per group with all its tasks; overlapping tasks of a lane get their own sub-rows */
161
274
  readonly layout: import("@angular/core").InputSignal<TxGanttLayout>;
162
275
  /** Two-way: `day`, `week` (default), `month` or `quarter` */
163
276
  readonly zoom: import("@angular/core").ModelSignal<TxGanttZoom>;
164
277
  /** First date of the scale; the earliest task minus `padding` by default */
165
278
  readonly start: import("@angular/core").InputSignal<TxGanttDate | null | undefined>;
166
- /** Last date of the scale; the latest task plus `padding` by default */
279
+ /** Last date of the scale; the latest task plus `padding` by default. The scale always runs to the end of a whole header cell and, when the range is short, on to the edge of the chart */
167
280
  readonly end: import("@angular/core").InputSignal<TxGanttDate | null | undefined>;
168
281
  /** Days of air before the first and after the last task (3) */
169
282
  readonly padding: import("@angular/core").InputSignal<number>;
170
283
  /** Date of the today line; the current moment by default, `null` hides it. On first render the chart scrolls so that today is in view */
171
284
  readonly today: import("@angular/core").InputSignal<TxGanttDate | null | undefined>;
172
- /** Task names: `auto` (beside the bar for `tasks`, inside for `timeline`), `outside`, `inside` or `none` */
285
+ /** Task names: `auto` (beside the bar for `tasks`, inside for `timeline`), `outside`, `inside` or `none`; a name whose bar starts left of the view sticks to its left edge */
173
286
  readonly barLabels: import("@angular/core").InputSignal<TxGanttBarLabels>;
174
287
  /** Shows the zoom buttons and the "Today" button (on by default) */
175
288
  readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -179,11 +292,15 @@ export declare class TxGanttChart {
179
292
  readonly labelHeader: import("@angular/core").InputSignal<string>;
180
293
  /** Shows skeleton rows */
181
294
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
295
+ /** Draws the `dependsOn` arrows between the bars (on by default) */
296
+ readonly showDependencies: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
297
+ /** Hovering or focusing a task lights up its dependency chain — everything it waits for and everything that waits for it — and dims the rest (on by default) */
298
+ readonly dependencyHighlight: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
182
299
  /** What the chart shows; starts the summary read by screen readers */
183
300
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
184
- /** Design tokens of this chart (`chart`) — row and header height, label column, bars, progress, milestones, weekends, today line, folding */
301
+ /** Design tokens of this chart (`chart`) — row and header height, label column, bars, progress, milestones, dependency arrows, dimming, weekends, today line, folding */
185
302
  readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
186
- /** Classes and styles of the parts: `root`, `toolbar`, `scroll`, `head`, `corner`, `scale`, `row`, `group`, `label`, `lane`, `bar`, `milestone`, `today`, `empty` */
303
+ /** Classes and styles of the parts: `root`, `toolbar`, `scroll`, `head`, `corner`, `scale`, `row`, `group`, `label`, `lane`, `bar`, `milestone`, `dependency`, `today`, `empty` */
187
304
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxGanttPart, import("@tectra-ng/core/config").TxPassThroughValue<TxGanttChart>>> | undefined>;
188
305
  /** How `pt` merges with the global pass-through */
189
306
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
@@ -203,12 +320,16 @@ export declare class TxGanttChart {
203
320
  readonly zooms: readonly TxGanttZoom[];
204
321
  readonly collapsed: import("@angular/core").WritableSignal<ReadonlySet<string>>;
205
322
  readonly focused: import("@angular/core").WritableSignal<string | null>;
323
+ readonly hovered: import("@angular/core").WritableSignal<string | null>;
324
+ readonly active: import("@angular/core").WritableSignal<string | null>;
206
325
  private readonly now;
207
326
  readonly skeletonRows: number[];
208
327
  private readonly intl;
209
328
  readonly list: import("@angular/core").Signal<readonly TxGanttTask[]>;
210
329
  readonly isEmpty: import("@angular/core").Signal<boolean>;
211
330
  readonly dayWidth: import("@angular/core").Signal<number>;
331
+ readonly viewport: import("@angular/core").WritableSignal<number>;
332
+ readonly dataRange: import("@angular/core").Signal<[number, number]>;
212
333
  readonly range: import("@angular/core").Signal<[number, number]>;
213
334
  readonly width: import("@angular/core").Signal<number>;
214
335
  readonly ticks: import("@angular/core").Signal<{
@@ -220,6 +341,24 @@ export declare class TxGanttChart {
220
341
  readonly spans: import("@angular/core").Signal<TxGanttSpan[]>;
221
342
  private readonly openRows;
222
343
  private readonly openSpans;
344
+ readonly links: import("@angular/core").Signal<TxGanttLink[]>;
345
+ readonly linkLayout: import("@angular/core").Signal<{
346
+ paths: import("@tectra-ng/charts/gantt").TxGanttLinkPath[];
347
+ height: number;
348
+ }>;
349
+ private readonly finishLinked;
350
+ readonly chain: import("@angular/core").Signal<{
351
+ tasks: Set<string>;
352
+ links: Set<number>;
353
+ } | null>;
354
+ readonly linkPaths: import("@angular/core").Signal<{
355
+ state: string | null;
356
+ key: string;
357
+ links: number[];
358
+ path: string;
359
+ head: string;
360
+ }[]>;
361
+ private readonly dimmedGroups;
223
362
  readonly labelsInside: import("@angular/core").Signal<boolean>;
224
363
  readonly labelsOutside: import("@angular/core").Signal<boolean>;
225
364
  readonly tabStop: import("@angular/core").Signal<string | null>;
@@ -227,11 +366,17 @@ export declare class TxGanttChart {
227
366
  readonly todayX: import("@angular/core").Signal<number | null>;
228
367
  readonly zoomLabels: import("@angular/core").Signal<Record<TxGanttZoom, string>>;
229
368
  readonly dayFormat: import("@angular/core").Signal<Intl.DateTimeFormat>;
230
- readonly text: import("@angular/core").Signal<Map<string, string[]>>;
369
+ private readonly dependencyText;
370
+ readonly text: import("@angular/core").Signal<Map<string, readonly string[]>>;
231
371
  readonly summary: import("@angular/core").Signal<string>;
232
372
  constructor();
233
373
  tooltipFor(span: TxGanttSpan): string;
234
374
  ariaFor(span: TxGanttSpan): string;
375
+ labelShift(span: TxGanttSpan): number;
376
+ isDimmed(id: string): boolean;
377
+ isGroupDimmed(group: string | null): boolean;
378
+ onBarHover(span: TxGanttSpan | null): void;
379
+ onBarBlur(): void;
235
380
  progressOf(span: TxGanttSpan): number | null;
236
381
  setZoom(zoom: TxGanttZoom, anchor?: {
237
382
  time: number;
@@ -248,6 +393,7 @@ export declare class TxGanttChart {
248
393
  onBarFocus(span: TxGanttSpan, element: HTMLElement): void;
249
394
  onBarKeydown(event: KeyboardEvent, span: TxGanttSpan): void;
250
395
  private reveal;
396
+ private observeViewport;
251
397
  private revealToday;
252
398
  private centerAnchor;
253
399
  private labelWidth;
@@ -314,6 +460,16 @@ export declare class TxGanttChart {
314
460
  "required": false;
315
461
  "isSignal": true;
316
462
  };
463
+ "showDependencies": {
464
+ "alias": "showDependencies";
465
+ "required": false;
466
+ "isSignal": true;
467
+ };
468
+ "dependencyHighlight": {
469
+ "alias": "dependencyHighlight";
470
+ "required": false;
471
+ "isSignal": true;
472
+ };
317
473
  "ariaLabel": {
318
474
  "alias": "ariaLabel";
319
475
  "required": false;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-gantt.d.ts","names":[],"sources":["../../../../packages/charts/gantt/src/gantt-chart.types.ts","../../../../packages/charts/gantt/src/gantt-layout.ts","../../../../packages/charts/gantt/src/gantt-chart.component.ts"],"mappings":";;;;YACY,gCAAgC;;iBAG3B;;EAEf;;EAEA;;EAEA,OAAO;;EAEP,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA;;YAGA;;iBAiBK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;IAAW;IAAW;;;EAEtB;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;EAEN,MAAM;;EAEN;;;iBAIe;;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AMN,oCAAU,OAAA,OAAA;WAKV,mCAAS,OAAA,KAAA;WAET,8BAAI,OAAA;WAiBJ,iCAAO;;EAYhB,WAAW,MAAM;EAIjB,QAAQ,MAAM;EAId,WAAW,MAAM;EAKjB,QAAQ,MAAM,aAAa;IAAW;IAAc;;EAcpD,SAAS,cAAc;IAAW;IAAc;;EAKhD,QAAQ,OAAO;EAUf;EAQA,SAAS;EAKT,WAAW,MAAM;EAKjB,WAAW,MAAM,aAAa,SAAS;EAKvC,aAAa,OAAO,eAAe,MAAM;UAoCjC;UAWA;UAQA;UAMA;UAIA;SA7OG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-gantt.d.ts","names":[],"sources":["../../../../packages/charts/gantt/src/gantt-chart.types.ts","../../../../packages/charts/gantt/src/gantt-layout.ts","../../../../packages/charts/gantt/src/gantt-chart.component.ts"],"mappings":";;;;YACY,gCAAgC;;iBAG3B;;EAEf;;EAEA;;EAEA,OAAO;;EAEP,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA,+BAA+B;;;;;;YAOrB;;iBAGK;;EAEf;;EAEA,OAAO;;;iBAIQ;;EAEf;;EAEA;;EAEA,MAAM;;;YAII,gBAAgB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B,SAAS;EAKT,cAAc;EAId,WAAW,MAAM;EAIjB;EAIA,WAAW,MAAM;EAKjB,QAAQ,MAAM,aAAa;IAAW;IAAc;;EAcpD,SAAS,cAAc;IAAW;IAAc;;EAKhD,QAAQ,OAAO;EAUf;EAQA,SAAS;EAKT,WAAW,MAAM;EAKjB,WAAW,MAAM,aAAa,SAAS;EAMvC,aAAa,OAAO,eAAe,MAAM;UAoCjC;UAWA;UAWA;UAQA;UAMA;UAIA;SA/UG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
@@ -46,8 +46,8 @@ export interface TxGaugeTick {
46
46
  labelX: number;
47
47
  /** Y of the tick label. */
48
48
  labelY: number;
49
- /** Formatted value shown at the tick. */
50
- label: string;
49
+ /** Formatted value shown at the tick; `null` when the label does not fit and only the tick line is drawn. */
50
+ label: string | null;
51
51
  /** Text anchor of the label. */
52
52
  anchor: 'start' | 'middle' | 'end';
53
53
  }
@@ -59,6 +59,10 @@ export declare function gaugeAngle(value: number | null, min: number, max: numbe
59
59
  * SVG path of the needle, a narrow shape from the center at (`cx`, `cy`) up to `length`, `width` wide at its base.
60
60
  */
61
61
  export declare function gaugeNeedle(cx: number, cy: number, length: number, width: number): string;
62
+ interface TickPlan {
63
+ labels: boolean;
64
+ format: (value: number) => string;
65
+ }
62
66
  /**
63
67
  * `<tx-gauge>` — one value on a scale: a progress arc in a tone, or a needle over coloured bands such as good / warning / critical. Ticks, the value and a caption in the middle. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
64
68
  * @see https://tectra-ng.com/components/gauge
@@ -88,13 +92,13 @@ export declare class TxGauge {
88
92
  readonly endAngle: import("@angular/core").InputSignal<number>;
89
93
  /** Caption under the value */
90
94
  readonly label: import("@angular/core").InputSignal<string>;
91
- /** Format of the value and the ticks: `number`, `integer`, `compact`, `percent` or a function */
95
+ /** Format of the value and the ticks: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
92
96
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
93
97
  /** Number of ticks to aim for (5) */
94
98
  readonly ticks: import("@angular/core").InputSignal<number>;
95
- /** Draws the ticks with their values around the arc */
99
+ /** Draws the ticks with their values around the arc; labels that would shrink the arc too much turn compact (`2M`), and when even those do not fit only the tick lines stay */
96
100
  readonly showTicks: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
97
- /** Writes the value and the caption in the middle */
101
+ /** Writes the value and the caption in the middle; a long value gets a smaller font so it stays inside the arc */
98
102
  readonly showValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
99
103
  /** Height in px (220), or a CSS size such as `'100%'` of a parent with a definite height */
100
104
  readonly height: import("@angular/core").InputSignal<TxChartHeight>;
@@ -136,7 +140,15 @@ export declare class TxGauge {
136
140
  readonly span: import("@angular/core").Signal<[number, number]>;
137
141
  readonly tickValues: import("@angular/core").Signal<number[]>;
138
142
  readonly tickFormat: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartValueFormatter>;
139
- readonly tickRoom: import("@angular/core").Signal<number>;
143
+ readonly shortTickFormat: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartValueFormatter>;
144
+ readonly layout: import("@angular/core").Signal<{
145
+ fit: {
146
+ cx: number;
147
+ cy: number;
148
+ radius: number;
149
+ };
150
+ plan: TickPlan;
151
+ }>;
140
152
  readonly fit: import("@angular/core").Signal<{
141
153
  cx: number;
142
154
  cy: number;
@@ -161,6 +173,8 @@ export declare class TxGauge {
161
173
  readonly valueY: import("@angular/core").Signal<number>;
162
174
  readonly summary: import("@angular/core").Signal<string>;
163
175
  constructor();
176
+ private tickRoom;
177
+ private fitFor;
164
178
  private fontsFor;
165
179
  private valueOffset;
166
180
  private textBelow;
@@ -279,4 +293,5 @@ export declare class TxGauge {
279
293
  };
280
294
  }, {}, never, never, true, never>;
281
295
  }
296
+ export {};
282
297
  //# sourceMappingURL=tectra-ng-charts-gauge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-gauge.d.ts","names":[],"sources":["../../../../packages/charts/gauge/src/gauge.types.ts","../../../../packages/charts/gauge/src/gauge-layout.ts","../../../../packages/charts/gauge/src/gauge.component.ts"],"mappings":";;;;;YAGY;;iBAGK;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;;YAIU,cAAc,QAAQ;;iBAGjB;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;wBCpDc,WAAW,sBAAsB,aAAa;;wBAM9C,WAAW,sBAAsB,aAAa,aAAa,eAAe;;;;wBAO1E,YAAY,YAAY,YAAY,gBAAgB;;;;;qBCsCvD;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,+BAAK;;WACL,6BAAG;;WACH,6BAAG;;WACH,+BAAK,qBAAA;;WACL,gCAAM;;WACN,8BAAI,YAAA;;WACJ,+BAAK;;WACL,oCAAU;;WACV,kCAAQ;;WACR,+BAAK;;WACL,qCAAW,YAAA;;WACX,+BAAK;;WACL,mCAAS;;WACT,mCAAS;;WACT,gCAAM,YAAA;;WACN,iCAAO;;WACP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AA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-gauge.d.ts","names":[],"sources":["../../../../packages/charts/gauge/src/gauge.types.ts","../../../../packages/charts/gauge/src/gauge-layout.ts","../../../../packages/charts/gauge/src/gauge.component.ts"],"mappings":";;;;;YAGY;;iBAGK;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;;YAIU,cAAc,QAAQ;;iBAGjB;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;wBCpDc,WAAW,sBAAsB,aAAa;;wBAM9C,WAAW,sBAAsB,aAAa,aAAa,eAAe;;;;wBAO1E,YAAY,YAAY,YAAY,gBAAgB;UCwB1D;EACR;EACA,SAAS;;;;;;qBAqBE;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,+BAAK;;WACL,6BAAG;;WACH,6BAAG;;WACH,+BAAK,qBAAA;;WACL,gCAAM;;WACN,8BAAI,YAAA;;WACJ,+BAAK;;WACL,oCAAU;;WACV,kCAAQ;;WACR,+BAAK;;WACL,qCAAW,YAAA;;WACX,+BAAK;;WACL,mCAAS;;WACT,mCAAS;;WACT,gCAAM,YAAA;;WACN,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,8CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,8CAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ;WACR,+BAAK;WACL,kCAAQ;;;;;;;;mBAEA;WACR,8BAAI,gDAAA;WACJ,kCAAQ,gBAAA;WACR,mCAAS;WACT,iCAAO;WAKP,8BAAI;WAEJ,oCAAU;WAGV,oCAAU,wCAAA;WACV,yCAAe,wCAAA;WAKf,gCAAM;;MAsIqB;MAAY;MAAgB;;;;WAvHvD,6BAAG;IAuHwB;IAAY;IAAgB;;WAtHvD,+BAAK;WACL,mCAAS;WAET,+BAAK;WAEL,+BAAK;WAML,kCAAQ;WAQR,uCAAa;WAEb,kCAAQ,OAAA;WAeR,mCAAS,OAAA;WA2BT,oCAAU;WAMV,wCAAc;WACd,uCAAa;WAEb,mCAAS;WAKT,mCAAS;;;;WAUT,gCAAM;WAEN,iCAAO;;UAoBR;UASA;UAuBA;UAIA;UAKA;UAMA;SAtOG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;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;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"}
@@ -108,7 +108,7 @@ export declare class TxLineChart {
108
108
  readonly tooltipMode: import("@angular/core").InputSignal<TxChartTooltipMode>;
109
109
  /** `(value, { seriesIndex, dataPointIndex }) => string` for tooltip values; default — whole numbers in the locale */
110
110
  readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
111
- /** Value axis format: `number`, `integer`, `compact`, `percent` or a function */
111
+ /** Value axis format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
112
112
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
113
113
  /** `linear` or `log` */
114
114
  readonly yScale: import("@angular/core").InputSignal<TxValueScaleKind>;