@semcore/d3-chart 16.7.0 → 16.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +16 -18
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/CompactHorizontalBar.js +20 -20
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +17 -17
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +9 -6
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ResponsiveContainer.js +2 -2
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/StackBar.js +8 -3
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/Tooltip.js +19 -18
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +12 -12
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +79 -37
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +12 -39
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/translations/module/de.json +2 -2
- package/lib/cjs/a11y/translations/module/en.json +2 -2
- package/lib/cjs/a11y/translations/module/es.json +2 -2
- package/lib/cjs/a11y/translations/module/fr.json +2 -2
- package/lib/cjs/a11y/translations/module/it.json +2 -2
- package/lib/cjs/a11y/translations/module/ja.json +2 -2
- package/lib/cjs/a11y/translations/module/ko.json +2 -2
- package/lib/cjs/a11y/translations/module/nl.json +2 -2
- package/lib/cjs/a11y/translations/module/pl.json +2 -2
- package/lib/cjs/a11y/translations/module/pt.json +2 -2
- package/lib/cjs/a11y/translations/module/sv.json +2 -2
- package/lib/cjs/a11y/translations/module/tr.json +2 -2
- package/lib/cjs/a11y/translations/module/vi.json +2 -2
- package/lib/cjs/a11y/translations/module/zh.json +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +9 -9
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +19 -66
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +8 -8
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +2 -2
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +6 -6
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -23
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +9 -9
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/style/axis.shadow.css +1 -3
- package/lib/cjs/style/plot.shadow.css +3 -1
- package/lib/cjs/style/plotA11yModule.shadow.css +11 -10
- package/lib/cjs/style/plotA11yView.shadow.css +26 -13
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +16 -18
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/CompactHorizontalBar.js +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +17 -17
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +8 -5
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ResponsiveContainer.js +1 -1
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/StackBar.js +8 -3
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/Tooltip.js +11 -10
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +10 -10
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +80 -36
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +10 -37
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/translations/module/de.json +2 -2
- package/lib/es6/a11y/translations/module/en.json +2 -2
- package/lib/es6/a11y/translations/module/es.json +2 -2
- package/lib/es6/a11y/translations/module/fr.json +2 -2
- package/lib/es6/a11y/translations/module/it.json +2 -2
- package/lib/es6/a11y/translations/module/ja.json +2 -2
- package/lib/es6/a11y/translations/module/ko.json +2 -2
- package/lib/es6/a11y/translations/module/nl.json +2 -2
- package/lib/es6/a11y/translations/module/pl.json +2 -2
- package/lib/es6/a11y/translations/module/pt.json +2 -2
- package/lib/es6/a11y/translations/module/sv.json +2 -2
- package/lib/es6/a11y/translations/module/tr.json +2 -2
- package/lib/es6/a11y/translations/module/vi.json +2 -2
- package/lib/es6/a11y/translations/module/zh.json +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +5 -5
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +20 -67
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +1 -1
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +5 -5
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +18 -18
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +7 -7
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +1 -3
- package/lib/es6/style/plot.shadow.css +3 -1
- package/lib/es6/style/plotA11yModule.shadow.css +11 -10
- package/lib/es6/style/plotA11yView.shadow.css +26 -13
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +7 -2
- package/lib/esm/Area.mjs +14 -14
- package/lib/esm/Axis.mjs +19 -21
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +16 -16
- package/lib/esm/CompactHorizontalBar.mjs +19 -20
- package/lib/esm/Donut.mjs +13 -15
- package/lib/esm/Dots.mjs +10 -10
- package/lib/esm/HorizontalBar.mjs +18 -18
- package/lib/esm/Hover.mjs +6 -6
- package/lib/esm/Line.mjs +12 -12
- package/lib/esm/Plot.mjs +10 -7
- package/lib/esm/Radar.mjs +23 -23
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ResponsiveContainer.mjs +2 -2
- package/lib/esm/ScatterPlot.mjs +11 -12
- package/lib/esm/StackBar.mjs +9 -4
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +16 -13
- package/lib/esm/Venn.mjs +12 -13
- package/lib/esm/a11y/PlotA11yModule.mjs +69 -31
- package/lib/esm/a11y/PlotA11yView.mjs +10 -35
- package/lib/esm/a11y/insights.mjs +1 -2
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/translations/module/de.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/en.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/es.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/fr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/it.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ja.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ko.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/nl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pt.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/sv.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/tr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/vi.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/zh.json.mjs +4 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +10 -12
- package/lib/esm/component/Chart/AreaChart.mjs +4 -5
- package/lib/esm/component/Chart/BarChart.mjs +3 -44
- package/lib/esm/component/Chart/BubbleChart.mjs +2 -3
- package/lib/esm/component/Chart/CigaretteChart.mjs +5 -6
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +1 -2
- package/lib/esm/component/Chart/DonutChart.mjs +2 -3
- package/lib/esm/component/Chart/HistogramChart.mjs +4 -5
- package/lib/esm/component/Chart/LineChart.mjs +3 -4
- package/lib/esm/component/Chart/RadarChart.mjs +1 -2
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +2 -3
- package/lib/esm/component/Chart/VennChart.mjs +1 -2
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +7 -7
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +25 -21
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +9 -9
- package/lib/esm/component/ChartLegend/index.mjs +0 -2
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
- package/lib/esm/createElement.mjs +4 -2
- package/lib/esm/index.mjs +0 -1
- package/lib/esm/style/axis.shadow.css +1 -3
- package/lib/esm/style/plot.shadow.css +3 -1
- package/lib/esm/style/plotA11yModule.shadow.css +11 -10
- package/lib/esm/style/plotA11yView.shadow.css +26 -13
- package/lib/esm/utils.mjs +2 -2
- package/lib/types/Axis.d.ts +0 -4
- package/lib/types/CompactHorizontalBar.d.ts +1 -1
- package/lib/types/Hover.d.ts +1 -1
- package/lib/types/Line.d.ts +1 -1
- package/lib/types/Plot.d.ts +1 -1
- package/lib/types/Radar.d.ts +1 -1
- package/lib/types/ResponsiveContainer.d.ts +1 -1
- package/lib/types/Tooltip.d.ts +3 -1
- package/lib/types/Venn.d.ts +1 -1
- package/lib/types/a11y/PlotA11yModule.d.ts +11 -4
- package/lib/types/a11y/PlotA11yView.d.ts +2 -13
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/lib/types/utils.d.ts +10 -10
- package/package.json +15 -15
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "Naciśnij Tab, aby włączyć moduł dostępności wykresów graficznych.";
|
|
1
2
|
const loading = "Ładowanie modułu dostępności.";
|
|
2
3
|
const failed = "Nie udało się załadować modułu dostępności. Skontaktuj się ze wsparciem użytkowników, aby pomóc nam w szybszym rozwiązaniu problemu.";
|
|
3
4
|
const pl = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Otwórz podsumowanie danych"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
pl as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Pressione "Tab" para habilitar o módulo de acessibilidade a gráficos.';
|
|
1
2
|
const loading = "Carregando módulo de acessibilidade.";
|
|
2
3
|
const failed = "Falha ao carregar o módulo de acessibilidade. Entre em contato com o suporte ao usuário do serviço para nos ajudar a resolver o problema com mais rapidez.";
|
|
3
4
|
const pt = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Abrir resumo dos dados"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
pt as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Tryck på "Flik" för att aktivera åtkomstmodulen för grafiska diagram.';
|
|
1
2
|
const loading = "Laddar åtkomstmodul.";
|
|
2
3
|
const failed = "Det gick inte att ladda åtkomstmodulen. Kontakta supporten för att hjälpa oss att lösa problemet snabbare.";
|
|
3
4
|
const sv = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Öppna sammanfattning av data"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
sv as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Grafik çizelgeleri erişilebilirlik modülünü etkinleştirmek için "Sekme" tuşuna basın.';
|
|
1
2
|
const loading = "Erişilebilirlik modülü yükleniyor.";
|
|
2
3
|
const failed = "Erişilebilirlik modülü yüklenemedi. Sorunu daha hızlı çözmemize yardımcı olmak için kullanıcı destek hizmeti ile iletişime geçin.";
|
|
3
4
|
const tr = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Veri özetini aç"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
tr as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Nhấn "Tab" để bật mô-đun trợ năng biểu đồ đồ họa.';
|
|
1
2
|
const loading = "Đang tải mô-đun trợ năng.";
|
|
2
3
|
const failed = "Không tải được mô-đun trợ năng. Liên hệ với bộ phận hỗ trợ người dùng dịch vụ để giúp chúng tôi giải quyết vấn đề nhanh hơn.";
|
|
3
4
|
const vi = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Mở tóm tắt dữ liệu"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
vi as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "按“Tab”启用图形图表访问模块。";
|
|
1
2
|
const loading = "加载访问模块。";
|
|
2
3
|
const failed = "无法加载访问模块。联系服务用户支持,以帮助我们更快地解决问题。";
|
|
3
4
|
const zh = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "打开数据摘要"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
zh as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -7,32 +7,30 @@ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
9
|
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
10
|
-
import { Box, Flex } from "@semcore/base-components";
|
|
11
10
|
import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
|
|
12
11
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
13
13
|
import { Text } from "@semcore/typography";
|
|
14
14
|
import React, { Fragment } from "react";
|
|
15
|
-
import "../../
|
|
16
|
-
import { makeDataHintsContainer } from "../../a11y/hints.mjs";
|
|
17
|
-
import { interpolateValue } from "../../utils.mjs";
|
|
18
|
-
import "../ChartLegend/index.mjs";
|
|
19
|
-
import { LegendTable } from "../ChartLegend/LegendTable/LegendTable.mjs";
|
|
15
|
+
import Plot from "../../Plot.mjs";
|
|
20
16
|
import { LegendFlex } from "../ChartLegend/LegendFlex/LegendFlex.mjs";
|
|
17
|
+
import { LegendTable } from "../ChartLegend/LegendTable/LegendTable.mjs";
|
|
21
18
|
import { YAxis, XAxis } from "../../Axis.mjs";
|
|
22
|
-
import
|
|
19
|
+
import { interpolateValue } from "../../utils.mjs";
|
|
20
|
+
import { makeDataHintsContainer } from "../../a11y/hints.mjs";
|
|
23
21
|
/*!__reshadow-styles__:"../../style/abstract-chart.shadow.css"*/
|
|
24
22
|
var style = (
|
|
25
23
|
/*__reshadow_css_start__*/
|
|
26
24
|
(sstyled.insert(
|
|
27
25
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
26
|
+
".___STooltipChildrenWrapper_1fccq_gg_{display:grid;grid-column-gap:var(--intergalactic-spacing-2x, 8px);-moz-column-gap:var(--intergalactic-spacing-2x, 8px);column-gap:var(--intergalactic-spacing-2x, 8px)}.___STooltipChildrenWrapper_1fccq_gg_._columnsCount_2_1fccq_gg_{grid-template-columns:auto minmax(28px,max-content)}.___STooltipChildrenWrapper_1fccq_gg_._columnsCount_3_1fccq_gg_{grid-template-columns:auto minmax(28px,max-content) minmax(28px,max-content)}",
|
|
29
27
|
/*__inner_css_end__*/
|
|
30
|
-
"
|
|
28
|
+
"1fccq_gg_"
|
|
31
29
|
), /*__reshadow_css_end__*/
|
|
32
30
|
{
|
|
33
|
-
"__STooltipChildrenWrapper": "
|
|
34
|
-
"_columnsCount_2": "
|
|
35
|
-
"_columnsCount_3": "
|
|
31
|
+
"__STooltipChildrenWrapper": "___STooltipChildrenWrapper_1fccq_gg_",
|
|
32
|
+
"_columnsCount_2": "_columnsCount_2_1fccq_gg_",
|
|
33
|
+
"_columnsCount_3": "_columnsCount_3_1fccq_gg_"
|
|
36
34
|
})
|
|
37
35
|
);
|
|
38
36
|
var NOT_A_VALUE = "n/a";
|
|
@@ -9,13 +9,12 @@ import { createComponent } from "@semcore/core";
|
|
|
9
9
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
10
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
11
11
|
import React from "react";
|
|
12
|
-
import "../../index.mjs";
|
|
13
|
-
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
import { minMax } from "../../utils.mjs";
|
|
16
|
-
import StackedArea from "../../StackedArea.mjs";
|
|
17
12
|
import Area from "../../Area.mjs";
|
|
13
|
+
import StackedArea from "../../StackedArea.mjs";
|
|
18
14
|
import { HoverLine } from "../../Hover.mjs";
|
|
15
|
+
import { minMax } from "../../utils.mjs";
|
|
16
|
+
import { AbstractChart } from "./AbstractChart.mjs";
|
|
17
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
19
18
|
var AreaChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
20
19
|
function AreaChartComponent2() {
|
|
21
20
|
_classCallCheck(this, AreaChartComponent2);
|
|
@@ -11,14 +11,12 @@ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
|
11
11
|
import { scaleTime, scaleBand, scaleLinear } from "d3-scale";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
|
-
import "../../index.mjs";
|
|
15
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
14
|
import Line from "../../Line.mjs";
|
|
17
15
|
import GroupBar from "../../GroupBar.mjs";
|
|
18
16
|
import StackBar from "../../StackBar.mjs";
|
|
19
17
|
import { HoverRect } from "../../Hover.mjs";
|
|
20
|
-
import { YAxis, XAxis } from "../../Axis.mjs";
|
|
21
18
|
import { minMax } from "../../utils.mjs";
|
|
19
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
22
20
|
var BarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
23
21
|
function BarChartComponent2() {
|
|
24
22
|
var _this;
|
|
@@ -175,45 +173,6 @@ var BarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
|
175
173
|
};
|
|
176
174
|
});
|
|
177
175
|
}
|
|
178
|
-
}, {
|
|
179
|
-
key: "renderAxis",
|
|
180
|
-
value: function renderAxis() {
|
|
181
|
-
var _this$asProps6 = this.asProps, invertAxis = _this$asProps6.invertAxis, showXAxis = _this$asProps6.showXAxis, showYAxis = _this$asProps6.showYAxis, data = _this$asProps6.data, axisXValueFormatter = _this$asProps6.axisXValueFormatter, axisYValueFormatter = _this$asProps6.axisYValueFormatter, multilineXTicks = _this$asProps6.multilineXTicks, multilineYTicks = _this$asProps6.multilineYTicks;
|
|
182
|
-
if (!Array.isArray(data)) {
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
var xTicks = this.xTicks;
|
|
186
|
-
var yTicks = this.yTicks;
|
|
187
|
-
var childrenX = axisXValueFormatter ? function(_ref2) {
|
|
188
|
-
var value = _ref2.value;
|
|
189
|
-
return {
|
|
190
|
-
children: axisXValueFormatter(value)
|
|
191
|
-
};
|
|
192
|
-
} : void 0;
|
|
193
|
-
var childrenY = axisYValueFormatter ? function(_ref3) {
|
|
194
|
-
var value = _ref3.value;
|
|
195
|
-
return {
|
|
196
|
-
children: axisYValueFormatter(value)
|
|
197
|
-
};
|
|
198
|
-
} : void 0;
|
|
199
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, showYAxis && /* @__PURE__ */ React.createElement(YAxis, null, yTicks ? /* @__PURE__ */ React.createElement(YAxis.Ticks, {
|
|
200
|
-
primaryText: invertAxis,
|
|
201
|
-
multiline: multilineYTicks,
|
|
202
|
-
ticks: yTicks
|
|
203
|
-
}, childrenY) : /* @__PURE__ */ React.createElement(YAxis.Ticks, {
|
|
204
|
-
primaryText: invertAxis,
|
|
205
|
-
multiline: multilineYTicks
|
|
206
|
-
}, childrenY), invertAxis !== true && (yTicks ? /* @__PURE__ */ React.createElement(YAxis.Grid, {
|
|
207
|
-
ticks: yTicks
|
|
208
|
-
}) : /* @__PURE__ */ React.createElement(YAxis.Grid, null))), showXAxis && /* @__PURE__ */ React.createElement(XAxis, null, xTicks ? /* @__PURE__ */ React.createElement(XAxis.Ticks, {
|
|
209
|
-
multiline: multilineXTicks,
|
|
210
|
-
ticks: xTicks
|
|
211
|
-
}, childrenX) : /* @__PURE__ */ React.createElement(XAxis.Ticks, {
|
|
212
|
-
multiline: multilineXTicks
|
|
213
|
-
}, childrenX), invertAxis === true && (xTicks ? /* @__PURE__ */ React.createElement(XAxis.Grid, {
|
|
214
|
-
ticks: xTicks
|
|
215
|
-
}) : /* @__PURE__ */ React.createElement(XAxis.Grid, null))));
|
|
216
|
-
}
|
|
217
176
|
}, {
|
|
218
177
|
key: "getLegendAriaLabel",
|
|
219
178
|
value: function getLegendAriaLabel() {
|
|
@@ -224,7 +183,7 @@ var BarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
|
224
183
|
}, {
|
|
225
184
|
key: "categoryScale",
|
|
226
185
|
get: function get() {
|
|
227
|
-
var _this$
|
|
186
|
+
var _this$asProps6 = this.asProps, _this$asProps6$margin = _this$asProps6.marginY, marginY = _this$asProps6$margin === void 0 ? 40 : _this$asProps6$margin, _this$asProps6$margin2 = _this$asProps6.marginX, marginX = _this$asProps6$margin2 === void 0 ? 24 : _this$asProps6$margin2, plotWidth = _this$asProps6.plotWidth, plotHeight = _this$asProps6.plotHeight, invertAxis = _this$asProps6.invertAxis, data = _this$asProps6.data, groupKey = _this$asProps6.groupKey;
|
|
228
187
|
var testItem = data[0][groupKey];
|
|
229
188
|
var range = invertAxis ? [plotHeight - marginX, this.plotPadding] : [marginY, plotWidth - this.plotPadding];
|
|
230
189
|
if (testItem instanceof Date && !Number.isNaN(testItem.getMilliseconds())) {
|
|
@@ -239,7 +198,7 @@ var BarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
|
239
198
|
}, {
|
|
240
199
|
key: "valueScale",
|
|
241
200
|
get: function get() {
|
|
242
|
-
var _this$
|
|
201
|
+
var _this$asProps7 = this.asProps, _this$asProps7$margin = _this$asProps7.marginY, marginY = _this$asProps7$margin === void 0 ? 40 : _this$asProps7$margin, _this$asProps7$margin2 = _this$asProps7.marginX, marginX = _this$asProps7$margin2 === void 0 ? 24 : _this$asProps7$margin2, plotWidth = _this$asProps7.plotWidth, plotHeight = _this$asProps7.plotHeight, invertAxis = _this$asProps7.invertAxis, type = _this$asProps7.type;
|
|
243
202
|
var max = type === "stack" ? _superPropGet(BarChartComponent2, "maxStackedValue", this, 1) : Math.max.apply(Math, _toConsumableArray(_superPropGet(BarChartComponent2, "flatValues", this, 1)));
|
|
244
203
|
return scaleLinear().range(invertAxis ? [marginY, plotWidth - this.plotPadding] : [plotHeight - marginX, this.plotPadding]).domain([0, max]);
|
|
245
204
|
}
|
|
@@ -8,11 +8,10 @@ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
|
8
8
|
import { Text } from "@semcore/typography";
|
|
9
9
|
import { scaleLinear } from "d3-scale";
|
|
10
10
|
import React from "react";
|
|
11
|
-
import "../../
|
|
11
|
+
import Bubble from "../../Bubble.mjs";
|
|
12
|
+
import { calculateBubbleDomain } from "../../utils.mjs";
|
|
12
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
-
import { calculateBubbleDomain } from "../../utils.mjs";
|
|
15
|
-
import Bubble from "../../Bubble.mjs";
|
|
16
15
|
var BubbleChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
17
16
|
function BubbleChartComponent2() {
|
|
18
17
|
_classCallCheck(this, BubbleChartComponent2);
|
|
@@ -8,24 +8,23 @@ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
|
8
8
|
import _superPropGet from "@babel/runtime/helpers/esm/superPropGet";
|
|
9
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
|
-
import { sstyled, assignProps
|
|
12
|
-
import { Box, Flex } from "@semcore/base-components";
|
|
11
|
+
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
13
12
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
14
13
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
15
14
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
16
15
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
17
16
|
import Divider from "@semcore/divider";
|
|
17
|
+
import { Box, Flex } from "@semcore/flex-box";
|
|
18
18
|
import { Text } from "@semcore/typography";
|
|
19
19
|
import { scaleLinear, scaleThreshold } from "d3-scale";
|
|
20
20
|
import React from "react";
|
|
21
|
-
import "../../
|
|
21
|
+
import Plot from "../../Plot.mjs";
|
|
22
|
+
import { HoverRect } from "../../Hover.mjs";
|
|
23
|
+
import { interpolateValue, eventToPoint } from "../../utils.mjs";
|
|
22
24
|
import { NOT_A_VALUE, AbstractChart } from "./AbstractChart.mjs";
|
|
23
25
|
import AnimatedClipPath from "../../AnimatedClipPath.mjs";
|
|
24
26
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
25
|
-
import { eventToPoint, interpolateValue } from "../../utils.mjs";
|
|
26
27
|
import Cigarette from "../Cigarette/Cigarette.mjs";
|
|
27
|
-
import { HoverRect } from "../../Hover.mjs";
|
|
28
|
-
import Plot from "../../Plot.mjs";
|
|
29
28
|
var DEFAULT_MINIMAL_BAR_WIDTH = 2;
|
|
30
29
|
var DEFAULT_GAP = 2;
|
|
31
30
|
var CigaretteChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
@@ -9,10 +9,9 @@ import { createComponent } from "@semcore/core";
|
|
|
9
9
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
10
|
import { scaleBand, scaleLinear } from "d3-scale";
|
|
11
11
|
import React from "react";
|
|
12
|
-
import "../../
|
|
12
|
+
import CompactHorizontalBar from "../../CompactHorizontalBar.mjs";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
import CompactHorizontalBar from "../../CompactHorizontalBar.mjs";
|
|
16
15
|
var CompactHorizontalBarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
17
16
|
function CompactHorizontalBarChartComponent2() {
|
|
18
17
|
_classCallCheck(this, CompactHorizontalBarChartComponent2);
|
|
@@ -3,16 +3,15 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import { Flex } from "@semcore/base-components";
|
|
7
6
|
import { createComponent } from "@semcore/core";
|
|
8
7
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
8
|
+
import { Flex } from "@semcore/flex-box";
|
|
9
9
|
import { Text } from "@semcore/typography";
|
|
10
10
|
import { scaleLinear } from "d3-scale";
|
|
11
11
|
import React from "react";
|
|
12
|
-
import "../../
|
|
12
|
+
import Donut from "../../Donut.mjs";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
import Donut from "../../Donut.mjs";
|
|
16
15
|
var DonutChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
17
16
|
function DonutChartComponent2() {
|
|
18
17
|
_classCallCheck(this, DonutChartComponent2);
|
|
@@ -10,13 +10,12 @@ import { createComponent } from "@semcore/core";
|
|
|
10
10
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
11
11
|
import { scaleTime, scaleBand, scaleLinear } from "d3-scale";
|
|
12
12
|
import React from "react";
|
|
13
|
-
import "../../index.mjs";
|
|
14
|
-
import { AbstractChart } from "./AbstractChart.mjs";
|
|
15
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
-
import { minMax } from "../../utils.mjs";
|
|
17
|
-
import StackBar from "../../StackBar.mjs";
|
|
18
13
|
import Bar from "../../Bar.mjs";
|
|
14
|
+
import StackBar from "../../StackBar.mjs";
|
|
19
15
|
import { HoverRect } from "../../Hover.mjs";
|
|
16
|
+
import { minMax } from "../../utils.mjs";
|
|
17
|
+
import { AbstractChart } from "./AbstractChart.mjs";
|
|
18
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
20
19
|
var HistogramChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
21
20
|
function HistogramChartComponent2() {
|
|
22
21
|
_classCallCheck(this, HistogramChartComponent2);
|
|
@@ -9,12 +9,11 @@ import { createComponent } from "@semcore/core";
|
|
|
9
9
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
10
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
11
11
|
import React from "react";
|
|
12
|
-
import "../../index.mjs";
|
|
13
|
-
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
import { minMax } from "../../utils.mjs";
|
|
16
12
|
import Line from "../../Line.mjs";
|
|
17
13
|
import { HoverLine } from "../../Hover.mjs";
|
|
14
|
+
import { minMax } from "../../utils.mjs";
|
|
15
|
+
import { AbstractChart } from "./AbstractChart.mjs";
|
|
16
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
18
17
|
var LineChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
19
18
|
function LineChartComponent2() {
|
|
20
19
|
_classCallCheck(this, LineChartComponent2);
|
|
@@ -10,9 +10,8 @@ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
|
10
10
|
import { scaleLinear } from "d3-scale";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
|
-
import "../../index.mjs";
|
|
14
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
13
|
import Radar from "../../Radar.mjs";
|
|
14
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
15
|
var RadarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
17
16
|
function RadarChartComponent2() {
|
|
18
17
|
_classCallCheck(this, RadarChartComponent2);
|
|
@@ -10,11 +10,10 @@ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
|
10
10
|
import { Text } from "@semcore/typography";
|
|
11
11
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
12
12
|
import React from "react";
|
|
13
|
-
import "../../
|
|
13
|
+
import ScatterPlot from "../../ScatterPlot.mjs";
|
|
14
|
+
import { getScatterPlotRadius, minMax } from "../../utils.mjs";
|
|
14
15
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
15
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
-
import { getScatterPlotRadius, minMax } from "../../utils.mjs";
|
|
17
|
-
import ScatterPlot from "../../ScatterPlot.mjs";
|
|
18
17
|
var ScatterPlotChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
19
18
|
function ScatterPlotChartComponent2() {
|
|
20
19
|
_classCallCheck(this, ScatterPlotChartComponent2);
|
|
@@ -8,10 +8,9 @@ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
|
8
8
|
import { Text } from "@semcore/typography";
|
|
9
9
|
import { scaleLinear } from "d3-scale";
|
|
10
10
|
import React from "react";
|
|
11
|
-
import "../../
|
|
11
|
+
import Venn from "../../Venn.mjs";
|
|
12
12
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
13
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
-
import Venn from "../../Venn.mjs";
|
|
15
14
|
var VennChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
16
15
|
function VennChartComponent2() {
|
|
17
16
|
_classCallCheck(this, VennChartComponent2);
|
|
@@ -9,10 +9,10 @@ import { makeDataHintsHandlers } from "../../a11y/hints.mjs";
|
|
|
9
9
|
var BaseLegend = /* @__PURE__ */ (function(_Component) {
|
|
10
10
|
function BaseLegend2() {
|
|
11
11
|
var _this;
|
|
12
|
+
_classCallCheck(this, BaseLegend2);
|
|
12
13
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13
14
|
args[_key] = arguments[_key];
|
|
14
15
|
}
|
|
15
|
-
_classCallCheck(this, BaseLegend2);
|
|
16
16
|
_this = _callSuper(this, BaseLegend2, [].concat(args));
|
|
17
17
|
_defineProperty(_this, "onChangeLegendItem", function(shape) {
|
|
18
18
|
return function(id, checked) {
|
|
@@ -4,11 +4,11 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled, assignProps
|
|
8
|
-
import { Flex } from "@semcore/base-components";
|
|
7
|
+
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
9
8
|
import Checkbox from "@semcore/checkbox";
|
|
10
9
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
11
10
|
import Divider from "@semcore/divider";
|
|
11
|
+
import { Flex } from "@semcore/flex-box";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { localizedMessages } from "../../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
14
|
import { BaseLegend } from "../BaseLegend.mjs";
|
|
@@ -18,14 +18,14 @@ var style = (
|
|
|
18
18
|
/*__reshadow_css_start__*/
|
|
19
19
|
(sstyled.insert(
|
|
20
20
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
21
|
+
".___SLegendFlex_oj47d_gg_._direction_row_oj47d_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_oj47d_gg_._direction_column_oj47d_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
|
|
22
22
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
23
|
+
"oj47d_gg_"
|
|
24
24
|
), /*__reshadow_css_end__*/
|
|
25
25
|
{
|
|
26
|
-
"__SLegendFlex": "
|
|
27
|
-
"_direction_row": "
|
|
28
|
-
"_direction_column": "
|
|
26
|
+
"__SLegendFlex": "___SLegendFlex_oj47d_gg_",
|
|
27
|
+
"_direction_row": "_direction_row_oj47d_gg_",
|
|
28
|
+
"_direction_column": "_direction_column_oj47d_gg_"
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
var LegendFlexRoot = /* @__PURE__ */ (function(_BaseLegend) {
|
|
@@ -5,11 +5,11 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled, assignProps, Component
|
|
9
|
-
import { Flex, Box } from "@semcore/base-components";
|
|
8
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
10
9
|
import Checkbox from "@semcore/checkbox";
|
|
11
10
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
12
11
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
13
13
|
import { Text } from "@semcore/typography";
|
|
14
14
|
import React from "react";
|
|
15
15
|
import { StaticShapes } from "./LegendItem.type.mjs";
|
|
@@ -21,27 +21,27 @@ var style = (
|
|
|
21
21
|
/*__reshadow_css_start__*/
|
|
22
22
|
(sstyled.insert(
|
|
23
23
|
/*__inner_css_start__*/
|
|
24
|
-
'.
|
|
24
|
+
'.___SLegendItem_1iq66_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1iq66_gg_:hover{cursor:pointer}.___SLegendItem_1iq66_gg_.__disabled_1iq66_gg_:hover{cursor:default}}.___SPointShape_1iq66_gg_.__color_1iq66_gg_{background-color:var(--color_1iq66);margin-right:8px;flex-shrink:0}.___SPointShape_1iq66_gg_._shape_Circle_1iq66_gg_._size_l_1iq66_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1iq66_gg_._shape_Circle_1iq66_gg_._size_m_1iq66_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1iq66_gg_._shape_Line_1iq66_gg_._size_l_1iq66_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1iq66_gg_._shape_Line_1iq66_gg_._size_m_1iq66_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1iq66_gg_._shape_Square_1iq66_gg_._size_l_1iq66_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1iq66_gg_._shape_Square_1iq66_gg_._size_m_1iq66_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1iq66_gg_._shape_Pattern_1iq66_gg_{background-color:transparent;margin-right:4px}.___SIcon_1iq66_gg_{line-height:0;margin-right:4px}.___SIcon_1iq66_gg_._size_l_1iq66_gg_{margin-top:4px}.___SIcon_1iq66_gg_._size_m_1iq66_gg_{margin-top:2px}.___SLabel_1iq66_gg_{min-width:0}.___SAdditionalLabel_1iq66_gg_._size_l_1iq66_gg_,.___SCount_1iq66_gg_._size_l_1iq66_gg_,.___SLabel_1iq66_gg_._size_l_1iq66_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1iq66_gg_._size_m_1iq66_gg_,.___SCount_1iq66_gg_._size_m_1iq66_gg_,.___SLabel_1iq66_gg_._size_m_1iq66_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1iq66_gg_,.___SCount_1iq66_gg_{margin-left:4px}.___SAdditionalLabel_1iq66_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1iq66_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));height:4px;width:4px;border-radius:2px;margin-right:4px}@supports (color:color(display-p3 0 0 0%)){.___SAdditionalLabel_1iq66_gg_::before{background-color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SAdditionalLabel_1iq66_gg_::before{background-color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SAdditionalLabel_1iq66_gg_._size_l_1iq66_gg_::before{margin-top:10px}.___SAdditionalLabel_1iq66_gg_._size_m_1iq66_gg_::before{margin-top:8px}.___SPatternSymbol_1iq66_gg_{transform:scale(.8)}',
|
|
25
25
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
26
|
+
"1iq66_gg_"
|
|
27
27
|
), /*__reshadow_css_end__*/
|
|
28
28
|
{
|
|
29
|
-
"__SLegendItem": "
|
|
30
|
-
"_disabled": "
|
|
31
|
-
"__SPointShape": "
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"_shape_Circle": "
|
|
35
|
-
"_size_l": "
|
|
36
|
-
"_size_m": "
|
|
37
|
-
"_shape_Line": "
|
|
38
|
-
"_shape_Square": "
|
|
39
|
-
"_shape_Pattern": "
|
|
40
|
-
"__SIcon": "
|
|
41
|
-
"__SLabel": "
|
|
42
|
-
"__SAdditionalLabel": "
|
|
43
|
-
"__SCount": "
|
|
44
|
-
"__SPatternSymbol": "
|
|
29
|
+
"__SLegendItem": "___SLegendItem_1iq66_gg_",
|
|
30
|
+
"_disabled": "__disabled_1iq66_gg_",
|
|
31
|
+
"__SPointShape": "___SPointShape_1iq66_gg_",
|
|
32
|
+
"_color": "__color_1iq66_gg_",
|
|
33
|
+
"--color": "--color_1iq66",
|
|
34
|
+
"_shape_Circle": "_shape_Circle_1iq66_gg_",
|
|
35
|
+
"_size_l": "_size_l_1iq66_gg_",
|
|
36
|
+
"_size_m": "_size_m_1iq66_gg_",
|
|
37
|
+
"_shape_Line": "_shape_Line_1iq66_gg_",
|
|
38
|
+
"_shape_Square": "_shape_Square_1iq66_gg_",
|
|
39
|
+
"_shape_Pattern": "_shape_Pattern_1iq66_gg_",
|
|
40
|
+
"__SIcon": "___SIcon_1iq66_gg_",
|
|
41
|
+
"__SLabel": "___SLabel_1iq66_gg_",
|
|
42
|
+
"__SAdditionalLabel": "___SAdditionalLabel_1iq66_gg_",
|
|
43
|
+
"__SCount": "___SCount_1iq66_gg_",
|
|
44
|
+
"__SPatternSymbol": "___SPatternSymbol_1iq66_gg_"
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
var enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
@@ -95,7 +95,11 @@ var LegendItemRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
95
95
|
}, {
|
|
96
96
|
key: "getLabelProps",
|
|
97
97
|
value: function getLabelProps() {
|
|
98
|
-
var _this$asProps2 = this.asProps, id = _this$asProps2.id, checked = _this$asProps2.checked
|
|
98
|
+
var _this$asProps2 = this.asProps, id = _this$asProps2.id, checked = _this$asProps2.checked;
|
|
99
|
+
_this$asProps2.color;
|
|
100
|
+
var onChangeLegendItem = _this$asProps2.onChangeLegendItem;
|
|
101
|
+
_this$asProps2.shape;
|
|
102
|
+
var props = _objectWithoutProperties(_this$asProps2, _excluded);
|
|
99
103
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
100
104
|
id: this.getUniqueID(),
|
|
101
105
|
checked,
|
|
@@ -4,8 +4,8 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled, assignProps
|
|
8
|
-
import { Box } from "@semcore/
|
|
7
|
+
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
8
|
+
import { Box } from "@semcore/flex-box";
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { BaseLegend } from "../BaseLegend.mjs";
|
|
11
11
|
import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
|
|
@@ -14,16 +14,16 @@ var style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
'.
|
|
17
|
+
'.___SLegendTable_1tal4_gg_.__columns-count_1tal4_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_1tal4_gg_._size_l_1tal4_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1tal4_gg_._size_m_1tal4_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"1tal4_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLegendTable": "
|
|
23
|
-
"_columns-count": "__columns-
|
|
24
|
-
"__SColumnItem": "
|
|
25
|
-
"_size_l": "
|
|
26
|
-
"_size_m": "
|
|
22
|
+
"__SLegendTable": "___SLegendTable_1tal4_gg_",
|
|
23
|
+
"_columns-count": "__columns-count_1tal4_gg_",
|
|
24
|
+
"__SColumnItem": "___SColumnItem_1tal4_gg_",
|
|
25
|
+
"_size_l": "_size_l_1tal4_gg_",
|
|
26
|
+
"_size_m": "_size_m_1tal4_gg_"
|
|
27
27
|
})
|
|
28
28
|
);
|
|
29
29
|
var LegendTableRoot = /* @__PURE__ */ (function(_BaseLegend) {
|
|
@@ -12,7 +12,7 @@ import React from "react";
|
|
|
12
12
|
import Bar, { MIN_HEIGHT } from "../../Bar.mjs";
|
|
13
13
|
import createElement from "../../createElement.mjs";
|
|
14
14
|
import { scaleToBand, getChartDefaultColorName } from "../../utils.mjs";
|
|
15
|
-
var XY0 =
|
|
15
|
+
var XY0 = Symbol("XY0");
|
|
16
16
|
var StackGroupBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
17
17
|
function StackGroupBarRoot2(props) {
|
|
18
18
|
var _this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
import {
|
|
4
|
+
import { createComponent, createBaseComponent, CONTEXT_COMPONENT } from "@semcore/core";
|
|
5
5
|
import assignProps from "@semcore/core/lib/utils/assignProps";
|
|
6
6
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
7
7
|
import propsForElement from "@semcore/core/lib/utils/propsForElement";
|
|
@@ -14,7 +14,9 @@ var EXCLUDE_PROPS = ["data", "scale"];
|
|
|
14
14
|
function createElementRender() {
|
|
15
15
|
var Element = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
|
|
16
16
|
var render = _ref.render, _ref$childrenPosition = _ref.childrenPosition, childrenPosition = _ref$childrenPosition === void 0 ? "below" : _ref$childrenPosition, xS = _ref.x, yS = _ref.y, source = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
var _Element$props = Element.props, _Element$props$forwar = _Element$props.forwardRef, forwardRef = _Element$props$forwar === void 0 ? null : _Element$props$forwar
|
|
17
|
+
var _Element$props = Element.props, _Element$props$forwar = _Element$props.forwardRef, forwardRef = _Element$props$forwar === void 0 ? null : _Element$props$forwar;
|
|
18
|
+
_Element$props.children;
|
|
19
|
+
var Children = _Element$props.Children, _Element$props$x = _Element$props.x, x = _Element$props$x === void 0 ? xS : _Element$props$x, _Element$props$y = _Element$props.y, y = _Element$props$y === void 0 ? yS : _Element$props$y, props = _objectWithoutProperties(_Element$props, _excluded2);
|
|
18
20
|
var children = getOriginChildren(Children);
|
|
19
21
|
var mergedProps = assignProps(_objectSpread(_objectSpread({
|
|
20
22
|
x: xS,
|