@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/fesm2022/eagami-ui.mjs
CHANGED
|
@@ -457,7 +457,17 @@ const ar = {
|
|
|
457
457
|
referenceLine: (label, value) => label ? `خط مرجعي، ${label}: ${value}` : `خط مرجعي: ${value}`,
|
|
458
458
|
gauge: "مقياس",
|
|
459
459
|
gaugeValue: (value, band) => band ? `${value}، ${band}` : value,
|
|
460
|
-
gaugeBand: (label, from, to) => label ? `${label}: من ${from} إلى ${to}.` : `من ${from} إلى ${to}
|
|
460
|
+
gaugeBand: (label, from, to) => label ? `${label}: من ${from} إلى ${to}.` : `من ${from} إلى ${to}.`,
|
|
461
|
+
heatmap: "خريطة حرارية",
|
|
462
|
+
treemap: "خريطة شجرية",
|
|
463
|
+
tileChange: (label, value, share, change) => `${label}: ${value}، ${share}، التغيّر ${change}`,
|
|
464
|
+
scatterChart: "مخطط مبعثر",
|
|
465
|
+
series: "السلسلة",
|
|
466
|
+
xValue: "س",
|
|
467
|
+
yValue: "ص",
|
|
468
|
+
bubbleSize: "الحجم",
|
|
469
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
470
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}، ${label}` : series}: ${x}، ${y}${size ? `، ${size}` : ""}`
|
|
461
471
|
},
|
|
462
472
|
codeInput: {
|
|
463
473
|
groupLabel: (length) => `رمز التحقق، ${length} أرقام`,
|
|
@@ -716,7 +726,17 @@ const de = {
|
|
|
716
726
|
referenceLine: (label, value) => label ? `Referenzlinie, ${label}: ${value}` : `Referenzlinie: ${value}`,
|
|
717
727
|
gauge: "Messanzeige",
|
|
718
728
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
719
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} bis ${to}.` : `${from} bis ${to}
|
|
729
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} bis ${to}.` : `${from} bis ${to}.`,
|
|
730
|
+
heatmap: "Heatmap",
|
|
731
|
+
treemap: "Treemap",
|
|
732
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, Veränderung ${change}`,
|
|
733
|
+
scatterChart: "Streudiagramm",
|
|
734
|
+
series: "Reihe",
|
|
735
|
+
xValue: "X",
|
|
736
|
+
yValue: "Y",
|
|
737
|
+
bubbleSize: "Größe",
|
|
738
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
739
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
720
740
|
},
|
|
721
741
|
codeInput: {
|
|
722
742
|
groupLabel: (length) => `Bestätigungscode, ${length} Ziffern`,
|
|
@@ -975,7 +995,17 @@ const el = {
|
|
|
975
995
|
referenceLine: (label, value) => label ? `Γραμμή αναφοράς, ${label}: ${value}` : `Γραμμή αναφοράς: ${value}`,
|
|
976
996
|
gauge: "Μετρητής",
|
|
977
997
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
978
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} έως ${to}.` : `${from} έως ${to}
|
|
998
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} έως ${to}.` : `${from} έως ${to}.`,
|
|
999
|
+
heatmap: "Θερμικός χάρτης",
|
|
1000
|
+
treemap: "Δενδρικός χάρτης",
|
|
1001
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, μεταβολή ${change}`,
|
|
1002
|
+
scatterChart: "Διάγραμμα διασποράς",
|
|
1003
|
+
series: "Σειρά",
|
|
1004
|
+
xValue: "X",
|
|
1005
|
+
yValue: "Y",
|
|
1006
|
+
bubbleSize: "Μέγεθος",
|
|
1007
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
1008
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
979
1009
|
},
|
|
980
1010
|
codeInput: {
|
|
981
1011
|
groupLabel: (length) => `Κωδικός επαλήθευσης, ${length} ψηφία`,
|
|
@@ -1234,7 +1264,17 @@ const en = {
|
|
|
1234
1264
|
referenceLine: (label, value) => label ? `Reference line, ${label}: ${value}` : `Reference line: ${value}`,
|
|
1235
1265
|
gauge: "Gauge",
|
|
1236
1266
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
1237
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} to ${to}.` : `${from} to ${to}
|
|
1267
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} to ${to}.` : `${from} to ${to}.`,
|
|
1268
|
+
heatmap: "Heatmap",
|
|
1269
|
+
treemap: "Treemap",
|
|
1270
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, change ${change}`,
|
|
1271
|
+
scatterChart: "Scatter chart",
|
|
1272
|
+
series: "Series",
|
|
1273
|
+
xValue: "X",
|
|
1274
|
+
yValue: "Y",
|
|
1275
|
+
bubbleSize: "Size",
|
|
1276
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
1277
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
1238
1278
|
},
|
|
1239
1279
|
codeInput: {
|
|
1240
1280
|
groupLabel: (length) => `Verification code, ${length} digits`,
|
|
@@ -1493,7 +1533,17 @@ const esES = {
|
|
|
1493
1533
|
referenceLine: (label, value) => label ? `Línea de referencia, ${label}: ${value}` : `Línea de referencia: ${value}`,
|
|
1494
1534
|
gauge: "Indicador",
|
|
1495
1535
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
1496
|
-
gaugeBand: (label, from, to) => label ? `${label}: de ${from} a ${to}.` : `De ${from} a ${to}
|
|
1536
|
+
gaugeBand: (label, from, to) => label ? `${label}: de ${from} a ${to}.` : `De ${from} a ${to}.`,
|
|
1537
|
+
heatmap: "Mapa de calor",
|
|
1538
|
+
treemap: "Mapa de árbol",
|
|
1539
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, variación ${change}`,
|
|
1540
|
+
scatterChart: "Gráfico de dispersión",
|
|
1541
|
+
series: "Serie",
|
|
1542
|
+
xValue: "X",
|
|
1543
|
+
yValue: "Y",
|
|
1544
|
+
bubbleSize: "Tamaño",
|
|
1545
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
1546
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
1497
1547
|
},
|
|
1498
1548
|
codeInput: {
|
|
1499
1549
|
groupLabel: (length) => `Código de verificación, ${length} dígitos`,
|
|
@@ -1752,7 +1802,17 @@ const frFR = {
|
|
|
1752
1802
|
referenceLine: (label, value) => label ? `Ligne de référence, ${label} : ${value}` : `Ligne de référence : ${value}`,
|
|
1753
1803
|
gauge: "Jauge",
|
|
1754
1804
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
1755
|
-
gaugeBand: (label, from, to) => label ? `${label} : de ${from} à ${to}.` : `De ${from} à ${to}
|
|
1805
|
+
gaugeBand: (label, from, to) => label ? `${label} : de ${from} à ${to}.` : `De ${from} à ${to}.`,
|
|
1806
|
+
heatmap: "Carte de chaleur",
|
|
1807
|
+
treemap: "Carte proportionnelle",
|
|
1808
|
+
tileChange: (label, value, share, change) => `${label} : ${value}, ${share}, variation ${change}`,
|
|
1809
|
+
scatterChart: "Nuage de points",
|
|
1810
|
+
series: "Série",
|
|
1811
|
+
xValue: "X",
|
|
1812
|
+
yValue: "Y",
|
|
1813
|
+
bubbleSize: "Taille",
|
|
1814
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
1815
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series} : ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
1756
1816
|
},
|
|
1757
1817
|
codeInput: {
|
|
1758
1818
|
groupLabel: (length) => `Code de vérification, ${length} chiffres`,
|
|
@@ -2011,7 +2071,17 @@ const he = {
|
|
|
2011
2071
|
referenceLine: (label, value) => label ? `קו ייחוס, ${label}: ${value}` : `קו ייחוס: ${value}`,
|
|
2012
2072
|
gauge: "מד",
|
|
2013
2073
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
2014
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} עד ${to}.` : `${from} עד ${to}
|
|
2074
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} עד ${to}.` : `${from} עד ${to}.`,
|
|
2075
|
+
heatmap: "מפת חום",
|
|
2076
|
+
treemap: "מפת עץ",
|
|
2077
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, שינוי ${change}`,
|
|
2078
|
+
scatterChart: "תרשים פיזור",
|
|
2079
|
+
series: "סדרה",
|
|
2080
|
+
xValue: "X",
|
|
2081
|
+
yValue: "Y",
|
|
2082
|
+
bubbleSize: "גודל",
|
|
2083
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
2084
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
2015
2085
|
},
|
|
2016
2086
|
codeInput: {
|
|
2017
2087
|
groupLabel: (length) => `קוד אימות, ${length} ספרות`,
|
|
@@ -2270,7 +2340,17 @@ const hi = {
|
|
|
2270
2340
|
referenceLine: (label, value) => label ? `संदर्भ रेखा, ${label}: ${value}` : `संदर्भ रेखा: ${value}`,
|
|
2271
2341
|
gauge: "गेज",
|
|
2272
2342
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
2273
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} से ${to}।` : `${from} से ${to}
|
|
2343
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} से ${to}।` : `${from} से ${to}।`,
|
|
2344
|
+
heatmap: "हीटमैप",
|
|
2345
|
+
treemap: "ट्रीमैप",
|
|
2346
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, बदलाव ${change}`,
|
|
2347
|
+
scatterChart: "स्कैटर चार्ट",
|
|
2348
|
+
series: "शृंखला",
|
|
2349
|
+
xValue: "X",
|
|
2350
|
+
yValue: "Y",
|
|
2351
|
+
bubbleSize: "आकार",
|
|
2352
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
2353
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
2274
2354
|
},
|
|
2275
2355
|
codeInput: {
|
|
2276
2356
|
groupLabel: (length) => `सत्यापन कोड, ${length} अंक`,
|
|
@@ -2529,7 +2609,17 @@ const is = {
|
|
|
2529
2609
|
referenceLine: (label, value) => label ? `Viðmiðunarlína, ${label}: ${value}` : `Viðmiðunarlína: ${value}`,
|
|
2530
2610
|
gauge: "Mælir",
|
|
2531
2611
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
2532
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} til ${to}.` : `${from} til ${to}
|
|
2612
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} til ${to}.` : `${from} til ${to}.`,
|
|
2613
|
+
heatmap: "Hitakort",
|
|
2614
|
+
treemap: "Trjákort",
|
|
2615
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, breyting ${change}`,
|
|
2616
|
+
scatterChart: "Dreifirit",
|
|
2617
|
+
series: "Röð",
|
|
2618
|
+
xValue: "X",
|
|
2619
|
+
yValue: "Y",
|
|
2620
|
+
bubbleSize: "Stærð",
|
|
2621
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
2622
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
2533
2623
|
},
|
|
2534
2624
|
codeInput: {
|
|
2535
2625
|
groupLabel: (length) => `Staðfestingarkóði, ${length} tölustafir`,
|
|
@@ -2788,7 +2878,17 @@ const nl = {
|
|
|
2788
2878
|
referenceLine: (label, value) => label ? `Referentielijn, ${label}: ${value}` : `Referentielijn: ${value}`,
|
|
2789
2879
|
gauge: "Meter",
|
|
2790
2880
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
2791
|
-
gaugeBand: (label, from, to) => label ? `${label}: ${from} tot ${to}.` : `${from} tot ${to}
|
|
2881
|
+
gaugeBand: (label, from, to) => label ? `${label}: ${from} tot ${to}.` : `${from} tot ${to}.`,
|
|
2882
|
+
heatmap: "Heatmap",
|
|
2883
|
+
treemap: "Treemap",
|
|
2884
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, wijziging ${change}`,
|
|
2885
|
+
scatterChart: "Spreidingsdiagram",
|
|
2886
|
+
series: "Reeks",
|
|
2887
|
+
xValue: "X",
|
|
2888
|
+
yValue: "Y",
|
|
2889
|
+
bubbleSize: "Grootte",
|
|
2890
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
2891
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
2792
2892
|
},
|
|
2793
2893
|
codeInput: {
|
|
2794
2894
|
groupLabel: (length) => `Verificatiecode, ${length} cijfers`,
|
|
@@ -3047,7 +3147,17 @@ const pl = {
|
|
|
3047
3147
|
referenceLine: (label, value) => label ? `Linia odniesienia, ${label}: ${value}` : `Linia odniesienia: ${value}`,
|
|
3048
3148
|
gauge: "Wskaźnik",
|
|
3049
3149
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
3050
|
-
gaugeBand: (label, from, to) => label ? `${label}: od ${from} do ${to}.` : `Od ${from} do ${to}
|
|
3150
|
+
gaugeBand: (label, from, to) => label ? `${label}: od ${from} do ${to}.` : `Od ${from} do ${to}.`,
|
|
3151
|
+
heatmap: "Mapa cieplna",
|
|
3152
|
+
treemap: "Mapa drzewa",
|
|
3153
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, zmiana ${change}`,
|
|
3154
|
+
scatterChart: "Wykres punktowy",
|
|
3155
|
+
series: "Seria",
|
|
3156
|
+
xValue: "X",
|
|
3157
|
+
yValue: "Y",
|
|
3158
|
+
bubbleSize: "Rozmiar",
|
|
3159
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
3160
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
3051
3161
|
},
|
|
3052
3162
|
codeInput: {
|
|
3053
3163
|
groupLabel: (length) => `Kod weryfikacyjny, ${length} cyfr`,
|
|
@@ -3306,7 +3416,17 @@ const ptBR = {
|
|
|
3306
3416
|
referenceLine: (label, value) => label ? `Linha de referência, ${label}: ${value}` : `Linha de referência: ${value}`,
|
|
3307
3417
|
gauge: "Medidor",
|
|
3308
3418
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
3309
|
-
gaugeBand: (label, from, to) => label ? `${label}: de ${from} a ${to}.` : `De ${from} a ${to}
|
|
3419
|
+
gaugeBand: (label, from, to) => label ? `${label}: de ${from} a ${to}.` : `De ${from} a ${to}.`,
|
|
3420
|
+
heatmap: "Mapa de calor",
|
|
3421
|
+
treemap: "Mapa de árvore",
|
|
3422
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, variação ${change}`,
|
|
3423
|
+
scatterChart: "Gráfico de dispersão",
|
|
3424
|
+
series: "Série",
|
|
3425
|
+
xValue: "X",
|
|
3426
|
+
yValue: "Y",
|
|
3427
|
+
bubbleSize: "Tamanho",
|
|
3428
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
3429
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
3310
3430
|
},
|
|
3311
3431
|
codeInput: {
|
|
3312
3432
|
groupLabel: (length) => `Código de verificação, ${length} dígitos`,
|
|
@@ -3565,7 +3685,17 @@ const ru = {
|
|
|
3565
3685
|
referenceLine: (label, value) => label ? `Опорная линия, ${label}: ${value}` : `Опорная линия: ${value}`,
|
|
3566
3686
|
gauge: "Индикатор",
|
|
3567
3687
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
3568
|
-
gaugeBand: (label, from, to) => label ? `${label}: от ${from} до ${to}.` : `От ${from} до ${to}
|
|
3688
|
+
gaugeBand: (label, from, to) => label ? `${label}: от ${from} до ${to}.` : `От ${from} до ${to}.`,
|
|
3689
|
+
heatmap: "Тепловая карта",
|
|
3690
|
+
treemap: "Древовидная карта",
|
|
3691
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, изменение ${change}`,
|
|
3692
|
+
scatterChart: "Точечная диаграмма",
|
|
3693
|
+
series: "Ряд",
|
|
3694
|
+
xValue: "X",
|
|
3695
|
+
yValue: "Y",
|
|
3696
|
+
bubbleSize: "Размер",
|
|
3697
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
3698
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
3569
3699
|
},
|
|
3570
3700
|
codeInput: {
|
|
3571
3701
|
groupLabel: (length) => `Код подтверждения, ${length} цифр`,
|
|
@@ -3824,7 +3954,17 @@ const uk = {
|
|
|
3824
3954
|
referenceLine: (label, value) => label ? `Опорна лінія, ${label}: ${value}` : `Опорна лінія: ${value}`,
|
|
3825
3955
|
gauge: "Індикатор",
|
|
3826
3956
|
gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
|
|
3827
|
-
gaugeBand: (label, from, to) => label ? `${label}: від ${from} до ${to}.` : `Від ${from} до ${to}
|
|
3957
|
+
gaugeBand: (label, from, to) => label ? `${label}: від ${from} до ${to}.` : `Від ${from} до ${to}.`,
|
|
3958
|
+
heatmap: "Теплова карта",
|
|
3959
|
+
treemap: "Деревоподібна карта",
|
|
3960
|
+
tileChange: (label, value, share, change) => `${label}: ${value}, ${share}, зміна ${change}`,
|
|
3961
|
+
scatterChart: "Точкова діаграма",
|
|
3962
|
+
series: "Ряд",
|
|
3963
|
+
xValue: "X",
|
|
3964
|
+
yValue: "Y",
|
|
3965
|
+
bubbleSize: "Розмір",
|
|
3966
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
3967
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series}, ${label}` : series}: ${x}, ${y}${size ? `, ${size}` : ""}`
|
|
3828
3968
|
},
|
|
3829
3969
|
codeInput: {
|
|
3830
3970
|
groupLabel: (length) => `Код підтвердження, ${length} цифр`,
|
|
@@ -4083,7 +4223,17 @@ const zhCN = {
|
|
|
4083
4223
|
referenceLine: (label, value) => label ? `参考线,${label}:${value}` : `参考线:${value}`,
|
|
4084
4224
|
gauge: "仪表盘",
|
|
4085
4225
|
gaugeValue: (value, band) => band ? `${value},${band}` : value,
|
|
4086
|
-
gaugeBand: (label, from, to) => label ? `${label}:${from} 至 ${to}。` : `${from} 至 ${to}
|
|
4226
|
+
gaugeBand: (label, from, to) => label ? `${label}:${from} 至 ${to}。` : `${from} 至 ${to}。`,
|
|
4227
|
+
heatmap: "热力图",
|
|
4228
|
+
treemap: "矩形树图",
|
|
4229
|
+
tileChange: (label, value, share, change) => `${label}:${value},${share},变化 ${change}`,
|
|
4230
|
+
scatterChart: "散点图",
|
|
4231
|
+
series: "系列",
|
|
4232
|
+
xValue: "X",
|
|
4233
|
+
yValue: "Y",
|
|
4234
|
+
bubbleSize: "大小",
|
|
4235
|
+
axisValue: (name, value) => `${name} ${value}`,
|
|
4236
|
+
scatterPoint: (series, label, x, y, size) => `${label ? `${series},${label}` : series}:${x},${y}${size ? `,${size}` : ""}`
|
|
4087
4237
|
},
|
|
4088
4238
|
codeInput: {
|
|
4089
4239
|
groupLabel: (length) => `验证码,共 ${length} 位`,
|
|
@@ -24336,6 +24486,677 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24336
24486
|
}]
|
|
24337
24487
|
}
|
|
24338
24488
|
});
|
|
24489
|
+
var HeatmapComponent = class HeatmapComponent {
|
|
24490
|
+
i18n = inject(EagamiI18nService);
|
|
24491
|
+
rows = input([], ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
24492
|
+
columns = input([], ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
24493
|
+
values = input([], ...ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []);
|
|
24494
|
+
scale = input("sequential", ...ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []);
|
|
24495
|
+
min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
24496
|
+
max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
24497
|
+
midpoint = input(0, ...ngDevMode ? [{ debugName: "midpoint" }] : /* istanbul ignore next */ []);
|
|
24498
|
+
color = input(void 0, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
24499
|
+
lowColor = input(void 0, ...ngDevMode ? [{ debugName: "lowColor" }] : /* istanbul ignore next */ []);
|
|
24500
|
+
highColor = input(void 0, ...ngDevMode ? [{ debugName: "highColor" }] : /* istanbul ignore next */ []);
|
|
24501
|
+
showValues = input(false, ...ngDevMode ? [{ debugName: "showValues" }] : /* istanbul ignore next */ []);
|
|
24502
|
+
showLegend = input(true, ...ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []);
|
|
24503
|
+
xLabelOrientation = input("horizontal", ...ngDevMode ? [{ debugName: "xLabelOrientation" }] : /* istanbul ignore next */ []);
|
|
24504
|
+
height = input(240, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
24505
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
24506
|
+
animation = input("fade", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
|
|
24507
|
+
animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
|
|
24508
|
+
formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
|
|
24509
|
+
ariaLabel = input(void 0, {
|
|
24510
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
24511
|
+
alias: "aria-label"
|
|
24512
|
+
});
|
|
24513
|
+
cellClick = output();
|
|
24514
|
+
activeCellChange = output();
|
|
24515
|
+
viewport = injectChartViewport(this.size);
|
|
24516
|
+
format = injectChartFormatter(this.formatValue);
|
|
24517
|
+
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
24518
|
+
label = computed(() => this.ariaLabel() || this.i18n.messages().chart.heatmap, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
24519
|
+
grid = computed(() => {
|
|
24520
|
+
const values = this.values();
|
|
24521
|
+
const columnCount = this.columns().length;
|
|
24522
|
+
return this.rows().map((_, row) => Array.from({ length: columnCount }, (_, column) => {
|
|
24523
|
+
const value = values[row]?.[column];
|
|
24524
|
+
return value != null && isFinite(value) ? value : null;
|
|
24525
|
+
}));
|
|
24526
|
+
}, ...ngDevMode ? [{ debugName: "grid" }] : /* istanbul ignore next */ []);
|
|
24527
|
+
hasData = computed(() => this.grid().some((row) => row.some((value) => value !== null)), ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
|
|
24528
|
+
domain = computed(() => {
|
|
24529
|
+
let lo = Infinity;
|
|
24530
|
+
let hi = -Infinity;
|
|
24531
|
+
for (const row of this.grid()) for (const value of row) if (value !== null) {
|
|
24532
|
+
lo = Math.min(lo, value);
|
|
24533
|
+
hi = Math.max(hi, value);
|
|
24534
|
+
}
|
|
24535
|
+
const min = this.min();
|
|
24536
|
+
const max = this.max();
|
|
24537
|
+
if (min != null && isFinite(min)) lo = min;
|
|
24538
|
+
if (max != null && isFinite(max)) hi = max;
|
|
24539
|
+
if (!isFinite(lo) || !isFinite(hi)) {
|
|
24540
|
+
lo = 0;
|
|
24541
|
+
hi = 1;
|
|
24542
|
+
}
|
|
24543
|
+
if (this.scale() === "diverging") {
|
|
24544
|
+
const mid = isFinite(this.midpoint()) ? this.midpoint() : 0;
|
|
24545
|
+
const reach = Math.max(Math.abs(lo - mid), Math.abs(hi - mid));
|
|
24546
|
+
return {
|
|
24547
|
+
diverging: true,
|
|
24548
|
+
low: mid - reach,
|
|
24549
|
+
mid,
|
|
24550
|
+
high: mid + reach
|
|
24551
|
+
};
|
|
24552
|
+
}
|
|
24553
|
+
return {
|
|
24554
|
+
diverging: false,
|
|
24555
|
+
low: lo,
|
|
24556
|
+
mid: (lo + hi) / 2,
|
|
24557
|
+
high: hi
|
|
24558
|
+
};
|
|
24559
|
+
}, ...ngDevMode ? [{ debugName: "domain" }] : /* istanbul ignore next */ []);
|
|
24560
|
+
legendStops = computed(() => {
|
|
24561
|
+
const { diverging, low, mid, high } = this.domain();
|
|
24562
|
+
const format = this.format();
|
|
24563
|
+
return (diverging ? [
|
|
24564
|
+
low,
|
|
24565
|
+
mid,
|
|
24566
|
+
high
|
|
24567
|
+
] : [low, high]).map(format);
|
|
24568
|
+
}, ...ngDevMode ? [{ debugName: "legendStops" }] : /* istanbul ignore next */ []);
|
|
24569
|
+
renderPass = computed(() => {
|
|
24570
|
+
this.values();
|
|
24571
|
+
this.animation();
|
|
24572
|
+
this.animationDuration();
|
|
24573
|
+
return [{}];
|
|
24574
|
+
}, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
|
|
24575
|
+
hostClasses = computed(() => ({
|
|
24576
|
+
[`ea-heatmap--${this.size()}`]: true,
|
|
24577
|
+
[`ea-heatmap--animate-${this.animation()}`]: true,
|
|
24578
|
+
"ea-heatmap--diverging": this.scale() === "diverging"
|
|
24579
|
+
}), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
24580
|
+
layout = computed(() => {
|
|
24581
|
+
const rows = this.rows();
|
|
24582
|
+
const columns = this.columns();
|
|
24583
|
+
const grid = this.grid();
|
|
24584
|
+
const rowCount = Math.max(1, rows.length);
|
|
24585
|
+
const columnCount = Math.max(1, columns.length);
|
|
24586
|
+
const width = this.viewport.width();
|
|
24587
|
+
const height = this.height();
|
|
24588
|
+
const axisPx = this.viewport.fontSize() * .75;
|
|
24589
|
+
const format = this.format();
|
|
24590
|
+
const left = Math.max(0, ...rows.map((r) => estimateTextWidth(r, axisPx))) + axisPx;
|
|
24591
|
+
const right = axisPx / 2;
|
|
24592
|
+
const top = axisPx / 2;
|
|
24593
|
+
const plotWidth = Math.max(1, width - left - right);
|
|
24594
|
+
const cellWidth = plotWidth / columnCount;
|
|
24595
|
+
const orientation = this.xLabelOrientation();
|
|
24596
|
+
const angle = orientation === "auto" ? [
|
|
24597
|
+
0,
|
|
24598
|
+
45,
|
|
24599
|
+
90
|
|
24600
|
+
].find((a) => columns.every((t) => labelRoom(t, a, axisPx) <= cellWidth)) ?? 90 : CHART_LABEL_ANGLES[orientation];
|
|
24601
|
+
const bottom = labelBand(Math.max(0, ...columns.map((t) => estimateTextWidth(t, axisPx))), angle, axisPx, height);
|
|
24602
|
+
const plotHeight = Math.max(1, height - top - bottom);
|
|
24603
|
+
const cellHeight = plotHeight / rowCount;
|
|
24604
|
+
const axisY = top + plotHeight;
|
|
24605
|
+
const showValues = this.showValues();
|
|
24606
|
+
const duration = this.animationDuration();
|
|
24607
|
+
const diagonals = rowCount + columnCount - 2;
|
|
24608
|
+
const cascadeStep = diagonals > 0 ? duration * .5 / diagonals : 0;
|
|
24609
|
+
const cells = [];
|
|
24610
|
+
grid.forEach((values, row) => values.forEach((value, column) => {
|
|
24611
|
+
if (value === null) return;
|
|
24612
|
+
const { mix, below } = this.position(value);
|
|
24613
|
+
const text = format(value);
|
|
24614
|
+
const fits = estimateTextWidth(text, axisPx) + axisPx <= cellWidth && axisPx * 1.4 <= cellHeight;
|
|
24615
|
+
cells.push({
|
|
24616
|
+
row,
|
|
24617
|
+
column,
|
|
24618
|
+
x: left + column * cellWidth,
|
|
24619
|
+
y: top + row * cellHeight,
|
|
24620
|
+
mix: `${Math.round(mix * 1e3) / 10}%`,
|
|
24621
|
+
below,
|
|
24622
|
+
delay: (row + column) * cascadeStep,
|
|
24623
|
+
text: showValues && fits ? text : null
|
|
24624
|
+
});
|
|
24625
|
+
}));
|
|
24626
|
+
const rowStep = Math.max(1, Math.ceil(axisPx * 1.2 / cellHeight));
|
|
24627
|
+
const rowLabels = rows.map((text, index) => ({
|
|
24628
|
+
text,
|
|
24629
|
+
index,
|
|
24630
|
+
pos: top + (index + .5) * cellHeight
|
|
24631
|
+
})).filter((label) => label.index % rowStep === 0);
|
|
24632
|
+
const widestRoom = Math.max(0, ...columns.map((t) => labelRoom(t, angle, axisPx)));
|
|
24633
|
+
const columnStep = Math.max(1, Math.ceil(widestRoom / cellWidth));
|
|
24634
|
+
return {
|
|
24635
|
+
width,
|
|
24636
|
+
height,
|
|
24637
|
+
top,
|
|
24638
|
+
left,
|
|
24639
|
+
plotWidth,
|
|
24640
|
+
plotHeight,
|
|
24641
|
+
cellWidth,
|
|
24642
|
+
cellHeight,
|
|
24643
|
+
axisPx,
|
|
24644
|
+
cells,
|
|
24645
|
+
rowLabels,
|
|
24646
|
+
columnLabels: columns.map((text, index) => ({
|
|
24647
|
+
text,
|
|
24648
|
+
index,
|
|
24649
|
+
pos: left + (index + .5) * cellWidth
|
|
24650
|
+
})).filter((label) => label.index % columnStep === 0),
|
|
24651
|
+
labelAngle: angle,
|
|
24652
|
+
labelY: labelLine(axisY, angle, axisPx)
|
|
24653
|
+
};
|
|
24654
|
+
}, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
24655
|
+
marker = computed(() => {
|
|
24656
|
+
const active = this.active();
|
|
24657
|
+
if (!active) return null;
|
|
24658
|
+
const layout = this.layout();
|
|
24659
|
+
return {
|
|
24660
|
+
x: layout.left + active.column * layout.cellWidth + 1,
|
|
24661
|
+
y: layout.top + active.row * layout.cellHeight + 1,
|
|
24662
|
+
width: Math.max(0, layout.cellWidth - 2),
|
|
24663
|
+
height: Math.max(0, layout.cellHeight - 2)
|
|
24664
|
+
};
|
|
24665
|
+
}, ...ngDevMode ? [{ debugName: "marker" }] : /* istanbul ignore next */ []);
|
|
24666
|
+
tooltip = computed(() => {
|
|
24667
|
+
const event = this.eventFor(this.active());
|
|
24668
|
+
if (!event) return null;
|
|
24669
|
+
const layout = this.layout();
|
|
24670
|
+
return {
|
|
24671
|
+
x: layout.left + (event.column + .5) * layout.cellWidth,
|
|
24672
|
+
y: layout.top + event.row * layout.cellHeight,
|
|
24673
|
+
title: event.rowLabel,
|
|
24674
|
+
name: event.columnLabel,
|
|
24675
|
+
value: this.cellText(event.value),
|
|
24676
|
+
key: `${event.row}:${event.column}`
|
|
24677
|
+
};
|
|
24678
|
+
}, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
24679
|
+
tooltips = computed(() => {
|
|
24680
|
+
const tip = this.tooltip();
|
|
24681
|
+
return tip ? [tip] : [];
|
|
24682
|
+
}, ...ngDevMode ? [{ debugName: "tooltips" }] : /* istanbul ignore next */ []);
|
|
24683
|
+
announcement = computed(() => {
|
|
24684
|
+
const event = this.eventFor(this.active());
|
|
24685
|
+
if (!event) return "";
|
|
24686
|
+
return this.i18n.messages().chart.point(event.rowLabel, event.columnLabel, this.cellText(event.value));
|
|
24687
|
+
}, ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
24688
|
+
tableValue(value) {
|
|
24689
|
+
return value === null ? "–" : this.format()(value);
|
|
24690
|
+
}
|
|
24691
|
+
onPointerMove(event) {
|
|
24692
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
24693
|
+
const layout = this.layout();
|
|
24694
|
+
const column = Math.floor((event.clientX - rect.left - layout.left) / layout.cellWidth);
|
|
24695
|
+
const row = Math.floor((event.clientY - rect.top - layout.top) / layout.cellHeight);
|
|
24696
|
+
const inside = row >= 0 && row < this.rows().length && column >= 0 && column < this.columns().length;
|
|
24697
|
+
this.setActive(inside ? {
|
|
24698
|
+
row,
|
|
24699
|
+
column
|
|
24700
|
+
} : null);
|
|
24701
|
+
}
|
|
24702
|
+
onPointerLeave() {
|
|
24703
|
+
this.setActive(null);
|
|
24704
|
+
}
|
|
24705
|
+
onClick() {
|
|
24706
|
+
const event = this.eventFor(this.active());
|
|
24707
|
+
if (event) this.cellClick.emit(event);
|
|
24708
|
+
}
|
|
24709
|
+
onFocus() {
|
|
24710
|
+
if (this.active() === null) this.setActive({
|
|
24711
|
+
row: 0,
|
|
24712
|
+
column: 0
|
|
24713
|
+
});
|
|
24714
|
+
}
|
|
24715
|
+
onBlur() {
|
|
24716
|
+
this.setActive(null);
|
|
24717
|
+
}
|
|
24718
|
+
onKeydown(event) {
|
|
24719
|
+
const active = this.active();
|
|
24720
|
+
const navigates = event.key.startsWith("Arrow") || ["Home", "End"].includes(event.key);
|
|
24721
|
+
if (active === null) {
|
|
24722
|
+
if (navigates) {
|
|
24723
|
+
event.preventDefault();
|
|
24724
|
+
this.setActive({
|
|
24725
|
+
row: 0,
|
|
24726
|
+
column: 0
|
|
24727
|
+
});
|
|
24728
|
+
}
|
|
24729
|
+
return;
|
|
24730
|
+
}
|
|
24731
|
+
const lastRow = this.rows().length - 1;
|
|
24732
|
+
const lastColumn = this.columns().length - 1;
|
|
24733
|
+
const corner = event.ctrlKey || event.metaKey;
|
|
24734
|
+
let { row, column } = active;
|
|
24735
|
+
switch (event.key) {
|
|
24736
|
+
case "ArrowRight":
|
|
24737
|
+
column = Math.min(lastColumn, column + 1);
|
|
24738
|
+
break;
|
|
24739
|
+
case "ArrowLeft":
|
|
24740
|
+
column = Math.max(0, column - 1);
|
|
24741
|
+
break;
|
|
24742
|
+
case "ArrowDown":
|
|
24743
|
+
row = Math.min(lastRow, row + 1);
|
|
24744
|
+
break;
|
|
24745
|
+
case "ArrowUp":
|
|
24746
|
+
row = Math.max(0, row - 1);
|
|
24747
|
+
break;
|
|
24748
|
+
case "Home":
|
|
24749
|
+
column = 0;
|
|
24750
|
+
row = corner ? 0 : row;
|
|
24751
|
+
break;
|
|
24752
|
+
case "End":
|
|
24753
|
+
column = lastColumn;
|
|
24754
|
+
row = corner ? lastRow : row;
|
|
24755
|
+
break;
|
|
24756
|
+
case "Enter":
|
|
24757
|
+
case " ":
|
|
24758
|
+
this.onClick();
|
|
24759
|
+
break;
|
|
24760
|
+
case "Escape":
|
|
24761
|
+
event.preventDefault();
|
|
24762
|
+
this.setActive(null);
|
|
24763
|
+
return;
|
|
24764
|
+
default: return;
|
|
24765
|
+
}
|
|
24766
|
+
event.preventDefault();
|
|
24767
|
+
this.setActive({
|
|
24768
|
+
row,
|
|
24769
|
+
column
|
|
24770
|
+
});
|
|
24771
|
+
}
|
|
24772
|
+
cellText(value) {
|
|
24773
|
+
return value === null ? this.i18n.messages().chart.noData : this.format()(value);
|
|
24774
|
+
}
|
|
24775
|
+
position(value) {
|
|
24776
|
+
const { diverging, low, mid, high } = this.domain();
|
|
24777
|
+
if (diverging) {
|
|
24778
|
+
const reach = high - mid;
|
|
24779
|
+
return {
|
|
24780
|
+
mix: reach > 0 ? clamp$1(Math.abs(value - mid) / reach, 0, 1) : 0,
|
|
24781
|
+
below: value < mid
|
|
24782
|
+
};
|
|
24783
|
+
}
|
|
24784
|
+
const span = high - low;
|
|
24785
|
+
return {
|
|
24786
|
+
mix: span > 0 ? clamp$1((value - low) / span, 0, 1) : 1,
|
|
24787
|
+
below: false
|
|
24788
|
+
};
|
|
24789
|
+
}
|
|
24790
|
+
eventFor(cell) {
|
|
24791
|
+
if (!cell) return null;
|
|
24792
|
+
return {
|
|
24793
|
+
row: cell.row,
|
|
24794
|
+
column: cell.column,
|
|
24795
|
+
rowLabel: this.rows()[cell.row] ?? "",
|
|
24796
|
+
columnLabel: this.columns()[cell.column] ?? "",
|
|
24797
|
+
value: this.grid()[cell.row]?.[cell.column] ?? null
|
|
24798
|
+
};
|
|
24799
|
+
}
|
|
24800
|
+
setActive(next) {
|
|
24801
|
+
const current = this.active();
|
|
24802
|
+
if (current?.row === next?.row && current?.column === next?.column) return;
|
|
24803
|
+
this.active.set(next);
|
|
24804
|
+
this.activeCellChange.emit(this.eventFor(next));
|
|
24805
|
+
}
|
|
24806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
24807
|
+
minVersion: "12.0.0",
|
|
24808
|
+
version: "22.3.0",
|
|
24809
|
+
ngImport: i0,
|
|
24810
|
+
type: HeatmapComponent,
|
|
24811
|
+
deps: [],
|
|
24812
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
24813
|
+
});
|
|
24814
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
24815
|
+
minVersion: "17.0.0",
|
|
24816
|
+
version: "22.3.0",
|
|
24817
|
+
type: HeatmapComponent,
|
|
24818
|
+
isStandalone: true,
|
|
24819
|
+
selector: "ea-heatmap",
|
|
24820
|
+
inputs: {
|
|
24821
|
+
rows: {
|
|
24822
|
+
classPropertyName: "rows",
|
|
24823
|
+
publicName: "rows",
|
|
24824
|
+
isSignal: true,
|
|
24825
|
+
isRequired: false,
|
|
24826
|
+
transformFunction: null
|
|
24827
|
+
},
|
|
24828
|
+
columns: {
|
|
24829
|
+
classPropertyName: "columns",
|
|
24830
|
+
publicName: "columns",
|
|
24831
|
+
isSignal: true,
|
|
24832
|
+
isRequired: false,
|
|
24833
|
+
transformFunction: null
|
|
24834
|
+
},
|
|
24835
|
+
values: {
|
|
24836
|
+
classPropertyName: "values",
|
|
24837
|
+
publicName: "values",
|
|
24838
|
+
isSignal: true,
|
|
24839
|
+
isRequired: false,
|
|
24840
|
+
transformFunction: null
|
|
24841
|
+
},
|
|
24842
|
+
scale: {
|
|
24843
|
+
classPropertyName: "scale",
|
|
24844
|
+
publicName: "scale",
|
|
24845
|
+
isSignal: true,
|
|
24846
|
+
isRequired: false,
|
|
24847
|
+
transformFunction: null
|
|
24848
|
+
},
|
|
24849
|
+
min: {
|
|
24850
|
+
classPropertyName: "min",
|
|
24851
|
+
publicName: "min",
|
|
24852
|
+
isSignal: true,
|
|
24853
|
+
isRequired: false,
|
|
24854
|
+
transformFunction: null
|
|
24855
|
+
},
|
|
24856
|
+
max: {
|
|
24857
|
+
classPropertyName: "max",
|
|
24858
|
+
publicName: "max",
|
|
24859
|
+
isSignal: true,
|
|
24860
|
+
isRequired: false,
|
|
24861
|
+
transformFunction: null
|
|
24862
|
+
},
|
|
24863
|
+
midpoint: {
|
|
24864
|
+
classPropertyName: "midpoint",
|
|
24865
|
+
publicName: "midpoint",
|
|
24866
|
+
isSignal: true,
|
|
24867
|
+
isRequired: false,
|
|
24868
|
+
transformFunction: null
|
|
24869
|
+
},
|
|
24870
|
+
color: {
|
|
24871
|
+
classPropertyName: "color",
|
|
24872
|
+
publicName: "color",
|
|
24873
|
+
isSignal: true,
|
|
24874
|
+
isRequired: false,
|
|
24875
|
+
transformFunction: null
|
|
24876
|
+
},
|
|
24877
|
+
lowColor: {
|
|
24878
|
+
classPropertyName: "lowColor",
|
|
24879
|
+
publicName: "lowColor",
|
|
24880
|
+
isSignal: true,
|
|
24881
|
+
isRequired: false,
|
|
24882
|
+
transformFunction: null
|
|
24883
|
+
},
|
|
24884
|
+
highColor: {
|
|
24885
|
+
classPropertyName: "highColor",
|
|
24886
|
+
publicName: "highColor",
|
|
24887
|
+
isSignal: true,
|
|
24888
|
+
isRequired: false,
|
|
24889
|
+
transformFunction: null
|
|
24890
|
+
},
|
|
24891
|
+
showValues: {
|
|
24892
|
+
classPropertyName: "showValues",
|
|
24893
|
+
publicName: "showValues",
|
|
24894
|
+
isSignal: true,
|
|
24895
|
+
isRequired: false,
|
|
24896
|
+
transformFunction: null
|
|
24897
|
+
},
|
|
24898
|
+
showLegend: {
|
|
24899
|
+
classPropertyName: "showLegend",
|
|
24900
|
+
publicName: "showLegend",
|
|
24901
|
+
isSignal: true,
|
|
24902
|
+
isRequired: false,
|
|
24903
|
+
transformFunction: null
|
|
24904
|
+
},
|
|
24905
|
+
xLabelOrientation: {
|
|
24906
|
+
classPropertyName: "xLabelOrientation",
|
|
24907
|
+
publicName: "xLabelOrientation",
|
|
24908
|
+
isSignal: true,
|
|
24909
|
+
isRequired: false,
|
|
24910
|
+
transformFunction: null
|
|
24911
|
+
},
|
|
24912
|
+
height: {
|
|
24913
|
+
classPropertyName: "height",
|
|
24914
|
+
publicName: "height",
|
|
24915
|
+
isSignal: true,
|
|
24916
|
+
isRequired: false,
|
|
24917
|
+
transformFunction: null
|
|
24918
|
+
},
|
|
24919
|
+
size: {
|
|
24920
|
+
classPropertyName: "size",
|
|
24921
|
+
publicName: "size",
|
|
24922
|
+
isSignal: true,
|
|
24923
|
+
isRequired: false,
|
|
24924
|
+
transformFunction: null
|
|
24925
|
+
},
|
|
24926
|
+
animation: {
|
|
24927
|
+
classPropertyName: "animation",
|
|
24928
|
+
publicName: "animation",
|
|
24929
|
+
isSignal: true,
|
|
24930
|
+
isRequired: false,
|
|
24931
|
+
transformFunction: null
|
|
24932
|
+
},
|
|
24933
|
+
animationDuration: {
|
|
24934
|
+
classPropertyName: "animationDuration",
|
|
24935
|
+
publicName: "animationDuration",
|
|
24936
|
+
isSignal: true,
|
|
24937
|
+
isRequired: false,
|
|
24938
|
+
transformFunction: null
|
|
24939
|
+
},
|
|
24940
|
+
formatValue: {
|
|
24941
|
+
classPropertyName: "formatValue",
|
|
24942
|
+
publicName: "formatValue",
|
|
24943
|
+
isSignal: true,
|
|
24944
|
+
isRequired: false,
|
|
24945
|
+
transformFunction: null
|
|
24946
|
+
},
|
|
24947
|
+
ariaLabel: {
|
|
24948
|
+
classPropertyName: "ariaLabel",
|
|
24949
|
+
publicName: "aria-label",
|
|
24950
|
+
isSignal: true,
|
|
24951
|
+
isRequired: false,
|
|
24952
|
+
transformFunction: null
|
|
24953
|
+
}
|
|
24954
|
+
},
|
|
24955
|
+
outputs: {
|
|
24956
|
+
cellClick: "cellClick",
|
|
24957
|
+
activeCellChange: "activeCellChange"
|
|
24958
|
+
},
|
|
24959
|
+
ngImport: i0,
|
|
24960
|
+
template: "<div\n class=\"ea-heatmap\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\"\n [style.--ea-heatmap-color]=\"color() || null\"\n [style.--ea-heatmap-low-color]=\"lowColor() || null\"\n [style.--ea-heatmap-high-color]=\"highColor() || null\">\n @if (hasData()) {\n <div\n class=\"ea-heatmap__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-heatmap__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n <rect\n class=\"ea-heatmap__hit\"\n [attr.x]=\"layout().left\"\n [attr.y]=\"layout().top\"\n [attr.width]=\"layout().plotWidth\"\n [attr.height]=\"layout().plotHeight\" />\n @for (rowLabel of layout().rowLabels; track rowLabel.index) {\n <text\n class=\"ea-heatmap__axis\"\n text-anchor=\"end\"\n dominant-baseline=\"middle\"\n [attr.x]=\"layout().left - layout().axisPx / 2\"\n [attr.y]=\"rowLabel.pos\">\n {{ rowLabel.text }}\n </text>\n }\n @for (columnLabel of layout().columnLabels; track columnLabel.index) {\n <text\n class=\"ea-heatmap__axis\"\n [attr.text-anchor]=\"layout().labelAngle ? 'end' : 'middle'\"\n [attr.dominant-baseline]=\"layout().labelAngle ? 'central' : null\"\n [attr.transform]=\"\n layout().labelAngle\n ? 'rotate(' +\n -layout().labelAngle +\n ' ' +\n columnLabel.pos +\n ' ' +\n layout().labelY +\n ')'\n : null\n \"\n [attr.x]=\"columnLabel.pos\"\n [attr.y]=\"layout().labelY\">\n {{ columnLabel.text }}\n </text>\n }\n @for (cell of layout().cells; track cell.row + ':' + cell.column) {\n <rect\n class=\"ea-heatmap__cell\"\n [class.ea-heatmap__cell--below]=\"cell.below\"\n [style.--ea-heatmap-mix]=\"cell.mix\"\n [style.--ea-chart-delay]=\"cell.delay + 'ms'\"\n [attr.x]=\"cell.x\"\n [attr.y]=\"cell.y\"\n [attr.width]=\"layout().cellWidth\"\n [attr.height]=\"layout().cellHeight\" />\n }\n @for (cell of layout().cells; track cell.row + ':' + cell.column) {\n @if (cell.text !== null) {\n <text\n class=\"ea-heatmap__value\"\n text-anchor=\"middle\"\n dominant-baseline=\"central\"\n [style.--ea-chart-delay]=\"cell.delay + 'ms'\"\n [attr.x]=\"cell.x + layout().cellWidth / 2\"\n [attr.y]=\"cell.y + layout().cellHeight / 2\">\n {{ cell.text }}\n </text>\n }\n }\n @if (marker(); as box) {\n <rect\n class=\"ea-heatmap__marker\"\n [attr.x]=\"box.x\"\n [attr.y]=\"box.y\"\n [attr.width]=\"box.width\"\n [attr.height]=\"box.height\" />\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-heatmap__anchor\"\n width=\"2\"\n height=\"2\"\n [attr.x]=\"tip.x - 1\"\n [attr.y]=\"tip.y - 1\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-heatmap__tooltip\">\n <span class=\"ea-heatmap__tooltip-title\">{{ tip.title }}</span>\n <span class=\"ea-heatmap__tooltip-row\">\n <span class=\"ea-heatmap__tooltip-name\">{{ tip.name }}</span>\n <span class=\"ea-heatmap__tooltip-value\">{{ tip.value }}</span>\n </span>\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-heatmap__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n <td></td>\n @for (column of columns(); track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (values of grid(); track $index; let i = $index) {\n <tr>\n <th scope=\"row\">{{ rows()[i] }}</th>\n @for (value of values; track $index) {\n <td>{{ tableValue(value) }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n </div>\n @if (showLegend()) {\n <div\n class=\"ea-heatmap__legend\"\n aria-hidden=\"true\">\n <span class=\"ea-heatmap__legend-bar\"></span>\n <span class=\"ea-heatmap__legend-stops\">\n @for (stop of legendStops(); track $index) {\n <span class=\"ea-heatmap__legend-stop\">{{ stop }}</span>\n }\n </span>\n </div>\n }\n <div\n class=\"ea-heatmap__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-heatmap__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n</div>\n",
|
|
24961
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-heatmap{display:block}.ea-heatmap{--_ea-heatmap-surface: var(--ea-chart-surface, var(--color-bg-base));--_ea-heatmap-start: color-mix( in oklab, var(--ea-heatmap-color, var(--color-chart-1)) 8%, var(--_ea-heatmap-surface) );--_ea-heatmap-high: color-mix( in oklab, var(--ea-heatmap-color, var(--color-chart-1)) 70%, var(--color-text-primary) );position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-heatmap--2xs{font-size:var(--font-size-2xs)}.ea-heatmap--xs{font-size:var(--font-size-xs)}.ea-heatmap--sm{font-size:var(--font-size-sm)}.ea-heatmap--md{font-size:var(--font-size-md)}.ea-heatmap--lg{font-size:var(--font-size-lg)}.ea-heatmap--xl{font-size:var(--font-size-xl)}.ea-heatmap--diverging{--_ea-heatmap-start: color-mix( in oklab, var(--color-text-primary) 8%, var(--_ea-heatmap-surface) );--_ea-heatmap-high: color-mix( in oklab, var(--ea-heatmap-high-color, var(--color-success-default)) 70%, var(--color-text-primary) );--_ea-heatmap-low: color-mix( in oklab, var(--ea-heatmap-low-color, var(--color-error-default)) 70%, var(--color-text-primary) )}.ea-heatmap__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-heatmap__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-heatmap__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-heatmap__plot svg{display:block;overflow:visible}.ea-heatmap__svg{direction:ltr;touch-action:pan-y}.ea-heatmap__hit{fill:transparent}.ea-heatmap__axis{font-size:.75em;fill:var(--color-text-secondary)}.ea-heatmap__cell{--_ea-heatmap-end: var(--_ea-heatmap-high);fill:color-mix(in oklab,var(--_ea-heatmap-end) var(--ea-heatmap-mix, 0%),var(--_ea-heatmap-start));stroke:var(--_ea-heatmap-surface);stroke-width:2px;pointer-events:none}.ea-heatmap__cell--below{--_ea-heatmap-end: var(--_ea-heatmap-low)}.ea-heatmap__value{font-size:.75em;fill:var(--color-text-secondary);font-variant-numeric:tabular-nums;stroke:var(--_ea-heatmap-surface);stroke-width:3px;stroke-linejoin:round;fill:var(--color-text-primary);pointer-events:none;paint-order:stroke}.ea-heatmap__marker{fill:none;stroke:var(--color-text-primary);stroke-width:2px;pointer-events:none}.ea-heatmap__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-heatmap__anchor{fill:transparent}.ea-heatmap__tooltip-title{font-weight:var(--font-weight-medium)}.ea-heatmap__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-heatmap__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-heatmap__legend{display:flex;align-self:center;flex-direction:column;gap:.25em;width:min(100%,16em);font-size:.75em;color:var(--color-text-secondary);direction:ltr}.ea-heatmap__legend-bar{height:.75em;border-radius:var(--radius-sm);background-image:linear-gradient(in oklab to right,var(--_ea-heatmap-start),var(--_ea-heatmap-high))}.ea-heatmap--diverging .ea-heatmap__legend-bar{background-image:linear-gradient(in oklab to right,var(--_ea-heatmap-low),var(--_ea-heatmap-start),var(--_ea-heatmap-high))}.ea-heatmap__legend-stops{display:flex;justify-content:space-between;gap:1em;font-variant-numeric:tabular-nums}.ea-heatmap__table,.ea-heatmap__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-heatmap__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-heatmap--animate-fade .ea-heatmap__cell,.ea-heatmap--animate-fade .ea-heatmap__value,.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-heatmap--animate-fade .ea-heatmap__cell,.ea-heatmap--animate-fade .ea-heatmap__value,.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation:none}}.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation-delay:var(--ea-chart-delay, 0ms);animation-duration:calc(var(--ea-chart-duration, .6s) * .5)}\n"],
|
|
24962
|
+
dependencies: [{
|
|
24963
|
+
kind: "directive",
|
|
24964
|
+
type: TooltipDirective,
|
|
24965
|
+
selector: "[eaTooltip]",
|
|
24966
|
+
inputs: [
|
|
24967
|
+
"eaTooltip",
|
|
24968
|
+
"tooltipPosition",
|
|
24969
|
+
"flip",
|
|
24970
|
+
"whenClipped",
|
|
24971
|
+
"maxWidth",
|
|
24972
|
+
"showDelay",
|
|
24973
|
+
"dismissDelay",
|
|
24974
|
+
"tooltipOpen"
|
|
24975
|
+
]
|
|
24976
|
+
}],
|
|
24977
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
24978
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
24979
|
+
});
|
|
24980
|
+
};
|
|
24981
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
24982
|
+
minVersion: "12.0.0",
|
|
24983
|
+
version: "22.3.0",
|
|
24984
|
+
ngImport: i0,
|
|
24985
|
+
type: HeatmapComponent,
|
|
24986
|
+
decorators: [{
|
|
24987
|
+
type: Component,
|
|
24988
|
+
args: [{
|
|
24989
|
+
selector: "ea-heatmap",
|
|
24990
|
+
imports: [TooltipDirective],
|
|
24991
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24992
|
+
encapsulation: ViewEncapsulation.None,
|
|
24993
|
+
template: "<div\n class=\"ea-heatmap\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\"\n [style.--ea-heatmap-color]=\"color() || null\"\n [style.--ea-heatmap-low-color]=\"lowColor() || null\"\n [style.--ea-heatmap-high-color]=\"highColor() || null\">\n @if (hasData()) {\n <div\n class=\"ea-heatmap__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-heatmap__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n <rect\n class=\"ea-heatmap__hit\"\n [attr.x]=\"layout().left\"\n [attr.y]=\"layout().top\"\n [attr.width]=\"layout().plotWidth\"\n [attr.height]=\"layout().plotHeight\" />\n @for (rowLabel of layout().rowLabels; track rowLabel.index) {\n <text\n class=\"ea-heatmap__axis\"\n text-anchor=\"end\"\n dominant-baseline=\"middle\"\n [attr.x]=\"layout().left - layout().axisPx / 2\"\n [attr.y]=\"rowLabel.pos\">\n {{ rowLabel.text }}\n </text>\n }\n @for (columnLabel of layout().columnLabels; track columnLabel.index) {\n <text\n class=\"ea-heatmap__axis\"\n [attr.text-anchor]=\"layout().labelAngle ? 'end' : 'middle'\"\n [attr.dominant-baseline]=\"layout().labelAngle ? 'central' : null\"\n [attr.transform]=\"\n layout().labelAngle\n ? 'rotate(' +\n -layout().labelAngle +\n ' ' +\n columnLabel.pos +\n ' ' +\n layout().labelY +\n ')'\n : null\n \"\n [attr.x]=\"columnLabel.pos\"\n [attr.y]=\"layout().labelY\">\n {{ columnLabel.text }}\n </text>\n }\n @for (cell of layout().cells; track cell.row + ':' + cell.column) {\n <rect\n class=\"ea-heatmap__cell\"\n [class.ea-heatmap__cell--below]=\"cell.below\"\n [style.--ea-heatmap-mix]=\"cell.mix\"\n [style.--ea-chart-delay]=\"cell.delay + 'ms'\"\n [attr.x]=\"cell.x\"\n [attr.y]=\"cell.y\"\n [attr.width]=\"layout().cellWidth\"\n [attr.height]=\"layout().cellHeight\" />\n }\n @for (cell of layout().cells; track cell.row + ':' + cell.column) {\n @if (cell.text !== null) {\n <text\n class=\"ea-heatmap__value\"\n text-anchor=\"middle\"\n dominant-baseline=\"central\"\n [style.--ea-chart-delay]=\"cell.delay + 'ms'\"\n [attr.x]=\"cell.x + layout().cellWidth / 2\"\n [attr.y]=\"cell.y + layout().cellHeight / 2\">\n {{ cell.text }}\n </text>\n }\n }\n @if (marker(); as box) {\n <rect\n class=\"ea-heatmap__marker\"\n [attr.x]=\"box.x\"\n [attr.y]=\"box.y\"\n [attr.width]=\"box.width\"\n [attr.height]=\"box.height\" />\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-heatmap__anchor\"\n width=\"2\"\n height=\"2\"\n [attr.x]=\"tip.x - 1\"\n [attr.y]=\"tip.y - 1\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-heatmap__tooltip\">\n <span class=\"ea-heatmap__tooltip-title\">{{ tip.title }}</span>\n <span class=\"ea-heatmap__tooltip-row\">\n <span class=\"ea-heatmap__tooltip-name\">{{ tip.name }}</span>\n <span class=\"ea-heatmap__tooltip-value\">{{ tip.value }}</span>\n </span>\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-heatmap__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n <td></td>\n @for (column of columns(); track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (values of grid(); track $index; let i = $index) {\n <tr>\n <th scope=\"row\">{{ rows()[i] }}</th>\n @for (value of values; track $index) {\n <td>{{ tableValue(value) }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n </div>\n @if (showLegend()) {\n <div\n class=\"ea-heatmap__legend\"\n aria-hidden=\"true\">\n <span class=\"ea-heatmap__legend-bar\"></span>\n <span class=\"ea-heatmap__legend-stops\">\n @for (stop of legendStops(); track $index) {\n <span class=\"ea-heatmap__legend-stop\">{{ stop }}</span>\n }\n </span>\n </div>\n }\n <div\n class=\"ea-heatmap__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-heatmap__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n</div>\n",
|
|
24994
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-heatmap{display:block}.ea-heatmap{--_ea-heatmap-surface: var(--ea-chart-surface, var(--color-bg-base));--_ea-heatmap-start: color-mix( in oklab, var(--ea-heatmap-color, var(--color-chart-1)) 8%, var(--_ea-heatmap-surface) );--_ea-heatmap-high: color-mix( in oklab, var(--ea-heatmap-color, var(--color-chart-1)) 70%, var(--color-text-primary) );position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-heatmap--2xs{font-size:var(--font-size-2xs)}.ea-heatmap--xs{font-size:var(--font-size-xs)}.ea-heatmap--sm{font-size:var(--font-size-sm)}.ea-heatmap--md{font-size:var(--font-size-md)}.ea-heatmap--lg{font-size:var(--font-size-lg)}.ea-heatmap--xl{font-size:var(--font-size-xl)}.ea-heatmap--diverging{--_ea-heatmap-start: color-mix( in oklab, var(--color-text-primary) 8%, var(--_ea-heatmap-surface) );--_ea-heatmap-high: color-mix( in oklab, var(--ea-heatmap-high-color, var(--color-success-default)) 70%, var(--color-text-primary) );--_ea-heatmap-low: color-mix( in oklab, var(--ea-heatmap-low-color, var(--color-error-default)) 70%, var(--color-text-primary) )}.ea-heatmap__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-heatmap__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-heatmap__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-heatmap__plot svg{display:block;overflow:visible}.ea-heatmap__svg{direction:ltr;touch-action:pan-y}.ea-heatmap__hit{fill:transparent}.ea-heatmap__axis{font-size:.75em;fill:var(--color-text-secondary)}.ea-heatmap__cell{--_ea-heatmap-end: var(--_ea-heatmap-high);fill:color-mix(in oklab,var(--_ea-heatmap-end) var(--ea-heatmap-mix, 0%),var(--_ea-heatmap-start));stroke:var(--_ea-heatmap-surface);stroke-width:2px;pointer-events:none}.ea-heatmap__cell--below{--_ea-heatmap-end: var(--_ea-heatmap-low)}.ea-heatmap__value{font-size:.75em;fill:var(--color-text-secondary);font-variant-numeric:tabular-nums;stroke:var(--_ea-heatmap-surface);stroke-width:3px;stroke-linejoin:round;fill:var(--color-text-primary);pointer-events:none;paint-order:stroke}.ea-heatmap__marker{fill:none;stroke:var(--color-text-primary);stroke-width:2px;pointer-events:none}.ea-heatmap__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-heatmap__anchor{fill:transparent}.ea-heatmap__tooltip-title{font-weight:var(--font-weight-medium)}.ea-heatmap__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-heatmap__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-heatmap__legend{display:flex;align-self:center;flex-direction:column;gap:.25em;width:min(100%,16em);font-size:.75em;color:var(--color-text-secondary);direction:ltr}.ea-heatmap__legend-bar{height:.75em;border-radius:var(--radius-sm);background-image:linear-gradient(in oklab to right,var(--_ea-heatmap-start),var(--_ea-heatmap-high))}.ea-heatmap--diverging .ea-heatmap__legend-bar{background-image:linear-gradient(in oklab to right,var(--_ea-heatmap-low),var(--_ea-heatmap-start),var(--_ea-heatmap-high))}.ea-heatmap__legend-stops{display:flex;justify-content:space-between;gap:1em;font-variant-numeric:tabular-nums}.ea-heatmap__table,.ea-heatmap__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-heatmap__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-heatmap--animate-fade .ea-heatmap__cell,.ea-heatmap--animate-fade .ea-heatmap__value,.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-heatmap--animate-fade .ea-heatmap__cell,.ea-heatmap--animate-fade .ea-heatmap__value,.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation:none}}.ea-heatmap--animate-cascade .ea-heatmap__cell,.ea-heatmap--animate-cascade .ea-heatmap__value{animation-delay:var(--ea-chart-delay, 0ms);animation-duration:calc(var(--ea-chart-duration, .6s) * .5)}\n"]
|
|
24995
|
+
}]
|
|
24996
|
+
}],
|
|
24997
|
+
propDecorators: {
|
|
24998
|
+
rows: [{
|
|
24999
|
+
type: i0.Input,
|
|
25000
|
+
args: [{
|
|
25001
|
+
isSignal: true,
|
|
25002
|
+
alias: "rows",
|
|
25003
|
+
required: false
|
|
25004
|
+
}]
|
|
25005
|
+
}],
|
|
25006
|
+
columns: [{
|
|
25007
|
+
type: i0.Input,
|
|
25008
|
+
args: [{
|
|
25009
|
+
isSignal: true,
|
|
25010
|
+
alias: "columns",
|
|
25011
|
+
required: false
|
|
25012
|
+
}]
|
|
25013
|
+
}],
|
|
25014
|
+
values: [{
|
|
25015
|
+
type: i0.Input,
|
|
25016
|
+
args: [{
|
|
25017
|
+
isSignal: true,
|
|
25018
|
+
alias: "values",
|
|
25019
|
+
required: false
|
|
25020
|
+
}]
|
|
25021
|
+
}],
|
|
25022
|
+
scale: [{
|
|
25023
|
+
type: i0.Input,
|
|
25024
|
+
args: [{
|
|
25025
|
+
isSignal: true,
|
|
25026
|
+
alias: "scale",
|
|
25027
|
+
required: false
|
|
25028
|
+
}]
|
|
25029
|
+
}],
|
|
25030
|
+
min: [{
|
|
25031
|
+
type: i0.Input,
|
|
25032
|
+
args: [{
|
|
25033
|
+
isSignal: true,
|
|
25034
|
+
alias: "min",
|
|
25035
|
+
required: false
|
|
25036
|
+
}]
|
|
25037
|
+
}],
|
|
25038
|
+
max: [{
|
|
25039
|
+
type: i0.Input,
|
|
25040
|
+
args: [{
|
|
25041
|
+
isSignal: true,
|
|
25042
|
+
alias: "max",
|
|
25043
|
+
required: false
|
|
25044
|
+
}]
|
|
25045
|
+
}],
|
|
25046
|
+
midpoint: [{
|
|
25047
|
+
type: i0.Input,
|
|
25048
|
+
args: [{
|
|
25049
|
+
isSignal: true,
|
|
25050
|
+
alias: "midpoint",
|
|
25051
|
+
required: false
|
|
25052
|
+
}]
|
|
25053
|
+
}],
|
|
25054
|
+
color: [{
|
|
25055
|
+
type: i0.Input,
|
|
25056
|
+
args: [{
|
|
25057
|
+
isSignal: true,
|
|
25058
|
+
alias: "color",
|
|
25059
|
+
required: false
|
|
25060
|
+
}]
|
|
25061
|
+
}],
|
|
25062
|
+
lowColor: [{
|
|
25063
|
+
type: i0.Input,
|
|
25064
|
+
args: [{
|
|
25065
|
+
isSignal: true,
|
|
25066
|
+
alias: "lowColor",
|
|
25067
|
+
required: false
|
|
25068
|
+
}]
|
|
25069
|
+
}],
|
|
25070
|
+
highColor: [{
|
|
25071
|
+
type: i0.Input,
|
|
25072
|
+
args: [{
|
|
25073
|
+
isSignal: true,
|
|
25074
|
+
alias: "highColor",
|
|
25075
|
+
required: false
|
|
25076
|
+
}]
|
|
25077
|
+
}],
|
|
25078
|
+
showValues: [{
|
|
25079
|
+
type: i0.Input,
|
|
25080
|
+
args: [{
|
|
25081
|
+
isSignal: true,
|
|
25082
|
+
alias: "showValues",
|
|
25083
|
+
required: false
|
|
25084
|
+
}]
|
|
25085
|
+
}],
|
|
25086
|
+
showLegend: [{
|
|
25087
|
+
type: i0.Input,
|
|
25088
|
+
args: [{
|
|
25089
|
+
isSignal: true,
|
|
25090
|
+
alias: "showLegend",
|
|
25091
|
+
required: false
|
|
25092
|
+
}]
|
|
25093
|
+
}],
|
|
25094
|
+
xLabelOrientation: [{
|
|
25095
|
+
type: i0.Input,
|
|
25096
|
+
args: [{
|
|
25097
|
+
isSignal: true,
|
|
25098
|
+
alias: "xLabelOrientation",
|
|
25099
|
+
required: false
|
|
25100
|
+
}]
|
|
25101
|
+
}],
|
|
25102
|
+
height: [{
|
|
25103
|
+
type: i0.Input,
|
|
25104
|
+
args: [{
|
|
25105
|
+
isSignal: true,
|
|
25106
|
+
alias: "height",
|
|
25107
|
+
required: false
|
|
25108
|
+
}]
|
|
25109
|
+
}],
|
|
25110
|
+
size: [{
|
|
25111
|
+
type: i0.Input,
|
|
25112
|
+
args: [{
|
|
25113
|
+
isSignal: true,
|
|
25114
|
+
alias: "size",
|
|
25115
|
+
required: false
|
|
25116
|
+
}]
|
|
25117
|
+
}],
|
|
25118
|
+
animation: [{
|
|
25119
|
+
type: i0.Input,
|
|
25120
|
+
args: [{
|
|
25121
|
+
isSignal: true,
|
|
25122
|
+
alias: "animation",
|
|
25123
|
+
required: false
|
|
25124
|
+
}]
|
|
25125
|
+
}],
|
|
25126
|
+
animationDuration: [{
|
|
25127
|
+
type: i0.Input,
|
|
25128
|
+
args: [{
|
|
25129
|
+
isSignal: true,
|
|
25130
|
+
alias: "animationDuration",
|
|
25131
|
+
required: false
|
|
25132
|
+
}]
|
|
25133
|
+
}],
|
|
25134
|
+
formatValue: [{
|
|
25135
|
+
type: i0.Input,
|
|
25136
|
+
args: [{
|
|
25137
|
+
isSignal: true,
|
|
25138
|
+
alias: "formatValue",
|
|
25139
|
+
required: false
|
|
25140
|
+
}]
|
|
25141
|
+
}],
|
|
25142
|
+
ariaLabel: [{
|
|
25143
|
+
type: i0.Input,
|
|
25144
|
+
args: [{
|
|
25145
|
+
isSignal: true,
|
|
25146
|
+
alias: "aria-label",
|
|
25147
|
+
required: false
|
|
25148
|
+
}]
|
|
25149
|
+
}],
|
|
25150
|
+
cellClick: [{
|
|
25151
|
+
type: i0.Output,
|
|
25152
|
+
args: ["cellClick"]
|
|
25153
|
+
}],
|
|
25154
|
+
activeCellChange: [{
|
|
25155
|
+
type: i0.Output,
|
|
25156
|
+
args: ["activeCellChange"]
|
|
25157
|
+
}]
|
|
25158
|
+
}
|
|
25159
|
+
});
|
|
24339
25160
|
const EDGE_INSET = 8;
|
|
24340
25161
|
const DRAG_THRESHOLD = 4;
|
|
24341
25162
|
const WHEEL_LINE_PX = 16;
|
|
@@ -29983,6 +30804,729 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
29983
30804
|
}]
|
|
29984
30805
|
}
|
|
29985
30806
|
});
|
|
30807
|
+
const POINT_RADIUS = 5;
|
|
30808
|
+
const MIN_BUBBLE_RADIUS = 3;
|
|
30809
|
+
const HIT_SLOP = 8;
|
|
30810
|
+
var ScatterChartComponent = class ScatterChartComponent {
|
|
30811
|
+
i18n = inject(EagamiI18nService);
|
|
30812
|
+
series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
|
|
30813
|
+
xTitle = input("", ...ngDevMode ? [{ debugName: "xTitle" }] : /* istanbul ignore next */ []);
|
|
30814
|
+
yTitle = input("", ...ngDevMode ? [{ debugName: "yTitle" }] : /* istanbul ignore next */ []);
|
|
30815
|
+
sizeTitle = input("", ...ngDevMode ? [{ debugName: "sizeTitle" }] : /* istanbul ignore next */ []);
|
|
30816
|
+
maxBubbleRadius = input(24, ...ngDevMode ? [{ debugName: "maxBubbleRadius" }] : /* istanbul ignore next */ []);
|
|
30817
|
+
showGrid = input(true, ...ngDevMode ? [{ debugName: "showGrid" }] : /* istanbul ignore next */ []);
|
|
30818
|
+
showLegend = input(true, ...ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []);
|
|
30819
|
+
referenceLines = input([], ...ngDevMode ? [{ debugName: "referenceLines" }] : /* istanbul ignore next */ []);
|
|
30820
|
+
xReferenceLines = input([], ...ngDevMode ? [{ debugName: "xReferenceLines" }] : /* istanbul ignore next */ []);
|
|
30821
|
+
height = input(280, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
30822
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
30823
|
+
animation = input("pop", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
|
|
30824
|
+
animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
|
|
30825
|
+
formatX = input(null, ...ngDevMode ? [{ debugName: "formatX" }] : /* istanbul ignore next */ []);
|
|
30826
|
+
formatY = input(null, ...ngDevMode ? [{ debugName: "formatY" }] : /* istanbul ignore next */ []);
|
|
30827
|
+
formatSize = input(null, ...ngDevMode ? [{ debugName: "formatSize" }] : /* istanbul ignore next */ []);
|
|
30828
|
+
ariaLabel = input(void 0, {
|
|
30829
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
30830
|
+
alias: "aria-label"
|
|
30831
|
+
});
|
|
30832
|
+
pointClick = output();
|
|
30833
|
+
activePointChange = output();
|
|
30834
|
+
viewport = injectChartViewport(this.size);
|
|
30835
|
+
formatXValue = injectChartFormatter(this.formatX);
|
|
30836
|
+
formatYValue = injectChartFormatter(this.formatY);
|
|
30837
|
+
formatSizeValue = injectChartFormatter(this.formatSize);
|
|
30838
|
+
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
30839
|
+
label = computed(() => this.ariaLabel() || this.i18n.messages().chart.scatterChart, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
30840
|
+
xName = computed(() => this.xTitle() || this.i18n.messages().chart.xValue, ...ngDevMode ? [{ debugName: "xName" }] : /* istanbul ignore next */ []);
|
|
30841
|
+
yName = computed(() => this.yTitle() || this.i18n.messages().chart.yValue, ...ngDevMode ? [{ debugName: "yName" }] : /* istanbul ignore next */ []);
|
|
30842
|
+
sizeName = computed(() => this.sizeTitle() || this.i18n.messages().chart.bubbleSize, ...ngDevMode ? [{ debugName: "sizeName" }] : /* istanbul ignore next */ []);
|
|
30843
|
+
points = computed(() => this.series().flatMap((s, series) => s.points.flatMap(({ x, y, size }, index) => isFinite(x) && isFinite(y) ? [{
|
|
30844
|
+
series,
|
|
30845
|
+
index,
|
|
30846
|
+
x,
|
|
30847
|
+
y,
|
|
30848
|
+
size: size != null && isFinite(size) && size > 0 ? size : null
|
|
30849
|
+
}] : [])), ...ngDevMode ? [{ debugName: "points" }] : /* istanbul ignore next */ []);
|
|
30850
|
+
hasData = computed(() => this.points().length > 0, ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
|
|
30851
|
+
bubbles = computed(() => this.points().some((p) => p.size !== null), ...ngDevMode ? [{ debugName: "bubbles" }] : /* istanbul ignore next */ []);
|
|
30852
|
+
order = computed(() => {
|
|
30853
|
+
const order = this.series().map(() => []);
|
|
30854
|
+
const points = [...this.points()].sort((a, b) => a.x - b.x || b.y - a.y);
|
|
30855
|
+
for (const point of points) order[point.series].push(point.index);
|
|
30856
|
+
return order;
|
|
30857
|
+
}, ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
|
|
30858
|
+
references = computed(() => plottableReferenceLines(this.referenceLines()), ...ngDevMode ? [{ debugName: "references" }] : /* istanbul ignore next */ []);
|
|
30859
|
+
xReferences = computed(() => plottableReferenceLines(this.xReferenceLines()), ...ngDevMode ? [{ debugName: "xReferences" }] : /* istanbul ignore next */ []);
|
|
30860
|
+
renderPass = computed(() => {
|
|
30861
|
+
this.series();
|
|
30862
|
+
this.animation();
|
|
30863
|
+
this.animationDuration();
|
|
30864
|
+
return [{}];
|
|
30865
|
+
}, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
|
|
30866
|
+
hostClasses = computed(() => ({
|
|
30867
|
+
[`ea-scatter-chart--${this.size()}`]: true,
|
|
30868
|
+
[`ea-scatter-chart--animate-${this.animation()}`]: true
|
|
30869
|
+
}), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
30870
|
+
showsLegend = computed(() => this.showLegend() && this.series().length > 1, ...ngDevMode ? [{ debugName: "showsLegend" }] : /* istanbul ignore next */ []);
|
|
30871
|
+
layout = computed(() => {
|
|
30872
|
+
const width = this.viewport.width();
|
|
30873
|
+
const height = this.height();
|
|
30874
|
+
const axisPx = this.viewport.fontSize() * .75;
|
|
30875
|
+
const formatX = this.formatXValue();
|
|
30876
|
+
const formatY = this.formatYValue();
|
|
30877
|
+
const points = this.points();
|
|
30878
|
+
const largest = Math.max(0, ...points.map((p) => p.size ?? 0));
|
|
30879
|
+
const maxRadius = Math.max(POINT_RADIUS, this.maxBubbleRadius());
|
|
30880
|
+
const radius = (size) => size === null ? POINT_RADIUS : Math.max(MIN_BUBBLE_RADIUS, maxRadius * Math.sqrt(size / largest));
|
|
30881
|
+
const edge = Math.max(0, ...points.map((p) => radius(p.size))) + 2;
|
|
30882
|
+
const titleBand = axisPx * 1.8;
|
|
30883
|
+
const yTitled = !!this.yTitle();
|
|
30884
|
+
const xTitled = !!this.xTitle();
|
|
30885
|
+
const top = axisPx;
|
|
30886
|
+
const bottom = labelBand(0, 0, axisPx, height) + (xTitled ? titleBand : 0);
|
|
30887
|
+
const plotHeight = Math.max(1, height - top - bottom);
|
|
30888
|
+
const yScale = this.axisScale([...points.map((p) => p.y), ...this.references().map((line) => line.value)], plotHeight, Math.max(2, Math.floor(plotHeight / (axisPx * 3))), edge);
|
|
30889
|
+
const yTicks = yScale.ticks.map((value) => ({
|
|
30890
|
+
value,
|
|
30891
|
+
text: formatY(value)
|
|
30892
|
+
}));
|
|
30893
|
+
const left = (yTitled ? titleBand : 0) + Math.max(0, ...yTicks.map((t) => estimateTextWidth(t.text, axisPx))) + axisPx;
|
|
30894
|
+
const xValues = [...points.map((p) => p.x), ...this.xReferences().map((line) => line.value)];
|
|
30895
|
+
const roughWidth = Math.max(1, width - left - axisPx / 2);
|
|
30896
|
+
const widestX = Math.max(0, ...this.axisScale(xValues, roughWidth, 5, edge).ticks.map((t) => estimateTextWidth(formatX(t), axisPx)));
|
|
30897
|
+
const right = Math.max(axisPx / 2, widestX / 2);
|
|
30898
|
+
const plotWidth = Math.max(1, width - left - right);
|
|
30899
|
+
const xScale = this.axisScale(xValues, plotWidth, Math.max(2, Math.floor(plotWidth / (widestX + axisPx * 2))), edge);
|
|
30900
|
+
const xTickTexts = xScale.ticks.map((value) => ({
|
|
30901
|
+
value,
|
|
30902
|
+
text: formatX(value)
|
|
30903
|
+
}));
|
|
30904
|
+
const axisY = top + plotHeight;
|
|
30905
|
+
const xPos = (value) => left + (value - xScale.min) / (xScale.max - xScale.min || 1) * plotWidth;
|
|
30906
|
+
const yPos = (value) => top + (1 - (value - yScale.min) / (yScale.max - yScale.min || 1)) * plotHeight;
|
|
30907
|
+
const sweep = this.animationDuration() * .5;
|
|
30908
|
+
const plotted = points.map((point) => {
|
|
30909
|
+
const cx = xPos(point.x);
|
|
30910
|
+
return {
|
|
30911
|
+
...point,
|
|
30912
|
+
key: `${point.series}-${point.index}`,
|
|
30913
|
+
cx,
|
|
30914
|
+
cy: yPos(point.y),
|
|
30915
|
+
r: radius(point.size),
|
|
30916
|
+
delay: (cx - left) / plotWidth * sweep
|
|
30917
|
+
};
|
|
30918
|
+
});
|
|
30919
|
+
const series = this.series().map((s, index) => ({
|
|
30920
|
+
name: s.name,
|
|
30921
|
+
color: chartColor(index, s.color),
|
|
30922
|
+
points: plotted.filter((p) => p.series === index).sort((a, b) => b.r - a.r)
|
|
30923
|
+
}));
|
|
30924
|
+
const referenceLines = this.references().map((line, key) => ({
|
|
30925
|
+
...line,
|
|
30926
|
+
key,
|
|
30927
|
+
pos: yPos(line.value)
|
|
30928
|
+
})).filter((line) => line.value >= yScale.min && line.value <= yScale.max).map((line) => ({
|
|
30929
|
+
...line,
|
|
30930
|
+
labelX: left + plotWidth,
|
|
30931
|
+
labelY: line.pos - axisPx * 1.4 >= top ? line.pos - axisPx * .4 - 2 : line.pos + axisPx * 1.2
|
|
30932
|
+
}));
|
|
30933
|
+
const xReferenceLines = this.xReferences().map((line, key) => ({
|
|
30934
|
+
...line,
|
|
30935
|
+
key,
|
|
30936
|
+
pos: xPos(line.value)
|
|
30937
|
+
})).filter((line) => line.value >= xScale.min && line.value <= xScale.max).map((line) => {
|
|
30938
|
+
const after = line.pos + axisPx * .5 + estimateTextWidth(line.label ?? "", axisPx) <= left + plotWidth;
|
|
30939
|
+
return {
|
|
30940
|
+
...line,
|
|
30941
|
+
labelX: after ? line.pos + axisPx * .5 : line.pos - axisPx * .5,
|
|
30942
|
+
labelY: top + axisPx * .9,
|
|
30943
|
+
anchor: after ? "start" : "end"
|
|
30944
|
+
};
|
|
30945
|
+
});
|
|
30946
|
+
const ticks = (scale, texts, at) => texts.filter((t) => t.value >= scale.min && t.value <= scale.max).map((t) => ({
|
|
30947
|
+
...t,
|
|
30948
|
+
pos: at(t.value)
|
|
30949
|
+
}));
|
|
30950
|
+
return {
|
|
30951
|
+
width,
|
|
30952
|
+
height,
|
|
30953
|
+
top,
|
|
30954
|
+
left,
|
|
30955
|
+
plotWidth,
|
|
30956
|
+
plotHeight,
|
|
30957
|
+
axisPx,
|
|
30958
|
+
axisY,
|
|
30959
|
+
tickEndY: axisY + tickLength(axisPx),
|
|
30960
|
+
labelY: labelLine(axisY, 0, axisPx),
|
|
30961
|
+
xTicks: ticks(xScale, xTickTexts, xPos),
|
|
30962
|
+
yTicks: ticks(yScale, yTicks, yPos),
|
|
30963
|
+
xTitle: {
|
|
30964
|
+
x: left + plotWidth / 2,
|
|
30965
|
+
y: height - axisPx * .5
|
|
30966
|
+
},
|
|
30967
|
+
yTitle: {
|
|
30968
|
+
x: axisPx * .9,
|
|
30969
|
+
y: top + plotHeight / 2
|
|
30970
|
+
},
|
|
30971
|
+
series,
|
|
30972
|
+
referenceLines,
|
|
30973
|
+
xReferenceLines
|
|
30974
|
+
};
|
|
30975
|
+
}, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
30976
|
+
activePoint = computed(() => {
|
|
30977
|
+
const active = this.active();
|
|
30978
|
+
if (!active) return null;
|
|
30979
|
+
return this.layout().series[active.series]?.points.find((p) => p.index === active.index) ?? null;
|
|
30980
|
+
}, ...ngDevMode ? [{ debugName: "activePoint" }] : /* istanbul ignore next */ []);
|
|
30981
|
+
tooltip = computed(() => {
|
|
30982
|
+
const point = this.activePoint();
|
|
30983
|
+
if (!point) return null;
|
|
30984
|
+
const series = this.series()[point.series];
|
|
30985
|
+
const label = series.points[point.index]?.label ?? "";
|
|
30986
|
+
const rows = [{
|
|
30987
|
+
name: this.xName(),
|
|
30988
|
+
value: this.formatXValue()(point.x)
|
|
30989
|
+
}, {
|
|
30990
|
+
name: this.yName(),
|
|
30991
|
+
value: this.formatYValue()(point.y)
|
|
30992
|
+
}];
|
|
30993
|
+
if (point.size !== null) rows.push({
|
|
30994
|
+
name: this.sizeName(),
|
|
30995
|
+
value: this.formatSizeValue()(point.size)
|
|
30996
|
+
});
|
|
30997
|
+
if (label && this.series().length > 1) rows.unshift({
|
|
30998
|
+
name: series.name,
|
|
30999
|
+
value: "",
|
|
31000
|
+
color: chartColor(point.series, series.color)
|
|
31001
|
+
});
|
|
31002
|
+
return {
|
|
31003
|
+
x: point.cx,
|
|
31004
|
+
y: point.cy,
|
|
31005
|
+
r: point.r,
|
|
31006
|
+
title: label || series.name,
|
|
31007
|
+
color: label ? null : chartColor(point.series, series.color),
|
|
31008
|
+
rows,
|
|
31009
|
+
key: point.key
|
|
31010
|
+
};
|
|
31011
|
+
}, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
31012
|
+
tooltips = computed(() => {
|
|
31013
|
+
const tip = this.tooltip();
|
|
31014
|
+
return tip ? [tip] : [];
|
|
31015
|
+
}, ...ngDevMode ? [{ debugName: "tooltips" }] : /* istanbul ignore next */ []);
|
|
31016
|
+
announcement = computed(() => {
|
|
31017
|
+
const event = this.eventFor(this.active());
|
|
31018
|
+
if (!event) return "";
|
|
31019
|
+
const messages = this.i18n.messages().chart;
|
|
31020
|
+
return messages.scatterPoint(event.seriesName, event.label, messages.axisValue(this.xName(), this.formatXValue()(event.x)), messages.axisValue(this.yName(), this.formatYValue()(event.y)), event.size === null ? "" : messages.axisValue(this.sizeName(), this.formatSizeValue()(event.size)));
|
|
31021
|
+
}, ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
31022
|
+
tableColumns = computed(() => {
|
|
31023
|
+
const messages = this.i18n.messages().chart;
|
|
31024
|
+
return [
|
|
31025
|
+
...this.series().length > 1 ? [messages.series] : [],
|
|
31026
|
+
...this.labelled() ? [messages.category] : [],
|
|
31027
|
+
this.xName(),
|
|
31028
|
+
this.yName(),
|
|
31029
|
+
...this.bubbles() ? [this.sizeName()] : []
|
|
31030
|
+
];
|
|
31031
|
+
}, ...ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []);
|
|
31032
|
+
tableRows = computed(() => {
|
|
31033
|
+
const multiple = this.series().length > 1;
|
|
31034
|
+
const labelled = this.labelled();
|
|
31035
|
+
const bubbles = this.bubbles();
|
|
31036
|
+
const formatX = this.formatXValue();
|
|
31037
|
+
const formatY = this.formatYValue();
|
|
31038
|
+
const formatSize = this.formatSizeValue();
|
|
31039
|
+
return this.series().flatMap((s) => s.points.map((point) => [
|
|
31040
|
+
...multiple ? [s.name] : [],
|
|
31041
|
+
...labelled ? [point.label ?? ""] : [],
|
|
31042
|
+
this.cell(point.x, formatX),
|
|
31043
|
+
this.cell(point.y, formatY),
|
|
31044
|
+
...bubbles ? [this.cell(point.size, formatSize)] : []
|
|
31045
|
+
]));
|
|
31046
|
+
}, ...ngDevMode ? [{ debugName: "tableRows" }] : /* istanbul ignore next */ []);
|
|
31047
|
+
labelled = computed(() => this.series().some((s) => s.points.some((point) => !!point.label)), ...ngDevMode ? [{ debugName: "labelled" }] : /* istanbul ignore next */ []);
|
|
31048
|
+
seriesColor(index) {
|
|
31049
|
+
return chartColor(index, this.series()[index]?.color);
|
|
31050
|
+
}
|
|
31051
|
+
isDimmed(index) {
|
|
31052
|
+
const active = this.active();
|
|
31053
|
+
return !!active && active.series !== index && this.series().length > 1;
|
|
31054
|
+
}
|
|
31055
|
+
isActive(point) {
|
|
31056
|
+
const active = this.active();
|
|
31057
|
+
return !!active && active.series === point.series && active.index === point.index;
|
|
31058
|
+
}
|
|
31059
|
+
referenceText(line, format) {
|
|
31060
|
+
const value = (format === "x" ? this.formatXValue() : this.formatYValue())(line.value);
|
|
31061
|
+
return this.i18n.messages().chart.referenceLine(line.label ?? "", value);
|
|
31062
|
+
}
|
|
31063
|
+
onPointerMove(event) {
|
|
31064
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
31065
|
+
const px = event.clientX - rect.left;
|
|
31066
|
+
const py = event.clientY - rect.top;
|
|
31067
|
+
let best = null;
|
|
31068
|
+
let nearest = Infinity;
|
|
31069
|
+
for (const s of this.layout().series) for (const point of s.points) {
|
|
31070
|
+
const gap = Math.hypot(point.cx - px, point.cy - py) - point.r;
|
|
31071
|
+
if (gap <= HIT_SLOP && gap < nearest) {
|
|
31072
|
+
nearest = gap;
|
|
31073
|
+
best = point;
|
|
31074
|
+
}
|
|
31075
|
+
}
|
|
31076
|
+
this.setActive(best ? {
|
|
31077
|
+
series: best.series,
|
|
31078
|
+
index: best.index
|
|
31079
|
+
} : null);
|
|
31080
|
+
}
|
|
31081
|
+
onPointerLeave() {
|
|
31082
|
+
this.setActive(null);
|
|
31083
|
+
}
|
|
31084
|
+
onClick() {
|
|
31085
|
+
const event = this.eventFor(this.active());
|
|
31086
|
+
if (event) this.pointClick.emit(event);
|
|
31087
|
+
}
|
|
31088
|
+
onFocus() {
|
|
31089
|
+
if (!this.active()) this.setActive(this.firstPoint());
|
|
31090
|
+
}
|
|
31091
|
+
onBlur() {
|
|
31092
|
+
this.setActive(null);
|
|
31093
|
+
}
|
|
31094
|
+
onKeydown(event) {
|
|
31095
|
+
const active = this.active();
|
|
31096
|
+
if (!active && event.key.startsWith("Arrow")) {
|
|
31097
|
+
event.preventDefault();
|
|
31098
|
+
this.setActive(this.firstPoint());
|
|
31099
|
+
return;
|
|
31100
|
+
}
|
|
31101
|
+
if (!active) return;
|
|
31102
|
+
const order = this.order()[active.series];
|
|
31103
|
+
const at = order.indexOf(active.index);
|
|
31104
|
+
let next = active;
|
|
31105
|
+
switch (event.key) {
|
|
31106
|
+
case "ArrowRight":
|
|
31107
|
+
next = {
|
|
31108
|
+
series: active.series,
|
|
31109
|
+
index: order[Math.min(at + 1, order.length - 1)]
|
|
31110
|
+
};
|
|
31111
|
+
break;
|
|
31112
|
+
case "ArrowLeft":
|
|
31113
|
+
next = {
|
|
31114
|
+
series: active.series,
|
|
31115
|
+
index: order[Math.max(at - 1, 0)]
|
|
31116
|
+
};
|
|
31117
|
+
break;
|
|
31118
|
+
case "Home":
|
|
31119
|
+
next = {
|
|
31120
|
+
series: active.series,
|
|
31121
|
+
index: order[0]
|
|
31122
|
+
};
|
|
31123
|
+
break;
|
|
31124
|
+
case "End":
|
|
31125
|
+
next = {
|
|
31126
|
+
series: active.series,
|
|
31127
|
+
index: order[order.length - 1]
|
|
31128
|
+
};
|
|
31129
|
+
break;
|
|
31130
|
+
case "ArrowUp":
|
|
31131
|
+
case "ArrowDown":
|
|
31132
|
+
next = this.nextSeries(active, event.key === "ArrowDown" ? 1 : -1) ?? active;
|
|
31133
|
+
break;
|
|
31134
|
+
case "Enter":
|
|
31135
|
+
case " ":
|
|
31136
|
+
this.onClick();
|
|
31137
|
+
break;
|
|
31138
|
+
case "Escape":
|
|
31139
|
+
next = null;
|
|
31140
|
+
break;
|
|
31141
|
+
default: return;
|
|
31142
|
+
}
|
|
31143
|
+
event.preventDefault();
|
|
31144
|
+
this.setActive(next);
|
|
31145
|
+
}
|
|
31146
|
+
axisScale(values, length, maxTicks, edge) {
|
|
31147
|
+
if (!values.length) return niceScale(0, 1, maxTicks);
|
|
31148
|
+
let lo = Math.min(...values);
|
|
31149
|
+
let hi = Math.max(...values);
|
|
31150
|
+
if (lo === hi) {
|
|
31151
|
+
const spread = lo === 0 ? 1 : Math.abs(lo) * .5;
|
|
31152
|
+
lo -= spread;
|
|
31153
|
+
hi += spread;
|
|
31154
|
+
}
|
|
31155
|
+
const pad = edge * (hi - lo) / Math.max(1, length - 2 * edge);
|
|
31156
|
+
return niceScale(lo - pad, hi + pad, maxTicks);
|
|
31157
|
+
}
|
|
31158
|
+
cell(value, format) {
|
|
31159
|
+
return value == null || !isFinite(value) ? "–" : format(value);
|
|
31160
|
+
}
|
|
31161
|
+
firstPoint() {
|
|
31162
|
+
const order = this.order();
|
|
31163
|
+
const series = order.findIndex((indices) => indices.length > 0);
|
|
31164
|
+
return series === -1 ? null : {
|
|
31165
|
+
series,
|
|
31166
|
+
index: order[series][0]
|
|
31167
|
+
};
|
|
31168
|
+
}
|
|
31169
|
+
nextSeries(active, step) {
|
|
31170
|
+
const order = this.order();
|
|
31171
|
+
const count = order.length;
|
|
31172
|
+
const x = this.series()[active.series].points[active.index].x;
|
|
31173
|
+
for (let hop = 1; hop < count; hop++) {
|
|
31174
|
+
const series = (active.series + step * hop + count) % count;
|
|
31175
|
+
const points = this.series()[series].points;
|
|
31176
|
+
let best = null;
|
|
31177
|
+
for (const index of order[series]) if (best === null || Math.abs(points[index].x - x) < Math.abs(points[best].x - x)) best = index;
|
|
31178
|
+
if (best !== null) return {
|
|
31179
|
+
series,
|
|
31180
|
+
index: best
|
|
31181
|
+
};
|
|
31182
|
+
}
|
|
31183
|
+
return null;
|
|
31184
|
+
}
|
|
31185
|
+
eventFor(active) {
|
|
31186
|
+
if (!active) return null;
|
|
31187
|
+
const point = this.points().find((p) => p.series === active.series && p.index === active.index);
|
|
31188
|
+
if (!point) return null;
|
|
31189
|
+
const series = this.series()[active.series];
|
|
31190
|
+
return {
|
|
31191
|
+
seriesIndex: active.series,
|
|
31192
|
+
seriesName: series.name,
|
|
31193
|
+
index: active.index,
|
|
31194
|
+
label: series.points[active.index]?.label ?? "",
|
|
31195
|
+
x: point.x,
|
|
31196
|
+
y: point.y,
|
|
31197
|
+
size: point.size
|
|
31198
|
+
};
|
|
31199
|
+
}
|
|
31200
|
+
setActive(next) {
|
|
31201
|
+
const current = this.active();
|
|
31202
|
+
if (current?.series === next?.series && current?.index === next?.index) return;
|
|
31203
|
+
this.active.set(next);
|
|
31204
|
+
this.activePointChange.emit(this.eventFor(next));
|
|
31205
|
+
}
|
|
31206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
31207
|
+
minVersion: "12.0.0",
|
|
31208
|
+
version: "22.3.0",
|
|
31209
|
+
ngImport: i0,
|
|
31210
|
+
type: ScatterChartComponent,
|
|
31211
|
+
deps: [],
|
|
31212
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
31213
|
+
});
|
|
31214
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
31215
|
+
minVersion: "17.0.0",
|
|
31216
|
+
version: "22.3.0",
|
|
31217
|
+
type: ScatterChartComponent,
|
|
31218
|
+
isStandalone: true,
|
|
31219
|
+
selector: "ea-scatter-chart",
|
|
31220
|
+
inputs: {
|
|
31221
|
+
series: {
|
|
31222
|
+
classPropertyName: "series",
|
|
31223
|
+
publicName: "series",
|
|
31224
|
+
isSignal: true,
|
|
31225
|
+
isRequired: false,
|
|
31226
|
+
transformFunction: null
|
|
31227
|
+
},
|
|
31228
|
+
xTitle: {
|
|
31229
|
+
classPropertyName: "xTitle",
|
|
31230
|
+
publicName: "xTitle",
|
|
31231
|
+
isSignal: true,
|
|
31232
|
+
isRequired: false,
|
|
31233
|
+
transformFunction: null
|
|
31234
|
+
},
|
|
31235
|
+
yTitle: {
|
|
31236
|
+
classPropertyName: "yTitle",
|
|
31237
|
+
publicName: "yTitle",
|
|
31238
|
+
isSignal: true,
|
|
31239
|
+
isRequired: false,
|
|
31240
|
+
transformFunction: null
|
|
31241
|
+
},
|
|
31242
|
+
sizeTitle: {
|
|
31243
|
+
classPropertyName: "sizeTitle",
|
|
31244
|
+
publicName: "sizeTitle",
|
|
31245
|
+
isSignal: true,
|
|
31246
|
+
isRequired: false,
|
|
31247
|
+
transformFunction: null
|
|
31248
|
+
},
|
|
31249
|
+
maxBubbleRadius: {
|
|
31250
|
+
classPropertyName: "maxBubbleRadius",
|
|
31251
|
+
publicName: "maxBubbleRadius",
|
|
31252
|
+
isSignal: true,
|
|
31253
|
+
isRequired: false,
|
|
31254
|
+
transformFunction: null
|
|
31255
|
+
},
|
|
31256
|
+
showGrid: {
|
|
31257
|
+
classPropertyName: "showGrid",
|
|
31258
|
+
publicName: "showGrid",
|
|
31259
|
+
isSignal: true,
|
|
31260
|
+
isRequired: false,
|
|
31261
|
+
transformFunction: null
|
|
31262
|
+
},
|
|
31263
|
+
showLegend: {
|
|
31264
|
+
classPropertyName: "showLegend",
|
|
31265
|
+
publicName: "showLegend",
|
|
31266
|
+
isSignal: true,
|
|
31267
|
+
isRequired: false,
|
|
31268
|
+
transformFunction: null
|
|
31269
|
+
},
|
|
31270
|
+
referenceLines: {
|
|
31271
|
+
classPropertyName: "referenceLines",
|
|
31272
|
+
publicName: "referenceLines",
|
|
31273
|
+
isSignal: true,
|
|
31274
|
+
isRequired: false,
|
|
31275
|
+
transformFunction: null
|
|
31276
|
+
},
|
|
31277
|
+
xReferenceLines: {
|
|
31278
|
+
classPropertyName: "xReferenceLines",
|
|
31279
|
+
publicName: "xReferenceLines",
|
|
31280
|
+
isSignal: true,
|
|
31281
|
+
isRequired: false,
|
|
31282
|
+
transformFunction: null
|
|
31283
|
+
},
|
|
31284
|
+
height: {
|
|
31285
|
+
classPropertyName: "height",
|
|
31286
|
+
publicName: "height",
|
|
31287
|
+
isSignal: true,
|
|
31288
|
+
isRequired: false,
|
|
31289
|
+
transformFunction: null
|
|
31290
|
+
},
|
|
31291
|
+
size: {
|
|
31292
|
+
classPropertyName: "size",
|
|
31293
|
+
publicName: "size",
|
|
31294
|
+
isSignal: true,
|
|
31295
|
+
isRequired: false,
|
|
31296
|
+
transformFunction: null
|
|
31297
|
+
},
|
|
31298
|
+
animation: {
|
|
31299
|
+
classPropertyName: "animation",
|
|
31300
|
+
publicName: "animation",
|
|
31301
|
+
isSignal: true,
|
|
31302
|
+
isRequired: false,
|
|
31303
|
+
transformFunction: null
|
|
31304
|
+
},
|
|
31305
|
+
animationDuration: {
|
|
31306
|
+
classPropertyName: "animationDuration",
|
|
31307
|
+
publicName: "animationDuration",
|
|
31308
|
+
isSignal: true,
|
|
31309
|
+
isRequired: false,
|
|
31310
|
+
transformFunction: null
|
|
31311
|
+
},
|
|
31312
|
+
formatX: {
|
|
31313
|
+
classPropertyName: "formatX",
|
|
31314
|
+
publicName: "formatX",
|
|
31315
|
+
isSignal: true,
|
|
31316
|
+
isRequired: false,
|
|
31317
|
+
transformFunction: null
|
|
31318
|
+
},
|
|
31319
|
+
formatY: {
|
|
31320
|
+
classPropertyName: "formatY",
|
|
31321
|
+
publicName: "formatY",
|
|
31322
|
+
isSignal: true,
|
|
31323
|
+
isRequired: false,
|
|
31324
|
+
transformFunction: null
|
|
31325
|
+
},
|
|
31326
|
+
formatSize: {
|
|
31327
|
+
classPropertyName: "formatSize",
|
|
31328
|
+
publicName: "formatSize",
|
|
31329
|
+
isSignal: true,
|
|
31330
|
+
isRequired: false,
|
|
31331
|
+
transformFunction: null
|
|
31332
|
+
},
|
|
31333
|
+
ariaLabel: {
|
|
31334
|
+
classPropertyName: "ariaLabel",
|
|
31335
|
+
publicName: "aria-label",
|
|
31336
|
+
isSignal: true,
|
|
31337
|
+
isRequired: false,
|
|
31338
|
+
transformFunction: null
|
|
31339
|
+
}
|
|
31340
|
+
},
|
|
31341
|
+
outputs: {
|
|
31342
|
+
pointClick: "pointClick",
|
|
31343
|
+
activePointChange: "activePointChange"
|
|
31344
|
+
},
|
|
31345
|
+
ngImport: i0,
|
|
31346
|
+
template: "<div\n class=\"ea-scatter-chart\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\">\n @if (hasData()) {\n <div\n class=\"ea-scatter-chart__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-scatter-chart__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n <rect\n class=\"ea-scatter-chart__hit\"\n [attr.x]=\"layout().left\"\n [attr.y]=\"layout().top\"\n [attr.width]=\"layout().plotWidth\"\n [attr.height]=\"layout().plotHeight\" />\n @for (tick of layout().yTicks; track tick.value) {\n @if (showGrid()) {\n <line\n class=\"ea-scatter-chart__grid\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"tick.pos\"\n [attr.y2]=\"tick.pos\" />\n }\n <text\n class=\"ea-scatter-chart__axis\"\n text-anchor=\"end\"\n dominant-baseline=\"middle\"\n [attr.x]=\"layout().left - layout().axisPx / 2\"\n [attr.y]=\"tick.pos\">\n {{ tick.text }}\n </text>\n }\n @for (tick of layout().xTicks; track tick.value) {\n @if (showGrid()) {\n <line\n class=\"ea-scatter-chart__grid\"\n [attr.x1]=\"tick.pos\"\n [attr.x2]=\"tick.pos\"\n [attr.y1]=\"layout().top\"\n [attr.y2]=\"layout().axisY\" />\n }\n <line\n class=\"ea-scatter-chart__x-tick\"\n [attr.x1]=\"tick.pos\"\n [attr.x2]=\"tick.pos\"\n [attr.y1]=\"layout().axisY\"\n [attr.y2]=\"layout().tickEndY\" />\n <text\n class=\"ea-scatter-chart__axis\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.pos\"\n [attr.y]=\"layout().labelY\">\n {{ tick.text }}\n </text>\n }\n <line\n class=\"ea-scatter-chart__baseline\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"layout().axisY\"\n [attr.y2]=\"layout().axisY\" />\n @if (xTitle()) {\n <text\n class=\"ea-scatter-chart__title\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().xTitle.x\"\n [attr.y]=\"layout().xTitle.y\">\n {{ xTitle() }}\n </text>\n }\n @if (yTitle()) {\n <text\n class=\"ea-scatter-chart__title\"\n text-anchor=\"middle\"\n dominant-baseline=\"central\"\n [attr.transform]=\"\n 'rotate(-90 ' + layout().yTitle.x + ' ' + layout().yTitle.y + ')'\n \"\n [attr.x]=\"layout().yTitle.x\"\n [attr.y]=\"layout().yTitle.y\">\n {{ yTitle() }}\n </text>\n }\n @for (line of layout().referenceLines; track line.key) {\n <g\n class=\"ea-scatter-chart__reference\"\n [style.--ea-chart-reference-color]=\"line.color\">\n <line\n class=\"ea-scatter-chart__reference-line\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"line.pos\"\n [attr.y2]=\"line.pos\" />\n @if (line.label) {\n <text\n class=\"ea-scatter-chart__reference-label\"\n text-anchor=\"end\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </text>\n }\n </g>\n }\n @for (line of layout().xReferenceLines; track line.key) {\n <g\n class=\"ea-scatter-chart__reference\"\n [style.--ea-chart-reference-color]=\"line.color\">\n <line\n class=\"ea-scatter-chart__reference-line\"\n [attr.x1]=\"line.pos\"\n [attr.x2]=\"line.pos\"\n [attr.y1]=\"layout().top\"\n [attr.y2]=\"layout().axisY\" />\n @if (line.label) {\n <text\n class=\"ea-scatter-chart__reference-label\"\n [attr.text-anchor]=\"line.anchor\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </text>\n }\n </g>\n }\n @if (tooltip(); as tip) {\n <line\n class=\"ea-scatter-chart__guide\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"tip.x - tip.r\"\n [attr.y1]=\"tip.y\"\n [attr.y2]=\"tip.y\" />\n <line\n class=\"ea-scatter-chart__guide\"\n [attr.x1]=\"tip.x\"\n [attr.x2]=\"tip.x\"\n [attr.y1]=\"tip.y + tip.r\"\n [attr.y2]=\"layout().axisY\" />\n }\n @for (s of layout().series; track $index; let i = $index) {\n <g\n class=\"ea-scatter-chart__series\"\n [class.ea-scatter-chart__series--dimmed]=\"isDimmed(i)\"\n [class.ea-scatter-chart__series--bubbles]=\"bubbles()\"\n [style.--ea-chart-color]=\"s.color\">\n @for (point of s.points; track point.key) {\n <circle\n class=\"ea-scatter-chart__point\"\n [class.ea-scatter-chart__point--active]=\"isActive(point)\"\n [style.--ea-chart-delay]=\"point.delay + 'ms'\"\n [attr.cx]=\"point.cx\"\n [attr.cy]=\"point.cy\"\n [attr.r]=\"point.r\" />\n }\n </g>\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-scatter-chart__anchor\"\n [attr.width]=\"tip.r * 2\"\n [attr.height]=\"tip.r * 2\"\n [attr.x]=\"tip.x - tip.r\"\n [attr.y]=\"tip.y - tip.r\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-scatter-chart__tooltip\">\n <span class=\"ea-scatter-chart__tooltip-title\">\n @if (tip.color) {\n <span\n class=\"ea-scatter-chart__swatch\"\n [style.--ea-chart-color]=\"tip.color\">\n </span>\n }\n {{ tip.title }}\n </span>\n @for (row of tip.rows; track $index) {\n <span class=\"ea-scatter-chart__tooltip-row\">\n @if (row.color) {\n <span\n class=\"ea-scatter-chart__swatch\"\n [style.--ea-chart-color]=\"row.color\">\n </span>\n }\n <span class=\"ea-scatter-chart__tooltip-name\">{{ row.name }}</span>\n @if (row.value) {\n <span class=\"ea-scatter-chart__tooltip-value\">{{ row.value }}</span>\n }\n </span>\n }\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-scatter-chart__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n @for (column of tableColumns(); track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n @if (references().length || xReferences().length) {\n <ul>\n @for (line of xReferences(); track $index) {\n <li>{{ referenceText(line, 'x') }}</li>\n }\n @for (line of references(); track $index) {\n <li>{{ referenceText(line, 'y') }}</li>\n }\n </ul>\n }\n </div>\n </div>\n <div\n class=\"ea-scatter-chart__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-scatter-chart__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n @if (showsLegend()) {\n <ul\n class=\"ea-scatter-chart__legend\"\n aria-hidden=\"true\">\n @for (s of series(); track $index; let i = $index) {\n <li class=\"ea-scatter-chart__legend-item\">\n <span\n class=\"ea-scatter-chart__legend-dot\"\n [style.--ea-chart-color]=\"seriesColor(i)\">\n </span>\n {{ s.name }}\n </li>\n }\n </ul>\n }\n</div>\n",
|
|
31347
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-scatter-chart{display:block}.ea-scatter-chart{position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-scatter-chart--2xs{font-size:var(--font-size-2xs)}.ea-scatter-chart--xs{font-size:var(--font-size-xs)}.ea-scatter-chart--sm{font-size:var(--font-size-sm)}.ea-scatter-chart--md{font-size:var(--font-size-md)}.ea-scatter-chart--lg{font-size:var(--font-size-lg)}.ea-scatter-chart--xl{font-size:var(--font-size-xl)}.ea-scatter-chart__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-scatter-chart__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-scatter-chart__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-scatter-chart__plot svg{display:block;overflow:visible}.ea-scatter-chart__svg{direction:ltr;touch-action:pan-y}.ea-scatter-chart__hit{fill:transparent}.ea-scatter-chart__grid{stroke:var(--color-divider);stroke-width:1px;shape-rendering:crispEdges}.ea-scatter-chart__baseline,.ea-scatter-chart__x-tick{stroke:var(--color-border-strong);stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__axis{font-size:.75em;fill:var(--color-text-secondary)}.ea-scatter-chart__title{font-size:.75em;fill:var(--color-text-secondary);font-weight:var(--font-weight-medium)}.ea-scatter-chart__reference-line{stroke:var(--ea-chart-reference-color, var(--color-text-secondary));stroke-width:1px;stroke-dasharray:4 3;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__reference-label{font-size:.75em;fill:var(--color-text-secondary);font-weight:var(--font-weight-medium);stroke:var(--ea-chart-surface, var(--color-bg-base));stroke-width:3px;stroke-linejoin:round;fill:var(--ea-chart-reference-color, var(--color-text-secondary));pointer-events:none;paint-order:stroke}.ea-scatter-chart__guide{stroke:var(--color-border-strong);stroke-width:1px;stroke-dasharray:2 3;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__series{pointer-events:none;transition:opacity var(--duration-fast) var(--ease-out)}.ea-scatter-chart__series--dimmed{opacity:.35}.ea-scatter-chart__point{stroke:var(--ea-chart-surface, var(--color-bg-base));stroke-width:1.5px;fill:var(--ea-chart-color);transform-box:fill-box;transform-origin:center}.ea-scatter-chart__point--active{stroke:var(--color-text-primary);stroke-width:2px}.ea-scatter-chart__series--bubbles .ea-scatter-chart__point{stroke:var(--ea-chart-color);stroke-width:1px;fill-opacity:.55}.ea-scatter-chart__series--bubbles .ea-scatter-chart__point--active{stroke:var(--color-text-primary);stroke-width:2px;fill-opacity:.8}.ea-scatter-chart__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-scatter-chart__anchor{fill:transparent}.ea-scatter-chart__tooltip-title{font-weight:var(--font-weight-medium);display:flex;align-items:center;gap:.5em}.ea-scatter-chart__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-scatter-chart__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-scatter-chart__swatch{flex-shrink:0;width:.75em;height:.75em;border-radius:var(--radius-sm);background-color:var(--ea-chart-color);border-radius:var(--radius-full)}.ea-scatter-chart__legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.375em 1em;padding:0;margin:0;font-size:.875em;list-style:none;color:var(--color-text-secondary)}.ea-scatter-chart__legend-item{display:flex;align-items:center;gap:.375em}.ea-scatter-chart__legend-dot{flex-shrink:0;width:.75em;height:.75em;border-radius:var(--radius-sm);background-color:var(--ea-chart-color);border-radius:var(--radius-full)}.ea-scatter-chart__table,.ea-scatter-chart__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-scatter-chart__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-scatter-chart--animate-pop .ea-scatter-chart__point{animation-name:ea-chart-grow;animation-delay:var(--ea-chart-delay, 0ms);animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-scatter-chart--animate-pop .ea-scatter-chart__point{animation:none}}.ea-scatter-chart--animate-fade .ea-scatter-chart__point{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-scatter-chart--animate-fade .ea-scatter-chart__point{animation:none}}\n"],
|
|
31348
|
+
dependencies: [{
|
|
31349
|
+
kind: "directive",
|
|
31350
|
+
type: TooltipDirective,
|
|
31351
|
+
selector: "[eaTooltip]",
|
|
31352
|
+
inputs: [
|
|
31353
|
+
"eaTooltip",
|
|
31354
|
+
"tooltipPosition",
|
|
31355
|
+
"flip",
|
|
31356
|
+
"whenClipped",
|
|
31357
|
+
"maxWidth",
|
|
31358
|
+
"showDelay",
|
|
31359
|
+
"dismissDelay",
|
|
31360
|
+
"tooltipOpen"
|
|
31361
|
+
]
|
|
31362
|
+
}],
|
|
31363
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
31364
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
31365
|
+
});
|
|
31366
|
+
};
|
|
31367
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
31368
|
+
minVersion: "12.0.0",
|
|
31369
|
+
version: "22.3.0",
|
|
31370
|
+
ngImport: i0,
|
|
31371
|
+
type: ScatterChartComponent,
|
|
31372
|
+
decorators: [{
|
|
31373
|
+
type: Component,
|
|
31374
|
+
args: [{
|
|
31375
|
+
selector: "ea-scatter-chart",
|
|
31376
|
+
imports: [TooltipDirective],
|
|
31377
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31378
|
+
encapsulation: ViewEncapsulation.None,
|
|
31379
|
+
template: "<div\n class=\"ea-scatter-chart\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\">\n @if (hasData()) {\n <div\n class=\"ea-scatter-chart__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-scatter-chart__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n <rect\n class=\"ea-scatter-chart__hit\"\n [attr.x]=\"layout().left\"\n [attr.y]=\"layout().top\"\n [attr.width]=\"layout().plotWidth\"\n [attr.height]=\"layout().plotHeight\" />\n @for (tick of layout().yTicks; track tick.value) {\n @if (showGrid()) {\n <line\n class=\"ea-scatter-chart__grid\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"tick.pos\"\n [attr.y2]=\"tick.pos\" />\n }\n <text\n class=\"ea-scatter-chart__axis\"\n text-anchor=\"end\"\n dominant-baseline=\"middle\"\n [attr.x]=\"layout().left - layout().axisPx / 2\"\n [attr.y]=\"tick.pos\">\n {{ tick.text }}\n </text>\n }\n @for (tick of layout().xTicks; track tick.value) {\n @if (showGrid()) {\n <line\n class=\"ea-scatter-chart__grid\"\n [attr.x1]=\"tick.pos\"\n [attr.x2]=\"tick.pos\"\n [attr.y1]=\"layout().top\"\n [attr.y2]=\"layout().axisY\" />\n }\n <line\n class=\"ea-scatter-chart__x-tick\"\n [attr.x1]=\"tick.pos\"\n [attr.x2]=\"tick.pos\"\n [attr.y1]=\"layout().axisY\"\n [attr.y2]=\"layout().tickEndY\" />\n <text\n class=\"ea-scatter-chart__axis\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.pos\"\n [attr.y]=\"layout().labelY\">\n {{ tick.text }}\n </text>\n }\n <line\n class=\"ea-scatter-chart__baseline\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"layout().axisY\"\n [attr.y2]=\"layout().axisY\" />\n @if (xTitle()) {\n <text\n class=\"ea-scatter-chart__title\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().xTitle.x\"\n [attr.y]=\"layout().xTitle.y\">\n {{ xTitle() }}\n </text>\n }\n @if (yTitle()) {\n <text\n class=\"ea-scatter-chart__title\"\n text-anchor=\"middle\"\n dominant-baseline=\"central\"\n [attr.transform]=\"\n 'rotate(-90 ' + layout().yTitle.x + ' ' + layout().yTitle.y + ')'\n \"\n [attr.x]=\"layout().yTitle.x\"\n [attr.y]=\"layout().yTitle.y\">\n {{ yTitle() }}\n </text>\n }\n @for (line of layout().referenceLines; track line.key) {\n <g\n class=\"ea-scatter-chart__reference\"\n [style.--ea-chart-reference-color]=\"line.color\">\n <line\n class=\"ea-scatter-chart__reference-line\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"layout().left + layout().plotWidth\"\n [attr.y1]=\"line.pos\"\n [attr.y2]=\"line.pos\" />\n @if (line.label) {\n <text\n class=\"ea-scatter-chart__reference-label\"\n text-anchor=\"end\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </text>\n }\n </g>\n }\n @for (line of layout().xReferenceLines; track line.key) {\n <g\n class=\"ea-scatter-chart__reference\"\n [style.--ea-chart-reference-color]=\"line.color\">\n <line\n class=\"ea-scatter-chart__reference-line\"\n [attr.x1]=\"line.pos\"\n [attr.x2]=\"line.pos\"\n [attr.y1]=\"layout().top\"\n [attr.y2]=\"layout().axisY\" />\n @if (line.label) {\n <text\n class=\"ea-scatter-chart__reference-label\"\n [attr.text-anchor]=\"line.anchor\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </text>\n }\n </g>\n }\n @if (tooltip(); as tip) {\n <line\n class=\"ea-scatter-chart__guide\"\n [attr.x1]=\"layout().left\"\n [attr.x2]=\"tip.x - tip.r\"\n [attr.y1]=\"tip.y\"\n [attr.y2]=\"tip.y\" />\n <line\n class=\"ea-scatter-chart__guide\"\n [attr.x1]=\"tip.x\"\n [attr.x2]=\"tip.x\"\n [attr.y1]=\"tip.y + tip.r\"\n [attr.y2]=\"layout().axisY\" />\n }\n @for (s of layout().series; track $index; let i = $index) {\n <g\n class=\"ea-scatter-chart__series\"\n [class.ea-scatter-chart__series--dimmed]=\"isDimmed(i)\"\n [class.ea-scatter-chart__series--bubbles]=\"bubbles()\"\n [style.--ea-chart-color]=\"s.color\">\n @for (point of s.points; track point.key) {\n <circle\n class=\"ea-scatter-chart__point\"\n [class.ea-scatter-chart__point--active]=\"isActive(point)\"\n [style.--ea-chart-delay]=\"point.delay + 'ms'\"\n [attr.cx]=\"point.cx\"\n [attr.cy]=\"point.cy\"\n [attr.r]=\"point.r\" />\n }\n </g>\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-scatter-chart__anchor\"\n [attr.width]=\"tip.r * 2\"\n [attr.height]=\"tip.r * 2\"\n [attr.x]=\"tip.x - tip.r\"\n [attr.y]=\"tip.y - tip.r\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-scatter-chart__tooltip\">\n <span class=\"ea-scatter-chart__tooltip-title\">\n @if (tip.color) {\n <span\n class=\"ea-scatter-chart__swatch\"\n [style.--ea-chart-color]=\"tip.color\">\n </span>\n }\n {{ tip.title }}\n </span>\n @for (row of tip.rows; track $index) {\n <span class=\"ea-scatter-chart__tooltip-row\">\n @if (row.color) {\n <span\n class=\"ea-scatter-chart__swatch\"\n [style.--ea-chart-color]=\"row.color\">\n </span>\n }\n <span class=\"ea-scatter-chart__tooltip-name\">{{ row.name }}</span>\n @if (row.value) {\n <span class=\"ea-scatter-chart__tooltip-value\">{{ row.value }}</span>\n }\n </span>\n }\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-scatter-chart__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n @for (column of tableColumns(); track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n @if (references().length || xReferences().length) {\n <ul>\n @for (line of xReferences(); track $index) {\n <li>{{ referenceText(line, 'x') }}</li>\n }\n @for (line of references(); track $index) {\n <li>{{ referenceText(line, 'y') }}</li>\n }\n </ul>\n }\n </div>\n </div>\n <div\n class=\"ea-scatter-chart__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-scatter-chart__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n @if (showsLegend()) {\n <ul\n class=\"ea-scatter-chart__legend\"\n aria-hidden=\"true\">\n @for (s of series(); track $index; let i = $index) {\n <li class=\"ea-scatter-chart__legend-item\">\n <span\n class=\"ea-scatter-chart__legend-dot\"\n [style.--ea-chart-color]=\"seriesColor(i)\">\n </span>\n {{ s.name }}\n </li>\n }\n </ul>\n }\n</div>\n",
|
|
31380
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-scatter-chart{display:block}.ea-scatter-chart{position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-scatter-chart--2xs{font-size:var(--font-size-2xs)}.ea-scatter-chart--xs{font-size:var(--font-size-xs)}.ea-scatter-chart--sm{font-size:var(--font-size-sm)}.ea-scatter-chart--md{font-size:var(--font-size-md)}.ea-scatter-chart--lg{font-size:var(--font-size-lg)}.ea-scatter-chart--xl{font-size:var(--font-size-xl)}.ea-scatter-chart__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-scatter-chart__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-scatter-chart__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-scatter-chart__plot svg{display:block;overflow:visible}.ea-scatter-chart__svg{direction:ltr;touch-action:pan-y}.ea-scatter-chart__hit{fill:transparent}.ea-scatter-chart__grid{stroke:var(--color-divider);stroke-width:1px;shape-rendering:crispEdges}.ea-scatter-chart__baseline,.ea-scatter-chart__x-tick{stroke:var(--color-border-strong);stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__axis{font-size:.75em;fill:var(--color-text-secondary)}.ea-scatter-chart__title{font-size:.75em;fill:var(--color-text-secondary);font-weight:var(--font-weight-medium)}.ea-scatter-chart__reference-line{stroke:var(--ea-chart-reference-color, var(--color-text-secondary));stroke-width:1px;stroke-dasharray:4 3;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__reference-label{font-size:.75em;fill:var(--color-text-secondary);font-weight:var(--font-weight-medium);stroke:var(--ea-chart-surface, var(--color-bg-base));stroke-width:3px;stroke-linejoin:round;fill:var(--ea-chart-reference-color, var(--color-text-secondary));pointer-events:none;paint-order:stroke}.ea-scatter-chart__guide{stroke:var(--color-border-strong);stroke-width:1px;stroke-dasharray:2 3;shape-rendering:crispEdges;pointer-events:none}.ea-scatter-chart__series{pointer-events:none;transition:opacity var(--duration-fast) var(--ease-out)}.ea-scatter-chart__series--dimmed{opacity:.35}.ea-scatter-chart__point{stroke:var(--ea-chart-surface, var(--color-bg-base));stroke-width:1.5px;fill:var(--ea-chart-color);transform-box:fill-box;transform-origin:center}.ea-scatter-chart__point--active{stroke:var(--color-text-primary);stroke-width:2px}.ea-scatter-chart__series--bubbles .ea-scatter-chart__point{stroke:var(--ea-chart-color);stroke-width:1px;fill-opacity:.55}.ea-scatter-chart__series--bubbles .ea-scatter-chart__point--active{stroke:var(--color-text-primary);stroke-width:2px;fill-opacity:.8}.ea-scatter-chart__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-scatter-chart__anchor{fill:transparent}.ea-scatter-chart__tooltip-title{font-weight:var(--font-weight-medium);display:flex;align-items:center;gap:.5em}.ea-scatter-chart__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-scatter-chart__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-scatter-chart__swatch{flex-shrink:0;width:.75em;height:.75em;border-radius:var(--radius-sm);background-color:var(--ea-chart-color);border-radius:var(--radius-full)}.ea-scatter-chart__legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.375em 1em;padding:0;margin:0;font-size:.875em;list-style:none;color:var(--color-text-secondary)}.ea-scatter-chart__legend-item{display:flex;align-items:center;gap:.375em}.ea-scatter-chart__legend-dot{flex-shrink:0;width:.75em;height:.75em;border-radius:var(--radius-sm);background-color:var(--ea-chart-color);border-radius:var(--radius-full)}.ea-scatter-chart__table,.ea-scatter-chart__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-scatter-chart__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-scatter-chart--animate-pop .ea-scatter-chart__point{animation-name:ea-chart-grow;animation-delay:var(--ea-chart-delay, 0ms);animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-scatter-chart--animate-pop .ea-scatter-chart__point{animation:none}}.ea-scatter-chart--animate-fade .ea-scatter-chart__point{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-scatter-chart--animate-fade .ea-scatter-chart__point{animation:none}}\n"]
|
|
31381
|
+
}]
|
|
31382
|
+
}],
|
|
31383
|
+
propDecorators: {
|
|
31384
|
+
series: [{
|
|
31385
|
+
type: i0.Input,
|
|
31386
|
+
args: [{
|
|
31387
|
+
isSignal: true,
|
|
31388
|
+
alias: "series",
|
|
31389
|
+
required: false
|
|
31390
|
+
}]
|
|
31391
|
+
}],
|
|
31392
|
+
xTitle: [{
|
|
31393
|
+
type: i0.Input,
|
|
31394
|
+
args: [{
|
|
31395
|
+
isSignal: true,
|
|
31396
|
+
alias: "xTitle",
|
|
31397
|
+
required: false
|
|
31398
|
+
}]
|
|
31399
|
+
}],
|
|
31400
|
+
yTitle: [{
|
|
31401
|
+
type: i0.Input,
|
|
31402
|
+
args: [{
|
|
31403
|
+
isSignal: true,
|
|
31404
|
+
alias: "yTitle",
|
|
31405
|
+
required: false
|
|
31406
|
+
}]
|
|
31407
|
+
}],
|
|
31408
|
+
sizeTitle: [{
|
|
31409
|
+
type: i0.Input,
|
|
31410
|
+
args: [{
|
|
31411
|
+
isSignal: true,
|
|
31412
|
+
alias: "sizeTitle",
|
|
31413
|
+
required: false
|
|
31414
|
+
}]
|
|
31415
|
+
}],
|
|
31416
|
+
maxBubbleRadius: [{
|
|
31417
|
+
type: i0.Input,
|
|
31418
|
+
args: [{
|
|
31419
|
+
isSignal: true,
|
|
31420
|
+
alias: "maxBubbleRadius",
|
|
31421
|
+
required: false
|
|
31422
|
+
}]
|
|
31423
|
+
}],
|
|
31424
|
+
showGrid: [{
|
|
31425
|
+
type: i0.Input,
|
|
31426
|
+
args: [{
|
|
31427
|
+
isSignal: true,
|
|
31428
|
+
alias: "showGrid",
|
|
31429
|
+
required: false
|
|
31430
|
+
}]
|
|
31431
|
+
}],
|
|
31432
|
+
showLegend: [{
|
|
31433
|
+
type: i0.Input,
|
|
31434
|
+
args: [{
|
|
31435
|
+
isSignal: true,
|
|
31436
|
+
alias: "showLegend",
|
|
31437
|
+
required: false
|
|
31438
|
+
}]
|
|
31439
|
+
}],
|
|
31440
|
+
referenceLines: [{
|
|
31441
|
+
type: i0.Input,
|
|
31442
|
+
args: [{
|
|
31443
|
+
isSignal: true,
|
|
31444
|
+
alias: "referenceLines",
|
|
31445
|
+
required: false
|
|
31446
|
+
}]
|
|
31447
|
+
}],
|
|
31448
|
+
xReferenceLines: [{
|
|
31449
|
+
type: i0.Input,
|
|
31450
|
+
args: [{
|
|
31451
|
+
isSignal: true,
|
|
31452
|
+
alias: "xReferenceLines",
|
|
31453
|
+
required: false
|
|
31454
|
+
}]
|
|
31455
|
+
}],
|
|
31456
|
+
height: [{
|
|
31457
|
+
type: i0.Input,
|
|
31458
|
+
args: [{
|
|
31459
|
+
isSignal: true,
|
|
31460
|
+
alias: "height",
|
|
31461
|
+
required: false
|
|
31462
|
+
}]
|
|
31463
|
+
}],
|
|
31464
|
+
size: [{
|
|
31465
|
+
type: i0.Input,
|
|
31466
|
+
args: [{
|
|
31467
|
+
isSignal: true,
|
|
31468
|
+
alias: "size",
|
|
31469
|
+
required: false
|
|
31470
|
+
}]
|
|
31471
|
+
}],
|
|
31472
|
+
animation: [{
|
|
31473
|
+
type: i0.Input,
|
|
31474
|
+
args: [{
|
|
31475
|
+
isSignal: true,
|
|
31476
|
+
alias: "animation",
|
|
31477
|
+
required: false
|
|
31478
|
+
}]
|
|
31479
|
+
}],
|
|
31480
|
+
animationDuration: [{
|
|
31481
|
+
type: i0.Input,
|
|
31482
|
+
args: [{
|
|
31483
|
+
isSignal: true,
|
|
31484
|
+
alias: "animationDuration",
|
|
31485
|
+
required: false
|
|
31486
|
+
}]
|
|
31487
|
+
}],
|
|
31488
|
+
formatX: [{
|
|
31489
|
+
type: i0.Input,
|
|
31490
|
+
args: [{
|
|
31491
|
+
isSignal: true,
|
|
31492
|
+
alias: "formatX",
|
|
31493
|
+
required: false
|
|
31494
|
+
}]
|
|
31495
|
+
}],
|
|
31496
|
+
formatY: [{
|
|
31497
|
+
type: i0.Input,
|
|
31498
|
+
args: [{
|
|
31499
|
+
isSignal: true,
|
|
31500
|
+
alias: "formatY",
|
|
31501
|
+
required: false
|
|
31502
|
+
}]
|
|
31503
|
+
}],
|
|
31504
|
+
formatSize: [{
|
|
31505
|
+
type: i0.Input,
|
|
31506
|
+
args: [{
|
|
31507
|
+
isSignal: true,
|
|
31508
|
+
alias: "formatSize",
|
|
31509
|
+
required: false
|
|
31510
|
+
}]
|
|
31511
|
+
}],
|
|
31512
|
+
ariaLabel: [{
|
|
31513
|
+
type: i0.Input,
|
|
31514
|
+
args: [{
|
|
31515
|
+
isSignal: true,
|
|
31516
|
+
alias: "aria-label",
|
|
31517
|
+
required: false
|
|
31518
|
+
}]
|
|
31519
|
+
}],
|
|
31520
|
+
pointClick: [{
|
|
31521
|
+
type: i0.Output,
|
|
31522
|
+
args: ["pointClick"]
|
|
31523
|
+
}],
|
|
31524
|
+
activePointChange: [{
|
|
31525
|
+
type: i0.Output,
|
|
31526
|
+
args: ["activePointChange"]
|
|
31527
|
+
}]
|
|
31528
|
+
}
|
|
31529
|
+
});
|
|
29986
31530
|
var SegmentedComponent = class SegmentedComponent extends LabelledFieldControlBase {
|
|
29987
31531
|
buttonEls = viewChildren("optionEl", ...ngDevMode ? [{ debugName: "buttonEls" }] : /* istanbul ignore next */ []);
|
|
29988
31532
|
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
@@ -36049,6 +37593,572 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
36049
37593
|
}]
|
|
36050
37594
|
}
|
|
36051
37595
|
});
|
|
37596
|
+
function worstRatio(sum, largest, smallest, side) {
|
|
37597
|
+
const sideSquared = side * side;
|
|
37598
|
+
const sumSquared = sum * sum;
|
|
37599
|
+
return Math.max(sideSquared * largest / sumSquared, sumSquared / (sideSquared * smallest));
|
|
37600
|
+
}
|
|
37601
|
+
function squarify(areas, box) {
|
|
37602
|
+
const boxes = [];
|
|
37603
|
+
let { x, y, width, height } = box;
|
|
37604
|
+
let start = 0;
|
|
37605
|
+
while (start < areas.length) {
|
|
37606
|
+
const side = Math.min(width, height);
|
|
37607
|
+
let end = start + 1;
|
|
37608
|
+
let sum = areas[start];
|
|
37609
|
+
while (end < areas.length && worstRatio(sum + areas[end], areas[start], areas[end], side) <= worstRatio(sum, areas[start], areas[end - 1], side)) {
|
|
37610
|
+
sum += areas[end];
|
|
37611
|
+
end++;
|
|
37612
|
+
}
|
|
37613
|
+
if (width >= height) {
|
|
37614
|
+
const rowWidth = height > 0 ? sum / height : 0;
|
|
37615
|
+
let top = y;
|
|
37616
|
+
for (let i = start; i < end; i++) {
|
|
37617
|
+
const tileHeight = rowWidth > 0 ? areas[i] / rowWidth : 0;
|
|
37618
|
+
boxes.push({
|
|
37619
|
+
x,
|
|
37620
|
+
y: top,
|
|
37621
|
+
width: rowWidth,
|
|
37622
|
+
height: tileHeight
|
|
37623
|
+
});
|
|
37624
|
+
top += tileHeight;
|
|
37625
|
+
}
|
|
37626
|
+
x += rowWidth;
|
|
37627
|
+
width = Math.max(0, width - rowWidth);
|
|
37628
|
+
} else {
|
|
37629
|
+
const rowHeight = width > 0 ? sum / width : 0;
|
|
37630
|
+
let left = x;
|
|
37631
|
+
for (let i = start; i < end; i++) {
|
|
37632
|
+
const tileWidth = rowHeight > 0 ? areas[i] / rowHeight : 0;
|
|
37633
|
+
boxes.push({
|
|
37634
|
+
x: left,
|
|
37635
|
+
y,
|
|
37636
|
+
width: tileWidth,
|
|
37637
|
+
height: rowHeight
|
|
37638
|
+
});
|
|
37639
|
+
left += tileWidth;
|
|
37640
|
+
}
|
|
37641
|
+
y += rowHeight;
|
|
37642
|
+
height = Math.max(0, height - rowHeight);
|
|
37643
|
+
}
|
|
37644
|
+
start = end;
|
|
37645
|
+
}
|
|
37646
|
+
return boxes;
|
|
37647
|
+
}
|
|
37648
|
+
var TreemapComponent = class TreemapComponent {
|
|
37649
|
+
i18n = inject(EagamiI18nService);
|
|
37650
|
+
data = input([], ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
37651
|
+
color = input(void 0, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
37652
|
+
colorByChange = input(false, ...ngDevMode ? [{ debugName: "colorByChange" }] : /* istanbul ignore next */ []);
|
|
37653
|
+
changeRange = input(void 0, ...ngDevMode ? [{ debugName: "changeRange" }] : /* istanbul ignore next */ []);
|
|
37654
|
+
risingColor = input(void 0, ...ngDevMode ? [{ debugName: "risingColor" }] : /* istanbul ignore next */ []);
|
|
37655
|
+
fallingColor = input(void 0, ...ngDevMode ? [{ debugName: "fallingColor" }] : /* istanbul ignore next */ []);
|
|
37656
|
+
showValues = input(true, ...ngDevMode ? [{ debugName: "showValues" }] : /* istanbul ignore next */ []);
|
|
37657
|
+
height = input(240, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
37658
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
37659
|
+
animation = input("grow", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
|
|
37660
|
+
animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
|
|
37661
|
+
formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
|
|
37662
|
+
formatChange = input(null, ...ngDevMode ? [{ debugName: "formatChange" }] : /* istanbul ignore next */ []);
|
|
37663
|
+
ariaLabel = input(void 0, {
|
|
37664
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
37665
|
+
alias: "aria-label"
|
|
37666
|
+
});
|
|
37667
|
+
tileClick = output();
|
|
37668
|
+
activeTileChange = output();
|
|
37669
|
+
viewport = injectChartViewport(this.size);
|
|
37670
|
+
format = injectChartFormatter(this.formatValue);
|
|
37671
|
+
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
37672
|
+
label = computed(() => this.ariaLabel() || this.i18n.messages().chart.treemap, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
37673
|
+
order = computed(() => this.data().map((item, index) => ({
|
|
37674
|
+
index,
|
|
37675
|
+
value: item.value
|
|
37676
|
+
})).filter(({ value }) => isFinite(value) && value > 0).sort((a, b) => b.value - a.value || a.index - b.index).map(({ index }) => index), ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
|
|
37677
|
+
hasData = computed(() => this.order().length > 0, ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
|
|
37678
|
+
total = computed(() => this.order().reduce((sum, index) => sum + this.data()[index].value, 0), ...ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []);
|
|
37679
|
+
hasChanges = computed(() => this.data().some((item) => this.changeOf(item) !== null), ...ngDevMode ? [{ debugName: "hasChanges" }] : /* istanbul ignore next */ []);
|
|
37680
|
+
renderPass = computed(() => {
|
|
37681
|
+
this.data();
|
|
37682
|
+
this.animation();
|
|
37683
|
+
this.animationDuration();
|
|
37684
|
+
return [{}];
|
|
37685
|
+
}, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
|
|
37686
|
+
hostClasses = computed(() => ({
|
|
37687
|
+
[`ea-treemap--${this.size()}`]: true,
|
|
37688
|
+
[`ea-treemap--animate-${this.animation()}`]: true,
|
|
37689
|
+
"ea-treemap--by-change": this.colorByChange()
|
|
37690
|
+
}), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
37691
|
+
layout = computed(() => {
|
|
37692
|
+
const data = this.data();
|
|
37693
|
+
const order = this.order();
|
|
37694
|
+
const width = this.viewport.width();
|
|
37695
|
+
const height = this.height();
|
|
37696
|
+
const fontPx = this.viewport.fontSize();
|
|
37697
|
+
const labelPx = fontPx * .875;
|
|
37698
|
+
const detailPx = fontPx * .75;
|
|
37699
|
+
const pad = fontPx * .5;
|
|
37700
|
+
const total = this.total();
|
|
37701
|
+
const byChange = this.colorByChange();
|
|
37702
|
+
const showValues = this.showValues();
|
|
37703
|
+
const reach = this.changeReach();
|
|
37704
|
+
const scale = total > 0 ? width * height / total : 0;
|
|
37705
|
+
return {
|
|
37706
|
+
width,
|
|
37707
|
+
height,
|
|
37708
|
+
tiles: squarify(order.map((index) => data[index].value * scale), {
|
|
37709
|
+
x: 0,
|
|
37710
|
+
y: 0,
|
|
37711
|
+
width,
|
|
37712
|
+
height
|
|
37713
|
+
}).map((box, i) => {
|
|
37714
|
+
const index = order[i];
|
|
37715
|
+
const item = data[index];
|
|
37716
|
+
const change = this.changeOf(item);
|
|
37717
|
+
const labelFits = estimateTextWidth(item.label, labelPx) + pad * 2 <= box.width && labelPx * 1.2 + pad * 2 <= box.height;
|
|
37718
|
+
const detailText = byChange ? change === null ? null : this.signedChange(change) : this.format()(item.value);
|
|
37719
|
+
const detailFits = labelFits && showValues && detailText !== null && estimateTextWidth(detailText, detailPx) + pad * 2 <= box.width && labelPx * 1.2 + detailPx * 1.3 + pad * 2 <= box.height;
|
|
37720
|
+
return {
|
|
37721
|
+
...box,
|
|
37722
|
+
index,
|
|
37723
|
+
color: byChange ? null : item.color || null,
|
|
37724
|
+
mix: byChange && change !== null && reach > 0 ? `${Math.round(clamp$1(Math.abs(change) / reach, 0, 1) * 1e3) / 10}%` : "0%",
|
|
37725
|
+
falling: change !== null && change < 0,
|
|
37726
|
+
label: labelFits ? {
|
|
37727
|
+
x: box.x + pad,
|
|
37728
|
+
y: box.y + pad + labelPx * .6,
|
|
37729
|
+
text: item.label
|
|
37730
|
+
} : null,
|
|
37731
|
+
detail: detailFits && detailText !== null ? {
|
|
37732
|
+
x: box.x + pad,
|
|
37733
|
+
y: box.y + pad + labelPx * 1.2 + detailPx * .65,
|
|
37734
|
+
text: detailText
|
|
37735
|
+
} : null
|
|
37736
|
+
};
|
|
37737
|
+
})
|
|
37738
|
+
};
|
|
37739
|
+
}, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
37740
|
+
tooltip = computed(() => {
|
|
37741
|
+
const event = this.eventFor(this.active());
|
|
37742
|
+
const tile = this.layout().tiles.find((t) => t.index === event?.index);
|
|
37743
|
+
if (!event || !tile) return null;
|
|
37744
|
+
const messages = this.i18n.messages().chart;
|
|
37745
|
+
const rows = [{
|
|
37746
|
+
name: messages.value,
|
|
37747
|
+
value: this.format()(event.value)
|
|
37748
|
+
}, {
|
|
37749
|
+
name: messages.share,
|
|
37750
|
+
value: this.formatShare(event.share)
|
|
37751
|
+
}];
|
|
37752
|
+
if (event.change !== null) rows.push({
|
|
37753
|
+
name: messages.change,
|
|
37754
|
+
value: this.signedChange(event.change)
|
|
37755
|
+
});
|
|
37756
|
+
return {
|
|
37757
|
+
x: tile.x + tile.width / 2,
|
|
37758
|
+
y: tile.y,
|
|
37759
|
+
title: event.label,
|
|
37760
|
+
rows,
|
|
37761
|
+
key: event.index
|
|
37762
|
+
};
|
|
37763
|
+
}, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
37764
|
+
tooltips = computed(() => {
|
|
37765
|
+
const tip = this.tooltip();
|
|
37766
|
+
return tip ? [tip] : [];
|
|
37767
|
+
}, ...ngDevMode ? [{ debugName: "tooltips" }] : /* istanbul ignore next */ []);
|
|
37768
|
+
announcement = computed(() => {
|
|
37769
|
+
const event = this.eventFor(this.active());
|
|
37770
|
+
if (!event) return "";
|
|
37771
|
+
const messages = this.i18n.messages().chart;
|
|
37772
|
+
const value = this.format()(event.value);
|
|
37773
|
+
const share = this.formatShare(event.share);
|
|
37774
|
+
return event.change === null ? messages.slice(event.label, value, share) : messages.tileChange(event.label, value, share, this.signedChange(event.change));
|
|
37775
|
+
}, ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
37776
|
+
isDimmed(tile) {
|
|
37777
|
+
const active = this.active();
|
|
37778
|
+
return active !== null && active !== tile.index;
|
|
37779
|
+
}
|
|
37780
|
+
tableCells(index) {
|
|
37781
|
+
const item = this.data()[index];
|
|
37782
|
+
const drawn = isFinite(item.value) && item.value > 0;
|
|
37783
|
+
const cells = [isFinite(item.value) ? this.format()(item.value) : "–", drawn ? this.formatShare(this.shareOf(item)) : "–"];
|
|
37784
|
+
if (this.hasChanges()) {
|
|
37785
|
+
const change = this.changeOf(item);
|
|
37786
|
+
cells.push(change === null ? "–" : this.signedChange(change));
|
|
37787
|
+
}
|
|
37788
|
+
return cells;
|
|
37789
|
+
}
|
|
37790
|
+
onPointerMove(event) {
|
|
37791
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
37792
|
+
const x = event.clientX - rect.left;
|
|
37793
|
+
const y = event.clientY - rect.top;
|
|
37794
|
+
const tile = this.layout().tiles.find((t) => x >= t.x && x < t.x + t.width && y >= t.y && y < t.y + t.height);
|
|
37795
|
+
this.setActive(tile ? tile.index : null);
|
|
37796
|
+
}
|
|
37797
|
+
onPointerLeave() {
|
|
37798
|
+
this.setActive(null);
|
|
37799
|
+
}
|
|
37800
|
+
onClick() {
|
|
37801
|
+
const event = this.eventFor(this.active());
|
|
37802
|
+
if (event) this.tileClick.emit(event);
|
|
37803
|
+
}
|
|
37804
|
+
onFocus() {
|
|
37805
|
+
if (this.active() === null) this.setActive(this.order()[0] ?? null);
|
|
37806
|
+
}
|
|
37807
|
+
onBlur() {
|
|
37808
|
+
this.setActive(null);
|
|
37809
|
+
}
|
|
37810
|
+
onKeydown(event) {
|
|
37811
|
+
const order = this.order();
|
|
37812
|
+
const active = this.active();
|
|
37813
|
+
if (active === null && event.key.startsWith("Arrow")) {
|
|
37814
|
+
event.preventDefault();
|
|
37815
|
+
this.setActive(order[0] ?? null);
|
|
37816
|
+
return;
|
|
37817
|
+
}
|
|
37818
|
+
if (active === null && event.key !== "Home" && event.key !== "End") return;
|
|
37819
|
+
const position = active === null ? -1 : order.indexOf(active);
|
|
37820
|
+
let next = active;
|
|
37821
|
+
switch (event.key) {
|
|
37822
|
+
case "ArrowRight":
|
|
37823
|
+
case "ArrowDown":
|
|
37824
|
+
next = order[Math.min(order.length - 1, position + 1)] ?? null;
|
|
37825
|
+
break;
|
|
37826
|
+
case "ArrowLeft":
|
|
37827
|
+
case "ArrowUp":
|
|
37828
|
+
next = order[Math.max(0, position - 1)] ?? null;
|
|
37829
|
+
break;
|
|
37830
|
+
case "Home":
|
|
37831
|
+
next = order[0] ?? null;
|
|
37832
|
+
break;
|
|
37833
|
+
case "End":
|
|
37834
|
+
next = order[order.length - 1] ?? null;
|
|
37835
|
+
break;
|
|
37836
|
+
case "Enter":
|
|
37837
|
+
case " ":
|
|
37838
|
+
this.onClick();
|
|
37839
|
+
break;
|
|
37840
|
+
case "Escape":
|
|
37841
|
+
next = null;
|
|
37842
|
+
break;
|
|
37843
|
+
default: return;
|
|
37844
|
+
}
|
|
37845
|
+
event.preventDefault();
|
|
37846
|
+
this.setActive(next);
|
|
37847
|
+
}
|
|
37848
|
+
changeOf(item) {
|
|
37849
|
+
return item.change != null && isFinite(item.change) ? item.change : null;
|
|
37850
|
+
}
|
|
37851
|
+
changeReach() {
|
|
37852
|
+
const range = this.changeRange();
|
|
37853
|
+
if (range != null && isFinite(range) && range > 0) return range;
|
|
37854
|
+
return Math.max(0, ...this.order().map((index) => Math.abs(this.changeOf(this.data()[index]) ?? 0)));
|
|
37855
|
+
}
|
|
37856
|
+
shareOf(item) {
|
|
37857
|
+
const total = this.total();
|
|
37858
|
+
return total > 0 ? item.value / total * 100 : 0;
|
|
37859
|
+
}
|
|
37860
|
+
formatShare(share) {
|
|
37861
|
+
return `${formatGroupedNumber(share, this.i18n.locale(), this.i18n.messages().numberFormat, { maximumFractionDigits: 1 })}%`;
|
|
37862
|
+
}
|
|
37863
|
+
signedChange(change) {
|
|
37864
|
+
const text = (this.formatChange() ?? this.format())(change);
|
|
37865
|
+
return change > 0 ? `+${text}` : text;
|
|
37866
|
+
}
|
|
37867
|
+
eventFor(index) {
|
|
37868
|
+
const item = index === null ? void 0 : this.data()[index];
|
|
37869
|
+
if (index === null || !item || !this.order().includes(index)) return null;
|
|
37870
|
+
return {
|
|
37871
|
+
index,
|
|
37872
|
+
label: item.label,
|
|
37873
|
+
value: item.value,
|
|
37874
|
+
share: this.shareOf(item),
|
|
37875
|
+
change: this.changeOf(item)
|
|
37876
|
+
};
|
|
37877
|
+
}
|
|
37878
|
+
setActive(next) {
|
|
37879
|
+
if (this.active() === next) return;
|
|
37880
|
+
this.active.set(next);
|
|
37881
|
+
this.activeTileChange.emit(this.eventFor(next));
|
|
37882
|
+
}
|
|
37883
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
37884
|
+
minVersion: "12.0.0",
|
|
37885
|
+
version: "22.3.0",
|
|
37886
|
+
ngImport: i0,
|
|
37887
|
+
type: TreemapComponent,
|
|
37888
|
+
deps: [],
|
|
37889
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
37890
|
+
});
|
|
37891
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
37892
|
+
minVersion: "17.0.0",
|
|
37893
|
+
version: "22.3.0",
|
|
37894
|
+
type: TreemapComponent,
|
|
37895
|
+
isStandalone: true,
|
|
37896
|
+
selector: "ea-treemap",
|
|
37897
|
+
inputs: {
|
|
37898
|
+
data: {
|
|
37899
|
+
classPropertyName: "data",
|
|
37900
|
+
publicName: "data",
|
|
37901
|
+
isSignal: true,
|
|
37902
|
+
isRequired: false,
|
|
37903
|
+
transformFunction: null
|
|
37904
|
+
},
|
|
37905
|
+
color: {
|
|
37906
|
+
classPropertyName: "color",
|
|
37907
|
+
publicName: "color",
|
|
37908
|
+
isSignal: true,
|
|
37909
|
+
isRequired: false,
|
|
37910
|
+
transformFunction: null
|
|
37911
|
+
},
|
|
37912
|
+
colorByChange: {
|
|
37913
|
+
classPropertyName: "colorByChange",
|
|
37914
|
+
publicName: "colorByChange",
|
|
37915
|
+
isSignal: true,
|
|
37916
|
+
isRequired: false,
|
|
37917
|
+
transformFunction: null
|
|
37918
|
+
},
|
|
37919
|
+
changeRange: {
|
|
37920
|
+
classPropertyName: "changeRange",
|
|
37921
|
+
publicName: "changeRange",
|
|
37922
|
+
isSignal: true,
|
|
37923
|
+
isRequired: false,
|
|
37924
|
+
transformFunction: null
|
|
37925
|
+
},
|
|
37926
|
+
risingColor: {
|
|
37927
|
+
classPropertyName: "risingColor",
|
|
37928
|
+
publicName: "risingColor",
|
|
37929
|
+
isSignal: true,
|
|
37930
|
+
isRequired: false,
|
|
37931
|
+
transformFunction: null
|
|
37932
|
+
},
|
|
37933
|
+
fallingColor: {
|
|
37934
|
+
classPropertyName: "fallingColor",
|
|
37935
|
+
publicName: "fallingColor",
|
|
37936
|
+
isSignal: true,
|
|
37937
|
+
isRequired: false,
|
|
37938
|
+
transformFunction: null
|
|
37939
|
+
},
|
|
37940
|
+
showValues: {
|
|
37941
|
+
classPropertyName: "showValues",
|
|
37942
|
+
publicName: "showValues",
|
|
37943
|
+
isSignal: true,
|
|
37944
|
+
isRequired: false,
|
|
37945
|
+
transformFunction: null
|
|
37946
|
+
},
|
|
37947
|
+
height: {
|
|
37948
|
+
classPropertyName: "height",
|
|
37949
|
+
publicName: "height",
|
|
37950
|
+
isSignal: true,
|
|
37951
|
+
isRequired: false,
|
|
37952
|
+
transformFunction: null
|
|
37953
|
+
},
|
|
37954
|
+
size: {
|
|
37955
|
+
classPropertyName: "size",
|
|
37956
|
+
publicName: "size",
|
|
37957
|
+
isSignal: true,
|
|
37958
|
+
isRequired: false,
|
|
37959
|
+
transformFunction: null
|
|
37960
|
+
},
|
|
37961
|
+
animation: {
|
|
37962
|
+
classPropertyName: "animation",
|
|
37963
|
+
publicName: "animation",
|
|
37964
|
+
isSignal: true,
|
|
37965
|
+
isRequired: false,
|
|
37966
|
+
transformFunction: null
|
|
37967
|
+
},
|
|
37968
|
+
animationDuration: {
|
|
37969
|
+
classPropertyName: "animationDuration",
|
|
37970
|
+
publicName: "animationDuration",
|
|
37971
|
+
isSignal: true,
|
|
37972
|
+
isRequired: false,
|
|
37973
|
+
transformFunction: null
|
|
37974
|
+
},
|
|
37975
|
+
formatValue: {
|
|
37976
|
+
classPropertyName: "formatValue",
|
|
37977
|
+
publicName: "formatValue",
|
|
37978
|
+
isSignal: true,
|
|
37979
|
+
isRequired: false,
|
|
37980
|
+
transformFunction: null
|
|
37981
|
+
},
|
|
37982
|
+
formatChange: {
|
|
37983
|
+
classPropertyName: "formatChange",
|
|
37984
|
+
publicName: "formatChange",
|
|
37985
|
+
isSignal: true,
|
|
37986
|
+
isRequired: false,
|
|
37987
|
+
transformFunction: null
|
|
37988
|
+
},
|
|
37989
|
+
ariaLabel: {
|
|
37990
|
+
classPropertyName: "ariaLabel",
|
|
37991
|
+
publicName: "aria-label",
|
|
37992
|
+
isSignal: true,
|
|
37993
|
+
isRequired: false,
|
|
37994
|
+
transformFunction: null
|
|
37995
|
+
}
|
|
37996
|
+
},
|
|
37997
|
+
outputs: {
|
|
37998
|
+
tileClick: "tileClick",
|
|
37999
|
+
activeTileChange: "activeTileChange"
|
|
38000
|
+
},
|
|
38001
|
+
ngImport: i0,
|
|
38002
|
+
template: "<div\n class=\"ea-treemap\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\"\n [style.--ea-treemap-color]=\"color() || null\"\n [style.--ea-treemap-rising-color]=\"risingColor() || null\"\n [style.--ea-treemap-falling-color]=\"fallingColor() || null\">\n @if (hasData()) {\n <div\n class=\"ea-treemap__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-treemap__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n @for (tile of layout().tiles; track tile.index) {\n <g\n class=\"ea-treemap__tile\"\n [class.ea-treemap__tile--falling]=\"tile.falling\"\n [class.ea-treemap__tile--dimmed]=\"isDimmed(tile)\"\n [style.--ea-treemap-tile-color]=\"tile.color\"\n [style.--ea-treemap-mix]=\"tile.mix\">\n <rect\n class=\"ea-treemap__rect\"\n [attr.x]=\"tile.x\"\n [attr.y]=\"tile.y\"\n [attr.width]=\"tile.width\"\n [attr.height]=\"tile.height\" />\n @if (tile.label; as label) {\n <text\n class=\"ea-treemap__label\"\n dominant-baseline=\"central\"\n [attr.x]=\"label.x\"\n [attr.y]=\"label.y\">\n {{ label.text }}\n </text>\n }\n @if (tile.detail; as detail) {\n <text\n class=\"ea-treemap__detail\"\n dominant-baseline=\"central\"\n [attr.x]=\"detail.x\"\n [attr.y]=\"detail.y\">\n {{ detail.text }}\n </text>\n }\n </g>\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-treemap__anchor\"\n width=\"2\"\n height=\"2\"\n [attr.x]=\"tip.x - 1\"\n [attr.y]=\"tip.y - 1\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-treemap__tooltip\">\n <span class=\"ea-treemap__tooltip-title\">{{ tip.title }}</span>\n @for (row of tip.rows; track $index) {\n <span class=\"ea-treemap__tooltip-row\">\n <span class=\"ea-treemap__tooltip-name\">{{ row.name }}</span>\n <span class=\"ea-treemap__tooltip-value\">{{ row.value }}</span>\n </span>\n }\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-treemap__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ i18n.messages().chart.category }}</th>\n <th scope=\"col\">{{ i18n.messages().chart.value }}</th>\n <th scope=\"col\">{{ i18n.messages().chart.share }}</th>\n @if (hasChanges()) {\n <th scope=\"col\">{{ i18n.messages().chart.change }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (item of data(); track $index; let i = $index) {\n <tr>\n <th scope=\"row\">{{ item.label }}</th>\n @for (cell of tableCells(i); track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n </div>\n <div\n class=\"ea-treemap__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-treemap__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n</div>\n",
|
|
38003
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-treemap{display:block}.ea-treemap{--_ea-treemap-surface: var(--ea-chart-surface, var(--color-bg-base));position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-treemap--2xs{font-size:var(--font-size-2xs)}.ea-treemap--xs{font-size:var(--font-size-xs)}.ea-treemap--sm{font-size:var(--font-size-sm)}.ea-treemap--md{font-size:var(--font-size-md)}.ea-treemap--lg{font-size:var(--font-size-lg)}.ea-treemap--xl{font-size:var(--font-size-xl)}.ea-treemap--by-change{--_ea-treemap-start: color-mix( in oklab, var(--color-text-primary) 8%, var(--_ea-treemap-surface) );--_ea-treemap-rise: color-mix( in oklab, var(--ea-treemap-rising-color, var(--color-success-default)) 70%, var(--color-text-primary) );--_ea-treemap-fall: color-mix( in oklab, var(--ea-treemap-falling-color, var(--color-error-default)) 70%, var(--color-text-primary) )}.ea-treemap--by-change .ea-treemap__rect{fill:color-mix(in oklab,var(--_ea-treemap-rise) var(--ea-treemap-mix, 0%),var(--_ea-treemap-start))}.ea-treemap--by-change .ea-treemap__tile--falling .ea-treemap__rect{fill:color-mix(in oklab,var(--_ea-treemap-fall) var(--ea-treemap-mix, 0%),var(--_ea-treemap-start))}.ea-treemap__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-treemap__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-treemap__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-treemap__plot svg{display:block;overflow:visible}.ea-treemap__svg{direction:ltr;touch-action:pan-y}.ea-treemap__tile{transition:opacity var(--duration-fast) var(--ease-out);transform-box:fill-box;transform-origin:center}.ea-treemap__tile--dimmed{opacity:.35}.ea-treemap__rect{fill:var(--ea-treemap-tile-color, var(--ea-treemap-color, var(--color-chart-1)));stroke:var(--_ea-treemap-surface);stroke-width:2px;pointer-events:none}.ea-treemap__label,.ea-treemap__detail{stroke:var(--_ea-treemap-surface);stroke-width:3px;stroke-linejoin:round;fill:var(--color-text-primary);pointer-events:none;paint-order:stroke}.ea-treemap__label{font-size:.875em;font-weight:var(--font-weight-medium)}.ea-treemap__detail{font-size:.75em;font-variant-numeric:tabular-nums}.ea-treemap__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-treemap__anchor{fill:transparent}.ea-treemap__tooltip-title{font-weight:var(--font-weight-medium)}.ea-treemap__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-treemap__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-treemap__table,.ea-treemap__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-treemap__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-treemap--animate-grow .ea-treemap__tile{animation-name:ea-chart-grow;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-grow .ea-treemap__tile{animation:none}}.ea-treemap--animate-grow .ea-treemap__label,.ea-treemap--animate-grow .ea-treemap__detail{animation-name:ea-chart-fade;animation-delay:calc(var(--ea-chart-duration, .6s) * .8);animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-grow .ea-treemap__label,.ea-treemap--animate-grow .ea-treemap__detail{animation:none}}.ea-treemap--animate-fade .ea-treemap__tile{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-fade .ea-treemap__tile{animation:none}}\n"],
|
|
38004
|
+
dependencies: [{
|
|
38005
|
+
kind: "directive",
|
|
38006
|
+
type: TooltipDirective,
|
|
38007
|
+
selector: "[eaTooltip]",
|
|
38008
|
+
inputs: [
|
|
38009
|
+
"eaTooltip",
|
|
38010
|
+
"tooltipPosition",
|
|
38011
|
+
"flip",
|
|
38012
|
+
"whenClipped",
|
|
38013
|
+
"maxWidth",
|
|
38014
|
+
"showDelay",
|
|
38015
|
+
"dismissDelay",
|
|
38016
|
+
"tooltipOpen"
|
|
38017
|
+
]
|
|
38018
|
+
}],
|
|
38019
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
38020
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
38021
|
+
});
|
|
38022
|
+
};
|
|
38023
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
38024
|
+
minVersion: "12.0.0",
|
|
38025
|
+
version: "22.3.0",
|
|
38026
|
+
ngImport: i0,
|
|
38027
|
+
type: TreemapComponent,
|
|
38028
|
+
decorators: [{
|
|
38029
|
+
type: Component,
|
|
38030
|
+
args: [{
|
|
38031
|
+
selector: "ea-treemap",
|
|
38032
|
+
imports: [TooltipDirective],
|
|
38033
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38034
|
+
encapsulation: ViewEncapsulation.None,
|
|
38035
|
+
template: "<div\n class=\"ea-treemap\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\"\n [style.--ea-treemap-color]=\"color() || null\"\n [style.--ea-treemap-rising-color]=\"risingColor() || null\"\n [style.--ea-treemap-falling-color]=\"fallingColor() || null\">\n @if (hasData()) {\n <div\n class=\"ea-treemap__plot\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-roledescription]=\"i18n.messages().chart.roleDescription\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-treemap__svg\"\n aria-hidden=\"true\"\n [attr.width]=\"layout().width\"\n [attr.height]=\"layout().height\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerdown)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick()\">\n @for (tile of layout().tiles; track tile.index) {\n <g\n class=\"ea-treemap__tile\"\n [class.ea-treemap__tile--falling]=\"tile.falling\"\n [class.ea-treemap__tile--dimmed]=\"isDimmed(tile)\"\n [style.--ea-treemap-tile-color]=\"tile.color\"\n [style.--ea-treemap-mix]=\"tile.mix\">\n <rect\n class=\"ea-treemap__rect\"\n [attr.x]=\"tile.x\"\n [attr.y]=\"tile.y\"\n [attr.width]=\"tile.width\"\n [attr.height]=\"tile.height\" />\n @if (tile.label; as label) {\n <text\n class=\"ea-treemap__label\"\n dominant-baseline=\"central\"\n [attr.x]=\"label.x\"\n [attr.y]=\"label.y\">\n {{ label.text }}\n </text>\n }\n @if (tile.detail; as detail) {\n <text\n class=\"ea-treemap__detail\"\n dominant-baseline=\"central\"\n [attr.x]=\"detail.x\"\n [attr.y]=\"detail.y\">\n {{ detail.text }}\n </text>\n }\n </g>\n }\n @for (tip of tooltips(); track tip.key) {\n <rect\n class=\"ea-treemap__anchor\"\n width=\"2\"\n height=\"2\"\n [attr.x]=\"tip.x - 1\"\n [attr.y]=\"tip.y - 1\"\n [eaTooltip]=\"tooltipContent\"\n [tooltipOpen]=\"true\"\n [maxWidth]=\"undefined\" />\n }\n </svg>\n }\n <ng-template #tooltipContent>\n @if (tooltip(); as tip) {\n <div class=\"ea-treemap__tooltip\">\n <span class=\"ea-treemap__tooltip-title\">{{ tip.title }}</span>\n @for (row of tip.rows; track $index) {\n <span class=\"ea-treemap__tooltip-row\">\n <span class=\"ea-treemap__tooltip-name\">{{ row.name }}</span>\n <span class=\"ea-treemap__tooltip-value\">{{ row.value }}</span>\n </span>\n }\n </div>\n }\n </ng-template>\n <!-- Hidden through a block, since a table ignores the 1px size and keeps its full height -->\n <div class=\"ea-treemap__table\">\n <table>\n <caption>\n {{ label() }}\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ i18n.messages().chart.category }}</th>\n <th scope=\"col\">{{ i18n.messages().chart.value }}</th>\n <th scope=\"col\">{{ i18n.messages().chart.share }}</th>\n @if (hasChanges()) {\n <th scope=\"col\">{{ i18n.messages().chart.change }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (item of data(); track $index; let i = $index) {\n <tr>\n <th scope=\"row\">{{ item.label }}</th>\n @for (cell of tableCells(i); track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n </div>\n <div\n class=\"ea-treemap__live\"\n aria-live=\"polite\">\n {{ announcement() }}\n </div>\n } @else {\n <div\n class=\"ea-treemap__empty\"\n role=\"img\"\n [attr.aria-label]=\"label()\"\n [style.height.px]=\"height()\">\n {{ i18n.messages().chart.noData }}\n </div>\n }\n</div>\n",
|
|
38036
|
+
styles: ["@keyframes ea-chart-fade{0%{opacity:0}}@keyframes ea-chart-draw{0%{stroke-dashoffset:1}}@keyframes ea-chart-grow-y{0%{transform:scaleY(0)}}@keyframes ea-chart-grow-x{0%{transform:scaleX(0)}}@keyframes ea-chart-grow{0%{transform:scale(0)}}ea-treemap{display:block}.ea-treemap{--_ea-treemap-surface: var(--ea-chart-surface, var(--color-bg-base));position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-treemap--2xs{font-size:var(--font-size-2xs)}.ea-treemap--xs{font-size:var(--font-size-xs)}.ea-treemap--sm{font-size:var(--font-size-sm)}.ea-treemap--md{font-size:var(--font-size-md)}.ea-treemap--lg{font-size:var(--font-size-lg)}.ea-treemap--xl{font-size:var(--font-size-xl)}.ea-treemap--by-change{--_ea-treemap-start: color-mix( in oklab, var(--color-text-primary) 8%, var(--_ea-treemap-surface) );--_ea-treemap-rise: color-mix( in oklab, var(--ea-treemap-rising-color, var(--color-success-default)) 70%, var(--color-text-primary) );--_ea-treemap-fall: color-mix( in oklab, var(--ea-treemap-falling-color, var(--color-error-default)) 70%, var(--color-text-primary) )}.ea-treemap--by-change .ea-treemap__rect{fill:color-mix(in oklab,var(--_ea-treemap-rise) var(--ea-treemap-mix, 0%),var(--_ea-treemap-start))}.ea-treemap--by-change .ea-treemap__tile--falling .ea-treemap__rect{fill:color-mix(in oklab,var(--_ea-treemap-fall) var(--ea-treemap-mix, 0%),var(--_ea-treemap-start))}.ea-treemap__plot{position:relative;border-radius:var(--radius-md);outline:none}.ea-treemap__plot:focus-visible{outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-treemap__plot:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-treemap__plot svg{display:block;overflow:visible}.ea-treemap__svg{direction:ltr;touch-action:pan-y}.ea-treemap__tile{transition:opacity var(--duration-fast) var(--ease-out);transform-box:fill-box;transform-origin:center}.ea-treemap__tile--dimmed{opacity:.35}.ea-treemap__rect{fill:var(--ea-treemap-tile-color, var(--ea-treemap-color, var(--color-chart-1)));stroke:var(--_ea-treemap-surface);stroke-width:2px;pointer-events:none}.ea-treemap__label,.ea-treemap__detail{stroke:var(--_ea-treemap-surface);stroke-width:3px;stroke-linejoin:round;fill:var(--color-text-primary);pointer-events:none;paint-order:stroke}.ea-treemap__label{font-size:.875em;font-weight:var(--font-weight-medium)}.ea-treemap__detail{font-size:.75em;font-variant-numeric:tabular-nums}.ea-treemap__tooltip{display:flex;flex-direction:column;gap:var(--space-1)}.ea-treemap__anchor{fill:transparent}.ea-treemap__tooltip-title{font-weight:var(--font-weight-medium)}.ea-treemap__tooltip-row{display:flex;align-items:center;gap:.5em}.ea-treemap__tooltip-value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-treemap__table,.ea-treemap__live{position:absolute;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;padding:0;margin:-1px;white-space:nowrap;border:0}.ea-treemap__empty{display:flex;align-items:center;justify-content:center;font-size:.875em;color:var(--color-text-tertiary)}.ea-treemap--animate-grow .ea-treemap__tile{animation-name:ea-chart-grow;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-grow .ea-treemap__tile{animation:none}}.ea-treemap--animate-grow .ea-treemap__label,.ea-treemap--animate-grow .ea-treemap__detail{animation-name:ea-chart-fade;animation-delay:calc(var(--ea-chart-duration, .6s) * .8);animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-grow .ea-treemap__label,.ea-treemap--animate-grow .ea-treemap__detail{animation:none}}.ea-treemap--animate-fade .ea-treemap__tile{animation-name:ea-chart-fade;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:both}@media(prefers-reduced-motion:reduce){.ea-treemap--animate-fade .ea-treemap__tile{animation:none}}\n"]
|
|
38037
|
+
}]
|
|
38038
|
+
}],
|
|
38039
|
+
propDecorators: {
|
|
38040
|
+
data: [{
|
|
38041
|
+
type: i0.Input,
|
|
38042
|
+
args: [{
|
|
38043
|
+
isSignal: true,
|
|
38044
|
+
alias: "data",
|
|
38045
|
+
required: false
|
|
38046
|
+
}]
|
|
38047
|
+
}],
|
|
38048
|
+
color: [{
|
|
38049
|
+
type: i0.Input,
|
|
38050
|
+
args: [{
|
|
38051
|
+
isSignal: true,
|
|
38052
|
+
alias: "color",
|
|
38053
|
+
required: false
|
|
38054
|
+
}]
|
|
38055
|
+
}],
|
|
38056
|
+
colorByChange: [{
|
|
38057
|
+
type: i0.Input,
|
|
38058
|
+
args: [{
|
|
38059
|
+
isSignal: true,
|
|
38060
|
+
alias: "colorByChange",
|
|
38061
|
+
required: false
|
|
38062
|
+
}]
|
|
38063
|
+
}],
|
|
38064
|
+
changeRange: [{
|
|
38065
|
+
type: i0.Input,
|
|
38066
|
+
args: [{
|
|
38067
|
+
isSignal: true,
|
|
38068
|
+
alias: "changeRange",
|
|
38069
|
+
required: false
|
|
38070
|
+
}]
|
|
38071
|
+
}],
|
|
38072
|
+
risingColor: [{
|
|
38073
|
+
type: i0.Input,
|
|
38074
|
+
args: [{
|
|
38075
|
+
isSignal: true,
|
|
38076
|
+
alias: "risingColor",
|
|
38077
|
+
required: false
|
|
38078
|
+
}]
|
|
38079
|
+
}],
|
|
38080
|
+
fallingColor: [{
|
|
38081
|
+
type: i0.Input,
|
|
38082
|
+
args: [{
|
|
38083
|
+
isSignal: true,
|
|
38084
|
+
alias: "fallingColor",
|
|
38085
|
+
required: false
|
|
38086
|
+
}]
|
|
38087
|
+
}],
|
|
38088
|
+
showValues: [{
|
|
38089
|
+
type: i0.Input,
|
|
38090
|
+
args: [{
|
|
38091
|
+
isSignal: true,
|
|
38092
|
+
alias: "showValues",
|
|
38093
|
+
required: false
|
|
38094
|
+
}]
|
|
38095
|
+
}],
|
|
38096
|
+
height: [{
|
|
38097
|
+
type: i0.Input,
|
|
38098
|
+
args: [{
|
|
38099
|
+
isSignal: true,
|
|
38100
|
+
alias: "height",
|
|
38101
|
+
required: false
|
|
38102
|
+
}]
|
|
38103
|
+
}],
|
|
38104
|
+
size: [{
|
|
38105
|
+
type: i0.Input,
|
|
38106
|
+
args: [{
|
|
38107
|
+
isSignal: true,
|
|
38108
|
+
alias: "size",
|
|
38109
|
+
required: false
|
|
38110
|
+
}]
|
|
38111
|
+
}],
|
|
38112
|
+
animation: [{
|
|
38113
|
+
type: i0.Input,
|
|
38114
|
+
args: [{
|
|
38115
|
+
isSignal: true,
|
|
38116
|
+
alias: "animation",
|
|
38117
|
+
required: false
|
|
38118
|
+
}]
|
|
38119
|
+
}],
|
|
38120
|
+
animationDuration: [{
|
|
38121
|
+
type: i0.Input,
|
|
38122
|
+
args: [{
|
|
38123
|
+
isSignal: true,
|
|
38124
|
+
alias: "animationDuration",
|
|
38125
|
+
required: false
|
|
38126
|
+
}]
|
|
38127
|
+
}],
|
|
38128
|
+
formatValue: [{
|
|
38129
|
+
type: i0.Input,
|
|
38130
|
+
args: [{
|
|
38131
|
+
isSignal: true,
|
|
38132
|
+
alias: "formatValue",
|
|
38133
|
+
required: false
|
|
38134
|
+
}]
|
|
38135
|
+
}],
|
|
38136
|
+
formatChange: [{
|
|
38137
|
+
type: i0.Input,
|
|
38138
|
+
args: [{
|
|
38139
|
+
isSignal: true,
|
|
38140
|
+
alias: "formatChange",
|
|
38141
|
+
required: false
|
|
38142
|
+
}]
|
|
38143
|
+
}],
|
|
38144
|
+
ariaLabel: [{
|
|
38145
|
+
type: i0.Input,
|
|
38146
|
+
args: [{
|
|
38147
|
+
isSignal: true,
|
|
38148
|
+
alias: "aria-label",
|
|
38149
|
+
required: false
|
|
38150
|
+
}]
|
|
38151
|
+
}],
|
|
38152
|
+
tileClick: [{
|
|
38153
|
+
type: i0.Output,
|
|
38154
|
+
args: ["tileClick"]
|
|
38155
|
+
}],
|
|
38156
|
+
activeTileChange: [{
|
|
38157
|
+
type: i0.Output,
|
|
38158
|
+
args: ["activeTileChange"]
|
|
38159
|
+
}]
|
|
38160
|
+
}
|
|
38161
|
+
});
|
|
36052
38162
|
var VirtualListComponent = class VirtualListComponent {
|
|
36053
38163
|
hostRole = inject(ElementRef).nativeElement.getAttribute("role");
|
|
36054
38164
|
viewportTabindex = this.hostRole === null ? 0 : null;
|
|
@@ -92818,6 +94928,6 @@ const ICONS = /* @__PURE__ */ [
|
|
|
92818
94928
|
ZoomInIconComponent,
|
|
92819
94929
|
ZoomOutIconComponent
|
|
92820
94930
|
].sort((a, b) => a.slug.localeCompare(b.slug));
|
|
92821
|
-
export { AccessibilityIconComponent, AccordionComponent, AccordionItemComponent, ActivityIconComponent, AirplayIconComponent, AlarmClockIconComponent, AlertCircle2IconComponent, AlertCircleIconComponent, AlertComponent, AlertOctagonIconComponent, AlertTriangleIconComponent, AlignCenterIconComponent, AlignJustifyIconComponent, AlignLeftIconComponent, AlignRightIconComponent, AnchorIconComponent, AndroidIconComponent, AngularIconComponent, AnthropicIconComponent, ApertureIconComponent, ArchiveIconComponent, ArrayIconComponent, ArrowDownCircleIconComponent, ArrowDownIconComponent, ArrowDownLeftIconComponent, ArrowDownRightIconComponent, ArrowLeftCircleIconComponent, ArrowLeftIconComponent, ArrowLeftRightIconComponent, ArrowRightCircleIconComponent, ArrowRightIconComponent, ArrowUpCircleIconComponent, ArrowUpDownIconComponent, ArrowUpIconComponent, ArrowUpLeftIconComponent, ArrowUpRightIconComponent, AspectRatioIconComponent, AtSignIconComponent, AutocompleteComponent, AvatarComponent, AvatarEditorComponent, AwardIconComponent, BadgeCheckIconComponent, BadgeComponent, BanIconComponent, BanknoteIconComponent, BarChart2IconComponent, BarChartComponent, BarChartIconComponent, BasketIconComponent, BatteryChargingIconComponent, BatteryIconComponent, BedIconComponent, BellIconComponent, BellOffIconComponent, BellRingIconComponent, BikeIconComponent, BitcoinIconComponent, BlueskyIconComponent, BluetoothIconComponent, BoldIconComponent, BookIconComponent, BookOpenIconComponent, BookmarkCheckIconComponent, BookmarkIconComponent, BookmarkPlusIconComponent, BoomboxIconComponent, BotIconComponent, BottleIconComponent, BoxIconComponent, BracesIconComponent, BrainIconComponent, BreadcrumbsComponent, BriefcaseIconComponent, BugIconComponent, BuildingIconComponent, BusIconComponent, ButtonComponent, ButtonLinkComponent, CakeIconComponent, CalculatorIconComponent, CalendarCheckIconComponent, CalendarClockIconComponent, CalendarDaysIconComponent, CalendarIconComponent, CalendarPlusIconComponent, CameraIconComponent, CameraOffIconComponent, CandleIconComponent, CandlestickChartComponent, CarIconComponent, CardComponent, CassetteTapeIconComponent, CastIconComponent, CheckCheckIconComponent, CheckCircleIconComponent, CheckIconComponent, CheckSquareIconComponent, CheckboxComponent, ChevronDownIconComponent, ChevronLeftIconComponent, ChevronRightIconComponent, ChevronUpIconComponent, ChevronsDownIconComponent, ChevronsLeftIconComponent, ChevronsRightIconComponent, ChevronsUpDownIconComponent, ChevronsUpIconComponent, ChromeIconComponent, CircleIconComponent, ClapperboardIconComponent, ClipboardCheckIconComponent, ClipboardIconComponent, ClipboardListIconComponent, ClipboardPasteIconComponent, ClockIconComponent, CloudDrizzleIconComponent, CloudIconComponent, CloudLightningIconComponent, CloudOffIconComponent, CloudRainIconComponent, CloudSnowIconComponent, CloudSunIconComponent, CloudflareIconComponent, CodeIconComponent, CodeInputComponent, CodepenIconComponent, CodesandboxIconComponent, CoffeeIconComponent, CoinsIconComponent, ColorPickerComponent, ColumnsIconComponent, CommandIconComponent, CommandPaletteComponent, CompassIconComponent, ContextMenuTriggerDirective, ContrastIconComponent, CookieIconComponent, CopyIconComponent, CornerDownLeftIconComponent, CornerDownRightIconComponent, CornerLeftDownIconComponent, CornerLeftUpIconComponent, CornerRightDownIconComponent, CornerRightUpIconComponent, CornerUpLeftIconComponent, CornerUpRightIconComponent, CosineWaveIconComponent, CpuIconComponent, CreditCardIconComponent, CropIconComponent, CrosshairIconComponent, CrownIconComponent, DEFAULT_PALETTE_ROLES, DataTableComponent, DatabaseIconComponent, DatePickerComponent, DeleteIconComponent, DialogComponent, DialogRef, DialogService, DiamondIconComponent, Dice1IconComponent, Dice2IconComponent, Dice3IconComponent, Dice4IconComponent, Dice5IconComponent, Dice6IconComponent, DiscIconComponent, DiscordIconComponent, DivideCircleIconComponent, DivideIconComponent, DivideSquareIconComponent, DividerComponent, DockerIconComponent, DollarSignIconComponent, DoubleExclamationMarkIconComponent, DoubleQuestionMarkIconComponent, DownloadCloudIconComponent, DownloadIconComponent, DrawerComponent, DribbbleIconComponent, DropboxIconComponent, DropdownComponent, DropletIconComponent, DumbbellIconComponent, EAGAMI_ALL_LOCALES, EAGAMI_I18N_CONFIG, EAGAMI_LOCALES, EAGAMI_LOCALE_META, EagamiI18nService, EagamiIconComponent, EagamiWordmarkComponent, Edit2IconComponent, Edit3IconComponent, EditIconComponent, EjectIconComponent, EmptyStateComponent, EuroIconComponent, ExclamationMarkIconComponent, ExclamationQuestionMarkIconComponent, ExternalLinkIconComponent, EyeIconComponent, EyeOffIconComponent, Facebook2IconComponent, FacebookIconComponent, FastForwardIconComponent, FeatherIconComponent, FieldControlBase, FieldLabelComponent, FieldMessagesComponent, Figma2IconComponent, FigmaIconComponent, FileArchiveIconComponent, FileAudioIconComponent, FileCheckIconComponent, FileCodeIconComponent, FileIconComponent, FileImageIconComponent, FileMinusIconComponent, FilePdfIconComponent, FilePlusIconComponent, FileSpreadsheetIconComponent, FileTextIconComponent, FileUploaderComponent, FileVideoIconComponent, FilmIconComponent, FilterIconComponent, FilterXIconComponent, FingerprintIconComponent, FirstPlaceMedalIconComponent, FlagIconComponent, FlameIconComponent, FlaskConicalIconComponent, FolderIconComponent, FolderMinusIconComponent, FolderOpenIconComponent, FolderPlusIconComponent, FormFieldComponent, ForwardIconComponent, FramerIconComponent, FrownIconComponent, GamepadIconComponent, GaugeComponent, GaugeIconComponent, GeminiIconComponent, GiftIconComponent, GitBranchIconComponent, GitCommitIconComponent, GitCompareIconComponent, GitForkIconComponent, GitMergeIconComponent, GitPullRequestIconComponent, Github2IconComponent, GithubIconComponent, GitlabIconComponent, GlobeIconComponent, GoogleIconComponent, GraduationCapIconComponent, GridIconComponent, GripHorizontalIconComponent, GripVerticalIconComponent, HalfCircleIconComponent, HalfHeartIconComponent, HandIconComponent, HardDriveIconComponent, HashIconComponent, HeadingIconComponent, HeadphonesIconComponent, HeadsetIconComponent, HeartIconComponent, HeartPulseIconComponent, HelpCircleIconComponent, HeptagonIconComponent, HexagonIconComponent, HistoryIconComponent, HomeIconComponent, HourglassIconComponent, ICONS, IconComponentBase, IdCardIconComponent, ImageIconComponent, ImagePlayIconComponent, ImagePlusIconComponent, ImageSearchIconComponent, ImagesIconComponent, InboxIconComponent, IndentIconComponent, InfoIconComponent, InputComponent, InstagramIconComponent, ItalicIconComponent, KanbanIconComponent, KeyIconComponent, KeyboardIconComponent, KeyframeIconComponent, KubernetesIconComponent, LabelledFieldControlBase, LampIconComponent, LandmarkIconComponent, LanguagesIconComponent, LaptopIconComponent, LayersIconComponent, LayoutDashboardIconComponent, LayoutIconComponent, LeafIconComponent, LeftHalfStarIconComponent, LifeBuoyIconComponent, LightbulbIconComponent, LineChartComponent, LineChartIconComponent, Link2IconComponent, LinkIconComponent, Linkedin2IconComponent, LinkedinIconComponent, ListChecksIconComponent, ListFilterIconComponent, ListIconComponent, ListOrderedIconComponent, LoaderIconComponent, LocateFixedIconComponent, LockIconComponent, LogInIconComponent, LogOutIconComponent, MailCheckIconComponent, MailIconComponent, MailOpenIconComponent, MapIconComponent, MapPinIconComponent, MastercardIconComponent, Maximize2IconComponent, MaximizeIconComponent, MegaphoneIconComponent, MehIconComponent, MenuComponent, MenuIconComponent, MenuItemComponent, MenuTriggerDirective, MessageCircleIconComponent, MessageSquareIconComponent, MessagesSquareIconComponent, MicIconComponent, MicOffIconComponent, MicVocalIconComponent, MicroscopeIconComponent, MicrosoftIconComponent, Minimize2IconComponent, MinimizeIconComponent, MinusCircleIconComponent, MinusIconComponent, MinusSquareIconComponent, MongodbIconComponent, MonitorIconComponent, MonitorPlayIconComponent, MoonIconComponent, MoreHorizontalIconComponent, MoreVerticalIconComponent, MountainIconComponent, MousePointerClickIconComponent, MousePointerIconComponent, MoveIconComponent, MultiSelectComponent, MusicIconComponent, Navigation2IconComponent, NavigationIconComponent, NetlifyIconComponent, NetworkIconComponent, NewspaperIconComponent, NodejsIconComponent, NotionIconComponent, NpmIconComponent, NumberInputComponent, OctagonIconComponent, OutdentIconComponent, PAGE_SIZE_ALL, PackageIconComponent, PaginatorComponent, PaintbrushIconComponent, PaletteIconComponent, PaperclipIconComponent, PartyPopperIconComponent, PauseCircleIconComponent, PauseIconComponent, PawIconComponent, PaypalIconComponent, PenToolIconComponent, PentagonIconComponent, PercentIconComponent, PhoneCallIconComponent, PhoneForwardedIconComponent, PhoneIconComponent, PhoneIncomingIconComponent, PhoneMissedIconComponent, PhoneOffIconComponent, PhoneOutgoingIconComponent, PictureInPictureIconComponent, PieChartComponent, PieChartIconComponent, PiggyBankIconComponent, PillIconComponent, PinIconComponent, PinOffIconComponent, PinterestIconComponent, PipetteIconComponent, PizzaIconComponent, PlaneIconComponent, PlayCircleIconComponent, PlayIconComponent, PlaylistIconComponent, PlugIconComponent, PlusCircleIconComponent, PlusIconComponent, PlusSquareIconComponent, PocketIconComponent, PodcastIconComponent, PopoverComponent, PowerIconComponent, PrinterIconComponent, ProgressBarComponent, ProjectorIconComponent, PuzzleIconComponent, PythonIconComponent, QrCodeIconComponent, QuestionExclamationMarkIconComponent, QuestionMarkIconComponent, QuoteIconComponent, RadioComponent, RadioGroupComponent, RadioIconComponent, RadioReceiverIconComponent, RadioTowerIconComponent, RangeSliderComponent, RatingComponent, ReactIconComponent, ReceiptIconComponent, RecordIconComponent, RectangleHorizontalIconComponent, RectangleVerticalIconComponent, RedditIconComponent, RedoIconComponent, RefreshCcwIconComponent, RefreshCwIconComponent, Repeat1IconComponent, RepeatIconComponent, ReplyIconComponent, RewindIconComponent, RightHalfStarIconComponent, RocketIconComponent, RotateCcwIconComponent, RotateCcwSquareIconComponent, RotateCwIconComponent, RouteIconComponent, RowsIconComponent, RssIconComponent, RulerIconComponent, SaveIconComponent, ScaleIconComponent, ScanIconComponent, SchoolIconComponent, ScissorsIconComponent, ScreenShareIconComponent, SearchIconComponent, SecondPlaceMedalIconComponent, SegmentedComponent, SendIconComponent, ServerIconComponent, SettingsIconComponent, Share2IconComponent, ShareIconComponent, ShieldAlertIconComponent, ShieldCheckIconComponent, ShieldIconComponent, ShieldOffIconComponent, ShipIconComponent, ShirtIconComponent, ShopifyIconComponent, ShoppingBagIconComponent, ShoppingCartIconComponent, ShuffleIconComponent, SidebarIconComponent, SignalFullIconComponent, SignalHighIconComponent, SignalLowIconComponent, SignalMediumIconComponent, SignalNoneIconComponent, SineWaveIconComponent, SkeletonComponent, SkipBackIconComponent, SkipForwardIconComponent, Slack2IconComponent, SlackIconComponent, SlashIconComponent, SliderComponent, SlidersIconComponent, SmartphoneIconComponent, SmileIconComponent, SnowflakeIconComponent, SoccerBallIconComponent, SortAscendingIconComponent, SortDescendingIconComponent, SparklesIconComponent, SparklineComponent, SpeakerIconComponent, SpinnerComponent, SpotifyIconComponent, SquareIconComponent, SquarePlayIconComponent, StarIconComponent, StatComponent, StepBackIconComponent, StepComponent, StepForwardIconComponent, StepperComponent, StickyNoteIconComponent, StopCircleIconComponent, StoreIconComponent, StrikethroughIconComponent, StripeIconComponent, SubtitlesIconComponent, SubtitlesOffIconComponent, SunIconComponent, SunriseIconComponent, SunsetIconComponent, SvelteIconComponent, SwitchCameraIconComponent, SwitchComponent, TabComponent, TableIconComponent, TabletIconComponent, TabsComponent, TagComponent, TagIconComponent, TagsIconComponent, TailwindIconComponent, TargetIconComponent, TelegramIconComponent, TerminalIconComponent, TextareaComponent, ThermometerIconComponent, ThirdPlaceMedalIconComponent, ThreadsIconComponent, ThumbsDownIconComponent, ThumbsUpIconComponent, TicketIconComponent, TiktokIconComponent, TimePickerComponent, TimecodeIconComponent, TimelineComponent, TimerIconComponent, ToastComponent, ToastService, ToggleChipComponent, ToggleLeftIconComponent, ToggleRightIconComponent, ToolIconComponent, TooltipDirective, TrainIconComponent, TranscodeIconComponent, TransferListComponent, Trash2IconComponent, TrashIconComponent, TreeComponent, TrelloIconComponent, TrendingDownIconComponent, TrendingUpIconComponent, TriangleIconComponent, TrimIconComponent, TrophyIconComponent, TruckIconComponent, TvIconComponent, Twitch2IconComponent, TwitchIconComponent, TwitterIconComponent, TypeIconComponent, UmbrellaIconComponent, UnderlineIconComponent, UndoIconComponent, UnlinkIconComponent, UnlockIconComponent, UploadCloudIconComponent, UploadIconComponent, UserCheckIconComponent, UserCircleIconComponent, UserIconComponent, UserMinusIconComponent, UserPlusIconComponent, UserXIconComponent, UsersIconComponent, UtensilsIconComponent, VercelIconComponent, VideoIconComponent, VideoOffIconComponent, VirtualListComponent, VoicemailIconComponent, Volume1IconComponent, Volume2IconComponent, VolumeIconComponent, VolumeXIconComponent, VueIconComponent, WCAG_AA, WalletIconComponent, WandIconComponent, WatchIconComponent, WaterfallChartComponent, WaveformIconComponent, WebcamIconComponent, WhatsappIconComponent, WifiIconComponent, WifiOffIconComponent, WindIconComponent, WordpressIconComponent, XCircleIconComponent, XIconComponent, XOctagonIconComponent, XSquareIconComponent, XTwitterIconComponent, Youtube2IconComponent, YoutubeIconComponent, ZapIconComponent, ZapOffIconComponent, ZoomInIconComponent, ZoomOutIconComponent, applyPalette, ar, computePopoverPosition, contrastRatio, de, derivePalette, el, en, esES, formatViolations, frFR, frenchSpacing, he, hexToOklch, hi, iconDisplayName, is, isGrouped, nl, oklchToHex, pl, provideEagamiUi, ptBR, relativeLuminance, ru, uk, validatePalette, visibleNodeIds, walkTree, zhCN };
|
|
94931
|
+
export { AccessibilityIconComponent, AccordionComponent, AccordionItemComponent, ActivityIconComponent, AirplayIconComponent, AlarmClockIconComponent, AlertCircle2IconComponent, AlertCircleIconComponent, AlertComponent, AlertOctagonIconComponent, AlertTriangleIconComponent, AlignCenterIconComponent, AlignJustifyIconComponent, AlignLeftIconComponent, AlignRightIconComponent, AnchorIconComponent, AndroidIconComponent, AngularIconComponent, AnthropicIconComponent, ApertureIconComponent, ArchiveIconComponent, ArrayIconComponent, ArrowDownCircleIconComponent, ArrowDownIconComponent, ArrowDownLeftIconComponent, ArrowDownRightIconComponent, ArrowLeftCircleIconComponent, ArrowLeftIconComponent, ArrowLeftRightIconComponent, ArrowRightCircleIconComponent, ArrowRightIconComponent, ArrowUpCircleIconComponent, ArrowUpDownIconComponent, ArrowUpIconComponent, ArrowUpLeftIconComponent, ArrowUpRightIconComponent, AspectRatioIconComponent, AtSignIconComponent, AutocompleteComponent, AvatarComponent, AvatarEditorComponent, AwardIconComponent, BadgeCheckIconComponent, BadgeComponent, BanIconComponent, BanknoteIconComponent, BarChart2IconComponent, BarChartComponent, BarChartIconComponent, BasketIconComponent, BatteryChargingIconComponent, BatteryIconComponent, BedIconComponent, BellIconComponent, BellOffIconComponent, BellRingIconComponent, BikeIconComponent, BitcoinIconComponent, BlueskyIconComponent, BluetoothIconComponent, BoldIconComponent, BookIconComponent, BookOpenIconComponent, BookmarkCheckIconComponent, BookmarkIconComponent, BookmarkPlusIconComponent, BoomboxIconComponent, BotIconComponent, BottleIconComponent, BoxIconComponent, BracesIconComponent, BrainIconComponent, BreadcrumbsComponent, BriefcaseIconComponent, BugIconComponent, BuildingIconComponent, BusIconComponent, ButtonComponent, ButtonLinkComponent, CakeIconComponent, CalculatorIconComponent, CalendarCheckIconComponent, CalendarClockIconComponent, CalendarDaysIconComponent, CalendarIconComponent, CalendarPlusIconComponent, CameraIconComponent, CameraOffIconComponent, CandleIconComponent, CandlestickChartComponent, CarIconComponent, CardComponent, CassetteTapeIconComponent, CastIconComponent, CheckCheckIconComponent, CheckCircleIconComponent, CheckIconComponent, CheckSquareIconComponent, CheckboxComponent, ChevronDownIconComponent, ChevronLeftIconComponent, ChevronRightIconComponent, ChevronUpIconComponent, ChevronsDownIconComponent, ChevronsLeftIconComponent, ChevronsRightIconComponent, ChevronsUpDownIconComponent, ChevronsUpIconComponent, ChromeIconComponent, CircleIconComponent, ClapperboardIconComponent, ClipboardCheckIconComponent, ClipboardIconComponent, ClipboardListIconComponent, ClipboardPasteIconComponent, ClockIconComponent, CloudDrizzleIconComponent, CloudIconComponent, CloudLightningIconComponent, CloudOffIconComponent, CloudRainIconComponent, CloudSnowIconComponent, CloudSunIconComponent, CloudflareIconComponent, CodeIconComponent, CodeInputComponent, CodepenIconComponent, CodesandboxIconComponent, CoffeeIconComponent, CoinsIconComponent, ColorPickerComponent, ColumnsIconComponent, CommandIconComponent, CommandPaletteComponent, CompassIconComponent, ContextMenuTriggerDirective, ContrastIconComponent, CookieIconComponent, CopyIconComponent, CornerDownLeftIconComponent, CornerDownRightIconComponent, CornerLeftDownIconComponent, CornerLeftUpIconComponent, CornerRightDownIconComponent, CornerRightUpIconComponent, CornerUpLeftIconComponent, CornerUpRightIconComponent, CosineWaveIconComponent, CpuIconComponent, CreditCardIconComponent, CropIconComponent, CrosshairIconComponent, CrownIconComponent, DEFAULT_PALETTE_ROLES, DataTableComponent, DatabaseIconComponent, DatePickerComponent, DeleteIconComponent, DialogComponent, DialogRef, DialogService, DiamondIconComponent, Dice1IconComponent, Dice2IconComponent, Dice3IconComponent, Dice4IconComponent, Dice5IconComponent, Dice6IconComponent, DiscIconComponent, DiscordIconComponent, DivideCircleIconComponent, DivideIconComponent, DivideSquareIconComponent, DividerComponent, DockerIconComponent, DollarSignIconComponent, DoubleExclamationMarkIconComponent, DoubleQuestionMarkIconComponent, DownloadCloudIconComponent, DownloadIconComponent, DrawerComponent, DribbbleIconComponent, DropboxIconComponent, DropdownComponent, DropletIconComponent, DumbbellIconComponent, EAGAMI_ALL_LOCALES, EAGAMI_I18N_CONFIG, EAGAMI_LOCALES, EAGAMI_LOCALE_META, EagamiI18nService, EagamiIconComponent, EagamiWordmarkComponent, Edit2IconComponent, Edit3IconComponent, EditIconComponent, EjectIconComponent, EmptyStateComponent, EuroIconComponent, ExclamationMarkIconComponent, ExclamationQuestionMarkIconComponent, ExternalLinkIconComponent, EyeIconComponent, EyeOffIconComponent, Facebook2IconComponent, FacebookIconComponent, FastForwardIconComponent, FeatherIconComponent, FieldControlBase, FieldLabelComponent, FieldMessagesComponent, Figma2IconComponent, FigmaIconComponent, FileArchiveIconComponent, FileAudioIconComponent, FileCheckIconComponent, FileCodeIconComponent, FileIconComponent, FileImageIconComponent, FileMinusIconComponent, FilePdfIconComponent, FilePlusIconComponent, FileSpreadsheetIconComponent, FileTextIconComponent, FileUploaderComponent, FileVideoIconComponent, FilmIconComponent, FilterIconComponent, FilterXIconComponent, FingerprintIconComponent, FirstPlaceMedalIconComponent, FlagIconComponent, FlameIconComponent, FlaskConicalIconComponent, FolderIconComponent, FolderMinusIconComponent, FolderOpenIconComponent, FolderPlusIconComponent, FormFieldComponent, ForwardIconComponent, FramerIconComponent, FrownIconComponent, GamepadIconComponent, GaugeComponent, GaugeIconComponent, GeminiIconComponent, GiftIconComponent, GitBranchIconComponent, GitCommitIconComponent, GitCompareIconComponent, GitForkIconComponent, GitMergeIconComponent, GitPullRequestIconComponent, Github2IconComponent, GithubIconComponent, GitlabIconComponent, GlobeIconComponent, GoogleIconComponent, GraduationCapIconComponent, GridIconComponent, GripHorizontalIconComponent, GripVerticalIconComponent, HalfCircleIconComponent, HalfHeartIconComponent, HandIconComponent, HardDriveIconComponent, HashIconComponent, HeadingIconComponent, HeadphonesIconComponent, HeadsetIconComponent, HeartIconComponent, HeartPulseIconComponent, HeatmapComponent, HelpCircleIconComponent, HeptagonIconComponent, HexagonIconComponent, HistoryIconComponent, HomeIconComponent, HourglassIconComponent, ICONS, IconComponentBase, IdCardIconComponent, ImageIconComponent, ImagePlayIconComponent, ImagePlusIconComponent, ImageSearchIconComponent, ImagesIconComponent, InboxIconComponent, IndentIconComponent, InfoIconComponent, InputComponent, InstagramIconComponent, ItalicIconComponent, KanbanIconComponent, KeyIconComponent, KeyboardIconComponent, KeyframeIconComponent, KubernetesIconComponent, LabelledFieldControlBase, LampIconComponent, LandmarkIconComponent, LanguagesIconComponent, LaptopIconComponent, LayersIconComponent, LayoutDashboardIconComponent, LayoutIconComponent, LeafIconComponent, LeftHalfStarIconComponent, LifeBuoyIconComponent, LightbulbIconComponent, LineChartComponent, LineChartIconComponent, Link2IconComponent, LinkIconComponent, Linkedin2IconComponent, LinkedinIconComponent, ListChecksIconComponent, ListFilterIconComponent, ListIconComponent, ListOrderedIconComponent, LoaderIconComponent, LocateFixedIconComponent, LockIconComponent, LogInIconComponent, LogOutIconComponent, MailCheckIconComponent, MailIconComponent, MailOpenIconComponent, MapIconComponent, MapPinIconComponent, MastercardIconComponent, Maximize2IconComponent, MaximizeIconComponent, MegaphoneIconComponent, MehIconComponent, MenuComponent, MenuIconComponent, MenuItemComponent, MenuTriggerDirective, MessageCircleIconComponent, MessageSquareIconComponent, MessagesSquareIconComponent, MicIconComponent, MicOffIconComponent, MicVocalIconComponent, MicroscopeIconComponent, MicrosoftIconComponent, Minimize2IconComponent, MinimizeIconComponent, MinusCircleIconComponent, MinusIconComponent, MinusSquareIconComponent, MongodbIconComponent, MonitorIconComponent, MonitorPlayIconComponent, MoonIconComponent, MoreHorizontalIconComponent, MoreVerticalIconComponent, MountainIconComponent, MousePointerClickIconComponent, MousePointerIconComponent, MoveIconComponent, MultiSelectComponent, MusicIconComponent, Navigation2IconComponent, NavigationIconComponent, NetlifyIconComponent, NetworkIconComponent, NewspaperIconComponent, NodejsIconComponent, NotionIconComponent, NpmIconComponent, NumberInputComponent, OctagonIconComponent, OutdentIconComponent, PAGE_SIZE_ALL, PackageIconComponent, PaginatorComponent, PaintbrushIconComponent, PaletteIconComponent, PaperclipIconComponent, PartyPopperIconComponent, PauseCircleIconComponent, PauseIconComponent, PawIconComponent, PaypalIconComponent, PenToolIconComponent, PentagonIconComponent, PercentIconComponent, PhoneCallIconComponent, PhoneForwardedIconComponent, PhoneIconComponent, PhoneIncomingIconComponent, PhoneMissedIconComponent, PhoneOffIconComponent, PhoneOutgoingIconComponent, PictureInPictureIconComponent, PieChartComponent, PieChartIconComponent, PiggyBankIconComponent, PillIconComponent, PinIconComponent, PinOffIconComponent, PinterestIconComponent, PipetteIconComponent, PizzaIconComponent, PlaneIconComponent, PlayCircleIconComponent, PlayIconComponent, PlaylistIconComponent, PlugIconComponent, PlusCircleIconComponent, PlusIconComponent, PlusSquareIconComponent, PocketIconComponent, PodcastIconComponent, PopoverComponent, PowerIconComponent, PrinterIconComponent, ProgressBarComponent, ProjectorIconComponent, PuzzleIconComponent, PythonIconComponent, QrCodeIconComponent, QuestionExclamationMarkIconComponent, QuestionMarkIconComponent, QuoteIconComponent, RadioComponent, RadioGroupComponent, RadioIconComponent, RadioReceiverIconComponent, RadioTowerIconComponent, RangeSliderComponent, RatingComponent, ReactIconComponent, ReceiptIconComponent, RecordIconComponent, RectangleHorizontalIconComponent, RectangleVerticalIconComponent, RedditIconComponent, RedoIconComponent, RefreshCcwIconComponent, RefreshCwIconComponent, Repeat1IconComponent, RepeatIconComponent, ReplyIconComponent, RewindIconComponent, RightHalfStarIconComponent, RocketIconComponent, RotateCcwIconComponent, RotateCcwSquareIconComponent, RotateCwIconComponent, RouteIconComponent, RowsIconComponent, RssIconComponent, RulerIconComponent, SaveIconComponent, ScaleIconComponent, ScanIconComponent, ScatterChartComponent, SchoolIconComponent, ScissorsIconComponent, ScreenShareIconComponent, SearchIconComponent, SecondPlaceMedalIconComponent, SegmentedComponent, SendIconComponent, ServerIconComponent, SettingsIconComponent, Share2IconComponent, ShareIconComponent, ShieldAlertIconComponent, ShieldCheckIconComponent, ShieldIconComponent, ShieldOffIconComponent, ShipIconComponent, ShirtIconComponent, ShopifyIconComponent, ShoppingBagIconComponent, ShoppingCartIconComponent, ShuffleIconComponent, SidebarIconComponent, SignalFullIconComponent, SignalHighIconComponent, SignalLowIconComponent, SignalMediumIconComponent, SignalNoneIconComponent, SineWaveIconComponent, SkeletonComponent, SkipBackIconComponent, SkipForwardIconComponent, Slack2IconComponent, SlackIconComponent, SlashIconComponent, SliderComponent, SlidersIconComponent, SmartphoneIconComponent, SmileIconComponent, SnowflakeIconComponent, SoccerBallIconComponent, SortAscendingIconComponent, SortDescendingIconComponent, SparklesIconComponent, SparklineComponent, SpeakerIconComponent, SpinnerComponent, SpotifyIconComponent, SquareIconComponent, SquarePlayIconComponent, StarIconComponent, StatComponent, StepBackIconComponent, StepComponent, StepForwardIconComponent, StepperComponent, StickyNoteIconComponent, StopCircleIconComponent, StoreIconComponent, StrikethroughIconComponent, StripeIconComponent, SubtitlesIconComponent, SubtitlesOffIconComponent, SunIconComponent, SunriseIconComponent, SunsetIconComponent, SvelteIconComponent, SwitchCameraIconComponent, SwitchComponent, TabComponent, TableIconComponent, TabletIconComponent, TabsComponent, TagComponent, TagIconComponent, TagsIconComponent, TailwindIconComponent, TargetIconComponent, TelegramIconComponent, TerminalIconComponent, TextareaComponent, ThermometerIconComponent, ThirdPlaceMedalIconComponent, ThreadsIconComponent, ThumbsDownIconComponent, ThumbsUpIconComponent, TicketIconComponent, TiktokIconComponent, TimePickerComponent, TimecodeIconComponent, TimelineComponent, TimerIconComponent, ToastComponent, ToastService, ToggleChipComponent, ToggleLeftIconComponent, ToggleRightIconComponent, ToolIconComponent, TooltipDirective, TrainIconComponent, TranscodeIconComponent, TransferListComponent, Trash2IconComponent, TrashIconComponent, TreeComponent, TreemapComponent, TrelloIconComponent, TrendingDownIconComponent, TrendingUpIconComponent, TriangleIconComponent, TrimIconComponent, TrophyIconComponent, TruckIconComponent, TvIconComponent, Twitch2IconComponent, TwitchIconComponent, TwitterIconComponent, TypeIconComponent, UmbrellaIconComponent, UnderlineIconComponent, UndoIconComponent, UnlinkIconComponent, UnlockIconComponent, UploadCloudIconComponent, UploadIconComponent, UserCheckIconComponent, UserCircleIconComponent, UserIconComponent, UserMinusIconComponent, UserPlusIconComponent, UserXIconComponent, UsersIconComponent, UtensilsIconComponent, VercelIconComponent, VideoIconComponent, VideoOffIconComponent, VirtualListComponent, VoicemailIconComponent, Volume1IconComponent, Volume2IconComponent, VolumeIconComponent, VolumeXIconComponent, VueIconComponent, WCAG_AA, WalletIconComponent, WandIconComponent, WatchIconComponent, WaterfallChartComponent, WaveformIconComponent, WebcamIconComponent, WhatsappIconComponent, WifiIconComponent, WifiOffIconComponent, WindIconComponent, WordpressIconComponent, XCircleIconComponent, XIconComponent, XOctagonIconComponent, XSquareIconComponent, XTwitterIconComponent, Youtube2IconComponent, YoutubeIconComponent, ZapIconComponent, ZapOffIconComponent, ZoomInIconComponent, ZoomOutIconComponent, applyPalette, ar, computePopoverPosition, contrastRatio, de, derivePalette, el, en, esES, formatViolations, frFR, frenchSpacing, he, hexToOklch, hi, iconDisplayName, is, isGrouped, nl, oklchToHex, pl, provideEagamiUi, ptBR, relativeLuminance, ru, uk, validatePalette, visibleNodeIds, walkTree, zhCN };
|
|
92822
94932
|
|
|
92823
94933
|
//# sourceMappingURL=eagami-ui.mjs.map
|