@cloudtower/eagle 4100.0.17 → 4100.0.19
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/dist/cjs/core/AccordionCard/index.js +1 -1
- package/dist/cjs/core/Alert/alert.style.js +2 -2
- package/dist/cjs/core/Antd5Tree/Antd5Tree.style.js +1 -1
- package/dist/cjs/core/Avatar/index.js +1 -1
- package/dist/cjs/core/Banner/banner.style.js +4 -4
- package/dist/cjs/core/BasicCTError/BasicCTError.style.js +1 -1
- package/dist/cjs/core/BlankState/style.js +1 -1
- package/dist/cjs/core/Breadcrumb/index.js +1 -1
- package/dist/cjs/core/Button/index.js +1 -1
- package/dist/cjs/core/ButtonGroup/index.js +2 -2
- package/dist/cjs/core/Card/CardBody.js +1 -1
- package/dist/cjs/core/Card/CardTitle.js +1 -1
- package/dist/cjs/core/Card/CardWrapper.js +2 -2
- package/dist/cjs/core/Cascader/cascader.style.js +11 -11
- package/dist/cjs/core/Checkbox/checkbox.style.js +1 -1
- package/dist/cjs/core/DetailCard/index.js +1 -1
- package/dist/cjs/core/DonutChart/index.js +2 -2
- package/dist/cjs/core/DropdownMenu/index.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandIcon.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandableContainer.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandableItem.js +2 -2
- package/dist/cjs/core/ExpandableList/RoundOrder.js +1 -1
- package/dist/cjs/core/FailedLoad/index.js +1 -1
- package/dist/cjs/core/FormItem/index.js +1 -1
- package/dist/cjs/core/Icon/index.js +1 -1
- package/dist/cjs/core/ImmersiveDialog/styles.js +14 -14
- package/dist/cjs/core/Input/index.js +1 -1
- package/dist/cjs/core/InputGroup/index.js +1 -1
- package/dist/cjs/core/InputInteger/index.js +1 -1
- package/dist/cjs/core/InputNumber/index.js +1 -1
- package/dist/cjs/core/InputPassword/index.js +1 -1
- package/dist/cjs/core/InputTagItem/index.js +1 -1
- package/dist/cjs/core/LegacySelect/select.style.js +1 -1
- package/dist/cjs/core/Legend/index.js +5 -5
- package/dist/cjs/core/LineChart/AreaHighlightLayer.js +122 -0
- package/dist/cjs/core/LineChart/ForecastLineLayer.js +134 -0
- package/dist/cjs/core/LineChart/LineChartActions.js +2 -2
- package/dist/cjs/core/LineChart/RenderChart.js +274 -20
- package/dist/cjs/core/LineChart/ThresholdIntersectionLayer.js +144 -0
- package/dist/cjs/core/LineChart/TooltipFormatter.js +44 -39
- package/dist/cjs/core/LineChart/areaHighlightUtils.js +89 -0
- package/dist/cjs/core/LineChart/index.js +20 -2
- package/dist/cjs/core/LineChart/lineChartDisplayUtils.js +32 -0
- package/dist/cjs/core/LineChart/lineSegments.js +90 -0
- package/dist/cjs/core/LineChart/styled.js +21 -9
- package/dist/cjs/core/LineChart/utils.js +93 -4
- package/dist/cjs/core/Link/index.js +1 -1
- package/dist/cjs/core/Loading/style.js +4 -4
- package/dist/cjs/core/LocalUpload/LocalUpload.hooks.js +5 -2
- package/dist/cjs/core/LocalUpload/LocalUpload.js +53 -45
- package/dist/cjs/core/LocalUpload/LocalUpload.style.js +2 -2
- package/dist/cjs/core/LocalUpload/LocalUpload.widget.js +156 -133
- package/dist/cjs/core/LogView/LogView.style.js +5 -5
- package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/cjs/core/Metric/styled.js +8 -8
- package/dist/cjs/core/Nav/index.js +1 -1
- package/dist/cjs/core/Nav/style.js +2 -2
- package/dist/cjs/core/Overflow/index.js +2 -2
- package/dist/cjs/core/Pagination/index.js +2 -2
- package/dist/cjs/core/Progress/components.js +2 -2
- package/dist/cjs/core/Progress/index.js +2 -2
- package/dist/cjs/core/Progress/progress.style.js +4 -4
- package/dist/cjs/core/Progress/progress.widgets.js +2 -2
- package/dist/cjs/core/Radio/index.js +3 -3
- package/dist/cjs/core/SearchInput/SearchInput.style.js +5 -5
- package/dist/cjs/core/SegmentControl/index.js +4 -4
- package/dist/cjs/core/Select/select.style.js +4 -4
- package/dist/cjs/core/Select/select.widgets.js +3 -3
- package/dist/cjs/core/SimplePagination/index.js +2 -2
- package/dist/cjs/core/Skeleton/Content.js +1 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.style.js +7 -7
- package/dist/cjs/core/StatusCapsule/index.js +2 -2
- package/dist/cjs/core/StepProgress/index.js +1 -1
- package/dist/cjs/core/Steps/style.js +5 -5
- package/dist/cjs/core/Styled/index.js +40 -40
- package/dist/cjs/core/Switch/index.js +2 -2
- package/dist/cjs/core/Tab/Tab.js +1 -1
- package/dist/cjs/core/Tab/Tab.style.js +4 -4
- package/dist/cjs/core/Table/TableSkeleton.js +1 -1
- package/dist/cjs/core/Table/TableWidget.js +1 -1
- package/dist/cjs/core/Table/index.js +3 -3
- package/dist/cjs/core/TableForm/Columns/FormItem.js +1 -1
- package/dist/cjs/core/TableForm/style.js +7 -7
- package/dist/cjs/core/Tag/SplitTag.js +1 -1
- package/dist/cjs/core/Tag/style.js +5 -5
- package/dist/cjs/core/Time/index.js +1 -1
- package/dist/cjs/core/TimeZoneSelect/index.js +7 -7
- package/dist/cjs/core/Timeline/Timeline.style.js +5 -5
- package/dist/cjs/core/Token/index.js +4 -4
- package/dist/cjs/core/Token/style.js +1 -1
- package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +1 -1
- package/dist/cjs/core/Tooltip/index.js +1 -1
- package/dist/cjs/core/Truncate/index.js +1 -1
- package/dist/cjs/core/Typo/index.js +58 -58
- package/dist/cjs/core/WizardDialog/styles.js +4 -4
- package/dist/cjs/coreX/BarChart/index.js +1 -1
- package/dist/cjs/coreX/BatchOperation/index.js +2 -2
- package/dist/cjs/coreX/ChartWithTooltip/index.js +6 -6
- package/dist/cjs/coreX/CheckPointList/checkpointlist.style.js +3 -3
- package/dist/cjs/coreX/CircleLoading/index.js +1 -1
- package/dist/cjs/coreX/CronCalendar/index.js +4 -4
- package/dist/cjs/coreX/CronPlan/index.js +4 -4
- package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +9 -6
- package/dist/cjs/coreX/DateRangePicker/common.js +104 -5
- package/dist/cjs/coreX/DateRangePicker/index.js +107 -47
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
- package/dist/cjs/coreX/GoBackButton/index.js +1 -1
- package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
- package/dist/cjs/coreX/InfoRowList/InfoRow.js +1 -1
- package/dist/cjs/coreX/InfoRowList/InfoRowList.js +4 -4
- package/dist/cjs/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
- package/dist/cjs/coreX/NamesTooltip/index.js +3 -3
- package/dist/cjs/coreX/OverflowTooltip/index.js +4 -4
- package/dist/cjs/coreX/Sider/index.js +3 -3
- package/dist/cjs/coreX/SummaryTable/index.js +5 -5
- package/dist/cjs/coreX/SwitchWithText/index.js +1 -1
- package/dist/cjs/coreX/TabMenu/index.js +2 -2
- package/dist/cjs/coreX/UnderlineTootip/index.js +1 -1
- package/dist/cjs/coreX/UnitWithChart/index.js +3 -3
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3935 -3863
- package/dist/esm/core/AccordionCard/index.js +1 -1
- package/dist/esm/core/Alert/alert.style.js +2 -2
- package/dist/esm/core/Antd5Tree/Antd5Tree.style.js +1 -1
- package/dist/esm/core/Avatar/index.js +1 -1
- package/dist/esm/core/Banner/banner.style.js +4 -4
- package/dist/esm/core/BasicCTError/BasicCTError.style.js +1 -1
- package/dist/esm/core/BlankState/style.js +1 -1
- package/dist/esm/core/Breadcrumb/index.js +1 -1
- package/dist/esm/core/Button/index.js +1 -1
- package/dist/esm/core/ButtonGroup/index.js +2 -2
- package/dist/esm/core/Card/CardBody.js +1 -1
- package/dist/esm/core/Card/CardTitle.js +1 -1
- package/dist/esm/core/Card/CardWrapper.js +2 -2
- package/dist/esm/core/Cascader/cascader.style.js +11 -11
- package/dist/esm/core/Checkbox/checkbox.style.js +1 -1
- package/dist/esm/core/DetailCard/index.js +1 -1
- package/dist/esm/core/DonutChart/index.js +2 -2
- package/dist/esm/core/DropdownMenu/index.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandIcon.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandableContainer.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandableItem.js +2 -2
- package/dist/esm/core/ExpandableList/RoundOrder.js +1 -1
- package/dist/esm/core/FailedLoad/index.js +1 -1
- package/dist/esm/core/FormItem/index.js +1 -1
- package/dist/esm/core/Icon/index.js +1 -1
- package/dist/esm/core/ImmersiveDialog/styles.js +14 -14
- package/dist/esm/core/Input/index.js +1 -1
- package/dist/esm/core/InputGroup/index.js +1 -1
- package/dist/esm/core/InputInteger/index.js +1 -1
- package/dist/esm/core/InputNumber/index.js +1 -1
- package/dist/esm/core/InputPassword/index.js +1 -1
- package/dist/esm/core/InputTagItem/index.js +1 -1
- package/dist/esm/core/LegacySelect/select.style.js +1 -1
- package/dist/esm/core/Legend/index.js +5 -5
- package/dist/esm/core/LineChart/AreaHighlightLayer.js +115 -0
- package/dist/esm/core/LineChart/ForecastLineLayer.js +124 -0
- package/dist/esm/core/LineChart/LineChartActions.js +2 -2
- package/dist/esm/core/LineChart/RenderChart.js +276 -23
- package/dist/esm/core/LineChart/ThresholdIntersectionLayer.js +134 -0
- package/dist/esm/core/LineChart/TooltipFormatter.js +41 -39
- package/dist/esm/core/LineChart/areaHighlightUtils.js +87 -0
- package/dist/esm/core/LineChart/index.js +21 -3
- package/dist/esm/core/LineChart/lineChartDisplayUtils.js +26 -0
- package/dist/esm/core/LineChart/lineSegments.js +87 -0
- package/dist/esm/core/LineChart/styled.js +20 -10
- package/dist/esm/core/LineChart/utils.js +91 -5
- package/dist/esm/core/Link/index.js +1 -1
- package/dist/esm/core/Loading/style.js +4 -4
- package/dist/esm/core/LocalUpload/LocalUpload.hooks.js +6 -3
- package/dist/esm/core/LocalUpload/LocalUpload.js +52 -45
- package/dist/esm/core/LocalUpload/LocalUpload.style.js +2 -2
- package/dist/esm/core/LocalUpload/LocalUpload.widget.js +154 -131
- package/dist/esm/core/LogView/LogView.style.js +5 -5
- package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/esm/core/Metric/styled.js +8 -8
- package/dist/esm/core/Nav/index.js +1 -1
- package/dist/esm/core/Nav/style.js +2 -2
- package/dist/esm/core/Overflow/index.js +2 -2
- package/dist/esm/core/Pagination/index.js +2 -2
- package/dist/esm/core/Progress/components.js +2 -2
- package/dist/esm/core/Progress/index.js +2 -2
- package/dist/esm/core/Progress/progress.style.js +4 -4
- package/dist/esm/core/Progress/progress.widgets.js +2 -2
- package/dist/esm/core/Radio/index.js +3 -3
- package/dist/esm/core/SearchInput/SearchInput.style.js +5 -5
- package/dist/esm/core/SegmentControl/index.js +4 -4
- package/dist/esm/core/Select/select.style.js +4 -4
- package/dist/esm/core/Select/select.widgets.js +3 -3
- package/dist/esm/core/SimplePagination/index.js +2 -2
- package/dist/esm/core/Skeleton/Content.js +1 -1
- package/dist/esm/core/SmallDialog/SmallDialog.style.js +7 -7
- package/dist/esm/core/StatusCapsule/index.js +2 -2
- package/dist/esm/core/StepProgress/index.js +1 -1
- package/dist/esm/core/Steps/style.js +5 -5
- package/dist/esm/core/Styled/index.js +40 -40
- package/dist/esm/core/Switch/index.js +2 -2
- package/dist/esm/core/Tab/Tab.js +1 -1
- package/dist/esm/core/Tab/Tab.style.js +4 -4
- package/dist/esm/core/Table/TableSkeleton.js +1 -1
- package/dist/esm/core/Table/TableWidget.js +1 -1
- package/dist/esm/core/Table/index.js +3 -3
- package/dist/esm/core/TableForm/Columns/FormItem.js +1 -1
- package/dist/esm/core/TableForm/style.js +7 -7
- package/dist/esm/core/Tag/SplitTag.js +1 -1
- package/dist/esm/core/Tag/style.js +5 -5
- package/dist/esm/core/Time/index.js +1 -1
- package/dist/esm/core/TimeZoneSelect/index.js +7 -7
- package/dist/esm/core/Timeline/Timeline.style.js +5 -5
- package/dist/esm/core/Token/index.js +4 -4
- package/dist/esm/core/Token/style.js +1 -1
- package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +1 -1
- package/dist/esm/core/Tooltip/index.js +1 -1
- package/dist/esm/core/Truncate/index.js +1 -1
- package/dist/esm/core/Typo/index.js +58 -58
- package/dist/esm/core/WizardDialog/styles.js +4 -4
- package/dist/esm/coreX/BarChart/index.js +1 -1
- package/dist/esm/coreX/BatchOperation/index.js +2 -2
- package/dist/esm/coreX/ChartWithTooltip/index.js +6 -6
- package/dist/esm/coreX/CheckPointList/checkpointlist.style.js +3 -3
- package/dist/esm/coreX/CircleLoading/index.js +1 -1
- package/dist/esm/coreX/CronCalendar/index.js +4 -4
- package/dist/esm/coreX/CronPlan/index.js +4 -4
- package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +10 -7
- package/dist/esm/coreX/DateRangePicker/common.js +99 -6
- package/dist/esm/coreX/DateRangePicker/index.js +108 -48
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
- package/dist/esm/coreX/GoBackButton/index.js +1 -1
- package/dist/esm/coreX/I18nNameTag/index.js +1 -1
- package/dist/esm/coreX/InfoRowList/InfoRow.js +1 -1
- package/dist/esm/coreX/InfoRowList/InfoRowList.js +4 -4
- package/dist/esm/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
- package/dist/esm/coreX/NamesTooltip/index.js +3 -3
- package/dist/esm/coreX/OverflowTooltip/index.js +4 -4
- package/dist/esm/coreX/Sider/index.js +3 -3
- package/dist/esm/coreX/SummaryTable/index.js +5 -5
- package/dist/esm/coreX/SwitchWithText/index.js +1 -1
- package/dist/esm/coreX/TabMenu/index.js +2 -2
- package/dist/esm/coreX/UnderlineTootip/index.js +1 -1
- package/dist/esm/coreX/UnitWithChart/index.js +3 -3
- package/dist/esm/index.js +4 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +4544 -4465
- package/dist/src/core/LineChart/AreaHighlightLayer.d.ts +31 -0
- package/dist/src/core/LineChart/ForecastLineLayer.d.ts +24 -0
- package/dist/src/core/LineChart/RenderChart.d.ts +5 -1
- package/dist/src/core/LineChart/ThresholdIntersectionLayer.d.ts +19 -0
- package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
- package/dist/src/core/LineChart/__test__/AreaHighlightLayer.test.d.ts +1 -0
- package/dist/src/core/LineChart/__test__/ForecastLineLayer.test.d.ts +1 -0
- package/dist/src/core/LineChart/__test__/utils.test.d.ts +1 -0
- package/dist/src/core/LineChart/areaHighlightUtils.d.ts +6 -0
- package/dist/src/core/LineChart/lineChartDisplayUtils.d.ts +7 -0
- package/dist/src/core/LineChart/lineSegments.d.ts +16 -0
- package/dist/src/core/LineChart/styled.d.ts +2 -0
- package/dist/src/core/LineChart/type.d.ts +94 -8
- package/dist/src/core/LineChart/utils.d.ts +31 -4
- package/dist/src/core/LocalUpload/LocalUpload.type.d.ts +12 -4
- package/dist/src/core/LocalUpload/LocalUpload.widget.d.ts +1 -0
- package/dist/src/core/LocalUpload/__test__/LocalUpload.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/AbsoluteDate.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/RelativeTime.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/common.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/common.d.ts +12 -3
- package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +5 -1
- package/dist/stories/docs/core/LineChart.stories.d.ts +4 -0
- package/dist/stories/docs/core/LocalUpload.stories.d.ts +32 -13
- package/dist/stories/docs/coreX/DateRangePicker.stories.d.ts +1 -0
- package/dist/style.css +3936 -3864
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const BasicBanner = "
|
|
2
|
-
const ErrorBanner = "
|
|
3
|
-
const InfoBanner = "
|
|
4
|
-
const WarningBanner = "
|
|
1
|
+
const BasicBanner = "E_4100_0_19_bpgac8u";
|
|
2
|
+
const ErrorBanner = "E_4100_0_19_envn4g3";
|
|
3
|
+
const InfoBanner = "E_4100_0_19_i12w18eu";
|
|
4
|
+
const WarningBanner = "E_4100_0_19_wujsnt4";
|
|
5
5
|
|
|
6
6
|
export { BasicBanner, ErrorBanner, InfoBanner, WarningBanner };
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
const ButtonStyle = "
|
|
32
|
+
const ButtonStyle = "E_4100_0_19_b1wx3t3t";
|
|
33
33
|
const isAntdButtonTypes = type => {
|
|
34
34
|
return Boolean(type && ["default", "primary", "ghost", "dashed", "link", "text"].includes(type));
|
|
35
35
|
};
|
|
@@ -29,10 +29,10 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
const ButtonStyle = "
|
|
32
|
+
const ButtonStyle = "E_4100_0_19_b1nip9bk";
|
|
33
33
|
const ButtonGroupContainer = /*#__PURE__*/styled('div')({
|
|
34
34
|
name: "ButtonGroupContainer",
|
|
35
|
-
class: "
|
|
35
|
+
class: "E_4100_0_19_bqamoqe",
|
|
36
36
|
propsAsIs: false
|
|
37
37
|
});
|
|
38
38
|
const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
@@ -27,7 +27,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
-
const boxShadow = "
|
|
30
|
+
const boxShadow = "E_4100_0_19_b14q2gmw";
|
|
31
31
|
const Wrapper = forwardRef(props => {
|
|
32
32
|
const _a = props,
|
|
33
33
|
{
|
|
@@ -45,7 +45,7 @@ const Wrapper = forwardRef(props => {
|
|
|
45
45
|
const _exp = /*#__PURE__*/() => Wrapper;
|
|
46
46
|
const CardWrapper = /*#__PURE__*/styled(_exp())({
|
|
47
47
|
name: "CardWrapper",
|
|
48
|
-
class: "
|
|
48
|
+
class: "E_4100_0_19_c1eym6el",
|
|
49
49
|
propsAsIs: true
|
|
50
50
|
});
|
|
51
51
|
var CardWrapper$1 = CardWrapper;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const Hide = "
|
|
2
|
-
const DoubleRowOptionStyleWrapper = "
|
|
3
|
-
const CascaderDefaultOptionLabel = "
|
|
4
|
-
const CascaderNotData = "
|
|
5
|
-
const CascaderDefaultHeaderSearch = "
|
|
6
|
-
const CascaderInputStyle = "
|
|
7
|
-
const CascaderDefaultHeaderContainer = "
|
|
8
|
-
const CascaderDefaultHeader = "
|
|
9
|
-
const CascaderDropdown = "
|
|
10
|
-
const CascaderSmallDropdown = "
|
|
11
|
-
const CascaderLargeDropdown = "
|
|
1
|
+
const Hide = "E_4100_0_19_hrhfj7c";
|
|
2
|
+
const DoubleRowOptionStyleWrapper = "E_4100_0_19_dt9qoak";
|
|
3
|
+
const CascaderDefaultOptionLabel = "E_4100_0_19_crhnxq5";
|
|
4
|
+
const CascaderNotData = "E_4100_0_19_c1iq43vd";
|
|
5
|
+
const CascaderDefaultHeaderSearch = "E_4100_0_19_c1h2v0a8";
|
|
6
|
+
const CascaderInputStyle = "E_4100_0_19_cgzzd7y";
|
|
7
|
+
const CascaderDefaultHeaderContainer = "E_4100_0_19_c1ec3mnt";
|
|
8
|
+
const CascaderDefaultHeader = "E_4100_0_19_c1iye0zj";
|
|
9
|
+
const CascaderDropdown = "E_4100_0_19_ckhyuyx";
|
|
10
|
+
const CascaderSmallDropdown = "E_4100_0_19_c1fmq9lv";
|
|
11
|
+
const CascaderLargeDropdown = "E_4100_0_19_c1evusvc";
|
|
12
12
|
|
|
13
13
|
export { CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderSmallDropdown, DoubleRowOptionStyleWrapper, Hide };
|
|
@@ -19,13 +19,13 @@ var DonutChartColor = /* @__PURE__ */(DonutChartColor2 => {
|
|
|
19
19
|
const _exp = /*#__PURE__*/() => props => `${props.width}`;
|
|
20
20
|
const DonutChartWrapper = /*#__PURE__*/styled('div')({
|
|
21
21
|
name: "DonutChartWrapper",
|
|
22
|
-
class: "
|
|
22
|
+
class: "E_4100_0_19_d1bw7c5z",
|
|
23
23
|
propsAsIs: false,
|
|
24
24
|
vars: {
|
|
25
25
|
"d1bw7c5z-0": [_exp(), "px"]
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
const TooltipDefaultClass = "
|
|
28
|
+
const TooltipDefaultClass = "E_4100_0_19_t10pqbtc";
|
|
29
29
|
const ColorMap = {
|
|
30
30
|
["blue" /* BLUE */]: [Color.chart.blue["blue-9"], Color.chart.blue["blue-7"], Color.chart.blue["blue-5"], Color.chart.blue["blue-3"], Color.chart.blue["blue-1"]],
|
|
31
31
|
["green" /* GREEN */]: [Color.chart.green["green-9"], Color.chart.green["green-7"], Color.chart.green["green-5"], Color.chart.green["green-3"], Color.chart.green["green-1"]],
|
|
@@ -3,7 +3,7 @@ import Tooltip from '../Tooltip/index.js';
|
|
|
3
3
|
import { Menu, Dropdown } from 'antd';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
|
|
6
|
-
const DropdownOverlayStyle = "
|
|
6
|
+
const DropdownOverlayStyle = "E_4100_0_19_d133fzv0";
|
|
7
7
|
const RenderMenuItem = item => {
|
|
8
8
|
if (item.hidden === true) {
|
|
9
9
|
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon } from '@cloudtower/icons-react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
|
-
const Style = "
|
|
4
|
+
const Style = "E_4100_0_19_suhck3k";
|
|
5
5
|
const ExpandIcon = props => {
|
|
6
6
|
const {
|
|
7
7
|
isActive
|
|
@@ -4,8 +4,8 @@ import { Collapse } from 'antd';
|
|
|
4
4
|
import cs from 'classnames';
|
|
5
5
|
import React__default, { useMemo, useState } from 'react';
|
|
6
6
|
|
|
7
|
-
const CollapseStyle = "
|
|
8
|
-
const CollapseDisabled = "
|
|
7
|
+
const CollapseStyle = "E_4100_0_19_ccrbeuz";
|
|
8
|
+
const CollapseDisabled = "E_4100_0_19_c1fljvag";
|
|
9
9
|
const ExpandableItem = props => {
|
|
10
10
|
const {
|
|
11
11
|
children,
|
|
@@ -3,7 +3,7 @@ import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
|
3
3
|
import cs from 'classnames';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
|
|
6
|
-
const FailedLoadStyle = "
|
|
6
|
+
const FailedLoadStyle = "E_4100_0_19_fzh9mnb";
|
|
7
7
|
const FailedLoad = props => {
|
|
8
8
|
const {
|
|
9
9
|
error,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const ImmersiveDialogStyle = "
|
|
2
|
-
const MultiAreaStyle = "
|
|
3
|
-
const CloseIconStyle = "
|
|
4
|
-
const TitleStyle = "
|
|
5
|
-
const FullContentStyle = "
|
|
6
|
-
const BodyStyle = "
|
|
7
|
-
const MultiAreaBodyStyle = "
|
|
8
|
-
const FooterStyle = "
|
|
9
|
-
const FooterButtonStyle = "
|
|
10
|
-
const FooterButtonRightStyle = "
|
|
11
|
-
const ErrorStyle = "
|
|
12
|
-
const ErrorIconStyle = "
|
|
13
|
-
const ErrorTextStyle = "
|
|
14
|
-
const CancelButtonStyle = "
|
|
1
|
+
const ImmersiveDialogStyle = "E_4100_0_19_icab5o7";
|
|
2
|
+
const MultiAreaStyle = "E_4100_0_19_msiso3p";
|
|
3
|
+
const CloseIconStyle = "E_4100_0_19_cxvrrew";
|
|
4
|
+
const TitleStyle = "E_4100_0_19_tskzd0j";
|
|
5
|
+
const FullContentStyle = "E_4100_0_19_f1fbnfp";
|
|
6
|
+
const BodyStyle = "E_4100_0_19_b4g2nsx";
|
|
7
|
+
const MultiAreaBodyStyle = "E_4100_0_19_myhed70";
|
|
8
|
+
const FooterStyle = "E_4100_0_19_fo07jei";
|
|
9
|
+
const FooterButtonStyle = "E_4100_0_19_fph3s12";
|
|
10
|
+
const FooterButtonRightStyle = "E_4100_0_19_f1f8uj0i";
|
|
11
|
+
const ErrorStyle = "E_4100_0_19_ejcjd85";
|
|
12
|
+
const ErrorIconStyle = "E_4100_0_19_e1lj3r2s";
|
|
13
|
+
const ErrorTextStyle = "E_4100_0_19_eb58k2y";
|
|
14
|
+
const CancelButtonStyle = "E_4100_0_19_c1bad0d";
|
|
15
15
|
|
|
16
16
|
export { BodyStyle, CancelButtonStyle, CloseIconStyle, ErrorIconStyle, ErrorStyle, ErrorTextStyle, FooterButtonRightStyle, FooterButtonStyle, FooterStyle, FullContentStyle, ImmersiveDialogStyle, MultiAreaBodyStyle, MultiAreaStyle, TitleStyle };
|
|
@@ -36,7 +36,7 @@ var __objRest = (source, exclude) => {
|
|
|
36
36
|
const _exp = /*#__PURE__*/() => Input$2;
|
|
37
37
|
const StyledAntdInput = /*#__PURE__*/styled(_exp())({
|
|
38
38
|
name: "StyledAntdInput",
|
|
39
|
-
class: "
|
|
39
|
+
class: "E_4100_0_19_sx1bpnu",
|
|
40
40
|
propsAsIs: true
|
|
41
41
|
});
|
|
42
42
|
const Input = _a => {
|
|
@@ -4,7 +4,7 @@ import { Input } from 'antd';
|
|
|
4
4
|
const _exp = /*#__PURE__*/() => Input.Group;
|
|
5
5
|
const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
6
6
|
name: "InputGroup",
|
|
7
|
-
class: "
|
|
7
|
+
class: "E_4100_0_19_itxley7",
|
|
8
8
|
propsAsIs: true
|
|
9
9
|
});
|
|
10
10
|
var InputGroup$1 = InputGroup;
|
|
@@ -46,7 +46,7 @@ const _exp6 = /*#__PURE__*/() => ({
|
|
|
46
46
|
}) => prefix ? "flex" : "none";
|
|
47
47
|
const AntdIntStyled = /*#__PURE__*/styled(_exp())({
|
|
48
48
|
name: "AntdIntStyled",
|
|
49
|
-
class: "
|
|
49
|
+
class: "E_4100_0_19_ai7qkf2",
|
|
50
50
|
propsAsIs: true,
|
|
51
51
|
vars: {
|
|
52
52
|
"ai7qkf2-0": [_exp2()],
|
|
@@ -45,7 +45,7 @@ const _exp6 = /*#__PURE__*/() => ({
|
|
|
45
45
|
}) => prefix ? "flex" : "none";
|
|
46
46
|
const AntdInputNumberStyled = /*#__PURE__*/styled(_exp())({
|
|
47
47
|
name: "AntdInputNumberStyled",
|
|
48
|
-
class: "
|
|
48
|
+
class: "E_4100_0_19_a1wfy30z",
|
|
49
49
|
propsAsIs: true,
|
|
50
50
|
vars: {
|
|
51
51
|
"a1wfy30z-0": [_exp2()],
|
|
@@ -36,7 +36,7 @@ var __objRest = (source, exclude) => {
|
|
|
36
36
|
const _exp = /*#__PURE__*/() => Input.Password;
|
|
37
37
|
const AntdPasswordInputStyled = /*#__PURE__*/styled(_exp())({
|
|
38
38
|
name: "AntdPasswordInputStyled",
|
|
39
|
-
class: "
|
|
39
|
+
class: "E_4100_0_19_atcz0kf",
|
|
40
40
|
propsAsIs: true
|
|
41
41
|
});
|
|
42
42
|
const InputPassword = _a => {
|
|
@@ -35,15 +35,15 @@ var __objRest = (source, exclude) => {
|
|
|
35
35
|
return target;
|
|
36
36
|
};
|
|
37
37
|
const LegendPresetColors = ["blue", "red", "yellow", "green", "gray", "purple"];
|
|
38
|
-
const LegendStyle = "
|
|
38
|
+
const LegendStyle = "E_4100_0_19_l1ucdodl";
|
|
39
39
|
const StatusCodeCircle = /*#__PURE__*/styled('i')({
|
|
40
40
|
name: "StatusCodeCircle",
|
|
41
|
-
class: "
|
|
41
|
+
class: "E_4100_0_19_s1qj66nc",
|
|
42
42
|
propsAsIs: false
|
|
43
43
|
});
|
|
44
44
|
const StatusCodeSquare = /*#__PURE__*/styled('i')({
|
|
45
45
|
name: "StatusCodeSquare",
|
|
46
|
-
class: "
|
|
46
|
+
class: "E_4100_0_19_s5x1boq",
|
|
47
47
|
propsAsIs: false
|
|
48
48
|
});
|
|
49
49
|
const LegendIcon = ({
|
|
@@ -88,7 +88,7 @@ const Legend = _a => {
|
|
|
88
88
|
props = __objRest(_b, ["label", "color", "className", "hoverable", "children", "number", "shape", "onTintMode"]);
|
|
89
89
|
const computedColor = ColorMap[color] || color;
|
|
90
90
|
const content = /* @__PURE__ */React__default.createElement(React__default.Fragment, null, label || children, !!number && /* @__PURE__ */React__default.createElement("span", {
|
|
91
|
-
className: cs("
|
|
91
|
+
className: cs("E_4100_0_19_c1xm185", "ui-kit-status-legend-number", {
|
|
92
92
|
"on-tint": onTintMode
|
|
93
93
|
})
|
|
94
94
|
}, number));
|
|
@@ -109,7 +109,7 @@ const Legend = _a => {
|
|
|
109
109
|
}), /* @__PURE__ */React__default.createElement(OverflowTooltip, {
|
|
110
110
|
content,
|
|
111
111
|
tooltip: content,
|
|
112
|
-
className: "
|
|
112
|
+
className: "E_4100_0_19_c1x5l5qc"
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
115
|
var Legend$1 = Legend;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import React__default, { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
const getAreaHighlightLinePath = (points) => {
|
|
5
|
+
if (!points.length) {
|
|
6
|
+
return "";
|
|
7
|
+
}
|
|
8
|
+
return points.map((point, index) => {
|
|
9
|
+
return `${index === 0 ? "M" : "L"}${point.x},${point.y}`;
|
|
10
|
+
}).join(" ");
|
|
11
|
+
};
|
|
12
|
+
const getAreaHighlightFillPath = (points, baseLineY) => {
|
|
13
|
+
if (!points.length) {
|
|
14
|
+
return "";
|
|
15
|
+
}
|
|
16
|
+
const linePath = getAreaHighlightLinePath(points);
|
|
17
|
+
const firstPoint = points[0];
|
|
18
|
+
const lastPoint = points[points.length - 1];
|
|
19
|
+
return `${linePath} L${lastPoint.x},${baseLineY} L${firstPoint.x},${baseLineY} Z`;
|
|
20
|
+
};
|
|
21
|
+
const AreaHighlightLayer = ({
|
|
22
|
+
forecastStartTimestamp,
|
|
23
|
+
overlay,
|
|
24
|
+
hovering,
|
|
25
|
+
offset,
|
|
26
|
+
xAxisMap,
|
|
27
|
+
yAxisMap
|
|
28
|
+
}) => {
|
|
29
|
+
var _a, _b, _c, _d, _e, _f;
|
|
30
|
+
const clipPathId = useMemo(() => {
|
|
31
|
+
return _.uniqueId("line-chart-area-highlight-");
|
|
32
|
+
}, []);
|
|
33
|
+
const xScale = (_a = Object.values(xAxisMap || {})[0]) == null ? void 0 : _a.scale;
|
|
34
|
+
const yScale = (_b = Object.values(yAxisMap || {})[0]) == null ? void 0 : _b.scale;
|
|
35
|
+
const offsetLeft = (_c = offset == null ? void 0 : offset.left) != null ? _c : 0;
|
|
36
|
+
const offsetTop = (_d = offset == null ? void 0 : offset.top) != null ? _d : 0;
|
|
37
|
+
const offsetWidth = (_e = offset == null ? void 0 : offset.width) != null ? _e : 0;
|
|
38
|
+
const offsetHeight = (_f = offset == null ? void 0 : offset.height) != null ? _f : 0;
|
|
39
|
+
if (typeof xScale !== "function" || typeof yScale !== "function" || !offsetWidth || !offsetHeight) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const projectedRuns = overlay.data.flatMap((run) => {
|
|
43
|
+
const runs = [];
|
|
44
|
+
let projectedPoints = [];
|
|
45
|
+
const flushProjectedPoints = () => {
|
|
46
|
+
if (projectedPoints.length >= 2) {
|
|
47
|
+
runs.push(projectedPoints);
|
|
48
|
+
}
|
|
49
|
+
projectedPoints = [];
|
|
50
|
+
};
|
|
51
|
+
run.forEach((point) => {
|
|
52
|
+
const projectedPoint = {
|
|
53
|
+
t: point.t,
|
|
54
|
+
x: xScale(point.t),
|
|
55
|
+
y: yScale(point.value)
|
|
56
|
+
};
|
|
57
|
+
if (Number.isFinite(projectedPoint.x) && Number.isFinite(projectedPoint.y)) {
|
|
58
|
+
projectedPoints.push(projectedPoint);
|
|
59
|
+
} else {
|
|
60
|
+
flushProjectedPoints();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
flushProjectedPoints();
|
|
64
|
+
return runs;
|
|
65
|
+
});
|
|
66
|
+
if (!projectedRuns.length) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const fallbackBaseLineY = offsetTop + offsetHeight;
|
|
70
|
+
const scaleBaseLineY = yScale(0);
|
|
71
|
+
const baseLineY = Number.isFinite(scaleBaseLineY) ? scaleBaseLineY : fallbackBaseLineY;
|
|
72
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
73
|
+
"g",
|
|
74
|
+
{
|
|
75
|
+
className: "line-chart-area-highlight",
|
|
76
|
+
"data-testid": "line-chart-area-highlight",
|
|
77
|
+
style: { pointerEvents: "none" },
|
|
78
|
+
opacity: hovering.includes(overlay.legendId) ? 0.3 : 1
|
|
79
|
+
},
|
|
80
|
+
/* @__PURE__ */ React__default.createElement("defs", null, /* @__PURE__ */ React__default.createElement("clipPath", { id: clipPathId }, /* @__PURE__ */ React__default.createElement(
|
|
81
|
+
"rect",
|
|
82
|
+
{
|
|
83
|
+
x: offsetLeft,
|
|
84
|
+
y: offsetTop,
|
|
85
|
+
width: offsetWidth,
|
|
86
|
+
height: offsetHeight
|
|
87
|
+
}
|
|
88
|
+
))),
|
|
89
|
+
/* @__PURE__ */ React__default.createElement("g", { clipPath: `url(#${clipPathId})` }, projectedRuns.map((projectedPoints, index) => {
|
|
90
|
+
const fillPath = getAreaHighlightFillPath(projectedPoints, baseLineY);
|
|
91
|
+
const linePath = getAreaHighlightLinePath(projectedPoints);
|
|
92
|
+
return /* @__PURE__ */ React__default.createElement("g", { key: `${overlay.key}-${index}` }, /* @__PURE__ */ React__default.createElement(
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
className: "line-chart-area-highlight-fill",
|
|
96
|
+
d: fillPath,
|
|
97
|
+
fill: overlay.fill,
|
|
98
|
+
fillOpacity: overlay.fillOpacity
|
|
99
|
+
}
|
|
100
|
+
), !Number.isFinite(forecastStartTimestamp) && /* @__PURE__ */ React__default.createElement(
|
|
101
|
+
"path",
|
|
102
|
+
{
|
|
103
|
+
className: "line-chart-area-highlight-curve",
|
|
104
|
+
d: linePath,
|
|
105
|
+
fill: "none",
|
|
106
|
+
stroke: overlay.stroke,
|
|
107
|
+
strokeWidth: 1
|
|
108
|
+
}
|
|
109
|
+
));
|
|
110
|
+
}))
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
var AreaHighlightLayer$1 = AreaHighlightLayer;
|
|
114
|
+
|
|
115
|
+
export { AreaHighlightLayer$1 as default };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { isFiniteNumber, getLineChartStreamStroke } from './lineChartDisplayUtils.js';
|
|
2
|
+
import { getLineChartLineSegments, getLineChartLinePath } from './lineSegments.js';
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
|
|
6
|
+
const DEFAULT_FORECAST_LINE_STROKE_DASHARRAY = "4 4";
|
|
7
|
+
const ForecastLineLayer = ({
|
|
8
|
+
forecastStartTimestamp,
|
|
9
|
+
stacked = false,
|
|
10
|
+
hovering,
|
|
11
|
+
streams,
|
|
12
|
+
deselected,
|
|
13
|
+
offset,
|
|
14
|
+
xAxisMap,
|
|
15
|
+
yAxisMap
|
|
16
|
+
}) => {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18
|
+
const clipPathId = React__default.useMemo(() => {
|
|
19
|
+
return _.uniqueId("line-chart-forecast-");
|
|
20
|
+
}, []);
|
|
21
|
+
const xScale = (_a = Object.values(xAxisMap || {})[0]) == null ? void 0 : _a.scale;
|
|
22
|
+
const yScale = (_b = Object.values(yAxisMap || {})[0]) == null ? void 0 : _b.scale;
|
|
23
|
+
const offsetLeft = (_c = offset == null ? void 0 : offset.left) != null ? _c : 0;
|
|
24
|
+
const offsetTop = (_d = offset == null ? void 0 : offset.top) != null ? _d : 0;
|
|
25
|
+
const offsetWidth = (_e = offset == null ? void 0 : offset.width) != null ? _e : 0;
|
|
26
|
+
const offsetHeight = (_f = offset == null ? void 0 : offset.height) != null ? _f : 0;
|
|
27
|
+
const lines = React__default.useMemo(() => {
|
|
28
|
+
if (!Number.isFinite(forecastStartTimestamp) || typeof xScale !== "function" || typeof yScale !== "function" || !offsetWidth || !offsetHeight) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
const pointMaps = streams.map(
|
|
32
|
+
(stream) => new Map(stream.points.map((point) => [point.t, point]))
|
|
33
|
+
);
|
|
34
|
+
const timestamps = stacked ? Array.from(
|
|
35
|
+
new Set(
|
|
36
|
+
streams.flatMap(
|
|
37
|
+
(stream) => stream.points.map((point) => point.t).filter(isFiniteNumber)
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
).sort((a, b) => a - b) : [];
|
|
41
|
+
return streams.flatMap((stream, streamIndex) => {
|
|
42
|
+
if (deselected.includes(stream.legend.id)) {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
const points = stacked ? timestamps.map((timestamp) => {
|
|
46
|
+
const currentPoint = pointMaps[streamIndex].get(timestamp);
|
|
47
|
+
if (!isFiniteNumber(currentPoint == null ? void 0 : currentPoint.v)) {
|
|
48
|
+
return { t: timestamp, x: xScale(timestamp), y: void 0 };
|
|
49
|
+
}
|
|
50
|
+
const stackedValue = streams.reduce((sum, item, index) => {
|
|
51
|
+
var _a2;
|
|
52
|
+
if (index > streamIndex || deselected.includes(item.legend.id)) {
|
|
53
|
+
return sum;
|
|
54
|
+
}
|
|
55
|
+
const value = (_a2 = pointMaps[index].get(timestamp)) == null ? void 0 : _a2.v;
|
|
56
|
+
return sum + (isFiniteNumber(value) ? value : 0);
|
|
57
|
+
}, 0);
|
|
58
|
+
return {
|
|
59
|
+
t: timestamp,
|
|
60
|
+
x: xScale(timestamp),
|
|
61
|
+
y: yScale(stackedValue)
|
|
62
|
+
};
|
|
63
|
+
}) : stream.points.map((point) => ({
|
|
64
|
+
t: point.t,
|
|
65
|
+
x: isFiniteNumber(point.t) ? xScale(point.t) : void 0,
|
|
66
|
+
y: isFiniteNumber(point.v) ? yScale(point.v) : void 0
|
|
67
|
+
}));
|
|
68
|
+
const segments = getLineChartLineSegments(points, forecastStartTimestamp);
|
|
69
|
+
return segments.map((segment, segmentIndex) => ({
|
|
70
|
+
dashed: segment.dashed,
|
|
71
|
+
key: `${stream.legend.id}-${segmentIndex}-${segment.points[0].t}`,
|
|
72
|
+
legendId: stream.legend.id,
|
|
73
|
+
path: getLineChartLinePath(segment.points),
|
|
74
|
+
stroke: getLineChartStreamStroke(stream)
|
|
75
|
+
}));
|
|
76
|
+
});
|
|
77
|
+
}, [
|
|
78
|
+
forecastStartTimestamp,
|
|
79
|
+
offsetHeight,
|
|
80
|
+
offsetWidth,
|
|
81
|
+
deselected,
|
|
82
|
+
stacked,
|
|
83
|
+
streams,
|
|
84
|
+
xScale,
|
|
85
|
+
yScale
|
|
86
|
+
]);
|
|
87
|
+
if (!lines.length || !offsetWidth || !offsetHeight) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
91
|
+
"g",
|
|
92
|
+
{
|
|
93
|
+
className: "line-chart-forecast-lines",
|
|
94
|
+
"data-testid": "line-chart-forecast-lines",
|
|
95
|
+
style: { pointerEvents: "none" }
|
|
96
|
+
},
|
|
97
|
+
/* @__PURE__ */ React__default.createElement("defs", null, /* @__PURE__ */ React__default.createElement("clipPath", { id: clipPathId }, /* @__PURE__ */ React__default.createElement(
|
|
98
|
+
"rect",
|
|
99
|
+
{
|
|
100
|
+
x: offsetLeft,
|
|
101
|
+
y: offsetTop,
|
|
102
|
+
width: offsetWidth,
|
|
103
|
+
height: offsetHeight
|
|
104
|
+
}
|
|
105
|
+
))),
|
|
106
|
+
/* @__PURE__ */ React__default.createElement("g", { clipPath: `url(#${clipPathId})` }, lines.map((line) => {
|
|
107
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
108
|
+
"path",
|
|
109
|
+
{
|
|
110
|
+
key: line.key,
|
|
111
|
+
className: "line-chart-forecast-line",
|
|
112
|
+
d: line.path,
|
|
113
|
+
fill: "none",
|
|
114
|
+
opacity: hovering.includes(line.legendId) ? 0.3 : 1,
|
|
115
|
+
stroke: line.stroke,
|
|
116
|
+
strokeDasharray: line.dashed ? DEFAULT_FORECAST_LINE_STROKE_DASHARRAY : void 0
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}))
|
|
120
|
+
);
|
|
121
|
+
};
|
|
122
|
+
var ForecastLineLayer$1 = ForecastLineLayer;
|
|
123
|
+
|
|
124
|
+
export { DEFAULT_FORECAST_LINE_STROKE_DASHARRAY, ForecastLineLayer$1 as default };
|