@semcore/d3-chart 3.31.0 → 3.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +14 -14
  4. package/lib/cjs/Bar.js +10 -10
  5. package/lib/cjs/Bubble.js +12 -12
  6. package/lib/cjs/Donut.js +9 -9
  7. package/lib/cjs/Dots.js +8 -8
  8. package/lib/cjs/HorizontalBar.js +10 -10
  9. package/lib/cjs/Hover.js +3 -3
  10. package/lib/cjs/Line.js +9 -9
  11. package/lib/cjs/Plot.js +3 -3
  12. package/lib/cjs/Radar.js +19 -19
  13. package/lib/cjs/RadialTree.js +11 -11
  14. package/lib/cjs/ReferenceLine.js +9 -9
  15. package/lib/cjs/ScatterPlot.js +9 -9
  16. package/lib/cjs/Tooltip.js +9 -9
  17. package/lib/cjs/Venn.js +9 -9
  18. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  19. package/lib/cjs/a11y/PlotA11yView.js +4 -4
  20. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  21. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  22. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  23. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  24. package/lib/es6/Area.js +11 -11
  25. package/lib/es6/Axis.js +14 -14
  26. package/lib/es6/Bar.js +10 -10
  27. package/lib/es6/Bubble.js +12 -12
  28. package/lib/es6/Donut.js +9 -9
  29. package/lib/es6/Dots.js +8 -8
  30. package/lib/es6/HorizontalBar.js +10 -10
  31. package/lib/es6/Hover.js +3 -3
  32. package/lib/es6/Line.js +9 -9
  33. package/lib/es6/Plot.js +3 -3
  34. package/lib/es6/Radar.js +19 -19
  35. package/lib/es6/RadialTree.js +11 -11
  36. package/lib/es6/ReferenceLine.js +9 -9
  37. package/lib/es6/ScatterPlot.js +9 -9
  38. package/lib/es6/Tooltip.js +9 -9
  39. package/lib/es6/Venn.js +9 -9
  40. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  41. package/lib/es6/a11y/PlotA11yView.js +4 -4
  42. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  43. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  44. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  45. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  46. package/package.json +7 -7
@@ -11,15 +11,15 @@ import { Component, sstyled } from '@semcore/core';
11
11
  import createElement from './createElement';
12
12
  import { scaleOfBandwidth } from './utils';
13
13
  /*__reshadow-styles__:"./style/reference-line.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_822cc_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_822cc_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_822cc)}.___STitle_822cc_gg_._position_top_822cc_gg_{text-anchor:middle}.___STitle_822cc_gg_._position_bottom_822cc_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_822cc_gg_._position_left_822cc_gg_,.___STitle_822cc_gg_._position_right_822cc_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_822cc_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "822cc_gg_") /*__reshadow_css_end__*/, {
15
- "__SReferenceLine": "___SReferenceLine_822cc_gg_",
16
- "__STitle": "___STitle_822cc_gg_",
17
- "--transform-origin": "--transform-origin_822cc",
18
- "_position_top": "_position_top_822cc_gg_",
19
- "_position_bottom": "_position_bottom_822cc_gg_",
20
- "_position_right": "_position_right_822cc_gg_",
21
- "_position_left": "_position_left_822cc_gg_",
22
- "__SBackground": "___SBackground_822cc_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_159fm_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_159fm_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_159fm)}.___STitle_159fm_gg_._position_top_159fm_gg_{text-anchor:middle}.___STitle_159fm_gg_._position_bottom_159fm_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_159fm_gg_._position_left_159fm_gg_,.___STitle_159fm_gg_._position_right_159fm_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_159fm_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "159fm_gg_") /*__reshadow_css_end__*/, {
15
+ "__SReferenceLine": "___SReferenceLine_159fm_gg_",
16
+ "__STitle": "___STitle_159fm_gg_",
17
+ "--transform-origin": "--transform-origin_159fm",
18
+ "_position_top": "_position_top_159fm_gg_",
19
+ "_position_bottom": "_position_bottom_159fm_gg_",
20
+ "_position_right": "_position_right_159fm_gg_",
21
+ "_position_left": "_position_left_159fm_gg_",
22
+ "__SBackground": "___SBackground_159fm_gg_"
23
23
  });
24
24
  var side2direction = {
25
25
  left: 'vertical',
@@ -18,15 +18,15 @@ import { CONSTANT, getScatterPlotRadius } from './utils';
18
18
  import Tooltip from './Tooltip';
19
19
  import { PatternFill } from './Pattern';
20
20
  /*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_q3kbd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_q3kbd);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_q3kbd_gg_:hover{opacity:.8}}.___SScatterPlot_q3kbd_gg_.__color_q3kbd_gg_{fill:var(--color_q3kbd)}.___SScatterPlot_q3kbd_gg_.__pattern_q3kbd_gg_.__color_q3kbd_gg_{fill:var(--pattern_q3kbd);stroke:var(--color_q3kbd);stroke-width:1px}.___SScatterPlot_q3kbd_gg_.__transparent_q3kbd_gg_{opacity:.3}.___SValue_q3kbd_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_q3kbd_gg_.__color_q3kbd_gg_{stroke:var(--color_q3kbd)}.___SValue_q3kbd_gg_.__transparent_q3kbd_gg_{opacity:.3}" /*__inner_css_end__*/, "q3kbd_gg_") /*__reshadow_css_end__*/, {
22
- "__SScatterPlot": "___SScatterPlot_q3kbd_gg_",
23
- "_color": "__color_q3kbd_gg_",
24
- "--color": "--color_q3kbd",
25
- "_pattern": "__pattern_q3kbd_gg_",
26
- "--pattern": "--pattern_q3kbd",
27
- "_transparent": "__transparent_q3kbd_gg_",
28
- "__SValue": "___SValue_q3kbd_gg_",
29
- "--duration": "--duration_q3kbd"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1apg0_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1apg0);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1apg0_gg_:hover{opacity:.8}}.___SScatterPlot_1apg0_gg_.__color_1apg0_gg_{fill:var(--color_1apg0)}.___SScatterPlot_1apg0_gg_.__pattern_1apg0_gg_.__color_1apg0_gg_{fill:var(--pattern_1apg0);stroke:var(--color_1apg0);stroke-width:1px}.___SScatterPlot_1apg0_gg_.__transparent_1apg0_gg_{opacity:.3}.___SValue_1apg0_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1apg0_gg_.__color_1apg0_gg_{stroke:var(--color_1apg0)}.___SValue_1apg0_gg_.__transparent_1apg0_gg_{opacity:.3}" /*__inner_css_end__*/, "1apg0_gg_") /*__reshadow_css_end__*/, {
22
+ "__SScatterPlot": "___SScatterPlot_1apg0_gg_",
23
+ "_color": "__color_1apg0_gg_",
24
+ "--color": "--color_1apg0",
25
+ "_pattern": "__pattern_1apg0_gg_",
26
+ "--pattern": "--pattern_1apg0",
27
+ "_transparent": "__transparent_1apg0_gg_",
28
+ "__SValue": "___SValue_1apg0_gg_",
29
+ "--duration": "--duration_1apg0"
30
30
  });
31
31
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
32
32
  _inherits(ScatterPlotRoot, _Component);
@@ -21,15 +21,15 @@ import createElement from './createElement';
21
21
  import { CONSTANT, getChartDefaultColorName } from './utils';
22
22
  import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
23
23
  /*__reshadow-styles__:"./style/tooltip.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_1pfyb_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_1pfyb_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1pfyb_gg_{display:flex;align-items:center}.___SDot_1pfyb_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1pfyb_gg_.__color_1pfyb_gg_{background-color:var(--color_1pfyb);width:12px;height:12px;border-radius:50%}.___SFooter_1pfyb_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "1pfyb_gg_") /*__reshadow_css_end__*/, {
25
- "__STooltip": "___STooltip_1pfyb_gg_",
26
- "__STitle": "___STitle_1pfyb_gg_",
27
- "__SDotGroup": "___SDotGroup_1pfyb_gg_",
28
- "__SDot": "___SDot_1pfyb_gg_",
29
- "__SDotCircle": "___SDotCircle_1pfyb_gg_",
30
- "_color": "__color_1pfyb_gg_",
31
- "--color": "--color_1pfyb",
32
- "__SFooter": "___SFooter_1pfyb_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_1qs88_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_1qs88_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1qs88_gg_{display:flex;align-items:center}.___SDot_1qs88_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1qs88_gg_.__color_1qs88_gg_{background-color:var(--color_1qs88);width:12px;height:12px;border-radius:50%}.___SFooter_1qs88_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "1qs88_gg_") /*__reshadow_css_end__*/, {
25
+ "__STooltip": "___STooltip_1qs88_gg_",
26
+ "__STitle": "___STitle_1qs88_gg_",
27
+ "__SDotGroup": "___SDotGroup_1qs88_gg_",
28
+ "__SDot": "___SDot_1qs88_gg_",
29
+ "__SDotCircle": "___SDotCircle_1qs88_gg_",
30
+ "_color": "__color_1qs88_gg_",
31
+ "--color": "--color_1qs88",
32
+ "__SFooter": "___SFooter_1qs88_gg_"
33
33
  });
34
34
  import { PatternSymbol } from './Pattern';
35
35
 
package/lib/es6/Venn.js CHANGED
@@ -20,15 +20,15 @@ import Tooltip from './Tooltip';
20
20
  import { PatternFill } from './Pattern';
21
21
  import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
22
22
  /*__reshadow-styles__:"./style/venn.shadow.css"*/
23
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_82dk1_gg_,.___SIntersection_82dk1_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_82dk1_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_82dk1);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_82dk1_gg_:hover{fill-opacity:.7}}.___SCircle_82dk1_gg_.__color_82dk1_gg_{fill:var(--color_82dk1)}.___SCircle_82dk1_gg_.__pattern_82dk1_gg_.__color_82dk1_gg_{fill:var(--pattern_82dk1);fill-opacity:.7;stroke:var(--color_82dk1);stroke-width:1px}@media (hover:hover){.___SCircle_82dk1_gg_.__pattern_82dk1_gg_.__color_82dk1_gg_:hover{fill-opacity:.85}}.___SCircle_82dk1_gg_.__transparent_82dk1_gg_{opacity:.3}.___SIntersection_82dk1_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_82dk1_gg_:hover{fill-opacity:.1}}.___SIntersection_82dk1_gg_.__transparent_82dk1_gg_{opacity:.3}" /*__inner_css_end__*/, "82dk1_gg_") /*__reshadow_css_end__*/, {
24
- "__SCircle": "___SCircle_82dk1_gg_",
25
- "_color": "__color_82dk1_gg_",
26
- "--color": "--color_82dk1",
27
- "_transparent": "__transparent_82dk1_gg_",
28
- "__SIntersection": "___SIntersection_82dk1_gg_",
29
- "--duration": "--duration_82dk1",
30
- "_pattern": "__pattern_82dk1_gg_",
31
- "--pattern": "--pattern_82dk1"
23
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1ilm1_gg_,.___SIntersection_1ilm1_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1ilm1_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1ilm1);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1ilm1_gg_:hover{fill-opacity:.7}}.___SCircle_1ilm1_gg_.__color_1ilm1_gg_{fill:var(--color_1ilm1)}.___SCircle_1ilm1_gg_.__pattern_1ilm1_gg_.__color_1ilm1_gg_{fill:var(--pattern_1ilm1);fill-opacity:.7;stroke:var(--color_1ilm1);stroke-width:1px}@media (hover:hover){.___SCircle_1ilm1_gg_.__pattern_1ilm1_gg_.__color_1ilm1_gg_:hover{fill-opacity:.85}}.___SCircle_1ilm1_gg_.__transparent_1ilm1_gg_{opacity:.3}.___SIntersection_1ilm1_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1ilm1_gg_:hover{fill-opacity:.1}}.___SIntersection_1ilm1_gg_.__transparent_1ilm1_gg_{opacity:.3}" /*__inner_css_end__*/, "1ilm1_gg_") /*__reshadow_css_end__*/, {
24
+ "__SCircle": "___SCircle_1ilm1_gg_",
25
+ "_color": "__color_1ilm1_gg_",
26
+ "--color": "--color_1ilm1",
27
+ "_transparent": "__transparent_1ilm1_gg_",
28
+ "__SIntersection": "___SIntersection_1ilm1_gg_",
29
+ "--duration": "--duration_1ilm1",
30
+ "_pattern": "__pattern_1ilm1_gg_",
31
+ "--pattern": "--pattern_1ilm1"
32
32
  });
33
33
  var VennRoot = /*#__PURE__*/function (_Component) {
34
34
  _inherits(VennRoot, _Component);
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
10
10
  import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
11
11
  import { Root, sstyled } from '@semcore/core';
12
12
  /*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
13
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_10o1r_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_10o1r_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "10o1r_gg_") /*__reshadow_css_end__*/, {
14
- "__SPlotA11yModule": "___SPlotA11yModule_10o1r_gg_"
13
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_qwt53_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_qwt53_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "qwt53_gg_") /*__reshadow_css_end__*/, {
14
+ "__SPlotA11yModule": "___SPlotA11yModule_qwt53_gg_"
15
15
  });
16
16
  import { Context as I18nContext, useI18n } from '@semcore/utils/lib/enhances/WithI18n';
17
17
  import { Box } from '@semcore/flex-box';
@@ -13,8 +13,8 @@ import { getIntl } from './intl';
13
13
  import { summarize } from './summarize';
14
14
  import { Root, sstyled } from '@semcore/core';
15
15
  /*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
16
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_1kxxi_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_1kxxi_gg_:focus,.___SPlotA11yView_1kxxi_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_1kxxi_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1kxxi_gg_ table,.___SPlotA11yView_1kxxi_gg_ td,.___SPlotA11yView_1kxxi_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "1kxxi_gg_") /*__reshadow_css_end__*/, {
17
- "__SPlotA11yView": "___SPlotA11yView_1kxxi_gg_"
16
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_p089x_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_p089x_gg_:focus,.___SPlotA11yView_p089x_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_p089x_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_p089x_gg_ table,.___SPlotA11yView_p089x_gg_ td,.___SPlotA11yView_p089x_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "p089x_gg_") /*__reshadow_css_end__*/, {
17
+ "__SPlotA11yView": "___SPlotA11yView_p089x_gg_"
18
18
  });
19
19
  import { Box } from '@semcore/flex-box';
20
20
  import { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';
@@ -130,7 +130,7 @@ export var PlotA11yView = function PlotA11yView(_ref3) {
130
130
  (_heavyFindNextFocusab = heavyFindNextFocusableElement(plotRef.current)) === null || _heavyFindNextFocusab === void 0 ? void 0 : _heavyFindNextFocusab.focus();
131
131
  }, []);
132
132
  var handleSkipKeyboard = React.useCallback(function (event) {
133
- if (!(event.code === 'Enter' || event.code === 'Space')) return;
133
+ if (!(event.key === 'Enter' || event.key === ' ')) return;
134
134
  event.preventDefault();
135
135
  handleSkip();
136
136
  }, [handleSkip]);
@@ -139,7 +139,7 @@ export var PlotA11yView = function PlotA11yView(_ref3) {
139
139
  (_dataTableRef$current = dataTableRef.current) === null || _dataTableRef$current === void 0 ? void 0 : _dataTableRef$current.focus();
140
140
  }, []);
141
141
  var handleGoToTableKeyboard = React.useCallback(function (event) {
142
- if (!(event.code === 'Enter' || event.code === 'Space')) return;
142
+ if (!(event.key === 'Enter' || event.key === ' ')) return;
143
143
  event.preventDefault();
144
144
  handleGoToTable();
145
145
  }, [handleGoToTable]);
@@ -1 +1 @@
1
- {"version":3,"file":"PlotA11yView.js","names":["React","heavyFindNextFocusableElement","makeDataSummarizationConfig","formatValue","getIntl","summarize","Root","sstyled","styles","_sstyled","insert","Box","useAsyncI18nMessages","localizedMessages","PlotA11yView","_ref3","_ref","arguments[0]","_ref2","id","providedData","data","hints","plotLabel","plotRef","providedConfig","config","locale","SPlotA11yView","translations","intl","useMemo","Array","isArray","keys","_fromHints","_fromHints2","_fromHints3","_fromHints4","_fromHints5","fromHints","push","apply","_toConsumableArray","fields","verticalAxes","horizontalAxes","valueAxes","additionalFields","Object","values","Set","filter","key","length","forEach","row","_fromHints6","duplicatedBaseKeys","baseKeys","titles","valuesAxes","map","has","axesTitle","vertical","horizontal","entry","undefined","doublicated","handled","_iterator","_createForOfIteratorHelper","_step","s","n","done","_step$value","_slicedToArray","value","label","err","e","f","renderTitle","useCallback","dataKey","_React$useState","useState","_React$useState2","summary","setSummary","_React$useState3","_React$useState4","generatingSummary","setGeneratingSummary","useEffect","disable","override","setTimeout","handleSkip","_heavyFindNextFocusab","current","focus","handleSkipKeyboard","event","code","preventDefault","handleGoToTable","_dataTableRef$current","dataTableRef","handleGoToTableKeyboard","texts","formatMessage","close","skipPlot","goToTable","summaryPlaceholder","table","useRef","createElement","cn","_objectSpread","_assignProps","concat","index","item","_typeof","join","_ref4","_ref5"],"sources":["../../../src/a11y/PlotA11yView.tsx"],"sourcesContent":["import React from 'react';\nimport { heavyFindNextFocusableElement } from './focus';\nimport { makeDataSummarizationConfig } from './hints';\nimport type { A11yViewProps } from './PlotA11yModule';\nimport { formatValue } from './serialize';\nimport { getIntl } from './intl';\nimport { summarize } from './summarize';\nimport { Root, sstyled } from '@semcore/core';\nimport styles from '../style/plotA11yView.shadow.css';\nimport { Box } from '@semcore/flex-box';\nimport { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/view/__intergalactic-dynamic-locales';\n\nexport const PlotA11yView: React.FC<A11yViewProps> = ({\n id,\n data: providedData,\n hints,\n plotLabel,\n plotRef,\n config: providedConfig,\n locale,\n}) => {\n const SPlotA11yView = Root;\n const translations = useAsyncI18nMessages(localizedMessages, locale);\n const intl = React.useMemo(\n () => getIntl(locale, translations, localizedMessages),\n [locale, translations, localizedMessages],\n );\n const config = React.useMemo(() => makeDataSummarizationConfig(providedConfig), [providedConfig]);\n const data = React.useMemo(\n () => (Array.isArray(providedData) ? providedData : [providedData]),\n [providedData],\n );\n const keys = React.useMemo(() => {\n let fromHints: (string | number)[] = [];\n fromHints.push(...hints.fields.verticalAxes);\n fromHints.push(...hints.fields.horizontalAxes);\n fromHints.push(...hints.fields.valueAxes);\n fromHints.push(...config.additionalFields);\n fromHints.push(...Object.keys(hints.fields.values));\n\n fromHints = [...new Set(fromHints)].filter((key) => key in data[0]);\n\n if (fromHints.length === 0) {\n data.forEach((row) => fromHints.push(...Object.keys(row)));\n }\n\n return [...new Set(fromHints)];\n }, [data, hints]);\n const duplicatedBaseKeys = React.useMemo(() => {\n const baseKeys = keys\n .filter((key) => !hints.titles.valuesAxes[key])\n .map((key) => {\n if (hints.fields.verticalAxes.has(key) && hints.axesTitle.vertical)\n return [key, hints.axesTitle.vertical];\n if (hints.fields.horizontalAxes.has(key) && hints.axesTitle.horizontal)\n return [key, hints.axesTitle.horizontal];\n })\n .filter((entry) => entry !== undefined)\n .map((entry) => entry!);\n const doublicated: Record<string, true> = {};\n const handled: Record<string, string | number> = {};\n for (const [key, label] of baseKeys) {\n if (handled[label]) {\n doublicated[key] = true;\n doublicated[handled[label]] = true;\n }\n handled[label] = key;\n }\n return doublicated;\n }, [keys, hints]);\n const renderTitle = React.useCallback(\n (dataKey: string | number) => {\n if (hints.titles.valuesAxes[dataKey]) return hints.titles.valuesAxes[dataKey];\n if (!duplicatedBaseKeys[dataKey]) {\n if (hints.fields.verticalAxes.has(dataKey) && hints.axesTitle.vertical)\n return hints.axesTitle.vertical;\n if (hints.fields.horizontalAxes.has(dataKey) && hints.axesTitle.horizontal)\n return hints.axesTitle.horizontal;\n }\n\n return dataKey;\n },\n [data, hints, duplicatedBaseKeys],\n );\n\n const [summary, setSummary] = React.useState<string | null>(null);\n const [generatingSummary, setGeneratingSummary] = React.useState(true);\n\n React.useEffect(() => {\n if (config.disable) {\n setSummary('');\n setGeneratingSummary(false);\n return;\n }\n if (config.override) {\n setSummary(config.override);\n setGeneratingSummary(false);\n return;\n }\n setTimeout(() => {\n setSummary(summarize(providedData, hints, config, locale, translations, localizedMessages));\n setGeneratingSummary(false);\n }, 0);\n }, [providedData, hints, config, locale, translations, localizedMessages]);\n\n const handleSkip = React.useCallback(() => {\n if (!plotRef.current) return;\n\n heavyFindNextFocusableElement(plotRef.current)?.focus();\n }, []);\n const handleSkipKeyboard = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (!(event.code === 'Enter' || event.code === 'Space')) return;\n\n event.preventDefault();\n handleSkip();\n },\n [handleSkip],\n );\n const handleGoToTable = React.useCallback(() => {\n dataTableRef.current?.focus();\n }, []);\n const handleGoToTableKeyboard = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (!(event.code === 'Enter' || event.code === 'Space')) return;\n\n event.preventDefault();\n handleGoToTable();\n },\n [handleGoToTable],\n );\n\n const texts = React.useMemo(\n () => ({\n label: intl.formatMessage(\n { id: 'view-label' },\n { plotLabel: plotLabel ?? intl.formatMessage({ id: 'view-default-plot-label' }) },\n ),\n close: intl.formatMessage({ id: 'view-close' }),\n skipPlot: intl.formatMessage({ id: 'view-skip-plot' }),\n goToTable: intl.formatMessage({ id: 'view-go-to-table' }),\n summary: intl.formatMessage({ id: 'view-data-summary' }),\n summaryPlaceholder: intl.formatMessage({ id: 'view-summary-placeholder' }),\n table: intl.formatMessage({ id: 'view-table' }),\n }),\n [intl, plotLabel],\n );\n\n const dataTableRef = React.useRef<HTMLTableElement>(null);\n\n return sstyled(styles)(\n <SPlotA11yView render={Box} tabIndex={0} aria-label={texts.label}>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a aria-hidden onClick={handleSkip}>\n {texts.close}\n </a>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a role='link' tabIndex={0} onKeyDown={handleSkipKeyboard} onClick={handleSkip}>\n {texts.skipPlot}\n </a>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a role='link' tabIndex={0} onKeyDown={handleGoToTableKeyboard} onClick={handleGoToTable}>\n {texts.goToTable}\n </a>\n <strong>\n <label htmlFor={`${id}-data-summary`}>{texts.summary}</label>\n </strong>\n <div id={`${id}-data-summary`} aria-busy={generatingSummary} tabIndex={0}>\n {generatingSummary ? texts.summaryPlaceholder : summary}\n </div>\n <strong>\n <label htmlFor={`${id}-data-table`}>{texts.table}</label>\n </strong>\n <table id={`${id}-data-table`} tabIndex={0} ref={dataTableRef}>\n <thead>\n <tr>\n {keys.map((key, index) => (\n <th key={`${key}-${index}`}>{renderTitle(key)}</th>\n ))}\n </tr>\n </thead>\n <tbody>\n {data.map((row, index) => (\n <tr\n key={`${Object.values(row)\n .filter((item) => typeof item !== 'symbol')\n .join('-')}-${index}`}\n >\n {keys\n .map((key) => (typeof row[key] !== 'symbol' ? [key, row[key]] : [key, '']))\n .map(([key, value], index) => (\n <td key={`${key}-${index}`}>{formatValue(intl, value)}</td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </SPlotA11yView>,\n ) as React.ReactElement;\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,6BAA6B,QAAQ,SAAS;AACvD,SAASC,2BAA2B,QAAQ,SAAS;AAErD,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AAAC;AAAA,IAAAC,MAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;AAAA;AAE9C,SAASC,GAAG,QAAQ,mBAAmB;AACvC,SAASC,oBAAoB,QAAQ,yCAAyC;AAC9E,SAASC,iBAAiB,QAAQ,qDAAqD;AAEvF,OAAO,IAAMC,YAAqC,GAAG,SAAxCA,YAAqCA,CAAAC,KAAA,EAQ5C;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EAAA,IAPJC,EAAE,GAAAJ,KAAA,CAAFI,EAAE;IACIC,YAAY,GAAAL,KAAA,CAAlBM,IAAI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AA;MAAA,oBACflI,KAAA,CAAAwH,aAAA;QAAInE,GAAG,KAAAuE,MAAA,CAAKvE,GAAG,OAAAuE,MAAA,CAAIC,KAAK;MAAG,GAAE1H,WAAW,CAAC2B,IAAI,EAAEiD,KAAK,CAAC,CAAM;IAAA,CAC5D,CAAC,CACD;EAAA,CACN,CAAC,CACI,CACF,CACM;AAEpB,CAAC"}
1
+ {"version":3,"file":"PlotA11yView.js","names":["React","heavyFindNextFocusableElement","makeDataSummarizationConfig","formatValue","getIntl","summarize","Root","sstyled","styles","_sstyled","insert","Box","useAsyncI18nMessages","localizedMessages","PlotA11yView","_ref3","_ref","arguments[0]","_ref2","id","providedData","data","hints","plotLabel","plotRef","providedConfig","config","locale","SPlotA11yView","translations","intl","useMemo","Array","isArray","keys","_fromHints","_fromHints2","_fromHints3","_fromHints4","_fromHints5","fromHints","push","apply","_toConsumableArray","fields","verticalAxes","horizontalAxes","valueAxes","additionalFields","Object","values","Set","filter","key","length","forEach","row","_fromHints6","duplicatedBaseKeys","baseKeys","titles","valuesAxes","map","has","axesTitle","vertical","horizontal","entry","undefined","doublicated","handled","_iterator","_createForOfIteratorHelper","_step","s","n","done","_step$value","_slicedToArray","value","label","err","e","f","renderTitle","useCallback","dataKey","_React$useState","useState","_React$useState2","summary","setSummary","_React$useState3","_React$useState4","generatingSummary","setGeneratingSummary","useEffect","disable","override","setTimeout","handleSkip","_heavyFindNextFocusab","current","focus","handleSkipKeyboard","event","preventDefault","handleGoToTable","_dataTableRef$current","dataTableRef","handleGoToTableKeyboard","texts","formatMessage","close","skipPlot","goToTable","summaryPlaceholder","table","useRef","createElement","cn","_objectSpread","_assignProps","concat","index","item","_typeof","join","_ref4","_ref5"],"sources":["../../../src/a11y/PlotA11yView.tsx"],"sourcesContent":["import React from 'react';\nimport { heavyFindNextFocusableElement } from './focus';\nimport { makeDataSummarizationConfig } from './hints';\nimport type { A11yViewProps } from './PlotA11yModule';\nimport { formatValue } from './serialize';\nimport { getIntl } from './intl';\nimport { summarize } from './summarize';\nimport { Root, sstyled } from '@semcore/core';\nimport styles from '../style/plotA11yView.shadow.css';\nimport { Box } from '@semcore/flex-box';\nimport { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/view/__intergalactic-dynamic-locales';\n\nexport const PlotA11yView: React.FC<A11yViewProps> = ({\n id,\n data: providedData,\n hints,\n plotLabel,\n plotRef,\n config: providedConfig,\n locale,\n}) => {\n const SPlotA11yView = Root;\n const translations = useAsyncI18nMessages(localizedMessages, locale);\n const intl = React.useMemo(\n () => getIntl(locale, translations, localizedMessages),\n [locale, translations, localizedMessages],\n );\n const config = React.useMemo(() => makeDataSummarizationConfig(providedConfig), [providedConfig]);\n const data = React.useMemo(\n () => (Array.isArray(providedData) ? providedData : [providedData]),\n [providedData],\n );\n const keys = React.useMemo(() => {\n let fromHints: (string | number)[] = [];\n fromHints.push(...hints.fields.verticalAxes);\n fromHints.push(...hints.fields.horizontalAxes);\n fromHints.push(...hints.fields.valueAxes);\n fromHints.push(...config.additionalFields);\n fromHints.push(...Object.keys(hints.fields.values));\n\n fromHints = [...new Set(fromHints)].filter((key) => key in data[0]);\n\n if (fromHints.length === 0) {\n data.forEach((row) => fromHints.push(...Object.keys(row)));\n }\n\n return [...new Set(fromHints)];\n }, [data, hints]);\n const duplicatedBaseKeys = React.useMemo(() => {\n const baseKeys = keys\n .filter((key) => !hints.titles.valuesAxes[key])\n .map((key) => {\n if (hints.fields.verticalAxes.has(key) && hints.axesTitle.vertical)\n return [key, hints.axesTitle.vertical];\n if (hints.fields.horizontalAxes.has(key) && hints.axesTitle.horizontal)\n return [key, hints.axesTitle.horizontal];\n })\n .filter((entry) => entry !== undefined)\n .map((entry) => entry!);\n const doublicated: Record<string, true> = {};\n const handled: Record<string, string | number> = {};\n for (const [key, label] of baseKeys) {\n if (handled[label]) {\n doublicated[key] = true;\n doublicated[handled[label]] = true;\n }\n handled[label] = key;\n }\n return doublicated;\n }, [keys, hints]);\n const renderTitle = React.useCallback(\n (dataKey: string | number) => {\n if (hints.titles.valuesAxes[dataKey]) return hints.titles.valuesAxes[dataKey];\n if (!duplicatedBaseKeys[dataKey]) {\n if (hints.fields.verticalAxes.has(dataKey) && hints.axesTitle.vertical)\n return hints.axesTitle.vertical;\n if (hints.fields.horizontalAxes.has(dataKey) && hints.axesTitle.horizontal)\n return hints.axesTitle.horizontal;\n }\n\n return dataKey;\n },\n [data, hints, duplicatedBaseKeys],\n );\n\n const [summary, setSummary] = React.useState<string | null>(null);\n const [generatingSummary, setGeneratingSummary] = React.useState(true);\n\n React.useEffect(() => {\n if (config.disable) {\n setSummary('');\n setGeneratingSummary(false);\n return;\n }\n if (config.override) {\n setSummary(config.override);\n setGeneratingSummary(false);\n return;\n }\n setTimeout(() => {\n setSummary(summarize(providedData, hints, config, locale, translations, localizedMessages));\n setGeneratingSummary(false);\n }, 0);\n }, [providedData, hints, config, locale, translations, localizedMessages]);\n\n const handleSkip = React.useCallback(() => {\n if (!plotRef.current) return;\n\n heavyFindNextFocusableElement(plotRef.current)?.focus();\n }, []);\n const handleSkipKeyboard = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (!(event.key === 'Enter' || event.key === ' ')) return;\n\n event.preventDefault();\n handleSkip();\n },\n [handleSkip],\n );\n const handleGoToTable = React.useCallback(() => {\n dataTableRef.current?.focus();\n }, []);\n const handleGoToTableKeyboard = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (!(event.key === 'Enter' || event.key === ' ')) return;\n\n event.preventDefault();\n handleGoToTable();\n },\n [handleGoToTable],\n );\n\n const texts = React.useMemo(\n () => ({\n label: intl.formatMessage(\n { id: 'view-label' },\n { plotLabel: plotLabel ?? intl.formatMessage({ id: 'view-default-plot-label' }) },\n ),\n close: intl.formatMessage({ id: 'view-close' }),\n skipPlot: intl.formatMessage({ id: 'view-skip-plot' }),\n goToTable: intl.formatMessage({ id: 'view-go-to-table' }),\n summary: intl.formatMessage({ id: 'view-data-summary' }),\n summaryPlaceholder: intl.formatMessage({ id: 'view-summary-placeholder' }),\n table: intl.formatMessage({ id: 'view-table' }),\n }),\n [intl, plotLabel],\n );\n\n const dataTableRef = React.useRef<HTMLTableElement>(null);\n\n return sstyled(styles)(\n <SPlotA11yView render={Box} tabIndex={0} aria-label={texts.label}>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a aria-hidden onClick={handleSkip}>\n {texts.close}\n </a>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a role='link' tabIndex={0} onKeyDown={handleSkipKeyboard} onClick={handleSkip}>\n {texts.skipPlot}\n </a>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a role='link' tabIndex={0} onKeyDown={handleGoToTableKeyboard} onClick={handleGoToTable}>\n {texts.goToTable}\n </a>\n <strong>\n <label htmlFor={`${id}-data-summary`}>{texts.summary}</label>\n </strong>\n <div id={`${id}-data-summary`} aria-busy={generatingSummary} tabIndex={0}>\n {generatingSummary ? texts.summaryPlaceholder : summary}\n </div>\n <strong>\n <label htmlFor={`${id}-data-table`}>{texts.table}</label>\n </strong>\n <table id={`${id}-data-table`} tabIndex={0} ref={dataTableRef}>\n <thead>\n <tr>\n {keys.map((key, index) => (\n <th key={`${key}-${index}`}>{renderTitle(key)}</th>\n ))}\n </tr>\n </thead>\n <tbody>\n {data.map((row, index) => (\n <tr\n key={`${Object.values(row)\n .filter((item) => typeof item !== 'symbol')\n .join('-')}-${index}`}\n >\n {keys\n .map((key) => (typeof row[key] !== 'symbol' ? [key, row[key]] : [key, '']))\n .map(([key, value], index) => (\n <td key={`${key}-${index}`}>{formatValue(intl, value)}</td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </SPlotA11yView>,\n ) as React.ReactElement;\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,6BAA6B,QAAQ,SAAS;AACvD,SAASC,2BAA2B,QAAQ,SAAS;AAErD,SAASC,WAAW,QAAQ,aAAa;AACzC,S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AAI,MAAK,QAAQ;MAAA,EAAC,CAC1CE,IAAI,CAAC,GAAG,CAAC,OAAAJ,MAAA,CAAIC,KAAK;IAAG,GAEvB1F,IAAI,CACF4B,GAAG,CAAC,UAACT,GAAG;MAAA,OAAMyE,OAAA,CAAOtE,GAAG,CAACH,GAAG,CAAC,MAAK,QAAQ,GAAG,CAACA,GAAG,EAAEG,GAAG,CAACH,GAAG,CAAC,CAAC,GAAG,CAACA,GAAG,EAAE,EAAE,CAAC;IAAA,CAAC,CAAC,CAC1ES,GAAG,CAAC,UAAAkE,KAAA,EAAeJ,KAAK;MAAA,IAAAK,KAAA,GAAAnD,cAAA,CAAAkD,KAAA;QAAlB3E,GAAG,GAAA4E,KAAA;QAAElD,KAAK,GAAAkD,KAAA;MAAA,oBACfjI,KAAA,CAAAuH,aAAA;QAAIlE,GAAG,KAAAsE,MAAA,CAAKtE,GAAG,OAAAsE,MAAA,CAAIC,KAAK;MAAG,GAAEzH,WAAW,CAAC2B,IAAI,EAAEiD,KAAK,CAAC,CAAM;IAAA,CAC5D,CAAC,CACD;EAAA,CACN,CAAC,CACI,CACF,CACM;AAEpB,CAAC"}
@@ -10,10 +10,10 @@ import React from 'react';
10
10
  import createComponent, { sstyled, Root } from '@semcore/core';
11
11
  import { Flex } from '@semcore/flex-box';
12
12
  /*__reshadow-styles__:"./legend-flex.shadow.css"*/
13
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_qto3y_gg_._direction_row_qto3y_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_qto3y_gg_._direction_column_qto3y_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "qto3y_gg_") /*__reshadow_css_end__*/, {
14
- "__SLegendFlex": "___SLegendFlex_qto3y_gg_",
15
- "_direction_row": "_direction_row_qto3y_gg_",
16
- "_direction_column": "_direction_column_qto3y_gg_"
13
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_1k7rj_gg_._direction_row_1k7rj_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1k7rj_gg_._direction_column_1k7rj_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "1k7rj_gg_") /*__reshadow_css_end__*/, {
14
+ "__SLegendFlex": "___SLegendFlex_1k7rj_gg_",
15
+ "_direction_row": "_direction_row_1k7rj_gg_",
16
+ "_direction_column": "_direction_column_1k7rj_gg_"
17
17
  });
18
18
  import { LegendItemComponent } from '../LegendItem/LegendItem';
19
19
  import Divider from '@semcore/divider';
@@ -19,23 +19,23 @@ import { Flex, Box } from '@semcore/flex-box';
19
19
  import Checkbox from '@semcore/checkbox';
20
20
  import { Text as TypographyText } from '@semcore/typography';
21
21
  /*__reshadow-styles__:"./legend-item.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_10j6x_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_10j6x_gg_:hover{cursor:pointer}.___SLegendItem_10j6x_gg_.__disabled_10j6x_gg_:hover{cursor:default}}.___SPointShape_10j6x_gg_.__color_10j6x_gg_{background-color:var(--color_10j6x);margin-right:8px;flex-shrink:0}.___SPointShape_10j6x_gg_._shape_Circle_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Circle_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Line_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_10j6x_gg_._shape_Line_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_10j6x_gg_._shape_Square_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Square_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Pattern_10j6x_gg_{background-color:transparent;margin-right:4px}.___SIcon_10j6x_gg_{line-height:0;margin-right:4px}.___SIcon_10j6x_gg_._size_l_10j6x_gg_{margin-top:4px}.___SIcon_10j6x_gg_._size_m_10j6x_gg_{margin-top:2px}.___SLabel_10j6x_gg_{min-width:0}.___SAdditionalLabel_10j6x_gg_._size_l_10j6x_gg_,.___SCount_10j6x_gg_._size_l_10j6x_gg_,.___SLabel_10j6x_gg_._size_l_10j6x_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_10j6x_gg_._size_m_10j6x_gg_,.___SCount_10j6x_gg_._size_m_10j6x_gg_,.___SLabel_10j6x_gg_._size_m_10j6x_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_10j6x_gg_,.___SCount_10j6x_gg_{margin-left:4px}.___SAdditionalLabel_10j6x_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_10j6x_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_10j6x_gg_._size_l_10j6x_gg_::before{margin-top:10px}.___SAdditionalLabel_10j6x_gg_._size_m_10j6x_gg_::before{margin-top:8px}.___SPatternSymbol_10j6x_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "10j6x_gg_") /*__reshadow_css_end__*/, {
23
- "__SLegendItem": "___SLegendItem_10j6x_gg_",
24
- "_disabled": "__disabled_10j6x_gg_",
25
- "__SPointShape": "___SPointShape_10j6x_gg_",
26
- "_color": "__color_10j6x_gg_",
27
- "--color": "--color_10j6x",
28
- "_shape_Circle": "_shape_Circle_10j6x_gg_",
29
- "_size_l": "_size_l_10j6x_gg_",
30
- "_size_m": "_size_m_10j6x_gg_",
31
- "_shape_Line": "_shape_Line_10j6x_gg_",
32
- "_shape_Square": "_shape_Square_10j6x_gg_",
33
- "_shape_Pattern": "_shape_Pattern_10j6x_gg_",
34
- "__SIcon": "___SIcon_10j6x_gg_",
35
- "__SLabel": "___SLabel_10j6x_gg_",
36
- "__SAdditionalLabel": "___SAdditionalLabel_10j6x_gg_",
37
- "__SCount": "___SCount_10j6x_gg_",
38
- "__SPatternSymbol": "___SPatternSymbol_10j6x_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_12voi_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_12voi_gg_:hover{cursor:pointer}.___SLegendItem_12voi_gg_.__disabled_12voi_gg_:hover{cursor:default}}.___SPointShape_12voi_gg_.__color_12voi_gg_{background-color:var(--color_12voi);margin-right:8px;flex-shrink:0}.___SPointShape_12voi_gg_._shape_Circle_12voi_gg_._size_l_12voi_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_12voi_gg_._shape_Circle_12voi_gg_._size_m_12voi_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_12voi_gg_._shape_Line_12voi_gg_._size_l_12voi_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_12voi_gg_._shape_Line_12voi_gg_._size_m_12voi_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_12voi_gg_._shape_Square_12voi_gg_._size_l_12voi_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_12voi_gg_._shape_Square_12voi_gg_._size_m_12voi_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_12voi_gg_._shape_Pattern_12voi_gg_{background-color:transparent;margin-right:4px}.___SIcon_12voi_gg_{line-height:0;margin-right:4px}.___SIcon_12voi_gg_._size_l_12voi_gg_{margin-top:4px}.___SIcon_12voi_gg_._size_m_12voi_gg_{margin-top:2px}.___SLabel_12voi_gg_{min-width:0}.___SAdditionalLabel_12voi_gg_._size_l_12voi_gg_,.___SCount_12voi_gg_._size_l_12voi_gg_,.___SLabel_12voi_gg_._size_l_12voi_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_12voi_gg_._size_m_12voi_gg_,.___SCount_12voi_gg_._size_m_12voi_gg_,.___SLabel_12voi_gg_._size_m_12voi_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_12voi_gg_,.___SCount_12voi_gg_{margin-left:4px}.___SAdditionalLabel_12voi_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_12voi_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_12voi_gg_._size_l_12voi_gg_::before{margin-top:10px}.___SAdditionalLabel_12voi_gg_._size_m_12voi_gg_::before{margin-top:8px}.___SPatternSymbol_12voi_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "12voi_gg_") /*__reshadow_css_end__*/, {
23
+ "__SLegendItem": "___SLegendItem_12voi_gg_",
24
+ "_disabled": "__disabled_12voi_gg_",
25
+ "__SPointShape": "___SPointShape_12voi_gg_",
26
+ "_color": "__color_12voi_gg_",
27
+ "--color": "--color_12voi",
28
+ "_shape_Circle": "_shape_Circle_12voi_gg_",
29
+ "_size_l": "_size_l_12voi_gg_",
30
+ "_size_m": "_size_m_12voi_gg_",
31
+ "_shape_Line": "_shape_Line_12voi_gg_",
32
+ "_shape_Square": "_shape_Square_12voi_gg_",
33
+ "_shape_Pattern": "_shape_Pattern_12voi_gg_",
34
+ "__SIcon": "___SIcon_12voi_gg_",
35
+ "__SLabel": "___SLabel_12voi_gg_",
36
+ "__SAdditionalLabel": "___SAdditionalLabel_12voi_gg_",
37
+ "__SCount": "___SCount_12voi_gg_",
38
+ "__SPatternSymbol": "___SPatternSymbol_12voi_gg_"
39
39
  });
40
40
  import { StaticShapes } from './LegendItem.type';
41
41
  import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
@@ -11,12 +11,12 @@ import React from 'react';
11
11
  import createComponent, { sstyled, Root } from '@semcore/core';
12
12
  import { Box } from '@semcore/flex-box';
13
13
  /*__reshadow-styles__:"./legend-table.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_1g9zp_gg_.__columns-count_1g9zp_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_1g9zp_gg_._size_l_1g9zp_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1g9zp_gg_._size_m_1g9zp_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "1g9zp_gg_") /*__reshadow_css_end__*/, {
15
- "__SLegendTable": "___SLegendTable_1g9zp_gg_",
16
- "_columns-count": "__columns-count_1g9zp_gg_",
17
- "__SColumnItem": "___SColumnItem_1g9zp_gg_",
18
- "_size_l": "_size_l_1g9zp_gg_",
19
- "_size_m": "_size_m_1g9zp_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_l586u_gg_.__columns-count_l586u_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_l586u_gg_._size_l_l586u_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_l586u_gg_._size_m_l586u_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "l586u_gg_") /*__reshadow_css_end__*/, {
15
+ "__SLegendTable": "___SLegendTable_l586u_gg_",
16
+ "_columns-count": "__columns-count_l586u_gg_",
17
+ "__SColumnItem": "___SColumnItem_l586u_gg_",
18
+ "_size_l": "_size_l_l586u_gg_",
19
+ "_size_m": "_size_m_l586u_gg_"
20
20
  });
21
21
  import { LegendItemComponent } from '../LegendItem/LegendItem';
22
22
  import { BaseLegend } from '../BaseLegend';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/d3-chart",
3
3
  "description": "Semrush D3 Chart Component",
4
- "version": "3.31.0",
4
+ "version": "3.31.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@formatjs/intl": "2.3.0",
18
- "@semcore/animation": "2.19.0",
19
- "@semcore/divider": "4.18.4",
20
- "@semcore/flex-box": "5.19.3",
21
- "@semcore/popper": "5.20.3",
22
- "@semcore/utils": "4.20.4",
18
+ "@semcore/animation": "2.19.1",
19
+ "@semcore/divider": "4.18.5",
20
+ "@semcore/flex-box": "5.19.4",
21
+ "@semcore/popper": "5.20.4",
22
+ "@semcore/utils": "4.20.5",
23
23
  "@types/d3-shape": "^3.1.0",
24
24
  "@upsetjs/venn.js": "1.4.2",
25
25
  "d3-array": "3.1.6",
@@ -33,7 +33,7 @@
33
33
  "hoist-non-react-statics": "3.3.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@semcore/core": "^2.17.4",
36
+ "@semcore/core": "^2.17.5",
37
37
  "react": "16.8 - 18",
38
38
  "react-dom": "16.8 - 18"
39
39
  },