@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -50
- package/lib/cjs/AnimatedClipPath.js +13 -13
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +29 -27
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +97 -101
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +31 -32
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +26 -27
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +65 -68
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +94 -95
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +36 -34
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +16 -16
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +30 -31
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +27 -33
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +23 -23
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +13 -11
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +26 -27
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +125 -132
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +164 -145
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +47 -49
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +19 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +24 -25
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -23
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +14 -15
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +34 -35
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +28 -29
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +11 -12
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -11
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +4 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +5 -8
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +4 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +43 -46
- 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 +17 -20
- 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 +17 -21
- 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.js +18 -19
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +13 -14
- 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.js +15 -16
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +17 -18
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +14 -17
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +12 -13
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
- 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 +20 -20
- 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 +79 -67
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
- 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/ChartLegend/index.js +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +7 -8
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.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/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.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/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +2 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +31 -52
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -10
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +27 -24
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +96 -98
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +28 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +24 -24
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +63 -65
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +92 -92
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -33
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +14 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -26
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +24 -28
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +20 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +4 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +25 -25
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +122 -128
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +162 -142
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +44 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +17 -17
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +22 -22
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -19
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +12 -12
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +33 -33
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +26 -26
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +11 -11
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +3 -3
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +1 -1
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +2 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +40 -41
- 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 +16 -16
- 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 +15 -17
- 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.js +17 -15
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +17 -17
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +12 -10
- 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.js +14 -12
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +15 -14
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +12 -13
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +10 -9
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
- 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 +18 -17
- 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 +77 -64
- 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 +16 -15
- 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/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +16 -16
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +5 -5
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.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/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.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/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +1 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +11 -13
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +10 -7
- package/lib/esm/Area.mjs +30 -25
- package/lib/esm/Axis.mjs +67 -67
- package/lib/esm/Bar.mjs +31 -28
- package/lib/esm/Bubble.mjs +28 -26
- package/lib/esm/CompactHorizontalBar.mjs +61 -60
- package/lib/esm/Donut.mjs +50 -49
- package/lib/esm/Dots.mjs +32 -27
- package/lib/esm/GroupBar.mjs +14 -11
- package/lib/esm/HorizontalBar.mjs +30 -27
- package/lib/esm/Hover.mjs +28 -30
- package/lib/esm/Line.mjs +23 -20
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +27 -25
- package/lib/esm/Radar.mjs +90 -94
- package/lib/esm/RadialTree.mjs +86 -86
- package/lib/esm/Reference.mjs +34 -31
- package/lib/esm/ResponsiveContainer.mjs +19 -17
- package/lib/esm/ScatterPlot.mjs +26 -24
- package/lib/esm/StackBar.mjs +17 -17
- package/lib/esm/StackedArea.mjs +13 -11
- package/lib/esm/Tooltip.mjs +35 -33
- package/lib/esm/Venn.mjs +29 -27
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
- package/lib/esm/a11y/PlotA11yView.mjs +9 -9
- package/lib/esm/a11y/focus.mjs +3 -3
- package/lib/esm/a11y/hints.mjs +1 -1
- package/lib/esm/a11y/insights.mjs +77 -78
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
- package/lib/esm/component/Chart/AreaChart.mjs +19 -15
- package/lib/esm/component/Chart/BarChart.mjs +20 -17
- package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
- package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
- package/lib/esm/component/Chart/DonutChart.mjs +13 -10
- package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
- package/lib/esm/component/Chart/LineChart.mjs +18 -12
- package/lib/esm/component/Chart/RadarChart.mjs +19 -12
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
- package/lib/esm/component/Chart/VennChart.mjs +12 -9
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
- package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +5 -5
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/utils.mjs +8 -8
- package/lib/types/Area.d.ts +7 -6
- package/lib/types/Axis.d.ts +4 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +6 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +6 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +7 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +10 -9
- package/lib/types/Radar.d.ts +8 -7
- package/lib/types/RadialTree.d.ts +9 -54
- package/lib/types/Reference.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +6 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +14 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
- package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/utils.d.ts +6 -6
- package/package.json +22 -23
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -2,51 +2,53 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled,
|
|
10
|
-
import React from "react";
|
|
11
|
-
import { transition } from "d3-transition";
|
|
10
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
12
11
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
12
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
13
|
+
import { transition } from "d3-transition";
|
|
14
|
+
import React from "react";
|
|
14
15
|
import createElement from "./createElement.mjs";
|
|
15
|
-
import { getScatterPlotRadius } from "./utils.mjs";
|
|
16
|
-
import Tooltip from "./Tooltip.mjs";
|
|
17
16
|
import { PatternFill } from "./Pattern.mjs";
|
|
17
|
+
import Tooltip from "./Tooltip.mjs";
|
|
18
|
+
import { getScatterPlotRadius } from "./utils.mjs";
|
|
19
|
+
function _callSuper(t, o, e) {
|
|
20
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
21
|
+
}
|
|
18
22
|
/*!__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
|
19
23
|
var style = (
|
|
20
24
|
/*__reshadow_css_start__*/
|
|
21
25
|
(sstyled.insert(
|
|
22
26
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
27
|
+
".___SScatterPlot_6gt0a_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_6gt0a);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_6gt0a_gg_:hover{opacity:.8}}.___SScatterPlot_6gt0a_gg_.__color_6gt0a_gg_{fill:var(--color_6gt0a)}.___SScatterPlot_6gt0a_gg_.__pattern_6gt0a_gg_.__color_6gt0a_gg_{fill:var(--pattern_6gt0a);stroke:var(--color_6gt0a);stroke-width:1px}.___SScatterPlot_6gt0a_gg_.__transparent_6gt0a_gg_{opacity:.3}.___SValue_6gt0a_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_6gt0a_gg_.__color_6gt0a_gg_{stroke:var(--color_6gt0a)}.___SValue_6gt0a_gg_.__transparent_6gt0a_gg_{opacity:.3}",
|
|
24
28
|
/*__inner_css_end__*/
|
|
25
|
-
"
|
|
29
|
+
"6gt0a_gg_"
|
|
26
30
|
), /*__reshadow_css_end__*/
|
|
27
31
|
{
|
|
28
|
-
"__SScatterPlot": "
|
|
29
|
-
"_color": "
|
|
30
|
-
"--color": "--
|
|
31
|
-
"_pattern": "
|
|
32
|
-
"--pattern": "--
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"__SValue": "
|
|
35
|
-
"--duration": "--
|
|
32
|
+
"__SScatterPlot": "___SScatterPlot_6gt0a_gg_",
|
|
33
|
+
"_color": "__color_6gt0a_gg_",
|
|
34
|
+
"--color": "--color_6gt0a",
|
|
35
|
+
"_pattern": "__pattern_6gt0a_gg_",
|
|
36
|
+
"--pattern": "--pattern_6gt0a",
|
|
37
|
+
"_transparent": "__transparent_6gt0a_gg_",
|
|
38
|
+
"__SValue": "___SValue_6gt0a_gg_",
|
|
39
|
+
"--duration": "--duration_6gt0a"
|
|
36
40
|
})
|
|
37
41
|
);
|
|
38
42
|
var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
39
|
-
_inherits(ScatterPlotRoot2, _Component);
|
|
40
|
-
var _super = _createSuper(ScatterPlotRoot2);
|
|
41
43
|
function ScatterPlotRoot2() {
|
|
42
44
|
var _this;
|
|
43
45
|
_classCallCheck(this, ScatterPlotRoot2);
|
|
44
46
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45
47
|
args[_key] = arguments[_key];
|
|
46
48
|
}
|
|
47
|
-
_this =
|
|
48
|
-
_defineProperty(
|
|
49
|
-
_defineProperty(
|
|
49
|
+
_this = _callSuper(this, ScatterPlotRoot2, [].concat(args));
|
|
50
|
+
_defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
51
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
50
52
|
return function(_ref4) {
|
|
51
53
|
var clientX = _ref4.clientX, clientY = _ref4.clientY;
|
|
52
54
|
var eventEmitter = _this.asProps.eventEmitter;
|
|
@@ -57,7 +59,8 @@ var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
|
57
59
|
});
|
|
58
60
|
return _this;
|
|
59
61
|
}
|
|
60
|
-
|
|
62
|
+
_inherits(ScatterPlotRoot2, _Component);
|
|
63
|
+
return _createClass(ScatterPlotRoot2, [{
|
|
61
64
|
key: "generateGetBoundingClientRect",
|
|
62
65
|
value: function generateGetBoundingClientRect() {
|
|
63
66
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -169,7 +172,6 @@ var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
|
169
172
|
})));
|
|
170
173
|
}
|
|
171
174
|
}]);
|
|
172
|
-
return ScatterPlotRoot2;
|
|
173
175
|
}(Component);
|
|
174
176
|
_defineProperty(ScatterPlotRoot, "displayName", "ScatterPlot");
|
|
175
177
|
_defineProperty(ScatterPlotRoot, "style", style);
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -2,34 +2,37 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { stack } from "d3-shape";
|
|
11
10
|
import { Component } from "@semcore/core";
|
|
12
11
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
13
|
-
import
|
|
12
|
+
import { stack } from "d3-shape";
|
|
13
|
+
import React from "react";
|
|
14
14
|
import Bar, { MIN_HEIGHT } from "./Bar.mjs";
|
|
15
|
+
import createElement from "./createElement.mjs";
|
|
15
16
|
import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
16
17
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
18
|
+
function _callSuper(t, o, e) {
|
|
19
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
20
|
+
}
|
|
17
21
|
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
18
22
|
var XY0 = Symbol("XY0");
|
|
19
23
|
var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
20
|
-
_inherits(StackBarRoot2, _Component);
|
|
21
|
-
var _super = _createSuper(StackBarRoot2);
|
|
22
24
|
function StackBarRoot2() {
|
|
23
25
|
var _this;
|
|
24
26
|
_classCallCheck(this, StackBarRoot2);
|
|
25
27
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
28
|
args[_key] = arguments[_key];
|
|
27
29
|
}
|
|
28
|
-
_this =
|
|
29
|
-
_defineProperty(
|
|
30
|
+
_this = _callSuper(this, StackBarRoot2, [].concat(args));
|
|
31
|
+
_defineProperty(_this, "offsetBars", []);
|
|
30
32
|
return _this;
|
|
31
33
|
}
|
|
32
|
-
|
|
34
|
+
_inherits(StackBarRoot2, _Component);
|
|
35
|
+
return _createClass(StackBarRoot2, [{
|
|
33
36
|
key: "getSeries",
|
|
34
37
|
value: function getSeries() {
|
|
35
38
|
var _this$asProps = this.asProps, Children = _this$asProps.Children, data = _this$asProps.data, stack2 = _this$asProps.stack;
|
|
@@ -58,15 +61,14 @@ var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
58
61
|
return s.key === y;
|
|
59
62
|
});
|
|
60
63
|
var series = this.series[seriesIndex] || [];
|
|
61
|
-
var rBar = series.map(function(
|
|
64
|
+
var rBar = series.map(function(_s, i) {
|
|
62
65
|
return _this2.series.slice(seriesIndex + 1).some(function(bar) {
|
|
63
66
|
return bar[i][0] !== bar[i][1];
|
|
64
67
|
}) ? 0 : r;
|
|
65
68
|
});
|
|
66
69
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri !== void 0 ? _this$offsetBars$seri : [];
|
|
67
70
|
var data = series.map(function(s) {
|
|
68
|
-
|
|
69
|
-
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, y, s[1]), _defineProperty(_objectSpread2, XY0, s[0]), _objectSpread2));
|
|
71
|
+
return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, y, s[1]), XY0, s[0]));
|
|
70
72
|
});
|
|
71
73
|
var calcOffset = function calcOffset2(i) {
|
|
72
74
|
var _d$XY, _d$XY2;
|
|
@@ -109,15 +111,14 @@ var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
109
111
|
return s.key === x;
|
|
110
112
|
});
|
|
111
113
|
var series = this.series[seriesIndex];
|
|
112
|
-
var rBar = series.map(function(
|
|
114
|
+
var rBar = series.map(function(_s, i) {
|
|
113
115
|
return _this3.series.slice(seriesIndex + 1).some(function(bar) {
|
|
114
116
|
return bar[i][0] !== bar[i][1];
|
|
115
117
|
}) ? 0 : r;
|
|
116
118
|
});
|
|
117
119
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri2 = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri2 !== void 0 ? _this$offsetBars$seri2 : [];
|
|
118
120
|
var data = series.map(function(s) {
|
|
119
|
-
|
|
120
|
-
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread3 = {}, _defineProperty(_objectSpread3, x, s[1]), _defineProperty(_objectSpread3, XY0, s[0]), _objectSpread3));
|
|
121
|
+
return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, x, s[1]), XY0, s[0]));
|
|
121
122
|
});
|
|
122
123
|
var calcOffset = function calcOffset2(i) {
|
|
123
124
|
var _d$XY3, _d$XY4;
|
|
@@ -157,7 +158,6 @@ var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
}]);
|
|
160
|
-
return StackBarRoot2;
|
|
161
161
|
}(Component);
|
|
162
162
|
_defineProperty(StackBarRoot, "displayName", "StackBar");
|
|
163
163
|
_defineProperty(StackBarRoot, "defaultProps", function() {
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
4
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { stack } from "d3-shape";
|
|
9
9
|
import { Component } from "@semcore/core";
|
|
10
10
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
11
|
-
import
|
|
11
|
+
import { stack } from "d3-shape";
|
|
12
|
+
import React from "react";
|
|
12
13
|
import Area from "./Area.mjs";
|
|
14
|
+
import createElement from "./createElement.mjs";
|
|
13
15
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
|
+
function _callSuper(t, o, e) {
|
|
17
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
18
|
+
}
|
|
14
19
|
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
15
20
|
var Y0 = Symbol("Y0");
|
|
16
21
|
var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
17
|
-
_inherits(StackedAreaRoot2, _Component);
|
|
18
|
-
var _super = _createSuper(StackedAreaRoot2);
|
|
19
22
|
function StackedAreaRoot2() {
|
|
20
23
|
_classCallCheck(this, StackedAreaRoot2);
|
|
21
|
-
return
|
|
24
|
+
return _callSuper(this, StackedAreaRoot2, arguments);
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
_inherits(StackedAreaRoot2, _Component);
|
|
27
|
+
return _createClass(StackedAreaRoot2, [{
|
|
24
28
|
key: "getSeries",
|
|
25
29
|
value: function getSeries() {
|
|
26
30
|
var _this$asProps = this.asProps, Children = _this$asProps.Children, data = _this$asProps.data, stack2 = _this$asProps.stack;
|
|
@@ -47,8 +51,7 @@ var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
|
47
51
|
color: getChartDefaultColorName(index),
|
|
48
52
|
patterns,
|
|
49
53
|
data: series.map(function(s) {
|
|
50
|
-
|
|
51
|
-
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, y, s.data[y] === null ? null : s[1]), _defineProperty(_objectSpread2, Y0, s[0]), _objectSpread2));
|
|
54
|
+
return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, y, s.data[y] === null ? null : s[1]), Y0, s[0]));
|
|
52
55
|
}),
|
|
53
56
|
y0: Y0,
|
|
54
57
|
x
|
|
@@ -66,7 +69,6 @@ var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
}]);
|
|
69
|
-
return StackedAreaRoot2;
|
|
70
72
|
}(Component);
|
|
71
73
|
_defineProperty(StackedAreaRoot, "displayName", "StackedArea");
|
|
72
74
|
_defineProperty(StackedAreaRoot, "defaultProps", function() {
|
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -2,38 +2,42 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import {
|
|
10
|
-
import React from "react";
|
|
11
|
-
import Popper from "@semcore/popper";
|
|
12
|
-
import { Box } from "@semcore/flex-box";
|
|
10
|
+
import { assignProps, Component, sstyled } from "@semcore/core";
|
|
13
11
|
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
14
|
-
import createElement from "./createElement.mjs";
|
|
15
|
-
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
12
|
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
13
|
+
import { Box } from "@semcore/flex-box";
|
|
14
|
+
import Popper from "@semcore/popper";
|
|
15
|
+
import React from "react";
|
|
16
|
+
import createElement from "./createElement.mjs";
|
|
17
17
|
import { PatternSymbol } from "./Pattern.mjs";
|
|
18
|
+
import { getChartDefaultColorName } from "./utils.mjs";
|
|
18
19
|
var _excluded = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"];
|
|
20
|
+
function _callSuper(t, o, e) {
|
|
21
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
22
|
+
}
|
|
19
23
|
/*!__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
|
20
24
|
var style = (
|
|
21
25
|
/*__reshadow_css_start__*/
|
|
22
26
|
(sstyled.insert(
|
|
23
27
|
/*__inner_css_start__*/
|
|
24
|
-
".
|
|
28
|
+
".___STooltip_mdk6l_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_mdk6l_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_mdk6l_gg_{display:flex;align-items:center}.___SDot_mdk6l_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_mdk6l_gg_.__color_mdk6l_gg_{background-color:var(--color_mdk6l);width:8px;height:8px;border-radius:50%}.___SFooter_mdk6l_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);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))}",
|
|
25
29
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
30
|
+
"mdk6l_gg_"
|
|
27
31
|
), /*__reshadow_css_end__*/
|
|
28
32
|
{
|
|
29
|
-
"__STooltip": "
|
|
30
|
-
"__STitle": "
|
|
31
|
-
"__SDotGroup": "
|
|
32
|
-
"__SDot": "
|
|
33
|
-
"__SDotCircle": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"__SFooter": "
|
|
33
|
+
"__STooltip": "___STooltip_mdk6l_gg_",
|
|
34
|
+
"__STitle": "___STitle_mdk6l_gg_",
|
|
35
|
+
"__SDotGroup": "___SDotGroup_mdk6l_gg_",
|
|
36
|
+
"__SDot": "___SDot_mdk6l_gg_",
|
|
37
|
+
"__SDotCircle": "___SDotCircle_mdk6l_gg_",
|
|
38
|
+
"_color": "__color_mdk6l_gg_",
|
|
39
|
+
"--color": "--color_mdk6l",
|
|
40
|
+
"__SFooter": "___SFooter_mdk6l_gg_"
|
|
37
41
|
})
|
|
38
42
|
);
|
|
39
43
|
var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
@@ -41,42 +45,41 @@ var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
|
41
45
|
indexKeysCache: /* @__PURE__ */ new Set()
|
|
42
46
|
});
|
|
43
47
|
var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
44
|
-
_inherits(TooltipRoot2, _Component);
|
|
45
|
-
var _super = _createSuper(TooltipRoot2);
|
|
46
48
|
function TooltipRoot2() {
|
|
47
49
|
var _this;
|
|
48
50
|
_classCallCheck(this, TooltipRoot2);
|
|
49
51
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
52
|
args[_key] = arguments[_key];
|
|
51
53
|
}
|
|
52
|
-
_this =
|
|
53
|
-
_defineProperty(
|
|
54
|
+
_this = _callSuper(this, TooltipRoot2, [].concat(args));
|
|
55
|
+
_defineProperty(_this, "state", {
|
|
54
56
|
$visible: false,
|
|
55
57
|
anchorProps: {},
|
|
56
58
|
tooltipProps: {}
|
|
57
59
|
});
|
|
58
|
-
_defineProperty(
|
|
60
|
+
_defineProperty(_this, "renderContext", {
|
|
59
61
|
index: -1,
|
|
60
62
|
indexKeysCache: /* @__PURE__ */ new Set()
|
|
61
63
|
});
|
|
62
|
-
_defineProperty(
|
|
64
|
+
_defineProperty(_this, "handlerCancel", function() {
|
|
63
65
|
return false;
|
|
64
66
|
});
|
|
65
|
-
_defineProperty(
|
|
67
|
+
_defineProperty(_this, "virtualElementPosition", {
|
|
66
68
|
x: 0,
|
|
67
69
|
y: 0
|
|
68
70
|
});
|
|
69
|
-
_defineProperty(
|
|
70
|
-
_defineProperty(
|
|
71
|
-
_defineProperty(
|
|
71
|
+
_defineProperty(_this, "virtualTriggerElement", null);
|
|
72
|
+
_defineProperty(_this, "unsubscribe", []);
|
|
73
|
+
_defineProperty(_this, "handleTriggerClick", function(e) {
|
|
72
74
|
var onClick = _this.asProps.onClick;
|
|
73
75
|
var _this$state$tooltipPr = _this.state.tooltipProps, xIndex = _this$state$tooltipPr.xIndex, yIndex = _this$state$tooltipPr.yIndex;
|
|
74
76
|
var index = xIndex !== null && xIndex !== void 0 ? xIndex : yIndex;
|
|
75
|
-
onClick === null || onClick === void 0
|
|
77
|
+
onClick === null || onClick === void 0 || onClick(index, e);
|
|
76
78
|
});
|
|
77
79
|
return _this;
|
|
78
80
|
}
|
|
79
|
-
|
|
81
|
+
_inherits(TooltipRoot2, _Component);
|
|
82
|
+
return _createClass(TooltipRoot2, [{
|
|
80
83
|
key: "getTriggerProps",
|
|
81
84
|
value: function getTriggerProps() {
|
|
82
85
|
var _this$asProps = this.asProps, x = _this$asProps.x, y = _this$asProps.y, hideHoverLine = _this$asProps.hideHoverLine;
|
|
@@ -133,7 +136,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
133
136
|
left: x2
|
|
134
137
|
};
|
|
135
138
|
};
|
|
136
|
-
(_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0
|
|
139
|
+
(_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0 || _this2$popper$current.update();
|
|
137
140
|
}));
|
|
138
141
|
}
|
|
139
142
|
}, {
|
|
@@ -171,7 +174,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
171
174
|
var popper = _ref9.popper, setTrigger = _ref9.setTrigger;
|
|
172
175
|
_this3.setPopperTrigger = setTrigger;
|
|
173
176
|
_this3.popper = popper;
|
|
174
|
-
(_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0
|
|
177
|
+
(_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0 || _this3$popper$current.update();
|
|
175
178
|
return advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, tag && /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
176
179
|
tag,
|
|
177
180
|
onClick: _this3.handleTriggerClick
|
|
@@ -179,7 +182,6 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
179
182
|
}));
|
|
180
183
|
}
|
|
181
184
|
}]);
|
|
182
|
-
return TooltipRoot2;
|
|
183
185
|
}(Component);
|
|
184
186
|
_defineProperty(TooltipRoot, "displayName", "Tooltip");
|
|
185
187
|
_defineProperty(TooltipRoot, "style", style);
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -3,52 +3,54 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import
|
|
6
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
8
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
9
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
-
import { sstyled,
|
|
11
|
-
import React from "react";
|
|
12
|
-
import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
|
|
13
|
-
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
11
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
14
12
|
import { FadeInOut } from "@semcore/animation";
|
|
13
|
+
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
14
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
15
|
+
import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
|
|
16
|
+
import React from "react";
|
|
15
17
|
import createElement from "./createElement.mjs";
|
|
16
|
-
import { getChartDefaultColorName } from "./utils.mjs";
|
|
17
|
-
import Tooltip from "./Tooltip.mjs";
|
|
18
18
|
import { PatternFill } from "./Pattern.mjs";
|
|
19
|
-
import
|
|
19
|
+
import Tooltip from "./Tooltip.mjs";
|
|
20
|
+
import { getChartDefaultColorName } from "./utils.mjs";
|
|
21
|
+
function _callSuper(t, o, e) {
|
|
22
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
23
|
+
}
|
|
20
24
|
/*!__reshadow-styles__:"./style/venn.shadow.css"*/
|
|
21
25
|
var style = (
|
|
22
26
|
/*__reshadow_css_start__*/
|
|
23
27
|
(sstyled.insert(
|
|
24
28
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
29
|
+
".___SCircle_w2yj1_gg_,.___SIntersection_w2yj1_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_w2yj1_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_w2yj1);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_w2yj1_gg_:hover{fill-opacity:.7}}.___SCircle_w2yj1_gg_.__color_w2yj1_gg_{fill:var(--color_w2yj1)}.___SCircle_w2yj1_gg_.__pattern_w2yj1_gg_.__color_w2yj1_gg_{fill:var(--pattern_w2yj1);fill-opacity:.7;stroke:var(--color_w2yj1);stroke-width:1px}@media (hover:hover){.___SCircle_w2yj1_gg_.__pattern_w2yj1_gg_.__color_w2yj1_gg_:hover{fill-opacity:.85}}.___SCircle_w2yj1_gg_.__transparent_w2yj1_gg_{opacity:.3}.___SIntersection_w2yj1_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_w2yj1_gg_:hover{fill-opacity:.1}}.___SIntersection_w2yj1_gg_.__transparent_w2yj1_gg_{opacity:.3}",
|
|
26
30
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
31
|
+
"w2yj1_gg_"
|
|
28
32
|
), /*__reshadow_css_end__*/
|
|
29
33
|
{
|
|
30
|
-
"__SCircle": "
|
|
31
|
-
"_color": "
|
|
32
|
-
"--color": "--
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"__SIntersection": "
|
|
35
|
-
"--duration": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
34
|
+
"__SCircle": "___SCircle_w2yj1_gg_",
|
|
35
|
+
"_color": "__color_w2yj1_gg_",
|
|
36
|
+
"--color": "--color_w2yj1",
|
|
37
|
+
"_transparent": "__transparent_w2yj1_gg_",
|
|
38
|
+
"__SIntersection": "___SIntersection_w2yj1_gg_",
|
|
39
|
+
"--duration": "--duration_w2yj1",
|
|
40
|
+
"_pattern": "__pattern_w2yj1_gg_",
|
|
41
|
+
"--pattern": "--pattern_w2yj1"
|
|
38
42
|
})
|
|
39
43
|
);
|
|
40
44
|
var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
41
|
-
_inherits(VennRoot2, _Component);
|
|
42
|
-
var _super = _createSuper(VennRoot2);
|
|
43
45
|
function VennRoot2() {
|
|
44
46
|
var _this;
|
|
45
47
|
_classCallCheck(this, VennRoot2);
|
|
46
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
49
|
args[_key] = arguments[_key];
|
|
48
50
|
}
|
|
49
|
-
_this =
|
|
50
|
-
_defineProperty(
|
|
51
|
-
_defineProperty(
|
|
51
|
+
_this = _callSuper(this, VennRoot2, [].concat(args));
|
|
52
|
+
_defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
53
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
52
54
|
return function(_ref5) {
|
|
53
55
|
var clientX = _ref5.clientX, clientY = _ref5.clientY;
|
|
54
56
|
var eventEmitter = _this.asProps.eventEmitter;
|
|
@@ -57,7 +59,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
57
59
|
eventEmitter.emit("setTooltipVisible", visible);
|
|
58
60
|
};
|
|
59
61
|
});
|
|
60
|
-
_defineProperty(
|
|
62
|
+
_defineProperty(_this, "renderElement", /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
61
63
|
return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
|
|
62
64
|
"aria-hidden": true,
|
|
63
65
|
ref,
|
|
@@ -67,7 +69,8 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
67
69
|
}));
|
|
68
70
|
return _this;
|
|
69
71
|
}
|
|
70
|
-
|
|
72
|
+
_inherits(VennRoot2, _Component);
|
|
73
|
+
return _createClass(VennRoot2, [{
|
|
71
74
|
key: "generateGetBoundingClientRect",
|
|
72
75
|
value: function generateGetBoundingClientRect() {
|
|
73
76
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -161,7 +164,6 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
161
164
|
});
|
|
162
165
|
}
|
|
163
166
|
}]);
|
|
164
|
-
return VennRoot2;
|
|
165
167
|
}(Component);
|
|
166
168
|
_defineProperty(VennRoot, "displayName", "Venn");
|
|
167
169
|
_defineProperty(VennRoot, "style", style);
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
4
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import { defaultValueFormatter } from "./serialize.mjs";
|
|
6
|
+
import { defaultValueFormatter as _defaultValueFormatter } from "./serialize.mjs";
|
|
7
7
|
var DataAccessibilityTable = function DataAccessibilityTable2(_ref) {
|
|
8
8
|
var id = _ref.id, dataTableRef = _ref.dataTableRef, data = _ref.data, hints = _ref.hints, config = _ref.config, intl = _ref.intl;
|
|
9
9
|
var keys = React.useMemo(function() {
|
|
@@ -68,7 +68,7 @@ var DataAccessibilityTable = function DataAccessibilityTable2(_ref) {
|
|
|
68
68
|
}, [data, hints, duplicatedBaseKeys, config]);
|
|
69
69
|
var formatValue = React.useCallback(function(value, row) {
|
|
70
70
|
var _config$valuesFormatt, _config$valuesFormatt2;
|
|
71
|
-
return (_config$valuesFormatt = (_config$valuesFormatt2 = config.valuesFormatter) === null || _config$valuesFormatt2 === void 0 ? void 0 : _config$valuesFormatt2.call(config, value, row)) !== null && _config$valuesFormatt !== void 0 ? _config$valuesFormatt :
|
|
71
|
+
return (_config$valuesFormatt = (_config$valuesFormatt2 = config.valuesFormatter) === null || _config$valuesFormatt2 === void 0 ? void 0 : _config$valuesFormatt2.call(config, value, row)) !== null && _config$valuesFormatt !== void 0 ? _config$valuesFormatt : _defaultValueFormatter(intl, value);
|
|
72
72
|
}, [intl, config]);
|
|
73
73
|
return /* @__PURE__ */ React.createElement("table", {
|
|
74
74
|
id: "".concat(id, "-data-table"),
|
|
@@ -2,22 +2,22 @@ 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 { Context, useI18n } from "@semcore/core/lib/utils/enhances/WithI18n";
|
|
6
|
+
import { Box } from "@semcore/flex-box";
|
|
5
7
|
import React from "react";
|
|
6
8
|
import { normalizeLocale } from "./locale.mjs";
|
|
7
9
|
import { localizedMessages } from "./translations/module/__intergalactic-dynamic-locales.mjs";
|
|
8
|
-
import { Context, useI18n } from "@semcore/core/lib/utils/enhances/WithI18n";
|
|
9
|
-
import { Box } from "@semcore/flex-box";
|
|
10
10
|
/*!__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
|
11
11
|
var styles = (
|
|
12
12
|
/*__reshadow_css_start__*/
|
|
13
13
|
(sstyled.insert(
|
|
14
14
|
/*__inner_css_start__*/
|
|
15
|
-
".
|
|
15
|
+
".___SPlotA11yModule_pbhtr_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_pbhtr_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
|
+
"pbhtr_gg_"
|
|
18
18
|
), /*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SPlotA11yModule": "
|
|
20
|
+
"__SPlotA11yModule": "___SPlotA11yModule_pbhtr_gg_"
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
23
|
var globalWasFocused = false;
|
|
@@ -33,7 +33,7 @@ var PlotA11yModule = function PlotA11yModule2(props) {
|
|
|
33
33
|
setNavWithKeyboard(true);
|
|
34
34
|
}, []);
|
|
35
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$
|
|
36
|
+
var _React$useState9 = React.useState(null), _React$useState0 = _slicedToArray(_React$useState9, 2), error = _React$useState0[0], setError = _React$useState0[1];
|
|
37
37
|
var contextLocale = React.useContext(Context);
|
|
38
38
|
var locale = React.useMemo(function() {
|
|
39
39
|
var _props$locale;
|
|
@@ -47,7 +47,7 @@ var PlotA11yModule = function PlotA11yModule2(props) {
|
|
|
47
47
|
globalWasFocused = true;
|
|
48
48
|
setWasFocused(true);
|
|
49
49
|
};
|
|
50
|
-
(_props$plotRef$curren = props.plotRef.current) === null || _props$plotRef$curren === void 0
|
|
50
|
+
(_props$plotRef$curren = props.plotRef.current) === null || _props$plotRef$curren === void 0 || _props$plotRef$curren.addEventListener("focus", focusListener);
|
|
51
51
|
return function() {
|
|
52
52
|
var _props$plotRef$curren2;
|
|
53
53
|
return (_props$plotRef$curren2 = props.plotRef.current) === null || _props$plotRef$curren2 === void 0 ? void 0 : _props$plotRef$curren2.removeEventListener("focus", focusListener);
|
|
@@ -63,7 +63,7 @@ var PlotA11yModule = function PlotA11yModule2(props) {
|
|
|
63
63
|
globalNavWithKeyboard = true;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
(_document$body = document.body) === null || _document$body === void 0
|
|
66
|
+
(_document$body = document.body) === null || _document$body === void 0 || _document$body.addEventListener("keydown", keyboardListener);
|
|
67
67
|
return function() {
|
|
68
68
|
var _document$body2;
|
|
69
69
|
return (_document$body2 = document.body) === null || _document$body2 === void 0 ? void 0 : _document$body2.removeEventListener("keydown", keyboardListener);
|
|
@@ -1,26 +1,26 @@
|
|
|
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 { useAsyncI18nMessages } from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
5
|
+
import { Box } from "@semcore/flex-box";
|
|
4
6
|
import React from "react";
|
|
7
|
+
import { DataAccessibilityTable } from "./DataAccessibilityTable.mjs";
|
|
5
8
|
import { heavyFindNextFocusableElement } from "./focus.mjs";
|
|
6
9
|
import { makeDataSummarizationConfig } from "./hints.mjs";
|
|
7
10
|
import { getIntl } from "./intl.mjs";
|
|
8
11
|
import { summarize } from "./summarize.mjs";
|
|
9
|
-
import { Box } from "@semcore/flex-box";
|
|
10
|
-
import { useAsyncI18nMessages } from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
11
12
|
import { localizedMessages } from "./translations/view/__intergalactic-dynamic-locales.mjs";
|
|
12
|
-
import { DataAccessibilityTable } from "./DataAccessibilityTable.mjs";
|
|
13
13
|
/*!__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
|
14
14
|
var styles = (
|
|
15
15
|
/*__reshadow_css_start__*/
|
|
16
16
|
(sstyled.insert(
|
|
17
17
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
18
|
+
".___SPlotA11yView_11ikz_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_11ikz_gg_:focus,.___SPlotA11yView_11ikz_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_11ikz_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_11ikz_gg_ table,.___SPlotA11yView_11ikz_gg_ td,.___SPlotA11yView_11ikz_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}",
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"11ikz_gg_"
|
|
21
21
|
), /*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SPlotA11yView": "
|
|
23
|
+
"__SPlotA11yView": "___SPlotA11yView_11ikz_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
@@ -57,13 +57,13 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
57
57
|
}, [providedData, hints, config, locale, translations, localizedMessages]);
|
|
58
58
|
var handleClose = React.useCallback(function() {
|
|
59
59
|
var _plotRef$current;
|
|
60
|
-
(_plotRef$current = plotRef.current) === null || _plotRef$current === void 0
|
|
60
|
+
(_plotRef$current = plotRef.current) === null || _plotRef$current === void 0 || _plotRef$current.focus();
|
|
61
61
|
}, []);
|
|
62
62
|
var handleSkip = React.useCallback(function(event) {
|
|
63
63
|
var _heavyFindNextFocusab;
|
|
64
64
|
event.preventDefault();
|
|
65
65
|
if (!plotRef.current) return;
|
|
66
|
-
(_heavyFindNextFocusab = heavyFindNextFocusableElement(plotRef.current)) === null || _heavyFindNextFocusab === void 0
|
|
66
|
+
(_heavyFindNextFocusab = heavyFindNextFocusableElement(plotRef.current)) === null || _heavyFindNextFocusab === void 0 || _heavyFindNextFocusab.focus();
|
|
67
67
|
}, []);
|
|
68
68
|
var handleSkipKeyboard = React.useCallback(function(event) {
|
|
69
69
|
if (!(event.key === "Enter" || event.key === " ")) return;
|
|
@@ -72,7 +72,7 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
72
72
|
var handleGoToTable = React.useCallback(function(event) {
|
|
73
73
|
var _dataTableRef$current;
|
|
74
74
|
event.preventDefault();
|
|
75
|
-
(_dataTableRef$current = dataTableRef.current) === null || _dataTableRef$current === void 0
|
|
75
|
+
(_dataTableRef$current = dataTableRef.current) === null || _dataTableRef$current === void 0 || _dataTableRef$current.focus();
|
|
76
76
|
}, []);
|
|
77
77
|
var handleGoToTableKeyboard = React.useCallback(function(event) {
|
|
78
78
|
if (!(event.key === "Enter" || event.key === " ")) return;
|