intergalactic 15.128.0-prerelease.5 → 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/animation/package.json +1 -1
- 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/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/breakpoints/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/button/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/checkbox/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/core/package.json +1 -1
- package/counter/package.json +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/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/divider/package.json +1 -1
- package/dot/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/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/ellipsis/package.json +1 -1
- 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/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/flags/package.json +1 -1
- package/flex-box/package.json +1 -1
- 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/lib/esm/FullscreenModal.mjs +44 -44
- package/fullscreen-modal/package.json +1 -1
- package/grid/package.json +1 -1
- package/i18n-unplugin/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/illustration/package.json +1 -1
- 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/lib/esm/InlineInput.mjs +127 -127
- package/inline-input/package.json +1 -1
- package/input/package.json +1 -1
- package/input-mask/package.json +1 -1
- package/input-number/package.json +1 -1
- package/input-tags/package.json +1 -1
- package/link/package.json +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/lib/esm/Modal.mjs +96 -96
- package/modal/package.json +1 -1
- package/neighbor-location/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/outside-click/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/pills/package.json +1 -1
- package/popper/package.json +1 -1
- package/portal/package.json +1 -1
- package/product-head/package.json +1 -1
- package/progress-bar/package.json +1 -1
- package/radio/package.json +1 -1
- 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/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/skeleton/package.json +1 -1
- package/slider/package.json +1 -1
- package/spin/package.json +1 -1
- package/spin-container/package.json +1 -1
- package/sticky/package.json +1 -1
- package/switch/package.json +1 -1
- package/tab-line/package.json +1 -1
- 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/lib/esm/Tag.mjs +184 -184
- package/tag/package.json +1 -1
- 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/lib/esm/TimePicker.mjs +93 -93
- package/time-picker/package.json +1 -1
- 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/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/widget-empty/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
@@ -4,31 +4,31 @@ import M from "@babel/runtime/helpers/esm/createClass";
|
|
4
4
|
import D from "@babel/runtime/helpers/esm/inherits";
|
5
5
|
import F from "@babel/runtime/helpers/esm/createSuper";
|
6
6
|
import P from "@babel/runtime/helpers/esm/defineProperty";
|
7
|
-
import
|
7
|
+
import v from "@babel/runtime/helpers/esm/slicedToArray";
|
8
8
|
import { sstyled as N } from 'intergalactic/utils/lib/core/index';
|
9
|
-
import
|
9
|
+
import c from "react";
|
10
10
|
import { sstyled as u, Component as O } from 'intergalactic/core';
|
11
11
|
import q from 'intergalactic/utils/lib/uniqueID';
|
12
12
|
import R from "./createElement.mjs";
|
13
|
-
import { scaleOfBandwidth as
|
13
|
+
import { scaleOfBandwidth as g } from "./utils.mjs";
|
14
14
|
var T = (
|
15
15
|
/*__reshadow_css_start__*/
|
16
16
|
(N.insert(
|
17
17
|
/*__inner_css_start__*/
|
18
|
-
".
|
19
|
-
"
|
18
|
+
".___SReferenceLine_1lsl9_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1lsl9_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1lsl9)}.___STitle_1lsl9_gg_._position_top_1lsl9_gg_{text-anchor:middle}.___STitle_1lsl9_gg_._position_bottom_1lsl9_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1lsl9_gg_._position_left_1lsl9_gg_,.___STitle_1lsl9_gg_._position_right_1lsl9_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1lsl9_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1lsl9_gg_{fill:var(--fill_1lsl9)}.___SStripesPatternPath_1lsl9_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
|
19
|
+
"1lsl9_gg_"
|
20
20
|
), {
|
21
|
-
__SReferenceLine: "
|
22
|
-
__STitle: "
|
23
|
-
"--transform-origin": "--transform-
|
24
|
-
_position_top: "
|
25
|
-
_position_bottom: "
|
26
|
-
_position_right: "
|
27
|
-
_position_left: "
|
28
|
-
__SBackground: "
|
29
|
-
__SStripes: "
|
30
|
-
"--fill": "--
|
31
|
-
__SStripesPatternPath: "
|
21
|
+
__SReferenceLine: "___SReferenceLine_1lsl9_gg_",
|
22
|
+
__STitle: "___STitle_1lsl9_gg_",
|
23
|
+
"--transform-origin": "--transform-origin_1lsl9",
|
24
|
+
_position_top: "_position_top_1lsl9_gg_",
|
25
|
+
_position_bottom: "_position_bottom_1lsl9_gg_",
|
26
|
+
_position_right: "_position_right_1lsl9_gg_",
|
27
|
+
_position_left: "_position_left_1lsl9_gg_",
|
28
|
+
__SBackground: "___SBackground_1lsl9_gg_",
|
29
|
+
__SStripes: "___SStripes_1lsl9_gg_",
|
30
|
+
"--fill": "--fill_1lsl9",
|
31
|
+
__SStripesPatternPath: "___SStripesPatternPath_1lsl9_gg_"
|
32
32
|
})
|
33
33
|
), k = {
|
34
34
|
left: "vertical",
|
@@ -36,8 +36,8 @@ var T = (
|
|
36
36
|
top: "horizontal",
|
37
37
|
bottom: "horizontal"
|
38
38
|
}, I = {
|
39
|
-
vertical: function(
|
40
|
-
var
|
39
|
+
vertical: function(l, o) {
|
40
|
+
var t = v(l, 2), r = t[0], a = t[1], e = a.range(), i = g(r, o);
|
41
41
|
return {
|
42
42
|
x1: i,
|
43
43
|
x2: i,
|
@@ -45,8 +45,8 @@ var T = (
|
|
45
45
|
y2: e[1]
|
46
46
|
};
|
47
47
|
},
|
48
|
-
horizontal: function(
|
49
|
-
var
|
48
|
+
horizontal: function(l, o) {
|
49
|
+
var t = v(l, 2), r = t[0], a = t[1], e = r.range(), i = g(a, o);
|
50
50
|
return {
|
51
51
|
x1: e[0],
|
52
52
|
x2: e[1],
|
@@ -55,63 +55,63 @@ var T = (
|
|
55
55
|
};
|
56
56
|
}
|
57
57
|
}, w = {
|
58
|
-
vertical: function(
|
59
|
-
var
|
58
|
+
vertical: function(l, o, t) {
|
59
|
+
var r = v(l, 2), a = r[0], e = r[1], i = e.range(), s = g(a, o), _ = t !== void 0 ? g(a, t) - s : 100;
|
60
60
|
return {
|
61
|
-
x:
|
61
|
+
x: s,
|
62
62
|
y: i[1],
|
63
|
-
width:
|
63
|
+
width: _,
|
64
64
|
height: i[0] - i[1]
|
65
65
|
};
|
66
66
|
},
|
67
|
-
horizontal: function(
|
68
|
-
var
|
67
|
+
horizontal: function(l, o, t) {
|
68
|
+
var r = v(l, 2), a = r[0], e = r[1], i = a.range(), s = g(e, o), _ = t !== void 0 ? g(e, t) - s : 100;
|
69
69
|
return {
|
70
70
|
x: i[0],
|
71
|
-
y:
|
71
|
+
y: s,
|
72
72
|
width: i[1] - i[0],
|
73
|
-
height:
|
73
|
+
height: _
|
74
74
|
};
|
75
75
|
}
|
76
76
|
}, S = 10, U = {
|
77
|
-
left: function(
|
78
|
-
var
|
77
|
+
left: function(l, o) {
|
78
|
+
var t = v(l, 2), r = t[0], a = t[1], e = a.range(), i = g(r, o);
|
79
79
|
return {
|
80
80
|
x: i - S,
|
81
81
|
y: (e[0] + e[1]) / 2
|
82
82
|
};
|
83
83
|
},
|
84
|
-
right: function(
|
85
|
-
var
|
84
|
+
right: function(l, o) {
|
85
|
+
var t = v(l, 2), r = t[0], a = t[1], e = a.range(), i = g(r, o);
|
86
86
|
return {
|
87
87
|
x: i + S,
|
88
88
|
y: (e[0] + e[1]) / 2
|
89
89
|
};
|
90
90
|
},
|
91
|
-
top: function(
|
92
|
-
var
|
91
|
+
top: function(l, o) {
|
92
|
+
var t = v(l, 2), r = t[0], a = t[1], e = r.range(), i = g(a, o);
|
93
93
|
return {
|
94
94
|
x: (e[1] + e[0]) / 2,
|
95
95
|
y: i - S
|
96
96
|
};
|
97
97
|
},
|
98
|
-
bottom: function(
|
99
|
-
var
|
98
|
+
bottom: function(l, o) {
|
99
|
+
var t = v(l, 2), r = t[0], a = t[1], e = r.range(), i = g(a, o);
|
100
100
|
return {
|
101
101
|
x: (e[1] + e[0]) / 2,
|
102
102
|
y: i + S
|
103
103
|
};
|
104
104
|
}
|
105
105
|
}, h = /* @__PURE__ */ function(n) {
|
106
|
-
D(
|
107
|
-
var
|
108
|
-
function
|
109
|
-
return C(this,
|
106
|
+
D(o, n);
|
107
|
+
var l = F(o);
|
108
|
+
function o() {
|
109
|
+
return C(this, o), l.apply(this, arguments);
|
110
110
|
}
|
111
|
-
return M(
|
111
|
+
return M(o, [{
|
112
112
|
key: "getTitleProps",
|
113
113
|
value: function() {
|
114
|
-
var
|
114
|
+
var r = this.asProps, a = r.position, e = r.value;
|
115
115
|
return {
|
116
116
|
position: a,
|
117
117
|
value: e
|
@@ -120,7 +120,7 @@ var T = (
|
|
120
120
|
}, {
|
121
121
|
key: "getBackgroundProps",
|
122
122
|
value: function() {
|
123
|
-
var
|
123
|
+
var r = this.asProps, a = r.position, e = r.value;
|
124
124
|
return {
|
125
125
|
position: a,
|
126
126
|
value: e
|
@@ -129,14 +129,14 @@ var T = (
|
|
129
129
|
}, {
|
130
130
|
key: "render",
|
131
131
|
value: function() {
|
132
|
-
var
|
133
|
-
return
|
132
|
+
var r, a = this.Element, e = this.asProps, i = e.title, s = e.scale, _ = e.position, d = e.value, f = e.color, m = e.resolveColor, z = e.styles, $ = I[k[_]];
|
133
|
+
return r = u(z), /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(a, r.cn("SReferenceLine", x({
|
134
134
|
render: "line",
|
135
135
|
__excludeProps: ["data", "scale", "format", "value", "color"],
|
136
|
-
stroke: m(
|
137
|
-
}, $(
|
136
|
+
stroke: m(f)
|
137
|
+
}, $(s, d)))), i && /* @__PURE__ */ c.createElement(A.Title, null, i));
|
138
138
|
}
|
139
|
-
}]),
|
139
|
+
}]), o;
|
140
140
|
}(O);
|
141
141
|
P(h, "displayName", "ReferenceLine");
|
142
142
|
P(h, "style", T);
|
@@ -144,40 +144,40 @@ P(h, "defaultProps", {
|
|
144
144
|
position: "left"
|
145
145
|
});
|
146
146
|
function V(n) {
|
147
|
-
var
|
148
|
-
"transform-origin": "".concat(
|
147
|
+
var l, o = n.Element, t = n.styles, r = n.scale, a = n.position, e = n.value, i = U[a](r, e), s = i.x, _ = i.y, d = u(t), f = d.cn("STitle", {
|
148
|
+
"transform-origin": "".concat(s.toFixed(2), "px ").concat(_.toFixed(2), "px")
|
149
149
|
});
|
150
|
-
return
|
150
|
+
return l = u(t), /* @__PURE__ */ c.createElement(o, l.cn("STitle", {
|
151
151
|
render: "text",
|
152
152
|
childrenPosition: "inside",
|
153
|
-
className:
|
154
|
-
style:
|
153
|
+
className: f.className,
|
154
|
+
style: f.style,
|
155
155
|
position: a,
|
156
|
-
x:
|
157
|
-
y:
|
156
|
+
x: s,
|
157
|
+
y: _
|
158
158
|
}));
|
159
159
|
}
|
160
160
|
function b(n) {
|
161
|
-
var
|
162
|
-
return
|
161
|
+
var l, o = n.Element, t = n.styles, r = n.scale, a = n.position, e = a === void 0 ? "left" : a, i = n.value, s = n.endValue, _ = w[k[e]];
|
162
|
+
return l = u(t), /* @__PURE__ */ c.createElement(o, l.cn("SBackground", x({
|
163
163
|
render: "rect",
|
164
164
|
childrenPosition: "inside"
|
165
|
-
},
|
165
|
+
}, _(r, i, s))));
|
166
166
|
}
|
167
167
|
b.style = T;
|
168
|
-
var E = 8,
|
168
|
+
var E = 8, p = Math.sqrt(Math.pow(E, 2) + Math.pow(E, 2)), L = p * (1 / 2), B = p * (3 / 2), j = "M-".concat(p, ",-").concat(L, " L").concat(p, ",").concat(B, " M-").concat(L, ",-").concat(p, " L").concat(B, ",").concat(p);
|
169
169
|
function y(n) {
|
170
|
-
var
|
171
|
-
return
|
170
|
+
var l, o = n.Element, t = n.styles, r = n.scale, a = n.position, e = a === void 0 ? "left" : a, i = n.value, s = n.endValue, _ = n.uid, d = "path", f = w[k[e]], m = "".concat(_, "-pattern");
|
171
|
+
return l = u(t), /* @__PURE__ */ c.createElement("g", l.cn("g", {}), /* @__PURE__ */ c.createElement(o, l.cn("SStripes", x({
|
172
172
|
render: "rect",
|
173
173
|
childrenPosition: "inside",
|
174
174
|
fill: "url(#".concat(m, ")")
|
175
|
-
},
|
175
|
+
}, f(r, i, s)))), /* @__PURE__ */ c.createElement("pattern", l.cn("pattern", {
|
176
176
|
id: m,
|
177
177
|
patternUnits: "userSpaceOnUse",
|
178
|
-
width:
|
179
|
-
height:
|
180
|
-
}), /* @__PURE__ */
|
178
|
+
width: p,
|
179
|
+
height: p
|
180
|
+
}), /* @__PURE__ */ c.createElement(d, l.cn("SStripesPatternPath", {
|
181
181
|
d: j
|
182
182
|
}))));
|
183
183
|
}
|
@@ -1,53 +1,53 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import w from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import M from "@babel/runtime/helpers/esm/slicedToArray";
|
3
3
|
import z from "@babel/runtime/helpers/esm/classCallCheck";
|
4
4
|
import A from "@babel/runtime/helpers/esm/createClass";
|
5
|
-
import
|
5
|
+
import R from "@babel/runtime/helpers/esm/assertThisInitialized";
|
6
6
|
import F from "@babel/runtime/helpers/esm/inherits";
|
7
7
|
import I from "@babel/runtime/helpers/esm/createSuper";
|
8
|
-
import
|
8
|
+
import v from "@babel/runtime/helpers/esm/defineProperty";
|
9
9
|
import { sstyled as $ } from 'intergalactic/utils/lib/core/index';
|
10
|
-
import { sstyled as
|
10
|
+
import { sstyled as k, Component as U, assignProps as B } from 'intergalactic/core';
|
11
11
|
import s from "react";
|
12
12
|
import { transition as G } from "d3-transition";
|
13
13
|
import X from 'intergalactic/utils/lib/canUseDOM';
|
14
14
|
import Y from 'intergalactic/utils/lib/uniqueID';
|
15
15
|
import j from "./createElement.mjs";
|
16
16
|
import { getScatterPlotRadius as q } from "./utils.mjs";
|
17
|
-
import
|
17
|
+
import D from "./Tooltip.mjs";
|
18
18
|
import { PatternFill as K } from "./Pattern.mjs";
|
19
19
|
var L = (
|
20
20
|
/*__reshadow_css_start__*/
|
21
21
|
($.insert(
|
22
22
|
/*__inner_css_start__*/
|
23
|
-
".
|
24
|
-
"
|
23
|
+
".___SScatterPlot_vhfd4_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_vhfd4);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_vhfd4_gg_:hover{opacity:.8}}.___SScatterPlot_vhfd4_gg_.__color_vhfd4_gg_{fill:var(--color_vhfd4)}.___SScatterPlot_vhfd4_gg_.__pattern_vhfd4_gg_.__color_vhfd4_gg_{fill:var(--pattern_vhfd4);stroke:var(--color_vhfd4);stroke-width:1px}.___SScatterPlot_vhfd4_gg_.__transparent_vhfd4_gg_{opacity:.3}.___SValue_vhfd4_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_vhfd4_gg_.__color_vhfd4_gg_{stroke:var(--color_vhfd4)}.___SValue_vhfd4_gg_.__transparent_vhfd4_gg_{opacity:.3}",
|
24
|
+
"vhfd4_gg_"
|
25
25
|
), {
|
26
|
-
__SScatterPlot: "
|
27
|
-
_color: "
|
28
|
-
"--color": "--
|
29
|
-
_pattern: "
|
30
|
-
"--pattern": "--
|
31
|
-
_transparent: "
|
32
|
-
__SValue: "
|
33
|
-
"--duration": "--
|
26
|
+
__SScatterPlot: "___SScatterPlot_vhfd4_gg_",
|
27
|
+
_color: "__color_vhfd4_gg_",
|
28
|
+
"--color": "--color_vhfd4",
|
29
|
+
_pattern: "__pattern_vhfd4_gg_",
|
30
|
+
"--pattern": "--pattern_vhfd4",
|
31
|
+
_transparent: "__transparent_vhfd4_gg_",
|
32
|
+
__SValue: "___SValue_vhfd4_gg_",
|
33
|
+
"--duration": "--duration_vhfd4"
|
34
34
|
})
|
35
|
-
),
|
36
|
-
F(
|
37
|
-
var
|
38
|
-
function
|
35
|
+
), f = /* @__PURE__ */ function(x) {
|
36
|
+
F(d, x);
|
37
|
+
var h = I(d);
|
38
|
+
function d() {
|
39
39
|
var a;
|
40
|
-
z(this,
|
40
|
+
z(this, d);
|
41
41
|
for (var t = arguments.length, r = new Array(t), o = 0; o < t; o++)
|
42
42
|
r[o] = arguments[o];
|
43
|
-
return a =
|
43
|
+
return a = h.call.apply(h, [this].concat(r)), v(R(a), "virtualElement", X() ? document.createElement("div") : {}), v(R(a), "bindHandlerTooltip", function(e, c, p) {
|
44
44
|
return function(i) {
|
45
45
|
var l = i.clientX, _ = i.clientY, n = a.asProps.eventEmitter;
|
46
|
-
n.emit("setTooltipPosition", l, _), n.emit("setTooltipRenderingProps", c,
|
46
|
+
n.emit("setTooltipPosition", l, _), n.emit("setTooltipRenderingProps", c, p), n.emit("setTooltipVisible", e);
|
47
47
|
};
|
48
48
|
}), a;
|
49
49
|
}
|
50
|
-
return A(
|
50
|
+
return A(d, [{
|
51
51
|
key: "generateGetBoundingClientRect",
|
52
52
|
value: function() {
|
53
53
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
@@ -65,8 +65,8 @@ var L = (
|
|
65
65
|
}, {
|
66
66
|
key: "animationCircle",
|
67
67
|
value: function() {
|
68
|
-
var t = this.asProps, r = t.duration, o = t.uid, e = t.r, c = t.value,
|
69
|
-
r > 0 && l && i.transition().duration(r).attr("r",
|
68
|
+
var t = this.asProps, r = t.duration, o = t.uid, e = t.r, c = t.value, p = e || q(c), i = G().selection().selectAll("[id^=".concat(o, "]")).attr("r", 0), l = i.node();
|
69
|
+
r > 0 && l && i.transition().duration(r).attr("r", p);
|
70
70
|
}
|
71
71
|
}, {
|
72
72
|
key: "componentDidUpdate",
|
@@ -81,78 +81,78 @@ var L = (
|
|
81
81
|
}, {
|
82
82
|
key: "renderCircle",
|
83
83
|
value: function(t, r) {
|
84
|
-
var o, e = this.asProps, c = e.color,
|
85
|
-
return Number.isNaN(t[i]) || Number.isNaN(t[l]) ? null : (o =
|
84
|
+
var o, e = this.asProps, c = e.color, p = e.scale, i = e.x, l = e.y, _ = e.r, n = e.offset, S = e.styles, u = e.uid, y = e.duration, g = e.value, N = e.valueColor, C = e.transparent, P = e.resolveColor, m = e.patterns, E = M(p, 2), T = E[0], b = E[1], V = this.Element, H = "text";
|
85
|
+
return Number.isNaN(t[i]) || Number.isNaN(t[l]) ? null : (o = k(S), /* @__PURE__ */ s.createElement("g", o.cn("g", {
|
86
86
|
"aria-hidden": !0,
|
87
87
|
key: "circle(#".concat(r, ")"),
|
88
88
|
onMouseMove: this.bindHandlerTooltip(!0, this.props, {
|
89
89
|
xIndex: r,
|
90
90
|
index: r,
|
91
|
-
patterns:
|
91
|
+
patterns: m
|
92
92
|
}),
|
93
93
|
onMouseLeave: this.bindHandlerTooltip(!1, this.props, {
|
94
94
|
xIndex: r,
|
95
95
|
index: r,
|
96
|
-
patterns:
|
96
|
+
patterns: m
|
97
97
|
})
|
98
|
-
}), /* @__PURE__ */ s.createElement(
|
98
|
+
}), /* @__PURE__ */ s.createElement(V, o.cn("SScatterPlot", {
|
99
99
|
"aria-hidden": !0,
|
100
|
-
id: "".concat(
|
100
|
+
id: "".concat(u).concat(r),
|
101
101
|
index: r,
|
102
102
|
render: "circle",
|
103
|
-
clipPath: "url(#".concat(
|
104
|
-
cx:
|
105
|
-
cy:
|
103
|
+
clipPath: "url(#".concat(u, ")"),
|
104
|
+
cx: T(t[i]) + n[0],
|
105
|
+
cy: b(t[l]) + n[1],
|
106
106
|
color: P(c),
|
107
|
-
pattern:
|
107
|
+
pattern: m ? "url(#".concat(u, "-").concat(r, "-pattern)") : void 0,
|
108
108
|
r: _,
|
109
109
|
"use:duration": "".concat(y, "ms"),
|
110
|
-
transparent:
|
111
|
-
})),
|
112
|
-
id: "".concat(
|
110
|
+
transparent: C
|
111
|
+
})), m && /* @__PURE__ */ s.createElement(K, o.cn("PatternFill", {
|
112
|
+
id: "".concat(u, "-").concat(r, "-pattern"),
|
113
113
|
patternKey: c,
|
114
114
|
color: P(c),
|
115
|
-
patterns:
|
116
|
-
})), t[
|
115
|
+
patterns: m
|
116
|
+
})), t[g] !== void 0 && /* @__PURE__ */ s.createElement(H, o.cn("SValue", {
|
117
117
|
"aria-hidden": !0,
|
118
|
-
x:
|
119
|
-
y:
|
118
|
+
x: T(t[i]) + n[0],
|
119
|
+
y: b(t[l]) + n[1],
|
120
120
|
dy: ".3em",
|
121
|
-
clipPath: "url(#".concat(
|
122
|
-
color: P(
|
123
|
-
transparent:
|
124
|
-
}), t[
|
121
|
+
clipPath: "url(#".concat(u, ")"),
|
122
|
+
color: P(N),
|
123
|
+
transparent: C
|
124
|
+
}), t[g])));
|
125
125
|
}
|
126
126
|
}, {
|
127
127
|
key: "render",
|
128
128
|
value: function() {
|
129
|
-
var t = this.asProps, r = t.data, o = t.uid, e = t.scale, c = t.x,
|
130
|
-
return this.asProps.dataHintsHandler.specifyDataRowFields(c,
|
129
|
+
var t = this.asProps, r = t.data, o = t.uid, e = t.scale, c = t.x, p = t.y, i = t.value, l = M(e, 2), _ = l[0], n = l[1], S = Math.abs(_.range()[0] - _.range()[1]), u = Math.abs(n.range()[0] - n.range()[1]), y = Math.min(_.range()[0], _.range()[1]), g = Math.min(n.range()[0], n.range()[1]);
|
130
|
+
return this.asProps.dataHintsHandler.specifyDataRowFields(c, p, i), this.asProps.dataHintsHandler.establishDataType("points-cloud"), /* @__PURE__ */ s.createElement(s.Fragment, null, r.map(this.renderCircle.bind(this)), /* @__PURE__ */ s.createElement("clipPath", {
|
131
131
|
id: o
|
132
132
|
}, /* @__PURE__ */ s.createElement("rect", {
|
133
133
|
x: y,
|
134
|
-
y:
|
134
|
+
y: g,
|
135
135
|
width: "".concat(S, "px"),
|
136
|
-
height: "".concat(
|
136
|
+
height: "".concat(u, "px")
|
137
137
|
})));
|
138
138
|
}
|
139
|
-
}]),
|
139
|
+
}]), d;
|
140
140
|
}(U);
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
141
|
+
v(f, "displayName", "ScatterPlot");
|
142
|
+
v(f, "style", L);
|
143
|
+
v(f, "enhance", [Y()]);
|
144
|
+
v(f, "defaultProps", {
|
145
145
|
offset: [0, 0],
|
146
146
|
duration: 500
|
147
147
|
});
|
148
|
-
var O = function(
|
149
|
-
var
|
150
|
-
return a =
|
148
|
+
var O = function(h) {
|
149
|
+
var d = arguments[0], a, t = D;
|
150
|
+
return a = k(h.styles), /* @__PURE__ */ s.createElement(t, a.cn("SScatterPlotTooltip", w({}, B({
|
151
151
|
excludeAnchorProps: !0
|
152
|
-
},
|
153
|
-
},
|
154
|
-
Tooltip: [O,
|
152
|
+
}, d))));
|
153
|
+
}, vt = j(f, {
|
154
|
+
Tooltip: [O, D._______childrenComponents]
|
155
155
|
});
|
156
156
|
export {
|
157
|
-
|
157
|
+
vt as default
|
158
158
|
};
|