@cloudtower/eagle 0.35.1 → 0.35.3
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/UIKitProvider/index.js +5 -10
- package/dist/cjs/antd.js +4 -4
- package/dist/cjs/core/AutoComplete/AutoComplete.js +42 -0
- package/dist/cjs/core/ConfigProvider/index.js +3 -1
- package/dist/cjs/core/Fields/FieldsTimePicker/index.js +4 -3
- package/dist/cjs/core/ImmersiveDialog/index.js +21 -14
- package/dist/cjs/core/{Modal → LegacyModal}/index.js +7 -3
- package/dist/cjs/core/LegacySelect/index.js +4 -0
- package/dist/cjs/core/LocalUpload/LocalUpload.hooks.js +66 -0
- package/dist/cjs/core/LocalUpload/LocalUpload.js +103 -0
- package/dist/cjs/core/LocalUpload/LocalUpload.style.js +13 -0
- package/dist/cjs/core/LocalUpload/LocalUpload.widget.js +379 -0
- package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.js +7 -5
- package/dist/cjs/core/Tab/Tab.js +113 -0
- package/dist/cjs/core/Tab/Tab.style.js +17 -0
- package/dist/cjs/core/Tab/Tab.type.js +9 -0
- package/dist/cjs/core/Tab/useTabAdaptiveLayout.js +73 -0
- package/dist/cjs/core/message/message.js +24 -1
- package/dist/cjs/coreX/KubeConfigModal/index.js +4 -4
- package/dist/cjs/hooks/useAntdPatchEnLocales.js +35 -0
- package/dist/cjs/hooks/useLegacyComponentWarning.js +16 -0
- package/dist/cjs/index.js +26 -20
- package/dist/cjs/legacy-antd.js +2 -2
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2654 -2271
- package/dist/esm/UIKitProvider/index.js +5 -10
- package/dist/esm/antd.js +1 -1
- package/dist/esm/core/AutoComplete/AutoComplete.js +35 -0
- package/dist/esm/core/ConfigProvider/index.js +3 -1
- package/dist/esm/core/Fields/FieldsTimePicker/index.js +2 -1
- package/dist/esm/core/ImmersiveDialog/index.js +21 -14
- package/dist/esm/core/{Modal → LegacyModal}/index.js +9 -5
- package/dist/esm/core/LegacySelect/index.js +4 -0
- package/dist/esm/core/LocalUpload/LocalUpload.hooks.js +63 -0
- package/dist/esm/core/LocalUpload/LocalUpload.js +97 -0
- package/dist/esm/core/LocalUpload/LocalUpload.style.js +10 -0
- package/dist/esm/core/LocalUpload/LocalUpload.widget.js +365 -0
- package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/esm/core/SmallDialog/SmallDialog.js +6 -4
- package/dist/esm/core/Tab/Tab.js +107 -0
- package/dist/esm/core/Tab/Tab.style.js +12 -0
- package/dist/esm/core/Tab/Tab.type.js +7 -0
- package/dist/esm/core/Tab/useTabAdaptiveLayout.js +71 -0
- package/dist/esm/core/message/message.js +24 -1
- package/dist/esm/coreX/KubeConfigModal/index.js +5 -5
- package/dist/esm/hooks/useAntdPatchEnLocales.js +29 -0
- package/dist/esm/hooks/useLegacyComponentWarning.js +14 -0
- package/dist/esm/index.js +5 -2
- package/dist/esm/legacy-antd.js +4 -4
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2815 -2374
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/AutoComplete/AutoComplete.d.ts +3 -0
- package/dist/src/core/AutoComplete/index.d.ts +1 -0
- package/dist/src/core/ImmersiveDialog/type.d.ts +2 -2
- package/dist/src/core/{Modal/modal.type.d.ts → LegacyModal/LegacyModal.type.d.ts} +12 -1
- package/dist/src/core/LegacyModal/index.d.ts +16 -0
- package/dist/src/core/LocalUpload/LocalUpload.d.ts +15 -0
- package/dist/src/core/LocalUpload/LocalUpload.hooks.d.ts +32 -0
- package/dist/src/core/LocalUpload/LocalUpload.style.d.ts +3 -0
- package/dist/src/core/LocalUpload/LocalUpload.type.d.ts +175 -0
- package/dist/src/core/LocalUpload/LocalUpload.widget.d.ts +23 -0
- package/dist/src/core/LocalUpload/index.d.ts +2 -0
- package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +2 -0
- package/dist/src/core/Tab/Tab.d.ts +3 -0
- package/dist/src/core/Tab/Tab.style.d.ts +5 -0
- package/dist/src/core/Tab/Tab.type.d.ts +42 -0
- package/dist/src/core/Tab/index.d.ts +1 -0
- package/dist/src/core/Tab/useTabAdaptiveLayout.d.ts +23 -0
- package/dist/src/core/index.d.ts +5 -2
- package/dist/src/core/message/message.d.ts +5 -0
- package/dist/src/hooks/useAntdPatchEnLocales.d.ts +431 -0
- package/dist/src/hooks/useLegacyComponentWarning.d.ts +2 -0
- package/dist/src/spec/base.d.ts +2 -2
- package/dist/stories/docs/core/AutoComplete.stories.d.ts +41 -0
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/LegacyModal.stories.d.ts +23 -0
- package/dist/stories/docs/core/LocalUpload.stories.d.ts +74 -0
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/SmallDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/Tab.stories.d.ts +65 -0
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +2 -1
- package/dist/stories/docs/core/message-group.stories.d.ts +1 -0
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +5 -0
- package/dist/style.css +2652 -2269
- package/dist/variables.scss +3 -0
- package/package.json +4 -4
- package/dist/src/core/Modal/index.d.ts +0 -5
- package/dist/stories/docs/core/Modal.stories.d.ts +0 -13
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React__default, { useCallback } from 'react';
|
|
2
|
-
import Modal from '../../core/Modal/index.js';
|
|
3
1
|
import { ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon } from '@cloudtower/icons-react';
|
|
4
|
-
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
5
2
|
import { cx } from '@linaria/core';
|
|
6
|
-
import
|
|
3
|
+
import LegacyModal from '../../core/LegacyModal/index.js';
|
|
4
|
+
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
5
|
+
import React__default, { useCallback } from 'react';
|
|
7
6
|
import { KubeConfigModalStyle, KubeConfigFooterStyle, KubeConfigWrapperStyle, KubeConfigTitleStyle, KubeConfigTipStyle, KubeConfigContentStyle, ErrorWrapper, ErrorContentWrapper } from './KubeConfigModal.style.js';
|
|
7
|
+
import { copy, download } from './utils.js';
|
|
8
8
|
import { usePopModal } from '../../core/KitStoreProvider/index.js';
|
|
9
9
|
import _message from '../../core/message/message.js';
|
|
10
10
|
import Button from '../../core/Button/index.js';
|
|
@@ -47,7 +47,7 @@ const KubeConfigModal = ({
|
|
|
47
47
|
popModal();
|
|
48
48
|
}, [data, popModal, downloadName]);
|
|
49
49
|
return /* @__PURE__ */ React__default.createElement(
|
|
50
|
-
|
|
50
|
+
LegacyModal,
|
|
51
51
|
{
|
|
52
52
|
visible: true,
|
|
53
53
|
fullscreen: true,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import merge from 'lodash/merge';
|
|
3
|
+
|
|
4
|
+
const PatchEnLocale = {
|
|
5
|
+
Modal: {
|
|
6
|
+
okText: "OK",
|
|
7
|
+
justOkText: "OK"
|
|
8
|
+
},
|
|
9
|
+
Popconfirm: {
|
|
10
|
+
okText: "OK"
|
|
11
|
+
// ← 需要修改
|
|
12
|
+
},
|
|
13
|
+
DatePicker: {
|
|
14
|
+
lang: {
|
|
15
|
+
ok: "OK"
|
|
16
|
+
// ← 需要修改
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
Calendar: {
|
|
20
|
+
lang: {
|
|
21
|
+
ok: "OK"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const useAntdPatchEnLocales = (enLocale) => {
|
|
26
|
+
return useMemo(() => merge(enLocale, PatchEnLocale), [enLocale]);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { useAntdPatchEnLocales };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const useLegacyComponentWarning = (msg) => {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
if (process.env.NODE_ENV === "development") {
|
|
6
|
+
console.warn(
|
|
7
|
+
msg != null ? msg : "Warning: LegacyComponent is deprecated and will be removed in future versions."
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
}, [msg]);
|
|
11
|
+
};
|
|
12
|
+
var useLegacyComponentWarning$1 = useLegacyComponentWarning;
|
|
13
|
+
|
|
14
|
+
export { useLegacyComponentWarning$1 as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -47,13 +47,13 @@ export { AntdInputNumberStyled, default as InputNumber } from './core/InputNumbe
|
|
|
47
47
|
export { AntdPasswordInputStyled, default as InputPassword } from './core/InputPassword/index.js';
|
|
48
48
|
export { default as InputTagItem } from './core/InputTagItem/index.js';
|
|
49
49
|
export { default as KitStoreProvider, useCloseModal, useKitDispatch, useKitSelector, usePopModal, usePushModal, useResetModal } from './core/KitStoreProvider/index.js';
|
|
50
|
+
export { default as LegacyModal } from './core/LegacyModal/index.js';
|
|
50
51
|
export { default as LegacySelect } from './core/LegacySelect/index.js';
|
|
51
52
|
export { default as Legend, LegendIcon, LegendPresetColors } from './core/Legend/index.js';
|
|
52
53
|
export { default as LineChart } from './core/LineChart/index.js';
|
|
53
54
|
export { default as Link } from './core/Link/index.js';
|
|
54
55
|
export { default as Loading } from './core/Loading/index.js';
|
|
55
56
|
export { default as Metric } from './core/Metric/index.js';
|
|
56
|
-
export { default as Modal } from './core/Modal/index.js';
|
|
57
57
|
export { default as ModalStack } from './core/ModalStack/index.js';
|
|
58
58
|
export { default as Nav } from './core/Nav/index.js';
|
|
59
59
|
export { ExtraOverflow, default as Overflow } from './core/Overflow/index.js';
|
|
@@ -65,7 +65,7 @@ export { default as Second } from './core/Second/index.js';
|
|
|
65
65
|
export { default as SegmentControl } from './core/SegmentControl/index.js';
|
|
66
66
|
export { default as Select } from './core/Select/index.js';
|
|
67
67
|
export { default as SimplePagination } from './core/SimplePagination/index.js';
|
|
68
|
-
export { Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Skeleton as AntdSkeleton, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, TimePicker as AntdTimePicker, Timeline as AntdTimeline, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect,
|
|
68
|
+
export { AutoComplete as AntdAutoComplete, Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Skeleton as AntdSkeleton, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, TimePicker as AntdTimePicker, Timeline as AntdTimeline, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Space, Tabs, Tree, Typography, Upload } from 'antd';
|
|
69
69
|
export { default as Speed } from './core/Speed/index.js';
|
|
70
70
|
export { default as StatusCapsule, StatusIcon, StatusPresetColors } from './core/StatusCapsule/index.js';
|
|
71
71
|
export { default as Steps } from './core/Steps/index.js';
|
|
@@ -83,6 +83,7 @@ export { default as Truncate } from './core/Truncate/index.js';
|
|
|
83
83
|
export { Antd5Dropdown } from './core/Antd5Dropdown/Antd5Dropdown.js';
|
|
84
84
|
export { Flex as Antd5Flex, Tree as Antd5Tree } from 'antd5';
|
|
85
85
|
export { Architecture } from './core/Arch/arch.type.js';
|
|
86
|
+
export { AutoComplete } from './core/AutoComplete/AutoComplete.js';
|
|
86
87
|
export { Banner } from './core/Banner/index.js';
|
|
87
88
|
export { BasicCTError } from './core/BasicCTError/index.js';
|
|
88
89
|
export { CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderSmallDropdown, DoubleRowOptionStyleWrapper, Hide } from './core/Cascader/cascader.style.js';
|
|
@@ -97,6 +98,7 @@ export { ImmersiveDialog } from './core/ImmersiveDialog/index.js';
|
|
|
97
98
|
export { LineChartColorBlock, default as LineChartLegend } from './core/LineChart/LineChartLegend.js';
|
|
98
99
|
export { ILineChartGraphType, ILineChartMetricUnit, ILineChartTimeUnit } from './core/LineChart/type.js';
|
|
99
100
|
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';
|
|
101
|
+
export { LocalUpload } from './core/LocalUpload/LocalUpload.js';
|
|
100
102
|
export { MediumDialog } from './core/MediumDialog/MediumDialog.js';
|
|
101
103
|
export { Batcher, createBatchMessageMethods, makeUUID } from './core/message-group/index.js';
|
|
102
104
|
export { default as MetricActions } from './core/Metric/MetricActions.js';
|
|
@@ -117,6 +119,7 @@ export { SmallDialog } from './core/SmallDialog/SmallDialog.js';
|
|
|
117
119
|
export { CloseIconStyle, DialogStyle, ErrorTextStyle, FooterStyle, ModelContentSkeletonStyle, ModelInitializingErrorStyle, ModelTitleSkeletonStyle } from './core/SmallDialog/SmallDialog.style.js';
|
|
118
120
|
export { CircleProgress } from './core/StepProgress/index.js';
|
|
119
121
|
export { CannotOperationInfo, CommonContent, ContentWrapper, Desc, Description, Divider, Dot, ErrorSpan, ExpandArrow, FieldTitle, FormField, FormItemDiv, FormSectionTitle, FormWrapper, FullView, HorizontalWizardModalCompactStyle, HorizontalWizardModalLooseStyle, InfoAlert, InputStyle, KitInputStyle, LeftEndInputStyle, LeftEndSelectStyle, LightDesc, LoadingWrapper, ModalBody, ModalWrapper, NameTag, NormalAlert, NoticeAlert, OperationWraper, RadioDesc, RightEndInputStyle, RightEndSelectStyle, SelectOptionDisabledText, TagSpan, TertiaryText, UnitStyle, WarningAlert, WizardBody, radioStyle } from './core/Styled/index.js';
|
|
122
|
+
export { Tab } from './core/Tab/Tab.js';
|
|
120
123
|
export { useTableBodyHasScrollBar } from './core/Table/common.js';
|
|
121
124
|
export { TableSkeleton } from './core/Table/TableSkeleton.js';
|
|
122
125
|
export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core/Table/TableWidget.js';
|
package/dist/esm/legacy-antd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select as Select$1, Row, Col, Dropdown, Tree, Divider, Skeleton, List, Menu, Layout, AutoComplete, Popover, Space, Timeline, Checkbox as Checkbox$1, Typography, Upload, DatePicker, TimePicker, Tabs, Badge as Badge$1, message, Button as Button$1, Tooltip as Tooltip$1, Modal
|
|
1
|
+
import { Select as Select$1, Row, Col, Dropdown, Tree, Divider, Skeleton, List, Menu, Layout, AutoComplete, Popover, Space, Timeline, Checkbox as Checkbox$1, Typography, Upload, DatePicker, TimePicker, Tabs, Badge as Badge$1, message, Button as Button$1, Tooltip as Tooltip$1, Modal, Input as Input$1, Table as Table$1, Empty as Empty$1, Switch as Switch$1, Collapse, TreeSelect, Drawer, Steps as Steps$1 } from 'antd';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import AccordionCard from './core/AccordionCard/index.js';
|
|
4
4
|
import Alert from './core/Alert/index.js';
|
|
@@ -28,11 +28,11 @@ import Form from './core/Form/index.js';
|
|
|
28
28
|
import Frequency from './core/Frequency/index.js';
|
|
29
29
|
import Input from './core/Input/index.js';
|
|
30
30
|
import InputGroup from './core/InputGroup/index.js';
|
|
31
|
+
import LegacyModal from './core/LegacyModal/index.js';
|
|
31
32
|
import LegacySelect from './core/LegacySelect/index.js';
|
|
32
33
|
import Link from './core/Link/index.js';
|
|
33
34
|
import Loading from './core/Loading/index.js';
|
|
34
35
|
import _message from './core/message/message.js';
|
|
35
|
-
import Modal from './core/Modal/index.js';
|
|
36
36
|
import Pagination from './core/Pagination/index.js';
|
|
37
37
|
import Percent from './core/Percent/index.js';
|
|
38
38
|
import Radio, { RadioGroup, RadioButton } from './core/Radio/index.js';
|
|
@@ -86,7 +86,7 @@ function getAntdKit() {
|
|
|
86
86
|
row: Row,
|
|
87
87
|
col: Col,
|
|
88
88
|
button: Button,
|
|
89
|
-
|
|
89
|
+
legacyModal: LegacyModal,
|
|
90
90
|
dropdown: Dropdown,
|
|
91
91
|
switch: Switch,
|
|
92
92
|
tooltip: Tooltip,
|
|
@@ -155,7 +155,7 @@ function getAntdKit() {
|
|
|
155
155
|
antdButton: Button$1,
|
|
156
156
|
antdSelect: Select$1,
|
|
157
157
|
antdTooltip: Tooltip$1,
|
|
158
|
-
antdModal: Modal
|
|
158
|
+
antdModal: Modal,
|
|
159
159
|
antdInput: Input$1,
|
|
160
160
|
antdTable: Table$1,
|
|
161
161
|
antdEmpty: Empty$1,
|