intergalactic 15.128.0 → 15.129.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/lib/esm/Accordion.mjs +60 -60
- package/accordion/package.json +1 -1
- package/add-filter/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/lib/esm/BaseTrigger.mjs +50 -50
- package/base-trigger/lib/esm/ButtonTrigger.mjs +20 -20
- package/base-trigger/lib/esm/FilterTrigger.mjs +79 -79
- package/base-trigger/lib/esm/LinkTrigger.mjs +44 -44
- 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/lib/esm/Breadcrumbs.mjs +41 -41
- package/breadcrumbs/package.json +1 -1
- package/bulk-textarea/lib/cjs/components/InputField/InputField.js +12 -12
- package/bulk-textarea/lib/es6/components/InputField/InputField.js +12 -12
- package/bulk-textarea/lib/esm/components/InputField/InputField.mjs +171 -171
- package/bulk-textarea/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/lib/esm/Card.mjs +14 -14
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +21 -21
- package/carousel/lib/es6/Carousel.js +21 -21
- package/carousel/lib/esm/Carousel.mjs +72 -72
- package/carousel/package.json +1 -1
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +24 -24
- 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 +24 -24
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/lib/esm/ColorPicker.mjs +70 -70
- package/color-picker/lib/esm/PaletteManager.mjs +53 -53
- package/color-picker/lib/esm/components/InputColor.mjs +64 -64
- package/color-picker/package.json +1 -1
- package/components.json +29 -29
- 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/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- 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/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/esm/semcore/d3-chart/src/Area.mjs +68 -68
- package/d3-chart/lib/esm/semcore/d3-chart/src/Axis.mjs +154 -154
- package/d3-chart/lib/esm/semcore/d3-chart/src/Bar.mjs +62 -62
- package/d3-chart/lib/esm/semcore/d3-chart/src/Bubble.mjs +78 -78
- package/d3-chart/lib/esm/semcore/d3-chart/src/CompactHorizontalBar.mjs +99 -99
- package/d3-chart/lib/esm/semcore/d3-chart/src/Donut.mjs +129 -129
- package/d3-chart/lib/esm/semcore/d3-chart/src/Dots.mjs +35 -35
- package/d3-chart/lib/esm/semcore/d3-chart/src/HorizontalBar.mjs +54 -54
- package/d3-chart/lib/esm/semcore/d3-chart/src/Hover.mjs +17 -17
- package/d3-chart/lib/esm/semcore/d3-chart/src/Line.mjs +85 -85
- package/d3-chart/lib/esm/semcore/d3-chart/src/Plot.mjs +25 -25
- package/d3-chart/lib/esm/semcore/d3-chart/src/Radar.mjs +138 -138
- package/d3-chart/lib/esm/semcore/d3-chart/src/RadialTree.mjs +95 -95
- package/d3-chart/lib/esm/semcore/d3-chart/src/Reference.mjs +65 -65
- package/d3-chart/lib/esm/semcore/d3-chart/src/ScatterPlot.mjs +63 -63
- package/d3-chart/lib/esm/semcore/d3-chart/src/Tooltip.mjs +66 -66
- package/d3-chart/lib/esm/semcore/d3-chart/src/Venn.mjs +62 -62
- package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yModule.mjs +31 -31
- package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yView.mjs +33 -33
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendFlex/LegendFlex.mjs +20 -20
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendItem/LegendItem.mjs +101 -101
- package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendTable/LegendTable.mjs +34 -34
- package/d3-chart/package.json +1 -1
- 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/lib/esm/Body.mjs +69 -69
- package/data-table/lib/esm/DataTable.mjs +253 -253
- 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/lib/esm/components/Calendar.mjs +151 -151
- package/date-picker/lib/esm/components/DateRangeComparatorAbstract.mjs +158 -158
- package/date-picker/lib/esm/components/InputTrigger.mjs +232 -232
- package/date-picker/lib/esm/components/PickerAbstract.mjs +89 -89
- package/date-picker/lib/esm/components/RangePickerAbstract.mjs +124 -124
- package/date-picker/package.json +1 -1
- package/drag-and-drop/lib/cjs/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/es6/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/esm/DragAndDrop.mjs +225 -225
- package/drag-and-drop/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/es6/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/esm/DropdownMenu.mjs +143 -143
- package/dropdown-menu/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/lib/esm/FeaturePopover.mjs +47 -47
- package/feature-popover/package.json +1 -1
- 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/slider-rating/SliderRating.js +7 -7
- 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/slider-rating/SliderRating.js +7 -7
- package/feedback-form/lib/esm/FeedbackForm.mjs +51 -51
- package/feedback-form/lib/esm/component/checkbox-button/CheckboxButton.mjs +21 -21
- package/feedback-form/lib/esm/component/feedback-rating/FeedbackRating.mjs +41 -41
- package/feedback-form/lib/esm/component/slider-rating/SliderRating.mjs +75 -75
- package/feedback-form/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/lib/esm/FullscreenModal.mjs +44 -44
- package/fullscreen-modal/package.json +1 -1
- 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/MetaColored/l/index.js +4 -4
- package/icon/color/MetaColored/l/index.mjs +4 -4
- package/icon/color/MetaColored/m/index.js +4 -4
- package/icon/color/MetaColored/m/index.mjs +4 -4
- 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/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/lib/esm/Icon.mjs +33 -33
- 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/icon/platform/AIToolkit/index.d.ts +6 -0
- package/icon/platform/AIToolkit/index.js +36 -0
- package/icon/platform/AIToolkit/index.mjs +25 -0
- package/icon/platform/SEOToolkit/index.js +2 -2
- package/icon/platform/SEOToolkit/index.mjs +2 -2
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/inline-input/lib/esm/InlineInput.mjs +127 -127
- package/inline-input/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/lib/esm/Modal.mjs +96 -96
- package/modal/package.json +1 -1
- package/notice/lib/cjs/Notice.js +16 -16
- package/notice/lib/es6/Notice.js +16 -16
- package/notice/lib/esm/Notice.mjs +73 -73
- 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/lib/esm/NoticeBubble.mjs +123 -123
- 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/lib/esm/NoticeGlobal.mjs +49 -49
- package/notice-global/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +12 -12
- package/pagination/lib/es6/Pagination.js +12 -12
- package/pagination/lib/esm/Pagination.mjs +13 -13
- package/pagination/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/lib/esm/InputSearch.mjs +35 -35
- package/select/lib/esm/Select.mjs +60 -60
- 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/lib/esm/SidePanel.mjs +56 -56
- package/side-panel/package.json +1 -1
- package/tag/lib/cjs/Tag.js +23 -23
- package/tag/lib/es6/Tag.js +23 -23
- package/tag/lib/esm/Tag.mjs +184 -184
- package/tag/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/lib/esm/TimePicker.mjs +93 -93
- package/time-picker/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/lib/esm/Blockquote.mjs +20 -20
- package/typography/lib/esm/Hint.mjs +19 -19
- package/typography/lib/esm/List.mjs +36 -36
- package/typography/lib/esm/Text.mjs +53 -53
- package/typography/package.json +1 -1
- package/wizard/lib/cjs/Wizard.js +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/lib/esm/Wizard.mjs +94 -94
- package/wizard/package.json +1 -1
@@ -1,48 +1,48 @@
|
|
1
|
-
import
|
1
|
+
import R from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
2
2
|
import v from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
-
import
|
4
|
-
import
|
3
|
+
import A from "@babel/runtime/helpers/esm/classCallCheck";
|
4
|
+
import K from "@babel/runtime/helpers/esm/createClass";
|
5
5
|
import _ from "@babel/runtime/helpers/esm/assertThisInitialized";
|
6
|
-
import
|
7
|
-
import
|
6
|
+
import G from "@babel/runtime/helpers/esm/inherits";
|
7
|
+
import I from "@babel/runtime/helpers/esm/createSuper";
|
8
8
|
import g from "@babel/runtime/helpers/esm/defineProperty";
|
9
|
-
import { sstyled as
|
10
|
-
import { assignProps as C, Component as
|
9
|
+
import { sstyled as N } from 'intergalactic/utils/lib/core/index';
|
10
|
+
import { assignProps as C, Component as z, sstyled as b } from 'intergalactic/core';
|
11
11
|
import a from "react";
|
12
12
|
import T from 'intergalactic/popper';
|
13
13
|
import { Box as h } from 'intergalactic/flex-box';
|
14
|
-
import
|
15
|
-
import
|
14
|
+
import U from 'intergalactic/utils/lib/findComponent';
|
15
|
+
import W from "./createElement.mjs";
|
16
16
|
import { getChartDefaultColorName as B } from "./utils.mjs";
|
17
17
|
import { useColorResolver as H } from 'intergalactic/utils/lib/use/useColorResolver';
|
18
18
|
import { PatternSymbol as L } from "./Pattern.mjs";
|
19
19
|
var O = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"], f = (
|
20
20
|
/*__reshadow_css_start__*/
|
21
|
-
(
|
21
|
+
(N.insert(
|
22
22
|
/*__inner_css_start__*/
|
23
|
-
".
|
24
|
-
"
|
23
|
+
".___STooltip_1sacj_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_1sacj_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1sacj_gg_{display:flex;align-items:center}.___SDot_1sacj_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1sacj_gg_.__color_1sacj_gg_{background-color:var(--color_1sacj);width:8px;height:8px;border-radius:50%}.___SFooter_1sacj_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))}",
|
24
|
+
"1sacj_gg_"
|
25
25
|
), {
|
26
|
-
__STooltip: "
|
27
|
-
__STitle: "
|
28
|
-
__SDotGroup: "
|
29
|
-
__SDot: "
|
30
|
-
__SDotCircle: "
|
31
|
-
_color: "
|
32
|
-
"--color": "--
|
33
|
-
__SFooter: "
|
26
|
+
__STooltip: "___STooltip_1sacj_gg_",
|
27
|
+
__STitle: "___STitle_1sacj_gg_",
|
28
|
+
__SDotGroup: "___SDotGroup_1sacj_gg_",
|
29
|
+
__SDot: "___SDot_1sacj_gg_",
|
30
|
+
__SDotCircle: "___SDotCircle_1sacj_gg_",
|
31
|
+
_color: "__color_1sacj_gg_",
|
32
|
+
"--color": "--color_1sacj",
|
33
|
+
__SFooter: "___SFooter_1sacj_gg_"
|
34
34
|
})
|
35
|
-
),
|
35
|
+
), $ = /* @__PURE__ */ a.createContext({
|
36
36
|
index: -1,
|
37
37
|
indexKeysCache: /* @__PURE__ */ new Set()
|
38
38
|
}), E = /* @__PURE__ */ function(l) {
|
39
|
-
|
40
|
-
var c =
|
41
|
-
function
|
39
|
+
G(i, l);
|
40
|
+
var c = I(i);
|
41
|
+
function i() {
|
42
42
|
var t;
|
43
|
-
|
44
|
-
for (var e = arguments.length, r = new Array(e),
|
45
|
-
r[
|
43
|
+
A(this, i);
|
44
|
+
for (var e = arguments.length, r = new Array(e), o = 0; o < e; o++)
|
45
|
+
r[o] = arguments[o];
|
46
46
|
return t = c.call.apply(c, [this].concat(r)), g(_(t), "state", {
|
47
47
|
$visible: !1,
|
48
48
|
anchorProps: {},
|
@@ -60,13 +60,13 @@ var O = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"], f = (
|
|
60
60
|
s == null || s(m, n);
|
61
61
|
}), t;
|
62
62
|
}
|
63
|
-
return
|
63
|
+
return K(i, [{
|
64
64
|
key: "getTriggerProps",
|
65
65
|
value: function() {
|
66
|
-
var e = this.asProps, r = e.x,
|
66
|
+
var e = this.asProps, r = e.x, o = e.y, n = e.hideHoverLine;
|
67
67
|
return {
|
68
68
|
x: r,
|
69
|
-
y:
|
69
|
+
y: o,
|
70
70
|
hideHoverLine: n
|
71
71
|
};
|
72
72
|
}
|
@@ -83,18 +83,18 @@ var O = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"], f = (
|
|
83
83
|
key: "componentDidMount",
|
84
84
|
value: function() {
|
85
85
|
var e = this, r = this.asProps.eventEmitter;
|
86
|
-
this.unsubscribe.push(r.subscribe("setTooltipRenderingProps", function(
|
86
|
+
this.unsubscribe.push(r.subscribe("setTooltipRenderingProps", function(o, n) {
|
87
87
|
e.setState({
|
88
|
-
anchorProps:
|
88
|
+
anchorProps: o,
|
89
89
|
tooltipProps: n
|
90
90
|
});
|
91
|
-
}), r.subscribe("setTooltipVisible", function(
|
91
|
+
}), r.subscribe("setTooltipVisible", function(o) {
|
92
92
|
return e.setState({
|
93
|
-
$visible:
|
93
|
+
$visible: o
|
94
94
|
});
|
95
|
-
}), r.subscribe("setTooltipPosition", function(
|
95
|
+
}), r.subscribe("setTooltipPosition", function(o, n) {
|
96
96
|
var s;
|
97
|
-
e.virtualElementPosition.x =
|
97
|
+
e.virtualElementPosition.x = o, e.virtualElementPosition.y = n, e.virtualTriggerElement === null && (e.virtualTriggerElement = {}, setTimeout(function() {
|
98
98
|
e.setPopperTrigger(e.virtualTriggerElement);
|
99
99
|
}, 0)), e.virtualTriggerElement.getBoundingClientRect = function() {
|
100
100
|
var p = e.virtualElementPosition, d = p.x, u = p.y;
|
@@ -119,10 +119,10 @@ var O = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"], f = (
|
|
119
119
|
}, {
|
120
120
|
key: "render",
|
121
121
|
value: function() {
|
122
|
-
var e = this.asProps, r,
|
122
|
+
var e = this.asProps, r, o = this, n = this.asProps, s = n.Children, p = n.children, d = n.tag, u = n.forcedAdvancedMode;
|
123
123
|
n.onClick;
|
124
|
-
var m =
|
125
|
-
return this.renderContext.index = -1, this.renderContext.indexKeysCache.clear(), this.renderContext.patterns = (r = this.asProps.patterns) !== null && r !== void 0 ? r : this.state.tooltipProps.patterns, /* @__PURE__ */ a.createElement(
|
124
|
+
var m = R(n, O), x = u || !!U(s, [y.Trigger.displayName, y.Popper.displayName]);
|
125
|
+
return this.renderContext.index = -1, this.renderContext.indexKeysCache.clear(), this.renderContext.patterns = (r = this.asProps.patterns) !== null && r !== void 0 ? r : this.state.tooltipProps.patterns, /* @__PURE__ */ a.createElement($.Provider, {
|
126
126
|
value: this.renderContext
|
127
127
|
}, /* @__PURE__ */ a.createElement(T, C({
|
128
128
|
visible: this.state.$visible,
|
@@ -135,63 +135,63 @@ var O = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"], f = (
|
|
135
135
|
allowedAutoPlacements: ["left", "right"]
|
136
136
|
}
|
137
137
|
}, e), function(P) {
|
138
|
-
var S,
|
139
|
-
return
|
138
|
+
var S, F = P.popper, M = P.setTrigger;
|
139
|
+
return o.setPopperTrigger = M, o.popper = F, (S = o.popper.current) === null || S === void 0 || S.update(), x ? /* @__PURE__ */ a.createElement(s, null) : /* @__PURE__ */ a.createElement(a.Fragment, null, d && /* @__PURE__ */ a.createElement(y.Trigger, {
|
140
140
|
tag: d,
|
141
|
-
onClick:
|
141
|
+
onClick: o.handleTriggerClick
|
142
142
|
}), /* @__PURE__ */ a.createElement(y.Popper, m, p));
|
143
143
|
}));
|
144
144
|
}
|
145
|
-
}]),
|
146
|
-
}(
|
145
|
+
}]), i;
|
146
|
+
}(z);
|
147
147
|
g(E, "displayName", "Tooltip");
|
148
148
|
g(E, "style", f);
|
149
|
-
function
|
150
|
-
var c,
|
149
|
+
function D(l) {
|
150
|
+
var c, i = l.Element, t = l.styles, e = l.$visible, r = l.x, o = l.y, n = a.useCallback(function() {
|
151
151
|
return !1;
|
152
152
|
}, []);
|
153
|
-
return e ? (c = b(t), /* @__PURE__ */ a.createElement(
|
153
|
+
return e ? (c = b(t), /* @__PURE__ */ a.createElement(i, c.cn("STooltip", {
|
154
154
|
render: T.Popper,
|
155
155
|
childrenPosition: "inside",
|
156
156
|
onMouseMove: n,
|
157
157
|
x: r,
|
158
|
-
y:
|
158
|
+
y: o
|
159
159
|
}))) : null;
|
160
160
|
}
|
161
|
-
|
162
|
-
function
|
163
|
-
var c = arguments[0],
|
164
|
-
return
|
161
|
+
D.style = f;
|
162
|
+
function j(l) {
|
163
|
+
var c = arguments[0], i, t = h, e = l.styles;
|
164
|
+
return i = b(e), /* @__PURE__ */ a.createElement(t, i.cn("STitle", v({}, C({
|
165
165
|
__excludeProps: ["data", "scale"]
|
166
166
|
}, c))));
|
167
167
|
}
|
168
|
-
|
168
|
+
j.style = f;
|
169
169
|
function k(l) {
|
170
|
-
var c = arguments[0],
|
170
|
+
var c = arguments[0], i, t, e = l.styles, r = l.color, o = l.Children, n = H(), s = a.useContext($), p = B(s.index), d = (t = l.patterns) !== null && t !== void 0 ? t : s.patterns, u = o;
|
171
171
|
s.indexKeysCache.has(u) || (s.indexKeysCache.add(u), s.index += 1);
|
172
172
|
var m = h, x = h, P = h;
|
173
|
-
return
|
173
|
+
return i = b(e), /* @__PURE__ */ a.createElement(m, i.cn("SDotGroup", v({}, C({
|
174
174
|
__excludeProps: ["data", "scale"]
|
175
|
-
}, c))), d ? /* @__PURE__ */ a.createElement(x,
|
175
|
+
}, c))), d ? /* @__PURE__ */ a.createElement(x, i.cn("SDot", {}), /* @__PURE__ */ a.createElement(L, i.cn("PatternSymbol", {
|
176
176
|
color: n(r ?? p),
|
177
177
|
patternKey: r ?? p
|
178
|
-
}))) : /* @__PURE__ */ a.createElement(x,
|
178
|
+
}))) : /* @__PURE__ */ a.createElement(x, i.cn("SDot", {}), /* @__PURE__ */ a.createElement(P, i.cn("SDotCircle", {
|
179
179
|
color: n(r ?? p)
|
180
|
-
}))), /* @__PURE__ */ a.createElement(
|
180
|
+
}))), /* @__PURE__ */ a.createElement(o, i.cn("Children", {})));
|
181
181
|
}
|
182
182
|
k.style = f;
|
183
|
-
function
|
184
|
-
var c = arguments[0],
|
185
|
-
return
|
183
|
+
function w(l) {
|
184
|
+
var c = arguments[0], i, t = l.styles, e = h;
|
185
|
+
return i = b(t), /* @__PURE__ */ a.createElement(e, i.cn("SFooter", v({}, C({
|
186
186
|
__excludeProps: ["data", "scale"]
|
187
187
|
}, c))));
|
188
188
|
}
|
189
|
-
|
190
|
-
var y =
|
189
|
+
w.style = f;
|
190
|
+
var y = W(E, {
|
191
191
|
Trigger: T.Trigger,
|
192
|
-
Popper:
|
193
|
-
Title:
|
194
|
-
Footer:
|
192
|
+
Popper: D,
|
193
|
+
Title: j,
|
194
|
+
Footer: w,
|
195
195
|
Dot: k
|
196
196
|
});
|
197
197
|
export {
|
@@ -1,54 +1,54 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
1
|
+
import I from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import C from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import S from "@babel/runtime/helpers/esm/extends";
|
4
|
+
import D from "@babel/runtime/helpers/esm/classCallCheck";
|
5
|
+
import H from "@babel/runtime/helpers/esm/createClass";
|
6
|
+
import y from "@babel/runtime/helpers/esm/assertThisInitialized";
|
7
|
+
import K from "@babel/runtime/helpers/esm/inherits";
|
8
|
+
import V from "@babel/runtime/helpers/esm/createSuper";
|
9
9
|
import g from "@babel/runtime/helpers/esm/defineProperty";
|
10
|
-
import { sstyled as
|
11
|
-
import { Component as
|
12
|
-
import
|
13
|
-
import { scaleSolution as
|
14
|
-
import
|
15
|
-
import { FadeInOut as
|
16
|
-
import
|
17
|
-
import { getChartDefaultColorName as
|
18
|
-
import
|
10
|
+
import { sstyled as R } from 'intergalactic/utils/lib/core/index';
|
11
|
+
import { Component as k, sstyled as P, assignProps as O } from 'intergalactic/core';
|
12
|
+
import _ from "react";
|
13
|
+
import { scaleSolution as w, normalizeSolution as x, venn as M, intersectionAreaPath as z } from "../../../node_modules/.pnpm/@upsetjs_venn.js@1.4.2/node_modules/@upsetjs/venn.js/build/venn.esm.mjs";
|
14
|
+
import A from 'intergalactic/utils/lib/canUseDOM';
|
15
|
+
import { FadeInOut as E } from 'intergalactic/animation';
|
16
|
+
import F from "./createElement.mjs";
|
17
|
+
import { getChartDefaultColorName as j } from "./utils.mjs";
|
18
|
+
import b from "./Tooltip.mjs";
|
19
19
|
import { PatternFill as B } from "./Pattern.mjs";
|
20
20
|
import $ from 'intergalactic/utils/lib/uniqueID';
|
21
21
|
var G = (
|
22
22
|
/*__reshadow_css_start__*/
|
23
|
-
(
|
23
|
+
(R.insert(
|
24
24
|
/*__inner_css_start__*/
|
25
|
-
".
|
26
|
-
"
|
25
|
+
".___SCircle_18er9_gg_,.___SIntersection_18er9_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_18er9_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_18er9);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_18er9_gg_:hover{fill-opacity:.7}}.___SCircle_18er9_gg_.__color_18er9_gg_{fill:var(--color_18er9)}.___SCircle_18er9_gg_.__pattern_18er9_gg_.__color_18er9_gg_{fill:var(--pattern_18er9);fill-opacity:.7;stroke:var(--color_18er9);stroke-width:1px}@media (hover:hover){.___SCircle_18er9_gg_.__pattern_18er9_gg_.__color_18er9_gg_:hover{fill-opacity:.85}}.___SCircle_18er9_gg_.__transparent_18er9_gg_{opacity:.3}.___SIntersection_18er9_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_18er9_gg_:hover{fill-opacity:.1}}.___SIntersection_18er9_gg_.__transparent_18er9_gg_{opacity:.3}",
|
26
|
+
"18er9_gg_"
|
27
27
|
), {
|
28
|
-
__SCircle: "
|
29
|
-
_color: "
|
30
|
-
"--color": "--
|
31
|
-
_transparent: "
|
32
|
-
__SIntersection: "
|
33
|
-
"--duration": "--
|
34
|
-
_pattern: "
|
35
|
-
"--pattern": "--
|
28
|
+
__SCircle: "___SCircle_18er9_gg_",
|
29
|
+
_color: "__color_18er9_gg_",
|
30
|
+
"--color": "--color_18er9",
|
31
|
+
_transparent: "__transparent_18er9_gg_",
|
32
|
+
__SIntersection: "___SIntersection_18er9_gg_",
|
33
|
+
"--duration": "--duration_18er9",
|
34
|
+
_pattern: "__pattern_18er9_gg_",
|
35
|
+
"--pattern": "--pattern_18er9"
|
36
36
|
})
|
37
37
|
), h = /* @__PURE__ */ function(e) {
|
38
|
-
|
39
|
-
var s =
|
38
|
+
K(l, e);
|
39
|
+
var s = V(l);
|
40
40
|
function l() {
|
41
41
|
var a;
|
42
|
-
|
42
|
+
D(this, l);
|
43
43
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
44
44
|
n[r] = arguments[r];
|
45
|
-
return a = s.call.apply(s, [this].concat(n)), g(
|
45
|
+
return a = s.call.apply(s, [this].concat(n)), g(y(a), "virtualElement", A() ? document.createElement("div") : {}), g(y(a), "bindHandlerTooltip", function(i, o, c) {
|
46
46
|
return function(d) {
|
47
47
|
var m = d.clientX, p = d.clientY, u = a.asProps.eventEmitter;
|
48
|
-
u.emit("setTooltipPosition", m, p), u.emit("setTooltipRenderingProps", o,
|
48
|
+
u.emit("setTooltipPosition", m, p), u.emit("setTooltipRenderingProps", o, c), u.emit("setTooltipVisible", i);
|
49
49
|
};
|
50
|
-
}), g(
|
51
|
-
return /* @__PURE__ */
|
50
|
+
}), g(y(a), "renderElement", /* @__PURE__ */ _.forwardRef(function(i, o) {
|
51
|
+
return /* @__PURE__ */ _.createElement(E, S({
|
52
52
|
"aria-hidden": !0,
|
53
53
|
ref: o,
|
54
54
|
tag: "g",
|
@@ -56,7 +56,7 @@ var G = (
|
|
56
56
|
}, i));
|
57
57
|
})), a;
|
58
58
|
}
|
59
|
-
return
|
59
|
+
return H(l, [{
|
60
60
|
key: "generateGetBoundingClientRect",
|
61
61
|
value: function() {
|
62
62
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
@@ -74,19 +74,19 @@ var G = (
|
|
74
74
|
}, {
|
75
75
|
key: "getVennData",
|
76
76
|
value: function() {
|
77
|
-
var t = this.asProps, n = t.data, r = t.orientation, i = t.orientationOrder, o = t.size,
|
78
|
-
var v =
|
77
|
+
var t = this.asProps, n = t.data, r = t.orientation, i = t.orientationOrder, o = t.size, c = C(o, 2), d = c[0], m = c[1], p = Object.entries(n).map(function(u) {
|
78
|
+
var v = C(u, 2), f = v[0], T = v[1];
|
79
79
|
return {
|
80
|
-
sets:
|
81
|
-
size:
|
80
|
+
sets: f.split("/"),
|
81
|
+
size: T
|
82
82
|
};
|
83
83
|
});
|
84
|
-
return
|
84
|
+
return w(x(M(p), r, i), d, m, 10);
|
85
85
|
}
|
86
86
|
}, {
|
87
87
|
key: "getCircleProps",
|
88
88
|
value: function(t, n) {
|
89
|
-
var r = 1, i = t.color ||
|
89
|
+
var r = 1, i = t.color || j(n + r), o = {
|
90
90
|
dataKey: t.dataKey,
|
91
91
|
name: t.name,
|
92
92
|
color: i,
|
@@ -109,7 +109,7 @@ var G = (
|
|
109
109
|
}, {
|
110
110
|
key: "getIntersectionProps",
|
111
111
|
value: function(t) {
|
112
|
-
var n = this.asProps, r = n.duration, i = n.transparent, o = t.dataKey.split("/"),
|
112
|
+
var n = this.asProps, r = n.duration, i = n.transparent, o = t.dataKey.split("/"), c = {
|
113
113
|
dataKey: t.dataKey,
|
114
114
|
name: t.name,
|
115
115
|
color: t.color,
|
@@ -123,8 +123,8 @@ var G = (
|
|
123
123
|
return o.includes(d.setid);
|
124
124
|
}),
|
125
125
|
originalData: this.asProps.data[t.dataKey],
|
126
|
-
onMouseMove: this.bindHandlerTooltip(!0, t,
|
127
|
-
onMouseLeave: this.bindHandlerTooltip(!1, t,
|
126
|
+
onMouseMove: this.bindHandlerTooltip(!0, t, c),
|
127
|
+
onMouseLeave: this.bindHandlerTooltip(!1, t, c),
|
128
128
|
transparent: i,
|
129
129
|
resolveColor: this.asProps.resolveColor
|
130
130
|
};
|
@@ -133,7 +133,7 @@ var G = (
|
|
133
133
|
key: "render",
|
134
134
|
value: function() {
|
135
135
|
var t = this.Element;
|
136
|
-
return this.asProps.dataHintsHandler.establishDataType("values-set"), this.vennData = this.getVennData(), /* @__PURE__ */
|
136
|
+
return this.asProps.dataHintsHandler.establishDataType("values-set"), this.vennData = this.getVennData(), /* @__PURE__ */ _.createElement(t, {
|
137
137
|
"aria-hidden": !0,
|
138
138
|
render: this.renderElement,
|
139
139
|
childrenPosition: "inside",
|
@@ -141,7 +141,7 @@ var G = (
|
|
141
141
|
});
|
142
142
|
}
|
143
143
|
}]), l;
|
144
|
-
}(
|
144
|
+
}(k);
|
145
145
|
g(h, "displayName", "Venn");
|
146
146
|
g(h, "style", G);
|
147
147
|
g(h, "defaultProps", {
|
@@ -154,20 +154,20 @@ g(h, "defaultProps", {
|
|
154
154
|
});
|
155
155
|
g(h, "enhance", [$()]);
|
156
156
|
function L(e) {
|
157
|
-
var s, l = e.Element, a = e.styles, t = e.color, n = e.resolveColor, r = e.data, i = e.duration, o = e.name,
|
158
|
-
d.describeValueEntity(
|
159
|
-
var
|
160
|
-
return r.radius === 0 ? null : /* @__PURE__ */
|
157
|
+
var s, l = e.Element, a = e.styles, t = e.color, n = e.resolveColor, r = e.data, i = e.duration, o = e.name, c = e.dataKey, d = e.dataHintsHandler, m = e.transparent, p = e.uid, u = e.patterns, v = e.minRadius;
|
158
|
+
d.describeValueEntity(c, o);
|
159
|
+
var f = r.radius < v ? v : r.radius;
|
160
|
+
return r.radius === 0 ? null : /* @__PURE__ */ _.createElement(_.Fragment, null, (s = P(a), /* @__PURE__ */ _.createElement(l, s.cn("SCircle", {
|
161
161
|
"aria-hidden": !0,
|
162
162
|
render: "circle",
|
163
163
|
color: n(t),
|
164
164
|
pattern: u ? "url(#".concat(p, "-pattern)") : void 0,
|
165
165
|
cx: r.x,
|
166
166
|
cy: r.y,
|
167
|
-
r:
|
167
|
+
r: f,
|
168
168
|
transparent: m,
|
169
169
|
"use:duration": "".concat(i, "ms")
|
170
|
-
}))), u && /* @__PURE__ */
|
170
|
+
}))), u && /* @__PURE__ */ _.createElement(B, s.cn("PatternFill", {
|
171
171
|
id: "".concat(p, "-pattern"),
|
172
172
|
patternKey: t,
|
173
173
|
color: n(t),
|
@@ -177,30 +177,30 @@ function L(e) {
|
|
177
177
|
function N(e) {
|
178
178
|
var s, l = e.Element, a = e.styles, t = e.data, n = e.name, r = e.dataKey, i = e.dataHintsHandler, o = e.transparent;
|
179
179
|
i.describeValueEntity(r, n);
|
180
|
-
var
|
181
|
-
return /* @__PURE__ */
|
180
|
+
var c = _.useCallback(/* @__PURE__ */ _.forwardRef(function(d, m) {
|
181
|
+
return /* @__PURE__ */ _.createElement(E, S({
|
182
182
|
"aria-hidden": !0,
|
183
183
|
ref: m,
|
184
184
|
tag: "path",
|
185
185
|
visible: !0
|
186
186
|
}, d));
|
187
187
|
}), [e]);
|
188
|
-
return s =
|
188
|
+
return s = P(a), /* @__PURE__ */ _.createElement(l, s.cn("SIntersection", {
|
189
189
|
"aria-hidden": !0,
|
190
|
-
render:
|
191
|
-
d:
|
190
|
+
render: c,
|
191
|
+
d: z(t),
|
192
192
|
transparent: o
|
193
193
|
}));
|
194
194
|
}
|
195
195
|
var X = function(s) {
|
196
|
-
var l = arguments[0], a, t =
|
197
|
-
return a =
|
196
|
+
var l = arguments[0], a, t = b;
|
197
|
+
return a = P(s.styles), /* @__PURE__ */ _.createElement(t, a.cn("SVennTooltip", I({}, O({
|
198
198
|
excludeAnchorProps: !0
|
199
199
|
}, l))));
|
200
|
-
}, mt =
|
200
|
+
}, mt = F(h, {
|
201
201
|
Circle: L,
|
202
202
|
Intersection: N,
|
203
|
-
Tooltip: [X,
|
203
|
+
Tooltip: [X, b._______childrenComponents]
|
204
204
|
});
|
205
205
|
export {
|
206
206
|
mt as default
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import m from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import B from "@babel/runtime/helpers/esm/extends";
|
3
3
|
import n from "@babel/runtime/helpers/esm/slicedToArray";
|
4
|
-
import { sstyled as
|
4
|
+
import { sstyled as H } from 'intergalactic/utils/lib/core/index';
|
5
5
|
import { sstyled as u, assignProps as p } from 'intergalactic/core';
|
6
6
|
import t from "react";
|
7
7
|
import { normalizeLocale as G } from "./locale.mjs";
|
@@ -10,20 +10,20 @@ import { Context as J, useI18n as O } from 'intergalactic/utils/lib/enhances/Wit
|
|
10
10
|
import { Box as Q } from 'intergalactic/flex-box';
|
11
11
|
var s = (
|
12
12
|
/*__reshadow_css_start__*/
|
13
|
-
(
|
13
|
+
(H.insert(
|
14
14
|
/*__inner_css_start__*/
|
15
|
-
".
|
16
|
-
"
|
15
|
+
".___SPlotA11yModule_hqyv2_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_hqyv2_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
|
16
|
+
"hqyv2_gg_"
|
17
17
|
), {
|
18
|
-
__SPlotA11yModule: "
|
18
|
+
__SPlotA11yModule: "___SPlotA11yModule_hqyv2_gg_"
|
19
19
|
})
|
20
20
|
), F = !1, V = !1, se = function(a) {
|
21
|
-
var i = arguments[0], S, c = Q, W = t.useState(F), A = n(W, 2), d = A[0], b = A[1],
|
21
|
+
var i = arguments[0], S, c = Q, W = t.useState(F), A = n(W, 2), d = A[0], b = A[1], q = t.useState(V), g = n(q, 2), f = g[0], $ = g[1], z = t.useState(null), w = n(z, 2), l = w[0], I = w[1], K = t.useCallback(function() {
|
22
22
|
b(!0), $(!0);
|
23
|
-
}, []),
|
23
|
+
}, []), D = t.useState(!1), R = n(D, 2), v = R[0], y = R[1], N = t.useState(null), P = n(N, 2), T = P[0], E = P[1], U = t.useContext(J), L = t.useMemo(function() {
|
24
24
|
var e;
|
25
|
-
return G((e = a.locale) !== null && e !== void 0 ? e :
|
26
|
-
}, [a.locale]),
|
25
|
+
return G((e = a.locale) !== null && e !== void 0 ? e : U, C);
|
26
|
+
}, [a.locale]), _ = O(C, L);
|
27
27
|
t.useEffect(function() {
|
28
28
|
var e;
|
29
29
|
if (!d) {
|
@@ -39,8 +39,8 @@ var s = (
|
|
39
39
|
var e;
|
40
40
|
if (!f) {
|
41
41
|
var r = function(x) {
|
42
|
-
var
|
43
|
-
"key" in x &&
|
42
|
+
var j = ["Tab", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"];
|
43
|
+
"key" in x && j.includes(x.key) && ($(!0), V = !0);
|
44
44
|
};
|
45
45
|
return (e = document.body) === null || e === void 0 || e.addEventListener("keydown", r), function() {
|
46
46
|
var o;
|
@@ -48,38 +48,38 @@ var s = (
|
|
48
48
|
};
|
49
49
|
}
|
50
50
|
}, [f]);
|
51
|
-
var
|
51
|
+
var h = d && f;
|
52
52
|
if (t.useEffect(function() {
|
53
|
-
|
53
|
+
h && (l || v || (y(!0), import("./PlotA11yView.mjs").then(function(e) {
|
54
54
|
var r = e.PlotA11yView;
|
55
|
-
|
55
|
+
I({
|
56
56
|
Component: r
|
57
|
-
}),
|
57
|
+
}), y(!1), E(null);
|
58
58
|
}).catch(function(e) {
|
59
|
-
console.error(e),
|
59
|
+
console.error(e), E(e);
|
60
60
|
})));
|
61
|
-
}, [l,
|
62
|
-
return u(s), /* @__PURE__ */ t.createElement(l.Component,
|
63
|
-
locale:
|
61
|
+
}, [l, h, v, y]), l)
|
62
|
+
return u(s), /* @__PURE__ */ t.createElement(l.Component, B({}, a, {
|
63
|
+
locale: L
|
64
64
|
}));
|
65
|
-
if (
|
66
|
-
var
|
67
|
-
return
|
65
|
+
if (T) {
|
66
|
+
var M;
|
67
|
+
return M = u(s), /* @__PURE__ */ t.createElement(c, M.cn("SPlotA11yModule", m({}, p({
|
68
68
|
tabIndex: 0,
|
69
69
|
"aria-live": "assertive"
|
70
|
-
}, i))),
|
70
|
+
}, i))), _("failed"));
|
71
71
|
}
|
72
72
|
if (v) {
|
73
|
-
var
|
74
|
-
return
|
73
|
+
var k;
|
74
|
+
return k = u(s), /* @__PURE__ */ t.createElement(c, k.cn("SPlotA11yModule", m({}, p({
|
75
75
|
tabIndex: 0,
|
76
76
|
"aria-live": "polite"
|
77
|
-
}, i))),
|
77
|
+
}, i))), _("loading"));
|
78
78
|
}
|
79
|
-
return S = u(s), /* @__PURE__ */ t.createElement(c, S.cn("SPlotA11yModule",
|
79
|
+
return S = u(s), /* @__PURE__ */ t.createElement(c, S.cn("SPlotA11yModule", m({}, p({
|
80
80
|
tabIndex: 0,
|
81
|
-
onFocus:
|
82
|
-
}, i))),
|
81
|
+
onFocus: K
|
82
|
+
}, i))), _("disabled"));
|
83
83
|
};
|
84
84
|
export {
|
85
85
|
se as PlotA11yModule
|