@eagami/ui 5.101.0 → 5.102.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.
- package/fesm2022/eagami-ui.mjs +2126 -16
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +881 -39
package/types/eagami-ui.d.ts
CHANGED
|
@@ -131,6 +131,27 @@ export interface EagamiMessages {
|
|
|
131
131
|
gaugeValue: (value: string, band: string) => string;
|
|
132
132
|
/** Describes one band of a gauge; `label` is empty when the band has none. */
|
|
133
133
|
gaugeBand: (label: string, from: string, to: string) => string;
|
|
134
|
+
/** Default accessible name of a heatmap. */
|
|
135
|
+
heatmap: string;
|
|
136
|
+
/** Default accessible name of a treemap. */
|
|
137
|
+
treemap: string;
|
|
138
|
+
/** Announces the highlighted tile of a treemap that is coloured by change. */
|
|
139
|
+
tileChange: (label: string, value: string, share: string, change: string) => string;
|
|
140
|
+
/** Default accessible name of a scatter chart. */
|
|
141
|
+
scatterChart: string;
|
|
142
|
+
/** Header of a scatter chart's series column. */
|
|
143
|
+
series: string;
|
|
144
|
+
/** Default names of a scatter chart's horizontal and vertical axes and bubble size. */
|
|
145
|
+
xValue: string;
|
|
146
|
+
yValue: string;
|
|
147
|
+
bubbleSize: string;
|
|
148
|
+
/** Pairs a scatter chart axis name with a value, such as "Risk 12%". */
|
|
149
|
+
axisValue: (name: string, value: string) => string;
|
|
150
|
+
/**
|
|
151
|
+
* Announces the highlighted point of a scatter chart. `x`, `y`, and `size` come
|
|
152
|
+
* from `axisValue`; `label` and `size` are empty when the point has none.
|
|
153
|
+
*/
|
|
154
|
+
scatterPoint: (series: string, label: string, x: string, y: string, size: string) => string;
|
|
134
155
|
};
|
|
135
156
|
codeInput: {
|
|
136
157
|
groupLabel: (length: number) => string;
|
|
@@ -5564,6 +5585,280 @@ export declare class GaugeComponent {
|
|
|
5564
5585
|
};
|
|
5565
5586
|
}, {}, never, never, true, never>;
|
|
5566
5587
|
}
|
|
5588
|
+
/**
|
|
5589
|
+
* How a heatmap turns values into colour: `sequential` runs one hue from faint
|
|
5590
|
+
* at the low end to strong at the high end, and `diverging` runs two hues out
|
|
5591
|
+
* from a neutral midpoint, so values below and above it read as opposites.
|
|
5592
|
+
*/
|
|
5593
|
+
export type HeatmapScale = 'sequential' | 'diverging';
|
|
5594
|
+
/**
|
|
5595
|
+
* Entrance animation, replayed whenever the data changes. `fade` fades every
|
|
5596
|
+
* cell in together, and `cascade` sweeps them in from the top-left corner.
|
|
5597
|
+
*/
|
|
5598
|
+
export type HeatmapAnimation = 'fade' | 'cascade' | 'none';
|
|
5599
|
+
/** Payload describing a single cell of a heatmap. */
|
|
5600
|
+
export interface HeatmapCellEvent {
|
|
5601
|
+
row: number;
|
|
5602
|
+
column: number;
|
|
5603
|
+
rowLabel: string;
|
|
5604
|
+
columnLabel: string;
|
|
5605
|
+
/** The cell's value, or `null` for a cell without one. */
|
|
5606
|
+
value: number | null;
|
|
5607
|
+
}
|
|
5608
|
+
interface ScaleDomain {
|
|
5609
|
+
diverging: boolean;
|
|
5610
|
+
/** Value at the low end of the scale. */
|
|
5611
|
+
low: number;
|
|
5612
|
+
/** Value at the neutral middle of a diverging scale. */
|
|
5613
|
+
mid: number;
|
|
5614
|
+
/** Value at the high end of the scale. */
|
|
5615
|
+
high: number;
|
|
5616
|
+
}
|
|
5617
|
+
interface PlotCell {
|
|
5618
|
+
row: number;
|
|
5619
|
+
column: number;
|
|
5620
|
+
x: number;
|
|
5621
|
+
y: number;
|
|
5622
|
+
/** How far along its arm of the scale the value sits, as a CSS percentage. */
|
|
5623
|
+
mix: string;
|
|
5624
|
+
/** Whether the value falls below the midpoint of a diverging scale. */
|
|
5625
|
+
below: boolean;
|
|
5626
|
+
delay: number;
|
|
5627
|
+
/** The formatted value printed in the cell, or `null` where it does not fit. */
|
|
5628
|
+
text: string | null;
|
|
5629
|
+
}
|
|
5630
|
+
/**
|
|
5631
|
+
* Colours a grid of rows and columns by value, such as monthly returns by
|
|
5632
|
+
* year, on a sequential or diverging scale with a legend beneath. Hovering or
|
|
5633
|
+
* arrowing through the grid reveals each cell in a tooltip, and a visually
|
|
5634
|
+
* hidden table carries the full data for screen readers.
|
|
5635
|
+
*/
|
|
5636
|
+
export declare class HeatmapComponent {
|
|
5637
|
+
protected readonly i18n: EagamiI18nService;
|
|
5638
|
+
/** Row labels, top to bottom; each names one array of `values`. */
|
|
5639
|
+
readonly rows: import("@angular/core").InputSignal<string[]>;
|
|
5640
|
+
/** Column labels, left to right; each names one value in every row. */
|
|
5641
|
+
readonly columns: import("@angular/core").InputSignal<string[]>;
|
|
5642
|
+
/**
|
|
5643
|
+
* One array per row, one value per column. A `null`, non-finite, or missing
|
|
5644
|
+
* value leaves its cell empty.
|
|
5645
|
+
*/
|
|
5646
|
+
readonly values: import("@angular/core").InputSignal<(number | null)[][]>;
|
|
5647
|
+
/** How values map to colour: one hue from low to high, or two hues either side of `midpoint`. */
|
|
5648
|
+
readonly scale: import("@angular/core").InputSignal<HeatmapScale>;
|
|
5649
|
+
/** Value at the low end of the scale; the lowest value by default. Lower values take the end color. */
|
|
5650
|
+
readonly min: import("@angular/core").InputSignal<number | undefined>;
|
|
5651
|
+
/** Value at the high end of the scale; the highest value by default. Higher values take the end color. */
|
|
5652
|
+
readonly max: import("@angular/core").InputSignal<number | undefined>;
|
|
5653
|
+
/**
|
|
5654
|
+
* Value at the neutral middle of a diverging scale. The scale reaches as far
|
|
5655
|
+
* either side of it as the farther end, so equal distances take equal strength.
|
|
5656
|
+
*/
|
|
5657
|
+
readonly midpoint: import("@angular/core").InputSignal<number>;
|
|
5658
|
+
/** Any CSS color for a sequential scale; defaults to the first chart palette color. */
|
|
5659
|
+
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
5660
|
+
/** Any CSS color for values below the midpoint of a diverging scale; defaults to the error color. */
|
|
5661
|
+
readonly lowColor: import("@angular/core").InputSignal<string | undefined>;
|
|
5662
|
+
/** Any CSS color for values above the midpoint of a diverging scale; defaults to the success color. */
|
|
5663
|
+
readonly highColor: import("@angular/core").InputSignal<string | undefined>;
|
|
5664
|
+
/** Prints each value in its cell, wherever it fits. */
|
|
5665
|
+
readonly showValues: import("@angular/core").InputSignal<boolean>;
|
|
5666
|
+
/** Shows the color scale, with its end values, beneath the grid. */
|
|
5667
|
+
readonly showLegend: import("@angular/core").InputSignal<boolean>;
|
|
5668
|
+
/** How the column labels are set; `auto` turns them as they run out of room. */
|
|
5669
|
+
readonly xLabelOrientation: import("@angular/core").InputSignal<ChartLabelOrientation>;
|
|
5670
|
+
/** Height of the grid and its labels in pixels; the width fills the container. */
|
|
5671
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
5672
|
+
/** Visual size; scales the label, value, legend, and tooltip text. */
|
|
5673
|
+
readonly size: import("@angular/core").InputSignal<import("@eagami/ui").EaSize>;
|
|
5674
|
+
/** Entrance animation, replayed whenever the data changes. */
|
|
5675
|
+
readonly animation: import("@angular/core").InputSignal<HeatmapAnimation>;
|
|
5676
|
+
/** Length of the entrance animation in milliseconds. */
|
|
5677
|
+
readonly animationDuration: import("@angular/core").InputSignal<number>;
|
|
5678
|
+
/** Formats values in the cells, legend, tooltip, and data table; locale-grouped by default. */
|
|
5679
|
+
readonly formatValue: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
5680
|
+
/** Accessible name for the heatmap; defaults to a localized "Heatmap". */
|
|
5681
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
5682
|
+
/** Fires when a cell is clicked, or chosen with Enter or Space. */
|
|
5683
|
+
readonly cellClick: import("@angular/core").OutputEmitterRef<HeatmapCellEvent>;
|
|
5684
|
+
/** Fires when the highlighted cell changes by pointer or keyboard, with `null` once cleared. */
|
|
5685
|
+
readonly activeCellChange: import("@angular/core").OutputEmitterRef<HeatmapCellEvent | null>;
|
|
5686
|
+
private readonly viewport;
|
|
5687
|
+
private readonly format;
|
|
5688
|
+
protected readonly active: import("@angular/core").WritableSignal<{
|
|
5689
|
+
row: number;
|
|
5690
|
+
column: number;
|
|
5691
|
+
} | null>;
|
|
5692
|
+
protected readonly label: import("@angular/core").Signal<string>;
|
|
5693
|
+
protected readonly grid: import("@angular/core").Signal<(number | null)[][]>;
|
|
5694
|
+
protected readonly hasData: import("@angular/core").Signal<boolean>;
|
|
5695
|
+
protected readonly domain: import("@angular/core").Signal<ScaleDomain>;
|
|
5696
|
+
protected readonly legendStops: import("@angular/core").Signal<string[]>;
|
|
5697
|
+
protected readonly renderPass: import("@angular/core").Signal<{}[]>;
|
|
5698
|
+
protected readonly hostClasses: import("@angular/core").Signal<{
|
|
5699
|
+
[x: string]: boolean;
|
|
5700
|
+
'ea-heatmap--diverging': boolean;
|
|
5701
|
+
}>;
|
|
5702
|
+
protected readonly layout: import("@angular/core").Signal<{
|
|
5703
|
+
width: number;
|
|
5704
|
+
height: number;
|
|
5705
|
+
top: number;
|
|
5706
|
+
left: number;
|
|
5707
|
+
plotWidth: number;
|
|
5708
|
+
plotHeight: number;
|
|
5709
|
+
cellWidth: number;
|
|
5710
|
+
cellHeight: number;
|
|
5711
|
+
axisPx: number;
|
|
5712
|
+
cells: PlotCell[];
|
|
5713
|
+
rowLabels: {
|
|
5714
|
+
text: string;
|
|
5715
|
+
index: number;
|
|
5716
|
+
pos: number;
|
|
5717
|
+
}[];
|
|
5718
|
+
columnLabels: {
|
|
5719
|
+
text: string;
|
|
5720
|
+
index: number;
|
|
5721
|
+
pos: number;
|
|
5722
|
+
}[];
|
|
5723
|
+
labelAngle: number;
|
|
5724
|
+
labelY: number;
|
|
5725
|
+
}>;
|
|
5726
|
+
protected readonly marker: import("@angular/core").Signal<{
|
|
5727
|
+
x: number;
|
|
5728
|
+
y: number;
|
|
5729
|
+
width: number;
|
|
5730
|
+
height: number;
|
|
5731
|
+
} | null>;
|
|
5732
|
+
protected readonly tooltip: import("@angular/core").Signal<{
|
|
5733
|
+
x: number;
|
|
5734
|
+
y: number;
|
|
5735
|
+
title: string;
|
|
5736
|
+
name: string;
|
|
5737
|
+
value: string;
|
|
5738
|
+
key: string;
|
|
5739
|
+
} | null>;
|
|
5740
|
+
protected readonly tooltips: import("@angular/core").Signal<{
|
|
5741
|
+
x: number;
|
|
5742
|
+
y: number;
|
|
5743
|
+
title: string;
|
|
5744
|
+
name: string;
|
|
5745
|
+
value: string;
|
|
5746
|
+
key: string;
|
|
5747
|
+
}[]>;
|
|
5748
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
5749
|
+
protected tableValue(value: number | null): string;
|
|
5750
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
5751
|
+
protected onPointerLeave(): void;
|
|
5752
|
+
protected onClick(): void;
|
|
5753
|
+
protected onFocus(): void;
|
|
5754
|
+
protected onBlur(): void;
|
|
5755
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
5756
|
+
private cellText;
|
|
5757
|
+
private position;
|
|
5758
|
+
private eventFor;
|
|
5759
|
+
private setActive;
|
|
5760
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeatmapComponent, never>;
|
|
5761
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeatmapComponent, "ea-heatmap", never, {
|
|
5762
|
+
"rows": {
|
|
5763
|
+
"alias": "rows";
|
|
5764
|
+
"required": false;
|
|
5765
|
+
"isSignal": true;
|
|
5766
|
+
};
|
|
5767
|
+
"columns": {
|
|
5768
|
+
"alias": "columns";
|
|
5769
|
+
"required": false;
|
|
5770
|
+
"isSignal": true;
|
|
5771
|
+
};
|
|
5772
|
+
"values": {
|
|
5773
|
+
"alias": "values";
|
|
5774
|
+
"required": false;
|
|
5775
|
+
"isSignal": true;
|
|
5776
|
+
};
|
|
5777
|
+
"scale": {
|
|
5778
|
+
"alias": "scale";
|
|
5779
|
+
"required": false;
|
|
5780
|
+
"isSignal": true;
|
|
5781
|
+
};
|
|
5782
|
+
"min": {
|
|
5783
|
+
"alias": "min";
|
|
5784
|
+
"required": false;
|
|
5785
|
+
"isSignal": true;
|
|
5786
|
+
};
|
|
5787
|
+
"max": {
|
|
5788
|
+
"alias": "max";
|
|
5789
|
+
"required": false;
|
|
5790
|
+
"isSignal": true;
|
|
5791
|
+
};
|
|
5792
|
+
"midpoint": {
|
|
5793
|
+
"alias": "midpoint";
|
|
5794
|
+
"required": false;
|
|
5795
|
+
"isSignal": true;
|
|
5796
|
+
};
|
|
5797
|
+
"color": {
|
|
5798
|
+
"alias": "color";
|
|
5799
|
+
"required": false;
|
|
5800
|
+
"isSignal": true;
|
|
5801
|
+
};
|
|
5802
|
+
"lowColor": {
|
|
5803
|
+
"alias": "lowColor";
|
|
5804
|
+
"required": false;
|
|
5805
|
+
"isSignal": true;
|
|
5806
|
+
};
|
|
5807
|
+
"highColor": {
|
|
5808
|
+
"alias": "highColor";
|
|
5809
|
+
"required": false;
|
|
5810
|
+
"isSignal": true;
|
|
5811
|
+
};
|
|
5812
|
+
"showValues": {
|
|
5813
|
+
"alias": "showValues";
|
|
5814
|
+
"required": false;
|
|
5815
|
+
"isSignal": true;
|
|
5816
|
+
};
|
|
5817
|
+
"showLegend": {
|
|
5818
|
+
"alias": "showLegend";
|
|
5819
|
+
"required": false;
|
|
5820
|
+
"isSignal": true;
|
|
5821
|
+
};
|
|
5822
|
+
"xLabelOrientation": {
|
|
5823
|
+
"alias": "xLabelOrientation";
|
|
5824
|
+
"required": false;
|
|
5825
|
+
"isSignal": true;
|
|
5826
|
+
};
|
|
5827
|
+
"height": {
|
|
5828
|
+
"alias": "height";
|
|
5829
|
+
"required": false;
|
|
5830
|
+
"isSignal": true;
|
|
5831
|
+
};
|
|
5832
|
+
"size": {
|
|
5833
|
+
"alias": "size";
|
|
5834
|
+
"required": false;
|
|
5835
|
+
"isSignal": true;
|
|
5836
|
+
};
|
|
5837
|
+
"animation": {
|
|
5838
|
+
"alias": "animation";
|
|
5839
|
+
"required": false;
|
|
5840
|
+
"isSignal": true;
|
|
5841
|
+
};
|
|
5842
|
+
"animationDuration": {
|
|
5843
|
+
"alias": "animationDuration";
|
|
5844
|
+
"required": false;
|
|
5845
|
+
"isSignal": true;
|
|
5846
|
+
};
|
|
5847
|
+
"formatValue": {
|
|
5848
|
+
"alias": "formatValue";
|
|
5849
|
+
"required": false;
|
|
5850
|
+
"isSignal": true;
|
|
5851
|
+
};
|
|
5852
|
+
"ariaLabel": {
|
|
5853
|
+
"alias": "aria-label";
|
|
5854
|
+
"required": false;
|
|
5855
|
+
"isSignal": true;
|
|
5856
|
+
};
|
|
5857
|
+
}, {
|
|
5858
|
+
"cellClick": "cellClick";
|
|
5859
|
+
"activeCellChange": "activeCellChange";
|
|
5860
|
+
}, never, never, true, never>;
|
|
5861
|
+
}
|
|
5567
5862
|
/** Live state of a field's typewriter placeholder. */
|
|
5568
5863
|
interface TypedPlaceholder {
|
|
5569
5864
|
/** Whether the typed layer stands in for the native placeholder. */
|
|
@@ -5841,7 +6136,7 @@ export interface LineChartVisibleRange {
|
|
|
5841
6136
|
start: number;
|
|
5842
6137
|
end: number;
|
|
5843
6138
|
}
|
|
5844
|
-
interface PlotPoint {
|
|
6139
|
+
interface PlotPoint$1 {
|
|
5845
6140
|
x: number;
|
|
5846
6141
|
y: number;
|
|
5847
6142
|
index: number;
|
|
@@ -5852,9 +6147,9 @@ interface PlotSeries {
|
|
|
5852
6147
|
color: string;
|
|
5853
6148
|
paths: string[];
|
|
5854
6149
|
areas: string[];
|
|
5855
|
-
points: PlotPoint[];
|
|
6150
|
+
points: PlotPoint$1[];
|
|
5856
6151
|
}
|
|
5857
|
-
interface ActivePoint {
|
|
6152
|
+
interface ActivePoint$1 {
|
|
5858
6153
|
series: number;
|
|
5859
6154
|
index: number;
|
|
5860
6155
|
}
|
|
@@ -5965,7 +6260,7 @@ export declare class LineChartComponent {
|
|
|
5965
6260
|
private readonly viewport;
|
|
5966
6261
|
private readonly format;
|
|
5967
6262
|
private readonly plotEl;
|
|
5968
|
-
protected readonly active: import("@angular/core").WritableSignal<ActivePoint | null>;
|
|
6263
|
+
protected readonly active: import("@angular/core").WritableSignal<ActivePoint$1 | null>;
|
|
5969
6264
|
protected readonly clipId: string;
|
|
5970
6265
|
protected readonly breakMaskId: string;
|
|
5971
6266
|
private readonly panEnd;
|
|
@@ -7507,84 +7802,404 @@ export declare class RatingComponent extends LabelledFieldControlBase implements
|
|
|
7507
7802
|
setDisabledState(isDisabled: boolean): void;
|
|
7508
7803
|
protected onPointerMove(event: PointerEvent, pos: number): void;
|
|
7509
7804
|
protected onPointerLeave(): void;
|
|
7510
|
-
protected onClick(event: MouseEvent, pos: number): void;
|
|
7805
|
+
protected onClick(event: MouseEvent, pos: number): void;
|
|
7806
|
+
protected onFocus(): void;
|
|
7807
|
+
protected onBlur(): void;
|
|
7808
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
7809
|
+
private commit;
|
|
7810
|
+
private clamp;
|
|
7811
|
+
private computePointerValue;
|
|
7812
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RatingComponent, never>;
|
|
7813
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RatingComponent, "ea-rating", never, {
|
|
7814
|
+
"ariaLabel": {
|
|
7815
|
+
"alias": "aria-label";
|
|
7816
|
+
"required": false;
|
|
7817
|
+
"isSignal": true;
|
|
7818
|
+
};
|
|
7819
|
+
"ariaLabelledby": {
|
|
7820
|
+
"alias": "aria-labelledby";
|
|
7821
|
+
"required": false;
|
|
7822
|
+
"isSignal": true;
|
|
7823
|
+
};
|
|
7824
|
+
"size": {
|
|
7825
|
+
"alias": "size";
|
|
7826
|
+
"required": false;
|
|
7827
|
+
"isSignal": true;
|
|
7828
|
+
};
|
|
7829
|
+
"min": {
|
|
7830
|
+
"alias": "min";
|
|
7831
|
+
"required": false;
|
|
7832
|
+
"isSignal": true;
|
|
7833
|
+
};
|
|
7834
|
+
"max": {
|
|
7835
|
+
"alias": "max";
|
|
7836
|
+
"required": false;
|
|
7837
|
+
"isSignal": true;
|
|
7838
|
+
};
|
|
7839
|
+
"allowHalf": {
|
|
7840
|
+
"alias": "allowHalf";
|
|
7841
|
+
"required": false;
|
|
7842
|
+
"isSignal": true;
|
|
7843
|
+
};
|
|
7844
|
+
"readonly": {
|
|
7845
|
+
"alias": "readonly";
|
|
7846
|
+
"required": false;
|
|
7847
|
+
"isSignal": true;
|
|
7848
|
+
};
|
|
7849
|
+
"disabled": {
|
|
7850
|
+
"alias": "disabled";
|
|
7851
|
+
"required": false;
|
|
7852
|
+
"isSignal": true;
|
|
7853
|
+
};
|
|
7854
|
+
"clearable": {
|
|
7855
|
+
"alias": "clearable";
|
|
7856
|
+
"required": false;
|
|
7857
|
+
"isSignal": true;
|
|
7858
|
+
};
|
|
7859
|
+
"icon": {
|
|
7860
|
+
"alias": "icon";
|
|
7861
|
+
"required": false;
|
|
7862
|
+
"isSignal": true;
|
|
7863
|
+
};
|
|
7864
|
+
"halfIcon": {
|
|
7865
|
+
"alias": "halfIcon";
|
|
7866
|
+
"required": false;
|
|
7867
|
+
"isSignal": true;
|
|
7868
|
+
};
|
|
7869
|
+
"id": {
|
|
7870
|
+
"alias": "id";
|
|
7871
|
+
"required": false;
|
|
7872
|
+
"isSignal": true;
|
|
7873
|
+
};
|
|
7874
|
+
"value": {
|
|
7875
|
+
"alias": "value";
|
|
7876
|
+
"required": false;
|
|
7877
|
+
"isSignal": true;
|
|
7878
|
+
};
|
|
7879
|
+
}, {
|
|
7880
|
+
"value": "valueChange";
|
|
7881
|
+
"changed": "changed";
|
|
7882
|
+
"hoverChanged": "hoverChanged";
|
|
7883
|
+
}, never, never, true, never>;
|
|
7884
|
+
}
|
|
7885
|
+
/** One point of a scatter chart series. */
|
|
7886
|
+
export interface ScatterChartPoint {
|
|
7887
|
+
x: number;
|
|
7888
|
+
y: number;
|
|
7889
|
+
/**
|
|
7890
|
+
* A third value that sizes the point as a bubble, by area against the largest
|
|
7891
|
+
* one. A point without a positive size keeps the plain point size.
|
|
7892
|
+
*/
|
|
7893
|
+
size?: number | null;
|
|
7894
|
+
/** Name of the point, such as a holding; titles its tooltip and data table row. */
|
|
7895
|
+
label?: string;
|
|
7896
|
+
}
|
|
7897
|
+
/** One named, colored set of points plotted by a scatter chart. */
|
|
7898
|
+
export interface ScatterChartSeries {
|
|
7899
|
+
/** Name shown in the legend, tooltip, and data table. */
|
|
7900
|
+
name: string;
|
|
7901
|
+
/** The points; one missing a finite `x` or `y` is left out of the plot. */
|
|
7902
|
+
points: ScatterChartPoint[];
|
|
7903
|
+
/** Any CSS color; defaults to the next slot of the `--color-chart-*` palette. */
|
|
7904
|
+
color?: string;
|
|
7905
|
+
}
|
|
7906
|
+
/** Payload describing a single point of a scatter chart. */
|
|
7907
|
+
export interface ScatterChartPointEvent {
|
|
7908
|
+
seriesIndex: number;
|
|
7909
|
+
seriesName: string;
|
|
7910
|
+
/** Position of the point within its series' `points`. */
|
|
7911
|
+
index: number;
|
|
7912
|
+
label: string;
|
|
7913
|
+
x: number;
|
|
7914
|
+
y: number;
|
|
7915
|
+
/** The point's bubble size, or `null` for a plain point. */
|
|
7916
|
+
size: number | null;
|
|
7917
|
+
}
|
|
7918
|
+
/**
|
|
7919
|
+
* Entrance animation, replayed whenever the data changes. `pop` grows each point
|
|
7920
|
+
* out of its center in a sweep from left to right, and `fade` fades them in.
|
|
7921
|
+
*/
|
|
7922
|
+
export type ScatterChartAnimation = 'pop' | 'fade' | 'none';
|
|
7923
|
+
interface ActivePoint {
|
|
7924
|
+
series: number;
|
|
7925
|
+
index: number;
|
|
7926
|
+
}
|
|
7927
|
+
interface DataPoint {
|
|
7928
|
+
series: number;
|
|
7929
|
+
index: number;
|
|
7930
|
+
x: number;
|
|
7931
|
+
y: number;
|
|
7932
|
+
/** Bubble size, or `null` for a plain point. */
|
|
7933
|
+
size: number | null;
|
|
7934
|
+
}
|
|
7935
|
+
interface PlotPoint extends DataPoint {
|
|
7936
|
+
key: string;
|
|
7937
|
+
cx: number;
|
|
7938
|
+
cy: number;
|
|
7939
|
+
r: number;
|
|
7940
|
+
delay: number;
|
|
7941
|
+
}
|
|
7942
|
+
interface AxisTick {
|
|
7943
|
+
value: number;
|
|
7944
|
+
text: string;
|
|
7945
|
+
pos: number;
|
|
7946
|
+
}
|
|
7947
|
+
/**
|
|
7948
|
+
* Plots points on two numeric axes, such as risk against return per holding,
|
|
7949
|
+
* in one or more colored series. A third value can size each point as a
|
|
7950
|
+
* bubble. Hovering, tapping, or arrowing through the chart reveals each point
|
|
7951
|
+
* in a tooltip, and a visually hidden table carries the full data for screen
|
|
7952
|
+
* readers.
|
|
7953
|
+
*/
|
|
7954
|
+
export declare class ScatterChartComponent {
|
|
7955
|
+
protected readonly i18n: EagamiI18nService;
|
|
7956
|
+
/** The series to plot, each with its own color. */
|
|
7957
|
+
readonly series: import("@angular/core").InputSignal<ScatterChartSeries[]>;
|
|
7958
|
+
/** Name of the horizontal axis, such as "Risk"; printed beneath it and read out with each point. */
|
|
7959
|
+
readonly xTitle: import("@angular/core").InputSignal<string>;
|
|
7960
|
+
/** Name of the vertical axis, such as "Return"; printed beside it and read out with each point. */
|
|
7961
|
+
readonly yTitle: import("@angular/core").InputSignal<string>;
|
|
7962
|
+
/** Name of the bubble size, such as "Value"; shown in the tooltip and read out with each point. */
|
|
7963
|
+
readonly sizeTitle: import("@angular/core").InputSignal<string>;
|
|
7964
|
+
/** Radius in pixels of the largest bubble; the others scale down by area. */
|
|
7965
|
+
readonly maxBubbleRadius: import("@angular/core").InputSignal<number>;
|
|
7966
|
+
/** Draws gridlines at each tick of both axes. */
|
|
7967
|
+
readonly showGrid: import("@angular/core").InputSignal<boolean>;
|
|
7968
|
+
/** Shows a legend beneath the plot when there is more than one series. */
|
|
7969
|
+
readonly showLegend: import("@angular/core").InputSignal<boolean>;
|
|
7970
|
+
/**
|
|
7971
|
+
* Dashed rules across the plot at set `y` values, such as a target return.
|
|
7972
|
+
* The vertical axis widens to take them in.
|
|
7973
|
+
*/
|
|
7974
|
+
readonly referenceLines: import("@angular/core").InputSignal<readonly ChartReferenceLine[]>;
|
|
7975
|
+
/**
|
|
7976
|
+
* Dashed rules up the plot at set `x` values, such as a risk limit. The
|
|
7977
|
+
* horizontal axis widens to take them in.
|
|
7978
|
+
*/
|
|
7979
|
+
readonly xReferenceLines: import("@angular/core").InputSignal<readonly ChartReferenceLine[]>;
|
|
7980
|
+
/** Height of the plot in pixels; the width fills the container. */
|
|
7981
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
7982
|
+
/** Visual size; scales the axis, legend, and tooltip text. */
|
|
7983
|
+
readonly size: import("@angular/core").InputSignal<import("@eagami/ui").EaSize>;
|
|
7984
|
+
/** Entrance animation, replayed whenever the data changes. */
|
|
7985
|
+
readonly animation: import("@angular/core").InputSignal<ScatterChartAnimation>;
|
|
7986
|
+
/** Length of the entrance animation in milliseconds. */
|
|
7987
|
+
readonly animationDuration: import("@angular/core").InputSignal<number>;
|
|
7988
|
+
/** Formats `x` values on the axis, tooltip, and data table; locale-grouped by default. */
|
|
7989
|
+
readonly formatX: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
7990
|
+
/** Formats `y` values on the axis, tooltip, and data table; locale-grouped by default. */
|
|
7991
|
+
readonly formatY: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
7992
|
+
/** Formats bubble sizes in the tooltip and data table; locale-grouped by default. */
|
|
7993
|
+
readonly formatSize: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
7994
|
+
/** Accessible name for the chart; defaults to a localized "Scatter chart". */
|
|
7995
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7996
|
+
/** Fires when a point is clicked, or chosen with Enter or Space. */
|
|
7997
|
+
readonly pointClick: import("@angular/core").OutputEmitterRef<ScatterChartPointEvent>;
|
|
7998
|
+
/** Fires when the highlighted point changes by pointer or keyboard, with `null` once cleared. */
|
|
7999
|
+
readonly activePointChange: import("@angular/core").OutputEmitterRef<ScatterChartPointEvent | null>;
|
|
8000
|
+
private readonly viewport;
|
|
8001
|
+
private readonly formatXValue;
|
|
8002
|
+
private readonly formatYValue;
|
|
8003
|
+
private readonly formatSizeValue;
|
|
8004
|
+
protected readonly active: import("@angular/core").WritableSignal<ActivePoint | null>;
|
|
8005
|
+
protected readonly label: import("@angular/core").Signal<string>;
|
|
8006
|
+
protected readonly xName: import("@angular/core").Signal<string>;
|
|
8007
|
+
protected readonly yName: import("@angular/core").Signal<string>;
|
|
8008
|
+
protected readonly sizeName: import("@angular/core").Signal<string>;
|
|
8009
|
+
private readonly points;
|
|
8010
|
+
protected readonly hasData: import("@angular/core").Signal<boolean>;
|
|
8011
|
+
protected readonly bubbles: import("@angular/core").Signal<boolean>;
|
|
8012
|
+
private readonly order;
|
|
8013
|
+
protected readonly references: import("@angular/core").Signal<ChartReferenceLine[]>;
|
|
8014
|
+
protected readonly xReferences: import("@angular/core").Signal<ChartReferenceLine[]>;
|
|
8015
|
+
protected readonly renderPass: import("@angular/core").Signal<{}[]>;
|
|
8016
|
+
protected readonly hostClasses: import("@angular/core").Signal<{
|
|
8017
|
+
[x: string]: boolean;
|
|
8018
|
+
}>;
|
|
8019
|
+
protected readonly showsLegend: import("@angular/core").Signal<boolean>;
|
|
8020
|
+
protected readonly layout: import("@angular/core").Signal<{
|
|
8021
|
+
width: number;
|
|
8022
|
+
height: number;
|
|
8023
|
+
top: number;
|
|
8024
|
+
left: number;
|
|
8025
|
+
plotWidth: number;
|
|
8026
|
+
plotHeight: number;
|
|
8027
|
+
axisPx: number;
|
|
8028
|
+
axisY: number;
|
|
8029
|
+
tickEndY: number;
|
|
8030
|
+
labelY: number;
|
|
8031
|
+
xTicks: AxisTick[];
|
|
8032
|
+
yTicks: AxisTick[];
|
|
8033
|
+
xTitle: {
|
|
8034
|
+
x: number;
|
|
8035
|
+
y: number;
|
|
8036
|
+
};
|
|
8037
|
+
yTitle: {
|
|
8038
|
+
x: number;
|
|
8039
|
+
y: number;
|
|
8040
|
+
};
|
|
8041
|
+
series: {
|
|
8042
|
+
name: string;
|
|
8043
|
+
color: string;
|
|
8044
|
+
points: PlotPoint[];
|
|
8045
|
+
}[];
|
|
8046
|
+
referenceLines: {
|
|
8047
|
+
labelX: number;
|
|
8048
|
+
labelY: number;
|
|
8049
|
+
key: number;
|
|
8050
|
+
pos: number;
|
|
8051
|
+
value: number;
|
|
8052
|
+
label?: string;
|
|
8053
|
+
color?: string;
|
|
8054
|
+
}[];
|
|
8055
|
+
xReferenceLines: {
|
|
8056
|
+
labelX: number;
|
|
8057
|
+
labelY: number;
|
|
8058
|
+
anchor: string;
|
|
8059
|
+
key: number;
|
|
8060
|
+
pos: number;
|
|
8061
|
+
value: number;
|
|
8062
|
+
label?: string;
|
|
8063
|
+
color?: string;
|
|
8064
|
+
}[];
|
|
8065
|
+
}>;
|
|
8066
|
+
private readonly activePoint;
|
|
8067
|
+
protected readonly tooltip: import("@angular/core").Signal<{
|
|
8068
|
+
x: number;
|
|
8069
|
+
y: number;
|
|
8070
|
+
r: number;
|
|
8071
|
+
title: string;
|
|
8072
|
+
color: string | null;
|
|
8073
|
+
rows: {
|
|
8074
|
+
name: string;
|
|
8075
|
+
value: string;
|
|
8076
|
+
color?: string;
|
|
8077
|
+
}[];
|
|
8078
|
+
key: string;
|
|
8079
|
+
} | null>;
|
|
8080
|
+
protected readonly tooltips: import("@angular/core").Signal<{
|
|
8081
|
+
x: number;
|
|
8082
|
+
y: number;
|
|
8083
|
+
r: number;
|
|
8084
|
+
title: string;
|
|
8085
|
+
color: string | null;
|
|
8086
|
+
rows: {
|
|
8087
|
+
name: string;
|
|
8088
|
+
value: string;
|
|
8089
|
+
color?: string;
|
|
8090
|
+
}[];
|
|
8091
|
+
key: string;
|
|
8092
|
+
}[]>;
|
|
8093
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
8094
|
+
protected readonly tableColumns: import("@angular/core").Signal<string[]>;
|
|
8095
|
+
protected readonly tableRows: import("@angular/core").Signal<string[][]>;
|
|
8096
|
+
private readonly labelled;
|
|
8097
|
+
protected seriesColor(index: number): string;
|
|
8098
|
+
protected isDimmed(index: number): boolean;
|
|
8099
|
+
protected isActive(point: PlotPoint): boolean;
|
|
8100
|
+
protected referenceText(line: ChartReferenceLine, format: 'x' | 'y'): string;
|
|
8101
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
8102
|
+
protected onPointerLeave(): void;
|
|
8103
|
+
protected onClick(): void;
|
|
7511
8104
|
protected onFocus(): void;
|
|
7512
8105
|
protected onBlur(): void;
|
|
7513
8106
|
protected onKeydown(event: KeyboardEvent): void;
|
|
7514
|
-
private
|
|
7515
|
-
private
|
|
7516
|
-
private
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
8107
|
+
private axisScale;
|
|
8108
|
+
private cell;
|
|
8109
|
+
private firstPoint;
|
|
8110
|
+
private nextSeries;
|
|
8111
|
+
private eventFor;
|
|
8112
|
+
private setActive;
|
|
8113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterChartComponent, never>;
|
|
8114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterChartComponent, "ea-scatter-chart", never, {
|
|
8115
|
+
"series": {
|
|
8116
|
+
"alias": "series";
|
|
7521
8117
|
"required": false;
|
|
7522
8118
|
"isSignal": true;
|
|
7523
8119
|
};
|
|
7524
|
-
"
|
|
7525
|
-
"alias": "
|
|
8120
|
+
"xTitle": {
|
|
8121
|
+
"alias": "xTitle";
|
|
7526
8122
|
"required": false;
|
|
7527
8123
|
"isSignal": true;
|
|
7528
8124
|
};
|
|
7529
|
-
"
|
|
7530
|
-
"alias": "
|
|
8125
|
+
"yTitle": {
|
|
8126
|
+
"alias": "yTitle";
|
|
7531
8127
|
"required": false;
|
|
7532
8128
|
"isSignal": true;
|
|
7533
8129
|
};
|
|
7534
|
-
"
|
|
7535
|
-
"alias": "
|
|
8130
|
+
"sizeTitle": {
|
|
8131
|
+
"alias": "sizeTitle";
|
|
7536
8132
|
"required": false;
|
|
7537
8133
|
"isSignal": true;
|
|
7538
8134
|
};
|
|
7539
|
-
"
|
|
7540
|
-
"alias": "
|
|
8135
|
+
"maxBubbleRadius": {
|
|
8136
|
+
"alias": "maxBubbleRadius";
|
|
7541
8137
|
"required": false;
|
|
7542
8138
|
"isSignal": true;
|
|
7543
8139
|
};
|
|
7544
|
-
"
|
|
7545
|
-
"alias": "
|
|
8140
|
+
"showGrid": {
|
|
8141
|
+
"alias": "showGrid";
|
|
7546
8142
|
"required": false;
|
|
7547
8143
|
"isSignal": true;
|
|
7548
8144
|
};
|
|
7549
|
-
"
|
|
7550
|
-
"alias": "
|
|
8145
|
+
"showLegend": {
|
|
8146
|
+
"alias": "showLegend";
|
|
7551
8147
|
"required": false;
|
|
7552
8148
|
"isSignal": true;
|
|
7553
8149
|
};
|
|
7554
|
-
"
|
|
7555
|
-
"alias": "
|
|
8150
|
+
"referenceLines": {
|
|
8151
|
+
"alias": "referenceLines";
|
|
7556
8152
|
"required": false;
|
|
7557
8153
|
"isSignal": true;
|
|
7558
8154
|
};
|
|
7559
|
-
"
|
|
7560
|
-
"alias": "
|
|
8155
|
+
"xReferenceLines": {
|
|
8156
|
+
"alias": "xReferenceLines";
|
|
7561
8157
|
"required": false;
|
|
7562
8158
|
"isSignal": true;
|
|
7563
8159
|
};
|
|
7564
|
-
"
|
|
7565
|
-
"alias": "
|
|
8160
|
+
"height": {
|
|
8161
|
+
"alias": "height";
|
|
7566
8162
|
"required": false;
|
|
7567
8163
|
"isSignal": true;
|
|
7568
8164
|
};
|
|
7569
|
-
"
|
|
7570
|
-
"alias": "
|
|
8165
|
+
"size": {
|
|
8166
|
+
"alias": "size";
|
|
7571
8167
|
"required": false;
|
|
7572
8168
|
"isSignal": true;
|
|
7573
8169
|
};
|
|
7574
|
-
"
|
|
7575
|
-
"alias": "
|
|
8170
|
+
"animation": {
|
|
8171
|
+
"alias": "animation";
|
|
7576
8172
|
"required": false;
|
|
7577
8173
|
"isSignal": true;
|
|
7578
8174
|
};
|
|
7579
|
-
"
|
|
7580
|
-
"alias": "
|
|
8175
|
+
"animationDuration": {
|
|
8176
|
+
"alias": "animationDuration";
|
|
8177
|
+
"required": false;
|
|
8178
|
+
"isSignal": true;
|
|
8179
|
+
};
|
|
8180
|
+
"formatX": {
|
|
8181
|
+
"alias": "formatX";
|
|
8182
|
+
"required": false;
|
|
8183
|
+
"isSignal": true;
|
|
8184
|
+
};
|
|
8185
|
+
"formatY": {
|
|
8186
|
+
"alias": "formatY";
|
|
8187
|
+
"required": false;
|
|
8188
|
+
"isSignal": true;
|
|
8189
|
+
};
|
|
8190
|
+
"formatSize": {
|
|
8191
|
+
"alias": "formatSize";
|
|
8192
|
+
"required": false;
|
|
8193
|
+
"isSignal": true;
|
|
8194
|
+
};
|
|
8195
|
+
"ariaLabel": {
|
|
8196
|
+
"alias": "aria-label";
|
|
7581
8197
|
"required": false;
|
|
7582
8198
|
"isSignal": true;
|
|
7583
8199
|
};
|
|
7584
8200
|
}, {
|
|
7585
|
-
"
|
|
7586
|
-
"
|
|
7587
|
-
"hoverChanged": "hoverChanged";
|
|
8201
|
+
"pointClick": "pointClick";
|
|
8202
|
+
"activePointChange": "activePointChange";
|
|
7588
8203
|
}, never, never, true, never>;
|
|
7589
8204
|
}
|
|
7590
8205
|
/** Visual size of the segmented control. */
|
|
@@ -9799,6 +10414,233 @@ export declare class TreeComponent implements ControlValueAccessor {
|
|
|
9799
10414
|
"nodeClick": "nodeClick";
|
|
9800
10415
|
}, never, never, true, never>;
|
|
9801
10416
|
}
|
|
10417
|
+
/** One item of an `<ea-treemap>`, drawn as a tile sized by its value. */
|
|
10418
|
+
export interface TreemapItem {
|
|
10419
|
+
/** Name of the item, shown on its tile, tooltip, and data table. */
|
|
10420
|
+
label: string;
|
|
10421
|
+
/** Size of the tile; an item without a positive, finite value draws none. */
|
|
10422
|
+
value: number;
|
|
10423
|
+
/** A second value, such as a gain or loss, that colors the tile when `colorByChange` is set. */
|
|
10424
|
+
change?: number | null;
|
|
10425
|
+
/** Any CSS color for the tile; defaults to the treemap's `color`. Unused when colored by change. */
|
|
10426
|
+
color?: string;
|
|
10427
|
+
}
|
|
10428
|
+
/** Payload describing a single tile of a treemap. */
|
|
10429
|
+
export interface TreemapTileEvent {
|
|
10430
|
+
/** Position of the item within `data`. */
|
|
10431
|
+
index: number;
|
|
10432
|
+
label: string;
|
|
10433
|
+
value: number;
|
|
10434
|
+
/** The item's share of the total, as a percentage. */
|
|
10435
|
+
share: number;
|
|
10436
|
+
/** The item's change, or `null` when it has none. */
|
|
10437
|
+
change: number | null;
|
|
10438
|
+
}
|
|
10439
|
+
/**
|
|
10440
|
+
* Entrance animation, replayed whenever the data changes. `grow` scales every
|
|
10441
|
+
* tile out from its center, and `fade` fades them in.
|
|
10442
|
+
*/
|
|
10443
|
+
export type TreemapAnimation = 'grow' | 'fade' | 'none';
|
|
10444
|
+
interface Box {
|
|
10445
|
+
x: number;
|
|
10446
|
+
y: number;
|
|
10447
|
+
width: number;
|
|
10448
|
+
height: number;
|
|
10449
|
+
}
|
|
10450
|
+
interface PlotTile extends Box {
|
|
10451
|
+
index: number;
|
|
10452
|
+
color: string | null;
|
|
10453
|
+
/** How strongly the tile takes its rise or fall color, as a CSS percentage. */
|
|
10454
|
+
mix: string;
|
|
10455
|
+
falling: boolean;
|
|
10456
|
+
label: {
|
|
10457
|
+
x: number;
|
|
10458
|
+
y: number;
|
|
10459
|
+
text: string;
|
|
10460
|
+
} | null;
|
|
10461
|
+
detail: {
|
|
10462
|
+
x: number;
|
|
10463
|
+
y: number;
|
|
10464
|
+
text: string;
|
|
10465
|
+
} | null;
|
|
10466
|
+
}
|
|
10467
|
+
/**
|
|
10468
|
+
* Shows how a total divides into parts, such as a portfolio's allocation by
|
|
10469
|
+
* holding, as tiles sized by value in a squarified layout, largest first.
|
|
10470
|
+
* Each tile carries its label and value where they fit, and tiles can instead
|
|
10471
|
+
* be colored by a second value such as a gain or loss. Hovering or arrowing
|
|
10472
|
+
* through the tiles reveals each one in a tooltip, and a visually hidden table
|
|
10473
|
+
* carries the full data for screen readers.
|
|
10474
|
+
*/
|
|
10475
|
+
export declare class TreemapComponent {
|
|
10476
|
+
protected readonly i18n: EagamiI18nService;
|
|
10477
|
+
/** The items to draw, each sized by its value. */
|
|
10478
|
+
readonly data: import("@angular/core").InputSignal<TreemapItem[]>;
|
|
10479
|
+
/** Any CSS color for every tile; defaults to the first chart palette color. */
|
|
10480
|
+
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
10481
|
+
/**
|
|
10482
|
+
* Colors each tile by its change instead: rises and falls take the positive
|
|
10483
|
+
* and negative tones, stronger the larger the change, and a tile without one
|
|
10484
|
+
* stays neutral.
|
|
10485
|
+
*/
|
|
10486
|
+
readonly colorByChange: import("@angular/core").InputSignal<boolean>;
|
|
10487
|
+
/** Size of a change at which a tile takes its full color; the largest change by default. */
|
|
10488
|
+
readonly changeRange: import("@angular/core").InputSignal<number | undefined>;
|
|
10489
|
+
/** Any CSS color for rises when colored by change; defaults to the success color. */
|
|
10490
|
+
readonly risingColor: import("@angular/core").InputSignal<string | undefined>;
|
|
10491
|
+
/** Any CSS color for falls when colored by change; defaults to the error color. */
|
|
10492
|
+
readonly fallingColor: import("@angular/core").InputSignal<string | undefined>;
|
|
10493
|
+
/** Prints each tile's value, or its change when colored by change, beneath its label where it fits. */
|
|
10494
|
+
readonly showValues: import("@angular/core").InputSignal<boolean>;
|
|
10495
|
+
/** Height of the treemap in pixels; the width fills the container. */
|
|
10496
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
10497
|
+
/** Visual size; scales the label, value, and tooltip text. */
|
|
10498
|
+
readonly size: import("@angular/core").InputSignal<import("@eagami/ui").EaSize>;
|
|
10499
|
+
/** Entrance animation, replayed whenever the data changes. */
|
|
10500
|
+
readonly animation: import("@angular/core").InputSignal<TreemapAnimation>;
|
|
10501
|
+
/** Length of the entrance animation in milliseconds. */
|
|
10502
|
+
readonly animationDuration: import("@angular/core").InputSignal<number>;
|
|
10503
|
+
/** Formats values on the tiles, tooltip, and data table; locale-grouped by default. */
|
|
10504
|
+
readonly formatValue: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
10505
|
+
/** Formats changes, which then take a plus sign when positive; `formatValue` by default. */
|
|
10506
|
+
readonly formatChange: import("@angular/core").InputSignal<((change: number) => string) | null>;
|
|
10507
|
+
/** Accessible name for the treemap; defaults to a localized "Treemap". */
|
|
10508
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
10509
|
+
/** Fires when a tile is clicked, or chosen with Enter or Space. */
|
|
10510
|
+
readonly tileClick: import("@angular/core").OutputEmitterRef<TreemapTileEvent>;
|
|
10511
|
+
/** Fires when the highlighted tile changes by pointer or keyboard, with `null` once cleared. */
|
|
10512
|
+
readonly activeTileChange: import("@angular/core").OutputEmitterRef<TreemapTileEvent | null>;
|
|
10513
|
+
private readonly viewport;
|
|
10514
|
+
private readonly format;
|
|
10515
|
+
protected readonly active: import("@angular/core").WritableSignal<number | null>;
|
|
10516
|
+
protected readonly label: import("@angular/core").Signal<string>;
|
|
10517
|
+
protected readonly order: import("@angular/core").Signal<number[]>;
|
|
10518
|
+
protected readonly hasData: import("@angular/core").Signal<boolean>;
|
|
10519
|
+
protected readonly total: import("@angular/core").Signal<number>;
|
|
10520
|
+
protected readonly hasChanges: import("@angular/core").Signal<boolean>;
|
|
10521
|
+
protected readonly renderPass: import("@angular/core").Signal<{}[]>;
|
|
10522
|
+
protected readonly hostClasses: import("@angular/core").Signal<{
|
|
10523
|
+
[x: string]: boolean;
|
|
10524
|
+
'ea-treemap--by-change': boolean;
|
|
10525
|
+
}>;
|
|
10526
|
+
protected readonly layout: import("@angular/core").Signal<{
|
|
10527
|
+
width: number;
|
|
10528
|
+
height: number;
|
|
10529
|
+
tiles: PlotTile[];
|
|
10530
|
+
}>;
|
|
10531
|
+
protected readonly tooltip: import("@angular/core").Signal<{
|
|
10532
|
+
x: number;
|
|
10533
|
+
y: number;
|
|
10534
|
+
title: string;
|
|
10535
|
+
rows: {
|
|
10536
|
+
name: string;
|
|
10537
|
+
value: string;
|
|
10538
|
+
}[];
|
|
10539
|
+
key: number;
|
|
10540
|
+
} | null>;
|
|
10541
|
+
protected readonly tooltips: import("@angular/core").Signal<{
|
|
10542
|
+
x: number;
|
|
10543
|
+
y: number;
|
|
10544
|
+
title: string;
|
|
10545
|
+
rows: {
|
|
10546
|
+
name: string;
|
|
10547
|
+
value: string;
|
|
10548
|
+
}[];
|
|
10549
|
+
key: number;
|
|
10550
|
+
}[]>;
|
|
10551
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
10552
|
+
protected isDimmed(tile: PlotTile): boolean;
|
|
10553
|
+
protected tableCells(index: number): string[];
|
|
10554
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
10555
|
+
protected onPointerLeave(): void;
|
|
10556
|
+
protected onClick(): void;
|
|
10557
|
+
protected onFocus(): void;
|
|
10558
|
+
protected onBlur(): void;
|
|
10559
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
10560
|
+
private changeOf;
|
|
10561
|
+
private changeReach;
|
|
10562
|
+
private shareOf;
|
|
10563
|
+
private formatShare;
|
|
10564
|
+
private signedChange;
|
|
10565
|
+
private eventFor;
|
|
10566
|
+
private setActive;
|
|
10567
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreemapComponent, never>;
|
|
10568
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreemapComponent, "ea-treemap", never, {
|
|
10569
|
+
"data": {
|
|
10570
|
+
"alias": "data";
|
|
10571
|
+
"required": false;
|
|
10572
|
+
"isSignal": true;
|
|
10573
|
+
};
|
|
10574
|
+
"color": {
|
|
10575
|
+
"alias": "color";
|
|
10576
|
+
"required": false;
|
|
10577
|
+
"isSignal": true;
|
|
10578
|
+
};
|
|
10579
|
+
"colorByChange": {
|
|
10580
|
+
"alias": "colorByChange";
|
|
10581
|
+
"required": false;
|
|
10582
|
+
"isSignal": true;
|
|
10583
|
+
};
|
|
10584
|
+
"changeRange": {
|
|
10585
|
+
"alias": "changeRange";
|
|
10586
|
+
"required": false;
|
|
10587
|
+
"isSignal": true;
|
|
10588
|
+
};
|
|
10589
|
+
"risingColor": {
|
|
10590
|
+
"alias": "risingColor";
|
|
10591
|
+
"required": false;
|
|
10592
|
+
"isSignal": true;
|
|
10593
|
+
};
|
|
10594
|
+
"fallingColor": {
|
|
10595
|
+
"alias": "fallingColor";
|
|
10596
|
+
"required": false;
|
|
10597
|
+
"isSignal": true;
|
|
10598
|
+
};
|
|
10599
|
+
"showValues": {
|
|
10600
|
+
"alias": "showValues";
|
|
10601
|
+
"required": false;
|
|
10602
|
+
"isSignal": true;
|
|
10603
|
+
};
|
|
10604
|
+
"height": {
|
|
10605
|
+
"alias": "height";
|
|
10606
|
+
"required": false;
|
|
10607
|
+
"isSignal": true;
|
|
10608
|
+
};
|
|
10609
|
+
"size": {
|
|
10610
|
+
"alias": "size";
|
|
10611
|
+
"required": false;
|
|
10612
|
+
"isSignal": true;
|
|
10613
|
+
};
|
|
10614
|
+
"animation": {
|
|
10615
|
+
"alias": "animation";
|
|
10616
|
+
"required": false;
|
|
10617
|
+
"isSignal": true;
|
|
10618
|
+
};
|
|
10619
|
+
"animationDuration": {
|
|
10620
|
+
"alias": "animationDuration";
|
|
10621
|
+
"required": false;
|
|
10622
|
+
"isSignal": true;
|
|
10623
|
+
};
|
|
10624
|
+
"formatValue": {
|
|
10625
|
+
"alias": "formatValue";
|
|
10626
|
+
"required": false;
|
|
10627
|
+
"isSignal": true;
|
|
10628
|
+
};
|
|
10629
|
+
"formatChange": {
|
|
10630
|
+
"alias": "formatChange";
|
|
10631
|
+
"required": false;
|
|
10632
|
+
"isSignal": true;
|
|
10633
|
+
};
|
|
10634
|
+
"ariaLabel": {
|
|
10635
|
+
"alias": "aria-label";
|
|
10636
|
+
"required": false;
|
|
10637
|
+
"isSignal": true;
|
|
10638
|
+
};
|
|
10639
|
+
}, {
|
|
10640
|
+
"tileClick": "tileClick";
|
|
10641
|
+
"activeTileChange": "activeTileChange";
|
|
10642
|
+
}, never, never, true, never>;
|
|
10643
|
+
}
|
|
9802
10644
|
/**
|
|
9803
10645
|
* Context object passed to each `<ng-template #item>` projection inside an
|
|
9804
10646
|
* `<ea-virtual-list>`. Mirrors `let-item="$implicit"` + `let-index="index"`.
|