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,17 +1,17 @@
|
|
1
|
-
import
|
1
|
+
import F from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import ra from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
|
-
import
|
3
|
+
import W from "@babel/runtime/helpers/esm/slicedToArray";
|
4
4
|
import na from "@babel/runtime/helpers/esm/toConsumableArray";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
5
|
+
import B from "@babel/runtime/helpers/esm/classCallCheck";
|
6
|
+
import j from "@babel/runtime/helpers/esm/createClass";
|
7
|
+
import K from "@babel/runtime/helpers/esm/assertThisInitialized";
|
8
|
+
import U from "@babel/runtime/helpers/esm/inherits";
|
9
|
+
import q from "@babel/runtime/helpers/esm/createSuper";
|
10
10
|
import d from "@babel/runtime/helpers/esm/defineProperty";
|
11
11
|
import { sstyled as ia } from 'intergalactic/utils/lib/core/index';
|
12
12
|
import b from "react";
|
13
|
-
import { transition as
|
14
|
-
import { sstyled as
|
13
|
+
import { transition as H } from "d3-transition";
|
14
|
+
import { sstyled as R, Component as G } from 'intergalactic/core';
|
15
15
|
import oa from 'intergalactic/utils/lib/uniqueID';
|
16
16
|
import la from 'intergalactic/utils/lib/assignProps';
|
17
17
|
import sa from 'intergalactic/utils/lib/getOriginChildren';
|
@@ -23,29 +23,29 @@ var _a = ["data"], Q = (
|
|
23
23
|
/*__reshadow_css_start__*/
|
24
24
|
(ia.insert(
|
25
25
|
/*__inner_css_start__*/
|
26
|
-
".
|
27
|
-
"
|
26
|
+
".___SRadian_9fd75_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_9fd75_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_9fd75_gg_.__stroke_9fd75_gg_{stroke:var(--stroke_9fd75)}.___SLine_9fd75_gg_.__transparent_9fd75_gg_{opacity:.3}.___SCap_9fd75_gg_{transition:r .1s}.___SCap_9fd75_gg_.__pattern_9fd75_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_9fd75_gg_.__transparent_9fd75_gg_,.___SIcon_9fd75_gg_.__transparent_9fd75_gg_,.___SLabel_9fd75_gg_.__transparent_9fd75_gg_{opacity:.3}.___SLabel_9fd75_gg_{fill:var(--color_9fd75)}@media (hover:hover){.___SRadian_9fd75_gg_:hover .___SLabel_9fd75_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_9fd75_gg_{transition:none}}",
|
27
|
+
"9fd75_gg_"
|
28
28
|
), {
|
29
|
-
__SRadian: "
|
30
|
-
__SLine: "
|
31
|
-
_stroke: "
|
32
|
-
"--stroke": "--
|
33
|
-
_transparent: "
|
34
|
-
__SCap: "
|
35
|
-
_pattern: "
|
36
|
-
__SIcon: "
|
37
|
-
__SLabel: "
|
38
|
-
"--color": "--
|
39
|
-
__SLineCap: "
|
29
|
+
__SRadian: "___SRadian_9fd75_gg_",
|
30
|
+
__SLine: "___SLine_9fd75_gg_",
|
31
|
+
_stroke: "__stroke_9fd75_gg_",
|
32
|
+
"--stroke": "--stroke_9fd75",
|
33
|
+
_transparent: "__transparent_9fd75_gg_",
|
34
|
+
__SCap: "___SCap_9fd75_gg_",
|
35
|
+
_pattern: "__pattern_9fd75_gg_",
|
36
|
+
__SIcon: "___SIcon_9fd75_gg_",
|
37
|
+
__SLabel: "___SLabel_9fd75_gg_",
|
38
|
+
"--color": "--color_9fd75",
|
39
|
+
__SLineCap: "___SLineCap_9fd75_gg_"
|
40
40
|
})
|
41
|
-
),
|
42
|
-
|
43
|
-
var i =
|
41
|
+
), N = -Math.PI / 2, V = /* @__PURE__ */ function(z) {
|
42
|
+
U(y, z);
|
43
|
+
var i = q(y);
|
44
44
|
function y(p) {
|
45
45
|
var a;
|
46
|
-
return
|
46
|
+
return B(this, y), a = i.call(this, p), d(K(a), "Element", void 0), a.handleRadianClick = a.handleRadianClick.bind(K(a)), a;
|
47
47
|
}
|
48
|
-
return
|
48
|
+
return j(y, [{
|
49
49
|
key: "uncontrolledProps",
|
50
50
|
value: function() {
|
51
51
|
return {
|
@@ -59,14 +59,14 @@ var _a = ["data"], Q = (
|
|
59
59
|
if (da()) {
|
60
60
|
var e = (a = window.matchMedia("(prefers-reduced-motion: reduce)")) === null || a === void 0 ? void 0 : a.matches;
|
61
61
|
if (r > 0 && !e) {
|
62
|
-
var v =
|
62
|
+
var v = H().selection().selectAll("[data-radial-animation=".concat(o, "-cap-circle]")).interrupt(), l = H().selection().selectAll("[data-radial-animation=".concat(o, "-cap-icon]")).interrupt(), u = H().selection().selectAll("[data-radial-animation=".concat(o, "-line]")).interrupt(), _ = H().selection().selectAll("[data-radial-animation=".concat(o, "-label]")).interrupt(), h = v.nodes(), g = l.nodes(), m = u.nodes(), x = u.nodes();
|
63
63
|
if (h.length > 0) {
|
64
64
|
var P = h.map(function(c) {
|
65
|
-
var s, t, S,
|
65
|
+
var s, t, S, f, A = parseInt(c.dataset.radianIndex, 10), k = m[A];
|
66
66
|
return {
|
67
67
|
from: {
|
68
|
-
cx: (s =
|
69
|
-
cy: (S =
|
68
|
+
cx: (s = k.x1) === null || s === void 0 || (t = s.baseVal) === null || t === void 0 ? void 0 : t.value,
|
69
|
+
cy: (S = k.y1) === null || S === void 0 || (f = S.baseVal) === null || f === void 0 ? void 0 : f.value
|
70
70
|
},
|
71
71
|
to: {
|
72
72
|
cx: c.dataset.cx,
|
@@ -88,13 +88,13 @@ var _a = ["data"], Q = (
|
|
88
88
|
return (t = P[s].to) === null || t === void 0 ? void 0 : t.cy;
|
89
89
|
});
|
90
90
|
}
|
91
|
-
if (
|
92
|
-
var C =
|
93
|
-
var s, t, S,
|
91
|
+
if (g.length > 0) {
|
92
|
+
var C = g.map(function(c) {
|
93
|
+
var s, t, S, f, A, k, L, E, I = (s = c.width) === null || s === void 0 || (t = s.baseVal) === null || t === void 0 ? void 0 : t.value, M = (S = c.height) === null || S === void 0 || (f = S.baseVal) === null || f === void 0 ? void 0 : f.value, w = parseInt(c.dataset.radianIndex, 10), T = m[w];
|
94
94
|
return {
|
95
95
|
from: {
|
96
|
-
x: ((
|
97
|
-
y: ((
|
96
|
+
x: ((A = T.x1) === null || A === void 0 || (k = A.baseVal) === null || k === void 0 ? void 0 : k.value) - I / 2,
|
97
|
+
y: ((L = T.y1) === null || L === void 0 || (E = L.baseVal) === null || E === void 0 ? void 0 : E.value) - M / 2
|
98
98
|
},
|
99
99
|
to: {
|
100
100
|
x: c.dataset.x,
|
@@ -118,11 +118,11 @@ var _a = ["data"], Q = (
|
|
118
118
|
}
|
119
119
|
if (m.length > 0) {
|
120
120
|
var $ = m.map(function(c) {
|
121
|
-
var s, t, S,
|
121
|
+
var s, t, S, f;
|
122
122
|
return {
|
123
123
|
from: {
|
124
124
|
x2: (s = c.x1) === null || s === void 0 || (t = s.baseVal) === null || t === void 0 ? void 0 : t.value,
|
125
|
-
y2: (S = c.y1) === null || S === void 0 || (
|
125
|
+
y2: (S = c.y1) === null || S === void 0 || (f = S.baseVal) === null || f === void 0 ? void 0 : f.value
|
126
126
|
},
|
127
127
|
to: {
|
128
128
|
x2: c.dataset.x2,
|
@@ -144,7 +144,7 @@ var _a = ["data"], Q = (
|
|
144
144
|
return (t = $[s].to) === null || t === void 0 ? void 0 : t.y2;
|
145
145
|
});
|
146
146
|
}
|
147
|
-
|
147
|
+
x.length > 0 && (_.attr("opacity", 0), _.transition().duration(r).attr("opacity", 1));
|
148
148
|
}
|
149
149
|
}
|
150
150
|
}
|
@@ -179,7 +179,7 @@ var _a = ["data"], Q = (
|
|
179
179
|
}, {
|
180
180
|
key: "getTitleProps",
|
181
181
|
value: function() {
|
182
|
-
var a = this.asProps, n = a.uid, r = a.size, o = a.textSize, e =
|
182
|
+
var a = this.asProps, n = a.uid, r = a.size, o = a.textSize, e = W(r, 2), v = e[0], l = e[1], u = [v / 2, l / 2], _ = u[0], h = u[1];
|
183
183
|
return d({
|
184
184
|
x: _,
|
185
185
|
y: h,
|
@@ -190,7 +190,7 @@ var _a = ["data"], Q = (
|
|
190
190
|
key: "getRadianProps",
|
191
191
|
value: function() {
|
192
192
|
var a = this.asProps, n = a.data, r = ra(a, _a), o = this.computeTextWidth();
|
193
|
-
return
|
193
|
+
return F(F({}, r), {}, {
|
194
194
|
radiansCount: n.length,
|
195
195
|
data: n,
|
196
196
|
textWidth: o,
|
@@ -201,16 +201,16 @@ var _a = ["data"], Q = (
|
|
201
201
|
key: "render",
|
202
202
|
value: function() {
|
203
203
|
var a, n = this.Element, r = this.asProps.Children;
|
204
|
-
return this.asProps.dataHintsHandler.establishDataType("values-set"), a =
|
204
|
+
return this.asProps.dataHintsHandler.establishDataType("values-set"), a = R(this.asProps.styles), /* @__PURE__ */ b.createElement(n, a.cn("SRadialTree", {
|
205
205
|
render: "g"
|
206
206
|
}), /* @__PURE__ */ b.createElement(r, a.cn("Children", {})));
|
207
207
|
}
|
208
208
|
}]), y;
|
209
209
|
}(G);
|
210
|
-
d(
|
211
|
-
d(
|
212
|
-
d(
|
213
|
-
d(
|
210
|
+
d(V, "displayName", "RadialTree");
|
211
|
+
d(V, "style", Q);
|
212
|
+
d(V, "enhance", [oa()]);
|
213
|
+
d(V, "defaultProps", {
|
214
214
|
angleOffset: 0,
|
215
215
|
duration: 300,
|
216
216
|
centralMargin: 50,
|
@@ -221,65 +221,65 @@ d(N, "defaultProps", {
|
|
221
221
|
textSize: 14,
|
222
222
|
defaultActiveKey: null
|
223
223
|
});
|
224
|
-
var
|
225
|
-
|
226
|
-
var i =
|
224
|
+
var D = /* @__PURE__ */ function(z) {
|
225
|
+
U(y, z);
|
226
|
+
var i = q(y);
|
227
227
|
function y(p) {
|
228
228
|
var a;
|
229
|
-
return
|
229
|
+
return B(this, y), a = i.call(this, p), d(K(a), "Element", void 0), a.renderRadian = a.renderRadian.bind(K(a)), a;
|
230
230
|
}
|
231
|
-
return
|
231
|
+
return j(y, [{
|
232
232
|
key: "getInteractiveAreaProps",
|
233
233
|
value: function(a, n) {
|
234
|
-
var r, o = a.$rootProps, e = (r = o.data) === null || r === void 0 ? void 0 : r[n], v = this.computeRadianPosition(e, n), l = v.xStart, u = v.yStart, _ = v.xLabelCenter, h = v.yLabelCenter,
|
234
|
+
var r, o = a.$rootProps, e = (r = o.data) === null || r === void 0 ? void 0 : r[n], v = this.computeRadianPosition(e, n), l = v.xStart, u = v.yStart, _ = v.xLabelCenter, h = v.yLabelCenter, g = v.capSize;
|
235
235
|
return {
|
236
236
|
x1: l,
|
237
237
|
y1: u,
|
238
238
|
x2: _,
|
239
239
|
y2: h,
|
240
|
-
strokeWidth:
|
240
|
+
strokeWidth: g * 3
|
241
241
|
};
|
242
242
|
}
|
243
243
|
}, {
|
244
244
|
key: "getLineProps",
|
245
245
|
value: function(a, n) {
|
246
|
-
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xStart, h = u.yStart,
|
246
|
+
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xStart, h = u.yStart, g = u.xEnd, m = u.yEnd, x = this.asProps, P = x.uid, C = x.transparent, $ = x.resolveColor, c = (o = l.color) !== null && o !== void 0 ? o : this.asProps.color;
|
247
247
|
return e = {
|
248
248
|
x1: _,
|
249
249
|
y1: h,
|
250
|
-
x2:
|
250
|
+
x2: g,
|
251
251
|
y2: m,
|
252
252
|
stroke: c,
|
253
253
|
resolveColor: $,
|
254
254
|
transparent: C
|
255
|
-
}, d(e, "data-x1", _), d(e, "data-y1", h), d(e, "data-x2",
|
255
|
+
}, d(e, "data-x1", _), d(e, "data-y1", h), d(e, "data-x2", g), d(e, "data-y2", m), d(e, "data-radial-animation", "".concat(P, "-line")), d(e, "data-radian-index", n), e;
|
256
256
|
}
|
257
257
|
}, {
|
258
258
|
key: "getCapProps",
|
259
259
|
value: function(a, n) {
|
260
|
-
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xEnd, h = u.yEnd,
|
260
|
+
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xEnd, h = u.yEnd, g = u.capSize, m = this.asProps, x = m.uid, P = m.transparent, C = m.resolveColor, $ = m.patterns, c = (o = l.color) !== null && o !== void 0 ? o : this.asProps.color;
|
261
261
|
return e = {
|
262
262
|
x: _,
|
263
263
|
y: h
|
264
|
-
}, d(e, "data-cx", _), d(e, "data-cy", h), d(e, "radius",
|
264
|
+
}, d(e, "data-cx", _), d(e, "data-cy", h), d(e, "radius", g), d(e, "color", c), d(e, "resolveColor", C), d(e, "transparent", P), d(e, "patterns", $), d(e, "uid", "".concat(x, "-cap-").concat(n)), d(e, "data-radial-animation", "".concat(x, "-cap-circle")), d(e, "data-radian-index", n), e;
|
265
265
|
}
|
266
266
|
}, {
|
267
267
|
key: "getIconProps",
|
268
268
|
value: function(a, n) {
|
269
|
-
var r, o, e, v, l, u = a.$rootProps, _ = (r = u.data) === null || r === void 0 ? void 0 : r[n], h = this.computeRadianPosition(_, n),
|
269
|
+
var r, o, e, v, l, u = a.$rootProps, _ = (r = u.data) === null || r === void 0 ? void 0 : r[n], h = this.computeRadianPosition(_, n), g = h.xEnd, m = h.yEnd, x = h.isActive, P = this.asProps, C = P.uid, $ = P.resolveColor, c = (o = _.iconColor) !== null && o !== void 0 ? o : this.asProps.iconColor, s = (e = _.iconSize) !== null && e !== void 0 ? e : this.asProps.iconSize, t = (v = _.icon) !== null && v !== void 0 ? v : this.asProps.icon, S = g - s / 2, f = m - s / 2;
|
270
270
|
return l = {
|
271
271
|
x: S,
|
272
|
-
y:
|
273
|
-
}, d(l, "data-x", S), d(l, "data-y",
|
272
|
+
y: f
|
273
|
+
}, d(l, "data-x", S), d(l, "data-y", f), d(l, "iconSize", s), d(l, "color", c ?? "#fff"), d(l, "resolveColor", $), d(l, "data-radial-animation", "".concat(C, "-cap-icon")), d(l, "data-radian-index", n), d(l, "icon", t), d(l, "tag", t), d(l, "isActive", x), l;
|
274
274
|
}
|
275
275
|
}, {
|
276
276
|
key: "getLabelProps",
|
277
277
|
value: function(a, n) {
|
278
|
-
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xLabelCenter, h = u.yLabelCenter,
|
278
|
+
var r, o, e, v = a.$rootProps, l = (r = v.data) === null || r === void 0 ? void 0 : r[n], u = this.computeRadianPosition(l, n), _ = u.xLabelCenter, h = u.yLabelCenter, g = u.labelAngle, m = u.isHorizontal, x = this.asProps, P = x.uid, C = x.textSize, $ = x.transparent, c = x.resolveColor, s = l, t = s.label, S = (o = l.color) !== null && o !== void 0 ? o : this.asProps.color;
|
279
279
|
return e = {
|
280
280
|
x: _,
|
281
281
|
y: h,
|
282
|
-
angle:
|
282
|
+
angle: g
|
283
283
|
}, d(e, "data-radial-animation", "".concat(P, "-label")), d(e, "data-radian-index", n), d(e, "label", t), d(e, "color", S), d(e, "resolveColor", c), d(e, "isHorizontal", m), d(e, "textSize", C), d(e, "transparent", $), e;
|
284
284
|
}
|
285
285
|
}, {
|
@@ -291,7 +291,7 @@ var K = /* @__PURE__ */ function(R) {
|
|
291
291
|
}, {
|
292
292
|
key: "computeRadianPosition",
|
293
293
|
value: function(a, n) {
|
294
|
-
var r, o = this.asProps, e = o.centralMargin, v = o.labelMargin, l = o.angleOffset, u = o.activeKey, _ = o.size, h = o.radiansCount,
|
294
|
+
var r, o = this.asProps, e = o.centralMargin, v = o.labelMargin, l = o.angleOffset, u = o.activeKey, _ = o.size, h = o.radiansCount, g = o.textWidth, m = W(_, 2), x = m[0], P = m[1], C = this.getRadianKey(a, n), $ = u === C, c = (r = a.capSize) !== null && r !== void 0 ? r : this.asProps.capSize, s = c * ($ ? 1 : 0.5), t = Math.min(x, P) / 2, S = Math.max(t - g - c - e - v * 2, 10), f = N + l + n / h * (Math.PI * 2), A = f - N > 1 / 6 * Math.PI && f - N < 5 / 6 * Math.PI || f - N > 7 / 6 * Math.PI && f - N < 11 / 6 * Math.PI, k = -Math.PI / 2, L = (f - k) % Math.PI + k, E = [x / 2, P / 2], I = E[0], M = E[1], w = [I + Math.cos(f) * e, M + Math.sin(f) * e], T = [I + Math.cos(f) * (e + S), M + Math.sin(f) * (e + S)], X = w[0], Y = w[1], Z = T[0], aa = T[1], O = [I + Math.cos(f) * (e + S + c + g / 2 + v), M + Math.sin(f) * (e + S + c + g / 2 + v)], ta = O[0], ea = O[1];
|
295
295
|
return {
|
296
296
|
xStart: X,
|
297
297
|
yStart: Y,
|
@@ -299,8 +299,8 @@ var K = /* @__PURE__ */ function(R) {
|
|
299
299
|
yEnd: aa,
|
300
300
|
xLabelCenter: ta,
|
301
301
|
yLabelCenter: ea,
|
302
|
-
labelAngle:
|
303
|
-
isHorizontal:
|
302
|
+
labelAngle: L,
|
303
|
+
isHorizontal: A,
|
304
304
|
capSize: s,
|
305
305
|
isActive: $
|
306
306
|
};
|
@@ -310,30 +310,30 @@ var K = /* @__PURE__ */ function(R) {
|
|
310
310
|
value: function(a, n) {
|
311
311
|
var r, o = this.asProps, e = o.styles, v = o.Children, l = o.onRadianClick, u = this.getRadianKey(a, n), _ = "g", h = sa(v);
|
312
312
|
if (typeof h == "function") {
|
313
|
-
var
|
314
|
-
h = m.children, m.children =
|
313
|
+
var g = this.asProps.children, m = la(h(this.asProps), this.asProps);
|
314
|
+
h = m.children, m.children = g;
|
315
315
|
}
|
316
316
|
this.asProps.dataHintsHandler.describeValueEntity("".concat(n, ".").concat(a.label), a.label);
|
317
|
-
var
|
318
|
-
return r =
|
317
|
+
var x = Pa.Radian.InteractiveArea;
|
318
|
+
return r = R(e), /* @__PURE__ */ b.createElement(_, r.cn("SRadian", {
|
319
319
|
"aria-hidden": !0,
|
320
320
|
key: u,
|
321
321
|
onClick: l(u)
|
322
|
-
}), /* @__PURE__ */ b.createElement(
|
322
|
+
}), /* @__PURE__ */ b.createElement(x, r.cn("InteractiveArea", {})), h);
|
323
323
|
}
|
324
324
|
}, {
|
325
325
|
key: "render",
|
326
326
|
value: function() {
|
327
327
|
var a, n = this, r = this.asProps.data, o = "g";
|
328
|
-
return a =
|
328
|
+
return a = R(this.asProps.styles), /* @__PURE__ */ b.createElement(o, a.cn("SRadianList", {}), r.map(function(e, v) {
|
329
329
|
return n.renderRadian(e, v);
|
330
330
|
}));
|
331
331
|
}
|
332
332
|
}]), y;
|
333
333
|
}(G);
|
334
|
-
d(
|
335
|
-
d(
|
336
|
-
d(
|
334
|
+
d(D, "displayName", "RadialTreeRadian");
|
335
|
+
d(D, "style", Q);
|
336
|
+
d(D, "defaultProps", {
|
337
337
|
centralMargin: 50,
|
338
338
|
labelMargin: 2,
|
339
339
|
iconColor: "#fff",
|
@@ -343,13 +343,13 @@ d(K, "defaultProps", {
|
|
343
343
|
});
|
344
344
|
var ha = function(i) {
|
345
345
|
var y, p = i.Element, a = i.styles;
|
346
|
-
return y =
|
346
|
+
return y = R(a), /* @__PURE__ */ b.createElement(p, y.cn("SInteractiveArea", {
|
347
347
|
stroke: "transparent",
|
348
348
|
render: "line"
|
349
349
|
}));
|
350
350
|
}, ya = function(i) {
|
351
351
|
var y, p = i.Element, a = i.styles, n = i.stroke, r = i.resolveColor, o = i.transparent;
|
352
|
-
return y =
|
352
|
+
return y = R(a), /* @__PURE__ */ b.createElement(p, y.cn("SLine", {
|
353
353
|
render: "line",
|
354
354
|
stroke: r(n),
|
355
355
|
transparent: o
|
@@ -357,8 +357,8 @@ var ha = function(i) {
|
|
357
357
|
}, ma = function(i) {
|
358
358
|
var y, p = i.Element, a = i.styles, n = i.x, r = n === void 0 ? 0 : n, o = i.y, e = o === void 0 ? 0 : o, v = i.radius, l = i.color, u = i.resolveColor, _ = i.transparent, h = i.patterns;
|
359
359
|
if (!h) {
|
360
|
-
var
|
361
|
-
return
|
360
|
+
var g;
|
361
|
+
return g = R(a), /* @__PURE__ */ b.createElement(p, g.cn("SCap", {
|
362
362
|
render: "circle",
|
363
363
|
cx: r,
|
364
364
|
cy: e,
|
@@ -367,11 +367,11 @@ var ha = function(i) {
|
|
367
367
|
transparent: _
|
368
368
|
}));
|
369
369
|
}
|
370
|
-
var m = l || va(0),
|
370
|
+
var m = l || va(0), x = ua({
|
371
371
|
patternKey: m,
|
372
372
|
patterns: h
|
373
|
-
}), P =
|
374
|
-
return y =
|
373
|
+
}), P = W(x, 2), C = P[0], $ = P[1];
|
374
|
+
return y = R(a), /* @__PURE__ */ b.createElement(p, y.cn("SCap", {
|
375
375
|
render: pa,
|
376
376
|
patternKey: l,
|
377
377
|
x: r - (C || 0) / 2,
|
@@ -380,11 +380,11 @@ var ha = function(i) {
|
|
380
380
|
transparent: _,
|
381
381
|
pattern: !0
|
382
382
|
}));
|
383
|
-
},
|
383
|
+
}, fa = function(i) {
|
384
384
|
var y, p = i.Element, a = i.styles, n = i.isActive, r = i.tag, o = i.x, e = i.y, v = i.iconSize, l = i.transparent;
|
385
385
|
if (!(n && r)) return null;
|
386
386
|
var u = v, _ = v;
|
387
|
-
return y =
|
387
|
+
return y = R(a), /* @__PURE__ */ b.createElement(p, y.cn("SIcon", {
|
388
388
|
x: o,
|
389
389
|
y: e,
|
390
390
|
width: u,
|
@@ -392,9 +392,9 @@ var ha = function(i) {
|
|
392
392
|
render: r,
|
393
393
|
transparent: l
|
394
394
|
}));
|
395
|
-
},
|
396
|
-
var y = i.Element, p = i.Children, a = i.styles, n = i.label, r = i.color, o = i.resolveColor, e = i.isHorizontal, v = i.x, l = i.y, u = i.textSize, _ = i.angle, h = i.transparent,
|
397
|
-
`), m =
|
395
|
+
}, ga = function(i) {
|
396
|
+
var y = i.Element, p = i.Children, a = i.styles, n = i.label, r = i.color, o = i.resolveColor, e = i.isHorizontal, v = i.x, l = i.y, u = i.textSize, _ = i.angle, h = i.transparent, g = String(n).split(`
|
397
|
+
`), m = g.length, x = "tspan", P = (_ / Math.PI * 180).toFixed(2), C = [v.toFixed(2), l.toFixed(2)], $ = "rotate(".concat([P].concat(C).join(", "), ")"), c = R(a), s = c.cn("SLabel", {
|
398
398
|
color: o(r),
|
399
399
|
"text-cursor": e ? "text" : "vertical-text",
|
400
400
|
transparent: h
|
@@ -409,22 +409,22 @@ var ha = function(i) {
|
|
409
409
|
x: v.toFixed(2),
|
410
410
|
y: l.toFixed(2),
|
411
411
|
transform: $
|
412
|
-
},
|
413
|
-
return /* @__PURE__ */ b.createElement(
|
412
|
+
}, g.map(function(t, S) {
|
413
|
+
return /* @__PURE__ */ b.createElement(x, {
|
414
414
|
x: v,
|
415
415
|
y: l + (S - (m - 1) / 2) * u,
|
416
416
|
key: "#".concat(S, "-").concat(t)
|
417
417
|
}, t);
|
418
418
|
}), /* @__PURE__ */ b.createElement(p, null));
|
419
|
-
},
|
419
|
+
}, xa = J(D, {
|
420
420
|
InteractiveArea: ha,
|
421
421
|
Line: ya,
|
422
422
|
Cap: ma,
|
423
|
-
Icon:
|
424
|
-
Label:
|
423
|
+
Icon: fa,
|
424
|
+
Label: ga
|
425
425
|
}), Sa = function(i) {
|
426
426
|
var y, p = i.Element, a = i.Children, n = i.children, r = i.styles, o = i.textSize, e = i.color, v = i.resolveColor, l = i.x, u = i.y, _ = i.dataHintsHandler;
|
427
|
-
return typeof n == "string" && _.setTitle("vertical", n), y =
|
427
|
+
return typeof n == "string" && _.setTitle("vertical", n), y = R(r), /* @__PURE__ */ b.createElement(p, y.cn("STitle", {
|
428
428
|
"aria-hidden": !0,
|
429
429
|
render: "text",
|
430
430
|
textAnchor: "middle",
|
@@ -434,9 +434,9 @@ var ha = function(i) {
|
|
434
434
|
x: l,
|
435
435
|
y: u
|
436
436
|
}), /* @__PURE__ */ b.createElement(a, y.cn("Children", {})));
|
437
|
-
}, Pa = J(
|
437
|
+
}, Pa = J(V, {
|
438
438
|
Title: Sa,
|
439
|
-
Radian:
|
439
|
+
Radian: xa
|
440
440
|
});
|
441
441
|
export {
|
442
442
|
Pa as default
|