@semcore/d3-chart 16.7.0-prerelease.3 → 16.7.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/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +18 -16
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/CompactHorizontalBar.js +20 -20
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +17 -17
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +6 -9
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ResponsiveContainer.js +2 -2
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/StackBar.js +3 -8
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/Tooltip.js +18 -19
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +12 -12
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +37 -79
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +39 -12
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/translations/module/de.json +2 -2
- package/lib/cjs/a11y/translations/module/en.json +2 -2
- package/lib/cjs/a11y/translations/module/es.json +2 -2
- package/lib/cjs/a11y/translations/module/fr.json +2 -2
- package/lib/cjs/a11y/translations/module/it.json +2 -2
- package/lib/cjs/a11y/translations/module/ja.json +2 -2
- package/lib/cjs/a11y/translations/module/ko.json +2 -2
- package/lib/cjs/a11y/translations/module/nl.json +2 -2
- package/lib/cjs/a11y/translations/module/pl.json +2 -2
- package/lib/cjs/a11y/translations/module/pt.json +2 -2
- package/lib/cjs/a11y/translations/module/sv.json +2 -2
- package/lib/cjs/a11y/translations/module/tr.json +2 -2
- package/lib/cjs/a11y/translations/module/vi.json +2 -2
- package/lib/cjs/a11y/translations/module/zh.json +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +9 -9
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +66 -19
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +8 -8
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +2 -2
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +6 -6
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -23
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +9 -9
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/style/axis.shadow.css +3 -1
- package/lib/cjs/style/plot.shadow.css +1 -3
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +13 -26
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +18 -16
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/CompactHorizontalBar.js +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +17 -17
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +5 -8
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ResponsiveContainer.js +1 -1
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/StackBar.js +3 -8
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/Tooltip.js +10 -11
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +10 -10
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +36 -80
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +37 -10
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/translations/module/de.json +2 -2
- package/lib/es6/a11y/translations/module/en.json +2 -2
- package/lib/es6/a11y/translations/module/es.json +2 -2
- package/lib/es6/a11y/translations/module/fr.json +2 -2
- package/lib/es6/a11y/translations/module/it.json +2 -2
- package/lib/es6/a11y/translations/module/ja.json +2 -2
- package/lib/es6/a11y/translations/module/ko.json +2 -2
- package/lib/es6/a11y/translations/module/nl.json +2 -2
- package/lib/es6/a11y/translations/module/pl.json +2 -2
- package/lib/es6/a11y/translations/module/pt.json +2 -2
- package/lib/es6/a11y/translations/module/sv.json +2 -2
- package/lib/es6/a11y/translations/module/tr.json +2 -2
- package/lib/es6/a11y/translations/module/vi.json +2 -2
- package/lib/es6/a11y/translations/module/zh.json +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +5 -5
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +67 -20
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +1 -1
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +5 -5
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +18 -18
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +7 -7
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +3 -1
- package/lib/es6/style/plot.shadow.css +1 -3
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +13 -26
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +2 -7
- package/lib/esm/Area.mjs +14 -14
- package/lib/esm/Axis.mjs +21 -19
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +16 -16
- package/lib/esm/CompactHorizontalBar.mjs +20 -19
- package/lib/esm/Donut.mjs +15 -13
- package/lib/esm/Dots.mjs +10 -10
- package/lib/esm/HorizontalBar.mjs +18 -18
- package/lib/esm/Hover.mjs +6 -6
- package/lib/esm/Line.mjs +12 -12
- package/lib/esm/Plot.mjs +7 -10
- package/lib/esm/Radar.mjs +23 -23
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ResponsiveContainer.mjs +2 -2
- package/lib/esm/ScatterPlot.mjs +12 -11
- package/lib/esm/StackBar.mjs +4 -9
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +13 -16
- package/lib/esm/Venn.mjs +13 -12
- package/lib/esm/a11y/PlotA11yModule.mjs +31 -69
- package/lib/esm/a11y/PlotA11yView.mjs +35 -10
- package/lib/esm/a11y/insights.mjs +2 -1
- package/lib/esm/a11y/intl.mjs +1 -1
- 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/component/Chart/AbstractChart.mjs +12 -10
- package/lib/esm/component/Chart/AreaChart.mjs +5 -4
- package/lib/esm/component/Chart/BarChart.mjs +44 -3
- package/lib/esm/component/Chart/BubbleChart.mjs +3 -2
- package/lib/esm/component/Chart/CigaretteChart.mjs +6 -5
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
- package/lib/esm/component/Chart/DonutChart.mjs +3 -2
- package/lib/esm/component/Chart/HistogramChart.mjs +5 -4
- package/lib/esm/component/Chart/LineChart.mjs +4 -3
- package/lib/esm/component/Chart/RadarChart.mjs +2 -1
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +3 -2
- package/lib/esm/component/Chart/VennChart.mjs +2 -1
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +7 -7
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +21 -25
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +9 -9
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
- package/lib/esm/createElement.mjs +2 -4
- package/lib/esm/index.mjs +1 -0
- package/lib/esm/style/axis.shadow.css +3 -1
- package/lib/esm/style/plot.shadow.css +1 -3
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +13 -26
- package/lib/esm/utils.mjs +2 -2
- package/lib/types/Axis.d.ts +4 -0
- package/lib/types/CompactHorizontalBar.d.ts +1 -1
- package/lib/types/Hover.d.ts +1 -1
- package/lib/types/Line.d.ts +1 -1
- package/lib/types/Plot.d.ts +1 -1
- package/lib/types/Radar.d.ts +1 -1
- package/lib/types/ResponsiveContainer.d.ts +1 -1
- package/lib/types/Tooltip.d.ts +1 -3
- package/lib/types/Venn.d.ts +1 -1
- package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +13 -2
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/lib/types/utils.d.ts +10 -10
- package/package.json +18 -18
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled,
|
|
8
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
9
9
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
10
10
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
11
11
|
import { transition } from "d3-transition";
|
|
@@ -19,19 +19,19 @@ var style = (
|
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
22
|
+
".___SScatterPlot_13gzn_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:cx,cy;transition-duration:var(--duration_13gzn);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_13gzn_gg_:hover{opacity:.8}}.___SScatterPlot_13gzn_gg_.__color_13gzn_gg_{fill:var(--color_13gzn)}.___SScatterPlot_13gzn_gg_.__pattern_13gzn_gg_.__color_13gzn_gg_{fill:var(--pattern_13gzn);stroke:var(--color_13gzn);stroke-width:1px}.___SScatterPlot_13gzn_gg_.__transparent_13gzn_gg_{opacity:.3}.___SValue_13gzn_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, rgb(92, 92, 196))}.___SValue_13gzn_gg_.__color_13gzn_gg_{stroke:var(--color_13gzn)}.___SValue_13gzn_gg_.__transparent_13gzn_gg_{opacity:.3}",
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"13gzn_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SScatterPlot": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SValue": "
|
|
34
|
-
"--duration": "--
|
|
27
|
+
"__SScatterPlot": "___SScatterPlot_13gzn_gg_",
|
|
28
|
+
"_color": "__color_13gzn_gg_",
|
|
29
|
+
"--color": "--color_13gzn",
|
|
30
|
+
"_pattern": "__pattern_13gzn_gg_",
|
|
31
|
+
"--pattern": "--pattern_13gzn",
|
|
32
|
+
"_transparent": "__transparent_13gzn_gg_",
|
|
33
|
+
"__SValue": "___SValue_13gzn_gg_",
|
|
34
|
+
"--duration": "--duration_13gzn"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -194,6 +194,7 @@ function ScatterPlotTooltip(props) {
|
|
|
194
194
|
"excludeAnchorProps": true
|
|
195
195
|
}, _ref))));
|
|
196
196
|
}
|
|
197
|
+
;
|
|
197
198
|
var ScatterPlot = createElement(ScatterPlotRoot, {
|
|
198
199
|
Tooltip: [ScatterPlotTooltip, Tooltip._______childrenComponents]
|
|
199
200
|
});
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -13,8 +13,8 @@ import Bar, { MIN_HEIGHT } from "./Bar.mjs";
|
|
|
13
13
|
import createElement from "./createElement.mjs";
|
|
14
14
|
import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
15
15
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
|
-
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
17
|
-
var XY0 = Symbol("XY0");
|
|
16
|
+
var DEFAULT_INSTANCE = /* @__PURE__ */ Symbol("DEFAULT_INSTANCE");
|
|
17
|
+
var XY0 = /* @__PURE__ */ Symbol("XY0");
|
|
18
18
|
var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
19
19
|
function StackBarRoot2() {
|
|
20
20
|
var _this;
|
|
@@ -98,7 +98,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
98
98
|
}, {
|
|
99
99
|
key: "getHorizontalBarProps",
|
|
100
100
|
value: function getHorizontalBarProps(_ref2, index) {
|
|
101
|
-
var _this3 = this
|
|
101
|
+
var _this$offsetBars$seri2, _this3 = this;
|
|
102
102
|
var x = _ref2.x, _ref2$wMin = _ref2.wMin, wMin = _ref2$wMin === void 0 ? MIN_WIDTH : _ref2$wMin;
|
|
103
103
|
var _this$asProps3 = this.asProps, y = _this$asProps3.y, r = _this$asProps3.r, scale = _this$asProps3.scale, maxBarSize = _this$asProps3.maxBarSize, patterns = _this$asProps3.patterns;
|
|
104
104
|
var _scale2 = _slicedToArray(scale, 1), xScale = _scale2[0];
|
|
@@ -106,11 +106,6 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
106
106
|
return s.key === x;
|
|
107
107
|
});
|
|
108
108
|
var series = this.series[seriesIndex];
|
|
109
|
-
var rBar = series.map(function(_s, i) {
|
|
110
|
-
return _this3.series.slice(seriesIndex + 1).some(function(bar) {
|
|
111
|
-
return bar[i][0] !== bar[i][1];
|
|
112
|
-
}) ? 0 : r;
|
|
113
|
-
});
|
|
114
109
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri2 = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri2 !== void 0 ? _this$offsetBars$seri2 : [];
|
|
115
110
|
var data = series.map(function(s) {
|
|
116
111
|
return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, x, s[1]), XY0, s[0]));
|
|
@@ -131,7 +126,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
131
126
|
wMin,
|
|
132
127
|
x0: XY0,
|
|
133
128
|
y,
|
|
134
|
-
r:
|
|
129
|
+
r: 0,
|
|
135
130
|
groupKey: y,
|
|
136
131
|
offset: calcOffset,
|
|
137
132
|
maxBarSize,
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import React from "react";
|
|
|
11
11
|
import Area from "./Area.mjs";
|
|
12
12
|
import createElement from "./createElement.mjs";
|
|
13
13
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
14
|
-
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
15
|
-
var Y0 = Symbol("Y0");
|
|
14
|
+
var DEFAULT_INSTANCE = /* @__PURE__ */ Symbol("DEFAULT_INSTANCE");
|
|
15
|
+
var Y0 = /* @__PURE__ */ Symbol("Y0");
|
|
16
16
|
var StackedAreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
17
17
|
function StackedAreaRoot2() {
|
|
18
18
|
_classCallCheck(this, StackedAreaRoot2);
|
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -5,11 +5,10 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { assignProps, Component
|
|
8
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import { Popper, Box } from "@semcore/base-components";
|
|
9
10
|
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
10
11
|
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
11
|
-
import { Box } from "@semcore/flex-box";
|
|
12
|
-
import Popper from "@semcore/popper";
|
|
13
12
|
import React from "react";
|
|
14
13
|
import createElement from "./createElement.mjs";
|
|
15
14
|
import { PatternSymbol } from "./Pattern.mjs";
|
|
@@ -20,19 +19,19 @@ var style = (
|
|
|
20
19
|
/*__reshadow_css_start__*/
|
|
21
20
|
(sstyled.insert(
|
|
22
21
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
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))}",
|
|
24
23
|
/*__inner_css_end__*/
|
|
25
|
-
"
|
|
24
|
+
"1ou5d_gg_"
|
|
26
25
|
), /*__reshadow_css_end__*/
|
|
27
26
|
{
|
|
28
|
-
"__STooltip": "
|
|
29
|
-
"__STitle": "
|
|
30
|
-
"__SDotGroup": "
|
|
31
|
-
"__SDot": "
|
|
32
|
-
"__SDotCircle": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"__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_"
|
|
36
35
|
})
|
|
37
36
|
);
|
|
38
37
|
var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
@@ -145,9 +144,7 @@ var TooltipRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
145
144
|
key: "render",
|
|
146
145
|
value: function render() {
|
|
147
146
|
var _ref = this.asProps, _this$asProps$pattern, _this3 = this;
|
|
148
|
-
var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode;
|
|
149
|
-
_this$asProps3.onClick;
|
|
150
|
-
var other = _objectWithoutProperties(_this$asProps3, _excluded);
|
|
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);
|
|
151
148
|
var advancedMode = forcedAdvancedMode || !!findComponent(Children, [Tooltip.Trigger.displayName, Tooltip.Popper.displayName]);
|
|
152
149
|
this.renderContext.index = -1;
|
|
153
150
|
this.renderContext.indexKeysCache.clear();
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
6
6
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled,
|
|
10
|
-
import { FadeInOut } from "@semcore/
|
|
9
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
10
|
+
import { FadeInOut } from "@semcore/base-components";
|
|
11
11
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
12
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
13
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
@@ -22,19 +22,19 @@ var style = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
(sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
25
|
+
".___SCircle_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}",
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
27
|
+
"itic7_gg_"
|
|
28
28
|
), /*__reshadow_css_end__*/
|
|
29
29
|
{
|
|
30
|
-
"__SCircle": "
|
|
31
|
-
"_color": "
|
|
32
|
-
"--color": "--
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"__SIntersection": "
|
|
35
|
-
"--duration": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
30
|
+
"__SCircle": "___SCircle_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"
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
var VennRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -243,6 +243,7 @@ function VennTooltip(props) {
|
|
|
243
243
|
"excludeAnchorProps": true
|
|
244
244
|
}, _ref))));
|
|
245
245
|
}
|
|
246
|
+
;
|
|
246
247
|
var Venn = createElement(VennRoot, {
|
|
247
248
|
Circle,
|
|
248
249
|
Intersection,
|
|
@@ -2,8 +2,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import { sstyled, assignProps } from "@semcore/core";
|
|
5
|
+
import { Box } from "@semcore/base-components";
|
|
5
6
|
import { Context, useI18n } from "@semcore/core/lib/utils/enhances/WithI18n";
|
|
6
|
-
import { Box } from "@semcore/flex-box";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { normalizeLocale } from "./locale.mjs";
|
|
9
9
|
import { localizedMessages } from "./translations/module/__intergalactic-dynamic-locales.mjs";
|
|
@@ -12,28 +12,22 @@ var styles = (
|
|
|
12
12
|
/*__reshadow_css_start__*/
|
|
13
13
|
(sstyled.insert(
|
|
14
14
|
/*__inner_css_start__*/
|
|
15
|
-
".
|
|
15
|
+
".___SPlotA11yModule_oaoqy_gg_{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0,}",
|
|
16
16
|
/*__inner_css_end__*/
|
|
17
|
-
"
|
|
17
|
+
"oaoqy_gg_"
|
|
18
18
|
), /*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SPlotA11yModule": "
|
|
20
|
+
"__SPlotA11yModule": "___SPlotA11yModule_oaoqy_gg_"
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
|
-
var globalWasFocused = false;
|
|
24
|
-
var globalNavWithKeyboard = false;
|
|
25
23
|
function PlotA11yModule(props) {
|
|
26
|
-
var _ref = arguments[0],
|
|
24
|
+
var _ref = arguments[0], _ref3;
|
|
27
25
|
var SPlotA11yModule = Box;
|
|
28
|
-
var _React$useState = React.useState(
|
|
29
|
-
var _React$useState3 = React.useState(
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
setNavWithKeyboard(true);
|
|
34
|
-
}, []);
|
|
35
|
-
var _React$useState7 = React.useState(false), _React$useState8 = _slicedToArray(_React$useState7, 2), loading = _React$useState8[0], setLoading = _React$useState8[1];
|
|
36
|
-
var _React$useState9 = React.useState(null), _React$useState0 = _slicedToArray(_React$useState9, 2), error = _React$useState0[0], setError = _React$useState0[1];
|
|
26
|
+
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), isOpened = _React$useState2[0], setIsOpened = _React$useState2[1];
|
|
27
|
+
var _React$useState3 = React.useState(null), _React$useState4 = _slicedToArray(_React$useState3, 2), plotA11yView = _React$useState4[0], setPlotA11yView = _React$useState4[1];
|
|
28
|
+
var srButtonRef = React.useRef(null);
|
|
29
|
+
var _React$useState5 = React.useState(false), _React$useState6 = _slicedToArray(_React$useState5, 2), loading = _React$useState6[0], setLoading = _React$useState6[1];
|
|
30
|
+
var _React$useState7 = React.useState(null), _React$useState8 = _slicedToArray(_React$useState7, 2), error = _React$useState8[0], setError = _React$useState8[1];
|
|
37
31
|
var contextLocale = React.useContext(Context);
|
|
38
32
|
var locale = React.useMemo(function() {
|
|
39
33
|
var _props$locale;
|
|
@@ -41,42 +35,12 @@ function PlotA11yModule(props) {
|
|
|
41
35
|
}, [props.locale]);
|
|
42
36
|
var t = useI18n(localizedMessages, locale);
|
|
43
37
|
React.useEffect(function() {
|
|
44
|
-
|
|
45
|
-
if (wasFocused) return;
|
|
46
|
-
var focusListener = function focusListener2() {
|
|
47
|
-
globalWasFocused = true;
|
|
48
|
-
setWasFocused(true);
|
|
49
|
-
};
|
|
50
|
-
(_props$plotRef$curren = props.plotRef.current) === null || _props$plotRef$curren === void 0 || _props$plotRef$curren.addEventListener("focus", focusListener);
|
|
51
|
-
return function() {
|
|
52
|
-
var _props$plotRef$curren2;
|
|
53
|
-
return (_props$plotRef$curren2 = props.plotRef.current) === null || _props$plotRef$curren2 === void 0 ? void 0 : _props$plotRef$curren2.removeEventListener("focus", focusListener);
|
|
54
|
-
};
|
|
55
|
-
}, [wasFocused, props.plotRef]);
|
|
56
|
-
React.useEffect(function() {
|
|
57
|
-
var _document$body;
|
|
58
|
-
if (navWithKeyboard) return;
|
|
59
|
-
var keyboardListener = function keyboardListener2(event) {
|
|
60
|
-
var navigationKeys = ["Tab", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"];
|
|
61
|
-
if ("key" in event && navigationKeys.includes(event.key)) {
|
|
62
|
-
setNavWithKeyboard(true);
|
|
63
|
-
globalNavWithKeyboard = true;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
(_document$body = document.body) === null || _document$body === void 0 || _document$body.addEventListener("keydown", keyboardListener);
|
|
67
|
-
return function() {
|
|
68
|
-
var _document$body2;
|
|
69
|
-
return (_document$body2 = document.body) === null || _document$body2 === void 0 ? void 0 : _document$body2.removeEventListener("keydown", keyboardListener);
|
|
70
|
-
};
|
|
71
|
-
}, [navWithKeyboard]);
|
|
72
|
-
var shouldDisplayView = wasFocused && navWithKeyboard;
|
|
73
|
-
React.useEffect(function() {
|
|
74
|
-
if (!shouldDisplayView) return;
|
|
38
|
+
if (!isOpened) return;
|
|
75
39
|
if (plotA11yView) return;
|
|
76
40
|
if (loading) return;
|
|
77
41
|
setLoading(true);
|
|
78
|
-
import("./PlotA11yView.mjs").then(function(
|
|
79
|
-
var PlotA11yView =
|
|
42
|
+
import("./PlotA11yView.mjs").then(function(_ref4) {
|
|
43
|
+
var PlotA11yView = _ref4.PlotA11yView;
|
|
80
44
|
setPlotA11yView({
|
|
81
45
|
Component: PlotA11yView
|
|
82
46
|
});
|
|
@@ -85,31 +49,29 @@ function PlotA11yModule(props) {
|
|
|
85
49
|
})["catch"](function(error2) {
|
|
86
50
|
console.error(error2);
|
|
87
51
|
setError(error2);
|
|
52
|
+
setLoading(false);
|
|
88
53
|
});
|
|
89
|
-
}, [plotA11yView,
|
|
54
|
+
}, [plotA11yView, isOpened, loading, setLoading]);
|
|
90
55
|
if (plotA11yView) {
|
|
91
|
-
|
|
56
|
+
var _ref2;
|
|
57
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(plotA11yView.Component, _extends({}, props, {
|
|
58
|
+
onCloseHandler: function onCloseHandler() {
|
|
59
|
+
setIsOpened(false);
|
|
60
|
+
setPlotA11yView(null);
|
|
61
|
+
},
|
|
62
|
+
triggerRef: srButtonRef,
|
|
92
63
|
locale
|
|
93
64
|
}));
|
|
94
65
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref4.cn("SPlotA11yModule", _objectSpread({}, assignProps({
|
|
105
|
-
"tabIndex": 0,
|
|
106
|
-
"aria-live": "polite"
|
|
107
|
-
}, _ref))), t("loading"));
|
|
108
|
-
}
|
|
109
|
-
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref5.cn("SPlotA11yModule", _objectSpread({}, assignProps({
|
|
110
|
-
"tabIndex": 0,
|
|
111
|
-
"onFocus": hadnleHiddenElementsFocus
|
|
112
|
-
}, _ref))), t("disabled"));
|
|
66
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SPlotA11yModule, _ref3.cn("SPlotA11yModule", _objectSpread({}, assignProps({}, _ref))), /* @__PURE__ */ React.createElement("button", _ref3.cn("button", {
|
|
67
|
+
"ref": srButtonRef,
|
|
68
|
+
"onClick": function onClick() {
|
|
69
|
+
return setIsOpened(true);
|
|
70
|
+
},
|
|
71
|
+
"aria-label": t("PlotA11yModule.ScreenReaderOnlyButton.Label")
|
|
72
|
+
})), /* @__PURE__ */ React.createElement(Box, _ref3.cn("Box", {
|
|
73
|
+
"role": "status"
|
|
74
|
+
}), loading && t("loading"), error && t("failed")));
|
|
113
75
|
}
|
|
114
76
|
export {
|
|
115
77
|
PlotA11yModule
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import { sstyled, assignProps } from "@semcore/core";
|
|
4
|
+
import { Box } from "@semcore/base-components";
|
|
4
5
|
import { useAsyncI18nMessages } from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
5
|
-
import { Box } from "@semcore/flex-box";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { DataAccessibilityTable } from "./DataAccessibilityTable.mjs";
|
|
8
8
|
import { heavyFindNextFocusableElement } from "./focus.mjs";
|
|
@@ -15,17 +15,17 @@ var styles = (
|
|
|
15
15
|
/*__reshadow_css_start__*/
|
|
16
16
|
(sstyled.insert(
|
|
17
17
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
18
|
+
".___SPlotA11yView_1adlx_gg_{position:relative;display:block;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));border:3px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));font-size:var(--intergalactic-fs-50, 10px);z-index:var(--intergalactic-z-index-overlay, 500);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}@supports (color:color(display-p3 0 0 0%)){.___SPlotA11yView_1adlx_gg_{border:3px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SPlotA11yView_1adlx_gg_{border:3px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SPlotA11yView_1adlx_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1adlx_gg_ table,.___SPlotA11yView_1adlx_gg_ td,.___SPlotA11yView_1adlx_gg_ th{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SPlotA11yView_1adlx_gg_ table,.___SPlotA11yView_1adlx_gg_ td,.___SPlotA11yView_1adlx_gg_ th{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SPlotA11yView_1adlx_gg_ table,.___SPlotA11yView_1adlx_gg_ td,.___SPlotA11yView_1adlx_gg_ th{border:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}",
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"1adlx_gg_"
|
|
21
21
|
), /*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SPlotA11yView": "
|
|
23
|
+
"__SPlotA11yView": "___SPlotA11yView_1adlx_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
|
-
|
|
26
|
+
function PlotA11yView(_ref3) {
|
|
27
27
|
var _ref = arguments[0], _ref2;
|
|
28
|
-
var id = _ref3.id, providedData = _ref3.
|
|
28
|
+
var id = _ref3.id, providedData = _ref3.payload, hints = _ref3.hints, plotLabel = _ref3.plotLabel, triggerRef = _ref3.triggerRef, plotRef = _ref3.plotRef, providedConfig = _ref3.config, locale = _ref3.locale, onCloseHandler = _ref3.onCloseHandler;
|
|
29
29
|
var SPlotA11yView = Box;
|
|
30
30
|
var translations = useAsyncI18nMessages(localizedMessages, locale);
|
|
31
31
|
var intl = React.useMemo(function() {
|
|
@@ -37,8 +37,27 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
37
37
|
var data = React.useMemo(function() {
|
|
38
38
|
return Array.isArray(providedData) ? providedData : [providedData];
|
|
39
39
|
}, [providedData]);
|
|
40
|
+
var rootRef = React.useRef(null);
|
|
40
41
|
var _React$useState = React.useState(null), _React$useState2 = _slicedToArray(_React$useState, 2), summary = _React$useState2[0], setSummary = _React$useState2[1];
|
|
41
42
|
var _React$useState3 = React.useState(true), _React$useState4 = _slicedToArray(_React$useState3, 2), generatingSummary = _React$useState4[0], setGeneratingSummary = _React$useState4[1];
|
|
43
|
+
React.useEffect(function() {
|
|
44
|
+
var _rootRef$current, _rootRef$current3;
|
|
45
|
+
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 || _rootRef$current.focus();
|
|
46
|
+
function focusOutHandler(event) {
|
|
47
|
+
var _rootRef$current2;
|
|
48
|
+
if (event.relatedTarget === null) {
|
|
49
|
+
return requestIdleCallback(onCloseHandler);
|
|
50
|
+
}
|
|
51
|
+
if (!(event.relatedTarget instanceof HTMLElement)) return;
|
|
52
|
+
if ((_rootRef$current2 = rootRef.current) !== null && _rootRef$current2 !== void 0 && _rootRef$current2.contains(event.relatedTarget)) return;
|
|
53
|
+
requestIdleCallback(onCloseHandler);
|
|
54
|
+
}
|
|
55
|
+
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 || _rootRef$current3.addEventListener("focusout", focusOutHandler);
|
|
56
|
+
return function() {
|
|
57
|
+
var _rootRef$current4;
|
|
58
|
+
return (_rootRef$current4 = rootRef.current) === null || _rootRef$current4 === void 0 ? void 0 : _rootRef$current4.removeEventListener("focusout", focusOutHandler);
|
|
59
|
+
};
|
|
60
|
+
}, []);
|
|
42
61
|
React.useEffect(function() {
|
|
43
62
|
if (config.disable) {
|
|
44
63
|
setSummary("");
|
|
@@ -56,14 +75,18 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
56
75
|
}, 0);
|
|
57
76
|
}, [providedData, hints, config, locale, translations, localizedMessages]);
|
|
58
77
|
var handleClose = React.useCallback(function() {
|
|
59
|
-
|
|
60
|
-
(
|
|
78
|
+
onCloseHandler();
|
|
79
|
+
requestIdleCallback(function() {
|
|
80
|
+
var _triggerRef$current;
|
|
81
|
+
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
|
|
82
|
+
});
|
|
61
83
|
}, []);
|
|
62
84
|
var handleSkip = React.useCallback(function(event) {
|
|
63
85
|
var _heavyFindNextFocusab;
|
|
64
86
|
event.preventDefault();
|
|
65
87
|
if (!plotRef.current) return;
|
|
66
88
|
(_heavyFindNextFocusab = heavyFindNextFocusableElement(plotRef.current)) === null || _heavyFindNextFocusab === void 0 || _heavyFindNextFocusab.focus();
|
|
89
|
+
onCloseHandler();
|
|
67
90
|
}, []);
|
|
68
91
|
var handleSkipKeyboard = React.useCallback(function(event) {
|
|
69
92
|
if (!(event.key === "Enter" || event.key === " ")) return;
|
|
@@ -112,7 +135,8 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
112
135
|
"tabIndex": 0,
|
|
113
136
|
"aria-label": texts.label,
|
|
114
137
|
"role": "dialog",
|
|
115
|
-
"__excludeProps": ["data"]
|
|
138
|
+
"__excludeProps": ["data"],
|
|
139
|
+
"ref": rootRef
|
|
116
140
|
}, _ref))), /* @__PURE__ */ React.createElement("button", _ref2.cn("button", {
|
|
117
141
|
"type": "button",
|
|
118
142
|
"onClick": handleClose
|
|
@@ -139,7 +163,8 @@ var PlotA11yView = function PlotA11yView2(_ref3) {
|
|
|
139
163
|
"config": config,
|
|
140
164
|
"intl": intl
|
|
141
165
|
})));
|
|
142
|
-
}
|
|
166
|
+
}
|
|
167
|
+
;
|
|
143
168
|
export {
|
|
144
169
|
PlotA11yView
|
|
145
170
|
};
|
|
@@ -489,7 +489,8 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
|
|
|
489
489
|
x: 1,
|
|
490
490
|
y: 1
|
|
491
491
|
}], {
|
|
492
|
-
width: 1
|
|
492
|
+
width: 1,
|
|
493
|
+
height: 1
|
|
493
494
|
});
|
|
494
495
|
for (var _i3 = 0, _clustersInsights = clustersInsights; _i3 < _clustersInsights.length; _i3++) {
|
|
495
496
|
var clustersInsight = _clustersInsights[_i3];
|
package/lib/esm/a11y/intl.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = "Drücken Sie die Tabulatortaste, um das Zugriffsmodul für grafische Diagramme zu aktivieren.";
|
|
2
1
|
const loading = "Lade Zugriffsmodul.";
|
|
3
2
|
const failed = "Zugriffsmodul konnte nicht geladen werden. Kontaktieren Sie den Support und helfen Sie uns, das Problem schneller zu beheben.";
|
|
4
3
|
const de = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Zusammenfassung der Daten öffnen"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
de as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = 'Press "Tab" to enable graphical charts accessibility module.';
|
|
2
1
|
const loading = "Loading accessibility module.";
|
|
3
2
|
const failed = "Failed to load accessibility module. Contact service user support to help us resolve issue faster.";
|
|
4
3
|
const en = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Open data summary"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
en as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = 'Pulse "Tab" para activar el módulo de accesibilidad a los gráficos.';
|
|
2
1
|
const loading = "Cargando módulo de accesibilidad.";
|
|
3
2
|
const failed = "No se ha podido cargar el módulo de accesibilidad. Contacta con el servicio de asistencia al usuario para ayudarnos a resolver el problema rápidamente.";
|
|
4
3
|
const es = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Abrir resumen de datos"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
es as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = "Appuyez sur « Onglet » pour activer le module d’accessibilité aux diagrammes.";
|
|
2
1
|
const loading = "Chargement du module d’accessibilité en cours.";
|
|
3
2
|
const failed = "Impossible de charger le module d’accessibilité. Contactez le service d’assistance aux utilisateurs pour nous permettre de résoudre le problème plus rapidement.";
|
|
4
3
|
const fr = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Ouvrir le récapitulatif des données"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
fr as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = 'Premi "Tab" per abilitare il modulo di accessibilità dei dati per i grafici.';
|
|
2
1
|
const loading = "Caricamento del modulo di accessibilità in corso.";
|
|
3
2
|
const failed = "Caricamento del modulo di accessibilità non riuscito. Contatta il servizio di assistenza utenti per risolvere il problema più in fretta.";
|
|
4
3
|
const it = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Aprire il riepilogo dei dati"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
it as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = "アクセシビリティモジュールのグラフィカルチャートを有効化するには「Tab」キーを押してください。";
|
|
2
1
|
const loading = "アクセシビリティモジュールのロード中。";
|
|
3
2
|
const failed = "アクセシビリティモジュールの読み込みに失敗しました。サービスユーザーサポートに連絡し、問題を迅速に解決します。";
|
|
4
3
|
const ja = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "データサマリーを開く"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
ja as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = "'탭'을 누르면 그래픽 차트 접근성 모듈이 활성화됩니다.";
|
|
2
1
|
const loading = "접근성 모듈 로딩 중.";
|
|
3
2
|
const failed = "접근성 모듈을 불러오지 못했습니다. 사용자 지원 서비스 팀에 문의하시면 문제를 더 빨리 해결하실 수 있습니다.";
|
|
4
3
|
const ko = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "데이터 요약 열기"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
ko as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const disabled = "Druk op Tab om de toegankelijkheidsmodule voor grafieken in te schakelen.";
|
|
2
1
|
const loading = "De toegankelijkheidsmodule wordt geladen.";
|
|
3
2
|
const failed = "De toegankelijkheidsmodule kan niet worden geladen. Neem contact op met ons supportteam zodat we het probleem sneller kunnen oplossen.";
|
|
4
3
|
const nl = {
|
|
5
|
-
disabled,
|
|
6
4
|
loading,
|
|
7
|
-
failed
|
|
5
|
+
failed,
|
|
6
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": "Open samenvatting gegevens"
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
9
|
nl as default,
|
|
11
|
-
disabled,
|
|
12
10
|
failed,
|
|
13
11
|
loading
|
|
14
12
|
};
|