@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
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -5,7 +5,7 @@ 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,
|
|
8
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
9
9
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
10
10
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
11
11
|
import { transition } from "d3-transition";
|
|
@@ -19,19 +19,19 @@ var style = (
|
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
22
|
+
".___SScatterPlot_7mh1r_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:cx,cy;transition-duration:var(--duration_7mh1r);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_7mh1r_gg_:hover{opacity:.8}}.___SScatterPlot_7mh1r_gg_.__color_7mh1r_gg_{fill:var(--color_7mh1r)}.___SScatterPlot_7mh1r_gg_.__pattern_7mh1r_gg_.__color_7mh1r_gg_{fill:var(--pattern_7mh1r);stroke:var(--color_7mh1r);stroke-width:1px}.___SScatterPlot_7mh1r_gg_.__transparent_7mh1r_gg_{opacity:.3}.___SValue_7mh1r_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, rgb(92, 92, 196))}.___SValue_7mh1r_gg_.__color_7mh1r_gg_{stroke:var(--color_7mh1r)}.___SValue_7mh1r_gg_.__transparent_7mh1r_gg_{opacity:.3}",
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"7mh1r_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SScatterPlot": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SValue": "
|
|
34
|
-
"--duration": "--
|
|
27
|
+
"__SScatterPlot": "___SScatterPlot_7mh1r_gg_",
|
|
28
|
+
"_color": "__color_7mh1r_gg_",
|
|
29
|
+
"--color": "--color_7mh1r",
|
|
30
|
+
"_pattern": "__pattern_7mh1r_gg_",
|
|
31
|
+
"--pattern": "--pattern_7mh1r",
|
|
32
|
+
"_transparent": "__transparent_7mh1r_gg_",
|
|
33
|
+
"__SValue": "___SValue_7mh1r_gg_",
|
|
34
|
+
"--duration": "--duration_7mh1r"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -194,7 +194,6 @@ function ScatterPlotTooltip(props) {
|
|
|
194
194
|
"excludeAnchorProps": true
|
|
195
195
|
}, _ref))));
|
|
196
196
|
}
|
|
197
|
-
;
|
|
198
197
|
var ScatterPlot = createElement(ScatterPlotRoot, {
|
|
199
198
|
Tooltip: [ScatterPlotTooltip, Tooltip._______childrenComponents]
|
|
200
199
|
});
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -13,8 +13,8 @@ import Bar, { MIN_HEIGHT } from "./Bar.mjs";
|
|
|
13
13
|
import createElement from "./createElement.mjs";
|
|
14
14
|
import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
15
15
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
|
-
var DEFAULT_INSTANCE =
|
|
17
|
-
var XY0 =
|
|
16
|
+
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
17
|
+
var XY0 = Symbol("XY0");
|
|
18
18
|
var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
19
19
|
function StackBarRoot2() {
|
|
20
20
|
var _this;
|
|
@@ -98,7 +98,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
98
98
|
}, {
|
|
99
99
|
key: "getHorizontalBarProps",
|
|
100
100
|
value: function getHorizontalBarProps(_ref2, index) {
|
|
101
|
-
var _this$offsetBars$seri2
|
|
101
|
+
var _this3 = this, _this$offsetBars$seri2;
|
|
102
102
|
var x = _ref2.x, _ref2$wMin = _ref2.wMin, wMin = _ref2$wMin === void 0 ? MIN_WIDTH : _ref2$wMin;
|
|
103
103
|
var _this$asProps3 = this.asProps, y = _this$asProps3.y, r = _this$asProps3.r, scale = _this$asProps3.scale, maxBarSize = _this$asProps3.maxBarSize, patterns = _this$asProps3.patterns;
|
|
104
104
|
var _scale2 = _slicedToArray(scale, 1), xScale = _scale2[0];
|
|
@@ -106,6 +106,11 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
106
106
|
return s.key === x;
|
|
107
107
|
});
|
|
108
108
|
var series = this.series[seriesIndex];
|
|
109
|
+
var rBar = series.map(function(_s, i) {
|
|
110
|
+
return _this3.series.slice(seriesIndex + 1).some(function(bar) {
|
|
111
|
+
return bar[i][0] !== bar[i][1];
|
|
112
|
+
}) ? 0 : r;
|
|
113
|
+
});
|
|
109
114
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri2 = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri2 !== void 0 ? _this$offsetBars$seri2 : [];
|
|
110
115
|
var data = series.map(function(s) {
|
|
111
116
|
return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, x, s[1]), XY0, s[0]));
|
|
@@ -126,7 +131,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
126
131
|
wMin,
|
|
127
132
|
x0: XY0,
|
|
128
133
|
y,
|
|
129
|
-
r:
|
|
134
|
+
r: rBar,
|
|
130
135
|
groupKey: y,
|
|
131
136
|
offset: calcOffset,
|
|
132
137
|
maxBarSize,
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import React from "react";
|
|
|
11
11
|
import Area from "./Area.mjs";
|
|
12
12
|
import createElement from "./createElement.mjs";
|
|
13
13
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
14
|
-
var DEFAULT_INSTANCE =
|
|
15
|
-
var Y0 =
|
|
14
|
+
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
15
|
+
var Y0 = Symbol("Y0");
|
|
16
16
|
var StackedAreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
17
17
|
function StackedAreaRoot2() {
|
|
18
18
|
_classCallCheck(this, StackedAreaRoot2);
|
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -5,10 +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 {
|
|
9
|
-
import { Popper, Box } from "@semcore/base-components";
|
|
8
|
+
import { assignProps, Component, sstyled } from "@semcore/core";
|
|
10
9
|
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
11
10
|
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
11
|
+
import { Box } from "@semcore/flex-box";
|
|
12
|
+
import Popper from "@semcore/popper";
|
|
12
13
|
import React from "react";
|
|
13
14
|
import createElement from "./createElement.mjs";
|
|
14
15
|
import { PatternSymbol } from "./Pattern.mjs";
|
|
@@ -19,19 +20,19 @@ var style = (
|
|
|
19
20
|
/*__reshadow_css_start__*/
|
|
20
21
|
(sstyled.insert(
|
|
21
22
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
23
|
+
".___STooltip_13quy_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));padding:var(--intergalactic-spacing-3x, 12px)}@supports (color:color(display-p3 0 0 0%)){.___STooltip_13quy_gg_{border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___STooltip_13quy_gg_{border:1px solid var(--intergalactic-border-secondary, color(display-p3 0.01753 0.08157 0.06372 / 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___STitle_13quy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));margin-bottom:var(--intergalactic-spacing-2x, 8px)}@supports (color:color(display-p3 0 0 0%)){.___STitle_13quy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_13quy_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDotGroup_13quy_gg_{display:flex;align-items:center}.___SDot_13quy_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_13quy_gg_.__color_13quy_gg_{background-color:var(--color_13quy);width:8px;height:8px;border-radius:50%}.___SFooter_13quy_gg_{background:var(--intergalactic-bg-secondary-neutral, rgb(248, 249, 248));padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}",
|
|
23
24
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
25
|
+
"13quy_gg_"
|
|
25
26
|
), /*__reshadow_css_end__*/
|
|
26
27
|
{
|
|
27
|
-
"__STooltip": "
|
|
28
|
-
"__STitle": "
|
|
29
|
-
"__SDotGroup": "
|
|
30
|
-
"__SDot": "
|
|
31
|
-
"__SDotCircle": "
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"__SFooter": "
|
|
28
|
+
"__STooltip": "___STooltip_13quy_gg_",
|
|
29
|
+
"__STitle": "___STitle_13quy_gg_",
|
|
30
|
+
"__SDotGroup": "___SDotGroup_13quy_gg_",
|
|
31
|
+
"__SDot": "___SDot_13quy_gg_",
|
|
32
|
+
"__SDotCircle": "___SDotCircle_13quy_gg_",
|
|
33
|
+
"_color": "__color_13quy_gg_",
|
|
34
|
+
"--color": "--color_13quy",
|
|
35
|
+
"__SFooter": "___SFooter_13quy_gg_"
|
|
35
36
|
})
|
|
36
37
|
);
|
|
37
38
|
var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
@@ -144,7 +145,9 @@ var TooltipRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
144
145
|
key: "render",
|
|
145
146
|
value: function render() {
|
|
146
147
|
var _ref = this.asProps, _this$asProps$pattern, _this3 = this;
|
|
147
|
-
var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode
|
|
148
|
+
var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode;
|
|
149
|
+
_this$asProps3.onClick;
|
|
150
|
+
var other = _objectWithoutProperties(_this$asProps3, _excluded);
|
|
148
151
|
var advancedMode = forcedAdvancedMode || !!findComponent(Children, [Tooltip.Trigger.displayName, Tooltip.Popper.displayName]);
|
|
149
152
|
this.renderContext.index = -1;
|
|
150
153
|
this.renderContext.indexKeysCache.clear();
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
6
6
|
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
|
-
import { sstyled,
|
|
10
|
-
import { FadeInOut } from "@semcore/
|
|
9
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
10
|
+
import { FadeInOut } from "@semcore/animation";
|
|
11
11
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
12
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
13
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
@@ -22,19 +22,19 @@ var style = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
(sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
25
|
+
".___SCircle_h7w8o_gg_,.___SIntersection_h7w8o_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px}.___SCircle_h7w8o_gg_{fill:var(--intergalactic-chart-palette-order-2, rgb(56, 227, 181));fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_h7w8o);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_h7w8o_gg_:hover{fill-opacity:.7}}.___SCircle_h7w8o_gg_.__color_h7w8o_gg_{fill:var(--color_h7w8o)}.___SCircle_h7w8o_gg_.__pattern_h7w8o_gg_.__color_h7w8o_gg_{fill:var(--pattern_h7w8o);fill-opacity:.7;stroke:var(--color_h7w8o);stroke-width:1px}@media (hover:hover){.___SCircle_h7w8o_gg_.__pattern_h7w8o_gg_.__color_h7w8o_gg_:hover{fill-opacity:.85}}.___SCircle_h7w8o_gg_.__transparent_h7w8o_gg_{opacity:.3}.___SIntersection_h7w8o_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_h7w8o_gg_:hover{fill-opacity:.1}}.___SIntersection_h7w8o_gg_.__transparent_h7w8o_gg_{opacity:.3}",
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
27
|
+
"h7w8o_gg_"
|
|
28
28
|
), /*__reshadow_css_end__*/
|
|
29
29
|
{
|
|
30
|
-
"__SCircle": "
|
|
31
|
-
"_color": "
|
|
32
|
-
"--color": "--
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"__SIntersection": "
|
|
35
|
-
"--duration": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
30
|
+
"__SCircle": "___SCircle_h7w8o_gg_",
|
|
31
|
+
"_color": "__color_h7w8o_gg_",
|
|
32
|
+
"--color": "--color_h7w8o",
|
|
33
|
+
"_transparent": "__transparent_h7w8o_gg_",
|
|
34
|
+
"__SIntersection": "___SIntersection_h7w8o_gg_",
|
|
35
|
+
"--duration": "--duration_h7w8o",
|
|
36
|
+
"_pattern": "__pattern_h7w8o_gg_",
|
|
37
|
+
"--pattern": "--pattern_h7w8o"
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
var VennRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -243,7 +243,6 @@ function VennTooltip(props) {
|
|
|
243
243
|
"excludeAnchorProps": true
|
|
244
244
|
}, _ref))));
|
|
245
245
|
}
|
|
246
|
-
;
|
|
247
246
|
var Venn = createElement(VennRoot, {
|
|
248
247
|
Circle,
|
|
249
248
|
Intersection,
|
|
@@ -2,8 +2,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import { sstyled, assignProps } from "@semcore/core";
|
|
5
|
-
import { Box } from "@semcore/base-components";
|
|
6
5
|
import { Context, useI18n } from "@semcore/core/lib/utils/enhances/WithI18n";
|
|
6
|
+
import { Box } from "@semcore/flex-box";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { normalizeLocale } from "./locale.mjs";
|
|
9
9
|
import { localizedMessages } from "./translations/module/__intergalactic-dynamic-locales.mjs";
|
|
@@ -12,22 +12,28 @@ var styles = (
|
|
|
12
12
|
/*__reshadow_css_start__*/
|
|
13
13
|
(sstyled.insert(
|
|
14
14
|
/*__inner_css_start__*/
|
|
15
|
-
".
|
|
15
|
+
".___SPlotA11yModule_1bu48_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1bu48_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
|
|
16
16
|
/*__inner_css_end__*/
|
|
17
|
-
"
|
|
17
|
+
"1bu48_gg_"
|
|
18
18
|
), /*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SPlotA11yModule": "
|
|
20
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1bu48_gg_"
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
|
+
var globalWasFocused = false;
|
|
24
|
+
var globalNavWithKeyboard = false;
|
|
23
25
|
function PlotA11yModule(props) {
|
|
24
|
-
var _ref = arguments[0],
|
|
26
|
+
var _ref = arguments[0], _ref5;
|
|
25
27
|
var SPlotA11yModule = Box;
|
|
26
|
-
var _React$useState = React.useState(
|
|
27
|
-
var _React$useState3 = React.useState(
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
|
|
28
|
+
var _React$useState = React.useState(globalWasFocused), _React$useState2 = _slicedToArray(_React$useState, 2), wasFocused = _React$useState2[0], setWasFocused = _React$useState2[1];
|
|
29
|
+
var _React$useState3 = React.useState(globalNavWithKeyboard), _React$useState4 = _slicedToArray(_React$useState3, 2), navWithKeyboard = _React$useState4[0], setNavWithKeyboard = _React$useState4[1];
|
|
30
|
+
var _React$useState5 = React.useState(null), _React$useState6 = _slicedToArray(_React$useState5, 2), plotA11yView = _React$useState6[0], setPlotA11yView = _React$useState6[1];
|
|
31
|
+
var hadnleHiddenElementsFocus = React.useCallback(function() {
|
|
32
|
+
setWasFocused(true);
|
|
33
|
+
setNavWithKeyboard(true);
|
|
34
|
+
}, []);
|
|
35
|
+
var _React$useState7 = React.useState(false), _React$useState8 = _slicedToArray(_React$useState7, 2), loading = _React$useState8[0], setLoading = _React$useState8[1];
|
|
36
|
+
var _React$useState9 = React.useState(null), _React$useState0 = _slicedToArray(_React$useState9, 2), error = _React$useState0[0], setError = _React$useState0[1];
|
|
31
37
|
var contextLocale = React.useContext(Context);
|
|
32
38
|
var locale = React.useMemo(function() {
|
|
33
39
|
var _props$locale;
|
|
@@ -35,12 +41,42 @@ function PlotA11yModule(props) {
|
|
|
35
41
|
}, [props.locale]);
|
|
36
42
|
var t = useI18n(localizedMessages, locale);
|
|
37
43
|
React.useEffect(function() {
|
|
38
|
-
|
|
44
|
+
var _props$plotRef$curren;
|
|
45
|
+
if (wasFocused) return;
|
|
46
|
+
var focusListener = function focusListener2() {
|
|
47
|
+
globalWasFocused = true;
|
|
48
|
+
setWasFocused(true);
|
|
49
|
+
};
|
|
50
|
+
(_props$plotRef$curren = props.plotRef.current) === null || _props$plotRef$curren === void 0 || _props$plotRef$curren.addEventListener("focus", focusListener);
|
|
51
|
+
return function() {
|
|
52
|
+
var _props$plotRef$curren2;
|
|
53
|
+
return (_props$plotRef$curren2 = props.plotRef.current) === null || _props$plotRef$curren2 === void 0 ? void 0 : _props$plotRef$curren2.removeEventListener("focus", focusListener);
|
|
54
|
+
};
|
|
55
|
+
}, [wasFocused, props.plotRef]);
|
|
56
|
+
React.useEffect(function() {
|
|
57
|
+
var _document$body;
|
|
58
|
+
if (navWithKeyboard) return;
|
|
59
|
+
var keyboardListener = function keyboardListener2(event) {
|
|
60
|
+
var navigationKeys = ["Tab", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"];
|
|
61
|
+
if ("key" in event && navigationKeys.includes(event.key)) {
|
|
62
|
+
setNavWithKeyboard(true);
|
|
63
|
+
globalNavWithKeyboard = true;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
(_document$body = document.body) === null || _document$body === void 0 || _document$body.addEventListener("keydown", keyboardListener);
|
|
67
|
+
return function() {
|
|
68
|
+
var _document$body2;
|
|
69
|
+
return (_document$body2 = document.body) === null || _document$body2 === void 0 ? void 0 : _document$body2.removeEventListener("keydown", keyboardListener);
|
|
70
|
+
};
|
|
71
|
+
}, [navWithKeyboard]);
|
|
72
|
+
var shouldDisplayView = wasFocused && navWithKeyboard;
|
|
73
|
+
React.useEffect(function() {
|
|
74
|
+
if (!shouldDisplayView) return;
|
|
39
75
|
if (plotA11yView) return;
|
|
40
76
|
if (loading) return;
|
|
41
77
|
setLoading(true);
|
|
42
|
-
import("./PlotA11yView.mjs").then(function(
|
|
43
|
-
var PlotA11yView =
|
|
78
|
+
import("./PlotA11yView.mjs").then(function(_ref6) {
|
|
79
|
+
var PlotA11yView = _ref6.PlotA11yView;
|
|
44
80
|
setPlotA11yView({
|
|
45
81
|
Component: PlotA11yView
|
|
46
82
|
});
|
|
@@ -49,29 +85,31 @@ function PlotA11yModule(props) {
|
|
|
49
85
|
})["catch"](function(error2) {
|
|
50
86
|
console.error(error2);
|
|
51
87
|
setError(error2);
|
|
52
|
-
setLoading(false);
|
|
53
88
|
});
|
|
54
|
-
}, [plotA11yView,
|
|
89
|
+
}, [plotA11yView, shouldDisplayView, loading, setLoading]);
|
|
55
90
|
if (plotA11yView) {
|
|
56
|
-
|
|
57
|
-
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(plotA11yView.Component, _extends({}, props, {
|
|
58
|
-
onCloseHandler: function onCloseHandler() {
|
|
59
|
-
setIsOpened(false);
|
|
60
|
-
setPlotA11yView(null);
|
|
61
|
-
},
|
|
62
|
-
triggerRef: srButtonRef,
|
|
91
|
+
return sstyled(styles), /* @__PURE__ */ React.createElement(plotA11yView.Component, _extends({}, props, {
|
|
63
92
|
locale
|
|
64
93
|
}));
|
|
65
94
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
95
|
+
if (error) {
|
|
96
|
+
var _ref3;
|
|
97
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref3.cn("SPlotA11yModule", _objectSpread({}, assignProps({
|
|
98
|
+
"tabIndex": 0,
|
|
99
|
+
"aria-live": "assertive"
|
|
100
|
+
}, _ref))), t("failed"));
|
|
101
|
+
}
|
|
102
|
+
if (loading) {
|
|
103
|
+
var _ref4;
|
|
104
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref4.cn("SPlotA11yModule", _objectSpread({}, assignProps({
|
|
105
|
+
"tabIndex": 0,
|
|
106
|
+
"aria-live": "polite"
|
|
107
|
+
}, _ref))), t("loading"));
|
|
108
|
+
}
|
|
109
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref5.cn("SPlotA11yModule", _objectSpread({}, assignProps({
|
|
110
|
+
"tabIndex": 0,
|
|
111
|
+
"onFocus": hadnleHiddenElementsFocus
|
|
112
|
+
}, _ref))), t("disabled"));
|
|
75
113
|
}
|
|
76
114
|
export {
|
|
77
115
|
PlotA11yModule
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import { sstyled, assignProps } from "@semcore/core";
|
|
4
|
-
import { Box } from "@semcore/base-components";
|
|
5
4
|
import { useAsyncI18nMessages } from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
5
|
+
import { Box } from "@semcore/flex-box";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { DataAccessibilityTable } from "./DataAccessibilityTable.mjs";
|
|
8
8
|
import { heavyFindNextFocusableElement } from "./focus.mjs";
|
|
@@ -15,17 +15,17 @@ var styles = (
|
|
|
15
15
|
/*__reshadow_css_start__*/
|
|
16
16
|
(sstyled.insert(
|
|
17
17
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
18
|
+
".___SPlotA11yView_d4ich_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));border:3px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}@supports (color:color(display-p3 0 0 0%)){.___SPlotA11yView_d4ich_gg_{border:3px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SPlotA11yView_d4ich_gg_{border:3px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SPlotA11yView_d4ich_gg_:focus,.___SPlotA11yView_d4ich_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_d4ich_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_d4ich_gg_ table,.___SPlotA11yView_d4ich_gg_ td,.___SPlotA11yView_d4ich_gg_ th{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SPlotA11yView_d4ich_gg_ table,.___SPlotA11yView_d4ich_gg_ td,.___SPlotA11yView_d4ich_gg_ th{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SPlotA11yView_d4ich_gg_ table,.___SPlotA11yView_d4ich_gg_ td,.___SPlotA11yView_d4ich_gg_ th{border:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}",
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"d4ich_gg_"
|
|
21
21
|
), /*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SPlotA11yView": "
|
|
23
|
+
"__SPlotA11yView": "___SPlotA11yView_d4ich_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
|
-
function
|
|
26
|
+
var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
27
27
|
var _ref = arguments[0], _ref2;
|
|
28
|
-
var id = _ref3.id, providedData = _ref3.
|
|
28
|
+
var id = _ref3.id, providedData = _ref3.data, hints = _ref3.hints, plotLabel = _ref3.plotLabel, plotRef = _ref3.plotRef, providedConfig = _ref3.config, locale = _ref3.locale;
|
|
29
29
|
var SPlotA11yView = Box;
|
|
30
30
|
var translations = useAsyncI18nMessages(localizedMessages, locale);
|
|
31
31
|
var intl = React.useMemo(function() {
|
|
@@ -37,27 +37,8 @@ function PlotA11yView(_ref3) {
|
|
|
37
37
|
var data = React.useMemo(function() {
|
|
38
38
|
return Array.isArray(providedData) ? providedData : [providedData];
|
|
39
39
|
}, [providedData]);
|
|
40
|
-
var rootRef = React.useRef(null);
|
|
41
40
|
var _React$useState = React.useState(null), _React$useState2 = _slicedToArray(_React$useState, 2), summary = _React$useState2[0], setSummary = _React$useState2[1];
|
|
42
41
|
var _React$useState3 = React.useState(true), _React$useState4 = _slicedToArray(_React$useState3, 2), generatingSummary = _React$useState4[0], setGeneratingSummary = _React$useState4[1];
|
|
43
|
-
React.useEffect(function() {
|
|
44
|
-
var _rootRef$current, _rootRef$current3;
|
|
45
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 || _rootRef$current.focus();
|
|
46
|
-
function focusOutHandler(event) {
|
|
47
|
-
var _rootRef$current2;
|
|
48
|
-
if (event.relatedTarget === null) {
|
|
49
|
-
return requestIdleCallback(onCloseHandler);
|
|
50
|
-
}
|
|
51
|
-
if (!(event.relatedTarget instanceof HTMLElement)) return;
|
|
52
|
-
if ((_rootRef$current2 = rootRef.current) !== null && _rootRef$current2 !== void 0 && _rootRef$current2.contains(event.relatedTarget)) return;
|
|
53
|
-
requestIdleCallback(onCloseHandler);
|
|
54
|
-
}
|
|
55
|
-
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 || _rootRef$current3.addEventListener("focusout", focusOutHandler);
|
|
56
|
-
return function() {
|
|
57
|
-
var _rootRef$current4;
|
|
58
|
-
return (_rootRef$current4 = rootRef.current) === null || _rootRef$current4 === void 0 ? void 0 : _rootRef$current4.removeEventListener("focusout", focusOutHandler);
|
|
59
|
-
};
|
|
60
|
-
}, []);
|
|
61
42
|
React.useEffect(function() {
|
|
62
43
|
if (config.disable) {
|
|
63
44
|
setSummary("");
|
|
@@ -75,18 +56,14 @@ function PlotA11yView(_ref3) {
|
|
|
75
56
|
}, 0);
|
|
76
57
|
}, [providedData, hints, config, locale, translations, localizedMessages]);
|
|
77
58
|
var handleClose = React.useCallback(function() {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _triggerRef$current;
|
|
81
|
-
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
|
|
82
|
-
});
|
|
59
|
+
var _plotRef$current;
|
|
60
|
+
(_plotRef$current = plotRef.current) === null || _plotRef$current === void 0 || _plotRef$current.focus();
|
|
83
61
|
}, []);
|
|
84
62
|
var handleSkip = React.useCallback(function(event) {
|
|
85
63
|
var _heavyFindNextFocusab;
|
|
86
64
|
event.preventDefault();
|
|
87
65
|
if (!plotRef.current) return;
|
|
88
66
|
(_heavyFindNextFocusab = heavyFindNextFocusableElement(plotRef.current)) === null || _heavyFindNextFocusab === void 0 || _heavyFindNextFocusab.focus();
|
|
89
|
-
onCloseHandler();
|
|
90
67
|
}, []);
|
|
91
68
|
var handleSkipKeyboard = React.useCallback(function(event) {
|
|
92
69
|
if (!(event.key === "Enter" || event.key === " ")) return;
|
|
@@ -135,8 +112,7 @@ function PlotA11yView(_ref3) {
|
|
|
135
112
|
"tabIndex": 0,
|
|
136
113
|
"aria-label": texts.label,
|
|
137
114
|
"role": "dialog",
|
|
138
|
-
"__excludeProps": ["data"]
|
|
139
|
-
"ref": rootRef
|
|
115
|
+
"__excludeProps": ["data"]
|
|
140
116
|
}, _ref))), /* @__PURE__ */ React.createElement("button", _ref2.cn("button", {
|
|
141
117
|
"type": "button",
|
|
142
118
|
"onClick": handleClose
|
|
@@ -163,8 +139,7 @@ function PlotA11yView(_ref3) {
|
|
|
163
139
|
"config": config,
|
|
164
140
|
"intl": intl
|
|
165
141
|
})));
|
|
166
|
-
}
|
|
167
|
-
;
|
|
142
|
+
};
|
|
168
143
|
export {
|
|
169
144
|
PlotA11yView
|
|
170
145
|
};
|
|
@@ -489,8 +489,7 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
|
|
|
489
489
|
x: 1,
|
|
490
490
|
y: 1
|
|
491
491
|
}], {
|
|
492
|
-
width: 1
|
|
493
|
-
height: 1
|
|
492
|
+
width: 1
|
|
494
493
|
});
|
|
495
494
|
for (var _i3 = 0, _clustersInsights = clustersInsights; _i3 < _clustersInsights.length; _i3++) {
|
|
496
495
|
var clustersInsight = _clustersInsights[_i3];
|
package/lib/esm/a11y/intl.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "Drücken Sie die Tabulatortaste, um das Zugriffsmodul für grafische Diagramme zu aktivieren.";
|
|
1
2
|
const loading = "Lade Zugriffsmodul.";
|
|
2
3
|
const failed = "Zugriffsmodul konnte nicht geladen werden. Kontaktieren Sie den Support und helfen Sie uns, das Problem schneller zu beheben.";
|
|
3
4
|
const de = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Zusammenfassung der Daten öffnen"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
de as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Press "Tab" to enable graphical charts accessibility module.';
|
|
1
2
|
const loading = "Loading accessibility module.";
|
|
2
3
|
const failed = "Failed to load accessibility module. Contact service user support to help us resolve issue faster.";
|
|
3
4
|
const en = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Open data summary"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
en as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Pulse "Tab" para activar el módulo de accesibilidad a los gráficos.';
|
|
1
2
|
const loading = "Cargando módulo de accesibilidad.";
|
|
2
3
|
const failed = "No se ha podido cargar el módulo de accesibilidad. Contacta con el servicio de asistencia al usuario para ayudarnos a resolver el problema rápidamente.";
|
|
3
4
|
const es = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Abrir resumen de datos"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
es as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "Appuyez sur « Onglet » pour activer le module d’accessibilité aux diagrammes.";
|
|
1
2
|
const loading = "Chargement du module d’accessibilité en cours.";
|
|
2
3
|
const failed = "Impossible de charger le module d’accessibilité. Contactez le service d’assistance aux utilisateurs pour nous permettre de résoudre le problème plus rapidement.";
|
|
3
4
|
const fr = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Ouvrir le récapitulatif des données"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
fr as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = 'Premi "Tab" per abilitare il modulo di accessibilità dei dati per i grafici.';
|
|
1
2
|
const loading = "Caricamento del modulo di accessibilità in corso.";
|
|
2
3
|
const failed = "Caricamento del modulo di accessibilità non riuscito. Contatta il servizio di assistenza utenti per risolvere il problema più in fretta.";
|
|
3
4
|
const it = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Aprire il riepilogo dei dati"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
it 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 ja = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "データサマリーを開く"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
ja as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "'탭'을 누르면 그래픽 차트 접근성 모듈이 활성화됩니다.";
|
|
1
2
|
const loading = "접근성 모듈 로딩 중.";
|
|
2
3
|
const failed = "접근성 모듈을 불러오지 못했습니다. 사용자 지원 서비스 팀에 문의하시면 문제를 더 빨리 해결하실 수 있습니다.";
|
|
3
4
|
const ko = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "데이터 요약 열기"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
ko as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
const disabled = "Druk op Tab om de toegankelijkheidsmodule voor grafieken in te schakelen.";
|
|
1
2
|
const loading = "De toegankelijkheidsmodule wordt geladen.";
|
|
2
3
|
const failed = "De toegankelijkheidsmodule kan niet worden geladen. Neem contact op met ons supportteam zodat we het probleem sneller kunnen oplossen.";
|
|
3
4
|
const nl = {
|
|
5
|
+
disabled,
|
|
4
6
|
loading,
|
|
5
|
-
failed
|
|
6
|
-
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Open samenvatting gegevens"
|
|
7
|
+
failed
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
nl as default,
|
|
11
|
+
disabled,
|
|
10
12
|
failed,
|
|
11
13
|
loading
|
|
12
14
|
};
|