@eagami/ui 5.100.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.
@@ -454,7 +454,20 @@ const ar = {
454
454
  total: "الإجمالي",
455
455
  trend: "الاتجاه",
456
456
  trendSummary: (first, last, low, high) => `من ${first} إلى ${last}، الأدنى ${low}، الأعلى ${high}`,
457
- referenceLine: (label, value) => label ? `خط مرجعي، ${label}: ${value}` : `خط مرجعي: ${value}`
457
+ referenceLine: (label, value) => label ? `خط مرجعي، ${label}: ${value}` : `خط مرجعي: ${value}`,
458
+ gauge: "مقياس",
459
+ gaugeValue: (value, band) => band ? `${value}، ${band}` : value,
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}` : ""}`
458
471
  },
459
472
  codeInput: {
460
473
  groupLabel: (length) => `رمز التحقق، ${length} أرقام`,
@@ -605,6 +618,11 @@ const ar = {
605
618
  clear: "مسح التقييم"
606
619
  },
607
620
  spinner: { label: "جارٍ التحميل" },
621
+ stat: {
622
+ up: (change) => `ارتفاع ${change}`,
623
+ down: (change) => `انخفاض ${change}`,
624
+ unchanged: "بلا تغيير"
625
+ },
608
626
  stepper: {
609
627
  stepsLabel: "الخطوات",
610
628
  optional: "اختياري",
@@ -705,7 +723,20 @@ const de = {
705
723
  total: "Gesamt",
706
724
  trend: "Verlauf",
707
725
  trendSummary: (first, last, low, high) => `Von ${first} auf ${last}, Tiefstwert ${low}, Höchstwert ${high}`,
708
- referenceLine: (label, value) => label ? `Referenzlinie, ${label}: ${value}` : `Referenzlinie: ${value}`
726
+ referenceLine: (label, value) => label ? `Referenzlinie, ${label}: ${value}` : `Referenzlinie: ${value}`,
727
+ gauge: "Messanzeige",
728
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
709
740
  },
710
741
  codeInput: {
711
742
  groupLabel: (length) => `Bestätigungscode, ${length} Ziffern`,
@@ -856,6 +887,11 @@ const de = {
856
887
  clear: "Bewertung löschen"
857
888
  },
858
889
  spinner: { label: "Wird geladen" },
890
+ stat: {
891
+ up: (change) => `Gestiegen um ${change}`,
892
+ down: (change) => `Gesunken um ${change}`,
893
+ unchanged: "Unverändert"
894
+ },
859
895
  stepper: {
860
896
  stepsLabel: "Schritte",
861
897
  optional: "optional",
@@ -956,7 +992,20 @@ const el = {
956
992
  total: "Σύνολο",
957
993
  trend: "Τάση",
958
994
  trendSummary: (first, last, low, high) => `Από ${first} σε ${last}, ελάχιστο ${low}, μέγιστο ${high}`,
959
- referenceLine: (label, value) => label ? `Γραμμή αναφοράς, ${label}: ${value}` : `Γραμμή αναφοράς: ${value}`
995
+ referenceLine: (label, value) => label ? `Γραμμή αναφοράς, ${label}: ${value}` : `Γραμμή αναφοράς: ${value}`,
996
+ gauge: "Μετρητής",
997
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
960
1009
  },
961
1010
  codeInput: {
962
1011
  groupLabel: (length) => `Κωδικός επαλήθευσης, ${length} ψηφία`,
@@ -1107,6 +1156,11 @@ const el = {
1107
1156
  clear: "Εκκαθάριση αξιολόγησης"
1108
1157
  },
1109
1158
  spinner: { label: "Φόρτωση" },
1159
+ stat: {
1160
+ up: (change) => `Αύξηση ${change}`,
1161
+ down: (change) => `Μείωση ${change}`,
1162
+ unchanged: "Χωρίς μεταβολή"
1163
+ },
1110
1164
  stepper: {
1111
1165
  stepsLabel: "Βήματα",
1112
1166
  optional: "προαιρετικό",
@@ -1207,7 +1261,20 @@ const en = {
1207
1261
  total: "Total",
1208
1262
  trend: "Trend",
1209
1263
  trendSummary: (first, last, low, high) => `From ${first} to ${last}, low ${low}, high ${high}`,
1210
- referenceLine: (label, value) => label ? `Reference line, ${label}: ${value}` : `Reference line: ${value}`
1264
+ referenceLine: (label, value) => label ? `Reference line, ${label}: ${value}` : `Reference line: ${value}`,
1265
+ gauge: "Gauge",
1266
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
1211
1278
  },
1212
1279
  codeInput: {
1213
1280
  groupLabel: (length) => `Verification code, ${length} digits`,
@@ -1358,6 +1425,11 @@ const en = {
1358
1425
  clear: "Clear rating"
1359
1426
  },
1360
1427
  spinner: { label: "Loading" },
1428
+ stat: {
1429
+ up: (change) => `Up ${change}`,
1430
+ down: (change) => `Down ${change}`,
1431
+ unchanged: "No change"
1432
+ },
1361
1433
  stepper: {
1362
1434
  stepsLabel: "Steps",
1363
1435
  optional: "optional",
@@ -1458,7 +1530,20 @@ const esES = {
1458
1530
  total: "Total",
1459
1531
  trend: "Tendencia",
1460
1532
  trendSummary: (first, last, low, high) => `De ${first} a ${last}, mínimo ${low}, máximo ${high}`,
1461
- referenceLine: (label, value) => label ? `Línea de referencia, ${label}: ${value}` : `Línea de referencia: ${value}`
1533
+ referenceLine: (label, value) => label ? `Línea de referencia, ${label}: ${value}` : `Línea de referencia: ${value}`,
1534
+ gauge: "Indicador",
1535
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
1462
1547
  },
1463
1548
  codeInput: {
1464
1549
  groupLabel: (length) => `Código de verificación, ${length} dígitos`,
@@ -1609,6 +1694,11 @@ const esES = {
1609
1694
  clear: "Borrar valoración"
1610
1695
  },
1611
1696
  spinner: { label: "Cargando" },
1697
+ stat: {
1698
+ up: (change) => `Sube ${change}`,
1699
+ down: (change) => `Baja ${change}`,
1700
+ unchanged: "Sin cambios"
1701
+ },
1612
1702
  stepper: {
1613
1703
  stepsLabel: "Pasos",
1614
1704
  optional: "opcional",
@@ -1709,7 +1799,20 @@ const frFR = {
1709
1799
  total: "Total",
1710
1800
  trend: "Tendance",
1711
1801
  trendSummary: (first, last, low, high) => `De ${first} à ${last}, minimum ${low}, maximum ${high}`,
1712
- referenceLine: (label, value) => label ? `Ligne de référence, ${label} : ${value}` : `Ligne de référence : ${value}`
1802
+ referenceLine: (label, value) => label ? `Ligne de référence, ${label} : ${value}` : `Ligne de référence : ${value}`,
1803
+ gauge: "Jauge",
1804
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
1713
1816
  },
1714
1817
  codeInput: {
1715
1818
  groupLabel: (length) => `Code de vérification, ${length} chiffres`,
@@ -1860,6 +1963,11 @@ const frFR = {
1860
1963
  clear: "Effacer la note"
1861
1964
  },
1862
1965
  spinner: { label: "Chargement" },
1966
+ stat: {
1967
+ up: (change) => `En hausse de ${change}`,
1968
+ down: (change) => `En baisse de ${change}`,
1969
+ unchanged: "Inchangé"
1970
+ },
1863
1971
  stepper: {
1864
1972
  stepsLabel: "Étapes",
1865
1973
  optional: "facultatif",
@@ -1960,7 +2068,20 @@ const he = {
1960
2068
  total: "סה״כ",
1961
2069
  trend: "מגמה",
1962
2070
  trendSummary: (first, last, low, high) => `מ־${first} ל־${last}, מינימום ${low}, מקסימום ${high}`,
1963
- referenceLine: (label, value) => label ? `קו ייחוס, ${label}: ${value}` : `קו ייחוס: ${value}`
2071
+ referenceLine: (label, value) => label ? `קו ייחוס, ${label}: ${value}` : `קו ייחוס: ${value}`,
2072
+ gauge: "מד",
2073
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
1964
2085
  },
1965
2086
  codeInput: {
1966
2087
  groupLabel: (length) => `קוד אימות, ${length} ספרות`,
@@ -2111,6 +2232,11 @@ const he = {
2111
2232
  clear: "ניקוי דירוג"
2112
2233
  },
2113
2234
  spinner: { label: "טוען" },
2235
+ stat: {
2236
+ up: (change) => `עלייה של ${change}`,
2237
+ down: (change) => `ירידה של ${change}`,
2238
+ unchanged: "ללא שינוי"
2239
+ },
2114
2240
  stepper: {
2115
2241
  stepsLabel: "שלבים",
2116
2242
  optional: "אופציונלי",
@@ -2211,7 +2337,20 @@ const hi = {
2211
2337
  total: "कुल",
2212
2338
  trend: "रुझान",
2213
2339
  trendSummary: (first, last, low, high) => `${first} से ${last} तक, न्यूनतम ${low}, अधिकतम ${high}`,
2214
- referenceLine: (label, value) => label ? `संदर्भ रेखा, ${label}: ${value}` : `संदर्भ रेखा: ${value}`
2340
+ referenceLine: (label, value) => label ? `संदर्भ रेखा, ${label}: ${value}` : `संदर्भ रेखा: ${value}`,
2341
+ gauge: "गेज",
2342
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
2215
2354
  },
2216
2355
  codeInput: {
2217
2356
  groupLabel: (length) => `सत्यापन कोड, ${length} अंक`,
@@ -2362,6 +2501,11 @@ const hi = {
2362
2501
  clear: "रेटिंग साफ़ करें"
2363
2502
  },
2364
2503
  spinner: { label: "लोड हो रहा है" },
2504
+ stat: {
2505
+ up: (change) => `${change} की बढ़त`,
2506
+ down: (change) => `${change} की गिरावट`,
2507
+ unchanged: "कोई बदलाव नहीं"
2508
+ },
2365
2509
  stepper: {
2366
2510
  stepsLabel: "चरण",
2367
2511
  optional: "वैकल्पिक",
@@ -2462,7 +2606,20 @@ const is = {
2462
2606
  total: "Samtals",
2463
2607
  trend: "Þróun",
2464
2608
  trendSummary: (first, last, low, high) => `Frá ${first} í ${last}, lægst ${low}, hæst ${high}`,
2465
- referenceLine: (label, value) => label ? `Viðmiðunarlína, ${label}: ${value}` : `Viðmiðunarlína: ${value}`
2609
+ referenceLine: (label, value) => label ? `Viðmiðunarlína, ${label}: ${value}` : `Viðmiðunarlína: ${value}`,
2610
+ gauge: "Mælir",
2611
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
2466
2623
  },
2467
2624
  codeInput: {
2468
2625
  groupLabel: (length) => `Staðfestingarkóði, ${length} tölustafir`,
@@ -2613,6 +2770,11 @@ const is = {
2613
2770
  clear: "Hreinsa einkunn"
2614
2771
  },
2615
2772
  spinner: { label: "Hleð" },
2773
+ stat: {
2774
+ up: (change) => `Hækkun um ${change}`,
2775
+ down: (change) => `Lækkun um ${change}`,
2776
+ unchanged: "Engin breyting"
2777
+ },
2616
2778
  stepper: {
2617
2779
  stepsLabel: "Skref",
2618
2780
  optional: "valfrjálst",
@@ -2713,7 +2875,20 @@ const nl = {
2713
2875
  total: "Totaal",
2714
2876
  trend: "Trend",
2715
2877
  trendSummary: (first, last, low, high) => `Van ${first} naar ${last}, laagste ${low}, hoogste ${high}`,
2716
- referenceLine: (label, value) => label ? `Referentielijn, ${label}: ${value}` : `Referentielijn: ${value}`
2878
+ referenceLine: (label, value) => label ? `Referentielijn, ${label}: ${value}` : `Referentielijn: ${value}`,
2879
+ gauge: "Meter",
2880
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
2717
2892
  },
2718
2893
  codeInput: {
2719
2894
  groupLabel: (length) => `Verificatiecode, ${length} cijfers`,
@@ -2864,6 +3039,11 @@ const nl = {
2864
3039
  clear: "Beoordeling wissen"
2865
3040
  },
2866
3041
  spinner: { label: "Laden" },
3042
+ stat: {
3043
+ up: (change) => `Gestegen met ${change}`,
3044
+ down: (change) => `Gedaald met ${change}`,
3045
+ unchanged: "Onveranderd"
3046
+ },
2867
3047
  stepper: {
2868
3048
  stepsLabel: "Stappen",
2869
3049
  optional: "optioneel",
@@ -2964,7 +3144,20 @@ const pl = {
2964
3144
  total: "Suma",
2965
3145
  trend: "Trend",
2966
3146
  trendSummary: (first, last, low, high) => `Od ${first} do ${last}, minimum ${low}, maksimum ${high}`,
2967
- referenceLine: (label, value) => label ? `Linia odniesienia, ${label}: ${value}` : `Linia odniesienia: ${value}`
3147
+ referenceLine: (label, value) => label ? `Linia odniesienia, ${label}: ${value}` : `Linia odniesienia: ${value}`,
3148
+ gauge: "Wskaźnik",
3149
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
2968
3161
  },
2969
3162
  codeInput: {
2970
3163
  groupLabel: (length) => `Kod weryfikacyjny, ${length} cyfr`,
@@ -3115,6 +3308,11 @@ const pl = {
3115
3308
  clear: "Wyczyść ocenę"
3116
3309
  },
3117
3310
  spinner: { label: "Ładowanie" },
3311
+ stat: {
3312
+ up: (change) => `Wzrost o ${change}`,
3313
+ down: (change) => `Spadek o ${change}`,
3314
+ unchanged: "Bez zmian"
3315
+ },
3118
3316
  stepper: {
3119
3317
  stepsLabel: "Kroki",
3120
3318
  optional: "opcjonalny",
@@ -3215,7 +3413,20 @@ const ptBR = {
3215
3413
  total: "Total",
3216
3414
  trend: "Tendência",
3217
3415
  trendSummary: (first, last, low, high) => `De ${first} a ${last}, mínimo ${low}, máximo ${high}`,
3218
- referenceLine: (label, value) => label ? `Linha de referência, ${label}: ${value}` : `Linha de referência: ${value}`
3416
+ referenceLine: (label, value) => label ? `Linha de referência, ${label}: ${value}` : `Linha de referência: ${value}`,
3417
+ gauge: "Medidor",
3418
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
3219
3430
  },
3220
3431
  codeInput: {
3221
3432
  groupLabel: (length) => `Código de verificação, ${length} dígitos`,
@@ -3366,6 +3577,11 @@ const ptBR = {
3366
3577
  clear: "Limpar avaliação"
3367
3578
  },
3368
3579
  spinner: { label: "Carregando" },
3580
+ stat: {
3581
+ up: (change) => `Alta de ${change}`,
3582
+ down: (change) => `Queda de ${change}`,
3583
+ unchanged: "Sem alteração"
3584
+ },
3369
3585
  stepper: {
3370
3586
  stepsLabel: "Etapas",
3371
3587
  optional: "opcional",
@@ -3466,7 +3682,20 @@ const ru = {
3466
3682
  total: "Итого",
3467
3683
  trend: "Динамика",
3468
3684
  trendSummary: (first, last, low, high) => `С ${first} до ${last}, минимум ${low}, максимум ${high}`,
3469
- referenceLine: (label, value) => label ? `Опорная линия, ${label}: ${value}` : `Опорная линия: ${value}`
3685
+ referenceLine: (label, value) => label ? `Опорная линия, ${label}: ${value}` : `Опорная линия: ${value}`,
3686
+ gauge: "Индикатор",
3687
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
3470
3699
  },
3471
3700
  codeInput: {
3472
3701
  groupLabel: (length) => `Код подтверждения, ${length} цифр`,
@@ -3617,6 +3846,11 @@ const ru = {
3617
3846
  clear: "Очистить оценку"
3618
3847
  },
3619
3848
  spinner: { label: "Загрузка" },
3849
+ stat: {
3850
+ up: (change) => `Рост на ${change}`,
3851
+ down: (change) => `Снижение на ${change}`,
3852
+ unchanged: "Без изменений"
3853
+ },
3620
3854
  stepper: {
3621
3855
  stepsLabel: "Шаги",
3622
3856
  optional: "необязательно",
@@ -3717,7 +3951,20 @@ const uk = {
3717
3951
  total: "Разом",
3718
3952
  trend: "Динаміка",
3719
3953
  trendSummary: (first, last, low, high) => `Від ${first} до ${last}, мінімум ${low}, максимум ${high}`,
3720
- referenceLine: (label, value) => label ? `Опорна лінія, ${label}: ${value}` : `Опорна лінія: ${value}`
3954
+ referenceLine: (label, value) => label ? `Опорна лінія, ${label}: ${value}` : `Опорна лінія: ${value}`,
3955
+ gauge: "Індикатор",
3956
+ gaugeValue: (value, band) => band ? `${value}, ${band}` : value,
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}` : ""}`
3721
3968
  },
3722
3969
  codeInput: {
3723
3970
  groupLabel: (length) => `Код підтвердження, ${length} цифр`,
@@ -3868,6 +4115,11 @@ const uk = {
3868
4115
  clear: "Очистити оцінку"
3869
4116
  },
3870
4117
  spinner: { label: "Завантаження" },
4118
+ stat: {
4119
+ up: (change) => `Зростання на ${change}`,
4120
+ down: (change) => `Зниження на ${change}`,
4121
+ unchanged: "Без змін"
4122
+ },
3871
4123
  stepper: {
3872
4124
  stepsLabel: "Кроки",
3873
4125
  optional: "необов’язково",
@@ -3968,7 +4220,20 @@ const zhCN = {
3968
4220
  total: "总计",
3969
4221
  trend: "趋势",
3970
4222
  trendSummary: (first, last, low, high) => `从 ${first} 到 ${last},最低 ${low},最高 ${high}`,
3971
- referenceLine: (label, value) => label ? `参考线,${label}:${value}` : `参考线:${value}`
4223
+ referenceLine: (label, value) => label ? `参考线,${label}:${value}` : `参考线:${value}`,
4224
+ gauge: "仪表盘",
4225
+ gaugeValue: (value, band) => band ? `${value},${band}` : value,
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}` : ""}`
3972
4237
  },
3973
4238
  codeInput: {
3974
4239
  groupLabel: (length) => `验证码,共 ${length} 位`,
@@ -4119,6 +4384,11 @@ const zhCN = {
4119
4384
  clear: "清除评分"
4120
4385
  },
4121
4386
  spinner: { label: "加载中" },
4387
+ stat: {
4388
+ up: (change) => `上升 ${change}`,
4389
+ down: (change) => `下降 ${change}`,
4390
+ unchanged: "无变化"
4391
+ },
4122
4392
  stepper: {
4123
4393
  stepsLabel: "步骤",
4124
4394
  optional: "可选",
@@ -23861,198 +24131,506 @@ function roundTo(value, digits) {
23861
24131
  const factor = 10 ** digits;
23862
24132
  return (Math.round(value * factor) / factor).toString();
23863
24133
  }
23864
- const EDGE_INSET = 8;
23865
- const DRAG_THRESHOLD = 4;
23866
- const WHEEL_LINE_PX = 16;
23867
- const ZOOM_RATE = .01;
23868
- function valueBetween(a, b, position, curve) {
23869
- if (curve === "step") return position < (a.position + b.position) / 2 ? a.value : b.value;
23870
- return a.value + (b.value - a.value) * (position - a.position) / (b.position - a.position);
24134
+ const THICKNESS = .1;
24135
+ const BAND_THICKNESS = .3;
24136
+ const BAND_GAP = .2;
24137
+ function polar$1(cx, cy, r, angle) {
24138
+ return [cx + r * Math.cos(angle), cy + r * Math.sin(angle)];
23871
24139
  }
23872
- let nextId = 0;
23873
- var LineChartComponent = class LineChartComponent {
24140
+ function arcPath(cx, cy, r, start, end) {
24141
+ const [x0, y0] = polar$1(cx, cy, r, Math.PI * (1 + start));
24142
+ const [x1, y1] = polar$1(cx, cy, r, Math.PI * (1 + end));
24143
+ return `M${x0},${y0}A${r},${r} 0 0 1 ${x1},${y1}`;
24144
+ }
24145
+ var GaugeComponent = class GaugeComponent {
23874
24146
  i18n = inject(EagamiI18nService);
23875
- labels = input([], ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
23876
- series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
23877
- xValues = input(null, ...ngDevMode ? [{ debugName: "xValues" }] : /* istanbul ignore next */ []);
23878
- xTicks = input(null, ...ngDevMode ? [{ debugName: "xTicks" }] : /* istanbul ignore next */ []);
23879
- visibleXSpan = input(null, ...ngDevMode ? [{ debugName: "visibleXSpan" }] : /* istanbul ignore next */ []);
23880
- curve = input("linear", ...ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []);
23881
- showArea = input(false, ...ngDevMode ? [{ debugName: "showArea" }] : /* istanbul ignore next */ []);
23882
- showPoints = input(true, ...ngDevMode ? [{ debugName: "showPoints" }] : /* istanbul ignore next */ []);
23883
- connectGaps = input(false, ...ngDevMode ? [{ debugName: "connectGaps" }] : /* istanbul ignore next */ []);
23884
- showGrid = input(true, ...ngDevMode ? [{ debugName: "showGrid" }] : /* istanbul ignore next */ []);
24147
+ value = input(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
24148
+ min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
24149
+ max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
24150
+ bands = input([], ...ngDevMode ? [{ debugName: "bands" }] : /* istanbul ignore next */ []);
24151
+ caption = input(void 0, ...ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []);
24152
+ color = input(void 0, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
24153
+ showLimits = input(true, ...ngDevMode ? [{ debugName: "showLimits" }] : /* istanbul ignore next */ []);
24154
+ width = input(240, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
24155
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
24156
+ animation = input("sweep", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
24157
+ animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
24158
+ formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
24159
+ ariaLabel = input(void 0, {
24160
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
24161
+ alias: "aria-label"
24162
+ });
24163
+ viewport = injectChartViewport(this.size);
24164
+ format = injectChartFormatter(this.formatValue);
24165
+ bandsId = uniqueId("ea-gauge-bands");
24166
+ label = computed(() => this.ariaLabel() || this.caption() || this.i18n.messages().chart.gauge, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
24167
+ renderPass = computed(() => {
24168
+ this.animation();
24169
+ this.animationDuration();
24170
+ return [{}];
24171
+ }, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
24172
+ hostClasses = computed(() => ({
24173
+ [`ea-gauge--${this.size()}`]: true,
24174
+ [`ea-gauge--animate-${this.animation()}`]: true
24175
+ }), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
24176
+ current = computed(() => {
24177
+ const value = this.value();
24178
+ return isFinite(value) ? clamp$1(value, this.min(), this.max()) : this.min();
24179
+ }, ...ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []);
24180
+ fraction = computed(() => {
24181
+ const span = this.max() - this.min();
24182
+ return span > 0 ? (this.current() - this.min()) / span : 0;
24183
+ }, ...ngDevMode ? [{ debugName: "fraction" }] : /* istanbul ignore next */ []);
24184
+ scaledBands = computed(() => this.bands().map((band, index) => ({
24185
+ band,
24186
+ index,
24187
+ from: clamp$1(band.from, this.min(), this.max()),
24188
+ to: clamp$1(band.to, this.min(), this.max())
24189
+ })).filter(({ from, to }) => isFinite(from) && isFinite(to) && to > from), ...ngDevMode ? [{ debugName: "scaledBands" }] : /* istanbul ignore next */ []);
24190
+ activeBand = computed(() => {
24191
+ const value = this.current();
24192
+ return [...this.scaledBands()].reverse().find(({ from, to }) => value >= from && value <= to) ?? null;
24193
+ }, ...ngDevMode ? [{ debugName: "activeBand" }] : /* istanbul ignore next */ []);
24194
+ fill = computed(() => {
24195
+ const active = this.activeBand();
24196
+ return this.color() || (active ? chartColor(active.index, active.band.color) : chartColor(0));
24197
+ }, ...ngDevMode ? [{ debugName: "fill" }] : /* istanbul ignore next */ []);
24198
+ captionText = computed(() => this.caption() || this.activeBand()?.band.label || "", ...ngDevMode ? [{ debugName: "captionText" }] : /* istanbul ignore next */ []);
24199
+ layout = computed(() => {
24200
+ const width = Math.max(1, Math.min(this.viewport.width(), this.width()));
24201
+ const axisPx = this.viewport.fontSize() * .75;
24202
+ const span = this.max() - this.min();
24203
+ const thickness = width * THICKNESS;
24204
+ const hasBands = this.scaledBands().length > 0;
24205
+ const bandThickness = hasBands ? thickness * BAND_THICKNESS : 0;
24206
+ const bandGap = hasBands ? thickness * BAND_GAP : 0;
24207
+ const cx = width / 2;
24208
+ const cy = width / 2;
24209
+ const radius = Math.max(1, cx - bandThickness - bandGap - thickness / 2);
24210
+ const bandRadius = cx - bandThickness / 2;
24211
+ const at = (value) => span > 0 ? (value - this.min()) / span : 0;
24212
+ const bands = this.scaledBands().map(({ band, index, from, to }) => ({
24213
+ index,
24214
+ path: arcPath(cx, cy, bandRadius, at(from), at(to)),
24215
+ color: chartColor(index, band.color)
24216
+ }));
24217
+ const inner = Math.max(1, radius - thickness / 2);
24218
+ const room = inner * 1.5;
24219
+ const value = this.format()(isFinite(this.value()) ? this.value() : this.min());
24220
+ return {
24221
+ width,
24222
+ height: cy + (this.showLimits() ? axisPx * 1.75 : 0),
24223
+ thickness,
24224
+ bandThickness,
24225
+ track: arcPath(cx, cy, radius, 0, 1),
24226
+ bands,
24227
+ limits: {
24228
+ y: cy + axisPx * 1.25,
24229
+ minX: cx - radius,
24230
+ maxX: cx + radius
24231
+ },
24232
+ center: {
24233
+ left: cx - inner,
24234
+ width: inner * 2,
24235
+ height: cy,
24236
+ room,
24237
+ value,
24238
+ valuePx: Math.min(inner * .45, room / Math.max(1, value.length * .6))
24239
+ }
24240
+ };
24241
+ }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
24242
+ minText = computed(() => this.format()(this.min()), ...ngDevMode ? [{ debugName: "minText" }] : /* istanbul ignore next */ []);
24243
+ maxText = computed(() => this.format()(this.max()), ...ngDevMode ? [{ debugName: "maxText" }] : /* istanbul ignore next */ []);
24244
+ valueText = computed(() => {
24245
+ const band = this.activeBand()?.band.label ?? "";
24246
+ return this.i18n.messages().chart.gaugeValue(this.layout().center.value, band);
24247
+ }, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
24248
+ bandsSummary = computed(() => {
24249
+ const format = this.format();
24250
+ const describe = this.i18n.messages().chart.gaugeBand;
24251
+ return this.scaledBands().map(({ band, from, to }) => describe(band.label ?? "", format(from), format(to))).join(" ");
24252
+ }, ...ngDevMode ? [{ debugName: "bandsSummary" }] : /* istanbul ignore next */ []);
24253
+ static ɵfac = i0.ɵɵngDeclareFactory({
24254
+ minVersion: "12.0.0",
24255
+ version: "22.3.0",
24256
+ ngImport: i0,
24257
+ type: GaugeComponent,
24258
+ deps: [],
24259
+ target: i0.ɵɵFactoryTarget.Component
24260
+ });
24261
+ static ɵcmp = i0.ɵɵngDeclareComponent({
24262
+ minVersion: "17.0.0",
24263
+ version: "22.3.0",
24264
+ type: GaugeComponent,
24265
+ isStandalone: true,
24266
+ selector: "ea-gauge",
24267
+ inputs: {
24268
+ value: {
24269
+ classPropertyName: "value",
24270
+ publicName: "value",
24271
+ isSignal: true,
24272
+ isRequired: false,
24273
+ transformFunction: null
24274
+ },
24275
+ min: {
24276
+ classPropertyName: "min",
24277
+ publicName: "min",
24278
+ isSignal: true,
24279
+ isRequired: false,
24280
+ transformFunction: null
24281
+ },
24282
+ max: {
24283
+ classPropertyName: "max",
24284
+ publicName: "max",
24285
+ isSignal: true,
24286
+ isRequired: false,
24287
+ transformFunction: null
24288
+ },
24289
+ bands: {
24290
+ classPropertyName: "bands",
24291
+ publicName: "bands",
24292
+ isSignal: true,
24293
+ isRequired: false,
24294
+ transformFunction: null
24295
+ },
24296
+ caption: {
24297
+ classPropertyName: "caption",
24298
+ publicName: "caption",
24299
+ isSignal: true,
24300
+ isRequired: false,
24301
+ transformFunction: null
24302
+ },
24303
+ color: {
24304
+ classPropertyName: "color",
24305
+ publicName: "color",
24306
+ isSignal: true,
24307
+ isRequired: false,
24308
+ transformFunction: null
24309
+ },
24310
+ showLimits: {
24311
+ classPropertyName: "showLimits",
24312
+ publicName: "showLimits",
24313
+ isSignal: true,
24314
+ isRequired: false,
24315
+ transformFunction: null
24316
+ },
24317
+ width: {
24318
+ classPropertyName: "width",
24319
+ publicName: "width",
24320
+ isSignal: true,
24321
+ isRequired: false,
24322
+ transformFunction: null
24323
+ },
24324
+ size: {
24325
+ classPropertyName: "size",
24326
+ publicName: "size",
24327
+ isSignal: true,
24328
+ isRequired: false,
24329
+ transformFunction: null
24330
+ },
24331
+ animation: {
24332
+ classPropertyName: "animation",
24333
+ publicName: "animation",
24334
+ isSignal: true,
24335
+ isRequired: false,
24336
+ transformFunction: null
24337
+ },
24338
+ animationDuration: {
24339
+ classPropertyName: "animationDuration",
24340
+ publicName: "animationDuration",
24341
+ isSignal: true,
24342
+ isRequired: false,
24343
+ transformFunction: null
24344
+ },
24345
+ formatValue: {
24346
+ classPropertyName: "formatValue",
24347
+ publicName: "formatValue",
24348
+ isSignal: true,
24349
+ isRequired: false,
24350
+ transformFunction: null
24351
+ },
24352
+ ariaLabel: {
24353
+ classPropertyName: "ariaLabel",
24354
+ publicName: "aria-label",
24355
+ isSignal: true,
24356
+ isRequired: false,
24357
+ transformFunction: null
24358
+ }
24359
+ },
24360
+ ngImport: i0,
24361
+ template: "<div\n class=\"ea-gauge\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\">\n <div\n class=\"ea-gauge__meter\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuetext]=\"valueText()\"\n [attr.aria-describedby]=\"bandsSummary() ? bandsId : null\">\n <div\n class=\"ea-gauge__figure\"\n [style.width.px]=\"layout().width\"\n [style.height.px]=\"layout().height\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-gauge__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 @for (band of layout().bands; track band.index) {\n <path\n class=\"ea-gauge__band\"\n [style.--ea-chart-color]=\"band.color\"\n [attr.stroke-width]=\"layout().bandThickness\"\n [attr.d]=\"band.path\" />\n }\n <path\n class=\"ea-gauge__track\"\n [attr.stroke-width]=\"layout().thickness\"\n [attr.d]=\"layout().track\" />\n <path\n class=\"ea-gauge__arc\"\n pathLength=\"1\"\n [style.--ea-chart-color]=\"fill()\"\n [attr.stroke-dasharray]=\"fraction() + ' 1'\"\n [attr.stroke-width]=\"layout().thickness\"\n [attr.d]=\"layout().track\" />\n @if (showLimits()) {\n <text\n class=\"ea-gauge__limit\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().limits.minX\"\n [attr.y]=\"layout().limits.y\">\n {{ minText() }}\n </text>\n <text\n class=\"ea-gauge__limit\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().limits.maxX\"\n [attr.y]=\"layout().limits.y\">\n {{ maxText() }}\n </text>\n }\n </svg>\n <div\n class=\"ea-gauge__center\"\n aria-hidden=\"true\"\n [style.left.px]=\"layout().center.left\"\n [style.width.px]=\"layout().center.width\"\n [style.height.px]=\"layout().center.height\"\n [style.--ea-gauge-room]=\"layout().center.room + 'px'\">\n <span\n class=\"ea-gauge__value\"\n [style.font-size.px]=\"layout().center.valuePx\">\n {{ layout().center.value }}\n </span>\n @if (captionText()) {\n <span class=\"ea-gauge__caption\">{{ captionText() }}</span>\n }\n </div>\n }\n </div>\n <span\n hidden\n [id]=\"bandsId\">\n {{ bandsSummary() }}\n </span>\n </div>\n</div>\n",
24362
+ 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-gauge{display:block}.ea-gauge{position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-gauge--2xs{font-size:var(--font-size-2xs)}.ea-gauge--xs{font-size:var(--font-size-xs)}.ea-gauge--sm{font-size:var(--font-size-sm)}.ea-gauge--md{font-size:var(--font-size-md)}.ea-gauge--lg{font-size:var(--font-size-lg)}.ea-gauge--xl{font-size:var(--font-size-xl)}.ea-gauge__meter{display:flex;justify-content:center}.ea-gauge__figure{position:relative}.ea-gauge__svg{overflow:visible;display:block;direction:ltr}.ea-gauge__track,.ea-gauge__arc,.ea-gauge__band{fill:none;stroke-linecap:butt}.ea-gauge__track{stroke:var(--color-bg-muted)}.ea-gauge__arc,.ea-gauge__band{stroke:var(--ea-chart-color)}.ea-gauge__limit{font-size:.75em;fill:var(--color-text-secondary);font-variant-numeric:tabular-nums}.ea-gauge__center{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;line-height:var(--line-height-tight);text-align:center;pointer-events:none}.ea-gauge__value,.ea-gauge__caption{overflow:hidden;max-width:var(--ea-gauge-room);white-space:nowrap;text-overflow:ellipsis}.ea-gauge__value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-gauge__caption{font-size:.875em;color:var(--color-text-secondary)}.ea-gauge--animate-sweep .ea-gauge__arc{animation-name:ea-gauge-sweep;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:backwards}.ea-gauge--animate-fade .ea-gauge__svg,.ea-gauge--animate-fade .ea-gauge__center{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-gauge--animate-fade .ea-gauge__svg,.ea-gauge--animate-fade .ea-gauge__center{animation:none}}.ea-gauge--animate-sweep .ea-gauge__center{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-gauge--animate-sweep .ea-gauge__center{animation:none}}.ea-gauge--animate-sweep .ea-gauge__arc,.ea-gauge--animate-fade .ea-gauge__arc{transition:stroke-dasharray var(--ea-chart-duration, .6s) var(--ease-out),stroke var(--ea-chart-duration, .6s) var(--ease-out)}@media(prefers-reduced-motion:reduce){.ea-gauge .ea-gauge__arc{transition:none;animation:none}}@media(forced-colors:active){.ea-gauge .ea-gauge__track{stroke:GrayText}.ea-gauge .ea-gauge__arc{stroke:Highlight}.ea-gauge .ea-gauge__band{stroke:CanvasText}}@keyframes ea-gauge-sweep{0%{stroke-dasharray:0 1}}\n"],
24363
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
24364
+ encapsulation: i0.ViewEncapsulation.None
24365
+ });
24366
+ };
24367
+ i0.ɵɵngDeclareClassMetadata({
24368
+ minVersion: "12.0.0",
24369
+ version: "22.3.0",
24370
+ ngImport: i0,
24371
+ type: GaugeComponent,
24372
+ decorators: [{
24373
+ type: Component,
24374
+ args: [{
24375
+ selector: "ea-gauge",
24376
+ changeDetection: ChangeDetectionStrategy.OnPush,
24377
+ encapsulation: ViewEncapsulation.None,
24378
+ template: "<div\n class=\"ea-gauge\"\n [class]=\"hostClasses()\"\n [style.--ea-chart-duration]=\"animationDuration() + 'ms'\">\n <div\n class=\"ea-gauge__meter\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuetext]=\"valueText()\"\n [attr.aria-describedby]=\"bandsSummary() ? bandsId : null\">\n <div\n class=\"ea-gauge__figure\"\n [style.width.px]=\"layout().width\"\n [style.height.px]=\"layout().height\">\n @for (pass of renderPass(); track pass) {\n <svg\n class=\"ea-gauge__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 @for (band of layout().bands; track band.index) {\n <path\n class=\"ea-gauge__band\"\n [style.--ea-chart-color]=\"band.color\"\n [attr.stroke-width]=\"layout().bandThickness\"\n [attr.d]=\"band.path\" />\n }\n <path\n class=\"ea-gauge__track\"\n [attr.stroke-width]=\"layout().thickness\"\n [attr.d]=\"layout().track\" />\n <path\n class=\"ea-gauge__arc\"\n pathLength=\"1\"\n [style.--ea-chart-color]=\"fill()\"\n [attr.stroke-dasharray]=\"fraction() + ' 1'\"\n [attr.stroke-width]=\"layout().thickness\"\n [attr.d]=\"layout().track\" />\n @if (showLimits()) {\n <text\n class=\"ea-gauge__limit\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().limits.minX\"\n [attr.y]=\"layout().limits.y\">\n {{ minText() }}\n </text>\n <text\n class=\"ea-gauge__limit\"\n text-anchor=\"middle\"\n [attr.x]=\"layout().limits.maxX\"\n [attr.y]=\"layout().limits.y\">\n {{ maxText() }}\n </text>\n }\n </svg>\n <div\n class=\"ea-gauge__center\"\n aria-hidden=\"true\"\n [style.left.px]=\"layout().center.left\"\n [style.width.px]=\"layout().center.width\"\n [style.height.px]=\"layout().center.height\"\n [style.--ea-gauge-room]=\"layout().center.room + 'px'\">\n <span\n class=\"ea-gauge__value\"\n [style.font-size.px]=\"layout().center.valuePx\">\n {{ layout().center.value }}\n </span>\n @if (captionText()) {\n <span class=\"ea-gauge__caption\">{{ captionText() }}</span>\n }\n </div>\n }\n </div>\n <span\n hidden\n [id]=\"bandsId\">\n {{ bandsSummary() }}\n </span>\n </div>\n</div>\n",
24379
+ 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-gauge{display:block}.ea-gauge{position:relative;display:flex;flex-direction:column;gap:.75em;font-family:var(--font-family-sans);color:var(--color-text-primary)}.ea-gauge--2xs{font-size:var(--font-size-2xs)}.ea-gauge--xs{font-size:var(--font-size-xs)}.ea-gauge--sm{font-size:var(--font-size-sm)}.ea-gauge--md{font-size:var(--font-size-md)}.ea-gauge--lg{font-size:var(--font-size-lg)}.ea-gauge--xl{font-size:var(--font-size-xl)}.ea-gauge__meter{display:flex;justify-content:center}.ea-gauge__figure{position:relative}.ea-gauge__svg{overflow:visible;display:block;direction:ltr}.ea-gauge__track,.ea-gauge__arc,.ea-gauge__band{fill:none;stroke-linecap:butt}.ea-gauge__track{stroke:var(--color-bg-muted)}.ea-gauge__arc,.ea-gauge__band{stroke:var(--ea-chart-color)}.ea-gauge__limit{font-size:.75em;fill:var(--color-text-secondary);font-variant-numeric:tabular-nums}.ea-gauge__center{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;line-height:var(--line-height-tight);text-align:center;pointer-events:none}.ea-gauge__value,.ea-gauge__caption{overflow:hidden;max-width:var(--ea-gauge-room);white-space:nowrap;text-overflow:ellipsis}.ea-gauge__value{font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-gauge__caption{font-size:.875em;color:var(--color-text-secondary)}.ea-gauge--animate-sweep .ea-gauge__arc{animation-name:ea-gauge-sweep;animation-duration:var(--ea-chart-duration, .6s);animation-timing-function:var(--ease-out);animation-fill-mode:backwards}.ea-gauge--animate-fade .ea-gauge__svg,.ea-gauge--animate-fade .ea-gauge__center{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-gauge--animate-fade .ea-gauge__svg,.ea-gauge--animate-fade .ea-gauge__center{animation:none}}.ea-gauge--animate-sweep .ea-gauge__center{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-gauge--animate-sweep .ea-gauge__center{animation:none}}.ea-gauge--animate-sweep .ea-gauge__arc,.ea-gauge--animate-fade .ea-gauge__arc{transition:stroke-dasharray var(--ea-chart-duration, .6s) var(--ease-out),stroke var(--ea-chart-duration, .6s) var(--ease-out)}@media(prefers-reduced-motion:reduce){.ea-gauge .ea-gauge__arc{transition:none;animation:none}}@media(forced-colors:active){.ea-gauge .ea-gauge__track{stroke:GrayText}.ea-gauge .ea-gauge__arc{stroke:Highlight}.ea-gauge .ea-gauge__band{stroke:CanvasText}}@keyframes ea-gauge-sweep{0%{stroke-dasharray:0 1}}\n"]
24380
+ }]
24381
+ }],
24382
+ propDecorators: {
24383
+ value: [{
24384
+ type: i0.Input,
24385
+ args: [{
24386
+ isSignal: true,
24387
+ alias: "value",
24388
+ required: false
24389
+ }]
24390
+ }],
24391
+ min: [{
24392
+ type: i0.Input,
24393
+ args: [{
24394
+ isSignal: true,
24395
+ alias: "min",
24396
+ required: false
24397
+ }]
24398
+ }],
24399
+ max: [{
24400
+ type: i0.Input,
24401
+ args: [{
24402
+ isSignal: true,
24403
+ alias: "max",
24404
+ required: false
24405
+ }]
24406
+ }],
24407
+ bands: [{
24408
+ type: i0.Input,
24409
+ args: [{
24410
+ isSignal: true,
24411
+ alias: "bands",
24412
+ required: false
24413
+ }]
24414
+ }],
24415
+ caption: [{
24416
+ type: i0.Input,
24417
+ args: [{
24418
+ isSignal: true,
24419
+ alias: "caption",
24420
+ required: false
24421
+ }]
24422
+ }],
24423
+ color: [{
24424
+ type: i0.Input,
24425
+ args: [{
24426
+ isSignal: true,
24427
+ alias: "color",
24428
+ required: false
24429
+ }]
24430
+ }],
24431
+ showLimits: [{
24432
+ type: i0.Input,
24433
+ args: [{
24434
+ isSignal: true,
24435
+ alias: "showLimits",
24436
+ required: false
24437
+ }]
24438
+ }],
24439
+ width: [{
24440
+ type: i0.Input,
24441
+ args: [{
24442
+ isSignal: true,
24443
+ alias: "width",
24444
+ required: false
24445
+ }]
24446
+ }],
24447
+ size: [{
24448
+ type: i0.Input,
24449
+ args: [{
24450
+ isSignal: true,
24451
+ alias: "size",
24452
+ required: false
24453
+ }]
24454
+ }],
24455
+ animation: [{
24456
+ type: i0.Input,
24457
+ args: [{
24458
+ isSignal: true,
24459
+ alias: "animation",
24460
+ required: false
24461
+ }]
24462
+ }],
24463
+ animationDuration: [{
24464
+ type: i0.Input,
24465
+ args: [{
24466
+ isSignal: true,
24467
+ alias: "animationDuration",
24468
+ required: false
24469
+ }]
24470
+ }],
24471
+ formatValue: [{
24472
+ type: i0.Input,
24473
+ args: [{
24474
+ isSignal: true,
24475
+ alias: "formatValue",
24476
+ required: false
24477
+ }]
24478
+ }],
24479
+ ariaLabel: [{
24480
+ type: i0.Input,
24481
+ args: [{
24482
+ isSignal: true,
24483
+ alias: "aria-label",
24484
+ required: false
24485
+ }]
24486
+ }]
24487
+ }
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 */ []);
23885
24502
  showLegend = input(true, ...ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []);
23886
- yMin = input(void 0, ...ngDevMode ? [{ debugName: "yMin" }] : /* istanbul ignore next */ []);
23887
- yMax = input(void 0, ...ngDevMode ? [{ debugName: "yMax" }] : /* istanbul ignore next */ []);
23888
- maxYStep = input(void 0, ...ngDevMode ? [{ debugName: "maxYStep" }] : /* istanbul ignore next */ []);
23889
- referenceLines = input([], ...ngDevMode ? [{ debugName: "referenceLines" }] : /* istanbul ignore next */ []);
23890
24503
  xLabelOrientation = input("horizontal", ...ngDevMode ? [{ debugName: "xLabelOrientation" }] : /* istanbul ignore next */ []);
23891
- showAxisBreak = input(false, ...ngDevMode ? [{ debugName: "showAxisBreak" }] : /* istanbul ignore next */ []);
23892
24504
  height = input(240, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
23893
24505
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
23894
- animation = input("draw", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
24506
+ animation = input("fade", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
23895
24507
  animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
23896
24508
  formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
23897
24509
  ariaLabel = input(void 0, {
23898
24510
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
23899
24511
  alias: "aria-label"
23900
24512
  });
23901
- pointClick = output();
23902
- activePointChange = output();
23903
- visibleRangeChange = output();
24513
+ cellClick = output();
24514
+ activeCellChange = output();
23904
24515
  viewport = injectChartViewport(this.size);
23905
24516
  format = injectChartFormatter(this.formatValue);
23906
- plotEl = viewChild("plot", ...ngDevMode ? [{ debugName: "plotEl" }] : /* istanbul ignore next */ []);
23907
24517
  active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
23908
- clipId = `ea-line-chart-clip-${nextId++}`;
23909
- breakMaskId = `${this.clipId}-break`;
23910
- panEnd = linkedSignal(() => {
23911
- this.xValues();
23912
- this.series();
23913
- this.visibleXSpan();
23914
- return null;
23915
- }, ...ngDevMode ? [{ debugName: "panEnd" }] : /* istanbul ignore next */ []);
23916
- zoomSpan = linkedSignal(() => this.visibleXSpan(), ...ngDevMode ? [{ debugName: "zoomSpan" }] : /* istanbul ignore next */ []);
23917
- gestureSpan = null;
23918
- panning = signal(false, ...ngDevMode ? [{ debugName: "panning" }] : /* istanbul ignore next */ []);
23919
- drag = null;
23920
- suppressClick = false;
23921
- releaseTap = null;
23922
- label = computed(() => this.ariaLabel() || this.i18n.messages().chart.lineChart, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
23923
- count = computed(() => Math.max(this.labels().length, ...this.series().map((s) => s.data.length), 0), ...ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []);
23924
- hasData = computed(() => this.series().some((s) => s.data.some((v) => this.isValue(v))), ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
23925
- positions = computed(() => {
23926
- const xValues = this.xValues();
23927
- return Array.from({ length: this.count() }, (_, i) => xValues ? xValues[i] ?? NaN : i);
23928
- }, ...ngDevMode ? [{ debugName: "positions" }] : /* 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 */ []);
23929
24528
  domain = computed(() => {
23930
- const points = this.positions().filter((p) => isFinite(p));
23931
- const known = [...points, ...this.xTicks()?.map((t) => t.value) ?? []].filter((p) => isFinite(p));
23932
- let first = known.length ? Math.min(...known) : 0;
23933
- let last = known.length ? Math.max(...known) : 0;
23934
- const span = this.zoomSpan();
23935
- if (points.length === 1) {
23936
- const [point] = points;
23937
- const reach = Math.min(Math.max(point - first, last - point), span != null && span > 0 ? span / 2 : Infinity);
23938
- first = point - reach;
23939
- last = point + reach;
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
+ };
23940
24552
  }
23941
- if (span == null || !(span > 0) || last - first <= span) return {
23942
- first,
23943
- last,
23944
- start: first,
23945
- end: last,
23946
- span: null
23947
- };
23948
- const end = clamp$1(this.panEnd() ?? last, first + span, last);
23949
24553
  return {
23950
- first,
23951
- last,
23952
- start: end - span,
23953
- end,
23954
- span
24554
+ diverging: false,
24555
+ low: lo,
24556
+ mid: (lo + hi) / 2,
24557
+ high: hi
23955
24558
  };
23956
24559
  }, ...ngDevMode ? [{ debugName: "domain" }] : /* istanbul ignore next */ []);
23957
- windowed = computed(() => this.domain().span != null, ...ngDevMode ? [{ debugName: "windowed" }] : /* istanbul ignore next */ []);
23958
- references = computed(() => plottableReferenceLines(this.referenceLines()), ...ngDevMode ? [{ debugName: "references" }] : /* 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 */ []);
23959
24569
  renderPass = computed(() => {
23960
- this.labels();
23961
- this.series();
23962
- this.xValues();
24570
+ this.values();
23963
24571
  this.animation();
23964
24572
  this.animationDuration();
23965
24573
  return [{}];
23966
24574
  }, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
23967
24575
  hostClasses = computed(() => ({
23968
- [`ea-line-chart--${this.size()}`]: true,
23969
- [`ea-line-chart--animate-${this.animation()}`]: true,
23970
- "ea-line-chart--pannable": this.windowed(),
23971
- "ea-line-chart--panning": this.panning()
24576
+ [`ea-heatmap--${this.size()}`]: true,
24577
+ [`ea-heatmap--animate-${this.animation()}`]: true,
24578
+ "ea-heatmap--diverging": this.scale() === "diverging"
23972
24579
  }), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
23973
- runs = computed(() => {
23974
- const positions = this.positions();
23975
- const connectGaps = this.connectGaps();
23976
- return this.series().map((s) => {
23977
- const runs = [];
23978
- let run = [];
23979
- positions.forEach((position, index) => {
23980
- const value = s.data[index];
23981
- if (!this.isValue(value) || !isFinite(position)) {
23982
- if (!connectGaps && run.length) {
23983
- runs.push(run);
23984
- run = [];
23985
- }
23986
- return;
23987
- }
23988
- run.push({
23989
- index,
23990
- position,
23991
- value
23992
- });
23993
- });
23994
- if (run.length) runs.push(run);
23995
- return runs;
23996
- });
23997
- }, ...ngDevMode ? [{ debugName: "runs" }] : /* istanbul ignore next */ []);
23998
- visibleValues = computed(() => {
23999
- const runs = this.runs().flat();
24000
- const domain = this.domain();
24001
- if (domain.span == null) return runs.flatMap((run) => run.map((p) => p.value));
24002
- const curve = this.curve();
24003
- const values = [];
24004
- for (const run of runs) run.forEach((point, i) => {
24005
- if (point.position >= domain.start && point.position <= domain.end) values.push(point.value);
24006
- const next = run[i + 1];
24007
- for (const edge of next ? [domain.start, domain.end] : []) if (point.position < edge && next.position > edge) values.push(valueBetween(point, next, edge, curve));
24008
- });
24009
- return values.length ? values : runs.flatMap((run) => run.map((p) => p.value));
24010
- }, ...ngDevMode ? [{ debugName: "visibleValues" }] : /* istanbul ignore next */ []);
24011
- withReferences(values) {
24012
- return values.length ? [...values, ...this.references().map((line) => line.value)] : values;
24013
- }
24014
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);
24015
24586
  const width = this.viewport.width();
24016
24587
  const height = this.height();
24017
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;
24018
24595
  const orientation = this.xLabelOrientation();
24019
- const fixedAngle = orientation === "auto" ? 0 : CHART_LABEL_ANGLES[orientation];
24020
- const plot = this.plotArea(width, height, axisPx, fixedAngle);
24021
24596
  const angle = orientation === "auto" ? [
24022
24597
  0,
24023
24598
  45,
24024
24599
  90
24025
- ].find((a) => this.labelsFit(plot.candidates, a, axisPx)) ?? 90 : fixedAngle;
24026
- const { plotHeight, min, max, level, tickTexts, left, plotWidth, x, xLabels } = angle === fixedAngle ? plot : this.plotArea(width, height, axisPx, angle);
24027
- const top = axisPx;
24028
- const y = (v) => top + (1 - (clamp$1(v, min, max) - min) / (max - min || 1)) * plotHeight;
24029
- const baselineY = y(clamp$1(0, min, max));
24030
- const breakY = this.showAxisBreak() && min > 0 && !level ? top + plotHeight - axisPx * BREAK_HEIGHT : null;
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;
24031
24604
  const axisY = top + plotHeight;
24032
- const curve = CHART_CURVES[this.curve()];
24033
- const series = this.series().map((s, seriesIndex) => {
24034
- const runs = this.runs()[seriesIndex].map((run) => run.map((p) => ({
24035
- x: x(p.index),
24036
- y: y(p.value),
24037
- index: p.index,
24038
- value: p.value
24039
- })));
24040
- return {
24041
- name: s.name,
24042
- color: chartColor(seriesIndex, s.color),
24043
- paths: runs.map(curve),
24044
- areas: runs.map((seg) => `${curve(seg)}L${seg[seg.length - 1].x},${baselineY}L${seg[0].x},${baselineY}Z`),
24045
- points: runs.flat()
24046
- };
24047
- });
24048
- const references = this.references().map((line, key) => ({
24049
- ...line,
24050
- key,
24051
- y: y(line.value)
24052
- })).filter((line) => line.value >= min && line.value <= max).map((line) => ({
24053
- ...line,
24054
- labelY: line.y - axisPx * 1.4 < top ? line.y + axisPx * 1.2 : line.y - axisPx * .4 - 2
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
+ });
24055
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));
24056
24634
  return {
24057
24635
  width,
24058
24636
  height,
@@ -24060,62 +24638,780 @@ var LineChartComponent = class LineChartComponent {
24060
24638
  left,
24061
24639
  plotWidth,
24062
24640
  plotHeight,
24063
- baselineY,
24064
- windowed: this.domain().span != null,
24065
- axisBreak: breakY == null ? null : axisBreak(left, top, axisY, breakY, axisPx),
24066
- axisY,
24067
- tickEndY: axisY + tickLength(axisPx),
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),
24068
24651
  labelAngle: angle,
24069
- labelY: labelLine(axisY, angle, axisPx),
24070
- tickX: left - axisPx / 2,
24071
- ticks: tickTexts.map((t) => ({
24072
- ...t,
24073
- y: y(t.value)
24074
- })).filter((t) => breakY == null || t.y < breakY - axisPx),
24075
- xLabels,
24076
- series,
24077
- references,
24078
- x,
24079
- y
24652
+ labelY: labelLine(axisY, angle, axisPx)
24080
24653
  };
24081
24654
  }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
24082
- plotArea(width, height, axisPx, angle) {
24083
- const format = this.format();
24084
- const domain = this.domain();
24085
- const windowed = domain.span != null;
24086
- const top = axisPx;
24087
- const bottom = labelBand(this.widestXLabel(axisPx), angle, axisPx, height);
24088
- const plotHeight = Math.max(1, height - top - bottom);
24089
- const maxTicks = Math.max(2, Math.floor(plotHeight / (axisPx * 3)));
24090
- const { min, max, ticks, unlabelled, level } = this.yScale(this.withReferences(this.visibleValues()), plotHeight, axisPx, maxTicks);
24091
- const tickTexts = ticks.map((value) => ({
24092
- value,
24093
- text: unlabelled ? "" : format(value)
24094
- }));
24095
- const gutterTexts = [...tickTexts.map((t) => t.text), ...windowed && !unlabelled ? this.yScale(this.withReferences(this.runs().flatMap((runs) => runs.flat().map((p) => p.value))), plotHeight, axisPx, maxTicks).ticks.map(format) : []];
24096
- const left = Math.max(0, ...gutterTexts.map((t) => estimateTextWidth(t, axisPx))) + axisPx;
24097
- const positions = this.positions();
24098
- const xAxis = (right) => {
24099
- const plotWidth = Math.max(1, width - left - right);
24100
- const at = this.atPosition(domain, left, plotWidth);
24101
- const x = (i) => at(positions[i]);
24102
- return {
24103
- plotWidth,
24104
- x,
24105
- xLabels: this.xLabels(domain, at, x, plotWidth, axisPx, angle),
24106
- candidates: this.xLabelCandidates(domain, at, x)
24107
- };
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)
24108
24664
  };
24109
- const axis = xAxis(axisPx / 2);
24110
- const xLabels = axis.xLabels.map((label) => {
24111
- if (angle) return {
24112
- ...label,
24113
- textX: label.x
24114
- };
24115
- const half = estimateTextWidth(label.text, axisPx) / 2;
24116
- return {
24117
- ...label,
24118
- textX: clamp$1(label.x, half, width - half)
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
+ });
25160
+ const EDGE_INSET = 8;
25161
+ const DRAG_THRESHOLD = 4;
25162
+ const WHEEL_LINE_PX = 16;
25163
+ const ZOOM_RATE = .01;
25164
+ function valueBetween(a, b, position, curve) {
25165
+ if (curve === "step") return position < (a.position + b.position) / 2 ? a.value : b.value;
25166
+ return a.value + (b.value - a.value) * (position - a.position) / (b.position - a.position);
25167
+ }
25168
+ let nextId = 0;
25169
+ var LineChartComponent = class LineChartComponent {
25170
+ i18n = inject(EagamiI18nService);
25171
+ labels = input([], ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
25172
+ series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
25173
+ xValues = input(null, ...ngDevMode ? [{ debugName: "xValues" }] : /* istanbul ignore next */ []);
25174
+ xTicks = input(null, ...ngDevMode ? [{ debugName: "xTicks" }] : /* istanbul ignore next */ []);
25175
+ visibleXSpan = input(null, ...ngDevMode ? [{ debugName: "visibleXSpan" }] : /* istanbul ignore next */ []);
25176
+ curve = input("linear", ...ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []);
25177
+ showArea = input(false, ...ngDevMode ? [{ debugName: "showArea" }] : /* istanbul ignore next */ []);
25178
+ showPoints = input(true, ...ngDevMode ? [{ debugName: "showPoints" }] : /* istanbul ignore next */ []);
25179
+ connectGaps = input(false, ...ngDevMode ? [{ debugName: "connectGaps" }] : /* istanbul ignore next */ []);
25180
+ showGrid = input(true, ...ngDevMode ? [{ debugName: "showGrid" }] : /* istanbul ignore next */ []);
25181
+ showLegend = input(true, ...ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []);
25182
+ yMin = input(void 0, ...ngDevMode ? [{ debugName: "yMin" }] : /* istanbul ignore next */ []);
25183
+ yMax = input(void 0, ...ngDevMode ? [{ debugName: "yMax" }] : /* istanbul ignore next */ []);
25184
+ maxYStep = input(void 0, ...ngDevMode ? [{ debugName: "maxYStep" }] : /* istanbul ignore next */ []);
25185
+ referenceLines = input([], ...ngDevMode ? [{ debugName: "referenceLines" }] : /* istanbul ignore next */ []);
25186
+ xLabelOrientation = input("horizontal", ...ngDevMode ? [{ debugName: "xLabelOrientation" }] : /* istanbul ignore next */ []);
25187
+ showAxisBreak = input(false, ...ngDevMode ? [{ debugName: "showAxisBreak" }] : /* istanbul ignore next */ []);
25188
+ height = input(240, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
25189
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
25190
+ animation = input("draw", ...ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []);
25191
+ animationDuration = input(600, ...ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []);
25192
+ formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
25193
+ ariaLabel = input(void 0, {
25194
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
25195
+ alias: "aria-label"
25196
+ });
25197
+ pointClick = output();
25198
+ activePointChange = output();
25199
+ visibleRangeChange = output();
25200
+ viewport = injectChartViewport(this.size);
25201
+ format = injectChartFormatter(this.formatValue);
25202
+ plotEl = viewChild("plot", ...ngDevMode ? [{ debugName: "plotEl" }] : /* istanbul ignore next */ []);
25203
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
25204
+ clipId = `ea-line-chart-clip-${nextId++}`;
25205
+ breakMaskId = `${this.clipId}-break`;
25206
+ panEnd = linkedSignal(() => {
25207
+ this.xValues();
25208
+ this.series();
25209
+ this.visibleXSpan();
25210
+ return null;
25211
+ }, ...ngDevMode ? [{ debugName: "panEnd" }] : /* istanbul ignore next */ []);
25212
+ zoomSpan = linkedSignal(() => this.visibleXSpan(), ...ngDevMode ? [{ debugName: "zoomSpan" }] : /* istanbul ignore next */ []);
25213
+ gestureSpan = null;
25214
+ panning = signal(false, ...ngDevMode ? [{ debugName: "panning" }] : /* istanbul ignore next */ []);
25215
+ drag = null;
25216
+ suppressClick = false;
25217
+ releaseTap = null;
25218
+ label = computed(() => this.ariaLabel() || this.i18n.messages().chart.lineChart, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
25219
+ count = computed(() => Math.max(this.labels().length, ...this.series().map((s) => s.data.length), 0), ...ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []);
25220
+ hasData = computed(() => this.series().some((s) => s.data.some((v) => this.isValue(v))), ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
25221
+ positions = computed(() => {
25222
+ const xValues = this.xValues();
25223
+ return Array.from({ length: this.count() }, (_, i) => xValues ? xValues[i] ?? NaN : i);
25224
+ }, ...ngDevMode ? [{ debugName: "positions" }] : /* istanbul ignore next */ []);
25225
+ domain = computed(() => {
25226
+ const points = this.positions().filter((p) => isFinite(p));
25227
+ const known = [...points, ...this.xTicks()?.map((t) => t.value) ?? []].filter((p) => isFinite(p));
25228
+ let first = known.length ? Math.min(...known) : 0;
25229
+ let last = known.length ? Math.max(...known) : 0;
25230
+ const span = this.zoomSpan();
25231
+ if (points.length === 1) {
25232
+ const [point] = points;
25233
+ const reach = Math.min(Math.max(point - first, last - point), span != null && span > 0 ? span / 2 : Infinity);
25234
+ first = point - reach;
25235
+ last = point + reach;
25236
+ }
25237
+ if (span == null || !(span > 0) || last - first <= span) return {
25238
+ first,
25239
+ last,
25240
+ start: first,
25241
+ end: last,
25242
+ span: null
25243
+ };
25244
+ const end = clamp$1(this.panEnd() ?? last, first + span, last);
25245
+ return {
25246
+ first,
25247
+ last,
25248
+ start: end - span,
25249
+ end,
25250
+ span
25251
+ };
25252
+ }, ...ngDevMode ? [{ debugName: "domain" }] : /* istanbul ignore next */ []);
25253
+ windowed = computed(() => this.domain().span != null, ...ngDevMode ? [{ debugName: "windowed" }] : /* istanbul ignore next */ []);
25254
+ references = computed(() => plottableReferenceLines(this.referenceLines()), ...ngDevMode ? [{ debugName: "references" }] : /* istanbul ignore next */ []);
25255
+ renderPass = computed(() => {
25256
+ this.labels();
25257
+ this.series();
25258
+ this.xValues();
25259
+ this.animation();
25260
+ this.animationDuration();
25261
+ return [{}];
25262
+ }, ...ngDevMode ? [{ debugName: "renderPass" }] : /* istanbul ignore next */ []);
25263
+ hostClasses = computed(() => ({
25264
+ [`ea-line-chart--${this.size()}`]: true,
25265
+ [`ea-line-chart--animate-${this.animation()}`]: true,
25266
+ "ea-line-chart--pannable": this.windowed(),
25267
+ "ea-line-chart--panning": this.panning()
25268
+ }), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
25269
+ runs = computed(() => {
25270
+ const positions = this.positions();
25271
+ const connectGaps = this.connectGaps();
25272
+ return this.series().map((s) => {
25273
+ const runs = [];
25274
+ let run = [];
25275
+ positions.forEach((position, index) => {
25276
+ const value = s.data[index];
25277
+ if (!this.isValue(value) || !isFinite(position)) {
25278
+ if (!connectGaps && run.length) {
25279
+ runs.push(run);
25280
+ run = [];
25281
+ }
25282
+ return;
25283
+ }
25284
+ run.push({
25285
+ index,
25286
+ position,
25287
+ value
25288
+ });
25289
+ });
25290
+ if (run.length) runs.push(run);
25291
+ return runs;
25292
+ });
25293
+ }, ...ngDevMode ? [{ debugName: "runs" }] : /* istanbul ignore next */ []);
25294
+ visibleValues = computed(() => {
25295
+ const runs = this.runs().flat();
25296
+ const domain = this.domain();
25297
+ if (domain.span == null) return runs.flatMap((run) => run.map((p) => p.value));
25298
+ const curve = this.curve();
25299
+ const values = [];
25300
+ for (const run of runs) run.forEach((point, i) => {
25301
+ if (point.position >= domain.start && point.position <= domain.end) values.push(point.value);
25302
+ const next = run[i + 1];
25303
+ for (const edge of next ? [domain.start, domain.end] : []) if (point.position < edge && next.position > edge) values.push(valueBetween(point, next, edge, curve));
25304
+ });
25305
+ return values.length ? values : runs.flatMap((run) => run.map((p) => p.value));
25306
+ }, ...ngDevMode ? [{ debugName: "visibleValues" }] : /* istanbul ignore next */ []);
25307
+ withReferences(values) {
25308
+ return values.length ? [...values, ...this.references().map((line) => line.value)] : values;
25309
+ }
25310
+ layout = computed(() => {
25311
+ const width = this.viewport.width();
25312
+ const height = this.height();
25313
+ const axisPx = this.viewport.fontSize() * .75;
25314
+ const orientation = this.xLabelOrientation();
25315
+ const fixedAngle = orientation === "auto" ? 0 : CHART_LABEL_ANGLES[orientation];
25316
+ const plot = this.plotArea(width, height, axisPx, fixedAngle);
25317
+ const angle = orientation === "auto" ? [
25318
+ 0,
25319
+ 45,
25320
+ 90
25321
+ ].find((a) => this.labelsFit(plot.candidates, a, axisPx)) ?? 90 : fixedAngle;
25322
+ const { plotHeight, min, max, level, tickTexts, left, plotWidth, x, xLabels } = angle === fixedAngle ? plot : this.plotArea(width, height, axisPx, angle);
25323
+ const top = axisPx;
25324
+ const y = (v) => top + (1 - (clamp$1(v, min, max) - min) / (max - min || 1)) * plotHeight;
25325
+ const baselineY = y(clamp$1(0, min, max));
25326
+ const breakY = this.showAxisBreak() && min > 0 && !level ? top + plotHeight - axisPx * BREAK_HEIGHT : null;
25327
+ const axisY = top + plotHeight;
25328
+ const curve = CHART_CURVES[this.curve()];
25329
+ const series = this.series().map((s, seriesIndex) => {
25330
+ const runs = this.runs()[seriesIndex].map((run) => run.map((p) => ({
25331
+ x: x(p.index),
25332
+ y: y(p.value),
25333
+ index: p.index,
25334
+ value: p.value
25335
+ })));
25336
+ return {
25337
+ name: s.name,
25338
+ color: chartColor(seriesIndex, s.color),
25339
+ paths: runs.map(curve),
25340
+ areas: runs.map((seg) => `${curve(seg)}L${seg[seg.length - 1].x},${baselineY}L${seg[0].x},${baselineY}Z`),
25341
+ points: runs.flat()
25342
+ };
25343
+ });
25344
+ const references = this.references().map((line, key) => ({
25345
+ ...line,
25346
+ key,
25347
+ y: y(line.value)
25348
+ })).filter((line) => line.value >= min && line.value <= max).map((line) => ({
25349
+ ...line,
25350
+ labelY: line.y - axisPx * 1.4 < top ? line.y + axisPx * 1.2 : line.y - axisPx * .4 - 2
25351
+ }));
25352
+ return {
25353
+ width,
25354
+ height,
25355
+ top,
25356
+ left,
25357
+ plotWidth,
25358
+ plotHeight,
25359
+ baselineY,
25360
+ windowed: this.domain().span != null,
25361
+ axisBreak: breakY == null ? null : axisBreak(left, top, axisY, breakY, axisPx),
25362
+ axisY,
25363
+ tickEndY: axisY + tickLength(axisPx),
25364
+ labelAngle: angle,
25365
+ labelY: labelLine(axisY, angle, axisPx),
25366
+ tickX: left - axisPx / 2,
25367
+ ticks: tickTexts.map((t) => ({
25368
+ ...t,
25369
+ y: y(t.value)
25370
+ })).filter((t) => breakY == null || t.y < breakY - axisPx),
25371
+ xLabels,
25372
+ series,
25373
+ references,
25374
+ x,
25375
+ y
25376
+ };
25377
+ }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
25378
+ plotArea(width, height, axisPx, angle) {
25379
+ const format = this.format();
25380
+ const domain = this.domain();
25381
+ const windowed = domain.span != null;
25382
+ const top = axisPx;
25383
+ const bottom = labelBand(this.widestXLabel(axisPx), angle, axisPx, height);
25384
+ const plotHeight = Math.max(1, height - top - bottom);
25385
+ const maxTicks = Math.max(2, Math.floor(plotHeight / (axisPx * 3)));
25386
+ const { min, max, ticks, unlabelled, level } = this.yScale(this.withReferences(this.visibleValues()), plotHeight, axisPx, maxTicks);
25387
+ const tickTexts = ticks.map((value) => ({
25388
+ value,
25389
+ text: unlabelled ? "" : format(value)
25390
+ }));
25391
+ const gutterTexts = [...tickTexts.map((t) => t.text), ...windowed && !unlabelled ? this.yScale(this.withReferences(this.runs().flatMap((runs) => runs.flat().map((p) => p.value))), plotHeight, axisPx, maxTicks).ticks.map(format) : []];
25392
+ const left = Math.max(0, ...gutterTexts.map((t) => estimateTextWidth(t, axisPx))) + axisPx;
25393
+ const positions = this.positions();
25394
+ const xAxis = (right) => {
25395
+ const plotWidth = Math.max(1, width - left - right);
25396
+ const at = this.atPosition(domain, left, plotWidth);
25397
+ const x = (i) => at(positions[i]);
25398
+ return {
25399
+ plotWidth,
25400
+ x,
25401
+ xLabels: this.xLabels(domain, at, x, plotWidth, axisPx, angle),
25402
+ candidates: this.xLabelCandidates(domain, at, x)
25403
+ };
25404
+ };
25405
+ const axis = xAxis(axisPx / 2);
25406
+ const xLabels = axis.xLabels.map((label) => {
25407
+ if (angle) return {
25408
+ ...label,
25409
+ textX: label.x
25410
+ };
25411
+ const half = estimateTextWidth(label.text, axisPx) / 2;
25412
+ return {
25413
+ ...label,
25414
+ textX: clamp$1(label.x, half, width - half)
24119
25415
  };
24120
25416
  });
24121
25417
  return {
@@ -29165,346 +30461,1069 @@ var RatingComponent = class RatingComponent extends LabelledFieldControlBase {
29165
30461
  this.commit(next);
29166
30462
  }
29167
30463
  }
29168
- commit(next) {
29169
- const clamped = this.clamp(next);
29170
- if (clamped === this.value()) return;
29171
- this.value.set(clamped);
29172
- this.onChange(clamped);
29173
- this.changed.emit(clamped);
30464
+ commit(next) {
30465
+ const clamped = this.clamp(next);
30466
+ if (clamped === this.value()) return;
30467
+ this.value.set(clamped);
30468
+ this.onChange(clamped);
30469
+ this.changed.emit(clamped);
30470
+ }
30471
+ clamp(value) {
30472
+ const min = this.min();
30473
+ const max = this.max();
30474
+ const step = this.step();
30475
+ const snapped = Math.round(value / step) * step;
30476
+ return Math.min(max, Math.max(min, snapped));
30477
+ }
30478
+ computePointerValue(event, pos) {
30479
+ if (!this.allowHalf()) return pos;
30480
+ const target = event.target;
30481
+ const rect = target?.getBoundingClientRect();
30482
+ if (!rect || rect.width === 0) return pos;
30483
+ let ratio = (event.clientX - rect.left) / rect.width;
30484
+ if (target && isRtl(target)) ratio = 1 - ratio;
30485
+ return ratio < .5 ? pos - .5 : pos;
30486
+ }
30487
+ static ɵfac = i0.ɵɵngDeclareFactory({
30488
+ minVersion: "12.0.0",
30489
+ version: "22.3.0",
30490
+ ngImport: i0,
30491
+ type: RatingComponent,
30492
+ deps: [],
30493
+ target: i0.ɵɵFactoryTarget.Component
30494
+ });
30495
+ static ɵcmp = i0.ɵɵngDeclareComponent({
30496
+ minVersion: "17.0.0",
30497
+ version: "22.3.0",
30498
+ type: RatingComponent,
30499
+ isStandalone: true,
30500
+ selector: "ea-rating",
30501
+ inputs: {
30502
+ ariaLabel: {
30503
+ classPropertyName: "ariaLabel",
30504
+ publicName: "aria-label",
30505
+ isSignal: true,
30506
+ isRequired: false,
30507
+ transformFunction: null
30508
+ },
30509
+ ariaLabelledby: {
30510
+ classPropertyName: "ariaLabelledby",
30511
+ publicName: "aria-labelledby",
30512
+ isSignal: true,
30513
+ isRequired: false,
30514
+ transformFunction: null
30515
+ },
30516
+ size: {
30517
+ classPropertyName: "size",
30518
+ publicName: "size",
30519
+ isSignal: true,
30520
+ isRequired: false,
30521
+ transformFunction: null
30522
+ },
30523
+ min: {
30524
+ classPropertyName: "min",
30525
+ publicName: "min",
30526
+ isSignal: true,
30527
+ isRequired: false,
30528
+ transformFunction: null
30529
+ },
30530
+ max: {
30531
+ classPropertyName: "max",
30532
+ publicName: "max",
30533
+ isSignal: true,
30534
+ isRequired: false,
30535
+ transformFunction: null
30536
+ },
30537
+ allowHalf: {
30538
+ classPropertyName: "allowHalf",
30539
+ publicName: "allowHalf",
30540
+ isSignal: true,
30541
+ isRequired: false,
30542
+ transformFunction: null
30543
+ },
30544
+ readonly: {
30545
+ classPropertyName: "readonly",
30546
+ publicName: "readonly",
30547
+ isSignal: true,
30548
+ isRequired: false,
30549
+ transformFunction: null
30550
+ },
30551
+ disabled: {
30552
+ classPropertyName: "disabled",
30553
+ publicName: "disabled",
30554
+ isSignal: true,
30555
+ isRequired: false,
30556
+ transformFunction: null
30557
+ },
30558
+ clearable: {
30559
+ classPropertyName: "clearable",
30560
+ publicName: "clearable",
30561
+ isSignal: true,
30562
+ isRequired: false,
30563
+ transformFunction: null
30564
+ },
30565
+ icon: {
30566
+ classPropertyName: "icon",
30567
+ publicName: "icon",
30568
+ isSignal: true,
30569
+ isRequired: false,
30570
+ transformFunction: null
30571
+ },
30572
+ halfIcon: {
30573
+ classPropertyName: "halfIcon",
30574
+ publicName: "halfIcon",
30575
+ isSignal: true,
30576
+ isRequired: false,
30577
+ transformFunction: null
30578
+ },
30579
+ id: {
30580
+ classPropertyName: "id",
30581
+ publicName: "id",
30582
+ isSignal: true,
30583
+ isRequired: false,
30584
+ transformFunction: null
30585
+ },
30586
+ value: {
30587
+ classPropertyName: "value",
30588
+ publicName: "value",
30589
+ isSignal: true,
30590
+ isRequired: false,
30591
+ transformFunction: null
30592
+ }
30593
+ },
30594
+ outputs: {
30595
+ value: "valueChange",
30596
+ changed: "changed",
30597
+ hoverChanged: "hoverChanged"
30598
+ },
30599
+ host: { properties: { "attr.aria-labelledby": "null" } },
30600
+ providers: [{
30601
+ provide: NG_VALUE_ACCESSOR,
30602
+ useExisting: forwardRef(() => RatingComponent),
30603
+ multi: true
30604
+ }],
30605
+ viewQueries: [{
30606
+ propertyName: "starsEl",
30607
+ first: true,
30608
+ predicate: ["starsEl"],
30609
+ descendants: true,
30610
+ isSignal: true
30611
+ }],
30612
+ usesInheritance: true,
30613
+ ngImport: i0,
30614
+ template: "<div\n class=\"ea-rating-field\"\n [class]=\"hostClasses()\">\n @if (label(); as labelText) {\n <ea-field-label\n [text]=\"labelText\"\n [icon]=\"labelIcon()\"\n [help]=\"labelHelp()\"\n [labelId]=\"id() + '-label'\"\n [required]=\"required()\"\n [optional]=\"optional()\" />\n }\n\n <div\n #starsEl\n class=\"ea-rating-field__stars\"\n role=\"slider\"\n tabindex=\"0\"\n [id]=\"id()\"\n [attr.aria-label]=\"ariaLabelledby() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"starAriaLabel(value())\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\">\n @for (pos of positions(); track pos) {\n <!--\n Stars are presentational click targets. The parent\n `<div role=\"slider\">` is the canonical interactive element (keyboard\n and AT navigation flows through it); using `<button>` here would\n nest two interactive controls and trip axe's `nested-interactive`.\n -->\n <span\n role=\"presentation\"\n class=\"ea-rating-field__star\"\n [class.ea-rating-field__star--full]=\"stateFor(pos) === 'full'\"\n [class.ea-rating-field__star--half]=\"stateFor(pos) === 'half'\"\n [class.ea-rating-field__star--empty]=\"stateFor(pos) === 'empty'\"\n [class.ea-rating-field__star--inert]=\"!isInteractive()\"\n (pointermove)=\"onPointerMove($event, pos)\"\n (click)=\"onClick($event, pos)\">\n <!--\n Background layer is always rendered as the dim full-star outline so\n empty positions show a visible silhouette and half positions reveal\n the unfilled side behind the foreground. Thinner stroke keeps the\n outline visually quiet against the filled foreground.\n -->\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--background\"\n aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon(); inputs: { strokeWidth: 1.5 }\" />\n </span>\n @if (stateFor(pos) !== 'empty') {\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--foreground\"\n aria-hidden=\"true\">\n <ng-container\n *ngComponentOutlet=\"stateFor(pos) === 'half' ? halfIcon() : icon()\" />\n </span>\n }\n </span>\n }\n </div>\n\n <ea-field-messages\n [id]=\"id()\"\n [error]=\"errorText()\"\n [hint]=\"showHint() ? hint() : null\" />\n</div>\n",
30615
+ styles: [":host{display:inline-block}.ea-rating-field{display:flex;flex-direction:column;gap:.375em;--ea-field-label-size: .875em;--ea-field-messages-size: .8125em}.ea-rating-field__stars{display:inline-flex;align-items:center;gap:.25em;border-radius:var(--radius-md)}.ea-rating-field__stars:focus-visible{outline:none;outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-rating-field__star{display:inline-flex;position:relative;align-items:center;justify-content:center;width:1em;height:1em;padding:0;font-size:1.5em;background:transparent;cursor:pointer;transition:var(--transition-colors)}.ea-rating-field__star--inert{pointer-events:none;cursor:default}.ea-rating-field__star-icon{display:inline-flex;position:absolute;top:0;inset-inline-start:0}.ea-rating-field__star-icon--background{color:var(--ea-rating-color-background, var(--color-text-tertiary));opacity:.3}.ea-rating-field__star-icon--foreground{color:var(--ea-rating-color, var(--color-warning-default));forced-color-adjust:none}.ea-rating-field--readonly .ea-rating-field__star,.ea-rating-field--disabled .ea-rating-field__star{cursor:default}.ea-rating-field--disabled{opacity:.6}.ea-rating-field--2xs{font-size:var(--font-size-2xs)}.ea-rating-field--xs{font-size:var(--font-size-xs)}.ea-rating-field--sm{font-size:var(--font-size-sm)}.ea-rating-field--md{font-size:var(--font-size-md)}.ea-rating-field--lg{font-size:var(--font-size-lg)}.ea-rating-field--xl{font-size:var(--font-size-xl)}.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:none;box-shadow:var(--shadow-focus-ring-error)}@media(forced-colors:active){.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}\n"],
30616
+ dependencies: [
30617
+ {
30618
+ kind: "component",
30619
+ type: FieldLabelComponent,
30620
+ selector: "ea-field-label",
30621
+ inputs: [
30622
+ "text",
30623
+ "icon",
30624
+ "help",
30625
+ "forId",
30626
+ "required",
30627
+ "optional",
30628
+ "labelId"
30629
+ ]
30630
+ },
30631
+ {
30632
+ kind: "component",
30633
+ type: FieldMessagesComponent,
30634
+ selector: "ea-field-messages",
30635
+ inputs: [
30636
+ "id",
30637
+ "error",
30638
+ "hint"
30639
+ ]
30640
+ },
30641
+ {
30642
+ kind: "directive",
30643
+ type: NgComponentOutlet,
30644
+ selector: "[ngComponentOutlet]",
30645
+ inputs: [
30646
+ "ngComponentOutlet",
30647
+ "ngComponentOutletInputs",
30648
+ "ngComponentOutletInjector",
30649
+ "ngComponentOutletEnvironmentInjector",
30650
+ "ngComponentOutletContent",
30651
+ "ngComponentOutletNgModule"
30652
+ ],
30653
+ exportAs: ["ngComponentOutlet"]
30654
+ }
30655
+ ],
30656
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
30657
+ });
30658
+ };
30659
+ i0.ɵɵngDeclareClassMetadata({
30660
+ minVersion: "12.0.0",
30661
+ version: "22.3.0",
30662
+ ngImport: i0,
30663
+ type: RatingComponent,
30664
+ decorators: [{
30665
+ type: Component,
30666
+ args: [{
30667
+ selector: "ea-rating",
30668
+ changeDetection: ChangeDetectionStrategy.OnPush,
30669
+ host: { "[attr.aria-labelledby]": "null" },
30670
+ imports: [
30671
+ FieldLabelComponent,
30672
+ FieldMessagesComponent,
30673
+ NgComponentOutlet
30674
+ ],
30675
+ providers: [{
30676
+ provide: NG_VALUE_ACCESSOR,
30677
+ useExisting: forwardRef(() => RatingComponent),
30678
+ multi: true
30679
+ }],
30680
+ template: "<div\n class=\"ea-rating-field\"\n [class]=\"hostClasses()\">\n @if (label(); as labelText) {\n <ea-field-label\n [text]=\"labelText\"\n [icon]=\"labelIcon()\"\n [help]=\"labelHelp()\"\n [labelId]=\"id() + '-label'\"\n [required]=\"required()\"\n [optional]=\"optional()\" />\n }\n\n <div\n #starsEl\n class=\"ea-rating-field__stars\"\n role=\"slider\"\n tabindex=\"0\"\n [id]=\"id()\"\n [attr.aria-label]=\"ariaLabelledby() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"starAriaLabel(value())\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\">\n @for (pos of positions(); track pos) {\n <!--\n Stars are presentational click targets. The parent\n `<div role=\"slider\">` is the canonical interactive element (keyboard\n and AT navigation flows through it); using `<button>` here would\n nest two interactive controls and trip axe's `nested-interactive`.\n -->\n <span\n role=\"presentation\"\n class=\"ea-rating-field__star\"\n [class.ea-rating-field__star--full]=\"stateFor(pos) === 'full'\"\n [class.ea-rating-field__star--half]=\"stateFor(pos) === 'half'\"\n [class.ea-rating-field__star--empty]=\"stateFor(pos) === 'empty'\"\n [class.ea-rating-field__star--inert]=\"!isInteractive()\"\n (pointermove)=\"onPointerMove($event, pos)\"\n (click)=\"onClick($event, pos)\">\n <!--\n Background layer is always rendered as the dim full-star outline so\n empty positions show a visible silhouette and half positions reveal\n the unfilled side behind the foreground. Thinner stroke keeps the\n outline visually quiet against the filled foreground.\n -->\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--background\"\n aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon(); inputs: { strokeWidth: 1.5 }\" />\n </span>\n @if (stateFor(pos) !== 'empty') {\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--foreground\"\n aria-hidden=\"true\">\n <ng-container\n *ngComponentOutlet=\"stateFor(pos) === 'half' ? halfIcon() : icon()\" />\n </span>\n }\n </span>\n }\n </div>\n\n <ea-field-messages\n [id]=\"id()\"\n [error]=\"errorText()\"\n [hint]=\"showHint() ? hint() : null\" />\n</div>\n",
30681
+ styles: [":host{display:inline-block}.ea-rating-field{display:flex;flex-direction:column;gap:.375em;--ea-field-label-size: .875em;--ea-field-messages-size: .8125em}.ea-rating-field__stars{display:inline-flex;align-items:center;gap:.25em;border-radius:var(--radius-md)}.ea-rating-field__stars:focus-visible{outline:none;outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-rating-field__star{display:inline-flex;position:relative;align-items:center;justify-content:center;width:1em;height:1em;padding:0;font-size:1.5em;background:transparent;cursor:pointer;transition:var(--transition-colors)}.ea-rating-field__star--inert{pointer-events:none;cursor:default}.ea-rating-field__star-icon{display:inline-flex;position:absolute;top:0;inset-inline-start:0}.ea-rating-field__star-icon--background{color:var(--ea-rating-color-background, var(--color-text-tertiary));opacity:.3}.ea-rating-field__star-icon--foreground{color:var(--ea-rating-color, var(--color-warning-default));forced-color-adjust:none}.ea-rating-field--readonly .ea-rating-field__star,.ea-rating-field--disabled .ea-rating-field__star{cursor:default}.ea-rating-field--disabled{opacity:.6}.ea-rating-field--2xs{font-size:var(--font-size-2xs)}.ea-rating-field--xs{font-size:var(--font-size-xs)}.ea-rating-field--sm{font-size:var(--font-size-sm)}.ea-rating-field--md{font-size:var(--font-size-md)}.ea-rating-field--lg{font-size:var(--font-size-lg)}.ea-rating-field--xl{font-size:var(--font-size-xl)}.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:none;box-shadow:var(--shadow-focus-ring-error)}@media(forced-colors:active){.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}\n"]
30682
+ }]
30683
+ }],
30684
+ ctorParameters: () => [],
30685
+ propDecorators: {
30686
+ starsEl: [{
30687
+ type: i0.ViewChild,
30688
+ args: ["starsEl", { isSignal: true }]
30689
+ }],
30690
+ ariaLabel: [{
30691
+ type: i0.Input,
30692
+ args: [{
30693
+ isSignal: true,
30694
+ alias: "aria-label",
30695
+ required: false
30696
+ }]
30697
+ }],
30698
+ ariaLabelledby: [{
30699
+ type: i0.Input,
30700
+ args: [{
30701
+ isSignal: true,
30702
+ alias: "aria-labelledby",
30703
+ required: false
30704
+ }]
30705
+ }],
30706
+ size: [{
30707
+ type: i0.Input,
30708
+ args: [{
30709
+ isSignal: true,
30710
+ alias: "size",
30711
+ required: false
30712
+ }]
30713
+ }],
30714
+ min: [{
30715
+ type: i0.Input,
30716
+ args: [{
30717
+ isSignal: true,
30718
+ alias: "min",
30719
+ required: false
30720
+ }]
30721
+ }],
30722
+ max: [{
30723
+ type: i0.Input,
30724
+ args: [{
30725
+ isSignal: true,
30726
+ alias: "max",
30727
+ required: false
30728
+ }]
30729
+ }],
30730
+ allowHalf: [{
30731
+ type: i0.Input,
30732
+ args: [{
30733
+ isSignal: true,
30734
+ alias: "allowHalf",
30735
+ required: false
30736
+ }]
30737
+ }],
30738
+ readonly: [{
30739
+ type: i0.Input,
30740
+ args: [{
30741
+ isSignal: true,
30742
+ alias: "readonly",
30743
+ required: false
30744
+ }]
30745
+ }],
30746
+ disabled: [{
30747
+ type: i0.Input,
30748
+ args: [{
30749
+ isSignal: true,
30750
+ alias: "disabled",
30751
+ required: false
30752
+ }]
30753
+ }],
30754
+ clearable: [{
30755
+ type: i0.Input,
30756
+ args: [{
30757
+ isSignal: true,
30758
+ alias: "clearable",
30759
+ required: false
30760
+ }]
30761
+ }],
30762
+ icon: [{
30763
+ type: i0.Input,
30764
+ args: [{
30765
+ isSignal: true,
30766
+ alias: "icon",
30767
+ required: false
30768
+ }]
30769
+ }],
30770
+ halfIcon: [{
30771
+ type: i0.Input,
30772
+ args: [{
30773
+ isSignal: true,
30774
+ alias: "halfIcon",
30775
+ required: false
30776
+ }]
30777
+ }],
30778
+ id: [{
30779
+ type: i0.Input,
30780
+ args: [{
30781
+ isSignal: true,
30782
+ alias: "id",
30783
+ required: false
30784
+ }]
30785
+ }],
30786
+ value: [{
30787
+ type: i0.Input,
30788
+ args: [{
30789
+ isSignal: true,
30790
+ alias: "value",
30791
+ required: false
30792
+ }]
30793
+ }, {
30794
+ type: i0.Output,
30795
+ args: ["valueChange"]
30796
+ }],
30797
+ changed: [{
30798
+ type: i0.Output,
30799
+ args: ["changed"]
30800
+ }],
30801
+ hoverChanged: [{
30802
+ type: i0.Output,
30803
+ args: ["hoverChanged"]
30804
+ }]
30805
+ }
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;
29174
31184
  }
29175
- clamp(value) {
29176
- const min = this.min();
29177
- const max = this.max();
29178
- const step = this.step();
29179
- const snapped = Math.round(value / step) * step;
29180
- return Math.min(max, Math.max(min, snapped));
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
+ };
29181
31199
  }
29182
- computePointerValue(event, pos) {
29183
- if (!this.allowHalf()) return pos;
29184
- const target = event.target;
29185
- const rect = target?.getBoundingClientRect();
29186
- if (!rect || rect.width === 0) return pos;
29187
- let ratio = (event.clientX - rect.left) / rect.width;
29188
- if (target && isRtl(target)) ratio = 1 - ratio;
29189
- return ratio < .5 ? pos - .5 : pos;
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));
29190
31205
  }
29191
31206
  static ɵfac = i0.ɵɵngDeclareFactory({
29192
31207
  minVersion: "12.0.0",
29193
31208
  version: "22.3.0",
29194
31209
  ngImport: i0,
29195
- type: RatingComponent,
31210
+ type: ScatterChartComponent,
29196
31211
  deps: [],
29197
31212
  target: i0.ɵɵFactoryTarget.Component
29198
31213
  });
29199
31214
  static ɵcmp = i0.ɵɵngDeclareComponent({
29200
31215
  minVersion: "17.0.0",
29201
31216
  version: "22.3.0",
29202
- type: RatingComponent,
31217
+ type: ScatterChartComponent,
29203
31218
  isStandalone: true,
29204
- selector: "ea-rating",
31219
+ selector: "ea-scatter-chart",
29205
31220
  inputs: {
29206
- ariaLabel: {
29207
- classPropertyName: "ariaLabel",
29208
- publicName: "aria-label",
31221
+ series: {
31222
+ classPropertyName: "series",
31223
+ publicName: "series",
29209
31224
  isSignal: true,
29210
31225
  isRequired: false,
29211
31226
  transformFunction: null
29212
31227
  },
29213
- ariaLabelledby: {
29214
- classPropertyName: "ariaLabelledby",
29215
- publicName: "aria-labelledby",
31228
+ xTitle: {
31229
+ classPropertyName: "xTitle",
31230
+ publicName: "xTitle",
29216
31231
  isSignal: true,
29217
31232
  isRequired: false,
29218
31233
  transformFunction: null
29219
31234
  },
29220
- size: {
29221
- classPropertyName: "size",
29222
- publicName: "size",
31235
+ yTitle: {
31236
+ classPropertyName: "yTitle",
31237
+ publicName: "yTitle",
29223
31238
  isSignal: true,
29224
31239
  isRequired: false,
29225
31240
  transformFunction: null
29226
31241
  },
29227
- min: {
29228
- classPropertyName: "min",
29229
- publicName: "min",
31242
+ sizeTitle: {
31243
+ classPropertyName: "sizeTitle",
31244
+ publicName: "sizeTitle",
29230
31245
  isSignal: true,
29231
31246
  isRequired: false,
29232
31247
  transformFunction: null
29233
31248
  },
29234
- max: {
29235
- classPropertyName: "max",
29236
- publicName: "max",
31249
+ maxBubbleRadius: {
31250
+ classPropertyName: "maxBubbleRadius",
31251
+ publicName: "maxBubbleRadius",
29237
31252
  isSignal: true,
29238
31253
  isRequired: false,
29239
31254
  transformFunction: null
29240
31255
  },
29241
- allowHalf: {
29242
- classPropertyName: "allowHalf",
29243
- publicName: "allowHalf",
31256
+ showGrid: {
31257
+ classPropertyName: "showGrid",
31258
+ publicName: "showGrid",
29244
31259
  isSignal: true,
29245
31260
  isRequired: false,
29246
31261
  transformFunction: null
29247
31262
  },
29248
- readonly: {
29249
- classPropertyName: "readonly",
29250
- publicName: "readonly",
31263
+ showLegend: {
31264
+ classPropertyName: "showLegend",
31265
+ publicName: "showLegend",
29251
31266
  isSignal: true,
29252
31267
  isRequired: false,
29253
31268
  transformFunction: null
29254
31269
  },
29255
- disabled: {
29256
- classPropertyName: "disabled",
29257
- publicName: "disabled",
31270
+ referenceLines: {
31271
+ classPropertyName: "referenceLines",
31272
+ publicName: "referenceLines",
29258
31273
  isSignal: true,
29259
31274
  isRequired: false,
29260
31275
  transformFunction: null
29261
31276
  },
29262
- clearable: {
29263
- classPropertyName: "clearable",
29264
- publicName: "clearable",
31277
+ xReferenceLines: {
31278
+ classPropertyName: "xReferenceLines",
31279
+ publicName: "xReferenceLines",
29265
31280
  isSignal: true,
29266
31281
  isRequired: false,
29267
31282
  transformFunction: null
29268
31283
  },
29269
- icon: {
29270
- classPropertyName: "icon",
29271
- publicName: "icon",
31284
+ height: {
31285
+ classPropertyName: "height",
31286
+ publicName: "height",
29272
31287
  isSignal: true,
29273
31288
  isRequired: false,
29274
31289
  transformFunction: null
29275
31290
  },
29276
- halfIcon: {
29277
- classPropertyName: "halfIcon",
29278
- publicName: "halfIcon",
31291
+ size: {
31292
+ classPropertyName: "size",
31293
+ publicName: "size",
29279
31294
  isSignal: true,
29280
31295
  isRequired: false,
29281
31296
  transformFunction: null
29282
31297
  },
29283
- id: {
29284
- classPropertyName: "id",
29285
- publicName: "id",
31298
+ animation: {
31299
+ classPropertyName: "animation",
31300
+ publicName: "animation",
29286
31301
  isSignal: true,
29287
31302
  isRequired: false,
29288
31303
  transformFunction: null
29289
31304
  },
29290
- value: {
29291
- classPropertyName: "value",
29292
- publicName: "value",
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",
29293
31336
  isSignal: true,
29294
31337
  isRequired: false,
29295
31338
  transformFunction: null
29296
31339
  }
29297
31340
  },
29298
31341
  outputs: {
29299
- value: "valueChange",
29300
- changed: "changed",
29301
- hoverChanged: "hoverChanged"
31342
+ pointClick: "pointClick",
31343
+ activePointChange: "activePointChange"
29302
31344
  },
29303
- host: { properties: { "attr.aria-labelledby": "null" } },
29304
- providers: [{
29305
- provide: NG_VALUE_ACCESSOR,
29306
- useExisting: forwardRef(() => RatingComponent),
29307
- multi: true
29308
- }],
29309
- viewQueries: [{
29310
- propertyName: "starsEl",
29311
- first: true,
29312
- predicate: ["starsEl"],
29313
- descendants: true,
29314
- isSignal: true
29315
- }],
29316
- usesInheritance: true,
29317
31345
  ngImport: i0,
29318
- template: "<div\n class=\"ea-rating-field\"\n [class]=\"hostClasses()\">\n @if (label(); as labelText) {\n <ea-field-label\n [text]=\"labelText\"\n [icon]=\"labelIcon()\"\n [help]=\"labelHelp()\"\n [labelId]=\"id() + '-label'\"\n [required]=\"required()\"\n [optional]=\"optional()\" />\n }\n\n <div\n #starsEl\n class=\"ea-rating-field__stars\"\n role=\"slider\"\n tabindex=\"0\"\n [id]=\"id()\"\n [attr.aria-label]=\"ariaLabelledby() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"starAriaLabel(value())\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\">\n @for (pos of positions(); track pos) {\n <!--\n Stars are presentational click targets. The parent\n `<div role=\"slider\">` is the canonical interactive element (keyboard\n and AT navigation flows through it); using `<button>` here would\n nest two interactive controls and trip axe's `nested-interactive`.\n -->\n <span\n role=\"presentation\"\n class=\"ea-rating-field__star\"\n [class.ea-rating-field__star--full]=\"stateFor(pos) === 'full'\"\n [class.ea-rating-field__star--half]=\"stateFor(pos) === 'half'\"\n [class.ea-rating-field__star--empty]=\"stateFor(pos) === 'empty'\"\n [class.ea-rating-field__star--inert]=\"!isInteractive()\"\n (pointermove)=\"onPointerMove($event, pos)\"\n (click)=\"onClick($event, pos)\">\n <!--\n Background layer is always rendered as the dim full-star outline so\n empty positions show a visible silhouette and half positions reveal\n the unfilled side behind the foreground. Thinner stroke keeps the\n outline visually quiet against the filled foreground.\n -->\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--background\"\n aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon(); inputs: { strokeWidth: 1.5 }\" />\n </span>\n @if (stateFor(pos) !== 'empty') {\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--foreground\"\n aria-hidden=\"true\">\n <ng-container\n *ngComponentOutlet=\"stateFor(pos) === 'half' ? halfIcon() : icon()\" />\n </span>\n }\n </span>\n }\n </div>\n\n <ea-field-messages\n [id]=\"id()\"\n [error]=\"errorText()\"\n [hint]=\"showHint() ? hint() : null\" />\n</div>\n",
29319
- styles: [":host{display:inline-block}.ea-rating-field{display:flex;flex-direction:column;gap:.375em;--ea-field-label-size: .875em;--ea-field-messages-size: .8125em}.ea-rating-field__stars{display:inline-flex;align-items:center;gap:.25em;border-radius:var(--radius-md)}.ea-rating-field__stars:focus-visible{outline:none;outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-rating-field__star{display:inline-flex;position:relative;align-items:center;justify-content:center;width:1em;height:1em;padding:0;font-size:1.5em;background:transparent;cursor:pointer;transition:var(--transition-colors)}.ea-rating-field__star--inert{pointer-events:none;cursor:default}.ea-rating-field__star-icon{display:inline-flex;position:absolute;top:0;inset-inline-start:0}.ea-rating-field__star-icon--background{color:var(--ea-rating-color-background, var(--color-text-tertiary));opacity:.3}.ea-rating-field__star-icon--foreground{color:var(--ea-rating-color, var(--color-warning-default));forced-color-adjust:none}.ea-rating-field--readonly .ea-rating-field__star,.ea-rating-field--disabled .ea-rating-field__star{cursor:default}.ea-rating-field--disabled{opacity:.6}.ea-rating-field--2xs{font-size:var(--font-size-2xs)}.ea-rating-field--xs{font-size:var(--font-size-xs)}.ea-rating-field--sm{font-size:var(--font-size-sm)}.ea-rating-field--md{font-size:var(--font-size-md)}.ea-rating-field--lg{font-size:var(--font-size-lg)}.ea-rating-field--xl{font-size:var(--font-size-xl)}.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:none;box-shadow:var(--shadow-focus-ring-error)}@media(forced-colors:active){.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}\n"],
29320
- dependencies: [
29321
- {
29322
- kind: "component",
29323
- type: FieldLabelComponent,
29324
- selector: "ea-field-label",
29325
- inputs: [
29326
- "text",
29327
- "icon",
29328
- "help",
29329
- "forId",
29330
- "required",
29331
- "optional",
29332
- "labelId"
29333
- ]
29334
- },
29335
- {
29336
- kind: "component",
29337
- type: FieldMessagesComponent,
29338
- selector: "ea-field-messages",
29339
- inputs: [
29340
- "id",
29341
- "error",
29342
- "hint"
29343
- ]
29344
- },
29345
- {
29346
- kind: "directive",
29347
- type: NgComponentOutlet,
29348
- selector: "[ngComponentOutlet]",
29349
- inputs: [
29350
- "ngComponentOutlet",
29351
- "ngComponentOutletInputs",
29352
- "ngComponentOutletInjector",
29353
- "ngComponentOutletEnvironmentInjector",
29354
- "ngComponentOutletContent",
29355
- "ngComponentOutletNgModule"
29356
- ],
29357
- exportAs: ["ngComponentOutlet"]
29358
- }
29359
- ],
29360
- changeDetection: i0.ChangeDetectionStrategy.OnPush
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
29361
31365
  });
29362
31366
  };
29363
31367
  i0.ɵɵngDeclareClassMetadata({
29364
31368
  minVersion: "12.0.0",
29365
31369
  version: "22.3.0",
29366
31370
  ngImport: i0,
29367
- type: RatingComponent,
31371
+ type: ScatterChartComponent,
29368
31372
  decorators: [{
29369
31373
  type: Component,
29370
31374
  args: [{
29371
- selector: "ea-rating",
31375
+ selector: "ea-scatter-chart",
31376
+ imports: [TooltipDirective],
29372
31377
  changeDetection: ChangeDetectionStrategy.OnPush,
29373
- host: { "[attr.aria-labelledby]": "null" },
29374
- imports: [
29375
- FieldLabelComponent,
29376
- FieldMessagesComponent,
29377
- NgComponentOutlet
29378
- ],
29379
- providers: [{
29380
- provide: NG_VALUE_ACCESSOR,
29381
- useExisting: forwardRef(() => RatingComponent),
29382
- multi: true
29383
- }],
29384
- template: "<div\n class=\"ea-rating-field\"\n [class]=\"hostClasses()\">\n @if (label(); as labelText) {\n <ea-field-label\n [text]=\"labelText\"\n [icon]=\"labelIcon()\"\n [help]=\"labelHelp()\"\n [labelId]=\"id() + '-label'\"\n [required]=\"required()\"\n [optional]=\"optional()\" />\n }\n\n <div\n #starsEl\n class=\"ea-rating-field__stars\"\n role=\"slider\"\n tabindex=\"0\"\n [id]=\"id()\"\n [attr.aria-label]=\"ariaLabelledby() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"starAriaLabel(value())\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\">\n @for (pos of positions(); track pos) {\n <!--\n Stars are presentational click targets. The parent\n `<div role=\"slider\">` is the canonical interactive element (keyboard\n and AT navigation flows through it); using `<button>` here would\n nest two interactive controls and trip axe's `nested-interactive`.\n -->\n <span\n role=\"presentation\"\n class=\"ea-rating-field__star\"\n [class.ea-rating-field__star--full]=\"stateFor(pos) === 'full'\"\n [class.ea-rating-field__star--half]=\"stateFor(pos) === 'half'\"\n [class.ea-rating-field__star--empty]=\"stateFor(pos) === 'empty'\"\n [class.ea-rating-field__star--inert]=\"!isInteractive()\"\n (pointermove)=\"onPointerMove($event, pos)\"\n (click)=\"onClick($event, pos)\">\n <!--\n Background layer is always rendered as the dim full-star outline so\n empty positions show a visible silhouette and half positions reveal\n the unfilled side behind the foreground. Thinner stroke keeps the\n outline visually quiet against the filled foreground.\n -->\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--background\"\n aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon(); inputs: { strokeWidth: 1.5 }\" />\n </span>\n @if (stateFor(pos) !== 'empty') {\n <span\n class=\"ea-rating-field__star-icon ea-rating-field__star-icon--foreground\"\n aria-hidden=\"true\">\n <ng-container\n *ngComponentOutlet=\"stateFor(pos) === 'half' ? halfIcon() : icon()\" />\n </span>\n }\n </span>\n }\n </div>\n\n <ea-field-messages\n [id]=\"id()\"\n [error]=\"errorText()\"\n [hint]=\"showHint() ? hint() : null\" />\n</div>\n",
29385
- styles: [":host{display:inline-block}.ea-rating-field{display:flex;flex-direction:column;gap:.375em;--ea-field-label-size: .875em;--ea-field-messages-size: .8125em}.ea-rating-field__stars{display:inline-flex;align-items:center;gap:.25em;border-radius:var(--radius-md)}.ea-rating-field__stars:focus-visible{outline:none;outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-rating-field__star{display:inline-flex;position:relative;align-items:center;justify-content:center;width:1em;height:1em;padding:0;font-size:1.5em;background:transparent;cursor:pointer;transition:var(--transition-colors)}.ea-rating-field__star--inert{pointer-events:none;cursor:default}.ea-rating-field__star-icon{display:inline-flex;position:absolute;top:0;inset-inline-start:0}.ea-rating-field__star-icon--background{color:var(--ea-rating-color-background, var(--color-text-tertiary));opacity:.3}.ea-rating-field__star-icon--foreground{color:var(--ea-rating-color, var(--color-warning-default));forced-color-adjust:none}.ea-rating-field--readonly .ea-rating-field__star,.ea-rating-field--disabled .ea-rating-field__star{cursor:default}.ea-rating-field--disabled{opacity:.6}.ea-rating-field--2xs{font-size:var(--font-size-2xs)}.ea-rating-field--xs{font-size:var(--font-size-xs)}.ea-rating-field--sm{font-size:var(--font-size-sm)}.ea-rating-field--md{font-size:var(--font-size-md)}.ea-rating-field--lg{font-size:var(--font-size-lg)}.ea-rating-field--xl{font-size:var(--font-size-xl)}.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:none;box-shadow:var(--shadow-focus-ring-error)}@media(forced-colors:active){.ea-rating-field--error .ea-rating-field__stars:focus-visible{outline:2px solid Highlight;outline-offset:2px}}\n"]
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"]
29386
31381
  }]
29387
31382
  }],
29388
- ctorParameters: () => [],
29389
31383
  propDecorators: {
29390
- starsEl: [{
29391
- type: i0.ViewChild,
29392
- args: ["starsEl", { isSignal: true }]
31384
+ series: [{
31385
+ type: i0.Input,
31386
+ args: [{
31387
+ isSignal: true,
31388
+ alias: "series",
31389
+ required: false
31390
+ }]
29393
31391
  }],
29394
- ariaLabel: [{
31392
+ xTitle: [{
29395
31393
  type: i0.Input,
29396
31394
  args: [{
29397
31395
  isSignal: true,
29398
- alias: "aria-label",
31396
+ alias: "xTitle",
29399
31397
  required: false
29400
31398
  }]
29401
31399
  }],
29402
- ariaLabelledby: [{
31400
+ yTitle: [{
29403
31401
  type: i0.Input,
29404
31402
  args: [{
29405
31403
  isSignal: true,
29406
- alias: "aria-labelledby",
31404
+ alias: "yTitle",
29407
31405
  required: false
29408
31406
  }]
29409
31407
  }],
29410
- size: [{
31408
+ sizeTitle: [{
29411
31409
  type: i0.Input,
29412
31410
  args: [{
29413
31411
  isSignal: true,
29414
- alias: "size",
31412
+ alias: "sizeTitle",
29415
31413
  required: false
29416
31414
  }]
29417
31415
  }],
29418
- min: [{
31416
+ maxBubbleRadius: [{
29419
31417
  type: i0.Input,
29420
31418
  args: [{
29421
31419
  isSignal: true,
29422
- alias: "min",
31420
+ alias: "maxBubbleRadius",
29423
31421
  required: false
29424
31422
  }]
29425
31423
  }],
29426
- max: [{
31424
+ showGrid: [{
29427
31425
  type: i0.Input,
29428
31426
  args: [{
29429
31427
  isSignal: true,
29430
- alias: "max",
31428
+ alias: "showGrid",
29431
31429
  required: false
29432
31430
  }]
29433
31431
  }],
29434
- allowHalf: [{
31432
+ showLegend: [{
29435
31433
  type: i0.Input,
29436
31434
  args: [{
29437
31435
  isSignal: true,
29438
- alias: "allowHalf",
31436
+ alias: "showLegend",
29439
31437
  required: false
29440
31438
  }]
29441
31439
  }],
29442
- readonly: [{
31440
+ referenceLines: [{
29443
31441
  type: i0.Input,
29444
31442
  args: [{
29445
31443
  isSignal: true,
29446
- alias: "readonly",
31444
+ alias: "referenceLines",
29447
31445
  required: false
29448
31446
  }]
29449
31447
  }],
29450
- disabled: [{
31448
+ xReferenceLines: [{
29451
31449
  type: i0.Input,
29452
31450
  args: [{
29453
31451
  isSignal: true,
29454
- alias: "disabled",
31452
+ alias: "xReferenceLines",
29455
31453
  required: false
29456
31454
  }]
29457
31455
  }],
29458
- clearable: [{
31456
+ height: [{
29459
31457
  type: i0.Input,
29460
31458
  args: [{
29461
31459
  isSignal: true,
29462
- alias: "clearable",
31460
+ alias: "height",
29463
31461
  required: false
29464
31462
  }]
29465
31463
  }],
29466
- icon: [{
31464
+ size: [{
29467
31465
  type: i0.Input,
29468
31466
  args: [{
29469
31467
  isSignal: true,
29470
- alias: "icon",
31468
+ alias: "size",
29471
31469
  required: false
29472
31470
  }]
29473
31471
  }],
29474
- halfIcon: [{
31472
+ animation: [{
29475
31473
  type: i0.Input,
29476
31474
  args: [{
29477
31475
  isSignal: true,
29478
- alias: "halfIcon",
31476
+ alias: "animation",
29479
31477
  required: false
29480
31478
  }]
29481
31479
  }],
29482
- id: [{
31480
+ animationDuration: [{
29483
31481
  type: i0.Input,
29484
31482
  args: [{
29485
31483
  isSignal: true,
29486
- alias: "id",
31484
+ alias: "animationDuration",
29487
31485
  required: false
29488
31486
  }]
29489
31487
  }],
29490
- value: [{
31488
+ formatX: [{
29491
31489
  type: i0.Input,
29492
31490
  args: [{
29493
31491
  isSignal: true,
29494
- alias: "value",
31492
+ alias: "formatX",
29495
31493
  required: false
29496
31494
  }]
29497
- }, {
29498
- type: i0.Output,
29499
- args: ["valueChange"]
29500
31495
  }],
29501
- changed: [{
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: [{
29502
31521
  type: i0.Output,
29503
- args: ["changed"]
31522
+ args: ["pointClick"]
29504
31523
  }],
29505
- hoverChanged: [{
31524
+ activePointChange: [{
29506
31525
  type: i0.Output,
29507
- args: ["hoverChanged"]
31526
+ args: ["activePointChange"]
29508
31527
  }]
29509
31528
  }
29510
31529
  });
@@ -30875,6 +32894,304 @@ i0.ɵɵngDeclareClassMetadata({
30875
32894
  }]
30876
32895
  }
30877
32896
  });
32897
+ const SPARKLINE_EM = 2;
32898
+ const SIZE_PX = {
32899
+ "2xs": 10,
32900
+ xs: 12,
32901
+ sm: 14,
32902
+ md: 16,
32903
+ lg: 18,
32904
+ xl: 20
32905
+ };
32906
+ var StatComponent = class StatComponent {
32907
+ i18n = inject(EagamiI18nService);
32908
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
32909
+ value = input(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
32910
+ previousValue = input(null, ...ngDevMode ? [{ debugName: "previousValue" }] : /* istanbul ignore next */ []);
32911
+ changeFormat = input("percent", ...ngDevMode ? [{ debugName: "changeFormat" }] : /* istanbul ignore next */ []);
32912
+ invertTone = input(false, ...ngDevMode ? [{ debugName: "invertTone" }] : /* istanbul ignore next */ []);
32913
+ caption = input(void 0, ...ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []);
32914
+ sparkline = input([], ...ngDevMode ? [{ debugName: "sparkline" }] : /* istanbul ignore next */ []);
32915
+ sparklineVariant = input("area", ...ngDevMode ? [{ debugName: "sparklineVariant" }] : /* istanbul ignore next */ []);
32916
+ variant = input("outlined", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
32917
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
32918
+ formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
32919
+ format = injectChartFormatter(this.formatValue);
32920
+ hostClasses = computed(() => ({
32921
+ [`ea-stat--${this.size()}`]: true,
32922
+ [`ea-stat--${this.variant()}`]: true
32923
+ }), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
32924
+ formattedValue = computed(() => this.format()(this.value()), ...ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []);
32925
+ sparklineHeight = computed(() => SIZE_PX[this.size()] * SPARKLINE_EM, ...ngDevMode ? [{ debugName: "sparklineHeight" }] : /* istanbul ignore next */ []);
32926
+ hasSparkline = computed(() => this.sparkline().some((value) => value != null && isFinite(value)), ...ngDevMode ? [{ debugName: "hasSparkline" }] : /* istanbul ignore next */ []);
32927
+ change = computed(() => {
32928
+ const previous = this.previousValue();
32929
+ const value = this.value();
32930
+ if (previous == null || !isFinite(previous) || !isFinite(value)) return null;
32931
+ const difference = value - previous;
32932
+ const direction = difference > 0 ? "up" : difference < 0 ? "down" : "flat";
32933
+ const rising = direction === "up" ? !this.invertTone() : this.invertTone();
32934
+ const tone = direction === "flat" ? "neutral" : rising ? "positive" : "negative";
32935
+ const percent = this.changeFormat() === "percent" && previous !== 0;
32936
+ const relative = difference / Math.abs(previous) * 100;
32937
+ const text = percent ? this.signed(this.percent(relative), relative) : this.signed(this.format()(difference), difference);
32938
+ const magnitude = percent ? this.percent(Math.abs(relative)) : this.format()(Math.abs(difference));
32939
+ const messages = this.i18n.messages().stat;
32940
+ return {
32941
+ direction,
32942
+ tone,
32943
+ text,
32944
+ spoken: direction === "up" ? messages.up(magnitude) : direction === "down" ? messages.down(magnitude) : messages.unchanged
32945
+ };
32946
+ }, ...ngDevMode ? [{ debugName: "change" }] : /* istanbul ignore next */ []);
32947
+ percent(percent) {
32948
+ return `${formatGroupedNumber(percent, this.i18n.locale(), this.i18n.messages().numberFormat, { maximumFractionDigits: 1 })}%`;
32949
+ }
32950
+ signed(text, value) {
32951
+ return value > 0 ? `+${text}` : text;
32952
+ }
32953
+ static ɵfac = i0.ɵɵngDeclareFactory({
32954
+ minVersion: "12.0.0",
32955
+ version: "22.3.0",
32956
+ ngImport: i0,
32957
+ type: StatComponent,
32958
+ deps: [],
32959
+ target: i0.ɵɵFactoryTarget.Component
32960
+ });
32961
+ static ɵcmp = i0.ɵɵngDeclareComponent({
32962
+ minVersion: "17.0.0",
32963
+ version: "22.3.0",
32964
+ type: StatComponent,
32965
+ isStandalone: true,
32966
+ selector: "ea-stat",
32967
+ inputs: {
32968
+ label: {
32969
+ classPropertyName: "label",
32970
+ publicName: "label",
32971
+ isSignal: true,
32972
+ isRequired: false,
32973
+ transformFunction: null
32974
+ },
32975
+ value: {
32976
+ classPropertyName: "value",
32977
+ publicName: "value",
32978
+ isSignal: true,
32979
+ isRequired: false,
32980
+ transformFunction: null
32981
+ },
32982
+ previousValue: {
32983
+ classPropertyName: "previousValue",
32984
+ publicName: "previousValue",
32985
+ isSignal: true,
32986
+ isRequired: false,
32987
+ transformFunction: null
32988
+ },
32989
+ changeFormat: {
32990
+ classPropertyName: "changeFormat",
32991
+ publicName: "changeFormat",
32992
+ isSignal: true,
32993
+ isRequired: false,
32994
+ transformFunction: null
32995
+ },
32996
+ invertTone: {
32997
+ classPropertyName: "invertTone",
32998
+ publicName: "invertTone",
32999
+ isSignal: true,
33000
+ isRequired: false,
33001
+ transformFunction: null
33002
+ },
33003
+ caption: {
33004
+ classPropertyName: "caption",
33005
+ publicName: "caption",
33006
+ isSignal: true,
33007
+ isRequired: false,
33008
+ transformFunction: null
33009
+ },
33010
+ sparkline: {
33011
+ classPropertyName: "sparkline",
33012
+ publicName: "sparkline",
33013
+ isSignal: true,
33014
+ isRequired: false,
33015
+ transformFunction: null
33016
+ },
33017
+ sparklineVariant: {
33018
+ classPropertyName: "sparklineVariant",
33019
+ publicName: "sparklineVariant",
33020
+ isSignal: true,
33021
+ isRequired: false,
33022
+ transformFunction: null
33023
+ },
33024
+ variant: {
33025
+ classPropertyName: "variant",
33026
+ publicName: "variant",
33027
+ isSignal: true,
33028
+ isRequired: false,
33029
+ transformFunction: null
33030
+ },
33031
+ size: {
33032
+ classPropertyName: "size",
33033
+ publicName: "size",
33034
+ isSignal: true,
33035
+ isRequired: false,
33036
+ transformFunction: null
33037
+ },
33038
+ formatValue: {
33039
+ classPropertyName: "formatValue",
33040
+ publicName: "formatValue",
33041
+ isSignal: true,
33042
+ isRequired: false,
33043
+ transformFunction: null
33044
+ }
33045
+ },
33046
+ ngImport: i0,
33047
+ template: "<div\n class=\"ea-stat\"\n [class]=\"hostClasses()\">\n @if (label()) {\n <div class=\"ea-stat__label\">{{ label() }}</div>\n }\n <div class=\"ea-stat__value\">\n <bdi>{{ formattedValue() }}</bdi>\n </div>\n @if (change() || caption()) {\n <div class=\"ea-stat__meta\">\n @if (change(); as change) {\n <span\n class=\"ea-stat__change\"\n [class]=\"'ea-stat__change--' + change.tone\">\n @if (change.direction === 'up') {\n <ea-icon-arrow-up class=\"ea-stat__arrow\" />\n } @else if (change.direction === 'down') {\n <ea-icon-arrow-down class=\"ea-stat__arrow\" />\n }\n <bdi aria-hidden=\"true\">{{ change.text }}</bdi>\n <span class=\"ea-stat__spoken\">{{ change.spoken }}</span>\n </span>\n }\n @if (caption()) {\n <span class=\"ea-stat__caption\">{{ caption() }}</span>\n }\n </div>\n }\n @if (hasSparkline()) {\n <ea-sparkline\n class=\"ea-stat__sparkline\"\n [data]=\"sparkline()\"\n [variant]=\"sparklineVariant()\"\n [height]=\"sparklineHeight()\"\n [formatValue]=\"formatValue()\" />\n }\n</div>\n",
33048
+ styles: ["ea-stat{display:block;min-width:0}.ea-stat{display:flex;flex-direction:column;gap:.25em;min-width:0;padding:1em;font-family:var(--font-family-sans);border-radius:var(--radius-lg);color:var(--color-text-primary)}.ea-stat--2xs{font-size:var(--font-size-2xs)}.ea-stat--xs{font-size:var(--font-size-xs)}.ea-stat--sm{font-size:var(--font-size-sm)}.ea-stat--md{font-size:var(--font-size-md)}.ea-stat--lg{font-size:var(--font-size-lg)}.ea-stat--xl{font-size:var(--font-size-xl)}.ea-stat--outlined{border:var(--border-width-thin) solid var(--color-border-default);background-color:var(--color-bg-base)}.ea-stat--filled{background-color:var(--color-bg-subtle)}.ea-stat--plain{padding:0}.ea-stat__label{font-size:.875em;font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--color-text-secondary)}.ea-stat__value{font-size:2em;font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight);font-variant-numeric:tabular-nums}.ea-stat__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.25em .5em;font-size:.875em;line-height:var(--line-height-snug)}.ea-stat__change{display:inline-flex;align-items:center;gap:.25em;font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-stat__change--positive{color:var(--color-success-text)}.ea-stat__change--negative{color:var(--color-error-text)}.ea-stat__change--neutral{color:var(--color-text-secondary)}.ea-stat__arrow{flex-shrink:0}.ea-stat__spoken{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-stat__caption{color:var(--color-text-secondary)}.ea-stat__sparkline{margin-top:.5em}\n"],
33049
+ dependencies: [
33050
+ {
33051
+ kind: "component",
33052
+ type: ArrowDownIconComponent,
33053
+ selector: "ea-icon-arrow-down"
33054
+ },
33055
+ {
33056
+ kind: "component",
33057
+ type: ArrowUpIconComponent,
33058
+ selector: "ea-icon-arrow-up"
33059
+ },
33060
+ {
33061
+ kind: "component",
33062
+ type: SparklineComponent,
33063
+ selector: "ea-sparkline",
33064
+ inputs: [
33065
+ "data",
33066
+ "variant",
33067
+ "curve",
33068
+ "markers",
33069
+ "color",
33070
+ "startAtZero",
33071
+ "showTooltip",
33072
+ "height",
33073
+ "animation",
33074
+ "animationDuration",
33075
+ "formatValue",
33076
+ "aria-label"
33077
+ ]
33078
+ }
33079
+ ],
33080
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
33081
+ encapsulation: i0.ViewEncapsulation.None
33082
+ });
33083
+ };
33084
+ i0.ɵɵngDeclareClassMetadata({
33085
+ minVersion: "12.0.0",
33086
+ version: "22.3.0",
33087
+ ngImport: i0,
33088
+ type: StatComponent,
33089
+ decorators: [{
33090
+ type: Component,
33091
+ args: [{
33092
+ selector: "ea-stat",
33093
+ imports: [
33094
+ ArrowDownIconComponent,
33095
+ ArrowUpIconComponent,
33096
+ SparklineComponent
33097
+ ],
33098
+ changeDetection: ChangeDetectionStrategy.OnPush,
33099
+ encapsulation: ViewEncapsulation.None,
33100
+ template: "<div\n class=\"ea-stat\"\n [class]=\"hostClasses()\">\n @if (label()) {\n <div class=\"ea-stat__label\">{{ label() }}</div>\n }\n <div class=\"ea-stat__value\">\n <bdi>{{ formattedValue() }}</bdi>\n </div>\n @if (change() || caption()) {\n <div class=\"ea-stat__meta\">\n @if (change(); as change) {\n <span\n class=\"ea-stat__change\"\n [class]=\"'ea-stat__change--' + change.tone\">\n @if (change.direction === 'up') {\n <ea-icon-arrow-up class=\"ea-stat__arrow\" />\n } @else if (change.direction === 'down') {\n <ea-icon-arrow-down class=\"ea-stat__arrow\" />\n }\n <bdi aria-hidden=\"true\">{{ change.text }}</bdi>\n <span class=\"ea-stat__spoken\">{{ change.spoken }}</span>\n </span>\n }\n @if (caption()) {\n <span class=\"ea-stat__caption\">{{ caption() }}</span>\n }\n </div>\n }\n @if (hasSparkline()) {\n <ea-sparkline\n class=\"ea-stat__sparkline\"\n [data]=\"sparkline()\"\n [variant]=\"sparklineVariant()\"\n [height]=\"sparklineHeight()\"\n [formatValue]=\"formatValue()\" />\n }\n</div>\n",
33101
+ styles: ["ea-stat{display:block;min-width:0}.ea-stat{display:flex;flex-direction:column;gap:.25em;min-width:0;padding:1em;font-family:var(--font-family-sans);border-radius:var(--radius-lg);color:var(--color-text-primary)}.ea-stat--2xs{font-size:var(--font-size-2xs)}.ea-stat--xs{font-size:var(--font-size-xs)}.ea-stat--sm{font-size:var(--font-size-sm)}.ea-stat--md{font-size:var(--font-size-md)}.ea-stat--lg{font-size:var(--font-size-lg)}.ea-stat--xl{font-size:var(--font-size-xl)}.ea-stat--outlined{border:var(--border-width-thin) solid var(--color-border-default);background-color:var(--color-bg-base)}.ea-stat--filled{background-color:var(--color-bg-subtle)}.ea-stat--plain{padding:0}.ea-stat__label{font-size:.875em;font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--color-text-secondary)}.ea-stat__value{font-size:2em;font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight);font-variant-numeric:tabular-nums}.ea-stat__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.25em .5em;font-size:.875em;line-height:var(--line-height-snug)}.ea-stat__change{display:inline-flex;align-items:center;gap:.25em;font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums}.ea-stat__change--positive{color:var(--color-success-text)}.ea-stat__change--negative{color:var(--color-error-text)}.ea-stat__change--neutral{color:var(--color-text-secondary)}.ea-stat__arrow{flex-shrink:0}.ea-stat__spoken{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-stat__caption{color:var(--color-text-secondary)}.ea-stat__sparkline{margin-top:.5em}\n"]
33102
+ }]
33103
+ }],
33104
+ propDecorators: {
33105
+ label: [{
33106
+ type: i0.Input,
33107
+ args: [{
33108
+ isSignal: true,
33109
+ alias: "label",
33110
+ required: false
33111
+ }]
33112
+ }],
33113
+ value: [{
33114
+ type: i0.Input,
33115
+ args: [{
33116
+ isSignal: true,
33117
+ alias: "value",
33118
+ required: false
33119
+ }]
33120
+ }],
33121
+ previousValue: [{
33122
+ type: i0.Input,
33123
+ args: [{
33124
+ isSignal: true,
33125
+ alias: "previousValue",
33126
+ required: false
33127
+ }]
33128
+ }],
33129
+ changeFormat: [{
33130
+ type: i0.Input,
33131
+ args: [{
33132
+ isSignal: true,
33133
+ alias: "changeFormat",
33134
+ required: false
33135
+ }]
33136
+ }],
33137
+ invertTone: [{
33138
+ type: i0.Input,
33139
+ args: [{
33140
+ isSignal: true,
33141
+ alias: "invertTone",
33142
+ required: false
33143
+ }]
33144
+ }],
33145
+ caption: [{
33146
+ type: i0.Input,
33147
+ args: [{
33148
+ isSignal: true,
33149
+ alias: "caption",
33150
+ required: false
33151
+ }]
33152
+ }],
33153
+ sparkline: [{
33154
+ type: i0.Input,
33155
+ args: [{
33156
+ isSignal: true,
33157
+ alias: "sparkline",
33158
+ required: false
33159
+ }]
33160
+ }],
33161
+ sparklineVariant: [{
33162
+ type: i0.Input,
33163
+ args: [{
33164
+ isSignal: true,
33165
+ alias: "sparklineVariant",
33166
+ required: false
33167
+ }]
33168
+ }],
33169
+ variant: [{
33170
+ type: i0.Input,
33171
+ args: [{
33172
+ isSignal: true,
33173
+ alias: "variant",
33174
+ required: false
33175
+ }]
33176
+ }],
33177
+ size: [{
33178
+ type: i0.Input,
33179
+ args: [{
33180
+ isSignal: true,
33181
+ alias: "size",
33182
+ required: false
33183
+ }]
33184
+ }],
33185
+ formatValue: [{
33186
+ type: i0.Input,
33187
+ args: [{
33188
+ isSignal: true,
33189
+ alias: "formatValue",
33190
+ required: false
33191
+ }]
33192
+ }]
33193
+ }
33194
+ });
30878
33195
  var StepperComponent = class StepperComponent {
30879
33196
  i18n = inject(EagamiI18nService);
30880
33197
  registeredSteps = signal([], ...ngDevMode ? [{ debugName: "registeredSteps" }] : /* istanbul ignore next */ []);
@@ -35276,6 +37593,572 @@ i0.ɵɵngDeclareClassMetadata({
35276
37593
  }]
35277
37594
  }
35278
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
+ });
35279
38162
  var VirtualListComponent = class VirtualListComponent {
35280
38163
  hostRole = inject(ElementRef).nativeElement.getAttribute("role");
35281
38164
  viewportTabindex = this.hostRole === null ? 0 : null;
@@ -92045,6 +94928,6 @@ const ICONS = /* @__PURE__ */ [
92045
94928
  ZoomInIconComponent,
92046
94929
  ZoomOutIconComponent
92047
94930
  ].sort((a, b) => a.slug.localeCompare(b.slug));
92048
- 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, 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, 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 };
92049
94932
 
92050
94933
  //# sourceMappingURL=eagami-ui.mjs.map