intergalactic 15.111.0 → 15.112.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 +53 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/package.json +1 -1
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/package.json +1 -1
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/base-trigger/package.json +1 -1
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
- package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/button/lib/cjs/component/Button/Button.js +27 -27
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/es6/component/Button/Button.js +27 -27
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +23 -26
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/es6/Carousel.js +23 -26
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/carousel/package.json +1 -1
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/checkbox/package.json +1 -1
- package/color-picker/PaletteManager.d.ts +20 -31
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +26 -29
- package/color-picker/lib/cjs/PaletteManager.js.map +1 -1
- package/color-picker/lib/cjs/components/InputColor.js +24 -24
- package/color-picker/lib/es6/ColorPicker.js +24 -24
- package/color-picker/lib/es6/PaletteManager.js +26 -29
- package/color-picker/lib/es6/PaletteManager.js.map +1 -1
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/lib/types/PaletteManager.d.ts +20 -31
- package/color-picker/package.json +1 -1
- package/components.json +73 -73
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +13 -15
- package/counter/lib/cjs/Counter.js.map +1 -1
- package/counter/lib/es6/Counter.js +13 -15
- package/counter/lib/es6/Counter.js.map +1 -1
- package/counter/package.json +1 -1
- package/d3-chart/a11y/PlotA11yModule.d.ts +1 -1
- package/d3-chart/component/Chart/AbstractChart.d.ts +2 -1
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +11 -1
- package/d3-chart/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/d3-chart/component/ChartLegend/BaseLegend.type.d.ts +2 -1
- package/d3-chart/component/ChartLegend/LegendItem/LegendItem.type.d.ts +14 -4
- package/d3-chart/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +16 -16
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +12 -12
- package/d3-chart/lib/cjs/Reference.js +12 -12
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +21 -18
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +5 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AreaChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/BarChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/BubbleChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/CigaretteChart.js +10 -1
- package/d3-chart/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/CompactHorizontalBarChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/DonutChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/HistogramChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/LineChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/RadarChart.js +11 -0
- package/d3-chart/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/ScatterPlotChart.js +10 -0
- package/d3-chart/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/VennChart.js +11 -3
- package/d3-chart/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js +4 -10
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +7 -5
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +35 -30
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +8 -7
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/d3-chart/lib/cjs/translations/de.json +2 -1
- package/d3-chart/lib/cjs/translations/en.json +2 -1
- package/d3-chart/lib/cjs/translations/es.json +2 -1
- package/d3-chart/lib/cjs/translations/fr.json +2 -1
- package/d3-chart/lib/cjs/translations/it.json +2 -1
- package/d3-chart/lib/cjs/translations/ja.json +2 -1
- package/d3-chart/lib/cjs/translations/ko.json +2 -1
- package/d3-chart/lib/cjs/translations/nl.json +2 -1
- package/d3-chart/lib/cjs/translations/pl.json +2 -1
- package/d3-chart/lib/cjs/translations/pt.json +2 -1
- package/d3-chart/lib/cjs/translations/sv.json +2 -1
- package/d3-chart/lib/cjs/translations/tr.json +2 -1
- package/d3-chart/lib/cjs/translations/vi.json +2 -1
- package/d3-chart/lib/cjs/translations/zh.json +2 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +16 -16
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +12 -12
- package/d3-chart/lib/es6/Reference.js +12 -12
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +21 -18
- package/d3-chart/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +5 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AreaChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/BarChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/BubbleChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/CigaretteChart.js +10 -1
- package/d3-chart/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/CompactHorizontalBarChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/DonutChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/HistogramChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/LineChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/RadarChart.js +11 -0
- package/d3-chart/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/ScatterPlotChart.js +10 -0
- package/d3-chart/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/VennChart.js +11 -3
- package/d3-chart/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js +4 -10
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +7 -5
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +35 -30
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +8 -7
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/d3-chart/lib/es6/translations/de.json +2 -1
- package/d3-chart/lib/es6/translations/en.json +2 -1
- package/d3-chart/lib/es6/translations/es.json +2 -1
- package/d3-chart/lib/es6/translations/fr.json +2 -1
- package/d3-chart/lib/es6/translations/it.json +2 -1
- package/d3-chart/lib/es6/translations/ja.json +2 -1
- package/d3-chart/lib/es6/translations/ko.json +2 -1
- package/d3-chart/lib/es6/translations/nl.json +2 -1
- package/d3-chart/lib/es6/translations/pl.json +2 -1
- package/d3-chart/lib/es6/translations/pt.json +2 -1
- package/d3-chart/lib/es6/translations/sv.json +2 -1
- package/d3-chart/lib/es6/translations/tr.json +2 -1
- package/d3-chart/lib/es6/translations/vi.json +2 -1
- package/d3-chart/lib/es6/translations/zh.json +2 -1
- package/d3-chart/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- package/d3-chart/lib/types/component/Chart/AbstractChart.d.ts +2 -1
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +11 -1
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.type.d.ts +2 -1
- package/d3-chart/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +14 -4
- package/d3-chart/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/d3-chart/lib/types/translations/__intergalactic-dynamic-locales.d.ts +13 -0
- package/d3-chart/package.json +1 -1
- package/d3-chart/translations/__intergalactic-dynamic-locales.d.ts +13 -0
- package/data-table/lib/cjs/Body.js +3 -3
- package/data-table/lib/cjs/DataTable.js +36 -36
- package/data-table/lib/es6/Body.js +3 -3
- package/data-table/lib/es6/DataTable.js +36 -36
- package/data-table/package.json +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/date-picker/package.json +1 -1
- package/divider/lib/cjs/Divider.js +10 -10
- package/divider/lib/es6/Divider.js +10 -10
- package/divider/package.json +1 -1
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/dot/package.json +1 -1
- package/drag-and-drop/index.d.ts +22 -8
- package/drag-and-drop/lib/cjs/DragAndDrop.js +172 -125
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
- package/drag-and-drop/lib/cjs/translations/de.json +6 -5
- package/drag-and-drop/lib/cjs/translations/en.json +6 -5
- package/drag-and-drop/lib/cjs/translations/es.json +6 -5
- package/drag-and-drop/lib/cjs/translations/fr.json +6 -5
- package/drag-and-drop/lib/cjs/translations/it.json +6 -5
- package/drag-and-drop/lib/cjs/translations/ja.json +6 -5
- package/drag-and-drop/lib/cjs/translations/ko.json +6 -5
- package/drag-and-drop/lib/cjs/translations/nl.json +6 -5
- package/drag-and-drop/lib/cjs/translations/pl.json +6 -5
- package/drag-and-drop/lib/cjs/translations/pt.json +6 -5
- package/drag-and-drop/lib/cjs/translations/sv.json +6 -5
- package/drag-and-drop/lib/cjs/translations/tr.json +6 -5
- package/drag-and-drop/lib/cjs/translations/vi.json +6 -5
- package/drag-and-drop/lib/cjs/translations/zh.json +6 -5
- package/drag-and-drop/lib/es6/DragAndDrop.js +172 -125
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/index.d.js.map +1 -1
- package/drag-and-drop/lib/es6/translations/de.json +6 -5
- package/drag-and-drop/lib/es6/translations/en.json +6 -5
- package/drag-and-drop/lib/es6/translations/es.json +6 -5
- package/drag-and-drop/lib/es6/translations/fr.json +6 -5
- package/drag-and-drop/lib/es6/translations/it.json +6 -5
- package/drag-and-drop/lib/es6/translations/ja.json +6 -5
- package/drag-and-drop/lib/es6/translations/ko.json +6 -5
- package/drag-and-drop/lib/es6/translations/nl.json +6 -5
- package/drag-and-drop/lib/es6/translations/pl.json +6 -5
- package/drag-and-drop/lib/es6/translations/pt.json +6 -5
- package/drag-and-drop/lib/es6/translations/sv.json +6 -5
- package/drag-and-drop/lib/es6/translations/tr.json +6 -5
- package/drag-and-drop/lib/es6/translations/vi.json +6 -5
- package/drag-and-drop/lib/es6/translations/zh.json +6 -5
- package/drag-and-drop/lib/types/index.d.ts +22 -8
- package/drag-and-drop/package.json +1 -1
- package/dropdown/lib/cjs/AbstractDropdown.js +1 -5
- package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/cjs/Dropdown.js +15 -15
- package/dropdown/lib/es6/AbstractDropdown.js +1 -5
- package/dropdown/lib/es6/AbstractDropdown.js.map +1 -1
- package/dropdown/lib/es6/Dropdown.js +15 -15
- package/dropdown/package.json +1 -1
- package/dropdown-menu/index.d.ts +2 -0
- package/dropdown-menu/lib/cjs/DropdownMenu.js +83 -73
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/cjs/index.d.js.map +1 -1
- package/dropdown-menu/lib/cjs/style/dropdown-menu.shadow.css +3 -3
- package/dropdown-menu/lib/es6/DropdownMenu.js +80 -69
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/index.d.js.map +1 -1
- package/dropdown-menu/lib/es6/style/dropdown-menu.shadow.css +3 -3
- package/dropdown-menu/lib/types/index.d.ts +2 -0
- package/dropdown-menu/package.json +1 -1
- package/ellipsis/lib/cjs/Ellipsis.js +23 -19
- package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
- package/ellipsis/lib/es6/Ellipsis.js +23 -19
- package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
- package/ellipsis/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/package.json +1 -1
- package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
- package/feature-popover/lib/es6/FeaturePopover.js +11 -11
- package/feature-popover/package.json +1 -1
- package/feedback-form/component/feedback-rating/FeedbackRating.d.ts +5 -11
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.d.ts +5 -11
- package/feedback-form/package.json +1 -1
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flags/package.json +1 -1
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/package.json +1 -1
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/format-text/package.json +1 -1
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/fullscreen-modal/package.json +1 -1
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/grid/package.json +1 -1
- package/i18n-unplugin/package.json +1 -1
- package/icon/Tack/l/index.d.ts +6 -0
- package/icon/Tack/l/index.js +38 -0
- package/icon/Tack/l/index.mjs +26 -0
- package/icon/Tack/m/index.d.ts +6 -0
- package/icon/Tack/m/index.js +38 -0
- package/icon/Tack/m/index.mjs +26 -0
- package/icon/TackNo/l/index.d.ts +6 -0
- package/icon/TackNo/l/index.js +41 -0
- package/icon/TackNo/l/index.mjs +29 -0
- package/icon/TackNo/m/index.d.ts +6 -0
- package/icon/TackNo/m/index.js +41 -0
- package/icon/TackNo/m/index.mjs +29 -0
- package/icon/Yext/l/index.d.ts +6 -0
- package/icon/Yext/l/index.js +52 -0
- package/icon/Yext/l/index.mjs +40 -0
- package/icon/Yext/m/index.d.ts +6 -0
- package/icon/Yext/m/index.js +52 -0
- package/icon/Yext/m/index.mjs +40 -0
- package/icon/color/BirdeyeColored/l/index.d.ts +6 -0
- package/icon/color/BirdeyeColored/l/index.js +39 -0
- package/icon/color/BirdeyeColored/l/index.mjs +27 -0
- package/icon/color/BirdeyeColored/m/index.d.ts +6 -0
- package/icon/color/BirdeyeColored/m/index.js +39 -0
- package/icon/color/BirdeyeColored/m/index.mjs +27 -0
- package/icon/color/CallTrackingMetricsColored/l/index.d.ts +6 -0
- package/icon/color/CallTrackingMetricsColored/l/index.js +43 -0
- package/icon/color/CallTrackingMetricsColored/l/index.mjs +31 -0
- package/icon/color/CallTrackingMetricsColored/m/index.d.ts +6 -0
- package/icon/color/CallTrackingMetricsColored/m/index.js +43 -0
- package/icon/color/CallTrackingMetricsColored/m/index.mjs +31 -0
- package/icon/color/CampaignMonitorColored/l/index.d.ts +6 -0
- package/icon/color/CampaignMonitorColored/l/index.js +37 -0
- package/icon/color/CampaignMonitorColored/l/index.mjs +25 -0
- package/icon/color/CampaignMonitorColored/m/index.d.ts +6 -0
- package/icon/color/CampaignMonitorColored/m/index.js +37 -0
- package/icon/color/CampaignMonitorColored/m/index.mjs +25 -0
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/ConstantContactColored/l/index.d.ts +6 -0
- package/icon/color/ConstantContactColored/l/index.js +45 -0
- package/icon/color/ConstantContactColored/l/index.mjs +33 -0
- package/icon/color/ConstantContactColored/m/index.d.ts +6 -0
- package/icon/color/ConstantContactColored/m/index.js +45 -0
- package/icon/color/ConstantContactColored/m/index.mjs +33 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.d.ts +6 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.js +53 -0
- package/icon/color/GoogleDisplayVideoAds/l/index.mjs +41 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.d.ts +6 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.js +53 -0
- package/icon/color/GoogleDisplayVideoAds/m/index.mjs +41 -0
- package/icon/color/InstagramColored/l/index.d.ts +6 -0
- package/icon/color/InstagramColored/l/index.js +188 -0
- package/icon/color/InstagramColored/l/index.mjs +176 -0
- package/icon/color/InstagramColored/m/index.d.ts +6 -0
- package/icon/color/InstagramColored/m/index.js +188 -0
- package/icon/color/InstagramColored/m/index.mjs +176 -0
- package/icon/color/MetaColored/l/index.d.ts +6 -0
- package/icon/color/MetaColored/l/index.js +75 -0
- package/icon/color/MetaColored/l/index.mjs +63 -0
- package/icon/color/MetaColored/m/index.d.ts +6 -0
- package/icon/color/MetaColored/m/index.js +83 -0
- package/icon/color/MetaColored/m/index.mjs +71 -0
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/color/PipedriveColored/l/index.d.ts +6 -0
- package/icon/color/PipedriveColored/l/index.js +43 -0
- package/icon/color/PipedriveColored/l/index.mjs +31 -0
- package/icon/color/PipedriveColored/m/index.d.ts +6 -0
- package/icon/color/PipedriveColored/m/index.js +43 -0
- package/icon/color/PipedriveColored/m/index.mjs +31 -0
- package/icon/color/ShopifyColored/l/index.d.ts +6 -0
- package/icon/color/ShopifyColored/l/index.js +45 -0
- package/icon/color/ShopifyColored/l/index.mjs +33 -0
- package/icon/color/ShopifyColored/m/index.d.ts +6 -0
- package/icon/color/ShopifyColored/m/index.js +45 -0
- package/icon/color/ShopifyColored/m/index.mjs +33 -0
- package/icon/color/WhatConvertsColored/l/index.d.ts +6 -0
- package/icon/color/WhatConvertsColored/l/index.js +39 -0
- package/icon/color/WhatConvertsColored/l/index.mjs +27 -0
- package/icon/color/WhatConvertsColored/m/index.d.ts +6 -0
- package/icon/color/WhatConvertsColored/m/index.js +39 -0
- package/icon/color/WhatConvertsColored/m/index.mjs +27 -0
- package/icon/color/WooCommerceColored/l/index.d.ts +6 -0
- package/icon/color/WooCommerceColored/l/index.js +43 -0
- package/icon/color/WooCommerceColored/l/index.mjs +31 -0
- package/icon/color/WooCommerceColored/m/index.d.ts +6 -0
- package/icon/color/WooCommerceColored/m/index.js +43 -0
- package/icon/color/WooCommerceColored/m/index.mjs +31 -0
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/package.json +1 -1
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/illustration/package.json +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-edit/package.json +1 -1
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/inline-input/package.json +1 -1
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input/package.json +1 -1
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/cjs/InputMask.js.map +1 -1
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js.map +1 -1
- package/input-mask/package.json +1 -1
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-number/package.json +1 -1
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/input-tags/package.json +1 -1
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/link/package.json +1 -1
- package/mini-chart/component/trend/Trend.d.ts +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Donut.js.map +1 -1
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/score/Line.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Bar.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js.map +1 -1
- package/mini-chart/lib/cjs/component/trend/Trend.js +1 -1
- package/mini-chart/lib/cjs/component/trend/Trend.js.map +1 -1
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Donut.js.map +1 -1
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/score/Line.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Bar.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js.map +1 -1
- package/mini-chart/lib/es6/component/trend/Trend.js +1 -1
- package/mini-chart/lib/es6/component/trend/Trend.js.map +1 -1
- package/mini-chart/lib/types/component/trend/Trend.d.ts +1 -1
- package/mini-chart/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/package.json +1 -1
- package/neighbor-location/package.json +1 -1
- package/notice/lib/cjs/Notice.js +14 -14
- package/notice/lib/es6/Notice.js +14 -14
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
- package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
- package/notice-bubble/package.json +1 -1
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/notice-global/package.json +1 -1
- package/outside-click/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +11 -10
- package/pagination/lib/cjs/Pagination.js.map +1 -1
- package/pagination/lib/es6/Pagination.js +11 -10
- package/pagination/lib/es6/Pagination.js.map +1 -1
- package/pagination/package.json +1 -1
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/pills/package.json +1 -1
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/popper/package.json +1 -1
- package/portal/package.json +1 -1
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/product-head/package.json +1 -1
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/progress-bar/package.json +1 -1
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/radio/package.json +1 -1
- package/scroll-area/lib/cjs/ScrollArea.js +21 -21
- package/scroll-area/lib/cjs/ScrollBar.js +6 -6
- package/scroll-area/lib/es6/ScrollArea.js +21 -21
- package/scroll-area/lib/es6/ScrollBar.js +6 -6
- package/scroll-area/package.json +1 -1
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +16 -16
- package/side-panel/lib/es6/SidePanel.js +16 -16
- package/side-panel/package.json +1 -1
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/skeleton/package.json +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/slider/package.json +1 -1
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin/package.json +1 -1
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/spin-container/package.json +1 -1
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/sticky/package.json +1 -1
- package/switch/lib/cjs/Switch.js +23 -30
- package/switch/lib/cjs/Switch.js.map +1 -1
- package/switch/lib/es6/Switch.js +23 -30
- package/switch/lib/es6/Switch.js.map +1 -1
- package/switch/package.json +1 -1
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-line/package.json +1 -1
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tab-panel/package.json +1 -1
- package/tag/lib/cjs/Tag.js +23 -23
- package/tag/lib/es6/Tag.js +23 -23
- package/tag/package.json +1 -1
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/textarea/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/package.json +1 -1
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/package.json +1 -1
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/package.json +1 -1
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/core/types/Component.d.ts +23 -2
- package/utils/lib/core/types/Component.js +1 -1
- package/utils/lib/core/types/Component.js.map +1 -1
- package/utils/lib/core/types/Component.mjs +1 -1
- package/utils/lib/core/types/Component.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/widget-empty/package.json +1 -1
- package/wizard/lib/cjs/Wizard.js +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/package.json +1 -1
package/d3-chart/lib/cjs/Plot.js
CHANGED
@@ -25,9 +25,9 @@ var _PlotA11yModule = require("./a11y/PlotA11yModule");
|
|
25
25
|
var _hints = require("./a11y/hints");
|
26
26
|
var _resolveColorEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/resolveColorEnhance"));
|
27
27
|
/*__reshadow-styles__:"./style/plot.shadow.css"*/
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
29
|
-
"__SPlot": "
|
30
|
-
"_keyboardFocused": "
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlot_axwzv_gg_{overflow:hidden}.___SPlot_axwzv_gg_:active,.___SPlot_axwzv_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_axwzv_gg_.__keyboardFocused_axwzv_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "axwzv_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__SPlot": "___SPlot_axwzv_gg_",
|
30
|
+
"_keyboardFocused": "__keyboardFocused_axwzv_gg_"
|
31
31
|
});
|
32
32
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
33
33
|
(0, _inherits2["default"])(PlotRoot, _Component);
|
@@ -30,25 +30,25 @@ var _utils = require("./utils");
|
|
30
30
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
31
31
|
var _Pattern = require("./Pattern");
|
32
32
|
/*__reshadow-styles__:"./style/radar.shadow.css"*/
|
33
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
34
|
-
"__SAxis": "
|
35
|
-
"__SAxisLine": "
|
36
|
-
"__SAxisTick": "
|
37
|
-
"_active": "
|
38
|
-
"__SAxisLabel": "
|
39
|
-
"_xDirection": "
|
40
|
-
"--xDirection": "--
|
41
|
-
"_yDirection": "
|
42
|
-
"--yDirection": "--
|
43
|
-
"__SPolygon": "
|
44
|
-
"_color": "
|
45
|
-
"--color": "--
|
46
|
-
"_pattern": "
|
47
|
-
"--pattern": "--
|
48
|
-
"__SPolygonDot": "
|
49
|
-
"_transparent": "
|
50
|
-
"__SPolygonLine": "
|
51
|
-
"__SPieRect": "
|
33
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SAxisLine_u5a31_gg_,.___SAxisTick_u5a31_gg_,.___SAxis_u5a31_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_u5a31_gg_,.___SAxisTick_u5a31_gg_{stroke-dasharray:2}.___SAxisLine_u5a31_gg_.__active_u5a31_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_u5a31_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_u5a31_gg_.__xDirection_u5a31_gg_{text-anchor:var(--xDirection_u5a31)}.___SAxisLabel_u5a31_gg_.__yDirection_u5a31_gg_{dominant-baseline:var(--yDirection_u5a31)}.___SPolygonDot_u5a31_gg_,.___SPolygon_u5a31_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_u5a31_gg_{opacity:.2}.___SPolygon_u5a31_gg_.__color_u5a31_gg_{fill:var(--color_u5a31)}.___SPolygon_u5a31_gg_.__pattern_u5a31_gg_.__color_u5a31_gg_{fill:var(--pattern_u5a31);stroke:var(--color_u5a31);stroke-width:1px}.___SPolygonDot_u5a31_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_u5a31_gg_.__transparent_u5a31_gg_{opacity:.3}.___SPolygonDot_u5a31_gg_.__color_u5a31_gg_{fill:var(--color_u5a31)}.___SPolygonLine_u5a31_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_u5a31_gg_.__transparent_u5a31_gg_{opacity:.3}.___SPolygonLine_u5a31_gg_.__color_u5a31_gg_{stroke:var(--color_u5a31)}.___SPieRect_u5a31_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "u5a31_gg_") /*__reshadow_css_end__*/, {
|
34
|
+
"__SAxis": "___SAxis_u5a31_gg_",
|
35
|
+
"__SAxisLine": "___SAxisLine_u5a31_gg_",
|
36
|
+
"__SAxisTick": "___SAxisTick_u5a31_gg_",
|
37
|
+
"_active": "__active_u5a31_gg_",
|
38
|
+
"__SAxisLabel": "___SAxisLabel_u5a31_gg_",
|
39
|
+
"_xDirection": "__xDirection_u5a31_gg_",
|
40
|
+
"--xDirection": "--xDirection_u5a31",
|
41
|
+
"_yDirection": "__yDirection_u5a31_gg_",
|
42
|
+
"--yDirection": "--yDirection_u5a31",
|
43
|
+
"__SPolygon": "___SPolygon_u5a31_gg_",
|
44
|
+
"_color": "__color_u5a31_gg_",
|
45
|
+
"--color": "--color_u5a31",
|
46
|
+
"_pattern": "__pattern_u5a31_gg_",
|
47
|
+
"--pattern": "--pattern_u5a31",
|
48
|
+
"__SPolygonDot": "___SPolygonDot_u5a31_gg_",
|
49
|
+
"_transparent": "__transparent_u5a31_gg_",
|
50
|
+
"__SPolygonLine": "___SPolygonLine_u5a31_gg_",
|
51
|
+
"__SPieRect": "___SPieRect_u5a31_gg_"
|
52
52
|
});
|
53
53
|
var clampAngle = function clampAngle(angle) {
|
54
54
|
angle = angle % (2 * Math.PI);
|
@@ -28,18 +28,18 @@ var _utils = require("./utils");
|
|
28
28
|
var _Pattern = require("./Pattern");
|
29
29
|
var _excluded = ["data"];
|
30
30
|
/*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
31
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
32
|
-
"__SRadian": "
|
33
|
-
"__SLine": "
|
34
|
-
"_stroke": "
|
35
|
-
"--stroke": "--
|
36
|
-
"_transparent": "
|
37
|
-
"__SCap": "
|
38
|
-
"_pattern": "
|
39
|
-
"__SIcon": "
|
40
|
-
"__SLabel": "
|
41
|
-
"--color": "--
|
42
|
-
"__SLineCap": "
|
31
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SRadian_rwe3h_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_rwe3h_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_rwe3h_gg_.__stroke_rwe3h_gg_{stroke:var(--stroke_rwe3h)}.___SLine_rwe3h_gg_.__transparent_rwe3h_gg_{opacity:.3}.___SCap_rwe3h_gg_{transition:r .1s}.___SCap_rwe3h_gg_.__pattern_rwe3h_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_rwe3h_gg_.__transparent_rwe3h_gg_,.___SIcon_rwe3h_gg_.__transparent_rwe3h_gg_,.___SLabel_rwe3h_gg_.__transparent_rwe3h_gg_{opacity:.3}.___SLabel_rwe3h_gg_{fill:var(--color_rwe3h)}@media (hover:hover){.___SRadian_rwe3h_gg_:hover .___SLabel_rwe3h_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_rwe3h_gg_{transition:none}}" /*__inner_css_end__*/, "rwe3h_gg_") /*__reshadow_css_end__*/, {
|
32
|
+
"__SRadian": "___SRadian_rwe3h_gg_",
|
33
|
+
"__SLine": "___SLine_rwe3h_gg_",
|
34
|
+
"_stroke": "__stroke_rwe3h_gg_",
|
35
|
+
"--stroke": "--stroke_rwe3h",
|
36
|
+
"_transparent": "__transparent_rwe3h_gg_",
|
37
|
+
"__SCap": "___SCap_rwe3h_gg_",
|
38
|
+
"_pattern": "__pattern_rwe3h_gg_",
|
39
|
+
"__SIcon": "___SIcon_rwe3h_gg_",
|
40
|
+
"__SLabel": "___SLabel_rwe3h_gg_",
|
41
|
+
"--color": "--color_rwe3h",
|
42
|
+
"__SLineCap": "___SLineCap_rwe3h_gg_"
|
43
43
|
});
|
44
44
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
45
45
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
@@ -19,18 +19,18 @@ var _uniqueID = _interopRequireDefault(require("intergalactic/utils/lib/uniqueID
|
|
19
19
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
20
20
|
var _utils = require("./utils");
|
21
21
|
/*__reshadow-styles__:"./style/reference.shadow.css"*/
|
22
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
23
|
-
"__SReferenceLine": "
|
24
|
-
"__STitle": "
|
25
|
-
"--transform-origin": "--transform-
|
26
|
-
"_position_top": "
|
27
|
-
"_position_bottom": "
|
28
|
-
"_position_right": "
|
29
|
-
"_position_left": "
|
30
|
-
"__SBackground": "
|
31
|
-
"__SStripes": "
|
32
|
-
"--fill": "--
|
33
|
-
"__SStripesPatternPath": "
|
22
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_pndv3_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_pndv3_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_pndv3)}.___STitle_pndv3_gg_._position_top_pndv3_gg_{text-anchor:middle}.___STitle_pndv3_gg_._position_bottom_pndv3_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_pndv3_gg_._position_left_pndv3_gg_,.___STitle_pndv3_gg_._position_right_pndv3_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_pndv3_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_pndv3_gg_{fill:var(--fill_pndv3)}.___SStripesPatternPath_pndv3_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}" /*__inner_css_end__*/, "pndv3_gg_") /*__reshadow_css_end__*/, {
|
23
|
+
"__SReferenceLine": "___SReferenceLine_pndv3_gg_",
|
24
|
+
"__STitle": "___STitle_pndv3_gg_",
|
25
|
+
"--transform-origin": "--transform-origin_pndv3",
|
26
|
+
"_position_top": "_position_top_pndv3_gg_",
|
27
|
+
"_position_bottom": "_position_bottom_pndv3_gg_",
|
28
|
+
"_position_right": "_position_right_pndv3_gg_",
|
29
|
+
"_position_left": "_position_left_pndv3_gg_",
|
30
|
+
"__SBackground": "___SBackground_pndv3_gg_",
|
31
|
+
"__SStripes": "___SStripes_pndv3_gg_",
|
32
|
+
"--fill": "--fill_pndv3",
|
33
|
+
"__SStripesPatternPath": "___SStripesPatternPath_pndv3_gg_"
|
34
34
|
});
|
35
35
|
var side2direction = {
|
36
36
|
left: 'vertical',
|
@@ -24,15 +24,15 @@ var _utils = require("./utils");
|
|
24
24
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
25
25
|
var _Pattern = require("./Pattern");
|
26
26
|
/*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SScatterPlot": "
|
29
|
-
"_color": "
|
30
|
-
"--color": "--
|
31
|
-
"_pattern": "
|
32
|
-
"--pattern": "--
|
33
|
-
"_transparent": "
|
34
|
-
"__SValue": "
|
35
|
-
"--duration": "--
|
27
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1fbca_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1fbca);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1fbca_gg_:hover{opacity:.8}}.___SScatterPlot_1fbca_gg_.__color_1fbca_gg_{fill:var(--color_1fbca)}.___SScatterPlot_1fbca_gg_.__pattern_1fbca_gg_.__color_1fbca_gg_{fill:var(--pattern_1fbca);stroke:var(--color_1fbca);stroke-width:1px}.___SScatterPlot_1fbca_gg_.__transparent_1fbca_gg_{opacity:.3}.___SValue_1fbca_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1fbca_gg_.__color_1fbca_gg_{stroke:var(--color_1fbca)}.___SValue_1fbca_gg_.__transparent_1fbca_gg_{opacity:.3}" /*__inner_css_end__*/, "1fbca_gg_") /*__reshadow_css_end__*/, {
|
28
|
+
"__SScatterPlot": "___SScatterPlot_1fbca_gg_",
|
29
|
+
"_color": "__color_1fbca_gg_",
|
30
|
+
"--color": "--color_1fbca",
|
31
|
+
"_pattern": "__pattern_1fbca_gg_",
|
32
|
+
"--pattern": "--pattern_1fbca",
|
33
|
+
"_transparent": "__transparent_1fbca_gg_",
|
34
|
+
"__SValue": "___SValue_1fbca_gg_",
|
35
|
+
"--duration": "--duration_1fbca"
|
36
36
|
});
|
37
37
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
38
38
|
(0, _inherits2["default"])(ScatterPlotRoot, _Component);
|
@@ -25,15 +25,15 @@ var _useColorResolver = require("intergalactic/utils/lib/use/useColorResolver");
|
|
25
25
|
var _Pattern = require("./Pattern");
|
26
26
|
var _excluded = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"];
|
27
27
|
/*__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
29
|
-
"__STooltip": "
|
30
|
-
"__STitle": "
|
31
|
-
"__SDotGroup": "
|
32
|
-
"__SDot": "
|
33
|
-
"__SDotCircle": "
|
34
|
-
"_color": "
|
35
|
-
"--color": "--
|
36
|
-
"__SFooter": "
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___STooltip_6mzzo_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_6mzzo_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_6mzzo_gg_{display:flex;align-items:center}.___SDot_6mzzo_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_6mzzo_gg_.__color_6mzzo_gg_{background-color:var(--color_6mzzo);width:8px;height:8px;border-radius:50%}.___SFooter_6mzzo_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__*/, "6mzzo_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__STooltip": "___STooltip_6mzzo_gg_",
|
30
|
+
"__STitle": "___STitle_6mzzo_gg_",
|
31
|
+
"__SDotGroup": "___SDotGroup_6mzzo_gg_",
|
32
|
+
"__SDot": "___SDot_6mzzo_gg_",
|
33
|
+
"__SDotCircle": "___SDotCircle_6mzzo_gg_",
|
34
|
+
"_color": "__color_6mzzo_gg_",
|
35
|
+
"--color": "--color_6mzzo",
|
36
|
+
"__SFooter": "___SFooter_6mzzo_gg_"
|
37
37
|
});
|
38
38
|
/**
|
39
39
|
* `TooltipDotRenderContext` is a hack to bypass problem that getDotProps doesn't work for D3 tooltip.
|
package/d3-chart/lib/cjs/Venn.js
CHANGED
@@ -26,15 +26,15 @@ var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
26
26
|
var _Pattern = require("./Pattern");
|
27
27
|
var _uniqueID = _interopRequireDefault(require("intergalactic/utils/lib/uniqueID"));
|
28
28
|
/*__reshadow-styles__:"./style/venn.shadow.css"*/
|
29
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
30
|
-
"__SCircle": "
|
31
|
-
"_color": "
|
32
|
-
"--color": "--
|
33
|
-
"_transparent": "
|
34
|
-
"__SIntersection": "
|
35
|
-
"--duration": "--
|
36
|
-
"_pattern": "
|
37
|
-
"--pattern": "--
|
29
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCircle_9ke4h_gg_,.___SIntersection_9ke4h_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_9ke4h_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_9ke4h);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_9ke4h_gg_:hover{fill-opacity:.7}}.___SCircle_9ke4h_gg_.__color_9ke4h_gg_{fill:var(--color_9ke4h)}.___SCircle_9ke4h_gg_.__pattern_9ke4h_gg_.__color_9ke4h_gg_{fill:var(--pattern_9ke4h);fill-opacity:.7;stroke:var(--color_9ke4h);stroke-width:1px}@media (hover:hover){.___SCircle_9ke4h_gg_.__pattern_9ke4h_gg_.__color_9ke4h_gg_:hover{fill-opacity:.85}}.___SCircle_9ke4h_gg_.__transparent_9ke4h_gg_{opacity:.3}.___SIntersection_9ke4h_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_9ke4h_gg_:hover{fill-opacity:.1}}.___SIntersection_9ke4h_gg_.__transparent_9ke4h_gg_{opacity:.3}" /*__inner_css_end__*/, "9ke4h_gg_") /*__reshadow_css_end__*/, {
|
30
|
+
"__SCircle": "___SCircle_9ke4h_gg_",
|
31
|
+
"_color": "__color_9ke4h_gg_",
|
32
|
+
"--color": "--color_9ke4h",
|
33
|
+
"_transparent": "__transparent_9ke4h_gg_",
|
34
|
+
"__SIntersection": "___SIntersection_9ke4h_gg_",
|
35
|
+
"--duration": "--duration_9ke4h",
|
36
|
+
"_pattern": "__pattern_9ke4h_gg_",
|
37
|
+
"--pattern": "--pattern_9ke4h"
|
38
38
|
});
|
39
39
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
40
40
|
(0, _inherits2["default"])(VennRoot, _Component);
|
@@ -17,8 +17,8 @@ var _intergalacticDynamicLocales = require("./translations/module/__intergalacti
|
|
17
17
|
var _WithI18n = require("intergalactic/utils/lib/enhances/WithI18n");
|
18
18
|
var _flexBox = require("intergalactic/flex-box");
|
19
19
|
/*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
20
|
-
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
21
|
-
"__SPlotA11yModule": "
|
20
|
+
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1rqzh_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1rqzh_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1rqzh_gg_") /*__reshadow_css_end__*/, {
|
21
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1rqzh_gg_"
|
22
22
|
});
|
23
23
|
var globalWasFocused = false;
|
24
24
|
var globalNavWithKeyboard = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PlotA11yModule.js","names":["_core","require","_react","_interopRequireDefault","_locale","_intergalacticDynamicLocales","_WithI18n","_flexBox","styles","_index","sstyled","insert","globalWasFocused","globalNavWithKeyboard","PlotA11yModule","props","_ref","arguments[0]","_ref5","SPlotA11yModule","Box","_React$useState","React","useState","_React$useState2","_slicedToArray2","wasFocused","setWasFocused","_React$useState3","_React$useState4","navWithKeyboard","setNavWithKeyboard","_React$useState5","_React$useState6","plotA11yView","setPlotA11yView","hadnleHiddenElementsFocus","useCallback","_React$useState7","_React$useState8","loading","setLoading","_React$useState9","_React$useState10","error","setError","contextLocale","useContext","I18nContext","locale","useMemo","_props$locale","normalizeLocale","localizedMessages","t","useI18n","useEffect","_props$plotRef$curren","focusListener","plotRef","current","addEventListener","_props$plotRef$curren2","removeEventListener","_document$body","keyboardListener","event","navigationKeys","includes","key","document","body","_document$body2","shouldDisplayView","Promise","resolve","then","_interopRequireWildcard2","_ref6","PlotA11yView","Component","console","_ref2","createElement","_extends2","_ref3","cn","_objectSpread2","assignProps","_ref4","exports"],"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\n plotRef: React.RefObject<
|
1
|
+
{"version":3,"file":"PlotA11yModule.js","names":["_core","require","_react","_interopRequireDefault","_locale","_intergalacticDynamicLocales","_WithI18n","_flexBox","styles","_index","sstyled","insert","globalWasFocused","globalNavWithKeyboard","PlotA11yModule","props","_ref","arguments[0]","_ref5","SPlotA11yModule","Box","_React$useState","React","useState","_React$useState2","_slicedToArray2","wasFocused","setWasFocused","_React$useState3","_React$useState4","navWithKeyboard","setNavWithKeyboard","_React$useState5","_React$useState6","plotA11yView","setPlotA11yView","hadnleHiddenElementsFocus","useCallback","_React$useState7","_React$useState8","loading","setLoading","_React$useState9","_React$useState10","error","setError","contextLocale","useContext","I18nContext","locale","useMemo","_props$locale","normalizeLocale","localizedMessages","t","useI18n","useEffect","_props$plotRef$curren","focusListener","plotRef","current","addEventListener","_props$plotRef$curren2","removeEventListener","_document$body","keyboardListener","event","navigationKeys","includes","key","document","body","_document$body2","shouldDisplayView","Promise","resolve","then","_interopRequireWildcard2","_ref6","PlotA11yView","Component","console","_ref2","createElement","_extends2","_ref3","cn","_objectSpread2","assignProps","_ref4","exports"],"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\n plotRef: React.RefObject<HTMLElement>;\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 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":";;;;;;;;;;;;A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AAM,CAAC,eACpBN,MAAA,YAAAiF,aAAA,CAAChE,eAAe,EAAAD,KAAA,CAAAoE,EAAA,wBAAAC,cAAA,qBAAAvF,KAAA,CAAAwF,WAAA;IAAA,YAAwB,CAAC;IAAA,WAAWpD;EAAyB,GAAApB,IAAA,KAC1EsC,CAAC,CAAC,UAAU,CAAC,CACE;AAEtB,CAAC;AAACoC,OAAA,CAAA5E,cAAA,GAAAA,cAAA"}
|
@@ -19,8 +19,8 @@ var _i18nEnhance = require("intergalactic/utils/lib/enhances/i18nEnhance");
|
|
19
19
|
var _intergalacticDynamicLocales = require("./translations/view/__intergalactic-dynamic-locales");
|
20
20
|
var _DataAccessibilityTable = require("./DataAccessibilityTable");
|
21
21
|
/*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
22
|
-
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
23
|
-
"__SPlotA11yView": "
|
22
|
+
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_1spbs_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_1spbs_gg_:focus,.___SPlotA11yView_1spbs_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_1spbs_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1spbs_gg_ table,.___SPlotA11yView_1spbs_gg_ td,.___SPlotA11yView_1spbs_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "1spbs_gg_") /*__reshadow_css_end__*/, {
|
23
|
+
"__SPlotA11yView": "___SPlotA11yView_1spbs_gg_"
|
24
24
|
});
|
25
25
|
var PlotA11yView = function PlotA11yView(_ref3) {
|
26
26
|
var _ref = arguments[0],
|
@@ -67,24 +67,28 @@ var PlotA11yView = function PlotA11yView(_ref3) {
|
|
67
67
|
setGeneratingSummary(false);
|
68
68
|
}, 0);
|
69
69
|
}, [providedData, hints, config, locale, translations, _intergalacticDynamicLocales.localizedMessages]);
|
70
|
-
var
|
70
|
+
var handleClose = _react["default"].useCallback(function () {
|
71
|
+
var _plotRef$current;
|
72
|
+
(_plotRef$current = plotRef.current) === null || _plotRef$current === void 0 ? void 0 : _plotRef$current.focus();
|
73
|
+
}, []);
|
74
|
+
var handleSkip = _react["default"].useCallback(function (event) {
|
71
75
|
var _heavyFindNextFocusab;
|
76
|
+
event.preventDefault();
|
72
77
|
if (!plotRef.current) return;
|
73
78
|
(_heavyFindNextFocusab = (0, _focus.heavyFindNextFocusableElement)(plotRef.current)) === null || _heavyFindNextFocusab === void 0 ? void 0 : _heavyFindNextFocusab.focus();
|
74
79
|
}, []);
|
75
80
|
var handleSkipKeyboard = _react["default"].useCallback(function (event) {
|
76
81
|
if (!(event.key === 'Enter' || event.key === ' ')) return;
|
77
|
-
event
|
78
|
-
handleSkip();
|
82
|
+
handleSkip(event);
|
79
83
|
}, [handleSkip]);
|
80
|
-
var handleGoToTable = _react["default"].useCallback(function () {
|
84
|
+
var handleGoToTable = _react["default"].useCallback(function (event) {
|
81
85
|
var _dataTableRef$current;
|
86
|
+
event.preventDefault();
|
82
87
|
(_dataTableRef$current = dataTableRef.current) === null || _dataTableRef$current === void 0 ? void 0 : _dataTableRef$current.focus();
|
83
88
|
}, []);
|
84
89
|
var handleGoToTableKeyboard = _react["default"].useCallback(function (event) {
|
85
90
|
if (!(event.key === 'Enter' || event.key === ' ')) return;
|
86
|
-
event
|
87
|
-
handleGoToTable();
|
91
|
+
handleGoToTable(event);
|
88
92
|
}, [handleGoToTable]);
|
89
93
|
var texts = _react["default"].useMemo(function () {
|
90
94
|
return {
|
@@ -118,26 +122,25 @@ var PlotA11yView = function PlotA11yView(_ref3) {
|
|
118
122
|
var dataTableRef = _react["default"].useRef(null);
|
119
123
|
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPlotA11yView, _ref2.cn("SPlotA11yView", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
120
124
|
"tabIndex": 0,
|
121
|
-
"aria-label": texts.label
|
122
|
-
|
123
|
-
"
|
124
|
-
|
125
|
+
"aria-label": texts.label,
|
126
|
+
"role": 'dialog',
|
127
|
+
"__excludeProps": ['data']
|
128
|
+
}, _ref))), /*#__PURE__*/_react["default"].createElement("button", _ref2.cn("button", {
|
129
|
+
"type": 'button',
|
130
|
+
"onClick": handleClose
|
125
131
|
}), texts.close), /*#__PURE__*/_react["default"].createElement("a", _ref2.cn("a", {
|
126
|
-
"
|
127
|
-
"tabIndex": 0,
|
132
|
+
"href": '#',
|
128
133
|
"onKeyDown": handleSkipKeyboard,
|
129
134
|
"onClick": handleSkip
|
130
135
|
}), texts.skipPlot), /*#__PURE__*/_react["default"].createElement("a", _ref2.cn("a", {
|
131
|
-
"
|
132
|
-
"tabIndex": 0,
|
136
|
+
"href": "#".concat(id, "-data-table"),
|
133
137
|
"onKeyDown": handleGoToTableKeyboard,
|
134
138
|
"onClick": handleGoToTable
|
135
139
|
}), texts.goToTable), /*#__PURE__*/_react["default"].createElement("strong", _ref2.cn("strong", {}), /*#__PURE__*/_react["default"].createElement("label", _ref2.cn("label", {
|
136
140
|
"htmlFor": "".concat(id, "-data-summary")
|
137
141
|
}), texts.summary)), /*#__PURE__*/_react["default"].createElement("div", _ref2.cn("div", {
|
138
142
|
"id": "".concat(id, "-data-summary"),
|
139
|
-
"aria-busy": generatingSummary
|
140
|
-
"tabIndex": 0
|
143
|
+
"aria-busy": generatingSummary
|
141
144
|
}), generatingSummary ? texts.summaryPlaceholder : summary), /*#__PURE__*/_react["default"].createElement("strong", _ref2.cn("strong", {}), /*#__PURE__*/_react["default"].createElement("label", _ref2.cn("label", {
|
142
145
|
"htmlFor": "".concat(id, "-data-table")
|
143
146
|
}), texts.table)), /*#__PURE__*/_react["default"].createElement(_DataAccessibilityTable.DataAccessibilityTable, _ref2.cn("DataAccessibilityTable", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PlotA11yView.js","names":["_core","require","_react","_interopRequireDefault","_focus","_hints","_intl","_summarize","_flexBox","_i18nEnhance","_intergalacticDynamicLocales","_DataAccessibilityTable","styles","_index","sstyled","insert","PlotA11yView","_ref3","_ref","arguments[0]","_ref2","id","providedData","data","hints","plotLabel","plotRef","providedConfig","config","locale","SPlotA11yView","Box","translations","useAsyncI18nMessages","localizedMessages","intl","React","useMemo","getIntl","makeDataSummarizationConfig","Array","isArray","_React$useState","useState","_React$useState2","_slicedToArray2","summary","setSummary","_React$useState3","_React$useState4","generatingSummary","setGeneratingSummary","useEffect","disable","override","setTimeout","summarize","handleSkip","useCallback","_heavyFindNextFocusab","current","heavyFindNextFocusableElement","focus","handleSkipKeyboard","event","key","preventDefault","handleGoToTable","_dataTableRef$current","dataTableRef","handleGoToTableKeyboard","texts","label","formatMessage","close","skipPlot","goToTable","summaryPlaceholder","table","useRef","createElement","cn","_objectSpread2","assignProps","concat","DataAccessibilityTable","exports"],"sources":["../../../src/a11y/PlotA11yView.tsx"],"sourcesContent":["import React from 'react';\nimport { heavyFindNextFocusableElement } from './focus';\nimport { makeDataSummarizationConfig } from './hints';\nimport type { A11yViewProps } from './PlotA11yModule';\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';\nimport { DataAccessibilityTable } from './DataAccessibilityTable';\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\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 <DataAccessibilityTable\n id={id}\n dataTableRef={dataTableRef}\n data={data}\n hints={hints}\n config={config}\n intl={intl}\n />\n </SPlotA11yView>,\n ) as React.ReactElement;\n};\n"],"mappings":";;;;;;;;;;AAMA,IAAAA,KAAA,GAAAC,OAAA;AANA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAGA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,4BAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AAAkE;AA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KAAA,CAAA6D,EAAA;IAAA,SAAAG,MAAA,CAAY/D,EAAE;IAAA,aAA4B6B,iBAAiB;IAAA,YAAY;EAAC,IACrEA,iBAAiB,GAAGqB,KAAK,CAACM,kBAAkB,GAAG/B,OAAO,CACnD,eACN5C,MAAA,YAAA8E,aAAA,WAAA5D,KAAA,CAAA6D,EAAA,6BACE/E,MAAA,YAAA8E,aAAA,UAAA5D,KAAA,CAAA6D,EAAA;IAAA,cAAAG,MAAA,CAAmB/D,EAAE;EAAA,IAAgBkD,KAAK,CAACO,KAAK,CAAS,CAClD,eACT5E,MAAA,YAAA8E,aAAA,CAACrE,uBAAA,CAAA0E,sBAAsB,EAAAjE,KAAA,CAAA6D,EAAA;IAAA,MACjB5D,EAAE;IAAA,gBACQgD,YAAY;IAAA,QACpB9C,IAAI;IAAA,SACHC,KAAK;IAAA,UACJI,MAAM;IAAA,QACRO;EAAI,GACV,CACY;AAEpB,CAAC;AAACmD,OAAA,CAAAtE,YAAA,GAAAA,YAAA"}
|
1
|
+
{"version":3,"file":"PlotA11yView.js","names":["_core","require","_react","_interopRequireDefault","_focus","_hints","_intl","_summarize","_flexBox","_i18nEnhance","_intergalacticDynamicLocales","_DataAccessibilityTable","styles","_index","sstyled","insert","PlotA11yView","_ref3","_ref","arguments[0]","_ref2","id","providedData","data","hints","plotLabel","plotRef","providedConfig","config","locale","SPlotA11yView","Box","translations","useAsyncI18nMessages","localizedMessages","intl","React","useMemo","getIntl","makeDataSummarizationConfig","Array","isArray","_React$useState","useState","_React$useState2","_slicedToArray2","summary","setSummary","_React$useState3","_React$useState4","generatingSummary","setGeneratingSummary","useEffect","disable","override","setTimeout","summarize","handleClose","useCallback","_plotRef$current","current","focus","handleSkip","event","_heavyFindNextFocusab","preventDefault","heavyFindNextFocusableElement","handleSkipKeyboard","key","handleGoToTable","_dataTableRef$current","dataTableRef","handleGoToTableKeyboard","texts","label","formatMessage","close","skipPlot","goToTable","summaryPlaceholder","table","useRef","createElement","cn","_objectSpread2","assignProps","concat","DataAccessibilityTable","exports"],"sources":["../../../src/a11y/PlotA11yView.tsx"],"sourcesContent":["import React from 'react';\nimport { heavyFindNextFocusableElement } from './focus';\nimport { makeDataSummarizationConfig } from './hints';\nimport type { A11yViewProps } from './PlotA11yModule';\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';\nimport { DataAccessibilityTable } from './DataAccessibilityTable';\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\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 handleClose = React.useCallback(() => {\n plotRef.current?.focus();\n }, []);\n const handleSkip = React.useCallback((event: React.SyntheticEvent) => {\n event.preventDefault();\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 handleSkip(event);\n },\n [handleSkip],\n );\n const handleGoToTable = React.useCallback((event: React.SyntheticEvent) => {\n event.preventDefault();\n dataTableRef.current?.focus();\n }, []);\n const handleGoToTableKeyboard = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (!(event.key === 'Enter' || event.key === ' ')) return;\n\n handleGoToTable(event);\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\n render={Box}\n tabIndex={0}\n aria-label={texts.label}\n role={'dialog'}\n __excludeProps={['data']}\n >\n <button type={'button'} onClick={handleClose}>\n {texts.close}\n </button>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a href={'#'} onKeyDown={handleSkipKeyboard} onClick={handleSkip}>\n {texts.skipPlot}\n </a>\n {/* biome-ignore lint/a11y/useValidAnchor: */}\n <a href={`#${id}-data-table`} 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}>\n {generatingSummary ? texts.summaryPlaceholder : summary}\n </div>\n <strong>\n <label htmlFor={`${id}-data-table`}>{texts.table}</label>\n </strong>\n <DataAccessibilityTable\n id={id}\n dataTableRef={dataTableRef}\n data={data}\n hints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,UACJI,MAAM;IAAA,QACRO;EAAI,GACV,CACY;AAEpB,CAAC;AAACqD,OAAA,CAAAxE,YAAA,GAAAA,YAAA"}
|
@@ -359,7 +359,8 @@ var AbstractChart = /*#__PURE__*/function (_Component) {
|
|
359
359
|
direction: (_lProps$direction = lProps.direction) !== null && _lProps$direction !== void 0 ? _lProps$direction : direction === 'row' || direction === 'row-reverse' ? 'column' : 'row',
|
360
360
|
onChangeVisibleItem: lProps.disableSelectItems ? undefined : (0, _assignProps2.callAllEventHandlers)(lProps.onChangeVisibleItem, this.handleChangeVisible),
|
361
361
|
onMouseEnterItem: lProps.disableHoverItems ? undefined : (0, _assignProps2.callAllEventHandlers)(lProps.onMouseEnterItem, this.handleMouseEnter),
|
362
|
-
onMouseLeaveItem: lProps.disableHoverItems ? undefined : (0, _assignProps2.callAllEventHandlers)(lProps.onMouseLeaveItem, this.handleMouseLeave)
|
362
|
+
onMouseLeaveItem: lProps.disableHoverItems ? undefined : (0, _assignProps2.callAllEventHandlers)(lProps.onMouseLeaveItem, this.handleMouseLeave),
|
363
|
+
'aria-label': this.getLegendAriaLabel()
|
363
364
|
};
|
364
365
|
if (lProps.legendType === 'Table') {
|
365
366
|
return /*#__PURE__*/_react["default"].createElement(_ChartLegend.ChartLegendTable, commonLegendProps);
|
@@ -427,7 +428,9 @@ var AbstractChart = /*#__PURE__*/function (_Component) {
|
|
427
428
|
a11yAltTextConfig = _this$asProps7.a11yAltTextConfig,
|
428
429
|
duration = _this$asProps7.duration;
|
429
430
|
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SChart, _ref2.cn("SChart", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
430
|
-
"gap": 5
|
431
|
+
"gap": 5,
|
432
|
+
"__excludeProps": ['data'],
|
433
|
+
"role": 'group'
|
431
434
|
}, _ref))), this.renderLegend(), /*#__PURE__*/_react["default"].createElement(_.Plot, _ref2.cn("Plot", {
|
432
435
|
"data": data,
|
433
436
|
"scale": [this.xScale, this.yScale],
|