@cloudtower/eagle 0.31.16 → 0.31.18
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/Fields/FieldsEnum/index.js +1 -1
- package/dist/cjs/core/LegacySelect/index.js +185 -0
- package/dist/cjs/core/LegacySelect/select.style.js +5 -0
- package/dist/cjs/core/Select/index.js +106 -117
- package/dist/cjs/core/Select/select.style.js +11 -0
- package/dist/cjs/core/Select/select.widgets.js +63 -0
- package/dist/cjs/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/cjs/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/cjs/core/TableForm/index.js +12 -1
- package/dist/cjs/core/TimeZoneSelect/index.js +1 -1
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/index.js +185 -181
- package/dist/cjs/legacy-antd.js +137 -135
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3556 -3373
- package/dist/esm/core/Fields/FieldsEnum/index.js +4 -4
- package/dist/esm/core/LegacySelect/index.js +177 -0
- package/dist/esm/core/LegacySelect/select.style.js +3 -0
- package/dist/esm/core/Select/index.js +104 -116
- package/dist/esm/core/Select/select.style.js +6 -0
- package/dist/esm/core/Select/select.widgets.js +57 -0
- package/dist/esm/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/esm/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/esm/core/TableForm/index.js +13 -2
- package/dist/esm/core/TimeZoneSelect/index.js +2 -2
- package/dist/esm/index.js +5 -3
- package/dist/esm/legacy-antd.js +2 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/LegacySelect/index.d.ts +4 -0
- package/dist/src/core/LegacySelect/select.style.d.ts +1 -0
- package/dist/src/core/LegacySelect/select.type.d.ts +31 -0
- package/dist/src/core/Select/index.d.ts +1 -0
- package/dist/src/core/Select/select.style.d.ts +4 -0
- package/dist/src/core/Select/select.type.d.ts +6 -31
- package/dist/src/core/Select/select.widgets.d.ts +7 -0
- package/dist/src/core/TableForm/types.d.ts +3 -0
- package/dist/src/core/index.d.ts +4 -2
- package/dist/src/spec/base.d.ts +2 -1
- package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts} +3 -3
- package/dist/stories/docs/core/LegacySelect.stories.d.ts +16 -0
- package/dist/style.css +3327 -3175
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps as AntdSelectProps } from "antd/lib/select";
|
|
3
|
+
import { FieldRenderProps } from "../Fields/fields.type";
|
|
4
|
+
export type KitLegacySelectProps = {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
error?: unknown | React.ReactNode;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
scrollBottomBuffer?: number;
|
|
10
|
+
onScrollBottom?: () => void;
|
|
11
|
+
selectLimit?: number;
|
|
12
|
+
} & AntdSelectProps<string>;
|
|
13
|
+
export interface LooseFieldRenderProps<V, T extends HTMLElement> {
|
|
14
|
+
input: {
|
|
15
|
+
name?: FieldRenderProps<V, T>["input"]["name"];
|
|
16
|
+
value?: FieldRenderProps<V, T>["input"]["value"];
|
|
17
|
+
onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
|
|
18
|
+
onChange?: (value: string | string[], option: {
|
|
19
|
+
object: V;
|
|
20
|
+
} | Array<{
|
|
21
|
+
object: V;
|
|
22
|
+
}>) => void;
|
|
23
|
+
onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
|
|
24
|
+
type?: FieldRenderProps<V, T>["input"]["type"];
|
|
25
|
+
checked?: FieldRenderProps<V, T>["input"]["checked"];
|
|
26
|
+
multiple?: FieldRenderProps<V, T>["input"]["multiple"];
|
|
27
|
+
};
|
|
28
|
+
meta?: FieldRenderProps<V, T>["meta"];
|
|
29
|
+
focusIndicator?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type LegacySelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitLegacySelectProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SelectStyle: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const SelectIconStyle: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const SelectSizeStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const PlaceholderTextStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
danger?: boolean;
|
|
8
|
-
multiple?: boolean;
|
|
9
|
-
scrollBottomBuffer?: number;
|
|
10
|
-
onScrollBottom?: () => void;
|
|
11
|
-
selectLimit?: number;
|
|
12
|
-
} & AntdSelectProps<string>;
|
|
13
|
-
interface LooseFieldRenderProps<V, T extends HTMLElement> {
|
|
14
|
-
input: {
|
|
15
|
-
name?: FieldRenderProps<V, T>["input"]["name"];
|
|
16
|
-
value?: FieldRenderProps<V, T>["input"]["value"];
|
|
17
|
-
onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
|
|
18
|
-
onChange?: (value: string | string[], option: {
|
|
19
|
-
object: V;
|
|
20
|
-
} | Array<{
|
|
21
|
-
object: V;
|
|
22
|
-
}>) => void;
|
|
23
|
-
onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
|
|
24
|
-
type?: FieldRenderProps<V, T>["input"]["type"];
|
|
25
|
-
checked?: FieldRenderProps<V, T>["input"]["checked"];
|
|
26
|
-
multiple?: FieldRenderProps<V, T>["input"]["multiple"];
|
|
27
|
-
};
|
|
28
|
-
meta?: FieldRenderProps<V, T>["meta"];
|
|
29
|
-
focusIndicator?: boolean;
|
|
30
|
-
}
|
|
1
|
+
import { KitLegacySelectProps, LooseFieldRenderProps } from "../../core/LegacySelect";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type KitSelectProps = KitLegacySelectProps & {
|
|
4
|
+
/** 是否正在加载 Select 组件的值 */
|
|
5
|
+
isLoadingValue?: boolean;
|
|
6
|
+
};
|
|
31
7
|
export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
|
|
32
|
-
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OptionProps as AntdOptionProps } from "antd/lib/select";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type OptionProps = AntdOptionProps & {
|
|
4
|
+
prefix?: React.ReactNode;
|
|
5
|
+
suffix?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function getOptions(options: OptionProps[]): React.JSX.Element[];
|
|
@@ -117,6 +117,7 @@ export interface ColumnBodyCellProps {
|
|
|
117
117
|
getRowValidateResult: (rowData: DataType) => string | undefined;
|
|
118
118
|
validateAll: boolean;
|
|
119
119
|
error?: string | null;
|
|
120
|
+
onValidate?: (id: string, isValid: boolean) => void;
|
|
120
121
|
}
|
|
121
122
|
export type AddRowButtonProps = {
|
|
122
123
|
config: RowAddConfigurations;
|
|
@@ -140,6 +141,7 @@ export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "di
|
|
|
140
141
|
validateAll: boolean;
|
|
141
142
|
draggable?: boolean;
|
|
142
143
|
rowSplitType?: TableFormRowSplitType;
|
|
144
|
+
onValidate?: (id: string, isValid: boolean) => void;
|
|
143
145
|
}
|
|
144
146
|
export type RenderRowDescriptionProps = {
|
|
145
147
|
rowIndex: number;
|
|
@@ -254,4 +256,5 @@ export type TableFormProps = {
|
|
|
254
256
|
export type TableFormHandle = {
|
|
255
257
|
setData: (data: DataType[]) => void;
|
|
256
258
|
validateWholeFields: () => void;
|
|
259
|
+
isValid: () => boolean;
|
|
257
260
|
};
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./Calendar";
|
|
|
20
20
|
export * from "./Card";
|
|
21
21
|
export * from "./Cascader";
|
|
22
22
|
export * from "./Checkbox";
|
|
23
|
+
export * from "./ConfigProvider";
|
|
23
24
|
export * from "./DeprecatedProgress";
|
|
24
25
|
export * from "./DetailCard";
|
|
25
26
|
export * from "./DonutChart";
|
|
@@ -40,6 +41,7 @@ export * from "./InputNumber";
|
|
|
40
41
|
export * from "./InputPassword";
|
|
41
42
|
export * from "./InputTagItem";
|
|
42
43
|
export * from "./KitStoreProvider";
|
|
44
|
+
export * from "./LegacySelect";
|
|
43
45
|
export * from "./Link";
|
|
44
46
|
export * from "./Loading";
|
|
45
47
|
export * from "./message";
|
|
@@ -64,6 +66,7 @@ export * from "./SegmentControl";
|
|
|
64
66
|
export * from "./Select";
|
|
65
67
|
export * from "./SidebarMenu";
|
|
66
68
|
export * from "./SimplePagination";
|
|
69
|
+
export * from "./Skeleton";
|
|
67
70
|
export * from "./Space";
|
|
68
71
|
export * from "./Speed";
|
|
69
72
|
export * from "./StatusCapsule";
|
|
@@ -86,8 +89,6 @@ export * from "./Tooltip";
|
|
|
86
89
|
export * from "./Truncate";
|
|
87
90
|
export * from "./Typo";
|
|
88
91
|
export * from "./Units";
|
|
89
|
-
export * from "./ConfigProvider";
|
|
90
|
-
export * from "./Skeleton";
|
|
91
92
|
export declare const units: {
|
|
92
93
|
Percent: import("./Units").PercentFn;
|
|
93
94
|
Byte: import("./Units").UnitFn;
|
|
@@ -138,6 +139,7 @@ export { default as InputNumber } from "./InputNumber";
|
|
|
138
139
|
export { default as InputPassword } from "./InputPassword";
|
|
139
140
|
export { default as InputTagItem } from "./InputTagItem";
|
|
140
141
|
export { default as KitStoreProvider } from "./KitStoreProvider";
|
|
142
|
+
export { default as LegacySelect } from "./LegacySelect";
|
|
141
143
|
export { default as Link } from "./Link";
|
|
142
144
|
export { default as Loading } from "./Loading";
|
|
143
145
|
export { default as message } from "./message";
|
package/dist/src/spec/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
|
|
1
|
+
import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
|
|
2
2
|
import type { CronCalendarProps, CronPlanProps, DateRangePickerProps, DeprecatedIDonutChartProps, DropdownTransitionProps, GoBackButtonType, I18nNameTagType, IBatchOperation, IChartWithUnitProps, ICountingProps, ICWTProps, IUnitWithChartProps, NamesTooltipType, OverflowTooltipProps, SidebarSubtitleComponentType, SortableListComponentType, SummaryTableComponentType, SwitchWithTextProps } from "../coreX";
|
|
3
3
|
import { AutoCompleteProps } from "antd/lib/auto-complete";
|
|
4
4
|
import { BadgeProps } from "antd/lib/badge";
|
|
@@ -101,6 +101,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
101
101
|
error: unknown;
|
|
102
102
|
}>;
|
|
103
103
|
pagination: React.FC<PaginationProps>;
|
|
104
|
+
legacySelect: LegacySelectComponentType<V, T>;
|
|
104
105
|
select: SelectComponentType<V, T>;
|
|
105
106
|
option: OptionComponentType;
|
|
106
107
|
selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import LegacySelect from "../../../src/core/LegacySelect";
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: Meta<typeof
|
|
3
|
+
declare const meta: Meta<typeof LegacySelect>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof LegacySelect>;
|
|
6
6
|
export declare const Simple: Story;
|
|
7
7
|
export declare const Multiple: Story;
|
|
8
8
|
export declare const MultipleWithSearch: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Basic: {
|
|
6
|
+
(): React.JSX.Element;
|
|
7
|
+
story: {
|
|
8
|
+
name: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
design: {
|
|
11
|
+
type: string;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|