@semcore/d3-chart 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/Area.js +9 -9
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +8 -8
- package/lib/cjs/Bubble.js +10 -10
- package/lib/cjs/Donut.js +7 -7
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/HorizontalBar.js +8 -8
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +8 -8
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +7 -7
- package/lib/cjs/a11y/PlotA11yModule.js +9 -11
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -5
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -3
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/translations/module/{translations.js → __intergalactic-dynamic-locales.js} +4 -4
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -0
- package/lib/cjs/a11y/translations/view/{translations.js → __intergalactic-dynamic-locales.js} +4 -4
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -0
- package/lib/es6/Area.js +9 -9
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +8 -8
- package/lib/es6/Bubble.js +10 -10
- package/lib/es6/Donut.js +7 -7
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/HorizontalBar.js +8 -8
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +8 -8
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +7 -7
- package/lib/es6/a11y/PlotA11yModule.js +10 -12
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +8 -5
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/intl.js +1 -2
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/translations/module/{translations.js → __intergalactic-dynamic-locales.js} +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -0
- package/lib/es6/a11y/translations/view/{translations.js → __intergalactic-dynamic-locales.js} +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -0
- package/lib/types/a11y/intl.d.ts +3 -7
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +57 -0
- package/lib/types/a11y/translations/view/__intergalactic-dynamic-locales.d.ts +464 -0
- package/package.json +2 -2
- package/lib/cjs/a11y/translations/module/translations.js.map +0 -1
- package/lib/cjs/a11y/translations/view/translations.js.map +0 -1
- package/lib/es6/a11y/translations/module/translations.js.map +0 -1
- package/lib/es6/a11y/translations/view/translations.js.map +0 -1
- package/lib/types/a11y/translations/module/translations.d.ts +0 -5
- package/lib/types/a11y/translations/view/translations.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [2.7.0] - 2022-12-14
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Supported semi-async internationalization of text in a11y module.
|
|
10
|
+
|
|
5
11
|
## [2.6.1] - 2022-12-13
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Area.js
CHANGED
|
@@ -48,18 +48,18 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SArea_1aram_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);fill-opacity:.2}.___SArea_1aram_gg_.__color_1aram_gg_{fill:var(--color_1aram)}.___SAreaLine_1aram_gg_{stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_1aram_gg_.__color_1aram_gg_{stroke:var(--color_1aram)}.___SArea_1aram_gg_,.___SAreaLine_1aram_gg_{transition-property:d;transition-duration:var(--duration_1aram);transition-timing-function:ease-in-out}.___SNull_1aram_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf);stroke-dasharray:4}.___SNull_1aram_gg_.__hide_1aram_gg_{display:none}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "1aram_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SArea": "
|
|
57
|
-
"_color": "
|
|
58
|
-
"--color": "--
|
|
59
|
-
"__SAreaLine": "
|
|
60
|
-
"--duration": "--
|
|
61
|
-
"__SNull": "
|
|
62
|
-
"_hide": "
|
|
56
|
+
"__SArea": "___SArea_1aram_gg_",
|
|
57
|
+
"_color": "__color_1aram_gg_",
|
|
58
|
+
"--color": "--color_1aram",
|
|
59
|
+
"__SAreaLine": "___SAreaLine_1aram_gg_",
|
|
60
|
+
"--duration": "--duration_1aram",
|
|
61
|
+
"__SNull": "___SNull_1aram_gg_",
|
|
62
|
+
"_hide": "__hide_1aram_gg_"
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Axis.js
CHANGED
|
@@ -44,23 +44,23 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
47
|
+
".___SAxis_1neku_gg_{stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___SAxis_1neku_gg_.__hide_1neku_gg_{display:none}.___STick_1neku_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#6c6e79)}.___STick_1neku_gg_.__hide_1neku_gg_{display:none}.___SGrid_1neku_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary,#e0e1e9)}.___STitle_1neku_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-text-hint,#6c6e79);transform-origin:var(--transform-origin_1neku)}.___STitle_1neku_gg_._position_top_1neku_gg_{text-anchor:middle}.___STitle_1neku_gg_._position_bottom_1neku_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1neku_gg_._position_right_1neku_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1neku_gg_._position_left_1neku_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_1neku_gg_._position_top_1neku_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1neku_gg_._position_bottom_1neku_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1neku_gg_._position_right_1neku_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_1neku_gg_._position_left_1neku_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_1neku_gg_._position_custom_0_1neku_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1neku_gg_._position_custom_1_1neku_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "1neku_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SAxis": "
|
|
53
|
-
"_hide": "
|
|
54
|
-
"__STick": "
|
|
55
|
-
"__SGrid": "
|
|
56
|
-
"__STitle": "
|
|
57
|
-
"--transform-origin": "--transform-
|
|
58
|
-
"_position_top": "
|
|
59
|
-
"_position_bottom": "
|
|
60
|
-
"_position_right": "
|
|
61
|
-
"_position_left": "
|
|
62
|
-
"_position_custom_0": "
|
|
63
|
-
"_position_custom_1": "
|
|
52
|
+
"__SAxis": "___SAxis_1neku_gg_",
|
|
53
|
+
"_hide": "__hide_1neku_gg_",
|
|
54
|
+
"__STick": "___STick_1neku_gg_",
|
|
55
|
+
"__SGrid": "___SGrid_1neku_gg_",
|
|
56
|
+
"__STitle": "___STitle_1neku_gg_",
|
|
57
|
+
"--transform-origin": "--transform-origin_1neku",
|
|
58
|
+
"_position_top": "_position_top_1neku_gg_",
|
|
59
|
+
"_position_bottom": "_position_bottom_1neku_gg_",
|
|
60
|
+
"_position_right": "_position_right_1neku_gg_",
|
|
61
|
+
"_position_left": "_position_left_1neku_gg_",
|
|
62
|
+
"_position_custom_0": "_position_custom_0_1neku_gg_",
|
|
63
|
+
"_position_custom_1": "_position_custom_1_1neku_gg_"
|
|
64
64
|
});
|
|
65
65
|
var CUSTOM_0 = Symbol('custom_0');
|
|
66
66
|
var CUSTOM_1 = Symbol('custom_1');
|
package/lib/cjs/Bar.js
CHANGED
|
@@ -44,17 +44,17 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
47
|
+
".___SBar_90qiy_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_90qiy);transition-timing-function:ease-in-out}.___SBar_90qiy_gg_.__color_90qiy_gg_{fill:var(--color_90qiy)}.___SBar_90qiy_gg_.__hide_90qiy_gg_{display:none}.___SBackground_90qiy_gg_{fill:var(--intergalactic-chart-palette-order-other-data,#c4c7cf)}"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "90qiy_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SBar": "
|
|
53
|
-
"--duration": "--
|
|
54
|
-
"_color": "
|
|
55
|
-
"--color": "--
|
|
56
|
-
"_hide": "
|
|
57
|
-
"__SBackground": "
|
|
52
|
+
"__SBar": "___SBar_90qiy_gg_",
|
|
53
|
+
"--duration": "--duration_90qiy",
|
|
54
|
+
"_color": "__color_90qiy_gg_",
|
|
55
|
+
"--color": "--color_90qiy",
|
|
56
|
+
"_hide": "__hide_90qiy_gg_",
|
|
57
|
+
"__SBackground": "___SBackground_90qiy_gg_"
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
var BarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Bubble.js
CHANGED
|
@@ -56,19 +56,19 @@ var style = (
|
|
|
56
56
|
/*__reshadow_css_start__*/
|
|
57
57
|
_core.sstyled.insert(
|
|
58
58
|
/*__inner_css_start__*/
|
|
59
|
-
".
|
|
59
|
+
".___SBubble_9zikn_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_9zikn);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_9zikn_gg_:hover{opacity:.8}.___SBubble_9zikn_gg_.__color_9zikn_gg_{fill:var(--color_9zikn)}.___SCenter_9zikn_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SCenter_9zikn_gg_.__color_9zikn_gg_{stroke:var(--color_9zikn)}.___SLabel_9zikn_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SLabel_9zikn_gg_._position_right_9zikn_gg_{text-anchor:end}.___SLabel_9zikn_gg_._position_left_9zikn_gg_{text-anchor:start}.___SLabel_9zikn_gg_.__color_9zikn_gg_{fill:var(--color_9zikn)}"
|
|
60
60
|
/*__inner_css_end__*/
|
|
61
|
-
, "
|
|
61
|
+
, "9zikn_gg_")
|
|
62
62
|
/*__reshadow_css_end__*/
|
|
63
63
|
, {
|
|
64
|
-
"__SBubble": "
|
|
65
|
-
"--duration": "--
|
|
66
|
-
"_color": "
|
|
67
|
-
"--color": "--
|
|
68
|
-
"__SCenter": "
|
|
69
|
-
"__SLabel": "
|
|
70
|
-
"_position_right": "
|
|
71
|
-
"_position_left": "
|
|
64
|
+
"__SBubble": "___SBubble_9zikn_gg_",
|
|
65
|
+
"--duration": "--duration_9zikn",
|
|
66
|
+
"_color": "__color_9zikn_gg_",
|
|
67
|
+
"--color": "--color_9zikn",
|
|
68
|
+
"__SCenter": "___SCenter_9zikn_gg_",
|
|
69
|
+
"__SLabel": "___SLabel_9zikn_gg_",
|
|
70
|
+
"_position_right": "_position_right_9zikn_gg_",
|
|
71
|
+
"_position_left": "_position_left_9zikn_gg_"
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Donut.js
CHANGED
|
@@ -66,16 +66,16 @@ var style = (
|
|
|
66
66
|
/*__reshadow_css_start__*/
|
|
67
67
|
_core.sstyled.insert(
|
|
68
68
|
/*__inner_css_start__*/
|
|
69
|
-
".
|
|
69
|
+
".___SPie_g1k4k_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SPie_g1k4k_gg_.__color_g1k4k_gg_{fill:var(--color_g1k4k)}.___SEmptyData_g1k4k_gg_{fill:var(--intergalactic-chart-palette-order-null,#e0e1e9)}.___SEmptyData_g1k4k_gg_.__color_g1k4k_gg_{fill:var(--color_g1k4k)}.___SLabel_g1k4k_gg_{text-anchor:middle;vertical-anchor:middle}"
|
|
70
70
|
/*__inner_css_end__*/
|
|
71
|
-
, "
|
|
71
|
+
, "g1k4k_gg_")
|
|
72
72
|
/*__reshadow_css_end__*/
|
|
73
73
|
, {
|
|
74
|
-
"__SPie": "
|
|
75
|
-
"_color": "
|
|
76
|
-
"--color": "--
|
|
77
|
-
"__SEmptyData": "
|
|
78
|
-
"__SLabel": "
|
|
74
|
+
"__SPie": "___SPie_g1k4k_gg_",
|
|
75
|
+
"_color": "__color_g1k4k_gg_",
|
|
76
|
+
"--color": "--color_g1k4k",
|
|
77
|
+
"__SEmptyData": "___SEmptyData_g1k4k_gg_",
|
|
78
|
+
"__SLabel": "___SLabel_g1k4k_gg_"
|
|
79
79
|
});
|
|
80
80
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
|
81
81
|
|
package/lib/cjs/Dots.js
CHANGED
|
@@ -32,18 +32,18 @@ var style = (
|
|
|
32
32
|
/*__reshadow_css_start__*/
|
|
33
33
|
_core.sstyled.insert(
|
|
34
34
|
/*__inner_css_start__*/
|
|
35
|
-
".
|
|
35
|
+
".___SDots_ovjyg_gg_ .___SDot_ovjyg_gg_{transition-duration:var(--duration_ovjyg)}.___SDot_ovjyg_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_ovjyg_gg_.__hide_ovjyg_gg_{display:none}.___SDot_ovjyg_gg_.__active_ovjyg_gg_{r:8px}.___SDot_ovjyg_gg_.__color_ovjyg_gg_{fill:var(--color_ovjyg)}"
|
|
36
36
|
/*__inner_css_end__*/
|
|
37
|
-
, "
|
|
37
|
+
, "ovjyg_gg_")
|
|
38
38
|
/*__reshadow_css_end__*/
|
|
39
39
|
, {
|
|
40
|
-
"__SDots": "
|
|
41
|
-
"__SDot": "
|
|
42
|
-
"--duration": "--
|
|
43
|
-
"_hide": "
|
|
44
|
-
"_active": "
|
|
45
|
-
"_color": "
|
|
46
|
-
"--color": "--
|
|
40
|
+
"__SDots": "___SDots_ovjyg_gg_",
|
|
41
|
+
"__SDot": "___SDot_ovjyg_gg_",
|
|
42
|
+
"--duration": "--duration_ovjyg",
|
|
43
|
+
"_hide": "__hide_ovjyg_gg_",
|
|
44
|
+
"_active": "__active_ovjyg_gg_",
|
|
45
|
+
"_color": "__color_ovjyg_gg_",
|
|
46
|
+
"--color": "--color_ovjyg"
|
|
47
47
|
});
|
|
48
48
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
|
49
49
|
|
package/lib/cjs/HorizontalBar.js
CHANGED
|
@@ -42,17 +42,17 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
".
|
|
45
|
+
".___SBar_90qiy_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_90qiy);transition-timing-function:ease-in-out}.___SBar_90qiy_gg_.__color_90qiy_gg_{fill:var(--color_90qiy)}.___SBar_90qiy_gg_.__hide_90qiy_gg_{display:none}.___SBackground_90qiy_gg_{fill:var(--intergalactic-chart-palette-order-other-data,#c4c7cf)}"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "90qiy_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SBar": "
|
|
51
|
-
"--duration": "--
|
|
52
|
-
"_color": "
|
|
53
|
-
"--color": "--
|
|
54
|
-
"_hide": "
|
|
55
|
-
"__SBackground": "
|
|
50
|
+
"__SBar": "___SBar_90qiy_gg_",
|
|
51
|
+
"--duration": "--duration_90qiy",
|
|
52
|
+
"_color": "__color_90qiy_gg_",
|
|
53
|
+
"--color": "--color_90qiy",
|
|
54
|
+
"_hide": "__hide_90qiy_gg_",
|
|
55
|
+
"__SBackground": "___SBackground_90qiy_gg_"
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Hover.js
CHANGED
|
@@ -44,13 +44,13 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
47
|
+
".___SHoverLine_1x0iv_gg_{stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___SHoverRect_1x0iv_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover,rgba(196,199,207,.3))}"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "1x0iv_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SHoverLine": "
|
|
53
|
-
"__SHoverRect": "
|
|
52
|
+
"__SHoverLine": "___SHoverLine_1x0iv_gg_",
|
|
53
|
+
"__SHoverRect": "___SHoverRect_1x0iv_gg_"
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
var Hover = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Line.js
CHANGED
|
@@ -46,17 +46,17 @@ var style = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
_core.sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
49
|
+
".___SLine_1rjfy_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:d;transition-duration:var(--duration_1rjfy);transition-timing-function:ease-in-out}.___SLine_1rjfy_gg_.__color_1rjfy_gg_{stroke:var(--color_1rjfy)}.___SLine_1rjfy_gg_.__hide_1rjfy_gg_{display:none}.___SNull_1rjfy_gg_{fill:transparent;stroke:var(-intergalactic-border-primary);stroke-dasharray:4}.___SNull_1rjfy_gg_.__hide_1rjfy_gg_{display:none}"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "1rjfy_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SLine": "
|
|
55
|
-
"--duration": "--
|
|
56
|
-
"_color": "
|
|
57
|
-
"--color": "--
|
|
58
|
-
"_hide": "
|
|
59
|
-
"__SNull": "
|
|
54
|
+
"__SLine": "___SLine_1rjfy_gg_",
|
|
55
|
+
"--duration": "--duration_1rjfy",
|
|
56
|
+
"_color": "__color_1rjfy_gg_",
|
|
57
|
+
"--color": "--color_1rjfy",
|
|
58
|
+
"_hide": "__hide_1rjfy_gg_",
|
|
59
|
+
"__SNull": "___SNull_1rjfy_gg_"
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Plot.js
CHANGED
|
@@ -58,13 +58,13 @@ var style = (
|
|
|
58
58
|
/*__reshadow_css_start__*/
|
|
59
59
|
_core.sstyled.insert(
|
|
60
60
|
/*__inner_css_start__*/
|
|
61
|
-
".
|
|
61
|
+
".___SPlot_5dzp6_gg_{overflow:hidden}.___SPlot_5dzp6_gg_:active,.___SPlot_5dzp6_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_5dzp6_gg_.__keyboardFocused_5dzp6_gg_{border:1px solid var(--intergalactic-chart-palette-order-blue-second-order,#008ff8);box-shadow:var(--intergalactic-keyboard-focus,0 0 0 3px rgba(0,143,248,.3))}"
|
|
62
62
|
/*__inner_css_end__*/
|
|
63
|
-
, "
|
|
63
|
+
, "5dzp6_gg_")
|
|
64
64
|
/*__reshadow_css_end__*/
|
|
65
65
|
, {
|
|
66
|
-
"__SPlot": "
|
|
67
|
-
"_keyboardFocused": "
|
|
66
|
+
"__SPlot": "___SPlot_5dzp6_gg_",
|
|
67
|
+
"_keyboardFocused": "__keyboardFocused_5dzp6_gg_"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/RadialTree.js
CHANGED
|
@@ -60,20 +60,20 @@ var style = (
|
|
|
60
60
|
/*__reshadow_css_start__*/
|
|
61
61
|
_core.sstyled.insert(
|
|
62
62
|
/*__inner_css_start__*/
|
|
63
|
-
".
|
|
63
|
+
".___SRadian_1brtg_gg_{cursor:pointer;fill:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SLine_1brtg_gg_{stroke:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SLine_1brtg_gg_.__color_1brtg_gg_{stroke:var(--color_1brtg)}.___SCap_1brtg_gg_{transition:r .1s}.___SLabel_1brtg_gg_{fill:var(--color_1brtg);cursor:var(--text-cursor_1brtg)}.___SRadian_1brtg_gg_:hover .___SLabel_1brtg_gg_{fill:var(--color-hovered_1brtg)}@media (prefers-reduced-motion){.___SLineCap_1brtg_gg_{transition:none}}"
|
|
64
64
|
/*__inner_css_end__*/
|
|
65
|
-
, "
|
|
65
|
+
, "1brtg_gg_")
|
|
66
66
|
/*__reshadow_css_end__*/
|
|
67
67
|
, {
|
|
68
|
-
"__SRadian": "
|
|
69
|
-
"__SLine": "
|
|
70
|
-
"_color": "
|
|
71
|
-
"--color": "--
|
|
72
|
-
"__SCap": "
|
|
73
|
-
"__SLabel": "
|
|
74
|
-
"--text-cursor": "--text-
|
|
75
|
-
"--color-hovered": "--color-
|
|
76
|
-
"__SLineCap": "
|
|
68
|
+
"__SRadian": "___SRadian_1brtg_gg_",
|
|
69
|
+
"__SLine": "___SLine_1brtg_gg_",
|
|
70
|
+
"_color": "__color_1brtg_gg_",
|
|
71
|
+
"--color": "--color_1brtg",
|
|
72
|
+
"__SCap": "___SCap_1brtg_gg_",
|
|
73
|
+
"__SLabel": "___SLabel_1brtg_gg_",
|
|
74
|
+
"--text-cursor": "--text-cursor_1brtg",
|
|
75
|
+
"--color-hovered": "--color-hovered_1brtg",
|
|
76
|
+
"__SLineCap": "___SLineCap_1brtg_gg_"
|
|
77
77
|
});
|
|
78
78
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
79
79
|
|
package/lib/cjs/ReferenceLine.js
CHANGED
|
@@ -42,19 +42,19 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
".
|
|
45
|
+
".___SReferenceLine_153xq_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___STitle_153xq_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#6c6e79);transform-origin:var(--transform-origin_153xq)}.___STitle_153xq_gg_._position_top_153xq_gg_{text-anchor:middle}.___STitle_153xq_gg_._position_bottom_153xq_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_153xq_gg_._position_right_153xq_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_153xq_gg_._position_left_153xq_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_153xq_gg_{fill:var(--intergalactic-chart-grid-period-bg,rgba(196,199,207,.2))}"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "153xq_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SReferenceLine": "
|
|
51
|
-
"__STitle": "
|
|
52
|
-
"--transform-origin": "--transform-
|
|
53
|
-
"_position_top": "
|
|
54
|
-
"_position_bottom": "
|
|
55
|
-
"_position_right": "
|
|
56
|
-
"_position_left": "
|
|
57
|
-
"__SBackground": "
|
|
50
|
+
"__SReferenceLine": "___SReferenceLine_153xq_gg_",
|
|
51
|
+
"__STitle": "___STitle_153xq_gg_",
|
|
52
|
+
"--transform-origin": "--transform-origin_153xq",
|
|
53
|
+
"_position_top": "_position_top_153xq_gg_",
|
|
54
|
+
"_position_bottom": "_position_bottom_153xq_gg_",
|
|
55
|
+
"_position_right": "_position_right_153xq_gg_",
|
|
56
|
+
"_position_left": "_position_left_153xq_gg_",
|
|
57
|
+
"__SBackground": "___SBackground_153xq_gg_"
|
|
58
58
|
});
|
|
59
59
|
var side2direction = {
|
|
60
60
|
left: 'vertical',
|
package/lib/cjs/ScatterPlot.js
CHANGED
|
@@ -52,16 +52,16 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SScatterPlot_17cjn_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_17cjn);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_17cjn_gg_:hover{opacity:.8}.___SScatterPlot_17cjn_gg_.__color_17cjn_gg_{fill:var(--color_17cjn)}.___SValue_17cjn_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SValue_17cjn_gg_.__color_17cjn_gg_{stroke:var(--color_17cjn)}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "17cjn_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SScatterPlot": "
|
|
61
|
-
"--duration": "--
|
|
62
|
-
"_color": "
|
|
63
|
-
"--color": "--
|
|
64
|
-
"__SValue": "
|
|
60
|
+
"__SScatterPlot": "___SScatterPlot_17cjn_gg_",
|
|
61
|
+
"--duration": "--duration_17cjn",
|
|
62
|
+
"_color": "__color_17cjn_gg_",
|
|
63
|
+
"--color": "--color_17cjn",
|
|
64
|
+
"__SValue": "___SValue_17cjn_gg_"
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Tooltip.js
CHANGED
|
@@ -60,17 +60,17 @@ var style = (
|
|
|
60
60
|
/*__reshadow_css_start__*/
|
|
61
61
|
_core.sstyled.insert(
|
|
62
62
|
/*__inner_css_start__*/
|
|
63
|
-
".
|
|
63
|
+
".___STooltip_13lja_gg_{font-size:var(--intergalactic-fs-100,12px);line-height:var(--intergalactic-lh-100,133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral,#fff);border-radius:var(--intergalactic-rounded-medium,6px);border:1px solid var(--intergalactic-border-secondary,#e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,0 1px 12px 0 rgba(25,27,35,.15));padding:var(--intergalactic-spacing-3x,12px)}.___STitle_13lja_gg_{color:var(--intergalactic-text-secondary,#6c6e79);margin-bottom:var(--intergalactic-spacing-2x,8px)}.___SDotGroup_13lja_gg_{display:flex;align-items:center}.___SDot_13lja_gg_{width:8px;height:8px;border-radius:50%;margin-right:var(--intergalactic-spacing-2x,8px);background:var(--intergalactic-icon-secondary-info,#2bb3ff)}.___SDot_13lja_gg_.__color_13lja_gg_{background:var(--color_13lja)}"
|
|
64
64
|
/*__inner_css_end__*/
|
|
65
|
-
, "
|
|
65
|
+
, "13lja_gg_")
|
|
66
66
|
/*__reshadow_css_end__*/
|
|
67
67
|
, {
|
|
68
|
-
"__STooltip": "
|
|
69
|
-
"__STitle": "
|
|
70
|
-
"__SDotGroup": "
|
|
71
|
-
"__SDot": "
|
|
72
|
-
"_color": "
|
|
73
|
-
"--color": "--
|
|
68
|
+
"__STooltip": "___STooltip_13lja_gg_",
|
|
69
|
+
"__STitle": "___STitle_13lja_gg_",
|
|
70
|
+
"__SDotGroup": "___SDotGroup_13lja_gg_",
|
|
71
|
+
"__SDot": "___SDot_13lja_gg_",
|
|
72
|
+
"_color": "__color_13lja_gg_",
|
|
73
|
+
"--color": "--color_13lja"
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
var TooltipRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Venn.js
CHANGED
|
@@ -48,16 +48,16 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SCircle_9soeo_gg_{fill:var(--intergalactic-chart-palette-order-green,#59ddaa);stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_9soeo);transition-timing-function:ease-in-out}.___SCircle_9soeo_gg_:hover{fill-opacity:.7}.___SCircle_9soeo_gg_.__color_9soeo_gg_{fill:var(--color_9soeo)}.___SIntersection_9soeo_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:0}.___SIntersection_9soeo_gg_:hover{fill-opacity:.1}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "9soeo_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SCircle": "
|
|
57
|
-
"--duration": "--
|
|
58
|
-
"_color": "
|
|
59
|
-
"--color": "--
|
|
60
|
-
"__SIntersection": "
|
|
56
|
+
"__SCircle": "___SCircle_9soeo_gg_",
|
|
57
|
+
"--duration": "--duration_9soeo",
|
|
58
|
+
"_color": "__color_9soeo_gg_",
|
|
59
|
+
"--color": "--color_9soeo",
|
|
60
|
+
"__SIntersection": "___SIntersection_9soeo_gg_"
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -21,7 +21,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("./locale");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _intergalacticDynamicLocales = require("./translations/module/__intergalactic-dynamic-locales");
|
|
25
25
|
|
|
26
26
|
var _WithI18n = require("@semcore/utils/lib/enhances/WithI18n");
|
|
27
27
|
|
|
@@ -40,12 +40,12 @@ var styles = (
|
|
|
40
40
|
/*__reshadow_css_start__*/
|
|
41
41
|
_core.sstyled.insert(
|
|
42
42
|
/*__inner_css_start__*/
|
|
43
|
-
".
|
|
43
|
+
".___SPlotA11yModule_1cv35_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1cv35_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
|
|
44
44
|
/*__inner_css_end__*/
|
|
45
|
-
, "
|
|
45
|
+
, "1cv35_gg_")
|
|
46
46
|
/*__reshadow_css_end__*/
|
|
47
47
|
, {
|
|
48
|
-
"__SPlotA11yModule": "
|
|
48
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1cv35_gg_"
|
|
49
49
|
});
|
|
50
50
|
var globalWasFocused = false;
|
|
51
51
|
var globalNavWithKeyboard = false;
|
|
@@ -91,12 +91,10 @@ var PlotA11yModule = function PlotA11yModule(props) {
|
|
|
91
91
|
var locale = _react["default"].useMemo(function () {
|
|
92
92
|
var _props$locale;
|
|
93
93
|
|
|
94
|
-
return (0, _locale.normalizeLocale)((_props$locale = props.locale) !== null && _props$locale !== void 0 ? _props$locale : contextLocale,
|
|
94
|
+
return (0, _locale.normalizeLocale)((_props$locale = props.locale) !== null && _props$locale !== void 0 ? _props$locale : contextLocale, _intergalacticDynamicLocales.localizedMessages);
|
|
95
95
|
}, [props.locale]);
|
|
96
96
|
|
|
97
|
-
var
|
|
98
|
-
return locale ? _translations.translations[locale] : {};
|
|
99
|
-
}, [locale]);
|
|
97
|
+
var t = (0, _WithI18n.useI18n)(_intergalacticDynamicLocales.localizedMessages, locale);
|
|
100
98
|
|
|
101
99
|
_react["default"].useEffect(function () {
|
|
102
100
|
var _props$plotRef$curren;
|
|
@@ -175,7 +173,7 @@ var PlotA11yModule = function PlotA11yModule(props) {
|
|
|
175
173
|
return _ref3 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPlotA11yModule, _ref3.cn("SPlotA11yModule", _objectSpread({}, (0, _core.assignProps)({
|
|
176
174
|
"tabIndex": 0,
|
|
177
175
|
"aria-live": "assertive"
|
|
178
|
-
}, _ref))),
|
|
176
|
+
}, _ref))), t('failed'));
|
|
179
177
|
}
|
|
180
178
|
|
|
181
179
|
if (loading) {
|
|
@@ -184,13 +182,13 @@ var PlotA11yModule = function PlotA11yModule(props) {
|
|
|
184
182
|
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPlotA11yModule, _ref4.cn("SPlotA11yModule", _objectSpread({}, (0, _core.assignProps)({
|
|
185
183
|
"tabIndex": 0,
|
|
186
184
|
"aria-live": "polite"
|
|
187
|
-
}, _ref))),
|
|
185
|
+
}, _ref))), t('loading'));
|
|
188
186
|
}
|
|
189
187
|
|
|
190
188
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPlotA11yModule, _ref5.cn("SPlotA11yModule", _objectSpread({}, (0, _core.assignProps)({
|
|
191
189
|
"tabIndex": 0,
|
|
192
190
|
"onFocus": hadnleHiddenElementsFocus
|
|
193
|
-
}, _ref))),
|
|
191
|
+
}, _ref))), t('disabled'));
|
|
194
192
|
};
|
|
195
193
|
|
|
196
194
|
exports.PlotA11yModule = PlotA11yModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlotA11yModule.js","names":["globalWasFocused","globalNavWithKeyboard","PlotA11yModule","props","SPlotA11yModule","Box","React","useState","wasFocused","setWasFocused","navWithKeyboard","setNavWithKeyboard","plotA11yView","setPlotA11yView","hadnleHiddenElementsFocus","useCallback","loading","setLoading","error","setError","contextLocale","useContext","I18nContext","locale","useMemo","normalizeLocale","
|
|
1
|
+
{"version":3,"file":"PlotA11yModule.js","names":["globalWasFocused","globalNavWithKeyboard","PlotA11yModule","props","SPlotA11yModule","Box","React","useState","wasFocused","setWasFocused","navWithKeyboard","setNavWithKeyboard","plotA11yView","setPlotA11yView","hadnleHiddenElementsFocus","useCallback","loading","setLoading","error","setError","contextLocale","useContext","I18nContext","locale","useMemo","normalizeLocale","localizedMessages","t","useI18n","useEffect","focusListener","plotRef","current","addEventListener","removeEventListener","keyboardListener","event","navigationKeys","includes","key","document","body","shouldDisplayView","then","PlotA11yView","Component","console","sstyled","styles"],"sources":["../../../src/a11y/PlotA11yModule.tsx"],"sourcesContent":["import React from 'react';\nimport { DataStructureHints, PartialDataSummarizationConfig } from './hints';\nimport { normalizeLocale } from './locale';\nimport { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';\nimport { Root, sstyled } from '@semcore/core';\nimport styles from '../style/plotA11yModule.shadow.css';\nimport { Context as I18nContext, useI18n } from '@semcore/utils/lib/enhances/WithI18n';\nimport { Box } from '@semcore/flex-box';\n\nlet globalWasFocused = false;\nlet globalNavWithKeyboard = false;\n\nexport type A11yViewProps = {\n id: string;\n data: Record<string, unknown>[];\n hints: DataStructureHints;\n plotLabel: string;\n locale: NavigatorLanguage['language'];\n config: PartialDataSummarizationConfig;\n // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope\n plotRef: React.RefObject<Element>;\n};\n\nexport const PlotA11yModule: React.FC<A11yViewProps> = (props) => {\n const SPlotA11yModule = Root;\n const [wasFocused, setWasFocused] = React.useState(globalWasFocused);\n const [navWithKeyboard, setNavWithKeyboard] = React.useState(globalNavWithKeyboard);\n const [plotA11yView, setPlotA11yView] = React.useState<{\n Component: React.FC<A11yViewProps>;\n } | null>(null);\n\n const hadnleHiddenElementsFocus = React.useCallback(() => {\n setWasFocused(true);\n setNavWithKeyboard(true);\n }, []);\n\n const [loading, setLoading] = React.useState(false);\n const [error, setError] = React.useState<Error | null>(null);\n\n const contextLocale = React.useContext(I18nContext);\n const locale = React.useMemo(\n () => normalizeLocale(props.locale ?? contextLocale, localizedMessages),\n [props.locale],\n );\n const t = useI18n(localizedMessages, locale);\n\n React.useEffect(() => {\n if (wasFocused) return;\n const focusListener = () => {\n globalWasFocused = true;\n setWasFocused(true);\n };\n\n props.plotRef.current?.addEventListener('focus', focusListener);\n return () => props.plotRef.current?.removeEventListener('focus', focusListener);\n }, [wasFocused, props.plotRef]);\n React.useEffect(() => {\n if (navWithKeyboard) return;\n const keyboardListener = (event: Event) => {\n const navigationKeys = [\n 'Tab',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowDown',\n 'ArrowRight',\n 'ArrowUp',\n 'ArrowLeft',\n ];\n if ('key' in event && navigationKeys.includes((event as KeyboardEvent).key)) {\n setNavWithKeyboard(true);\n globalNavWithKeyboard = true;\n }\n };\n document.body?.addEventListener('keydown', keyboardListener);\n return () => document.body?.removeEventListener('keydown', keyboardListener);\n }, [navWithKeyboard]);\n\n const shouldDisplayView = wasFocused && navWithKeyboard;\n\n React.useEffect(() => {\n if (!shouldDisplayView) return;\n if (plotA11yView) return;\n if (loading) return;\n\n setLoading(true);\n\n import('./PlotA11yView')\n .then(({ PlotA11yView }) => {\n setPlotA11yView({ Component: PlotA11yView });\n setLoading(false);\n setError(null);\n })\n .catch((error) => {\n // eslint-disable-next-line no-console\n console.error(error);\n setError(error);\n });\n }, [plotA11yView, shouldDisplayView, loading, setLoading]);\n\n if (plotA11yView) {\n return sstyled(styles)(\n <plotA11yView.Component {...props} locale={locale!} />,\n ) as React.ReactElement;\n }\n\n if (error) {\n return sstyled(styles)(\n <SPlotA11yModule render={Box} tabIndex={0} aria-live=\"assertive\">\n {t('failed')}\n </SPlotA11yModule>,\n ) as React.ReactElement;\n }\n if (loading) {\n return sstyled(styles)(\n <SPlotA11yModule render={Box} tabIndex={0} aria-live=\"polite\">\n {t('loading')}\n </SPlotA11yModule>,\n ) as React.ReactElement;\n }\n\n return sstyled(styles)(\n <SPlotA11yModule render={Box} tabIndex={0} onFocus={hadnleHiddenElementsFocus}>\n {t('disabled')}\n </SPlotA11yModule>,\n ) as React.ReactElement;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAIA;;AAJA;;AAEA;;AACA;;AAGA;;AACA;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAIA,gBAAgB,GAAG,KAAvB;AACA,IAAIC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CAtGM"}
|
|
@@ -29,6 +29,10 @@ var _summarize = require("./summarize");
|
|
|
29
29
|
|
|
30
30
|
var _flexBox = require("@semcore/flex-box");
|
|
31
31
|
|
|
32
|
+
var _i18nEnhance = require("@semcore/utils/lib/enhances/i18nEnhance");
|
|
33
|
+
|
|
34
|
+
var _intergalacticDynamicLocales = require("./translations/view/__intergalactic-dynamic-locales");
|
|
35
|
+
|
|
32
36
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
37
|
|
|
34
38
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -44,13 +48,13 @@ var styles = (
|
|
|
44
48
|
/*__reshadow_css_start__*/
|
|
45
49
|
_core.sstyled.insert(
|
|
46
50
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
51
|
+
".___SPlotA11yView_1c6lf_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral,#fff);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_1c6lf_gg_:focus,.___SPlotA11yView_1c6lf_gg_.__focus-within_1c6lf_gg_{-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_1c6lf_gg_:focus,.___SPlotA11yView_1c6lf_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_1c6lf_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x,8px);display:block}.___SPlotA11yView_1c6lf_gg_ table,.___SPlotA11yView_1c6lf_gg_ td,.___SPlotA11yView_1c6lf_gg_ th{border:1px solid var(--intergalactic-border-primary,#c4c7cf)}"
|
|
48
52
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
53
|
+
, "1c6lf_gg_")
|
|
50
54
|
/*__reshadow_css_end__*/
|
|
51
55
|
, {
|
|
52
|
-
"__SPlotA11yView": "
|
|
53
|
-
"_focus-within": "__focus-
|
|
56
|
+
"__SPlotA11yView": "___SPlotA11yView_1c6lf_gg_",
|
|
57
|
+
"_focus-within": "__focus-within_1c6lf_gg_"
|
|
54
58
|
});
|
|
55
59
|
|
|
56
60
|
var PlotA11yView = function PlotA11yView(_ref3) {
|
|
@@ -65,9 +69,10 @@ var PlotA11yView = function PlotA11yView(_ref3) {
|
|
|
65
69
|
providedConfig = _ref3.config,
|
|
66
70
|
locale = _ref3.locale;
|
|
67
71
|
var SPlotA11yView = _flexBox.Box;
|
|
72
|
+
var translations = (0, _i18nEnhance.useAsyncI18nMessages)(_intergalacticDynamicLocales.localizedMessages, locale);
|
|
68
73
|
|
|
69
74
|
var intl = _react["default"].useMemo(function () {
|
|
70
|
-
return (0, _intl.getIntl)(locale);
|
|
75
|
+
return (0, _intl.getIntl)(locale, translations);
|
|
71
76
|
}, [locale]);
|
|
72
77
|
|
|
73
78
|
var config = _react["default"].useMemo(function () {
|