@semcore/d3-chart 3.61.0-prerelease.4 → 3.61.0-prerelease.5
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/lib/cjs/AnimatedClipPath.js +11 -15
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +71 -48
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +170 -108
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +29 -34
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +211 -137
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +92 -82
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +154 -139
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +55 -38
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +15 -18
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +29 -34
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +52 -45
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +63 -41
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +16 -12
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +29 -36
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +281 -261
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +169 -154
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +45 -51
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +20 -25
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +71 -61
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -31
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +12 -16
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +73 -73
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +77 -52
- 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 +43 -86
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +44 -19
- 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 +5 -6
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +6 -9
- 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 +5 -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/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/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 +157 -83
- 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 +24 -51
- 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 +85 -69
- 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 +31 -27
- 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 +340 -147
- 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 +11 -15
- 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 +16 -22
- 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 +16 -44
- 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 +22 -48
- 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 +15 -19
- 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 +16 -21
- 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 +16 -19
- 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 +45 -23
- 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 +19 -24
- 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 +108 -83
- 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 -23
- 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 +16 -20
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +19 -24
- 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 +10 -12
- 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/style/abstract-chart.shadow.css +12 -0
- package/lib/cjs/style/axis.shadow.css +39 -1
- package/lib/cjs/style/bubble.shadow.css +8 -0
- package/lib/cjs/style/hover.shadow.css +2 -2
- package/lib/cjs/style/plot.shadow.css +8 -6
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +13 -26
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +1 -0
- package/lib/cjs/translations/es.json +1 -0
- package/lib/cjs/translations/fr.json +1 -0
- package/lib/cjs/translations/it.json +1 -0
- package/lib/cjs/translations/ja.json +1 -0
- package/lib/cjs/translations/ko.json +1 -0
- package/lib/cjs/translations/nl.json +1 -0
- package/lib/cjs/translations/pl.json +1 -0
- package/lib/cjs/translations/pt.json +1 -0
- package/lib/cjs/translations/sv.json +1 -0
- package/lib/cjs/translations/tr.json +2 -1
- package/lib/cjs/translations/vi.json +1 -0
- package/lib/cjs/translations/zh.json +1 -0
- 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 +14 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +36 -55
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +9 -11
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +70 -45
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +168 -104
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +27 -29
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +211 -135
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +89 -77
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +154 -137
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +55 -36
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +13 -15
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -29
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +51 -41
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +61 -37
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +7 -3
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +28 -32
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +279 -257
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +168 -151
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +43 -45
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +16 -19
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +71 -59
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -27
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +10 -13
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +68 -65
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +75 -48
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +43 -86
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +43 -16
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +4 -4
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +2 -2
- 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 +3 -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/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/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 +159 -80
- 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 +23 -48
- 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 +84 -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.js +30 -24
- 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 +341 -144
- 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 +9 -12
- 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 +14 -18
- 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 +15 -41
- 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 +20 -45
- 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 +13 -16
- 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 +15 -18
- 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 +14 -16
- 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 +43 -20
- 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 +17 -19
- 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 +102 -74
- 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 +15 -17
- 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 +14 -17
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +17 -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 +7 -7
- 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/style/abstract-chart.shadow.css +12 -0
- package/lib/es6/style/axis.shadow.css +39 -1
- package/lib/es6/style/bubble.shadow.css +8 -0
- package/lib/es6/style/hover.shadow.css +2 -2
- package/lib/es6/style/plot.shadow.css +8 -6
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +13 -26
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +1 -0
- package/lib/es6/translations/es.json +1 -0
- package/lib/es6/translations/fr.json +1 -0
- package/lib/es6/translations/it.json +1 -0
- package/lib/es6/translations/ja.json +1 -0
- package/lib/es6/translations/ko.json +1 -0
- package/lib/es6/translations/nl.json +1 -0
- package/lib/es6/translations/pl.json +1 -0
- package/lib/es6/translations/pt.json +1 -0
- package/lib/es6/translations/sv.json +1 -0
- package/lib/es6/translations/tr.json +2 -1
- package/lib/es6/translations/vi.json +1 -0
- package/lib/es6/translations/zh.json +1 -0
- 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 +2 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +16 -16
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +9 -16
- package/lib/esm/Area.mjs +51 -36
- package/lib/esm/Axis.mjs +143 -86
- package/lib/esm/Bar.mjs +31 -34
- package/lib/esm/Bubble.mjs +154 -106
- package/lib/esm/CompactHorizontalBar.mjs +88 -80
- package/lib/esm/Donut.mjs +87 -75
- package/lib/esm/Dots.mjs +50 -34
- package/lib/esm/GroupBar.mjs +12 -14
- package/lib/esm/HorizontalBar.mjs +31 -34
- package/lib/esm/Hover.mjs +53 -50
- package/lib/esm/Line.mjs +45 -31
- package/lib/esm/Pattern.mjs +4 -2
- package/lib/esm/Plot.mjs +30 -35
- package/lib/esm/Radar.mjs +188 -175
- package/lib/esm/RadialTree.mjs +105 -111
- package/lib/esm/Reference.mjs +37 -40
- package/lib/esm/ResponsiveContainer.mjs +18 -21
- package/lib/esm/ScatterPlot.mjs +49 -40
- package/lib/esm/StackBar.mjs +18 -28
- package/lib/esm/StackedArea.mjs +13 -16
- package/lib/esm/Tooltip.mjs +56 -59
- package/lib/esm/Venn.mjs +67 -47
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +35 -74
- package/lib/esm/a11y/PlotA11yView.mjs +41 -17
- package/lib/esm/a11y/focus.mjs +4 -4
- package/lib/esm/a11y/hints.mjs +2 -2
- package/lib/esm/a11y/insights.mjs +76 -76
- 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/module/de.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +141 -65
- package/lib/esm/component/Chart/AreaChart.mjs +27 -51
- package/lib/esm/component/Chart/BarChart.mjs +64 -51
- package/lib/esm/component/Chart/BubbleChart.mjs +30 -25
- package/lib/esm/component/Chart/CigaretteChart.mjs +298 -119
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +13 -15
- package/lib/esm/component/Chart/DonutChart.mjs +16 -19
- package/lib/esm/component/Chart/HistogramChart.mjs +22 -46
- package/lib/esm/component/Chart/LineChart.mjs +23 -46
- package/lib/esm/component/Chart/RadarChart.mjs +16 -18
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +18 -21
- package/lib/esm/component/Chart/VennChart.mjs +16 -19
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +45 -22
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +19 -22
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +88 -75
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +22 -25
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/Cigarette/Cigarette.mjs +16 -19
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +18 -22
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +8 -10
- package/lib/esm/index.mjs +3 -0
- package/lib/esm/style/abstract-chart.shadow.css +12 -0
- package/lib/esm/style/axis.shadow.css +39 -1
- package/lib/esm/style/bubble.shadow.css +8 -0
- package/lib/esm/style/hover.shadow.css +2 -2
- package/lib/esm/style/plot.shadow.css +8 -6
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +13 -26
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +1 -0
- package/lib/esm/translations/fr.json.mjs +1 -0
- package/lib/esm/translations/it.json.mjs +1 -0
- package/lib/esm/translations/ja.json.mjs +1 -0
- package/lib/esm/translations/ko.json.mjs +1 -0
- package/lib/esm/translations/nl.json.mjs +1 -0
- package/lib/esm/translations/pl.json.mjs +1 -0
- package/lib/esm/translations/pt.json.mjs +1 -0
- package/lib/esm/translations/sv.json.mjs +1 -0
- package/lib/esm/translations/tr.json.mjs +2 -1
- package/lib/esm/translations/vi.json.mjs +1 -0
- package/lib/esm/translations/zh.json.mjs +1 -0
- package/lib/esm/utils.mjs +11 -11
- package/lib/types/Area.d.ts +9 -6
- package/lib/types/Axis.d.ts +10 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +21 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +8 -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 +9 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +11 -9
- package/lib/types/Radar.d.ts +10 -7
- package/lib/types/RadialTree.d.ts +10 -54
- package/lib/types/Reference.d.ts +6 -5
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +8 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +12 -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 +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +13 -2
- 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/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +20 -13
- package/lib/types/component/Chart/AbstractChart.type.d.ts +39 -25
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +17 -7
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +14 -9
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +10 -5
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +18 -8
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +10 -6
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +16 -7
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +7 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +16 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +7 -5
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +12 -6
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +12 -6
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +8 -6
- 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 +3 -1
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +12 -0
- package/lib/types/utils.d.ts +17 -17
- package/package.json +10 -10
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -2,82 +2,78 @@ 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 _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled } from "@semcore/
|
|
10
|
-
import {
|
|
8
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import { Popper, Box } from "@semcore/base-components";
|
|
10
|
+
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
11
|
+
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
11
12
|
import React from "react";
|
|
12
|
-
import Popper from "@semcore/popper";
|
|
13
|
-
import { Box } from "@semcore/flex-box";
|
|
14
|
-
import findComponent from "@semcore/utils/lib/findComponent";
|
|
15
13
|
import createElement from "./createElement.mjs";
|
|
16
|
-
import { getChartDefaultColorName } from "./utils.mjs";
|
|
17
|
-
import { useColorResolver } from "@semcore/utils/lib/use/useColorResolver";
|
|
18
14
|
import { PatternSymbol } from "./Pattern.mjs";
|
|
15
|
+
import { getChartDefaultColorName } from "./utils.mjs";
|
|
19
16
|
var _excluded = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"];
|
|
20
17
|
/*!__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
|
21
18
|
var style = (
|
|
22
19
|
/*__reshadow_css_start__*/
|
|
23
20
|
(sstyled.insert(
|
|
24
21
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
22
|
+
".___STooltip_1ou5d_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_1ou5d_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_1ou5d_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_1ou5d_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_1ou5d_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_1ou5d_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDotGroup_1ou5d_gg_{display:flex;align-items:center}.___SDot_1ou5d_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1ou5d_gg_.__color_1ou5d_gg_{background-color:var(--color_1ou5d);width:8px;height:8px;border-radius:50%}.___SFooter_1ou5d_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))}",
|
|
26
23
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
24
|
+
"1ou5d_gg_"
|
|
28
25
|
), /*__reshadow_css_end__*/
|
|
29
26
|
{
|
|
30
|
-
"__STooltip": "
|
|
31
|
-
"__STitle": "
|
|
32
|
-
"__SDotGroup": "
|
|
33
|
-
"__SDot": "
|
|
34
|
-
"__SDotCircle": "
|
|
35
|
-
"_color": "
|
|
36
|
-
"--color": "--
|
|
37
|
-
"__SFooter": "
|
|
27
|
+
"__STooltip": "___STooltip_1ou5d_gg_",
|
|
28
|
+
"__STitle": "___STitle_1ou5d_gg_",
|
|
29
|
+
"__SDotGroup": "___SDotGroup_1ou5d_gg_",
|
|
30
|
+
"__SDot": "___SDot_1ou5d_gg_",
|
|
31
|
+
"__SDotCircle": "___SDotCircle_1ou5d_gg_",
|
|
32
|
+
"_color": "__color_1ou5d_gg_",
|
|
33
|
+
"--color": "--color_1ou5d",
|
|
34
|
+
"__SFooter": "___SFooter_1ou5d_gg_"
|
|
38
35
|
})
|
|
39
36
|
);
|
|
40
37
|
var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
41
38
|
index: -1,
|
|
42
39
|
indexKeysCache: /* @__PURE__ */ new Set()
|
|
43
40
|
});
|
|
44
|
-
var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
45
|
-
_inherits(TooltipRoot2, _Component);
|
|
46
|
-
var _super = _createSuper(TooltipRoot2);
|
|
41
|
+
var TooltipRoot = /* @__PURE__ */ (function(_Component) {
|
|
47
42
|
function TooltipRoot2() {
|
|
48
43
|
var _this;
|
|
49
44
|
_classCallCheck(this, TooltipRoot2);
|
|
50
45
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
51
46
|
args[_key] = arguments[_key];
|
|
52
47
|
}
|
|
53
|
-
_this =
|
|
54
|
-
_defineProperty(
|
|
48
|
+
_this = _callSuper(this, TooltipRoot2, [].concat(args));
|
|
49
|
+
_defineProperty(_this, "state", {
|
|
55
50
|
$visible: false,
|
|
56
51
|
anchorProps: {},
|
|
57
52
|
tooltipProps: {}
|
|
58
53
|
});
|
|
59
|
-
_defineProperty(
|
|
54
|
+
_defineProperty(_this, "renderContext", {
|
|
60
55
|
index: -1,
|
|
61
56
|
indexKeysCache: /* @__PURE__ */ new Set()
|
|
62
57
|
});
|
|
63
|
-
_defineProperty(
|
|
58
|
+
_defineProperty(_this, "handlerCancel", function() {
|
|
64
59
|
return false;
|
|
65
60
|
});
|
|
66
|
-
_defineProperty(
|
|
61
|
+
_defineProperty(_this, "virtualElementPosition", {
|
|
67
62
|
x: 0,
|
|
68
63
|
y: 0
|
|
69
64
|
});
|
|
70
|
-
_defineProperty(
|
|
71
|
-
_defineProperty(
|
|
72
|
-
_defineProperty(
|
|
65
|
+
_defineProperty(_this, "virtualTriggerElement", null);
|
|
66
|
+
_defineProperty(_this, "unsubscribe", []);
|
|
67
|
+
_defineProperty(_this, "handleTriggerClick", function(e) {
|
|
73
68
|
var onClick = _this.asProps.onClick;
|
|
74
69
|
var _this$state$tooltipPr = _this.state.tooltipProps, xIndex = _this$state$tooltipPr.xIndex, yIndex = _this$state$tooltipPr.yIndex;
|
|
75
70
|
var index = xIndex !== null && xIndex !== void 0 ? xIndex : yIndex;
|
|
76
|
-
onClick === null || onClick === void 0
|
|
71
|
+
onClick === null || onClick === void 0 || onClick(index, e);
|
|
77
72
|
});
|
|
78
73
|
return _this;
|
|
79
74
|
}
|
|
80
|
-
|
|
75
|
+
_inherits(TooltipRoot2, _Component);
|
|
76
|
+
return _createClass(TooltipRoot2, [{
|
|
81
77
|
key: "getTriggerProps",
|
|
82
78
|
value: function getTriggerProps() {
|
|
83
79
|
var _this$asProps = this.asProps, x = _this$asProps.x, y = _this$asProps.y, hideHoverLine = _this$asProps.hideHoverLine;
|
|
@@ -103,17 +99,17 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
103
99
|
key: "componentDidMount",
|
|
104
100
|
value: function componentDidMount() {
|
|
105
101
|
var _this2 = this;
|
|
106
|
-
var
|
|
107
|
-
this.unsubscribe.push(eventEmitter.subscribe("
|
|
102
|
+
var _this$asProps2 = this.asProps, eventEmitter = _this$asProps2.eventEmitter, plotId = _this$asProps2.plotId;
|
|
103
|
+
this.unsubscribe.push(eventEmitter.subscribe("setTooltipRenderingProps_".concat(plotId), function(anchorProps, tooltipProps) {
|
|
108
104
|
_this2.setState({
|
|
109
105
|
anchorProps,
|
|
110
106
|
tooltipProps
|
|
111
107
|
});
|
|
112
|
-
}), eventEmitter.subscribe("
|
|
108
|
+
}), eventEmitter.subscribe("setTooltipVisible_".concat(plotId), function(visible) {
|
|
113
109
|
return _this2.setState({
|
|
114
110
|
$visible: visible
|
|
115
111
|
});
|
|
116
|
-
}), eventEmitter.subscribe("
|
|
112
|
+
}), eventEmitter.subscribe("setTooltipPosition_".concat(plotId), function(x, y) {
|
|
117
113
|
var _this2$popper$current;
|
|
118
114
|
_this2.virtualElementPosition.x = x;
|
|
119
115
|
_this2.virtualElementPosition.y = y;
|
|
@@ -134,7 +130,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
134
130
|
left: x2
|
|
135
131
|
};
|
|
136
132
|
};
|
|
137
|
-
(_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0
|
|
133
|
+
(_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0 || _this2$popper$current.update();
|
|
138
134
|
}));
|
|
139
135
|
}
|
|
140
136
|
}, {
|
|
@@ -148,9 +144,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
148
144
|
key: "render",
|
|
149
145
|
value: function render() {
|
|
150
146
|
var _ref = this.asProps, _this$asProps$pattern, _this3 = this;
|
|
151
|
-
var _this$
|
|
152
|
-
_this$asProps2.onClick;
|
|
153
|
-
var other = _objectWithoutProperties(_this$asProps2, _excluded);
|
|
147
|
+
var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode, _ = _this$asProps3.onClick, other = _objectWithoutProperties(_this$asProps3, _excluded);
|
|
154
148
|
var advancedMode = forcedAdvancedMode || !!findComponent(Children, [Tooltip.Trigger.displayName, Tooltip.Popper.displayName]);
|
|
155
149
|
this.renderContext.index = -1;
|
|
156
150
|
this.renderContext.indexKeysCache.clear();
|
|
@@ -167,12 +161,12 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
167
161
|
"flip": {
|
|
168
162
|
allowedAutoPlacements: ["left", "right"]
|
|
169
163
|
}
|
|
170
|
-
}, _ref), function(
|
|
164
|
+
}, _ref), function(_ref0) {
|
|
171
165
|
var _this3$popper$current;
|
|
172
|
-
var popper =
|
|
166
|
+
var popper = _ref0.popper, setTrigger = _ref0.setTrigger;
|
|
173
167
|
_this3.setPopperTrigger = setTrigger;
|
|
174
168
|
_this3.popper = popper;
|
|
175
|
-
(_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0
|
|
169
|
+
(_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0 || _this3$popper$current.update();
|
|
176
170
|
return advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, tag && /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
177
171
|
tag,
|
|
178
172
|
onClick: _this3.handleTriggerClick
|
|
@@ -180,18 +174,21 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
180
174
|
}));
|
|
181
175
|
}
|
|
182
176
|
}]);
|
|
183
|
-
|
|
184
|
-
}(Component);
|
|
177
|
+
})(Component);
|
|
185
178
|
_defineProperty(TooltipRoot, "displayName", "Tooltip");
|
|
186
179
|
_defineProperty(TooltipRoot, "style", style);
|
|
180
|
+
function PopperTrigger() {
|
|
181
|
+
var _ref2 = arguments[0];
|
|
182
|
+
return /* @__PURE__ */ React.createElement(Popper.Trigger, assignProps({}, _ref2));
|
|
183
|
+
}
|
|
187
184
|
function PopperPopper(props) {
|
|
188
|
-
var
|
|
185
|
+
var _ref6;
|
|
189
186
|
var STooltip = props.Element, styles = props.styles, $visible = props.$visible, x = props.x, y = props.y;
|
|
190
187
|
var handlerCancel = React.useCallback(function() {
|
|
191
188
|
return false;
|
|
192
189
|
}, []);
|
|
193
190
|
if (!$visible) return null;
|
|
194
|
-
return
|
|
191
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(STooltip, _ref6.cn("STooltip", {
|
|
195
192
|
"render": Popper.Popper,
|
|
196
193
|
"childrenPosition": "inside",
|
|
197
194
|
"onMouseMove": handlerCancel,
|
|
@@ -201,16 +198,16 @@ function PopperPopper(props) {
|
|
|
201
198
|
}
|
|
202
199
|
PopperPopper.style = style;
|
|
203
200
|
function Title(props) {
|
|
204
|
-
var
|
|
201
|
+
var _ref3 = arguments[0], _ref7;
|
|
205
202
|
var STitle = Box;
|
|
206
203
|
var styles = props.styles;
|
|
207
|
-
return
|
|
204
|
+
return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref7.cn("STitle", _objectSpread({}, assignProps({
|
|
208
205
|
"__excludeProps": ["data", "scale"]
|
|
209
|
-
},
|
|
206
|
+
}, _ref3))));
|
|
210
207
|
}
|
|
211
208
|
Title.style = style;
|
|
212
209
|
function Dot(props) {
|
|
213
|
-
var
|
|
210
|
+
var _ref4 = arguments[0], _ref8, _props$patterns;
|
|
214
211
|
var styles = props.styles, color = props.color, Children = props.Children;
|
|
215
212
|
var resolveColor = useColorResolver();
|
|
216
213
|
var renderContext = React.useContext(TooltipDotRenderContext);
|
|
@@ -224,27 +221,27 @@ function Dot(props) {
|
|
|
224
221
|
var SDotGroup = Box;
|
|
225
222
|
var SDot = Box;
|
|
226
223
|
var SDotCircle = Box;
|
|
227
|
-
return
|
|
224
|
+
return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SDotGroup, _ref8.cn("SDotGroup", _objectSpread({}, assignProps({
|
|
228
225
|
"__excludeProps": ["data", "scale"]
|
|
229
|
-
},
|
|
226
|
+
}, _ref4))), patterns ? /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(PatternSymbol, _ref8.cn("PatternSymbol", {
|
|
230
227
|
"color": resolveColor(color !== null && color !== void 0 ? color : defaultColor),
|
|
231
228
|
"patternKey": color !== null && color !== void 0 ? color : defaultColor
|
|
232
|
-
}))) : /* @__PURE__ */ React.createElement(SDot,
|
|
229
|
+
}))) : /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(SDotCircle, _ref8.cn("SDotCircle", {
|
|
233
230
|
"color": resolveColor(color !== null && color !== void 0 ? color : defaultColor)
|
|
234
|
-
}))), /* @__PURE__ */ React.createElement(Children,
|
|
231
|
+
}))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
|
|
235
232
|
}
|
|
236
233
|
Dot.style = style;
|
|
237
234
|
function Footer(props) {
|
|
238
|
-
var
|
|
235
|
+
var _ref5 = arguments[0], _ref9;
|
|
239
236
|
var styles = props.styles;
|
|
240
237
|
var SFooter = Box;
|
|
241
|
-
return
|
|
238
|
+
return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SFooter, _ref9.cn("SFooter", _objectSpread({}, assignProps({
|
|
242
239
|
"__excludeProps": ["data", "scale"]
|
|
243
|
-
},
|
|
240
|
+
}, _ref5))));
|
|
244
241
|
}
|
|
245
242
|
Footer.style = style;
|
|
246
243
|
var Tooltip = createElement(TooltipRoot, {
|
|
247
|
-
Trigger:
|
|
244
|
+
Trigger: PopperTrigger,
|
|
248
245
|
Popper: PopperPopper,
|
|
249
246
|
Title,
|
|
250
247
|
Footer,
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -3,62 +3,59 @@ 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 _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
9
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
-
import { sstyled } from "@semcore/
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
9
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
10
|
+
import { FadeInOut } from "@semcore/base-components";
|
|
11
|
+
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
|
+
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
13
14
|
import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
|
|
14
|
-
import
|
|
15
|
-
import { FadeInOut } from "@semcore/animation";
|
|
15
|
+
import React from "react";
|
|
16
16
|
import createElement from "./createElement.mjs";
|
|
17
|
-
import { getChartDefaultColorName } from "./utils.mjs";
|
|
18
|
-
import Tooltip from "./Tooltip.mjs";
|
|
19
17
|
import { PatternFill } from "./Pattern.mjs";
|
|
20
|
-
import
|
|
18
|
+
import Tooltip from "./Tooltip.mjs";
|
|
19
|
+
import { getChartDefaultColorName } from "./utils.mjs";
|
|
21
20
|
/*!__reshadow-styles__:"./style/venn.shadow.css"*/
|
|
22
21
|
var style = (
|
|
23
22
|
/*__reshadow_css_start__*/
|
|
24
23
|
(sstyled.insert(
|
|
25
24
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
25
|
+
".___SCircle_itic7_gg_,.___SIntersection_itic7_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px}.___SCircle_itic7_gg_{fill:var(--intergalactic-chart-palette-order-2, rgb(56, 227, 181));fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_itic7);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_itic7_gg_:hover{fill-opacity:.7}}.___SCircle_itic7_gg_.__color_itic7_gg_{fill:var(--color_itic7)}.___SCircle_itic7_gg_.__pattern_itic7_gg_.__color_itic7_gg_{fill:var(--pattern_itic7);fill-opacity:.7;stroke:var(--color_itic7);stroke-width:1px}@media (hover:hover){.___SCircle_itic7_gg_.__pattern_itic7_gg_.__color_itic7_gg_:hover{fill-opacity:.85}}.___SCircle_itic7_gg_.__transparent_itic7_gg_{opacity:.3}.___SIntersection_itic7_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_itic7_gg_:hover{fill-opacity:.1}}.___SIntersection_itic7_gg_.__transparent_itic7_gg_{opacity:.3}",
|
|
27
26
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
27
|
+
"itic7_gg_"
|
|
29
28
|
), /*__reshadow_css_end__*/
|
|
30
29
|
{
|
|
31
|
-
"__SCircle": "
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"_transparent": "
|
|
35
|
-
"__SIntersection": "
|
|
36
|
-
"--duration": "--
|
|
37
|
-
"_pattern": "
|
|
38
|
-
"--pattern": "--
|
|
30
|
+
"__SCircle": "___SCircle_itic7_gg_",
|
|
31
|
+
"_color": "__color_itic7_gg_",
|
|
32
|
+
"--color": "--color_itic7",
|
|
33
|
+
"_transparent": "__transparent_itic7_gg_",
|
|
34
|
+
"__SIntersection": "___SIntersection_itic7_gg_",
|
|
35
|
+
"--duration": "--duration_itic7",
|
|
36
|
+
"_pattern": "__pattern_itic7_gg_",
|
|
37
|
+
"--pattern": "--pattern_itic7"
|
|
39
38
|
})
|
|
40
39
|
);
|
|
41
|
-
var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
42
|
-
_inherits(VennRoot2, _Component);
|
|
43
|
-
var _super = _createSuper(VennRoot2);
|
|
40
|
+
var VennRoot = /* @__PURE__ */ (function(_Component) {
|
|
44
41
|
function VennRoot2() {
|
|
45
42
|
var _this;
|
|
46
43
|
_classCallCheck(this, VennRoot2);
|
|
47
44
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
48
45
|
args[_key] = arguments[_key];
|
|
49
46
|
}
|
|
50
|
-
_this =
|
|
51
|
-
_defineProperty(
|
|
52
|
-
_defineProperty(
|
|
47
|
+
_this = _callSuper(this, VennRoot2, [].concat(args));
|
|
48
|
+
_defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
49
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
53
50
|
return function(_ref5) {
|
|
54
51
|
var clientX = _ref5.clientX, clientY = _ref5.clientY;
|
|
55
|
-
var eventEmitter = _this.asProps.
|
|
56
|
-
eventEmitter.emit("
|
|
57
|
-
eventEmitter.emit("
|
|
58
|
-
eventEmitter.emit("
|
|
52
|
+
var _this$asProps = _this.asProps, eventEmitter = _this$asProps.eventEmitter, plotId = _this$asProps.plotId;
|
|
53
|
+
eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
|
|
54
|
+
eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), props, tooltipProps);
|
|
55
|
+
eventEmitter.emit("setTooltipVisible_".concat(plotId), visible);
|
|
59
56
|
};
|
|
60
57
|
});
|
|
61
|
-
_defineProperty(
|
|
58
|
+
_defineProperty(_this, "renderElement", /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
62
59
|
return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
|
|
63
60
|
"aria-hidden": true,
|
|
64
61
|
ref,
|
|
@@ -68,7 +65,8 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
68
65
|
}));
|
|
69
66
|
return _this;
|
|
70
67
|
}
|
|
71
|
-
|
|
68
|
+
_inherits(VennRoot2, _Component);
|
|
69
|
+
return _createClass(VennRoot2, [{
|
|
72
70
|
key: "generateGetBoundingClientRect",
|
|
73
71
|
value: function generateGetBoundingClientRect() {
|
|
74
72
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -87,7 +85,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
87
85
|
}, {
|
|
88
86
|
key: "getVennData",
|
|
89
87
|
value: function getVennData() {
|
|
90
|
-
var _this$
|
|
88
|
+
var _this$asProps2 = this.asProps, data = _this$asProps2.data, orientation = _this$asProps2.orientation, orientationOrder2 = _this$asProps2.orientationOrder, size = _this$asProps2.size;
|
|
91
89
|
var _size = _slicedToArray(size, 2), width = _size[0], height = _size[1];
|
|
92
90
|
var vennData = Object.entries(data).map(function(_ref6) {
|
|
93
91
|
var _ref7 = _slicedToArray(_ref6, 2), dataKey = _ref7[0], size2 = _ref7[1];
|
|
@@ -98,6 +96,13 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
98
96
|
});
|
|
99
97
|
return scaleSolution(normalizeSolution(venn(vennData), orientation, orientationOrder2), width, height, 10);
|
|
100
98
|
}
|
|
99
|
+
}, {
|
|
100
|
+
key: "getTooltipProps",
|
|
101
|
+
value: function getTooltipProps() {
|
|
102
|
+
return {
|
|
103
|
+
uniqId: this.asProps.uid
|
|
104
|
+
};
|
|
105
|
+
}
|
|
101
106
|
}, {
|
|
102
107
|
key: "getCircleProps",
|
|
103
108
|
value: function getCircleProps(props, index) {
|
|
@@ -120,13 +125,14 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
120
125
|
color,
|
|
121
126
|
uid: "".concat(this.asProps.uid, "-").concat(index),
|
|
122
127
|
patterns: this.asProps.patterns,
|
|
123
|
-
minRadius: this.asProps.minRadius
|
|
128
|
+
minRadius: this.asProps.minRadius,
|
|
129
|
+
onClickCircleRoot: this.handlerOnClick(props.dataKey).bind(this)
|
|
124
130
|
};
|
|
125
131
|
}
|
|
126
132
|
}, {
|
|
127
133
|
key: "getIntersectionProps",
|
|
128
134
|
value: function getIntersectionProps(props) {
|
|
129
|
-
var _this$
|
|
135
|
+
var _this$asProps3 = this.asProps, duration = _this$asProps3.duration, transparent = _this$asProps3.transparent;
|
|
130
136
|
var dataKeys = props.dataKey.split("/");
|
|
131
137
|
var tooltipProps = {
|
|
132
138
|
dataKey: props.dataKey,
|
|
@@ -145,7 +151,19 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
145
151
|
onMouseMove: this.bindHandlerTooltip(true, props, tooltipProps),
|
|
146
152
|
onMouseLeave: this.bindHandlerTooltip(false, props, tooltipProps),
|
|
147
153
|
transparent,
|
|
148
|
-
resolveColor: this.asProps.resolveColor
|
|
154
|
+
resolveColor: this.asProps.resolveColor,
|
|
155
|
+
onClickIntersectionRoot: this.handlerOnClick(props.dataKey).bind(this)
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "handlerOnClick",
|
|
160
|
+
value: function handlerOnClick(dataKey) {
|
|
161
|
+
var _this2 = this;
|
|
162
|
+
return function(e) {
|
|
163
|
+
e.stopPropagation();
|
|
164
|
+
var onClick = _this2.asProps.onClick;
|
|
165
|
+
if (!onClick) return;
|
|
166
|
+
onClick(dataKey, e);
|
|
149
167
|
};
|
|
150
168
|
}
|
|
151
169
|
}, {
|
|
@@ -162,8 +180,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
162
180
|
});
|
|
163
181
|
}
|
|
164
182
|
}]);
|
|
165
|
-
|
|
166
|
-
}(Component);
|
|
183
|
+
})(Component);
|
|
167
184
|
_defineProperty(VennRoot, "displayName", "Venn");
|
|
168
185
|
_defineProperty(VennRoot, "style", style);
|
|
169
186
|
_defineProperty(VennRoot, "defaultProps", {
|
|
@@ -177,11 +194,11 @@ _defineProperty(VennRoot, "defaultProps", {
|
|
|
177
194
|
_defineProperty(VennRoot, "enhance", [uniqueIDEnhancement()]);
|
|
178
195
|
function Circle(_ref8) {
|
|
179
196
|
var _ref2;
|
|
180
|
-
var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius;
|
|
197
|
+
var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius, onClick = _ref8.onClick, onClickCircleRoot = _ref8.onClickCircleRoot;
|
|
181
198
|
dataHintsHandler.describeValueEntity(dataKey, name);
|
|
182
199
|
var radius = data.radius < minRadius ? minRadius : data.radius;
|
|
183
200
|
if (data.radius === 0) return null;
|
|
184
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref2 = sstyled
|
|
201
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SCircle, _ref2.cn("SCircle", {
|
|
185
202
|
"aria-hidden": true,
|
|
186
203
|
"render": "circle",
|
|
187
204
|
"color": resolveColor(color),
|
|
@@ -190,7 +207,8 @@ function Circle(_ref8) {
|
|
|
190
207
|
"cy": data.y,
|
|
191
208
|
"r": radius,
|
|
192
209
|
"transparent": transparent,
|
|
193
|
-
"use:duration": "".concat(duration, "ms")
|
|
210
|
+
"use:duration": "".concat(duration, "ms"),
|
|
211
|
+
"onClickCapture": callAllEventHandlers(onClickCircleRoot, onClick)
|
|
194
212
|
}))), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref2.cn("PatternFill", {
|
|
195
213
|
"id": "".concat(uid, "-pattern"),
|
|
196
214
|
"patternKey": color,
|
|
@@ -200,7 +218,7 @@ function Circle(_ref8) {
|
|
|
200
218
|
}
|
|
201
219
|
function Intersection(props) {
|
|
202
220
|
var _ref3;
|
|
203
|
-
var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent;
|
|
221
|
+
var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent, onClick = props.onClick, onClickIntersectionRoot = props.onClickIntersectionRoot;
|
|
204
222
|
dataHintsHandler.describeValueEntity(dataKey, name);
|
|
205
223
|
var renderIntersection = React.useCallback(/* @__PURE__ */ React.forwardRef(function(props2, ref) {
|
|
206
224
|
return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
|
|
@@ -210,20 +228,22 @@ function Intersection(props) {
|
|
|
210
228
|
visible: true
|
|
211
229
|
}, props2));
|
|
212
230
|
}), [props]);
|
|
213
|
-
return _ref3 = sstyled
|
|
231
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SIntersection, _ref3.cn("SIntersection", {
|
|
214
232
|
"aria-hidden": true,
|
|
215
233
|
"render": renderIntersection,
|
|
216
234
|
"d": intersectionAreaPath(data),
|
|
217
|
-
"transparent": transparent
|
|
235
|
+
"transparent": transparent,
|
|
236
|
+
"onClickCapture": callAllEventHandlers(onClickIntersectionRoot, onClick)
|
|
218
237
|
}));
|
|
219
238
|
}
|
|
220
|
-
|
|
239
|
+
function VennTooltip(props) {
|
|
221
240
|
var _ref = arguments[0], _ref4;
|
|
222
241
|
var SVennTooltip = Tooltip;
|
|
223
|
-
return _ref4 = sstyled
|
|
242
|
+
return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SVennTooltip, _ref4.cn("SVennTooltip", _objectSpread({}, assignProps({
|
|
224
243
|
"excludeAnchorProps": true
|
|
225
244
|
}, _ref))));
|
|
226
|
-
}
|
|
245
|
+
}
|
|
246
|
+
;
|
|
227
247
|
var Venn = createElement(VennRoot, {
|
|
228
248
|
Circle,
|
|
229
249
|
Intersection,
|
|
@@ -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"),
|