@cloudtower/eagle 0.26.5-vpc-0.0.1 → 0.26.6
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/components/Button/index.d.ts +3 -3
- package/dist/components/TableForm/Columns/InputColumn.d.ts +0 -1
- package/dist/components/TableForm/Columns/index.d.ts +3 -6
- package/dist/components/TableForm/types.d.ts +2 -36
- package/dist/components/Token/index.d.ts +4 -0
- package/dist/components.css +84 -61
- package/dist/esm/index.js +831 -935
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +8 -3
- package/dist/style.css +1074 -1051
- package/dist/umd/index.js +833 -937
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
- package/dist/components/Card/CardBody.d.ts +0 -5
- package/dist/components/Card/CardTitle.d.ts +0 -5
- package/dist/components/Card/CardWrapper.d.ts +0 -10
- package/dist/components/Card/__test__/Card.spec.d.ts +0 -1
- package/dist/components/Card/index.d.ts +0 -13
- package/dist/components/TableForm/__test__/tableForm.test.d.ts +0 -1
- package/dist/utils/testSuit.d.ts +0 -2
|
@@ -4,13 +4,13 @@ declare const Button: React.ForwardRefExoticComponent<{
|
|
|
4
4
|
hoverPrefixIcon?: JSX.Element | undefined;
|
|
5
5
|
suffixIcon?: JSX.Element | undefined;
|
|
6
6
|
hoverSuffixIcon?: JSX.Element | undefined;
|
|
7
|
-
type?: "link" | "text" | "
|
|
7
|
+
type?: "link" | "text" | "default" | "dashed" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
|
|
8
8
|
} & Omit<Partial<{
|
|
9
9
|
href: string;
|
|
10
10
|
target?: string | undefined;
|
|
11
11
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
12
|
-
} & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "
|
|
12
|
+
} & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
13
13
|
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
14
14
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
15
|
-
} & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "
|
|
15
|
+
} & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
export default Button;
|
|
@@ -7,5 +7,4 @@ export declare const InputColumnHeaderCell: React.FC<Omit<ColumnHeaderCellProps,
|
|
|
7
7
|
export declare const InputColumnBodyCell: React.FC<Pick<ColumnBodyCellProps, "data" | "latestData" | "column" | "index" | "disabled" | "visible"> & {
|
|
8
8
|
onChange: (value: any) => void;
|
|
9
9
|
onBlur: () => void;
|
|
10
|
-
error: boolean;
|
|
11
10
|
}>;
|
|
@@ -19,20 +19,17 @@ export declare const ColumnHeaderImpls: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const ColumnBodyImpls: {
|
|
21
21
|
text: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "column" | "index">>;
|
|
22
|
-
input: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "
|
|
22
|
+
input: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
|
|
23
23
|
onChange: (value: any) => void;
|
|
24
24
|
onBlur: () => void;
|
|
25
|
-
error: boolean;
|
|
26
25
|
}>;
|
|
27
|
-
password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "
|
|
26
|
+
password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
|
|
28
27
|
onChange: (value: any) => void;
|
|
29
28
|
onBlur: () => void;
|
|
30
|
-
error: boolean;
|
|
31
29
|
}>;
|
|
32
|
-
affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "
|
|
30
|
+
affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
|
|
33
31
|
onChange: (value: any) => void;
|
|
34
32
|
onBlur: () => void;
|
|
35
|
-
error: boolean;
|
|
36
33
|
}>;
|
|
37
34
|
checkbox: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "column" | "index"> & {
|
|
38
35
|
onChange: (value: any) => void;
|
|
@@ -75,7 +75,6 @@ export interface ColumnBodyCellProps {
|
|
|
75
75
|
isRowError: boolean;
|
|
76
76
|
getRowValidateResult: (rowData: DataType) => string | undefined;
|
|
77
77
|
validateAll: boolean;
|
|
78
|
-
error?: string | null;
|
|
79
78
|
}
|
|
80
79
|
export type AddRowButtonProps = {
|
|
81
80
|
config: RowAddConfigurations;
|
|
@@ -91,14 +90,12 @@ export type RowAddConfigurations = {
|
|
|
91
90
|
className?: string;
|
|
92
91
|
CustomizedButton?: (props: AddRowButtonProps) => React.ReactElement;
|
|
93
92
|
};
|
|
94
|
-
export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "
|
|
93
|
+
export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "draggable" | "disableBatchFilling" | "rowSplitType" | "validateTriggerType" | "renderRowDescription" | "rowValidator" | "onBodyBlur"> {
|
|
95
94
|
data: DataType[];
|
|
96
95
|
latestData: DataType[];
|
|
97
96
|
updateData: (data: DataType[]) => void;
|
|
98
97
|
passwordVisible: boolean;
|
|
99
98
|
validateAll: boolean;
|
|
100
|
-
draggable?: boolean;
|
|
101
|
-
rowSplitType?: TableFormRowSplitType;
|
|
102
99
|
}
|
|
103
100
|
export type RenderRowDescriptionProps = {
|
|
104
101
|
rowIndex: number;
|
|
@@ -109,51 +106,20 @@ export type DeletableConfigurations = {
|
|
|
109
106
|
deletable: boolean;
|
|
110
107
|
specifyRowDeleteDisabled?: (rowIndex: number, allData: DataType[]) => boolean;
|
|
111
108
|
};
|
|
112
|
-
export type TableFormRowActions = "delete";
|
|
113
|
-
export type TableFormRowSplitType = "border" | "zebraMarking";
|
|
114
|
-
export type TableFormRowConfiguration = {
|
|
115
|
-
splitType?: TableFormRowSplitType;
|
|
116
|
-
draggable?: boolean;
|
|
117
|
-
deletable?: boolean | ((rowIndex: number, allData: DataType[]) => boolean);
|
|
118
|
-
descriptions?: (string | React.ReactNode)[];
|
|
119
|
-
disableActions?: TableFormRowActions[] | ((rowIndex: number, allData: DataType[]) => TableFormRowActions[] | undefined);
|
|
120
|
-
validator?: (rowIndex: number, rowData: DataType) => string | undefined;
|
|
121
|
-
customizedDescription?: (props: RenderRowDescriptionProps) => React.ReactNode | string;
|
|
122
|
-
};
|
|
123
|
-
export type TableFormErrorsType = (string | {
|
|
124
|
-
[columnKey: string]: string | null;
|
|
125
|
-
} | null)[];
|
|
126
109
|
export type TableFormProps = {
|
|
127
110
|
defaultData?: DataType[];
|
|
128
111
|
columns: TableFormColumn[];
|
|
129
112
|
disabled?: boolean;
|
|
130
113
|
rowAddConfig?: RowAddConfigurations;
|
|
131
|
-
/**
|
|
132
|
-
* @deprecated use "row" configuration instead
|
|
133
|
-
*/
|
|
134
114
|
deleteConfig?: DeletableConfigurations;
|
|
135
115
|
size?: "default" | "large" | "small";
|
|
136
|
-
/**
|
|
137
|
-
* @deprecated use "row" configuration instead
|
|
138
|
-
*/
|
|
139
116
|
draggable?: boolean;
|
|
140
117
|
disableBatchFilling?: boolean;
|
|
141
118
|
className?: string;
|
|
142
|
-
|
|
143
|
-
* @deprecated use "row" configuration instead
|
|
144
|
-
*/
|
|
145
|
-
rowSplitType?: TableFormRowSplitType;
|
|
119
|
+
rowSplitType?: "border" | "zebraMarking";
|
|
146
120
|
validateTriggerType?: ValidateTriggerType;
|
|
147
121
|
maxHeight?: number | string;
|
|
148
|
-
row?: TableFormRowConfiguration;
|
|
149
|
-
errors?: TableFormErrorsType;
|
|
150
|
-
/**
|
|
151
|
-
* @deprecated use "row" configuration instead
|
|
152
|
-
*/
|
|
153
122
|
renderRowDescription?: (props: RenderRowDescriptionProps) => React.ReactNode;
|
|
154
|
-
/**
|
|
155
|
-
* @deprecated use "row" configuration instead
|
|
156
|
-
*/
|
|
157
123
|
rowValidator?: (rowIndex: number, rowData: DataType) => string | undefined;
|
|
158
124
|
onHeaderChange?: (data: any[], columnKey: string) => void;
|
|
159
125
|
onHeaderBlur?: (data: any[]) => void;
|
package/dist/components.css
CHANGED
|
@@ -3876,6 +3876,16 @@ input.rrg1fkn.ant-input {
|
|
|
3876
3876
|
margin-left: 24px;
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
|
+
.igz4le8 {
|
|
3880
|
+
height: 24px;
|
|
3881
|
+
width: 56px !important;
|
|
3882
|
+
margin-right: 4px;
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
.c1riexje {
|
|
3886
|
+
color: rgba(44, 56, 82, 0.6);
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3879
3889
|
.shq1k1g.ant-select, .shq1k1g.ant-select .ant-select-selector {
|
|
3880
3890
|
border-radius: 6px;
|
|
3881
3891
|
}
|
|
@@ -3931,18 +3941,81 @@ input.rrg1fkn.ant-input {
|
|
|
3931
3941
|
transform: rotate(180deg);
|
|
3932
3942
|
}
|
|
3933
3943
|
|
|
3934
|
-
.
|
|
3935
|
-
|
|
3936
|
-
width: 56px !important;
|
|
3937
|
-
margin-right: 4px;
|
|
3944
|
+
.iiqau4c.ant-input-group.ant-input-group-compact {
|
|
3945
|
+
display: flex;
|
|
3938
3946
|
}
|
|
3939
3947
|
|
|
3940
|
-
.
|
|
3941
|
-
|
|
3948
|
+
.s1uupxds {
|
|
3949
|
+
padding: 0 8px;
|
|
3950
|
+
border-radius: 4px;
|
|
3942
3951
|
}
|
|
3943
3952
|
|
|
3944
|
-
.
|
|
3945
|
-
|
|
3953
|
+
.m10sqwut {
|
|
3954
|
+
padding: 2px 8px;
|
|
3955
|
+
border-radius: 3px;
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
.l1d492wb {
|
|
3959
|
+
padding: 3px 8px;
|
|
3960
|
+
border-radius: 2px;
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
.t1lzavmu.ant-tag:hover {
|
|
3964
|
+
opacity: unset;
|
|
3965
|
+
}
|
|
3966
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden) {
|
|
3967
|
+
margin: 0;
|
|
3968
|
+
display: inline-flex;
|
|
3969
|
+
align-items: center;
|
|
3970
|
+
border: none;
|
|
3971
|
+
}
|
|
3972
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden) .ant-tag-close-icon {
|
|
3973
|
+
width: 16px;
|
|
3974
|
+
height: 16px;
|
|
3975
|
+
color: inherit;
|
|
3976
|
+
margin-left: 4px;
|
|
3977
|
+
opacity: 0.6;
|
|
3978
|
+
}
|
|
3979
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden) .ant-tag-close-icon:hover {
|
|
3980
|
+
opacity: 1;
|
|
3981
|
+
}
|
|
3982
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ant-tag-blue {
|
|
3983
|
+
color: #0080ff;
|
|
3984
|
+
background-color: rgba(0, 136, 255, 0.1);
|
|
3985
|
+
}
|
|
3986
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ant-tag-red {
|
|
3987
|
+
color: #f0483e;
|
|
3988
|
+
background-color: rgba(255, 74, 74, 0.1);
|
|
3989
|
+
}
|
|
3990
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ant-tag-yellow {
|
|
3991
|
+
color: #fea008;
|
|
3992
|
+
background-color: rgba(255, 187, 0, 0.1);
|
|
3993
|
+
}
|
|
3994
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ant-tag-green {
|
|
3995
|
+
color: #00ba5d;
|
|
3996
|
+
background-color: rgba(30, 201, 127, 0.1);
|
|
3997
|
+
}
|
|
3998
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ant-tag-gray {
|
|
3999
|
+
color: #1d326c;
|
|
4000
|
+
background-color: rgba(225, 230, 241, 0.6);
|
|
4001
|
+
}
|
|
4002
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked {
|
|
4003
|
+
color: #fff;
|
|
4004
|
+
}
|
|
4005
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked.ant-tag-red {
|
|
4006
|
+
background-color: #f0483e;
|
|
4007
|
+
}
|
|
4008
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked.ant-tag-yellow {
|
|
4009
|
+
background-color: #fea008;
|
|
4010
|
+
}
|
|
4011
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked.ant-tag-green {
|
|
4012
|
+
background-color: #00ba5d;
|
|
4013
|
+
}
|
|
4014
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked.ant-tag-blue {
|
|
4015
|
+
background-color: #0080ff;
|
|
4016
|
+
}
|
|
4017
|
+
.t1lzavmu.ant-tag.ui-kit-token:not(.ant-tag-hidden).ui-kit-token-checked.ant-tag-gray {
|
|
4018
|
+
background-color: #6b7d99;
|
|
3946
4019
|
}
|
|
3947
4020
|
|
|
3948
4021
|
.m1thnes4 {
|
|
@@ -4136,59 +4209,6 @@ input.rrg1fkn.ant-input {
|
|
|
4136
4209
|
background: rgba(163, 180, 204, 0.18);
|
|
4137
4210
|
}
|
|
4138
4211
|
|
|
4139
|
-
.c1k4vanq {
|
|
4140
|
-
padding: 0 16px 14px 16px;
|
|
4141
|
-
}
|
|
4142
|
-
|
|
4143
|
-
.c1udgdh2 {
|
|
4144
|
-
color: #2d3a56;
|
|
4145
|
-
padding: 12px 16px 10px 16px;
|
|
4146
|
-
display: flex;
|
|
4147
|
-
justify-content: space-between;
|
|
4148
|
-
align-items: center;
|
|
4149
|
-
}
|
|
4150
|
-
.c1udgdh2.has-arrow {
|
|
4151
|
-
padding-left: 10px;
|
|
4152
|
-
}
|
|
4153
|
-
.c1udgdh2.has-arrow .title-wrapper {
|
|
4154
|
-
cursor: pointer;
|
|
4155
|
-
color: #00122e;
|
|
4156
|
-
}
|
|
4157
|
-
.c1udgdh2.has-arrow .title-wrapper.is-open {
|
|
4158
|
-
color: #2d3a56;
|
|
4159
|
-
font-weight: 600;
|
|
4160
|
-
}
|
|
4161
|
-
.c1udgdh2.has-arrow .title-wrapper.is-open .collapse-arrow {
|
|
4162
|
-
transform: rotate(90deg);
|
|
4163
|
-
}
|
|
4164
|
-
.c1udgdh2 .sub-info {
|
|
4165
|
-
font-size: 12px;
|
|
4166
|
-
line-height: 18px;
|
|
4167
|
-
}
|
|
4168
|
-
.c1udgdh2 .title-wrapper {
|
|
4169
|
-
display: flex;
|
|
4170
|
-
align-items: center;
|
|
4171
|
-
user-select: none;
|
|
4172
|
-
flex-grow: 1;
|
|
4173
|
-
font-size: 12px;
|
|
4174
|
-
line-height: 18px;
|
|
4175
|
-
color: #2d3a56;
|
|
4176
|
-
font-weight: 700;
|
|
4177
|
-
}
|
|
4178
|
-
.c1udgdh2 .collapse-arrow {
|
|
4179
|
-
transition: all 50ms ease-out 0ms;
|
|
4180
|
-
margin-right: 2px;
|
|
4181
|
-
}
|
|
4182
|
-
|
|
4183
|
-
.bab9xum {
|
|
4184
|
-
box-shadow: 0px 0.119595px 0.438513px rgba(129, 138, 153, 0.14), 0px 0.271728px 0.996336px rgba(129, 138, 153, 0.106447), 0px 0.472931px 1.73408px rgba(129, 138, 153, 0.0912224), 0px 0.751293px 2.75474px rgba(129, 138, 153, 0.0799253), 0px 1.15919px 4.25036px rgba(129, 138, 153, 0.07), 0px 1.80882px 6.63236px rgba(129, 138, 153, 0.0600747), 0px 3.00293px 11.0107px rgba(129, 138, 153, 0.0487776), 0px 6px 22px rgba(129, 138, 153, 0.0335534);
|
|
4185
|
-
}
|
|
4186
|
-
|
|
4187
|
-
.cav4gt6 {
|
|
4188
|
-
border-radius: 4px;
|
|
4189
|
-
background-color: white;
|
|
4190
|
-
}
|
|
4191
|
-
|
|
4192
4212
|
.f1p9ti6d {
|
|
4193
4213
|
width: 100%;
|
|
4194
4214
|
margin-bottom: 0 !important;
|
|
@@ -4373,6 +4393,9 @@ input.rrg1fkn.ant-input {
|
|
|
4373
4393
|
border-radius: 5px;
|
|
4374
4394
|
font-size: 12px;
|
|
4375
4395
|
}
|
|
4396
|
+
.tyua489 .ant-list.size-default .eagle-table-form-cell .ant-input {
|
|
4397
|
+
padding: 2px 8px;
|
|
4398
|
+
}
|
|
4376
4399
|
.tyua489 .ant-list.size-default .eagle-table-form-cell .ant-input-affix-wrapper {
|
|
4377
4400
|
font-size: inherit;
|
|
4378
4401
|
}
|