@cloudtower/eagle 0.32.40 → 0.32.41
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/__test__/mockLineChart.d.ts +4 -0
- package/dist/cjs/core/ConfigProvider/index.js +5 -5
- package/dist/cjs/core/LineChart/LineChartActions.js +52 -0
- package/dist/cjs/core/LineChart/LineChartLegend.js +101 -0
- package/dist/cjs/core/LineChart/LineChartToolBar.js +56 -0
- package/dist/cjs/core/LineChart/Pointer.js +45 -0
- package/dist/cjs/core/LineChart/RenderChart.js +304 -0
- package/dist/cjs/core/LineChart/TooltipFormatter.js +70 -0
- package/dist/cjs/core/LineChart/index.js +66 -0
- package/dist/cjs/core/LineChart/styled.js +35 -0
- package/dist/cjs/core/LineChart/type.js +30 -0
- package/dist/cjs/core/LineChart/utils.js +394 -0
- package/dist/cjs/core/Loading/index.js +2 -2
- package/dist/cjs/core/Progress/progress.widgets.js +1 -1
- package/dist/cjs/core/Timeline/Timeline.widget.js +4 -4
- package/dist/cjs/core/Timeline/index.js +4 -4
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/coreX/CheckPointList/index.js +3 -3
- package/dist/cjs/coreX/CircleLoading/index.js +4 -4
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +47 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +87 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.type.js +11 -0
- package/dist/cjs/coreX/Dialogs/SmallDialog.js +86 -0
- package/dist/cjs/index.js +168 -131
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/constants.js +1 -1
- package/dist/cjs/utils/tower.js +81 -0
- package/dist/components.css +2512 -2178
- package/dist/esm/core/ConfigProvider/index.js +3 -3
- package/dist/esm/core/LineChart/LineChartActions.js +46 -0
- package/dist/esm/core/LineChart/LineChartLegend.js +91 -0
- package/dist/esm/core/LineChart/LineChartToolBar.js +50 -0
- package/dist/esm/core/LineChart/Pointer.js +38 -0
- package/dist/esm/core/LineChart/RenderChart.js +296 -0
- package/dist/esm/core/LineChart/TooltipFormatter.js +63 -0
- package/dist/esm/core/LineChart/index.js +57 -0
- package/dist/esm/core/LineChart/styled.js +25 -0
- package/dist/esm/core/LineChart/type.js +26 -0
- package/dist/esm/core/LineChart/utils.js +369 -0
- package/dist/esm/core/Loading/index.js +1 -1
- package/dist/esm/core/Progress/progress.widgets.js +1 -1
- package/dist/esm/core/Timeline/Timeline.widget.js +3 -3
- package/dist/esm/core/Timeline/index.js +3 -3
- package/dist/esm/coreX/CheckPointList/index.js +3 -3
- package/dist/esm/coreX/CircleLoading/index.js +3 -3
- package/dist/esm/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +41 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +81 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.type.js +9 -0
- package/dist/esm/coreX/Dialogs/SmallDialog.js +80 -0
- package/dist/esm/index.js +10 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/tower.js +77 -1
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/ConfigProvider/index.d.ts +2 -2
- package/dist/src/core/LineChart/LineChartActions.d.ts +7 -0
- package/dist/src/core/LineChart/LineChartLegend.d.ts +18 -0
- package/dist/src/core/LineChart/LineChartToolBar.d.ts +20 -0
- package/dist/src/core/LineChart/Pointer.d.ts +6 -0
- package/dist/src/core/LineChart/RenderChart.d.ts +45 -0
- package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
- package/dist/src/core/LineChart/__test__/h5_css.test.d.ts +1 -0
- package/dist/src/core/LineChart/index.d.ts +8 -0
- package/dist/src/core/LineChart/styled.d.ts +12 -0
- package/dist/src/core/LineChart/type.d.ts +191 -0
- package/dist/src/core/LineChart/utils.d.ts +56 -0
- package/dist/src/core/Metric/metric.d.ts +1 -1
- package/dist/src/core/Timeline/Timeline.type.d.ts +2 -2
- package/dist/src/core/index.d.ts +4 -1
- package/dist/src/coreX/CheckPointList/index.d.ts +1 -1
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +19 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +59 -0
- package/dist/src/coreX/Dialogs/RejectDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/SmallDialog.d.ts +31 -0
- package/dist/src/coreX/Dialogs/index.d.ts +3 -0
- package/dist/src/coreX/index.d.ts +2 -1
- package/dist/src/utils/tower.d.ts +12 -0
- package/dist/stories/docs/core/LineChart.stories.d.ts +16 -0
- package/dist/stories/docs/core/Timeline.stories.d.ts +2 -2
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +37 -0
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +89 -0
- package/dist/stories/docs/coreX/Show.stories.d.ts +2 -2
- package/dist/style.css +2158 -1862
- package/dist/variables.scss +2 -0
- package/package.json +5 -6
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { CloseCircleFilled } from '@ant-design/icons';
|
|
2
|
+
import { cx } from '@linaria/core';
|
|
3
|
+
import { usePopModal } from '../../core/KitStoreProvider/index.js';
|
|
4
|
+
import { Modal } from 'antd';
|
|
5
|
+
import React__default from 'react';
|
|
6
|
+
import Button from '../../core/Button/index.js';
|
|
7
|
+
import { Typo } from '../../core/Typo/index.js';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value
|
|
18
|
+
}) : obj[key] = value;
|
|
19
|
+
var __spreadValues = (a, b) => {
|
|
20
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
22
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
const DialogStyle = "E_d11hhzf9";
|
|
27
|
+
const FooterStyle = "E_f1g147n6";
|
|
28
|
+
const SmallDialog = ({
|
|
29
|
+
title,
|
|
30
|
+
cancelText = "\u5173\u95ED",
|
|
31
|
+
okText = "\u786E\u5B9A",
|
|
32
|
+
showOk = true,
|
|
33
|
+
onOk,
|
|
34
|
+
onCancel,
|
|
35
|
+
maskClosable = true,
|
|
36
|
+
closable = true,
|
|
37
|
+
className,
|
|
38
|
+
footerClassName,
|
|
39
|
+
okButtonProps,
|
|
40
|
+
cancelButtonProps,
|
|
41
|
+
children
|
|
42
|
+
}) => {
|
|
43
|
+
const popModal = usePopModal();
|
|
44
|
+
const handleClose = () => {
|
|
45
|
+
if (onCancel) {
|
|
46
|
+
onCancel(popModal);
|
|
47
|
+
} else {
|
|
48
|
+
popModal();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const handleOk = () => {
|
|
52
|
+
if (onOk) {
|
|
53
|
+
onOk(popModal);
|
|
54
|
+
} else {
|
|
55
|
+
popModal();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */React__default.createElement(Modal, {
|
|
59
|
+
visible: true,
|
|
60
|
+
title: /* @__PURE__ */React__default.createElement("span", {
|
|
61
|
+
className: Typo.Display.d2_bold_title
|
|
62
|
+
}, title),
|
|
63
|
+
footer: /* @__PURE__ */React__default.createElement("div", {
|
|
64
|
+
className: cx(FooterStyle, footerClassName)
|
|
65
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues({
|
|
66
|
+
type: "ghost",
|
|
67
|
+
onClick: handleClose
|
|
68
|
+
}, cancelButtonProps), cancelText), showOk && /* @__PURE__ */React__default.createElement(Button, __spreadValues({
|
|
69
|
+
type: "primary",
|
|
70
|
+
onClick: handleOk
|
|
71
|
+
}, okButtonProps), okText)),
|
|
72
|
+
onCancel: handleClose,
|
|
73
|
+
closable,
|
|
74
|
+
maskClosable,
|
|
75
|
+
className: cx(DialogStyle, className),
|
|
76
|
+
closeIcon: /* @__PURE__ */React__default.createElement(CloseCircleFilled, null)
|
|
77
|
+
}, children);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export { SmallDialog };
|
package/dist/esm/index.js
CHANGED
|
@@ -46,6 +46,7 @@ export { default as InputTagItem } from './core/InputTagItem/index.js';
|
|
|
46
46
|
export { default as KitStoreProvider, useCloseModal, useKitDispatch, useKitSelector, usePopModal, usePushModal, useResetModal } from './core/KitStoreProvider/index.js';
|
|
47
47
|
export { default as LegacySelect } from './core/LegacySelect/index.js';
|
|
48
48
|
export { default as Link } from './core/Link/index.js';
|
|
49
|
+
export { default as LineChart } from './core/LineChart/index.js';
|
|
49
50
|
export { default as Loading } from './core/Loading/index.js';
|
|
50
51
|
export { DEFAULT_DURATION, attachTypeApi, getKeyThenIncreaseKey, default as message } from './core/message/index.js';
|
|
51
52
|
export { default as Metric } from './core/Metric/index.js';
|
|
@@ -76,7 +77,6 @@ export { default as TimeZoneSelect } from './core/TimeZoneSelect/index.js';
|
|
|
76
77
|
export { default as Token, TokenPresetColors } from './core/Token/index.js';
|
|
77
78
|
export { default as Tooltip } from './core/Tooltip/index.js';
|
|
78
79
|
export { default as Truncate } from './core/Truncate/index.js';
|
|
79
|
-
export { Timeline } from './core/Timeline/index.js';
|
|
80
80
|
export { Antd5Dropdown } from './core/Antd5Dropdown/Antd5Dropdown.js';
|
|
81
81
|
export { Architecture } from './core/Arch/arch.type.js';
|
|
82
82
|
export { CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderSmallDropdown, DoubleRowOptionStyleWrapper, Hide } from './core/Cascader/cascader.style.js';
|
|
@@ -87,6 +87,9 @@ export { default as ExpandableContainer } from './core/ExpandableList/Expandable
|
|
|
87
87
|
export { default as ExpandableItem } from './core/ExpandableList/ExpandableItem.js';
|
|
88
88
|
export { default as ExpandIcon } from './core/ExpandableList/ExpandIcon.js';
|
|
89
89
|
export { default as RoundOrder } from './core/ExpandableList/RoundOrder.js';
|
|
90
|
+
export { LineChartColorBlock, default as LineChartLegend } from './core/LineChart/LineChartLegend.js';
|
|
91
|
+
export { ILineChartGraphType, ILineChartMetricUnit, ILineChartTimeUnit } from './core/LineChart/type.js';
|
|
92
|
+
export { UNIT_FORMATTER, addMissingDataWithZero, convertLineChartDataStruct, convertLineChartUnit, deletePointsOutOfRange, filterLineChartDataOverlapping, filterLineChartOverlappingMetric, filterLineChartPointsByDateRange, getFirstExpectedTimestamp, getLineChartRangeTimestamp, getLineChartStep, getLineChartXAxisDomain, getLineChartYDataMax, getYAxisDomain, getYAxisUpperBound, lineChartTickFormatter, lineChartXaxisCal, lineChartYaxisTickFormatter, parseLineChartRange } from './core/LineChart/utils.js';
|
|
90
93
|
export { Batcher, createBatchMessageMethods, makeUUID } from './core/message-group/index.js';
|
|
91
94
|
export { default as MetricActions } from './core/Metric/MetricActions.js';
|
|
92
95
|
export { ColorBlock, LegendComponent, default as MetricLegend } from './core/Metric/MetricLegend.js';
|
|
@@ -108,6 +111,7 @@ export { useTableBodyHasScrollBar } from './core/Table/common.js';
|
|
|
108
111
|
export { TableSkeleton } from './core/Table/TableSkeleton.js';
|
|
109
112
|
export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core/Table/TableWidget.js';
|
|
110
113
|
export { ValidateTriggerType } from './core/TableForm/types.js';
|
|
114
|
+
export { Timeline } from './core/Timeline/index.js';
|
|
111
115
|
export { Typo } from './core/Typo/index.js';
|
|
112
116
|
export { default as BarChart, getWidth } from './coreX/BarChart/index.js';
|
|
113
117
|
export { default as BatchOperation, renderBatchOperationMenuItem } from './coreX/BatchOperation/index.js';
|
|
@@ -130,14 +134,18 @@ export { default as SummaryTable, SummaryTableRow } from './coreX/SummaryTable/i
|
|
|
130
134
|
export { default as SwitchWithText } from './coreX/SwitchWithText/index.js';
|
|
131
135
|
export { default as TabMenu } from './coreX/TabMenu/index.js';
|
|
132
136
|
export { default as UnitWithChart, UnitWrapper } from './coreX/UnitWithChart/index.js';
|
|
137
|
+
export { CheckPointItem, CheckPointList } from './coreX/CheckPointList/index.js';
|
|
133
138
|
export { getCalendarTitle } from './coreX/common/getCalendarTitle.js';
|
|
134
139
|
export { default as AbsoluteDate } from './coreX/DateRangePicker/AbsoluteDate.js';
|
|
135
140
|
export { default as DateRangePickerCalendar } from './coreX/DateRangePicker/Calendar.js';
|
|
136
141
|
export { default as InputTime } from './coreX/DateRangePicker/InputTime.js';
|
|
137
142
|
export { default as RelativeTime } from './coreX/DateRangePicker/RelativeTime.js';
|
|
143
|
+
export { DeleteDialog } from './coreX/Dialogs/DeleteDialog/DeleteDialog.js';
|
|
144
|
+
export { RejectDialog } from './coreX/Dialogs/RejectDialog/RejectDialog.js';
|
|
145
|
+
export { RejectDialogType } from './coreX/Dialogs/RejectDialog/RejectDialog.type.js';
|
|
146
|
+
export { SmallDialog } from './coreX/Dialogs/SmallDialog.js';
|
|
138
147
|
export { InfoRowList } from './coreX/InfoRowList/InfoRowList.js';
|
|
139
148
|
export { Show } from './coreX/Show/index.js';
|
|
140
|
-
export { CheckPointItem, CheckPointList } from './coreX/CheckPointList/index.js';
|
|
141
149
|
export { Animation, Keyframes } from './styles/token/animation.js';
|
|
142
150
|
export { Color } from './styles/token/color.js';
|
|
143
151
|
export { zIndices } from './styles/token/zIndices.js';
|