@next-bricks/form 0.25.0 → 0.25.2
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-types/auto-complete/index.d.ts +2 -2
- package/dist-types/checkbox/index.d.ts +1 -1
- package/dist-types/date-picker/index.d.ts +1 -1
- package/dist-types/dynamic-form-item/index.d.ts +3 -3
- package/dist-types/form/index.d.ts +2 -2
- package/dist-types/form-item/index.d.ts +3 -3
- package/dist-types/general-switch/index.d.ts +3 -3
- package/dist-types/icon-select/index.d.ts +3 -3
- package/dist-types/index.d.ts +0 -1
- package/dist-types/input/index.d.ts +1 -1
- package/dist-types/radio/index.d.ts +2 -2
- package/dist-types/search/index.d.ts +3 -3
- package/dist-types/select/index.d.ts +2 -2
- package/dist-types/submit-buttons/index.d.ts +2 -2
- package/dist-types/textarea/calculateAutoSizeStyle.d.ts +2 -1
- package/dist-types/textarea/index.d.ts +2 -2
- package/dist-types/time-picker/index.d.ts +3 -3
- package/dist-types/time-range-picker/index.d.ts +2 -2
- package/dist-types/upload/Upload.d.ts +1 -1
- package/dist-types/upload/upload-file/index.d.ts +3 -3
- package/dist-types/upload/upload-image/index.d.ts +3 -3
- package/package.json +3 -3
|
@@ -74,7 +74,7 @@ export declare class EoAutoComplete extends FormItemElementBase {
|
|
|
74
74
|
*/
|
|
75
75
|
accessor message: Record<string, string> | undefined;
|
|
76
76
|
handleInputChange: (value: string) => void;
|
|
77
|
-
render(): JSX.Element;
|
|
77
|
+
render(): React.JSX.Element;
|
|
78
78
|
}
|
|
79
|
-
export declare function EoAutoCompleteComponent(props: EoAutoCompleteComponentProps): JSX.Element;
|
|
79
|
+
export declare function EoAutoCompleteComponent(props: EoAutoCompleteComponentProps): React.JSX.Element;
|
|
80
80
|
export {};
|
|
@@ -86,7 +86,7 @@ export declare class EoDatePicker extends FormItemElementBase {
|
|
|
86
86
|
* 输入框样式
|
|
87
87
|
*/
|
|
88
88
|
accessor inputBoxStyle: CSSProperties | undefined;
|
|
89
|
-
render(): JSX.Element;
|
|
89
|
+
render(): React.JSX.Element;
|
|
90
90
|
}
|
|
91
91
|
export declare function InternalStateDatePicker(props: InternalStateDatePickerProps): React.ReactElement;
|
|
92
92
|
export declare function EoDatePickerComponent(props: EoDatePickerProps): React.ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { Form } from "../form/index.js";
|
|
3
3
|
import type { FormItemProps } from "../form-item/index.jsx";
|
|
4
4
|
import { UseBrickConf } from "@next-core/types";
|
|
@@ -73,7 +73,7 @@ declare class DynamicFormItem extends FormItemElementBase {
|
|
|
73
73
|
*/
|
|
74
74
|
accessor useBrick: UseBrickConf | undefined;
|
|
75
75
|
handleDynamicFormChange: (values: DynamicFormValuesItem[]) => void;
|
|
76
|
-
render(): JSX.Element;
|
|
76
|
+
render(): React.JSX.Element;
|
|
77
77
|
}
|
|
78
|
-
export declare function DynamicFormItemComponent(props: DynamicFormItemProps): JSX.Element;
|
|
78
|
+
export declare function DynamicFormItemComponent(props: DynamicFormItemProps): React.JSX.Element;
|
|
79
79
|
export { DynamicFormItem };
|
|
@@ -73,7 +73,7 @@ declare class Form extends ReactNextElement implements FormProps, AbstractForm {
|
|
|
73
73
|
* 重置表单校验状态方法
|
|
74
74
|
*/
|
|
75
75
|
resetValidateState(): void;
|
|
76
|
-
render(): JSX.Element;
|
|
76
|
+
render(): React.JSX.Element;
|
|
77
77
|
}
|
|
78
78
|
interface FormComponentProps extends FormProps {
|
|
79
79
|
formStyle?: React.CSSProperties;
|
|
@@ -83,5 +83,5 @@ interface FormComponentProps extends FormProps {
|
|
|
83
83
|
onValidateSuccess?: () => void;
|
|
84
84
|
onValidateError?: () => void;
|
|
85
85
|
}
|
|
86
|
-
export declare function FormComponent({ layout, formStyle, }: FormComponentProps): JSX.Element;
|
|
86
|
+
export declare function FormComponent({ layout, formStyle, }: FormComponentProps): React.JSX.Element;
|
|
87
87
|
export { Form, FormProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { AbstractForm, FormItemElementBase, MessageBody, ColProps } from "@next-shared/form";
|
|
3
3
|
import type { Form } from "../form/index.jsx";
|
|
4
4
|
import type { ComponentSize, Layout } from "../interface.js";
|
|
@@ -82,7 +82,7 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
|
|
|
82
82
|
* 值变化时是否主动出发校验
|
|
83
83
|
*/
|
|
84
84
|
accessor needValidate: boolean | undefined;
|
|
85
|
-
render(): JSX.Element | null;
|
|
85
|
+
render(): React.JSX.Element | null;
|
|
86
86
|
}
|
|
87
87
|
export { FormItem };
|
|
88
|
-
export declare function FormItemComponent(props: FormItemProps): JSX.Element;
|
|
88
|
+
export declare function FormItemComponent(props: FormItemProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.js";
|
|
@@ -58,7 +58,7 @@ export declare class GeneralSwitch extends FormItemElementBase {
|
|
|
58
58
|
*/
|
|
59
59
|
accessor unCheckedIcon: GeneralIconProps | undefined;
|
|
60
60
|
handleSwitch: (value: boolean) => void;
|
|
61
|
-
render(): JSX.Element;
|
|
61
|
+
render(): React.JSX.Element;
|
|
62
62
|
}
|
|
63
|
-
export declare function GeneralSwitchComponent(props: SwitchProps): JSX.Element;
|
|
63
|
+
export declare function GeneralSwitchComponent(props: SwitchProps): React.JSX.Element;
|
|
64
64
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { FormItemElementBase } from "@next-shared/form";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.js";
|
|
@@ -44,10 +44,10 @@ export declare class IconSelect extends FormItemElementBase implements IconSelec
|
|
|
44
44
|
*/
|
|
45
45
|
accessor message: Record<string, string> | undefined;
|
|
46
46
|
handleChange: (value?: Icon) => void;
|
|
47
|
-
render(): JSX.Element;
|
|
47
|
+
render(): React.JSX.Element;
|
|
48
48
|
}
|
|
49
49
|
interface IconSelectComponentProps extends FormItemProps, IconSelectProps {
|
|
50
50
|
onChange?: (value?: Icon) => void;
|
|
51
51
|
}
|
|
52
|
-
export declare function IconSelectComponent(props: IconSelectComponentProps): JSX.Element;
|
|
52
|
+
export declare function IconSelectComponent(props: IconSelectComponentProps): React.JSX.Element;
|
|
53
53
|
export {};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -151,7 +151,7 @@ export declare class Input extends FormItemElementBase {
|
|
|
151
151
|
*/
|
|
152
152
|
accessor validator: ((value: any) => MessageBody) | undefined;
|
|
153
153
|
renderCallback: (ref: RCInputRef) => void;
|
|
154
|
-
render(): JSX.Element;
|
|
154
|
+
render(): React.JSX.Element;
|
|
155
155
|
}
|
|
156
156
|
export interface RCInputProps extends InputProps {
|
|
157
157
|
onInputChange?: (value: string) => void;
|
|
@@ -97,11 +97,11 @@ declare class Radio extends FormItemElementBase {
|
|
|
97
97
|
label: string;
|
|
98
98
|
value: any;
|
|
99
99
|
}) => void;
|
|
100
|
-
render(): JSX.Element;
|
|
100
|
+
render(): React.JSX.Element;
|
|
101
101
|
}
|
|
102
102
|
interface RadioComponentProps extends RadioProps, FormItemProps {
|
|
103
103
|
onChange?: (value: any) => void;
|
|
104
104
|
optionsChange?: (options: any, name: string) => void;
|
|
105
105
|
}
|
|
106
|
-
export declare function RadioComponent(props: RadioComponentProps): JSX.Element;
|
|
106
|
+
export declare function RadioComponent(props: RadioComponentProps): React.JSX.Element;
|
|
107
107
|
export { Radio };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
export interface SearchProps {
|
|
@@ -46,12 +46,12 @@ export declare class GeneralSearch extends ReactNextElement implements SearchPro
|
|
|
46
46
|
* 默认延迟时间
|
|
47
47
|
*/
|
|
48
48
|
accessor debounceTime: number;
|
|
49
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
50
|
}
|
|
51
51
|
interface SearchComponentProps extends SearchProps {
|
|
52
52
|
onSearch?: (value: string) => void;
|
|
53
53
|
onChange?: (value: string) => void;
|
|
54
54
|
onDebouncedChange?: (value: string) => void;
|
|
55
55
|
}
|
|
56
|
-
export declare function GeneralSearchComponent(props: SearchComponentProps): JSX.Element;
|
|
56
|
+
export declare function GeneralSearchComponent(props: SearchComponentProps): React.JSX.Element;
|
|
57
57
|
export {};
|
|
@@ -119,7 +119,7 @@ declare class Select extends FormItemElementBase {
|
|
|
119
119
|
private _handleOptionsChange;
|
|
120
120
|
handleSearch: (value: string) => void;
|
|
121
121
|
handleFocus: () => void;
|
|
122
|
-
render(): JSX.Element;
|
|
122
|
+
render(): React.JSX.Element;
|
|
123
123
|
}
|
|
124
|
-
export declare function SelectComponent(props: SelectProps): JSX.Element;
|
|
124
|
+
export declare function SelectComponent(props: SelectProps): React.JSX.Element;
|
|
125
125
|
export { Select };
|
|
@@ -45,7 +45,7 @@ declare class SubmitButtons extends FormItemElementBase {
|
|
|
45
45
|
accessor cancelType: ButtonType | undefined;
|
|
46
46
|
private _handleSubmitClick;
|
|
47
47
|
private _handleCancelClick;
|
|
48
|
-
render(): JSX.Element;
|
|
48
|
+
render(): React.JSX.Element;
|
|
49
49
|
}
|
|
50
|
-
export declare function ButtonsComponent(props: SubmitButtonsProps): JSX.Element;
|
|
50
|
+
export declare function ButtonsComponent(props: SubmitButtonsProps): React.JSX.Element;
|
|
51
51
|
export { SubmitButtons };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react"
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/// <reference types="trusted-types" />
|
|
3
4
|
export default function calculateAutoSizeStyle(uiTextNode: HTMLTextAreaElement, minRows?: number | null, maxRows?: number | null): React.CSSProperties;
|
|
@@ -77,7 +77,7 @@ declare class Textarea extends FormItemElementBase {
|
|
|
77
77
|
*/
|
|
78
78
|
accessor textareaStyle: React.CSSProperties | undefined;
|
|
79
79
|
handleInputChange: (value: string) => void;
|
|
80
|
-
render(): JSX.Element;
|
|
80
|
+
render(): React.JSX.Element;
|
|
81
81
|
}
|
|
82
|
-
export declare function TextareaComponent(props: TextareaProps): JSX.Element;
|
|
82
|
+
export declare function TextareaComponent(props: TextareaProps): React.JSX.Element;
|
|
83
83
|
export { Textarea };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.jsx";
|
|
@@ -49,7 +49,7 @@ export declare class EoTimePicker extends FormItemElementBase {
|
|
|
49
49
|
* 透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)
|
|
50
50
|
*/
|
|
51
51
|
accessor configProps: Partial<TimePickerProps> | undefined;
|
|
52
|
-
render(): JSX.Element;
|
|
52
|
+
render(): React.JSX.Element;
|
|
53
53
|
}
|
|
54
|
-
export declare function EoTimePickerComponent(props: EoTimePickerProps): JSX.Element;
|
|
54
|
+
export declare function EoTimePickerComponent(props: EoTimePickerProps): React.JSX.Element;
|
|
55
55
|
export {};
|
|
@@ -73,8 +73,8 @@ export declare class EoTimeRangePicker extends FormItemElementBase {
|
|
|
73
73
|
unequal: (value: TimeRange) => string;
|
|
74
74
|
startTimeRequired: (value: TimeRange) => string;
|
|
75
75
|
endTimeRequired: (value: TimeRange) => string;
|
|
76
|
-
render(): JSX.Element;
|
|
76
|
+
render(): React.JSX.Element;
|
|
77
77
|
}
|
|
78
78
|
export declare function RealTimeRangePicker(props: RealTimeRangePickerProps): React.ReactElement;
|
|
79
|
-
export declare function EoTimeRangePickerComponent(props: EoTimeRangePickerProps): JSX.Element;
|
|
79
|
+
export declare function EoTimeRangePickerComponent(props: EoTimeRangePickerProps): React.JSX.Element;
|
|
80
80
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { ButtonProps } from "@next-bricks/basic/button";
|
|
3
3
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
4
4
|
import { FormItemElementBase } from "@next-shared/form";
|
|
@@ -109,10 +109,10 @@ export declare class EoUploadFile extends FormItemElementBase implements UploadF
|
|
|
109
109
|
*/
|
|
110
110
|
accessor uploadName: string;
|
|
111
111
|
handleChange: (fileDataList: FileData[]) => void;
|
|
112
|
-
render(): JSX.Element;
|
|
112
|
+
render(): React.JSX.Element;
|
|
113
113
|
}
|
|
114
114
|
interface UploadFileComponentProps extends UploadFileProps, FormItemProps {
|
|
115
115
|
onChange?: (fileDataList: FileData[]) => void;
|
|
116
116
|
}
|
|
117
|
-
export declare function EoUploadFileComponent(props: UploadFileComponentProps): JSX.Element;
|
|
117
|
+
export declare function EoUploadFileComponent(props: UploadFileComponentProps): React.JSX.Element;
|
|
118
118
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../../form-item/index.js";
|
|
@@ -51,10 +51,10 @@ export declare class UploadImage extends FormItemElementBase implements UploadIm
|
|
|
51
51
|
*/
|
|
52
52
|
accessor message: Record<string, string> | undefined;
|
|
53
53
|
handleChange: (imageList: ImageData[]) => void;
|
|
54
|
-
render(): JSX.Element;
|
|
54
|
+
render(): React.JSX.Element;
|
|
55
55
|
}
|
|
56
56
|
interface UploadImageComponentProps extends UploadImageProps, FormItemProps {
|
|
57
57
|
onChange?: (imageList: ImageData[]) => void;
|
|
58
58
|
}
|
|
59
|
-
export declare function UploadImageComponent(props: UploadImageComponentProps): JSX.Element;
|
|
59
|
+
export declare function UploadImageComponent(props: UploadImageComponentProps): React.JSX.Element;
|
|
60
60
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"postpublish": "mv package.json.bak package.json"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@next-core/build-next-bricks": "^1.15.
|
|
37
|
+
"@next-core/build-next-bricks": "^1.15.1",
|
|
38
38
|
"@next-core/test-next": "^1.0.11"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e5f7b9c399ddebee6c5ccbdf8e374adb15b53fdd"
|
|
41
41
|
}
|