@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -50
- package/lib/cjs/AnimatedClipPath.js +13 -13
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +29 -27
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +97 -101
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +31 -32
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +26 -27
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +65 -68
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +94 -95
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +36 -34
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +16 -16
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +30 -31
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +27 -33
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +23 -23
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +13 -11
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +26 -27
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +125 -132
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +164 -145
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +47 -49
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +19 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +24 -25
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -23
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +14 -15
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +34 -35
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +28 -29
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +11 -12
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -11
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +4 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +5 -8
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +4 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +43 -46
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +17 -20
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +17 -21
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +18 -19
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +13 -14
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +15 -16
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +17 -18
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +14 -17
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +12 -13
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +20 -20
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +79 -67
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/index.js +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +7 -8
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +2 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +31 -52
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -10
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +27 -24
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +96 -98
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +28 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +24 -24
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +63 -65
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +92 -92
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -33
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +14 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -26
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +24 -28
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +20 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +4 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +25 -25
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +122 -128
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +162 -142
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +44 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +17 -17
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +22 -22
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -19
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +12 -12
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +33 -33
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +26 -26
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +11 -11
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +3 -3
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +1 -1
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +2 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +40 -41
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +16 -16
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +15 -17
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +17 -15
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +17 -17
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +12 -10
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +14 -12
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +15 -14
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +12 -13
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +10 -9
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +18 -17
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +77 -64
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +16 -15
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +16 -16
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +5 -5
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +1 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +11 -13
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +10 -7
- package/lib/esm/Area.mjs +30 -25
- package/lib/esm/Axis.mjs +67 -67
- package/lib/esm/Bar.mjs +31 -28
- package/lib/esm/Bubble.mjs +28 -26
- package/lib/esm/CompactHorizontalBar.mjs +61 -60
- package/lib/esm/Donut.mjs +50 -49
- package/lib/esm/Dots.mjs +32 -27
- package/lib/esm/GroupBar.mjs +14 -11
- package/lib/esm/HorizontalBar.mjs +30 -27
- package/lib/esm/Hover.mjs +28 -30
- package/lib/esm/Line.mjs +23 -20
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +27 -25
- package/lib/esm/Radar.mjs +90 -94
- package/lib/esm/RadialTree.mjs +86 -86
- package/lib/esm/Reference.mjs +34 -31
- package/lib/esm/ResponsiveContainer.mjs +19 -17
- package/lib/esm/ScatterPlot.mjs +26 -24
- package/lib/esm/StackBar.mjs +17 -17
- package/lib/esm/StackedArea.mjs +13 -11
- package/lib/esm/Tooltip.mjs +35 -33
- package/lib/esm/Venn.mjs +29 -27
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
- package/lib/esm/a11y/PlotA11yView.mjs +9 -9
- package/lib/esm/a11y/focus.mjs +3 -3
- package/lib/esm/a11y/hints.mjs +1 -1
- package/lib/esm/a11y/insights.mjs +77 -78
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
- package/lib/esm/component/Chart/AreaChart.mjs +19 -15
- package/lib/esm/component/Chart/BarChart.mjs +20 -17
- package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
- package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
- package/lib/esm/component/Chart/DonutChart.mjs +13 -10
- package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
- package/lib/esm/component/Chart/LineChart.mjs +18 -12
- package/lib/esm/component/Chart/RadarChart.mjs +19 -12
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
- package/lib/esm/component/Chart/VennChart.mjs +12 -9
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
- package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +5 -5
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/utils.mjs +8 -8
- package/lib/types/Area.d.ts +7 -6
- package/lib/types/Axis.d.ts +4 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +6 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +6 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +7 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +10 -9
- package/lib/types/Radar.d.ts +8 -7
- package/lib/types/RadialTree.d.ts +9 -54
- package/lib/types/Reference.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +6 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +14 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
- package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/utils.d.ts +6 -6
- package/package.json +22 -23
|
@@ -2,26 +2,30 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
5
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import React from "react";
|
|
9
10
|
import { createComponent } from "@semcore/core";
|
|
11
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
12
|
+
import { Text } from "@semcore/typography";
|
|
10
13
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
14
|
+
import React from "react";
|
|
11
15
|
import ScatterPlot from "../../ScatterPlot.mjs";
|
|
12
16
|
import { getScatterPlotRadius, minMax } from "../../utils.mjs";
|
|
13
17
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
|
-
import { Text } from "@semcore/typography";
|
|
15
|
-
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
16
18
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
19
|
+
function _callSuper(t, o, e) {
|
|
20
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
21
|
+
}
|
|
17
22
|
var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
18
|
-
_inherits(ScatterPlotChartComponent2, _AbstractChart);
|
|
19
|
-
var _super = _createSuper(ScatterPlotChartComponent2);
|
|
20
23
|
function ScatterPlotChartComponent2() {
|
|
21
24
|
_classCallCheck(this, ScatterPlotChartComponent2);
|
|
22
|
-
return
|
|
25
|
+
return _callSuper(this, ScatterPlotChartComponent2, arguments);
|
|
23
26
|
}
|
|
24
|
-
|
|
27
|
+
_inherits(ScatterPlotChartComponent2, _AbstractChart);
|
|
28
|
+
return _createClass(ScatterPlotChartComponent2, [{
|
|
25
29
|
key: "dataKeys",
|
|
26
30
|
get: function get() {
|
|
27
31
|
var _this$props = this.props, data = _this$props.data, groupKey = _this$props.groupKey, valueKey = _this$props.valueKey;
|
|
@@ -112,9 +116,9 @@ var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
112
116
|
color: item.color
|
|
113
117
|
}, "Data"), /* @__PURE__ */ React.createElement(Text, {
|
|
114
118
|
tag: "div"
|
|
115
|
-
}, "X axis
|
|
119
|
+
}, "X axis", _this.tooltipValueFormatter(data[index][x])), /* @__PURE__ */ React.createElement(Text, {
|
|
116
120
|
tag: "div"
|
|
117
|
-
}, "Y axis
|
|
121
|
+
}, "Y axis", _this.tooltipValueFormatter(data[index][y])))
|
|
118
122
|
};
|
|
119
123
|
});
|
|
120
124
|
});
|
|
@@ -127,7 +131,6 @@ var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
127
131
|
});
|
|
128
132
|
}
|
|
129
133
|
}]);
|
|
130
|
-
return ScatterPlotChartComponent2;
|
|
131
134
|
}(AbstractChart);
|
|
132
135
|
_defineProperty(ScatterPlotChartComponent, "displayName", "Chart.ScatterPlot");
|
|
133
136
|
_defineProperty(ScatterPlotChartComponent, "defaultProps", {
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import React from "react";
|
|
7
8
|
import { createComponent } from "@semcore/core";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import { Text } from "@semcore/typography";
|
|
8
11
|
import { scaleLinear } from "d3-scale";
|
|
12
|
+
import React from "react";
|
|
9
13
|
import Venn from "../../Venn.mjs";
|
|
10
14
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
11
|
-
import { Text } from "@semcore/typography";
|
|
12
|
-
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
15
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
+
function _callSuper(t, o, e) {
|
|
17
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
18
|
+
}
|
|
14
19
|
var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
15
|
-
_inherits(VennChartComponent2, _AbstractChart);
|
|
16
|
-
var _super = _createSuper(VennChartComponent2);
|
|
17
20
|
function VennChartComponent2() {
|
|
18
21
|
_classCallCheck(this, VennChartComponent2);
|
|
19
|
-
return
|
|
22
|
+
return _callSuper(this, VennChartComponent2, arguments);
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
_inherits(VennChartComponent2, _AbstractChart);
|
|
25
|
+
return _createClass(VennChartComponent2, [{
|
|
22
26
|
key: "xScale",
|
|
23
27
|
get: function get() {
|
|
24
28
|
var xScale = this.asProps.xScale;
|
|
@@ -125,7 +129,6 @@ var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
125
129
|
});
|
|
126
130
|
}
|
|
127
131
|
}]);
|
|
128
|
-
return VennChartComponent2;
|
|
129
132
|
}(AbstractChart);
|
|
130
133
|
_defineProperty(VennChartComponent, "displayName", "Chart.Venn");
|
|
131
134
|
_defineProperty(VennChartComponent, "defaultProps", {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AreaChart } from "./AreaChart.mjs";
|
|
2
2
|
import { BarChart } from "./BarChart.mjs";
|
|
3
|
+
import { BubbleChart } from "./BubbleChart.mjs";
|
|
4
|
+
import { CigaretteChart } from "./CigaretteChart.mjs";
|
|
3
5
|
import { CompactHorizontalBarChart } from "./CompactHorizontalBarChart.mjs";
|
|
6
|
+
import { DonutChart } from "./DonutChart.mjs";
|
|
4
7
|
import { HistogramChart } from "./HistogramChart.mjs";
|
|
8
|
+
import { LineChart } from "./LineChart.mjs";
|
|
9
|
+
import { RadarChart } from "./RadarChart.mjs";
|
|
5
10
|
import { ScatterPlotChart } from "./ScatterPlotChart.mjs";
|
|
6
|
-
import { AreaChart } from "./AreaChart.mjs";
|
|
7
|
-
import { BubbleChart } from "./BubbleChart.mjs";
|
|
8
|
-
import { DonutChart } from "./DonutChart.mjs";
|
|
9
11
|
import { VennChart } from "./VennChart.mjs";
|
|
10
|
-
import { RadarChart } from "./RadarChart.mjs";
|
|
11
|
-
import { CigaretteChart } from "./CigaretteChart.mjs";
|
|
12
12
|
const index = {
|
|
13
13
|
Line: LineChart,
|
|
14
14
|
Bar: BarChart,
|
|
@@ -1,41 +1,65 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
5
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
9
|
import { Component } from "@semcore/core";
|
|
9
10
|
import { makeDataHintsHandlers } from "../../a11y/hints.mjs";
|
|
11
|
+
function _callSuper(t, o, e) {
|
|
12
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13
|
+
}
|
|
10
14
|
var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
11
|
-
_inherits(BaseLegend2, _Component);
|
|
12
|
-
var _super = _createSuper(BaseLegend2);
|
|
13
15
|
function BaseLegend2() {
|
|
14
16
|
var _this;
|
|
15
17
|
_classCallCheck(this, BaseLegend2);
|
|
16
18
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17
19
|
args[_key] = arguments[_key];
|
|
18
20
|
}
|
|
19
|
-
_this =
|
|
20
|
-
_defineProperty(
|
|
21
|
+
_this = _callSuper(this, BaseLegend2, [].concat(args));
|
|
22
|
+
_defineProperty(_this, "onChangeLegendItem", function(id, checked) {
|
|
21
23
|
var _this$props$onChangeV, _this$props;
|
|
22
|
-
(_this$props$onChangeV = (_this$props = _this.props).onChangeVisibleItem) === null || _this$props$onChangeV === void 0
|
|
24
|
+
(_this$props$onChangeV = (_this$props = _this.props).onChangeVisibleItem) === null || _this$props$onChangeV === void 0 || _this$props$onChangeV.call(_this$props, id, checked);
|
|
25
|
+
if (checked) {
|
|
26
|
+
var _this$props$onMouseEn, _this$props2;
|
|
27
|
+
(_this$props$onMouseEn = (_this$props2 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn === void 0 || _this$props$onMouseEn.call(_this$props2, id);
|
|
28
|
+
} else {
|
|
29
|
+
var _this$props$onMouseLe, _this$props3;
|
|
30
|
+
(_this$props$onMouseLe = (_this$props3 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe === void 0 || _this$props$onMouseLe.call(_this$props3, id);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(_this, "onFocusLegendItem", function(checked) {
|
|
34
|
+
return function(id) {
|
|
35
|
+
var _this$props$onMouseEn2, _this$props5;
|
|
36
|
+
if (!checked) {
|
|
37
|
+
var _this$props$onMouseLe2, _this$props4;
|
|
38
|
+
return (_this$props$onMouseLe2 = (_this$props4 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe2 === void 0 ? void 0 : _this$props$onMouseLe2.call(_this$props4, id);
|
|
39
|
+
}
|
|
40
|
+
(_this$props$onMouseEn2 = (_this$props5 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn2 === void 0 || _this$props$onMouseEn2.call(_this$props5, id);
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(_this, "onBlurLegendItem", function(id) {
|
|
44
|
+
var _this$props$onMouseLe3, _this$props6;
|
|
45
|
+
(_this$props$onMouseLe3 = (_this$props6 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe3 === void 0 || _this$props$onMouseLe3.call(_this$props6, id);
|
|
23
46
|
});
|
|
24
|
-
_defineProperty(
|
|
47
|
+
_defineProperty(_this, "bindOnMouseEnterItem", function(id) {
|
|
25
48
|
return function(e) {
|
|
26
|
-
var _this$props$
|
|
27
|
-
(_this$props$
|
|
49
|
+
var _this$props$onMouseEn3, _this$props7;
|
|
50
|
+
(_this$props$onMouseEn3 = (_this$props7 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn3 === void 0 || _this$props$onMouseEn3.call(_this$props7, id, e);
|
|
28
51
|
};
|
|
29
52
|
});
|
|
30
|
-
_defineProperty(
|
|
53
|
+
_defineProperty(_this, "bindOnMouseLeaveItem", function(id) {
|
|
31
54
|
return function(e) {
|
|
32
|
-
var _this$props$
|
|
33
|
-
(_this$props$
|
|
55
|
+
var _this$props$onMouseLe4, _this$props8;
|
|
56
|
+
(_this$props$onMouseLe4 = (_this$props8 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe4 === void 0 || _this$props$onMouseLe4.call(_this$props8, id, e);
|
|
34
57
|
};
|
|
35
58
|
});
|
|
36
59
|
return _this;
|
|
37
60
|
}
|
|
38
|
-
|
|
61
|
+
_inherits(BaseLegend2, _Component);
|
|
62
|
+
return _createClass(BaseLegend2, [{
|
|
39
63
|
key: "componentDidMount",
|
|
40
64
|
value: function componentDidMount() {
|
|
41
65
|
this.setHints();
|
|
@@ -53,7 +77,7 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
|
53
77
|
var _this$asProps = this.asProps, items = _this$asProps.items, dataHints = _this$asProps.dataHints;
|
|
54
78
|
var dataHintsHandler = dataHints ? makeDataHintsHandlers(dataHints) : void 0;
|
|
55
79
|
items.forEach(function(legendItem) {
|
|
56
|
-
dataHintsHandler === null || dataHintsHandler === void 0
|
|
80
|
+
dataHintsHandler === null || dataHintsHandler === void 0 || dataHintsHandler.labelKey("value", legendItem.id, legendItem.label);
|
|
57
81
|
});
|
|
58
82
|
}
|
|
59
83
|
}, {
|
|
@@ -73,8 +97,10 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
|
73
97
|
return _objectSpread(_objectSpread({}, line), {}, {
|
|
74
98
|
shape,
|
|
75
99
|
size,
|
|
100
|
+
onFocusLegendItem: this.onFocusLegendItem(line.checked),
|
|
101
|
+
onBlurLegendItem: this.onBlurLegendItem,
|
|
76
102
|
onChangeLegendItem: this.onChangeLegendItem,
|
|
77
|
-
onMouseEnter: this.bindOnMouseEnterItem(line.id),
|
|
103
|
+
onMouseEnter: line.checked ? this.bindOnMouseEnterItem(line.id) : void 0,
|
|
78
104
|
onMouseLeave: this.bindOnMouseLeaveItem(line.id),
|
|
79
105
|
style: {
|
|
80
106
|
gridRowStart: "".concat(index + 1),
|
|
@@ -84,7 +110,6 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
|
84
110
|
});
|
|
85
111
|
}
|
|
86
112
|
}]);
|
|
87
|
-
return BaseLegend2;
|
|
88
113
|
}(Component);
|
|
89
114
|
export {
|
|
90
115
|
BaseLegend
|
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
4
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import {
|
|
8
|
-
import React from "react";
|
|
9
|
-
import { Flex } from "@semcore/flex-box";
|
|
10
|
-
import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
|
|
11
|
-
import Divider from "@semcore/divider";
|
|
9
|
+
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
12
10
|
import Checkbox from "@semcore/checkbox";
|
|
13
|
-
import { BaseLegend } from "../BaseLegend.mjs";
|
|
14
|
-
import { localizedMessages } from "../../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
11
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
12
|
+
import Divider from "@semcore/divider";
|
|
13
|
+
import { Flex } from "@semcore/flex-box";
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { localizedMessages } from "../../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
+
import { BaseLegend } from "../BaseLegend.mjs";
|
|
17
|
+
import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
|
|
18
|
+
function _callSuper(t, o, e) {
|
|
19
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
20
|
+
}
|
|
16
21
|
/*!__reshadow-styles__:"./legend-flex.shadow.css"*/
|
|
17
22
|
var style = (
|
|
18
23
|
/*__reshadow_css_start__*/
|
|
19
24
|
(sstyled.insert(
|
|
20
25
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
26
|
+
".___SLegendFlex_pc68p_gg_._direction_row_pc68p_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_pc68p_gg_._direction_column_pc68p_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
|
|
22
27
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
28
|
+
"pc68p_gg_"
|
|
24
29
|
), /*__reshadow_css_end__*/
|
|
25
30
|
{
|
|
26
|
-
"__SLegendFlex": "
|
|
27
|
-
"_direction_row": "
|
|
28
|
-
"_direction_column": "
|
|
31
|
+
"__SLegendFlex": "___SLegendFlex_pc68p_gg_",
|
|
32
|
+
"_direction_row": "_direction_row_pc68p_gg_",
|
|
33
|
+
"_direction_column": "_direction_column_pc68p_gg_"
|
|
29
34
|
})
|
|
30
35
|
);
|
|
31
36
|
var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
32
|
-
_inherits(LegendFlexRoot2, _BaseLegend);
|
|
33
|
-
var _super = _createSuper(LegendFlexRoot2);
|
|
34
37
|
function LegendFlexRoot2() {
|
|
35
38
|
_classCallCheck(this, LegendFlexRoot2);
|
|
36
|
-
return
|
|
39
|
+
return _callSuper(this, LegendFlexRoot2, arguments);
|
|
37
40
|
}
|
|
38
|
-
|
|
41
|
+
_inherits(LegendFlexRoot2, _BaseLegend);
|
|
42
|
+
return _createClass(LegendFlexRoot2, [{
|
|
39
43
|
key: "renderTrend",
|
|
40
44
|
value: function renderTrend() {
|
|
41
45
|
var _ref3 = this.asProps, onTrendIsVisibleChange = _ref3.onTrendIsVisibleChange, trendIsVisible = _ref3.trendIsVisible, trendLabel = _ref3.trendLabel, size = _ref3.size, getI18nText = _ref3.getI18nText;
|
|
@@ -66,7 +70,6 @@ var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
|
66
70
|
})), withTrend && this.renderTrend(), suffix ? suffix : null);
|
|
67
71
|
}
|
|
68
72
|
}]);
|
|
69
|
-
return LegendFlexRoot2;
|
|
70
73
|
}(BaseLegend);
|
|
71
74
|
_defineProperty(LegendFlexRoot, "displayName", "LegendFlex");
|
|
72
75
|
_defineProperty(LegendFlexRoot, "style", style);
|
|
@@ -2,57 +2,61 @@ 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 _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
5
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import {
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { Box, Flex } from "@semcore/flex-box";
|
|
10
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
11
11
|
import Checkbox from "@semcore/checkbox";
|
|
12
|
-
import { Text } from "@semcore/typography";
|
|
13
|
-
import { StaticShapes } from "./LegendItem.type.mjs";
|
|
14
12
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
15
13
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
14
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
15
|
+
import { Text } from "@semcore/typography";
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { StaticShapes } from "./LegendItem.type.mjs";
|
|
16
18
|
import { PatternSymbol } from "../../../Pattern.mjs";
|
|
17
19
|
import { getChartDefaultColorName } from "../../../utils.mjs";
|
|
18
20
|
var _excluded = ["id", "checked", "color", "onChangeLegendItem", "shape"];
|
|
21
|
+
function _callSuper(t, o, e) {
|
|
22
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
23
|
+
}
|
|
19
24
|
/*!__reshadow-styles__:"./legend-item.shadow.css"*/
|
|
20
25
|
var style = (
|
|
21
26
|
/*__reshadow_css_start__*/
|
|
22
27
|
(sstyled.insert(
|
|
23
28
|
/*__inner_css_start__*/
|
|
24
|
-
'.
|
|
29
|
+
'.___SLegendItem_1feua_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1feua_gg_:hover{cursor:pointer}.___SLegendItem_1feua_gg_.__disabled_1feua_gg_:hover{cursor:default}}.___SPointShape_1feua_gg_.__color_1feua_gg_{background-color:var(--color_1feua);margin-right:8px;flex-shrink:0}.___SPointShape_1feua_gg_._shape_Circle_1feua_gg_._size_l_1feua_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Circle_1feua_gg_._size_m_1feua_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Line_1feua_gg_._size_l_1feua_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1feua_gg_._shape_Line_1feua_gg_._size_m_1feua_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1feua_gg_._shape_Square_1feua_gg_._size_l_1feua_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Square_1feua_gg_._size_m_1feua_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1feua_gg_._shape_Pattern_1feua_gg_{background-color:transparent;margin-right:4px}.___SIcon_1feua_gg_{line-height:0;margin-right:4px}.___SIcon_1feua_gg_._size_l_1feua_gg_{margin-top:4px}.___SIcon_1feua_gg_._size_m_1feua_gg_{margin-top:2px}.___SLabel_1feua_gg_{min-width:0}.___SAdditionalLabel_1feua_gg_._size_l_1feua_gg_,.___SCount_1feua_gg_._size_l_1feua_gg_,.___SLabel_1feua_gg_._size_l_1feua_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1feua_gg_._size_m_1feua_gg_,.___SCount_1feua_gg_._size_m_1feua_gg_,.___SLabel_1feua_gg_._size_m_1feua_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1feua_gg_,.___SCount_1feua_gg_{margin-left:4px}.___SAdditionalLabel_1feua_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1feua_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1feua_gg_._size_l_1feua_gg_::before{margin-top:10px}.___SAdditionalLabel_1feua_gg_._size_m_1feua_gg_::before{margin-top:8px}.___SPatternSymbol_1feua_gg_{transform:scale(.8)}',
|
|
25
30
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
31
|
+
"1feua_gg_"
|
|
27
32
|
), /*__reshadow_css_end__*/
|
|
28
33
|
{
|
|
29
|
-
"__SLegendItem": "
|
|
30
|
-
"_disabled": "
|
|
31
|
-
"__SPointShape": "
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"_shape_Circle": "
|
|
35
|
-
"_size_l": "
|
|
36
|
-
"_size_m": "
|
|
37
|
-
"_shape_Line": "
|
|
38
|
-
"_shape_Square": "
|
|
39
|
-
"_shape_Pattern": "
|
|
40
|
-
"__SIcon": "
|
|
41
|
-
"__SLabel": "
|
|
42
|
-
"__SAdditionalLabel": "
|
|
43
|
-
"__SCount": "
|
|
44
|
-
"__SPatternSymbol": "
|
|
34
|
+
"__SLegendItem": "___SLegendItem_1feua_gg_",
|
|
35
|
+
"_disabled": "__disabled_1feua_gg_",
|
|
36
|
+
"__SPointShape": "___SPointShape_1feua_gg_",
|
|
37
|
+
"_color": "__color_1feua_gg_",
|
|
38
|
+
"--color": "--color_1feua",
|
|
39
|
+
"_shape_Circle": "_shape_Circle_1feua_gg_",
|
|
40
|
+
"_size_l": "_size_l_1feua_gg_",
|
|
41
|
+
"_size_m": "_size_m_1feua_gg_",
|
|
42
|
+
"_shape_Line": "_shape_Line_1feua_gg_",
|
|
43
|
+
"_shape_Square": "_shape_Square_1feua_gg_",
|
|
44
|
+
"_shape_Pattern": "_shape_Pattern_1feua_gg_",
|
|
45
|
+
"__SIcon": "___SIcon_1feua_gg_",
|
|
46
|
+
"__SLabel": "___SLabel_1feua_gg_",
|
|
47
|
+
"__SAdditionalLabel": "___SAdditionalLabel_1feua_gg_",
|
|
48
|
+
"__SCount": "___SCount_1feua_gg_",
|
|
49
|
+
"__SPatternSymbol": "___SPatternSymbol_1feua_gg_"
|
|
45
50
|
})
|
|
46
51
|
);
|
|
47
52
|
var enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
48
53
|
var LegendItemRoot = /* @__PURE__ */ function(_Component) {
|
|
49
|
-
_inherits(LegendItemRoot2, _Component);
|
|
50
|
-
var _super = _createSuper(LegendItemRoot2);
|
|
51
54
|
function LegendItemRoot2() {
|
|
52
55
|
_classCallCheck(this, LegendItemRoot2);
|
|
53
|
-
return
|
|
56
|
+
return _callSuper(this, LegendItemRoot2, arguments);
|
|
54
57
|
}
|
|
55
|
-
|
|
58
|
+
_inherits(LegendItemRoot2, _Component);
|
|
59
|
+
return _createClass(LegendItemRoot2, [{
|
|
56
60
|
key: "getUniqueID",
|
|
57
61
|
value: function getUniqueID() {
|
|
58
62
|
var uid = this.asProps.uid;
|
|
@@ -61,18 +65,24 @@ var LegendItemRoot = /* @__PURE__ */ function(_Component) {
|
|
|
61
65
|
}, {
|
|
62
66
|
key: "getShapeProps",
|
|
63
67
|
value: function getShapeProps() {
|
|
64
|
-
var _this$asProps = this.asProps, checked = _this$asProps.checked, color = _this$asProps.color, shape = _this$asProps.shape, label = _this$asProps.label, id = _this$asProps.id, size = _this$asProps.size, resolveColor = _this$asProps.resolveColor, patterns = _this$asProps.patterns, onChangeLegendItem = _this$asProps.onChangeLegendItem;
|
|
68
|
+
var _this$asProps = this.asProps, checked = _this$asProps.checked, color = _this$asProps.color, shape = _this$asProps.shape, label = _this$asProps.label, id = _this$asProps.id, size = _this$asProps.size, resolveColor = _this$asProps.resolveColor, patterns = _this$asProps.patterns, onChangeLegendItem = _this$asProps.onChangeLegendItem, onFocusLegendItem = _this$asProps.onFocusLegendItem, onBlurLegendItem = _this$asProps.onBlurLegendItem;
|
|
65
69
|
return {
|
|
66
70
|
label,
|
|
67
71
|
shape,
|
|
68
72
|
checked,
|
|
69
|
-
color: resolveColor(color),
|
|
70
|
-
patternKey: color,
|
|
73
|
+
"color": resolveColor(color),
|
|
74
|
+
"patternKey": color,
|
|
71
75
|
patterns,
|
|
72
76
|
size,
|
|
73
|
-
onChange: function onChange(value) {
|
|
77
|
+
"onChange": function onChange(value) {
|
|
74
78
|
onChangeLegendItem(id, value);
|
|
75
79
|
},
|
|
80
|
+
"onFocus": function onFocus() {
|
|
81
|
+
return onFocusLegendItem(id);
|
|
82
|
+
},
|
|
83
|
+
"onBlur": function onBlur() {
|
|
84
|
+
return onBlurLegendItem(id);
|
|
85
|
+
},
|
|
76
86
|
"aria-labelledby": shape === "Checkbox" ? this.getUniqueID() : null
|
|
77
87
|
};
|
|
78
88
|
}
|
|
@@ -132,7 +142,6 @@ var LegendItemRoot = /* @__PURE__ */ function(_Component) {
|
|
|
132
142
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref7.cn("Children", {})));
|
|
133
143
|
}
|
|
134
144
|
}]);
|
|
135
|
-
return LegendItemRoot2;
|
|
136
145
|
}(Component);
|
|
137
146
|
_defineProperty(LegendItemRoot, "displayName", "LegendItem");
|
|
138
147
|
_defineProperty(LegendItemRoot, "style", style);
|
|
@@ -143,10 +152,10 @@ _defineProperty(LegendItemRoot, "defaultProps", function() {
|
|
|
143
152
|
};
|
|
144
153
|
});
|
|
145
154
|
function Shape(props) {
|
|
146
|
-
var _ref2 = arguments[0],
|
|
155
|
+
var _ref2 = arguments[0], _ref0;
|
|
147
156
|
var SPointShape = Box;
|
|
148
157
|
var SPatternSymbol = PatternSymbol;
|
|
149
|
-
var styles = props.styles, size = props.size, shape = props.shape, checked = props.checked, color = props.color, _props$patternKey = props.patternKey, patternKey = _props$patternKey === void 0 ? getChartDefaultColorName(0) : _props$patternKey, Children = props.Children, hasChildren = props.children, patterns = props.patterns, onChange = props.onChange;
|
|
158
|
+
var styles = props.styles, size = props.size, shape = props.shape, checked = props.checked, color = props.color, _props$patternKey = props.patternKey, patternKey = _props$patternKey === void 0 ? getChartDefaultColorName(0) : _props$patternKey, Children = props.Children, hasChildren = props.children, patterns = props.patterns, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur;
|
|
150
159
|
if (hasChildren) {
|
|
151
160
|
return /* @__PURE__ */ React.createElement(Children, null);
|
|
152
161
|
}
|
|
@@ -167,6 +176,8 @@ function Shape(props) {
|
|
|
167
176
|
"checked": checked,
|
|
168
177
|
"theme": checked ? color : void 0,
|
|
169
178
|
"onChange": onChange,
|
|
179
|
+
"onFocus": onFocus,
|
|
180
|
+
"onBlur": onBlur,
|
|
170
181
|
"aria-labelledby": props["aria-labelledby"]
|
|
171
182
|
})), patterns && /* @__PURE__ */ React.createElement(Box, _ref9.cn("Box", {
|
|
172
183
|
"mt": "2px",
|
|
@@ -177,54 +188,54 @@ function Shape(props) {
|
|
|
177
188
|
"aria-hidden": true
|
|
178
189
|
}))));
|
|
179
190
|
}
|
|
180
|
-
return
|
|
191
|
+
return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SPointShape, _ref0.cn("SPointShape", _objectSpread({}, assignProps({}, _ref2))), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})));
|
|
181
192
|
}
|
|
182
|
-
function Icon(
|
|
183
|
-
var _ref3 = arguments[0],
|
|
184
|
-
var styles =
|
|
193
|
+
function Icon(_ref13) {
|
|
194
|
+
var _ref3 = arguments[0], _ref1;
|
|
195
|
+
var styles = _ref13.styles, hasChildren = _ref13.children, Children = _ref13.Children;
|
|
185
196
|
var SIcon = Box;
|
|
186
197
|
if (!hasChildren) {
|
|
187
198
|
return null;
|
|
188
199
|
}
|
|
189
|
-
return
|
|
200
|
+
return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SIcon, _ref1.cn("SIcon", _objectSpread({}, assignProps({
|
|
190
201
|
"tag": "span"
|
|
191
|
-
}, _ref3))), /* @__PURE__ */ React.createElement(Children,
|
|
202
|
+
}, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})));
|
|
192
203
|
}
|
|
193
204
|
Icon.displayName = "Icon";
|
|
194
|
-
function Label(
|
|
195
|
-
var _ref4 = arguments[0],
|
|
196
|
-
var styles =
|
|
205
|
+
function Label(_ref14) {
|
|
206
|
+
var _ref4 = arguments[0], _ref10;
|
|
207
|
+
var styles = _ref14.styles, hasChildren = _ref14.children, Children = _ref14.Children;
|
|
197
208
|
var SLabel = Text;
|
|
198
209
|
if (!hasChildren) {
|
|
199
210
|
return null;
|
|
200
211
|
}
|
|
201
|
-
return
|
|
212
|
+
return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SLabel, _ref10.cn("SLabel", _objectSpread({}, assignProps({
|
|
202
213
|
"use": "primary"
|
|
203
|
-
}, _ref4))), /* @__PURE__ */ React.createElement(Children,
|
|
214
|
+
}, _ref4))), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})));
|
|
204
215
|
}
|
|
205
216
|
Label.displayName = "Label";
|
|
206
|
-
function AdditionalLabel(
|
|
207
|
-
var _ref5 = arguments[0],
|
|
208
|
-
var styles =
|
|
217
|
+
function AdditionalLabel(_ref15) {
|
|
218
|
+
var _ref5 = arguments[0], _ref11;
|
|
219
|
+
var styles = _ref15.styles, hasChildren = _ref15.children, Children = _ref15.Children;
|
|
209
220
|
var SAdditionalLabel = Text;
|
|
210
221
|
if (!hasChildren) {
|
|
211
222
|
return null;
|
|
212
223
|
}
|
|
213
|
-
return
|
|
224
|
+
return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SAdditionalLabel, _ref11.cn("SAdditionalLabel", _objectSpread({}, assignProps({
|
|
214
225
|
"use": "secondary"
|
|
215
|
-
}, _ref5))), /* @__PURE__ */ React.createElement(Children,
|
|
226
|
+
}, _ref5))), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
|
|
216
227
|
}
|
|
217
228
|
AdditionalLabel.displayName = "AdditionalLabel";
|
|
218
|
-
function Count(
|
|
219
|
-
var _ref6 = arguments[0],
|
|
220
|
-
var styles =
|
|
229
|
+
function Count(_ref16) {
|
|
230
|
+
var _ref6 = arguments[0], _ref12;
|
|
231
|
+
var styles = _ref16.styles, hasChildren = _ref16.children, Children = _ref16.Children;
|
|
221
232
|
var SCount = Text;
|
|
222
233
|
if (!hasChildren) {
|
|
223
234
|
return null;
|
|
224
235
|
}
|
|
225
|
-
return
|
|
236
|
+
return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SCount, _ref12.cn("SCount", _objectSpread({}, assignProps({
|
|
226
237
|
"use": "secondary"
|
|
227
|
-
}, _ref6))), /* @__PURE__ */ React.createElement(Children,
|
|
238
|
+
}, _ref6))), /* @__PURE__ */ React.createElement(Children, _ref12.cn("Children", {})));
|
|
228
239
|
}
|
|
229
240
|
Count.displayName = "Count";
|
|
230
241
|
var LegendItemComponent = createComponent(LegendItemRoot, {
|
|
@@ -1,39 +1,43 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
4
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import {
|
|
8
|
-
import React from "react";
|
|
9
|
+
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
9
10
|
import { Box } from "@semcore/flex-box";
|
|
10
|
-
import
|
|
11
|
+
import React from "react";
|
|
11
12
|
import { BaseLegend } from "../BaseLegend.mjs";
|
|
13
|
+
import { LegendItemComponent } from "../LegendItem/LegendItem.mjs";
|
|
14
|
+
function _callSuper(t, o, e) {
|
|
15
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
16
|
+
}
|
|
12
17
|
/*!__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
13
18
|
var style = (
|
|
14
19
|
/*__reshadow_css_start__*/
|
|
15
20
|
(sstyled.insert(
|
|
16
21
|
/*__inner_css_start__*/
|
|
17
|
-
'.
|
|
22
|
+
'.___SLegendTable_e4nzj_gg_.__columns-count_e4nzj_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_e4nzj_gg_._size_l_e4nzj_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_e4nzj_gg_._size_m_e4nzj_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
|
|
18
23
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
24
|
+
"e4nzj_gg_"
|
|
20
25
|
), /*__reshadow_css_end__*/
|
|
21
26
|
{
|
|
22
|
-
"__SLegendTable": "
|
|
23
|
-
"_columns-count": "__columns-
|
|
24
|
-
"__SColumnItem": "
|
|
25
|
-
"_size_l": "
|
|
26
|
-
"_size_m": "
|
|
27
|
+
"__SLegendTable": "___SLegendTable_e4nzj_gg_",
|
|
28
|
+
"_columns-count": "__columns-count_e4nzj_gg_",
|
|
29
|
+
"__SColumnItem": "___SColumnItem_e4nzj_gg_",
|
|
30
|
+
"_size_l": "_size_l_e4nzj_gg_",
|
|
31
|
+
"_size_m": "_size_m_e4nzj_gg_"
|
|
27
32
|
})
|
|
28
33
|
);
|
|
29
34
|
var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
30
|
-
_inherits(LegendTableRoot2, _BaseLegend);
|
|
31
|
-
var _super = _createSuper(LegendTableRoot2);
|
|
32
35
|
function LegendTableRoot2() {
|
|
33
36
|
_classCallCheck(this, LegendTableRoot2);
|
|
34
|
-
return
|
|
37
|
+
return _callSuper(this, LegendTableRoot2, arguments);
|
|
35
38
|
}
|
|
36
|
-
|
|
39
|
+
_inherits(LegendTableRoot2, _BaseLegend);
|
|
40
|
+
return _createClass(LegendTableRoot2, [{
|
|
37
41
|
key: "render",
|
|
38
42
|
value: function render() {
|
|
39
43
|
var _ref = this.asProps, _ref3, _items$;
|
|
@@ -43,15 +47,15 @@ var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
|
43
47
|
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLegendTable, _ref3.cn("SLegendTable", _objectSpread({}, assignProps({
|
|
44
48
|
"columns-count": columnsCount + 1,
|
|
45
49
|
"role": "group"
|
|
46
|
-
}, _ref))), items.map(function(_ref5,
|
|
50
|
+
}, _ref))), items.map(function(_ref5, _index) {
|
|
47
51
|
var id = _ref5.id, _ref5$columns = _ref5.columns, columns = _ref5$columns === void 0 ? [] : _ref5$columns;
|
|
48
52
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
49
53
|
key: id
|
|
50
|
-
}, /* @__PURE__ */ React.createElement(Children, null), columns.map(function(item,
|
|
54
|
+
}, /* @__PURE__ */ React.createElement(Children, null), columns.map(function(item, index) {
|
|
51
55
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
52
|
-
key: "".concat(id, "__").concat(
|
|
56
|
+
key: "".concat(id, "__").concat(index)
|
|
53
57
|
}, /* @__PURE__ */ React.createElement(LegendTable.Column, {
|
|
54
|
-
index
|
|
58
|
+
index,
|
|
55
59
|
size,
|
|
56
60
|
styles
|
|
57
61
|
}, item));
|
|
@@ -59,7 +63,6 @@ var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
|
59
63
|
}));
|
|
60
64
|
}
|
|
61
65
|
}]);
|
|
62
|
-
return LegendTableRoot2;
|
|
63
66
|
}(BaseLegend);
|
|
64
67
|
_defineProperty(LegendTableRoot, "displayName", "LegendTable");
|
|
65
68
|
_defineProperty(LegendTableRoot, "style", style);
|