@pioneer-code/pioneer-charts 22.1.1 → 22.1.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.
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/PioneerCode/pioneer-charts.git"
24
24
  },
25
- "version": "22.1.1",
25
+ "version": "22.1.3",
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
28
  "@angular/common": "^22.1.0",
@@ -6,18 +6,6 @@
6
6
  }
7
7
  }
8
8
 
9
- .pcac-d3-tooltip {
10
- position: absolute;
11
- text-align: center;
12
- font-size: 14px;
13
- padding: 0.5rem;
14
- pointer-events: none;
15
- display: none;
16
- background-color: rgba(0,0,0, 0.75);
17
- color: white;
18
- border-radius: 5px;
19
- }
20
-
21
9
  // `heightFull` support (see PcacChartConfig.heightFull). The host and the container section are
22
10
  // what the chart measures to decide how tall to draw, so both need a height handed down from the
23
11
  // consumer's wrapper - otherwise the section is sized by the <svg> inside it and measuring it
@@ -5,17 +5,24 @@
5
5
  @forward "core/theme/imports";
6
6
  @use "core/theme/imports";
7
7
 
8
+ // The tooltip is one body-level element shared by every chart. This class is only the shell that
9
+ // floats it over the page: no visual styling lives here, so a consumer's `<ng-template pcacTooltip>`
10
+ // rendered inside it owns the entire box and nothing of the library's look leaks into it.
8
11
  .pcac-d3-tooltip {
9
12
  position: absolute;
13
+ pointer-events: none;
14
+ display: none;
15
+ z-index: 1000
16
+ }
17
+
18
+ // The library's own key/value tooltip. Toggled on the shell only while default content is shown.
19
+ .pcac-d3-tooltip-default {
10
20
  text-align: center;
11
21
  font-size: 14px;
12
22
  padding: 0.5rem;
13
- pointer-events: none;
14
- display: none;
15
23
  background-color: rgba(imports.$gray-800, 0.85);
16
24
  color: imports.$white;
17
25
  border-radius: 2px;
18
- z-index: 1000
19
26
  }
20
27
 
21
28
  .pcac-grid-rule line {
@@ -33,18 +33,6 @@
33
33
  }
34
34
  }
35
35
 
36
- .pcac-d3-tooltip {
37
- position: absolute;
38
- text-align: center;
39
- font-size: 14px;
40
- padding: 0.5rem;
41
- pointer-events: none;
42
- display: none;
43
- background-color: rgba(0,0,0, 0.75);
44
- color: white;
45
- border-radius: 5px;
46
- }
47
-
48
36
 
49
37
  // `heightFull` support (see PcacChartConfig.heightFull). The host and the container section are
50
38
  // what the chart measures to decide how tall to draw, so both need a height handed down from the
@@ -1,14 +1,17 @@
1
1
  .pcac-d3-tooltip {
2
2
  position: absolute;
3
+ pointer-events: none;
4
+ display: none;
5
+ z-index: 1000;
6
+ }
7
+
8
+ .pcac-d3-tooltip-default {
3
9
  text-align: center;
4
10
  font-size: 14px;
5
11
  padding: 0.5rem;
6
- pointer-events: none;
7
- display: none;
8
12
  background-color: rgba(52, 58, 64, 0.85);
9
13
  color: #fff;
10
14
  border-radius: 2px;
11
- z-index: 1000;
12
15
  }
13
16
 
14
17
  .pcac-grid-rule line {
@@ -1 +1 @@
1
- .pcac-d3-tooltip{position:absolute;text-align:center;font-size:14px;padding:.5rem;pointer-events:none;display:none;background-color:rgba(52,58,64,.85);color:#fff;border-radius:2px;z-index:1000}.pcac-grid-rule line{stroke:#e9ecef}.pcac-x-axis path,.pcac-x-axis line,.pcac-y-axis path,.pcac-y-axis line{stroke:none}
1
+ .pcac-d3-tooltip{position:absolute;pointer-events:none;display:none;z-index:1000}.pcac-d3-tooltip-default{text-align:center;font-size:14px;padding:.5rem;background-color:rgba(52,58,64,.85);color:#fff;border-radius:2px}.pcac-grid-rule line{stroke:#e9ecef}.pcac-x-axis path,.pcac-x-axis line,.pcac-y-axis path,.pcac-y-axis line{stroke:none}
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import * as i0 from '@angular/core';
3
- import { Signal, ElementRef } from '@angular/core';
3
+ import { TemplateRef, ElementRef, Signal } from '@angular/core';
4
4
  import { AxisDomain, AxisScale } from 'd3-axis';
5
5
  import * as d3_selection from 'd3-selection';
6
6
  import { Selection, BaseType } from 'd3-selection';
@@ -160,15 +160,6 @@ declare class PcacColorService {
160
160
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
161
161
  }
162
162
 
163
- declare class PcacTooltipBuilder {
164
- tooltip: d3_selection.Selection<HTMLDivElement, unknown, HTMLElement, any>;
165
- showBarTooltip(event: MouseEvent, data: PcacData, valueFormat?: PcacFormatEnum, keyFormat?: PcacFormatEnum): void;
166
- hideTooltip(): void;
167
- private getBarTipData;
168
- static ɵfac: i0.ɵɵFactoryDeclaration<PcacTooltipBuilder, never>;
169
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
170
- }
171
-
172
163
  declare class PcacTransitionService {
173
164
  private transitionDuration;
174
165
  getTransitionDuration(): number;
@@ -177,30 +168,107 @@ declare class PcacTransitionService {
177
168
  }
178
169
 
179
170
  /**
180
- * Rebuilds a chart whenever its container's real, laid-out size changes.
171
+ * Template context handed to a consumer's `<ng-template pcacTooltip>` each time a tooltip is shown.
172
+ */
173
+ interface PcacTooltipContext {
174
+ /**
175
+ * The hovered datum: a bar, a line/area/plot point, a pie slice, or a threshold. Bound with a
176
+ * bare `let-point` (or any name) in the template.
177
+ */
178
+ $implicit: PcacData;
179
+ /**
180
+ * The `PcacData` the hovered datum sits inside - the group a bar belongs to, or the series a
181
+ * point belongs to. For a threshold, the data group it's drawn against (a threshold's own
182
+ * `PcacData` usually carries only a value, so this is where its label lives). `null` when there
183
+ * is no enclosing level (pie slices, a chart-wide threshold).
184
+ */
185
+ parent: PcacData | null;
186
+ /**
187
+ * True when the hovered element is a threshold marker on a bar chart rather than a data point.
188
+ * In that case `$implicit` is the threshold's own `PcacData`.
189
+ */
190
+ isThreshold: boolean;
191
+ }
192
+ /**
193
+ * Marks an `<ng-template>` projected into any chart component as that chart's tooltip. When
194
+ * present it replaces the default key/value tooltip *entirely* - the library only positions the
195
+ * rendered template; it applies no background, padding or text styling of its own, so the template
196
+ * owns the whole box.
181
197
  *
182
- * A plain `window:resize` listener (the previous approach) misses any layout-driven size change
183
- * that isn't a viewport resize — a sidebar collapsing, a tab becoming active, a flex/grid reflow.
184
- * It also can't help a chart that mounts already holding data (e.g. behind a loading gate): that
185
- * chart's first `ngOnChanges` can fire before the browser has committed layout for its own
186
- * just-created DOM node, so `PcacChart.initializeChartState()` measures a 0-width container and
187
- * bails out with nothing drawn — and with no resize ever firing, nothing retries it.
198
+ * ```html
199
+ * <pcac-bar-vertical-chart [config]="config">
200
+ * <ng-template pcacTooltip let-point let-group="parent">
201
+ * <div class="my-tooltip">{{ group?.key }} / {{ point.key }}: {{ point.value | number }}</div>
202
+ * </ng-template>
203
+ * </pcac-bar-vertical-chart>
204
+ * ```
188
205
  *
189
- * `ResizeObserver`'s callback contract guarantees real, laid-out dimensions on every firing,
190
- * including its first, so observing the container naturally retries that exact case.
206
+ * The template is rendered with full Angular semantics (pipes, directives, components, DI from
207
+ * the declaring component), so anything a normal template can do works here too.
191
208
  */
192
- declare class PcacChartResizeService {
209
+ declare class PcacTooltipDirective {
210
+ readonly templateRef: TemplateRef<PcacTooltipContext>;
193
211
  /**
194
- * Call once from a chart component's constructor (an injection context).
195
- * @param chartElm Signal resolving to the chart's `<svg>` element ref, e.g. a `viewChild.required` query.
196
- * @param rebuild Invoked whenever the chart's container size changes: immediately for the
197
- * observer's first (guaranteed-initial) callback, debounced for every one after that.
212
+ * Lets the template type-checker know the shape of `let-` variables declared on the
213
+ * `<ng-template>`, so `point.value` etc. are checked against `PcacData` under strictTemplates.
198
214
  */
199
- observe(chartElm: Signal<ElementRef>, rebuild: () => void): void;
200
- static ɵfac: i0.ɵɵFactoryDeclaration<PcacChartResizeService, never>;
215
+ static ngTemplateContextGuard(_dir: PcacTooltipDirective, _ctx: unknown): _ctx is PcacTooltipContext;
216
+ static ɵfac: i0.ɵɵFactoryDeclaration<PcacTooltipDirective, never>;
217
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PcacTooltipDirective, "ng-template[pcacTooltip]", never, {}, {}, never, never, true, never>;
218
+ }
219
+
220
+ declare class PcacTooltipBuilder {
221
+ private appRef;
222
+ /**
223
+ * One tooltip element shared by every chart on the page, appended to `<body>` so it can float
224
+ * over anything. It's only ever a positioning shell: the default look (`.pcac-d3-tooltip-default`)
225
+ * is toggled on when the library renders its own key/value content and off when a consumer's
226
+ * `<ng-template pcacTooltip>` is rendered into it instead, so a custom template owns the whole box.
227
+ */
228
+ tooltip: d3_selection.Selection<HTMLDivElement, unknown, HTMLElement, any>;
229
+ /**
230
+ * The consumer template currently rendered into the shell, if any. Created on the first show
231
+ * of a hover and torn down in `hideTooltip()` - not kept around between hovers - so a view is
232
+ * never left holding onto a declaring component that has since been destroyed (e.g. after a
233
+ * route change). While it lives, repeated `mousemove`s just update its context in place.
234
+ */
235
+ private view;
236
+ private viewTemplate;
237
+ /**
238
+ * Shows the tooltip for a hovered datum at the event's position. Renders `template` when the
239
+ * chart has one projected; otherwise falls back to the default key/value content, formatted per
240
+ * `valueFormat`/`keyFormat`.
241
+ */
242
+ showTooltip(event: MouseEvent, template: TemplateRef<PcacTooltipContext> | undefined, context: PcacTooltipContext, valueFormat?: PcacFormatEnum, keyFormat?: PcacFormatEnum): void;
243
+ /**
244
+ * @deprecated Builders should call `PcacChart.showTooltip()`, which routes through a chart's
245
+ * projected `pcacTooltip` template. This only ever renders the default content.
246
+ */
247
+ showBarTooltip(event: MouseEvent, data: PcacData, valueFormat?: PcacFormatEnum, keyFormat?: PcacFormatEnum): void;
248
+ hideTooltip(): void;
249
+ private renderDefault;
250
+ private renderTemplate;
251
+ private destroyView;
252
+ /**
253
+ * Centers the (already rendered) tooltip horizontally on the cursor and sits it just above.
254
+ * Measured from the real box rather than fixed offsets so it works for content of any size.
255
+ */
256
+ private position;
257
+ private getBarTipData;
258
+ static ɵfac: i0.ɵɵFactoryDeclaration<PcacTooltipBuilder, never>;
201
259
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
202
260
  }
203
261
 
262
+ /**
263
+ * Everything `showTooltip()` needs beyond the hovered datum itself. `parent`/`isThreshold` feed
264
+ * the consumer template's context; the formats only apply to the default (no template) content.
265
+ */
266
+ interface PcacTooltipOptions {
267
+ parent?: PcacData | null;
268
+ isThreshold?: boolean;
269
+ valueFormat?: PcacFormatEnum;
270
+ keyFormat?: PcacFormatEnum;
271
+ }
204
272
  interface PcacChartMargin {
205
273
  top: number;
206
274
  right: number;
@@ -214,6 +282,7 @@ declare class PcacChart {
214
282
  tooltipBuilder: PcacTooltipBuilder;
215
283
  colorService: PcacColorService;
216
284
  margin: PcacChartMargin;
285
+ private readonly defaultMargin;
217
286
  svg: Selection<SVGGElement, unknown, BaseType, unknown>;
218
287
  width: number;
219
288
  height: number;
@@ -235,6 +304,29 @@ declare class PcacChart {
235
304
  */
236
305
  private lastContainerHeight;
237
306
  private lastHeightFull;
307
+ /**
308
+ * Resolves the consumer's projected `<ng-template pcacTooltip>`, if any. Each chart component
309
+ * points this at its own `contentChild(PcacTooltipDirective)` query. It's a getter rather than
310
+ * a captured value so it's read lazily, at hover time, from inside a D3 listener: reading the
311
+ * query signal in the component's build effect instead would make the effect depend on it and
312
+ * rebuild the whole chart (restarting its entry animation) whenever the query resolves.
313
+ */
314
+ tooltipTemplate: () => TemplateRef<PcacTooltipContext> | undefined;
315
+ /**
316
+ * Puts `margin` back to its defaults. Builders must call this at the top of `buildChart()`,
317
+ * before any per-build adjustment (`hideAxis` zeroing sides, label widths measured into
318
+ * `margin.left`): `margin` lives on this per-chart instance and so persists between builds,
319
+ * and without a reset an adjustment made for one config silently carries into the next -
320
+ * e.g. axes drawn with no room after `hideAxis` flips back to false.
321
+ */
322
+ resetMargin(): void;
323
+ /**
324
+ * Shows the tooltip for a hovered datum, through the chart's `pcacTooltip` template when one is
325
+ * projected and the default key/value content otherwise. Every builder's hover handler should
326
+ * go through here rather than `tooltipBuilder` directly so the template is honored everywhere.
327
+ */
328
+ showTooltip(event: MouseEvent, data: PcacData, options?: PcacTooltipOptions): void;
329
+ hideTooltip(): void;
238
330
  /**
239
331
  * Prior to building a chart, we need to initialize the state of the chart.
240
332
  *
@@ -308,7 +400,6 @@ declare class BarHorizontalChartBuilder extends PcacChart {
308
400
  private yScaleGrouped;
309
401
  private barClickedSource;
310
402
  private config;
311
- private cachedMargins;
312
403
  barClicked$: rxjs.Observable<PcacData>;
313
404
  buildChart(chartElm: ElementRef, config: PcacBarHorizontalChartConfig): void;
314
405
  private adjustForHiddenAxis;
@@ -329,10 +420,15 @@ declare class PcacBarHorizontalChartComponent {
329
420
  readonly config: i0.InputSignal<PcacBarHorizontalChartConfig>;
330
421
  readonly chartElm: i0.Signal<ElementRef<any>>;
331
422
  readonly barClicked: i0.OutputRef<_pioneer_code_pioneer_charts.PcacData>;
423
+ /**
424
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element; replaces the
425
+ * default tooltip when present (see PcacTooltipDirective).
426
+ */
427
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
332
428
  constructor();
333
429
  buildChart(): void;
334
430
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacBarHorizontalChartComponent, never>;
335
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacBarHorizontalChartComponent, "pcac-bar-horizontal-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "barClicked": "barClicked"; }, never, never, true, never>;
431
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacBarHorizontalChartComponent, "pcac-bar-horizontal-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "barClicked": "barClicked"; }, ["tooltipTemplate"], never, true, never>;
336
432
  }
337
433
 
338
434
  declare class PcacBarVerticalChartConfig extends PcacChartConfig {
@@ -350,9 +446,6 @@ declare class PcacBarVerticalChartColorOverrideConfig {
350
446
  colors: string[];
351
447
  }
352
448
 
353
- interface IBarVerticalChartBuilder {
354
- buildChart(chartElm: ElementRef, config: PcacBarVerticalChartConfig): void;
355
- }
356
449
  /**
357
450
  * Provided per-component (see PcacBarVerticalChartComponent's `providers`), not root-scoped:
358
451
  * this builder extends PcacChart, which holds mutable per-chart-instance state (margin, width,
@@ -385,10 +478,40 @@ declare class PcacBarVerticalChartComponent {
385
478
  readonly config: i0.InputSignal<PcacBarVerticalChartConfig>;
386
479
  readonly chartElm: i0.Signal<ElementRef<any>>;
387
480
  readonly barClicked: i0.OutputRef<_pioneer_code_pioneer_charts.PcacData>;
481
+ /**
482
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element; replaces the
483
+ * default tooltip when present (see PcacTooltipDirective).
484
+ */
485
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
388
486
  constructor();
389
487
  buildChart(): void;
390
488
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacBarVerticalChartComponent, never>;
391
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacBarVerticalChartComponent, "pcac-bar-vertical-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "barClicked": "barClicked"; }, never, never, true, never>;
489
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacBarVerticalChartComponent, "pcac-bar-vertical-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "barClicked": "barClicked"; }, ["tooltipTemplate"], never, true, never>;
490
+ }
491
+
492
+ /**
493
+ * Rebuilds a chart whenever its container's real, laid-out size changes.
494
+ *
495
+ * A plain `window:resize` listener (the previous approach) misses any layout-driven size change
496
+ * that isn't a viewport resize — a sidebar collapsing, a tab becoming active, a flex/grid reflow.
497
+ * It also can't help a chart that mounts already holding data (e.g. behind a loading gate): that
498
+ * chart's first `ngOnChanges` can fire before the browser has committed layout for its own
499
+ * just-created DOM node, so `PcacChart.initializeChartState()` measures a 0-width container and
500
+ * bails out with nothing drawn — and with no resize ever firing, nothing retries it.
501
+ *
502
+ * `ResizeObserver`'s callback contract guarantees real, laid-out dimensions on every firing,
503
+ * including its first, so observing the container naturally retries that exact case.
504
+ */
505
+ declare class PcacChartResizeService {
506
+ /**
507
+ * Call once from a chart component's constructor (an injection context).
508
+ * @param chartElm Signal resolving to the chart's `<svg>` element ref, e.g. a `viewChild.required` query.
509
+ * @param rebuild Invoked whenever the chart's container size changes: immediately for the
510
+ * observer's first (guaranteed-initial) callback, debounced for every one after that.
511
+ */
512
+ observe(chartElm: Signal<ElementRef>, rebuild: () => void): void;
513
+ static ɵfac: i0.ɵɵFactoryDeclaration<PcacChartResizeService, never>;
514
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
392
515
  }
393
516
 
394
517
  declare class PcacLegendConfigItem {
@@ -455,8 +578,13 @@ declare class PcacPlotChart {
455
578
  readonly config: i0.InputSignal<PcacPlotChartConfig>;
456
579
  readonly types: typeof PcacLineAreaPlotChartConfigType;
457
580
  readonly dotClicked: i0.OutputEmitterRef<PcacData>;
581
+ /**
582
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element, forwarded to the
583
+ * inner chart (see PcacLineAreaChartComponent.tooltipTemplate for why it can't query it itself).
584
+ */
585
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
458
586
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacPlotChart, never>;
459
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacPlotChart, "pcac-plot-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, never, never, true, never>;
587
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacPlotChart, "pcac-plot-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, ["tooltipTemplate"], never, true, never>;
460
588
  }
461
589
 
462
590
  declare class PcacLineChartConfig extends PcacLineAreaChartConfig {
@@ -466,8 +594,13 @@ declare class PcacLineChart {
466
594
  readonly config: i0.InputSignal<PcacLineChartConfig>;
467
595
  readonly types: typeof PcacLineAreaPlotChartConfigType;
468
596
  readonly dotClicked: i0.OutputEmitterRef<PcacData>;
597
+ /**
598
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element, forwarded to the
599
+ * inner chart (see PcacLineAreaChartComponent.tooltipTemplate for why it can't query it itself).
600
+ */
601
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
469
602
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacLineChart, never>;
470
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacLineChart, "pcac-line-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, never, never, true, never>;
603
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacLineChart, "pcac-line-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, ["tooltipTemplate"], never, true, never>;
471
604
  }
472
605
 
473
606
  declare class PcacAreaChartConfig extends PcacLineAreaChartConfig {
@@ -477,8 +610,13 @@ declare class PcacAreaChart {
477
610
  readonly config: i0.InputSignal<PcacAreaChartConfig>;
478
611
  readonly types: typeof PcacLineAreaPlotChartConfigType;
479
612
  readonly dotClicked: i0.OutputEmitterRef<PcacData>;
613
+ /**
614
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element, forwarded to the
615
+ * inner chart (see PcacLineAreaChartComponent.tooltipTemplate for why it can't query it itself).
616
+ */
617
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
480
618
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacAreaChart, never>;
481
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacAreaChart, "pcac-area-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, never, never, true, never>;
619
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacAreaChart, "pcac-area-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, ["tooltipTemplate"], never, true, never>;
482
620
  }
483
621
 
484
622
  declare class PcacPieChartConfig extends PcacChartConfig {
@@ -511,11 +649,16 @@ declare class PcacPieChartComponent {
511
649
  readonly config: i0.InputSignal<PcacPieChartConfig>;
512
650
  readonly chartElm: i0.Signal<ElementRef<any>>;
513
651
  readonly sliceClicked: i0.OutputRef<_pioneer_code_pioneer_charts.PcacData>;
652
+ /**
653
+ * Optional consumer `<ng-template pcacTooltip>` projected into this element; replaces the
654
+ * default tooltip when present (see PcacTooltipDirective).
655
+ */
656
+ readonly tooltipTemplate: i0.Signal<PcacTooltipDirective | undefined>;
514
657
  constructor();
515
658
  buildChart(): void;
516
659
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacPieChartComponent, never>;
517
- static ɵcmp: i0.ɵɵComponentDeclaration<PcacPieChartComponent, "pcac-pie-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, never, never, true, never>;
660
+ static ɵcmp: i0.ɵɵComponentDeclaration<PcacPieChartComponent, "pcac-pie-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
518
661
  }
519
662
 
520
- export { BarHorizontalChartBuilder, BarVerticalChartBuilder, PcacAreaChart, PcacAreaChartConfig, PcacAxisBuilder, PcacBarHorizontalChartColorOverrideConfig, PcacBarHorizontalChartComponent, PcacBarHorizontalChartConfig, PcacBarVerticalChartColorOverrideConfig, PcacBarVerticalChartComponent, PcacBarVerticalChartConfig, PcacChart, PcacChartConfig, PcacChartResizeService, PcacColorService, PcacData, PcacFormatEnum, PcacGridBuilder, PcacLegend, PcacLegendConfig, PcacLegendConfigItem, PcacLineChart, PcacLineChartConfig, PcacPieChartComponent, PcacPieChartConfig, PcacPlotChart, PcacPlotChartConfig, PcacPointImageConfig, PcacTooltipBuilder, PcacTransitionService, PieChartBuilder };
521
- export type { IBarVerticalChartBuilder, IPcacAxisBuilderConfig, IPcacGridBuilderConfig, PcacChartMargin };
663
+ export { BarHorizontalChartBuilder, BarVerticalChartBuilder, PcacAreaChart, PcacAreaChartConfig, PcacAxisBuilder, PcacBarHorizontalChartColorOverrideConfig, PcacBarHorizontalChartComponent, PcacBarHorizontalChartConfig, PcacBarVerticalChartColorOverrideConfig, PcacBarVerticalChartComponent, PcacBarVerticalChartConfig, PcacChart, PcacChartConfig, PcacChartResizeService, PcacColorService, PcacData, PcacFormatEnum, PcacGridBuilder, PcacLegend, PcacLegendConfig, PcacLegendConfigItem, PcacLineChart, PcacLineChartConfig, PcacPieChartComponent, PcacPieChartConfig, PcacPlotChart, PcacPlotChartConfig, PcacPointImageConfig, PcacTooltipBuilder, PcacTooltipDirective, PcacTransitionService, PieChartBuilder };
664
+ export type { IPcacAxisBuilderConfig, IPcacGridBuilderConfig, PcacChartMargin, PcacTooltipContext, PcacTooltipOptions };