intergalactic 15.128.0 → 15.129.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,105 +1,105 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import U from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import w from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
|
+
import F from "@babel/runtime/helpers/esm/classCallCheck";
|
4
|
+
import N from "@babel/runtime/helpers/esm/createClass";
|
5
|
+
import S from "@babel/runtime/helpers/esm/assertThisInitialized";
|
6
|
+
import j from "@babel/runtime/helpers/esm/inherits";
|
7
|
+
import B from "@babel/runtime/helpers/esm/createSuper";
|
8
8
|
import h from "@babel/runtime/helpers/esm/defineProperty";
|
9
9
|
import P from "@babel/runtime/helpers/esm/slicedToArray";
|
10
|
-
import { sstyled as
|
11
|
-
import { Component as
|
12
|
-
import
|
13
|
-
import { arc as
|
14
|
-
import { interpolate as
|
15
|
-
import { transition as
|
10
|
+
import { sstyled as V } from 'intergalactic/utils/lib/core/index';
|
11
|
+
import { Component as X, sstyled as q, assignProps as G } from 'intergalactic/core';
|
12
|
+
import g from "react";
|
13
|
+
import { arc as z, pie as Y } from "d3-shape";
|
14
|
+
import { interpolate as C } from "d3-interpolate";
|
15
|
+
import { transition as x } from "d3-transition";
|
16
16
|
import W from 'intergalactic/utils/lib/canUseDOM';
|
17
17
|
import J from 'intergalactic/utils/lib/getOriginChildren';
|
18
18
|
import Q from 'intergalactic/utils/lib/uniqueID';
|
19
19
|
import Z from "./createElement.mjs";
|
20
|
-
import { getChartDefaultColorName as
|
21
|
-
import
|
20
|
+
import { getChartDefaultColorName as H } from "./utils.mjs";
|
21
|
+
import M from "./Tooltip.mjs";
|
22
22
|
import { PatternFill as tt } from "./Pattern.mjs";
|
23
23
|
var et = ["Element", "styles", "d3Arc", "data", "color", "$animationActivePie", "active", "d3ArcOut", "name", "dataKey", "dataHintsHandler", "transparent", "innerRadius", "outerRadius", "resolveColor", "halfsize", "uid", "patterns"], at = (
|
24
24
|
/*__reshadow_css_start__*/
|
25
|
-
(
|
25
|
+
(V.insert(
|
26
26
|
/*__inner_css_start__*/
|
27
|
-
".
|
28
|
-
"
|
27
|
+
".___SPie_1q4t3_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--color_1q4t3)}.___SPie_1q4t3_gg_.__pattern_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--pattern_1q4t3);stroke:var(--color_1q4t3);stroke-width:1px}.___SPie_1q4t3_gg_.__transparent_1q4t3_gg_{opacity:.3}.___SEmptyData_1q4t3_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--color_1q4t3)}.___SLabel_1q4t3_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}",
|
28
|
+
"1q4t3_gg_"
|
29
29
|
), {
|
30
|
-
__SPie: "
|
31
|
-
_color: "
|
32
|
-
"--color": "--
|
33
|
-
_pattern: "
|
34
|
-
"--pattern": "--
|
35
|
-
_transparent: "
|
36
|
-
__SEmptyData: "
|
37
|
-
__SLabel: "
|
30
|
+
__SPie: "___SPie_1q4t3_gg_",
|
31
|
+
_color: "__color_1q4t3_gg_",
|
32
|
+
"--color": "--color_1q4t3",
|
33
|
+
_pattern: "__pattern_1q4t3_gg_",
|
34
|
+
"--pattern": "--pattern_1q4t3",
|
35
|
+
_transparent: "__transparent_1q4t3_gg_",
|
36
|
+
__SEmptyData: "___SEmptyData_1q4t3_gg_",
|
37
|
+
__SLabel: "___SLabel_1q4t3_gg_"
|
38
38
|
})
|
39
|
-
),
|
39
|
+
), I = Symbol("DEFAULT_INSTANCE");
|
40
40
|
function rt(t) {
|
41
|
-
var c = t.selector,
|
42
|
-
return
|
41
|
+
var c = t.selector, m = t.duration, a = t.halfsize, e = t.d3Arc, n = t.d3ArcOut, s = t.arcs, i = t.activeIndexPie;
|
42
|
+
return x().selection().selectAll(c).interrupt().transition().duration(m).attrTween("d", function(o, d) {
|
43
43
|
if (!s[d]) return function() {
|
44
44
|
return "";
|
45
45
|
};
|
46
|
-
var
|
47
|
-
r.arc && (v = r.arc.startAngle,
|
48
|
-
var A =
|
46
|
+
var u = Object.assign({}, s[d]), r = this, l = a ? -Math.PI / 2 : 0, v = l, p = l;
|
47
|
+
r.arc && (v = r.arc.startAngle, p = r.arc.endAngle);
|
48
|
+
var A = C(v, u.startAngle), f = C(p, u.endAngle);
|
49
49
|
return function(_) {
|
50
|
-
return
|
50
|
+
return u.startAngle = A(_), u.endAngle = f(_), r.arc = u, d === i ? n(r.arc) : e(r.arc);
|
51
51
|
};
|
52
52
|
});
|
53
53
|
}
|
54
54
|
function nt(t) {
|
55
|
-
var c = t.data,
|
56
|
-
return
|
57
|
-
var o = P(s, 2), d = o[0],
|
58
|
-
return function(
|
59
|
-
var v = r(
|
55
|
+
var c = t.data, m = t.selector, a = t.element, e = t.duration, n = t.innerRadius, s = t.outerRadiusStartEnd, i = t.paddingAngle;
|
56
|
+
return x().selection().select(m).interrupt().transition().duration(e).attrTween("d", function() {
|
57
|
+
var o = P(s, 2), d = o[0], u = o[1], r = C(d, u);
|
58
|
+
return function(l) {
|
59
|
+
var v = r(l);
|
60
60
|
a.dataset.currentRadius = v;
|
61
|
-
var
|
62
|
-
return
|
61
|
+
var p = z().innerRadius(n).outerRadius(v).padAngle(i);
|
62
|
+
return p(c);
|
63
63
|
};
|
64
64
|
});
|
65
65
|
}
|
66
66
|
var T = 8;
|
67
|
-
function
|
68
|
-
var c = t.size,
|
67
|
+
function $(t) {
|
68
|
+
var c = t.size, m = t.halfsize, a = P(c, 2), e = a[0], n = a[1], s = m ? Math.max : Math.min;
|
69
69
|
return s(e - T * 2, n - T * 2) / 2;
|
70
70
|
}
|
71
|
-
var
|
72
|
-
|
73
|
-
var c =
|
74
|
-
function
|
71
|
+
var b = /* @__PURE__ */ function(t) {
|
72
|
+
j(m, t);
|
73
|
+
var c = B(m);
|
74
|
+
function m() {
|
75
75
|
var a;
|
76
|
-
|
76
|
+
F(this, m);
|
77
77
|
for (var e = arguments.length, n = new Array(e), s = 0; s < e; s++)
|
78
78
|
n[s] = arguments[s];
|
79
|
-
return a = c.call.apply(c, [this].concat(n)), h(
|
80
|
-
return function(
|
81
|
-
var r =
|
82
|
-
v.emit("setTooltipPosition", r,
|
79
|
+
return a = c.call.apply(c, [this].concat(n)), h(S(a), "virtualElement", W() ? document.createElement("div") : {}), h(S(a), "activeIndexPie", void 0), h(S(a), "canAnimatedHover", !1), h(S(a), "bindHandlerTooltip", function(i, o, d) {
|
80
|
+
return function(u) {
|
81
|
+
var r = u.clientX, l = u.clientY, v = a.asProps.eventEmitter;
|
82
|
+
v.emit("setTooltipPosition", r, l), v.emit("setTooltipRenderingProps", o, d), v.emit("setTooltipVisible", i);
|
83
83
|
};
|
84
|
-
}), h(
|
85
|
-
var o = i.data, d = i.active,
|
84
|
+
}), h(S(a), "animationActivePie", function(i) {
|
85
|
+
var o = i.data, d = i.active, u = i.selector, r = i.element, l = a.asProps, v = l.duration, p = l.innerRadius, A = l.d3Arc, f = l.paddingAngle, _ = A.outerRadius()(), R = d ? [+r.dataset.currentRadius || _, _ + T] : [+r.dataset.currentRadius || _, _];
|
86
86
|
a.canAnimatedHover && v > 0 && nt({
|
87
87
|
data: o,
|
88
|
-
selector: "#".concat(a.id, " ").concat(
|
88
|
+
selector: "#".concat(a.id, " ").concat(u),
|
89
89
|
element: r,
|
90
90
|
duration: v === 0 ? 0 : 300,
|
91
|
-
innerRadius:
|
92
|
-
outerRadiusStartEnd:
|
91
|
+
innerRadius: p,
|
92
|
+
outerRadiusStartEnd: R,
|
93
93
|
paddingAngle: f
|
94
94
|
});
|
95
|
-
}), h(
|
95
|
+
}), h(S(a), "animationTimeout", null), h(S(a), "animationUpdatePie", function() {
|
96
96
|
clearTimeout(a.animationTimeout), a.animationTimeout = setTimeout(function() {
|
97
|
-
var i = a.asProps, o = i.duration, d = i.d3Arc,
|
97
|
+
var i = a.asProps, o = i.duration, d = i.d3Arc, u = i.halfsize, r = i.d3ArcOut;
|
98
98
|
a.canAnimatedHover = !1, o > 0 ? rt({
|
99
99
|
selector: "#".concat(a.id, ' [data-ui-name="Donut.Pie"]'),
|
100
100
|
duration: o,
|
101
101
|
arcs: a.arcs,
|
102
|
-
halfsize:
|
102
|
+
halfsize: u,
|
103
103
|
d3Arc: d,
|
104
104
|
d3ArcOut: r,
|
105
105
|
activeIndexPie: a.activeIndexPie
|
@@ -109,7 +109,7 @@ var D = /* @__PURE__ */ function(t) {
|
|
109
109
|
}, 0);
|
110
110
|
}), a;
|
111
111
|
}
|
112
|
-
return
|
112
|
+
return N(m, [{
|
113
113
|
key: "id",
|
114
114
|
get: function() {
|
115
115
|
var e = this.asProps, n = e.uid, s = e.id;
|
@@ -134,37 +134,37 @@ var D = /* @__PURE__ */ function(t) {
|
|
134
134
|
key: "getArcs",
|
135
135
|
value: function() {
|
136
136
|
var e = this.asProps, n = e.Children, s = e.data, i = e.d3Pie, o = Object.entries(s);
|
137
|
-
if (i[
|
138
|
-
var d =
|
139
|
-
return /* @__PURE__ */
|
137
|
+
if (i[I]) {
|
138
|
+
var d = g.Children.toArray(J(n)).reduce(function(r, l) {
|
139
|
+
return /* @__PURE__ */ g.isValidElement(l) && l.type === ut.Pie && r.push(l.props.dataKey), r;
|
140
140
|
}, []);
|
141
141
|
o = Object.entries(s).filter(function(r) {
|
142
|
-
var
|
143
|
-
return d.includes(v) &&
|
144
|
-
}).sort(function(r,
|
145
|
-
var v = P(r, 1),
|
146
|
-
return d.indexOf(
|
142
|
+
var l = P(r, 2), v = l[0], p = l[1];
|
143
|
+
return d.includes(v) && p > 0;
|
144
|
+
}).sort(function(r, l) {
|
145
|
+
var v = P(r, 1), p = v[0], A = P(l, 1), f = A[0];
|
146
|
+
return d.indexOf(p) > d.indexOf(f) ? 1 : -1;
|
147
147
|
});
|
148
148
|
}
|
149
|
-
var
|
150
|
-
return
|
149
|
+
var u = o.reduce(function(r, l) {
|
150
|
+
return l[1] && (r += l[1]), r;
|
151
151
|
}, 0) / 100;
|
152
152
|
return o = o.map(function(r) {
|
153
|
-
return r[1] && r[1] <
|
153
|
+
return r[1] && r[1] < u && (r[1] = u), r;
|
154
154
|
}), i(o);
|
155
155
|
}
|
156
156
|
}, {
|
157
157
|
key: "getPieProps",
|
158
158
|
value: function(e, n) {
|
159
|
-
var s = this, i = this.asProps, o = i.d3Arc, d = i.d3ArcOut,
|
160
|
-
return
|
159
|
+
var s = this, i = this.asProps, o = i.d3Arc, d = i.d3ArcOut, u = i.innerRadius, r = i.outerRadius, l = i.halfsize, v = i.resolveColor, p = i.uid, A = i.patterns, f = e.active, _ = this.arcs.find(function(y) {
|
160
|
+
return y.data[0] === e.dataKey;
|
161
161
|
});
|
162
162
|
f && (this.activeIndexPie = n);
|
163
|
-
var
|
163
|
+
var R = {
|
164
164
|
dataKey: e.dataKey,
|
165
165
|
name: e.name,
|
166
166
|
resolveColor: v,
|
167
|
-
color: e.color ||
|
167
|
+
color: e.color || H(n),
|
168
168
|
active: e.active,
|
169
169
|
transparent: e.transparent,
|
170
170
|
patterns: A
|
@@ -173,30 +173,30 @@ var D = /* @__PURE__ */ function(t) {
|
|
173
173
|
data: _,
|
174
174
|
d3Arc: o,
|
175
175
|
d3ArcOut: d,
|
176
|
-
innerRadius:
|
176
|
+
innerRadius: u,
|
177
177
|
outerRadius: r,
|
178
|
-
uid: "".concat(
|
178
|
+
uid: "".concat(p, "-").concat(n),
|
179
179
|
patterns: A,
|
180
|
-
halfsize:
|
181
|
-
color: e.color ||
|
180
|
+
halfsize: l,
|
181
|
+
color: e.color || H(n),
|
182
182
|
resolveColor: v,
|
183
183
|
$animationActivePie: this.animationActivePie,
|
184
|
-
onMouseMove: this.bindHandlerTooltip(!0, e,
|
185
|
-
onMouseLeave: this.bindHandlerTooltip(!1, e,
|
186
|
-
onMouseOver: function(
|
184
|
+
onMouseMove: this.bindHandlerTooltip(!0, e, R),
|
185
|
+
onMouseLeave: this.bindHandlerTooltip(!1, e, R),
|
186
|
+
onMouseOver: function(E) {
|
187
187
|
f || s.animationActivePie({
|
188
188
|
active: !0,
|
189
189
|
data: _,
|
190
|
-
selector: '[d="'.concat(
|
191
|
-
element:
|
190
|
+
selector: '[d="'.concat(E.target.getAttribute("d"), '"]'),
|
191
|
+
element: E.target
|
192
192
|
});
|
193
193
|
},
|
194
|
-
onMouseOut: function(
|
194
|
+
onMouseOut: function(E) {
|
195
195
|
f || s.animationActivePie({
|
196
196
|
active: !1,
|
197
197
|
data: _,
|
198
|
-
selector: '[d="'.concat(
|
199
|
-
element:
|
198
|
+
selector: '[d="'.concat(E.target.getAttribute("d"), '"]'),
|
199
|
+
element: E.target
|
200
200
|
});
|
201
201
|
}
|
202
202
|
};
|
@@ -225,8 +225,8 @@ var D = /* @__PURE__ */ function(t) {
|
|
225
225
|
value: function() {
|
226
226
|
var e = this.asProps, n = e.halfsize, s = e.size;
|
227
227
|
this.asProps.dataHintsHandler.establishDataType("values-set");
|
228
|
-
var i = P(s, 2), o = i[0], d = i[1],
|
229
|
-
return this.arcs = this.getArcs(), /* @__PURE__ */
|
228
|
+
var i = P(s, 2), o = i[0], d = i[1], u = this.Element, r = n ? 1 : 2;
|
229
|
+
return this.arcs = this.getArcs(), /* @__PURE__ */ g.createElement(u, {
|
230
230
|
"aria-hidden": !0,
|
231
231
|
id: this.id,
|
232
232
|
render: "g",
|
@@ -234,65 +234,65 @@ var D = /* @__PURE__ */ function(t) {
|
|
234
234
|
transform: "translate(".concat(o / 2, ",").concat(d / r, ")")
|
235
235
|
});
|
236
236
|
}
|
237
|
-
}]),
|
238
|
-
}(
|
239
|
-
h(
|
240
|
-
h(
|
241
|
-
h(
|
242
|
-
h(
|
243
|
-
var c = t.innerRadius,
|
237
|
+
}]), m;
|
238
|
+
}(X);
|
239
|
+
h(b, "displayName", "Donut");
|
240
|
+
h(b, "style", at);
|
241
|
+
h(b, "enhance", [Q()]);
|
242
|
+
h(b, "defaultProps", function(t) {
|
243
|
+
var c = t.innerRadius, m = c === void 0 ? 0 : c, a = t.paddingAngle, e = a === void 0 ? 0 : a, n = t.outerRadius, s = t.halfsize, i = s === void 0 ? !1 : s, o = t.$rootProps.size, d = z().outerRadius(n || $({
|
244
244
|
size: o,
|
245
245
|
halfsize: i,
|
246
246
|
outerRadius: n
|
247
|
-
})).innerRadius(
|
247
|
+
})).innerRadius(m).padAngle(e), u = z().outerRadius((n || $({
|
248
248
|
size: o,
|
249
249
|
halfsize: i
|
250
|
-
})) + T).innerRadius(
|
251
|
-
var v = P(
|
252
|
-
return
|
250
|
+
})) + T).innerRadius(m).padAngle(e), r = Y().sort(null).value(function(l) {
|
251
|
+
var v = P(l, 2), p = v[1];
|
252
|
+
return p;
|
253
253
|
});
|
254
|
-
return r[
|
254
|
+
return r[I] = !0, i && (r = r.startAngle(-Math.PI / 2).endAngle(Math.PI / 2)), {
|
255
255
|
d3Pie: r,
|
256
256
|
d3Arc: d,
|
257
|
-
d3ArcOut:
|
257
|
+
d3ArcOut: u,
|
258
258
|
duration: 500,
|
259
259
|
paddingAngle: e
|
260
260
|
};
|
261
261
|
});
|
262
262
|
function it(t) {
|
263
|
-
var c,
|
264
|
-
return
|
265
|
-
if (
|
266
|
-
if (
|
267
|
-
|
263
|
+
var c, m = t.Element, a = t.styles, e = t.d3Arc, n = t.data, s = t.color, i = t.$animationActivePie, o = t.active, d = t.d3ArcOut, u = t.name, r = t.dataKey, l = t.dataHintsHandler, v = t.transparent, p = t.innerRadius, A = t.outerRadius, f = t.resolveColor, _ = t.halfsize, R = t.uid, y = t.patterns, E = w(t, et), k = g.useState(!1), O = P(k, 2), L = O[0], K = O[1], D = g.useRef(null);
|
264
|
+
return g.useEffect(function() {
|
265
|
+
if (D.current) {
|
266
|
+
if (D.current.dataset.currentRadius = (o ? d : e).outerRadius()(), !L) {
|
267
|
+
K(!0);
|
268
268
|
return;
|
269
269
|
}
|
270
270
|
o != null && i({
|
271
271
|
active: o,
|
272
272
|
data: n,
|
273
|
-
selector: '[name="'.concat(
|
274
|
-
element:
|
273
|
+
selector: '[name="'.concat(E.name, '"]'),
|
274
|
+
element: D.current
|
275
275
|
});
|
276
276
|
}
|
277
|
-
}, [o, !!n]),
|
278
|
-
|
279
|
-
}, [o,
|
277
|
+
}, [o, !!n]), g.useEffect(function() {
|
278
|
+
D.current && (D.current.dataset.currentRadius = (o ? d : e).outerRadius()());
|
279
|
+
}, [o, p, A, _, !!n]), n ? (l.establishDataType("values-set"), l.describeValueEntity(r, u), /* @__PURE__ */ g.createElement(g.Fragment, null, (c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SPie", {
|
280
280
|
render: "path",
|
281
|
-
ref:
|
281
|
+
ref: D,
|
282
282
|
color: f(s),
|
283
|
-
pattern:
|
283
|
+
pattern: y ? "url(#".concat(R, "-pattern)") : void 0,
|
284
284
|
d: o ? d(n) : e(n),
|
285
285
|
transparent: v
|
286
|
-
}))),
|
287
|
-
id: "".concat(
|
286
|
+
}))), y && /* @__PURE__ */ g.createElement(tt, c.cn("PatternFill", {
|
287
|
+
id: "".concat(R, "-pattern"),
|
288
288
|
patternKey: s,
|
289
289
|
color: f(s),
|
290
|
-
patterns:
|
290
|
+
patterns: y
|
291
291
|
})))) : null;
|
292
292
|
}
|
293
293
|
function ot(t) {
|
294
|
-
var c,
|
295
|
-
return c =
|
294
|
+
var c, m = t.Element, a = t.styles, e = t.d3Arc, n = t.color, s = t.resolveColor;
|
295
|
+
return c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SEmptyData", {
|
296
296
|
render: "path",
|
297
297
|
color: s(n),
|
298
298
|
d: e({
|
@@ -302,25 +302,25 @@ function ot(t) {
|
|
302
302
|
}));
|
303
303
|
}
|
304
304
|
function st(t) {
|
305
|
-
var c,
|
306
|
-
return i.setTitle("vertical", s || n), c =
|
305
|
+
var c, m = t.Element, a = t.styles, e = t.Children, n = t.children, s = t.label, i = t.dataHintsHandler, o = t.x, d = o === void 0 ? 0 : o, u = t.y, r = u === void 0 ? 0 : u;
|
306
|
+
return i.setTitle("vertical", s || n), c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SLabel", {
|
307
307
|
render: "text",
|
308
308
|
x: d,
|
309
309
|
y: r,
|
310
310
|
"aria-hidden": !0
|
311
|
-
}), /* @__PURE__ */
|
311
|
+
}), /* @__PURE__ */ g.createElement(e, c.cn("Children", {})));
|
312
312
|
}
|
313
|
-
var
|
314
|
-
var
|
315
|
-
return a =
|
313
|
+
var lt = function(c) {
|
314
|
+
var m = arguments[0], a, e = M;
|
315
|
+
return a = q(c.styles), /* @__PURE__ */ g.createElement(e, a.cn("SDonutTooltip", U({}, G({
|
316
316
|
excludeAnchorProps: !0
|
317
|
-
},
|
318
|
-
},
|
317
|
+
}, m))));
|
318
|
+
}, ut = Z(b, {
|
319
319
|
Pie: it,
|
320
320
|
Label: st,
|
321
321
|
EmptyData: ot,
|
322
|
-
Tooltip: [
|
322
|
+
Tooltip: [lt, M._______childrenComponents]
|
323
323
|
});
|
324
324
|
export {
|
325
|
-
|
325
|
+
ut as default
|
326
326
|
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import u from "@babel/runtime/helpers/esm/slicedToArray";
|
2
2
|
import { sstyled as U } from 'intergalactic/utils/lib/core/index';
|
3
3
|
import { bisector as W } from "d3-array";
|
4
4
|
import o from "react";
|
5
|
-
import { sstyled as
|
5
|
+
import { sstyled as w } from 'intergalactic/core';
|
6
6
|
import A from 'intergalactic/utils/lib/rafTrottle';
|
7
7
|
import Y from "./createElement.mjs";
|
8
8
|
import { interpolateValue as Z, eventToPoint as tt, invert as et, getChartDefaultColorName as rt } from "./utils.mjs";
|
@@ -11,75 +11,75 @@ var nt = (
|
|
11
11
|
/*__reshadow_css_start__*/
|
12
12
|
(U.insert(
|
13
13
|
/*__inner_css_start__*/
|
14
|
-
".
|
15
|
-
"
|
14
|
+
".___SDots_wl49d_gg_ .___SDot_wl49d_gg_{transition-duration:var(--duration_wl49d)}.___SDot_wl49d_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_wl49d_gg_.__hide_wl49d_gg_{display:none}.___SDot_wl49d_gg_.__color_wl49d_gg_{fill:var(--color_wl49d)}.___SDot_wl49d_gg_.__transparent_wl49d_gg_{opacity:.3}",
|
15
|
+
"wl49d_gg_"
|
16
16
|
), {
|
17
|
-
__SDot: "
|
18
|
-
_hide: "
|
19
|
-
_color: "
|
20
|
-
"--color": "--
|
21
|
-
_transparent: "
|
22
|
-
__SDots: "
|
23
|
-
"--duration": "--
|
17
|
+
__SDot: "___SDot_wl49d_gg_",
|
18
|
+
_hide: "__hide_wl49d_gg_",
|
19
|
+
_color: "__color_wl49d_gg_",
|
20
|
+
"--color": "--color_wl49d",
|
21
|
+
_transparent: "__transparent_wl49d_gg_",
|
22
|
+
__SDots: "___SDots_wl49d_gg_",
|
23
|
+
"--duration": "--duration_wl49d"
|
24
24
|
})
|
25
25
|
);
|
26
26
|
function I(t) {
|
27
|
-
var
|
28
|
-
return e[
|
29
|
-
}).center, j = o.useState(null), k =
|
27
|
+
var h, D = t.Element, v = t.styles, f = t.color, n = t.d3, x = t.x, M = t.y, g = t.eventEmitter, m = t.display, R = t.hide, N = t.rootRef, y = t.scale, p = t.duration, X = p === void 0 ? 500 : p, C = t.transparent, E = t.radius, B = E === void 0 ? 4 : E, P = t.resolveColor, s = t.patterns, V = W(function(e) {
|
28
|
+
return e[x];
|
29
|
+
}).center, j = o.useState(null), k = u(j, 2), S = k[0], $ = k[1], _ = o.useMemo(function() {
|
30
30
|
return t.data.filter(function(e) {
|
31
|
-
return e[
|
31
|
+
return e[M] !== Z;
|
32
32
|
});
|
33
33
|
}, [t.data]), q = o.useCallback(A(function(e) {
|
34
|
-
var a =
|
34
|
+
var a = u(y, 1), r = a[0], d = tt(e, N.current), c = u(d, 1), i = c[0], l = et(r, i);
|
35
35
|
$(V(_, l));
|
36
|
-
}), [
|
36
|
+
}), [y, _]), F = o.useCallback(A(function() {
|
37
37
|
$(null);
|
38
38
|
}), []);
|
39
39
|
o.useEffect(function() {
|
40
|
-
var e =
|
40
|
+
var e = g.subscribe("onMouseMoveChart", function(r) {
|
41
41
|
r.persist(), q(r);
|
42
|
-
}), a =
|
42
|
+
}), a = g.subscribe("onMouseLeaveChart", F);
|
43
43
|
return function() {
|
44
44
|
e(), a();
|
45
45
|
};
|
46
|
-
}, [
|
46
|
+
}, [g, y, _, x, M]);
|
47
47
|
var G = _.reduce(function(e, a, r) {
|
48
|
-
var
|
48
|
+
var d = n.defined()(_[r - 1] || {}), c = n.defined()(_[r + 1] || {}), i = r === S, l = typeof m == "function" ? m(r, r === S, !d && !c) : m || r === S || !d && !c, T = B * (i ? 5 / 4 : 1);
|
49
49
|
if (!n.defined()(a) || !l) return e;
|
50
|
-
var
|
51
|
-
patternKey:
|
50
|
+
var b = f || rt(0), J = at({
|
51
|
+
patternKey: b,
|
52
52
|
patterns: s
|
53
|
-
}),
|
53
|
+
}), z = u(J, 2), O = z[0], Q = z[1];
|
54
54
|
if (s) {
|
55
|
-
var
|
56
|
-
e.push((
|
55
|
+
var L;
|
56
|
+
e.push((L = w(v), /* @__PURE__ */ o.createElement(D, L.cn("SDot", {
|
57
57
|
render: ot,
|
58
58
|
color: P(f),
|
59
|
-
patternKey:
|
59
|
+
patternKey: b,
|
60
60
|
patterns: s,
|
61
61
|
key: "".concat(r),
|
62
62
|
value: a,
|
63
63
|
visible: l,
|
64
64
|
active: i,
|
65
|
-
hide:
|
65
|
+
hide: R,
|
66
66
|
transparent: C,
|
67
67
|
x: n.x()(a) - O / 2,
|
68
68
|
y: n.y()(a) - Q / 2,
|
69
69
|
radius: T
|
70
70
|
}))));
|
71
71
|
} else {
|
72
|
-
var
|
73
|
-
e.push((
|
72
|
+
var K;
|
73
|
+
e.push((K = w(v), /* @__PURE__ */ o.createElement(D, K.cn("SDot", {
|
74
74
|
render: "circle",
|
75
75
|
color: P(f),
|
76
|
-
patternKey:
|
76
|
+
patternKey: b,
|
77
77
|
patterns: s,
|
78
78
|
key: "".concat(r),
|
79
79
|
value: a,
|
80
80
|
visible: l,
|
81
81
|
active: i,
|
82
|
-
hide:
|
82
|
+
hide: R,
|
83
83
|
transparent: C,
|
84
84
|
cx: n.x()(a),
|
85
85
|
cy: n.y()(a),
|
@@ -88,12 +88,12 @@ function I(t) {
|
|
88
88
|
}
|
89
89
|
return e;
|
90
90
|
}, []), H = "g";
|
91
|
-
return
|
91
|
+
return h = w(v), /* @__PURE__ */ o.createElement(H, h.cn("SDots", {
|
92
92
|
duration: "".concat(X, "ms")
|
93
93
|
}), G);
|
94
94
|
}
|
95
95
|
I.style = nt;
|
96
|
-
const
|
96
|
+
const gt = Y(I);
|
97
97
|
export {
|
98
|
-
|
98
|
+
gt as default
|
99
99
|
};
|